From ae162bf4c94bc45e505dc7ebe24e904652936b7b Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 30 Aug 2026 18:09:43 -0700 Subject: [PATCH] chore: regenerate aiplatform client --- .../v1/2.0.0/README.md | 4 +- .../services/aiplatform/v1/Aiplatform.java | 902 ++++++++++++++++++ ...eModelsVisionGenerateVideoExperiments.java | 27 + ...dAiplatformV1AudioTranscriptionConfig.java | 36 - ...horizeSandboxEnvironmentAccessRequest.java | 42 + ...orizeSandboxEnvironmentAccessResponse.java | 43 + .../model/GoogleCloudAiplatformV1Memory.java | 24 + ...GoogleCloudAiplatformV1MemoryRevision.java | 27 + ...rmV1OnlineEvaluatorCloudObservability.java | 27 +- ...nvironmentTemplateEgressControlConfig.java | 24 - .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- .../v1beta1/2.0.0/README.md | 4 +- .../aiplatform/v1beta1/Aiplatform.java | 902 ++++++++++++++++++ ...eModelsVisionGenerateVideoExperiments.java | 27 + ...GenaiVertexV1beta1TranscriptionConfig.java | 39 - ...atformV1beta1AudioTranscriptionConfig.java | 36 - ...horizeSandboxEnvironmentAccessRequest.java | 42 + ...orizeSandboxEnvironmentAccessResponse.java | 43 + .../GoogleCloudAiplatformV1beta1Memory.java | 24 + ...eCloudAiplatformV1beta1MemoryRevision.java | 27 + ...eta1OnlineEvaluatorCloudObservability.java | 27 +- ...nvironmentTemplateEgressControlConfig.java | 24 - .../v1beta1/2.0.0/pom.xml | 4 +- .../v1beta1/README.md | 4 +- 25 files changed, 2172 insertions(+), 195 deletions(-) create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest.java create mode 100644 clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse.java diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1/2.0.0/README.md index 4fc4c7b7dbb..882160f32d9 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1-rev20260815-2.0.0 + v1-rev20260822-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260815-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260822-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java index 55f4b0c294f..179de84f636 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java @@ -37047,6 +37047,41 @@ public Delete setName(java.lang.String name) { return this; } + /** + * Optional. If true, any `Task` belonging to this agent is deleted along with it. If + * false or unset and the agent still has at least one `Task`, the request fails with + * `FAILED_PRECONDITION` and nothing is deleted. This governs `Task` and nothing else. + * Resources the agent owns but a caller never named -- its AI Application and the tenant + * project bound to it, its Workspace identity, its service-extension binding -- are torn + * down with the agent on every delete, whatever this field says. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If true, any `Task` belonging to this agent is deleted along with it. If false or unset + and the agent still has at least one `Task`, the request fails with `FAILED_PRECONDITION` and + nothing is deleted. This governs `Task` and nothing else. Resources the agent owns but a caller + never named -- its AI Application and the tenant project bound to it, its Workspace identity, its + service-extension binding -- are torn down with the agent on every delete, whatever this field + says. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If true, any `Task` belonging to this agent is deleted along with it. If + * false or unset and the agent still has at least one `Task`, the request fails with + * `FAILED_PRECONDITION` and nothing is deleted. This governs `Task` and nothing else. + * Resources the agent owns but a caller never named -- its AI Application and the tenant + * project bound to it, its Workspace identity, its service-extension binding -- are torn + * down with the agent on every delete, whatever this field says. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -37199,6 +37234,194 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "agents.getIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource 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. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "agents.getIamPolicy". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource 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. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** 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. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * 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. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * 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). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** 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). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * 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). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Lists the agents in a location that belong to the caller. An agent belongs to the end user * recorded as its owner when it was created, so the response holds that caller's agents and no @@ -37347,6 +37570,57 @@ public List setParent(java.lang.String parent) { return this; } + /** + * Optional. An [AIP-160](https://google.aip.dev/160) filter over the returned agents. An + * empty filter returns the unfiltered collection. Supported fields: * `created` * + * `updated` Both are timestamps and take an RFC-3339 value, for example + * `2026-08-01T00:00:00Z`. Supported operators: `=`, `!=`, `<`, `>`, `<=`, `>=`, `:`, + * `AND`, `OR`, `NOT` (equivalently `-`), and parentheses. Note that `OR` binds more + * tightly than `AND`, so `a AND b OR c` means `a AND (b OR c)`; parentheses are + * recommended, not required. Example: `created > "2026-08-01T00:00:00Z" AND updated < + * "2026-08-09T00:00:00Z"`. Not supported: any field other than those listed above, + * wildcards other than `field:*`, bare literals with no field name, functions, and the + * regular-expression operators `=~` and `!~`. A filter that names an unsupported field, + * exceeds 1000 characters, or nests parentheses more than 5 deep fails with + * `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. An [AIP-160](https://google.aip.dev/160) filter over the returned agents. An empty filter + returns the unfiltered collection. Supported fields: * `created` * `updated` Both are timestamps + and take an RFC-3339 value, for example `2026-08-01T00:00:00Z`. Supported operators: `=`, `!=`, + `<`, `>`, `<=`, `>=`, `:`, `AND`, `OR`, `NOT` (equivalently `-`), and parentheses. Note that `OR` + binds more tightly than `AND`, so `a AND b OR c` means `a AND (b OR c)`; parentheses are + recommended, not required. Example: `created > "2026-08-01T00:00:00Z" AND updated < + "2026-08-09T00:00:00Z"`. Not supported: any field other than those listed above, wildcards other + than `field:*`, bare literals with no field name, functions, and the regular-expression operators + `=~` and `!~`. A filter that names an unsupported field, exceeds 1000 characters, or nests + parentheses more than 5 deep fails with `INVALID_ARGUMENT`. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. An [AIP-160](https://google.aip.dev/160) filter over the returned agents. An + * empty filter returns the unfiltered collection. Supported fields: * `created` * + * `updated` Both are timestamps and take an RFC-3339 value, for example + * `2026-08-01T00:00:00Z`. Supported operators: `=`, `!=`, `<`, `>`, `<=`, `>=`, `:`, + * `AND`, `OR`, `NOT` (equivalently `-`), and parentheses. Note that `OR` binds more + * tightly than `AND`, so `a AND b OR c` means `a AND (b OR c)`; parentheses are + * recommended, not required. Example: `created > "2026-08-01T00:00:00Z" AND updated < + * "2026-08-09T00:00:00Z"`. Not supported: any field other than those listed above, + * wildcards other than `field:*`, bare literals with no field name, functions, and the + * regular-expression operators `=~` and `!~`. A filter that names an unsupported field, + * exceeds 1000 characters, or nests parentheses more than 5 deep fails with + * `INVALID_ARGUMENT`. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + /** * Optional. A comma-separated list of fields to order by. Supported fields: * `created` * * `updated` Use `desc` after a field name for descending order. Example: `created desc`. @@ -37580,6 +37854,328 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "agents.setIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource 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. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "agents.setIamPolicy". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource 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. + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1.model.GoogleIamV1SetIamPolicyRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** 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. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * 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. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "agents.testIamPermissions". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource 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. + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource); + initialize(result); + return result; + } + + public class TestIamPermissions extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "agents.testIamPermissions". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param resource 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. + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** 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. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * 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. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * 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). + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** 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). + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * 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). + */ + public TestIamPermissions setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } } /** @@ -134798,6 +135394,159 @@ public SandboxEnvironments sandboxEnvironments() { */ public class SandboxEnvironments { + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a no- + * op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and proxies + * traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest} + * @return the request + */ + public AuthorizeAccess authorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest content) throws java.io.IOException { + AuthorizeAccess result = new AuthorizeAccess(name, content); + initialize(result); + return result; + } + + public class AuthorizeAccess extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:authorizeAccess"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a + * no-op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and + * proxies traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote + * operation.

{@link AuthorizeAccess#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest} + * @since 1.13 + */ + protected AuthorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + } + + @Override + public AuthorizeAccess set$Xgafv(java.lang.String $Xgafv) { + return (AuthorizeAccess) super.set$Xgafv($Xgafv); + } + + @Override + public AuthorizeAccess setAccessToken(java.lang.String accessToken) { + return (AuthorizeAccess) super.setAccessToken(accessToken); + } + + @Override + public AuthorizeAccess setAlt(java.lang.String alt) { + return (AuthorizeAccess) super.setAlt(alt); + } + + @Override + public AuthorizeAccess setCallback(java.lang.String callback) { + return (AuthorizeAccess) super.setCallback(callback); + } + + @Override + public AuthorizeAccess setFields(java.lang.String fields) { + return (AuthorizeAccess) super.setFields(fields); + } + + @Override + public AuthorizeAccess setKey(java.lang.String key) { + return (AuthorizeAccess) super.setKey(key); + } + + @Override + public AuthorizeAccess setOauthToken(java.lang.String oauthToken) { + return (AuthorizeAccess) super.setOauthToken(oauthToken); + } + + @Override + public AuthorizeAccess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AuthorizeAccess) super.setPrettyPrint(prettyPrint); + } + + @Override + public AuthorizeAccess setQuotaUser(java.lang.String quotaUser) { + return (AuthorizeAccess) super.setQuotaUser(quotaUser); + } + + @Override + public AuthorizeAccess setUploadType(java.lang.String uploadType) { + return (AuthorizeAccess) super.setUploadType(uploadType); + } + + @Override + public AuthorizeAccess setUploadProtocol(java.lang.String uploadProtocol) { + return (AuthorizeAccess) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * sandboxEnvironments/{sandbox_environment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{p + roject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_envir + onment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * sandboxEnvironments/{sandbox_environment}` + */ + public AuthorizeAccess setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public AuthorizeAccess set(String parameterName, Object value) { + return (AuthorizeAccess) super.set(parameterName, value); + } + } /** * Creates a SandboxEnvironment in a given reasoning engine. * @@ -171466,6 +172215,159 @@ public SandboxEnvironments sandboxEnvironments() { */ public class SandboxEnvironments { + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a no- + * op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and proxies + * traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest} + * @return the request + */ + public AuthorizeAccess authorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest content) throws java.io.IOException { + AuthorizeAccess result = new AuthorizeAccess(name, content); + initialize(result); + return result; + } + + public class AuthorizeAccess extends AiplatformRequest { + + private static final String REST_PATH = "v1/{+name}:authorizeAccess"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a + * no-op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and + * proxies traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote + * operation.

{@link AuthorizeAccess#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest} + * @since 1.13 + */ + protected AuthorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + } + + @Override + public AuthorizeAccess set$Xgafv(java.lang.String $Xgafv) { + return (AuthorizeAccess) super.set$Xgafv($Xgafv); + } + + @Override + public AuthorizeAccess setAccessToken(java.lang.String accessToken) { + return (AuthorizeAccess) super.setAccessToken(accessToken); + } + + @Override + public AuthorizeAccess setAlt(java.lang.String alt) { + return (AuthorizeAccess) super.setAlt(alt); + } + + @Override + public AuthorizeAccess setCallback(java.lang.String callback) { + return (AuthorizeAccess) super.setCallback(callback); + } + + @Override + public AuthorizeAccess setFields(java.lang.String fields) { + return (AuthorizeAccess) super.setFields(fields); + } + + @Override + public AuthorizeAccess setKey(java.lang.String key) { + return (AuthorizeAccess) super.setKey(key); + } + + @Override + public AuthorizeAccess setOauthToken(java.lang.String oauthToken) { + return (AuthorizeAccess) super.setOauthToken(oauthToken); + } + + @Override + public AuthorizeAccess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AuthorizeAccess) super.setPrettyPrint(prettyPrint); + } + + @Override + public AuthorizeAccess setQuotaUser(java.lang.String quotaUser) { + return (AuthorizeAccess) super.setQuotaUser(quotaUser); + } + + @Override + public AuthorizeAccess setUploadType(java.lang.String uploadType) { + return (AuthorizeAccess) super.setUploadType(uploadType); + } + + @Override + public AuthorizeAccess setUploadProtocol(java.lang.String uploadProtocol) { + return (AuthorizeAccess) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnviron + * ments/{sandbox_environment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{p + roject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_envir + onment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnviron + * ments/{sandbox_environment}` + */ + public AuthorizeAccess setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public AuthorizeAccess set(String parameterName, Object value) { + return (AuthorizeAccess) super.set(parameterName, value); + } + } /** * Creates a SandboxEnvironment in a given reasoning engine. * diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java index 8300dcb397f..49d742a0ffc 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java @@ -95,6 +95,14 @@ public final class CloudAiLargeModelsVisionGenerateVideoExperiments extends com. @com.google.api.client.util.Key private CloudAiLargeModelsVisionHumanPose humanPose; + /** + * Optional. BNS override for model backend. Enabled only for local and autopush environments by + * the flag `lvm_allow_model_zoo_bns_override`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modelEndpointOverride; + /** * Model names, as defined in: xyz * The value may be {@code null}. @@ -362,6 +370,25 @@ public CloudAiLargeModelsVisionGenerateVideoExperiments setHumanPose(CloudAiLarg return this; } + /** + * Optional. BNS override for model backend. Enabled only for local and autopush environments by + * the flag `lvm_allow_model_zoo_bns_override`. + * @return value or {@code null} for none + */ + public java.lang.String getModelEndpointOverride() { + return modelEndpointOverride; + } + + /** + * Optional. BNS override for model backend. Enabled only for local and autopush environments by + * the flag `lvm_allow_model_zoo_bns_override`. + * @param modelEndpointOverride modelEndpointOverride or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperiments setModelEndpointOverride(java.lang.String modelEndpointOverride) { + this.modelEndpointOverride = modelEndpointOverride; + return this; + } + /** * Model names, as defined in: xyz * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java index 7c4723f2ab8..d8690a73bb8 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AudioTranscriptionConfig.java @@ -76,17 +76,6 @@ public final class GoogleCloudAiplatformV1AudioTranscriptionConfig extends com.g @com.google.api.client.util.Key private GoogleCloudAiplatformV1AudioTranscriptionConfigLanguageHints languageHints; - /** - * Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, - * defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal - * (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic - * formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self- - * corrections). Timestamps and diarization are incompatible with mode `SMART`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - /** * Optional. Configures word-level timestamp generation. * The value may be {@code null}. @@ -206,31 +195,6 @@ public GoogleCloudAiplatformV1AudioTranscriptionConfig setLanguageHints(GoogleCl return this; } - /** - * Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, - * defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal - * (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic - * formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self- - * corrections). Timestamps and diarization are incompatible with mode `SMART`. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, - * defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal - * (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic - * formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self- - * corrections). Timestamps and diarization are incompatible with mode `SMART`. - * @param mode mode or {@code null} for none - */ - public GoogleCloudAiplatformV1AudioTranscriptionConfig setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - /** * Optional. Configures word-level timestamp generation. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest.java new file mode 100644 index 00000000000..97871b16e90 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest.java @@ -0,0 +1,42 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * Request message for SandboxEnvironmentExecutionService.AuthorizeSandboxEnvironmentAccess. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest clone() { + return (GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse.java new file mode 100644 index 00000000000..b8158a9d2db --- /dev/null +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1.model; + +/** + * Response message for SandboxEnvironmentExecutionService.AuthorizeSandboxEnvironmentAccess. + * Intentionally empty: a successful response is the authorization result. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse clone() { + return (GoogleCloudAiplatformV1AuthorizeSandboxEnvironmentAccessResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Memory.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Memory.java index b266e7adb7e..9a03cc08b1a 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Memory.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Memory.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1Memory extends com.google.api.client.json.GenericJson { + /** + * Optional. Represents the context of the memory. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String context; + /** * Output only. Represents the timestamp when this Memory was created. * The value may be {@code null}. @@ -144,6 +151,23 @@ public final class GoogleCloudAiplatformV1Memory extends com.google.api.client.j @com.google.api.client.util.Key private String updateTime; + /** + * Optional. Represents the context of the memory. + * @return value or {@code null} for none + */ + public java.lang.String getContext() { + return context; + } + + /** + * Optional. Represents the context of the memory. + * @param context context or {@code null} for none + */ + public GoogleCloudAiplatformV1Memory setContext(java.lang.String context) { + this.context = context; + return this; + } + /** * Output only. Represents the timestamp when this Memory was created. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1MemoryRevision.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1MemoryRevision.java index 12e45943ea8..3d6f6bc025b 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1MemoryRevision.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1MemoryRevision.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1MemoryRevision extends com.google.api.client.json.GenericJson { + /** + * Output only. Represents the context of the Memory Revision. The context may include context + * from both the historical revisions and the extracted content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String context; + /** * Output only. Represents the timestamp when this Memory Revision was created. * The value may be {@code null}. @@ -90,6 +98,25 @@ public final class GoogleCloudAiplatformV1MemoryRevision extends com.google.api. @com.google.api.client.util.Key private java.util.Map structuredData; + /** + * Output only. Represents the context of the Memory Revision. The context may include context + * from both the historical revisions and the extracted content. + * @return value or {@code null} for none + */ + public java.lang.String getContext() { + return context; + } + + /** + * Output only. Represents the context of the Memory Revision. The context may include context + * from both the historical revisions and the extracted content. + * @param context context or {@code null} for none + */ + public GoogleCloudAiplatformV1MemoryRevision setContext(java.lang.String context) { + this.context = context; + return this; + } + /** * Output only. Represents the timestamp when this Memory Revision was created. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability.java index 025ce296d09..55266100513 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability.java @@ -31,8 +31,8 @@ public final class GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability extends com.google.api.client.json.GenericJson { /** - * Optional. Optional log view that will be used to query logs. If empty, the `_Default` view will - * be used. + * Optional. Optional log view that will be used to query logs. If empty, the project's default + * view (`projects/{project_id}`) will be used. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,16 +60,17 @@ public final class GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability exte private GoogleCloudAiplatformV1OnlineEvaluatorCloudObservabilityTraceScope traceScope; /** - * Optional. Optional trace view that will be used to query traces. If empty, the `_Default` view - * will be used. NOTE: This field is not supported yet and will be ignored if set. + * Optional. Optional trace view that will be used to query traces. If empty, the `_AllSpans` view + * from `_Trace` US bucket will be used, i.e. + * `projects/{project_id}/locations/us/buckets/_Trace/datasets/Spans/views/_AllSpans`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String traceView; /** - * Optional. Optional log view that will be used to query logs. If empty, the `_Default` view will - * be used. + * Optional. Optional log view that will be used to query logs. If empty, the project's default + * view (`projects/{project_id}`) will be used. * @return value or {@code null} for none */ public java.lang.String getLogView() { @@ -77,8 +78,8 @@ public java.lang.String getLogView() { } /** - * Optional. Optional log view that will be used to query logs. If empty, the `_Default` view will - * be used. + * Optional. Optional log view that will be used to query logs. If empty, the project's default + * view (`projects/{project_id}`) will be used. * @param logView logView or {@code null} for none */ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability setLogView(java.lang.String logView) { @@ -138,8 +139,9 @@ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability setTraceScope(Go } /** - * Optional. Optional trace view that will be used to query traces. If empty, the `_Default` view - * will be used. NOTE: This field is not supported yet and will be ignored if set. + * Optional. Optional trace view that will be used to query traces. If empty, the `_AllSpans` view + * from `_Trace` US bucket will be used, i.e. + * `projects/{project_id}/locations/us/buckets/_Trace/datasets/Spans/views/_AllSpans`. * @return value or {@code null} for none */ public java.lang.String getTraceView() { @@ -147,8 +149,9 @@ public java.lang.String getTraceView() { } /** - * Optional. Optional trace view that will be used to query traces. If empty, the `_Default` view - * will be used. NOTE: This field is not supported yet and will be ignored if set. + * Optional. Optional trace view that will be used to query traces. If empty, the `_AllSpans` view + * from `_Trace` US bucket will be used, i.e. + * `projects/{project_id}/locations/us/buckets/_Trace/datasets/Spans/views/_AllSpans`. * @param traceView traceView or {@code null} for none */ public GoogleCloudAiplatformV1OnlineEvaluatorCloudObservability setTraceView(java.lang.String traceView) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressControlConfig.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressControlConfig.java index f6cf1601d5e..41d203bc45e 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressControlConfig.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressControlConfig.java @@ -29,13 +29,6 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressControlConfig extends com.google.api.client.json.GenericJson { - /** - * Optional. The customer VPC network that sandbox egress is routed into. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerVpcNetwork; - /** * Optional. DNS peering configurations that allow sandbox egress to resolve customer-internal * domains via the customer VPC. @@ -59,23 +52,6 @@ public final class GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressContro @com.google.api.client.util.Key private java.lang.String networkAttachment; - /** - * Optional. The customer VPC network that sandbox egress is routed into. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerVpcNetwork() { - return customerVpcNetwork; - } - - /** - * Optional. The customer VPC network that sandbox egress is routed into. - * @param customerVpcNetwork customerVpcNetwork or {@code null} for none - */ - public GoogleCloudAiplatformV1SandboxEnvironmentTemplateEgressControlConfig setCustomerVpcNetwork(java.lang.String customerVpcNetwork) { - this.customerVpcNetwork = customerVpcNetwork; - return this; - } - /** * Optional. DNS peering configurations that allow sandbox egress to resolve customer-internal * domains via the customer VPC. diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml index 23f4ee2517d..f90ece0b760 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1-rev20260815-2.0.0 - Agent Platform API v1-rev20260815-2.0.0 + v1-rev20260822-2.0.0 + Agent Platform API v1-rev20260822-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1/README.md b/clients/google-api-services-aiplatform/v1/README.md index 4fc4c7b7dbb..882160f32d9 100644 --- a/clients/google-api-services-aiplatform/v1/README.md +++ b/clients/google-api-services-aiplatform/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1-rev20260815-2.0.0 + v1-rev20260822-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260815-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260822-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md index f9461fd31f6..20495f349c9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20260815-2.0.0 + v1beta1-rev20260822-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260815-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260822-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java index 85ba39af3ee..d8469f7504b 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/Aiplatform.java @@ -50901,6 +50901,41 @@ public Delete setName(java.lang.String name) { return this; } + /** + * Optional. If true, any `Task` belonging to this agent is deleted along with it. If + * false or unset and the agent still has at least one `Task`, the request fails with + * `FAILED_PRECONDITION` and nothing is deleted. This governs `Task` and nothing else. + * Resources the agent owns but a caller never named -- its AI Application and the tenant + * project bound to it, its Workspace identity, its service-extension binding -- are torn + * down with the agent on every delete, whatever this field says. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If true, any `Task` belonging to this agent is deleted along with it. If false or unset + and the agent still has at least one `Task`, the request fails with `FAILED_PRECONDITION` and + nothing is deleted. This governs `Task` and nothing else. Resources the agent owns but a caller + never named -- its AI Application and the tenant project bound to it, its Workspace identity, its + service-extension binding -- are torn down with the agent on every delete, whatever this field + says. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If true, any `Task` belonging to this agent is deleted along with it. If + * false or unset and the agent still has at least one `Task`, the request fails with + * `FAILED_PRECONDITION` and nothing is deleted. This governs `Task` and nothing else. + * Resources the agent owns but a caller never named -- its AI Application and the tenant + * project bound to it, its Workspace identity, its service-extension binding -- are torn + * down with the agent on every delete, whatever this field says. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); @@ -51053,6 +51088,194 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "agents.getIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource 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. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "agents.getIamPolicy". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource 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. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** 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. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * 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. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * 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). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** 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). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * 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). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Lists the agents in a location that belong to the caller. An agent belongs to the end user * recorded as its owner when it was created, so the response holds that caller's agents and no @@ -51201,6 +51424,57 @@ public List setParent(java.lang.String parent) { return this; } + /** + * Optional. An [AIP-160](https://google.aip.dev/160) filter over the returned agents. An + * empty filter returns the unfiltered collection. Supported fields: * `created` * + * `updated` Both are timestamps and take an RFC-3339 value, for example + * `2026-08-01T00:00:00Z`. Supported operators: `=`, `!=`, `<`, `>`, `<=`, `>=`, `:`, + * `AND`, `OR`, `NOT` (equivalently `-`), and parentheses. Note that `OR` binds more + * tightly than `AND`, so `a AND b OR c` means `a AND (b OR c)`; parentheses are + * recommended, not required. Example: `created > "2026-08-01T00:00:00Z" AND updated < + * "2026-08-09T00:00:00Z"`. Not supported: any field other than those listed above, + * wildcards other than `field:*`, bare literals with no field name, functions, and the + * regular-expression operators `=~` and `!~`. A filter that names an unsupported field, + * exceeds 1000 characters, or nests parentheses more than 5 deep fails with + * `INVALID_ARGUMENT`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. An [AIP-160](https://google.aip.dev/160) filter over the returned agents. An empty filter + returns the unfiltered collection. Supported fields: * `created` * `updated` Both are timestamps + and take an RFC-3339 value, for example `2026-08-01T00:00:00Z`. Supported operators: `=`, `!=`, + `<`, `>`, `<=`, `>=`, `:`, `AND`, `OR`, `NOT` (equivalently `-`), and parentheses. Note that `OR` + binds more tightly than `AND`, so `a AND b OR c` means `a AND (b OR c)`; parentheses are + recommended, not required. Example: `created > "2026-08-01T00:00:00Z" AND updated < + "2026-08-09T00:00:00Z"`. Not supported: any field other than those listed above, wildcards other + than `field:*`, bare literals with no field name, functions, and the regular-expression operators + `=~` and `!~`. A filter that names an unsupported field, exceeds 1000 characters, or nests + parentheses more than 5 deep fails with `INVALID_ARGUMENT`. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. An [AIP-160](https://google.aip.dev/160) filter over the returned agents. An + * empty filter returns the unfiltered collection. Supported fields: * `created` * + * `updated` Both are timestamps and take an RFC-3339 value, for example + * `2026-08-01T00:00:00Z`. Supported operators: `=`, `!=`, `<`, `>`, `<=`, `>=`, `:`, + * `AND`, `OR`, `NOT` (equivalently `-`), and parentheses. Note that `OR` binds more + * tightly than `AND`, so `a AND b OR c` means `a AND (b OR c)`; parentheses are + * recommended, not required. Example: `created > "2026-08-01T00:00:00Z" AND updated < + * "2026-08-09T00:00:00Z"`. Not supported: any field other than those listed above, + * wildcards other than `field:*`, bare literals with no field name, functions, and the + * regular-expression operators `=~` and `!~`. A filter that names an unsupported field, + * exceeds 1000 characters, or nests parentheses more than 5 deep fails with + * `INVALID_ARGUMENT`. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + /** * Optional. A comma-separated list of fields to order by. Supported fields: * `created` * * `updated` Use `desc` after a field name for descending order. Example: `created desc`. @@ -51434,6 +51708,328 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "agents.setIamPolicy". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource 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. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "agents.setIamPolicy". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote + * operation.

{@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param resource 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. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** 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. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * 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. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "agents.testIamPermissions". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource 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. + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource); + initialize(result); + return result; + } + + public class TestIamPermissions extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This + * operation is designed to be used for building permission-aware UIs and command-line tools, not + * for authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "agents.testIamPermissions". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param resource 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. + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource) { + super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** 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. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * 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. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * 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). + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** 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). + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * 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). + */ + public TestIamPermissions setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } /** * An accessor for creating requests from the Operations collection. @@ -185017,6 +185613,159 @@ public SandboxEnvironments sandboxEnvironments() { */ public class SandboxEnvironments { + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a no- + * op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and proxies + * traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest} + * @return the request + */ + public AuthorizeAccess authorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest content) throws java.io.IOException { + AuthorizeAccess result = new AuthorizeAccess(name, content); + initialize(result); + return result; + } + + public class AuthorizeAccess extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:authorizeAccess"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a + * no-op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and + * proxies traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote + * operation.

{@link AuthorizeAccess#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest} + * @since 1.13 + */ + protected AuthorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + } + + @Override + public AuthorizeAccess set$Xgafv(java.lang.String $Xgafv) { + return (AuthorizeAccess) super.set$Xgafv($Xgafv); + } + + @Override + public AuthorizeAccess setAccessToken(java.lang.String accessToken) { + return (AuthorizeAccess) super.setAccessToken(accessToken); + } + + @Override + public AuthorizeAccess setAlt(java.lang.String alt) { + return (AuthorizeAccess) super.setAlt(alt); + } + + @Override + public AuthorizeAccess setCallback(java.lang.String callback) { + return (AuthorizeAccess) super.setCallback(callback); + } + + @Override + public AuthorizeAccess setFields(java.lang.String fields) { + return (AuthorizeAccess) super.setFields(fields); + } + + @Override + public AuthorizeAccess setKey(java.lang.String key) { + return (AuthorizeAccess) super.setKey(key); + } + + @Override + public AuthorizeAccess setOauthToken(java.lang.String oauthToken) { + return (AuthorizeAccess) super.setOauthToken(oauthToken); + } + + @Override + public AuthorizeAccess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AuthorizeAccess) super.setPrettyPrint(prettyPrint); + } + + @Override + public AuthorizeAccess setQuotaUser(java.lang.String quotaUser) { + return (AuthorizeAccess) super.setQuotaUser(quotaUser); + } + + @Override + public AuthorizeAccess setUploadType(java.lang.String uploadType) { + return (AuthorizeAccess) super.setUploadType(uploadType); + } + + @Override + public AuthorizeAccess setUploadProtocol(java.lang.String uploadProtocol) { + return (AuthorizeAccess) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * sandboxEnvironments/{sandbox_environment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{p + roject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_envir + onment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * sandboxEnvironments/{sandbox_environment}` + */ + public AuthorizeAccess setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public AuthorizeAccess set(String parameterName, Object value) { + return (AuthorizeAccess) super.set(parameterName, value); + } + } /** * Creates a SandboxEnvironment in a given reasoning engine. * @@ -238442,6 +239191,159 @@ public SandboxEnvironments sandboxEnvironments() { */ public class SandboxEnvironments { + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a no- + * op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and proxies + * traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest} + * @return the request + */ + public AuthorizeAccess authorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest content) throws java.io.IOException { + AuthorizeAccess result = new AuthorizeAccess(name, content); + initialize(result); + return result; + } + + public class AuthorizeAccess extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:authorizeAccess"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + + /** + * Checks whether the caller is authorized to access the sandbox environment. Authorization is + * performed entirely by the API infrastructure from the `method_policy` below; the handler is a + * no-op. A successful response means the caller holds `sandboxEnvironments.execute` on the named + * sandbox. Used by the sandbox data-plane proxy, which forwards the caller's credential and + * proxies traffic only on success. + * + * Create a request for the method "sandboxEnvironments.authorizeAccess". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link AuthorizeAccess#execute()} method to invoke the remote + * operation.

{@link AuthorizeAccess#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.

+ * + * @param name Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{pr + * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandb + * ox_environment}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest} + * @since 1.13 + */ + protected AuthorizeAccess(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + } + + @Override + public AuthorizeAccess set$Xgafv(java.lang.String $Xgafv) { + return (AuthorizeAccess) super.set$Xgafv($Xgafv); + } + + @Override + public AuthorizeAccess setAccessToken(java.lang.String accessToken) { + return (AuthorizeAccess) super.setAccessToken(accessToken); + } + + @Override + public AuthorizeAccess setAlt(java.lang.String alt) { + return (AuthorizeAccess) super.setAlt(alt); + } + + @Override + public AuthorizeAccess setCallback(java.lang.String callback) { + return (AuthorizeAccess) super.setCallback(callback); + } + + @Override + public AuthorizeAccess setFields(java.lang.String fields) { + return (AuthorizeAccess) super.setFields(fields); + } + + @Override + public AuthorizeAccess setKey(java.lang.String key) { + return (AuthorizeAccess) super.setKey(key); + } + + @Override + public AuthorizeAccess setOauthToken(java.lang.String oauthToken) { + return (AuthorizeAccess) super.setOauthToken(oauthToken); + } + + @Override + public AuthorizeAccess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AuthorizeAccess) super.setPrettyPrint(prettyPrint); + } + + @Override + public AuthorizeAccess setQuotaUser(java.lang.String quotaUser) { + return (AuthorizeAccess) super.setQuotaUser(quotaUser); + } + + @Override + public AuthorizeAccess setUploadType(java.lang.String uploadType) { + return (AuthorizeAccess) super.setUploadType(uploadType); + } + + @Override + public AuthorizeAccess setUploadProtocol(java.lang.String uploadProtocol) { + return (AuthorizeAccess) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnviron + * ments/{sandbox_environment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the sandbox environment to authorize access to. Format: `projects/{p + roject}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironments/{sandbox_envir + onment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the sandbox environment to authorize access to. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnviron + * ments/{sandbox_environment}` + */ + public AuthorizeAccess setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^reasoningEngines/[^/]+/sandboxEnvironments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public AuthorizeAccess set(String parameterName, Object value) { + return (AuthorizeAccess) super.set(parameterName, value); + } + } /** * Creates a SandboxEnvironment in a given reasoning engine. * diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java index 40399b065f8..46344b1d388 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/CloudAiLargeModelsVisionGenerateVideoExperiments.java @@ -95,6 +95,14 @@ public final class CloudAiLargeModelsVisionGenerateVideoExperiments extends com. @com.google.api.client.util.Key private CloudAiLargeModelsVisionHumanPose humanPose; + /** + * Optional. BNS override for model backend. Enabled only for local and autopush environments by + * the flag `lvm_allow_model_zoo_bns_override`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modelEndpointOverride; + /** * Model names, as defined in: xyz * The value may be {@code null}. @@ -362,6 +370,25 @@ public CloudAiLargeModelsVisionGenerateVideoExperiments setHumanPose(CloudAiLarg return this; } + /** + * Optional. BNS override for model backend. Enabled only for local and autopush environments by + * the flag `lvm_allow_model_zoo_bns_override`. + * @return value or {@code null} for none + */ + public java.lang.String getModelEndpointOverride() { + return modelEndpointOverride; + } + + /** + * Optional. BNS override for model backend. Enabled only for local and autopush environments by + * the flag `lvm_allow_model_zoo_bns_override`. + * @param modelEndpointOverride modelEndpointOverride or {@code null} for none + */ + public CloudAiLargeModelsVisionGenerateVideoExperiments setModelEndpointOverride(java.lang.String modelEndpointOverride) { + this.modelEndpointOverride = modelEndpointOverride; + return this; + } + /** * Model names, as defined in: xyz * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TranscriptionConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TranscriptionConfig.java index 11604de3199..00d3a626d9a 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TranscriptionConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TranscriptionConfig.java @@ -59,18 +59,6 @@ public final class GenaiVertexV1beta1TranscriptionConfig extends com.google.api. @com.google.api.client.util.Key private java.util.List languageCodes; - /** - * Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults - * to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal - * (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic - * formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self- - * corrections). Timestamps (`timestamp_granularities`) and diarization (`diarization_mode`) are - * incompatible with mode `SMART`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - /** * Optional. The granularity of timestamps to include in the transcription output. Supported * values: "word". If empty, no timestamps are generated. @@ -151,33 +139,6 @@ public GenaiVertexV1beta1TranscriptionConfig setLanguageCodes(java.util.List This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest clone() { + return (GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse.java new file mode 100644 index 00000000000..6c11046f8aa --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.aiplatform.v1beta1.model; + +/** + * Response message for SandboxEnvironmentExecutionService.AuthorizeSandboxEnvironmentAccess. + * Intentionally empty: a successful response is the authorization result. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Agent Platform API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse clone() { + return (GoogleCloudAiplatformV1beta1AuthorizeSandboxEnvironmentAccessResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Memory.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Memory.java index 96a8cf452ca..5b61de26078 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Memory.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Memory.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1Memory extends com.google.api.client.json.GenericJson { + /** + * Optional. Represents the context of the memory. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String context; + /** * Output only. Represents the timestamp when this Memory was created. * The value may be {@code null}. @@ -160,6 +167,23 @@ public final class GoogleCloudAiplatformV1beta1Memory extends com.google.api.cli @com.google.api.client.util.Key private String updateTime; + /** + * Optional. Represents the context of the memory. + * @return value or {@code null} for none + */ + public java.lang.String getContext() { + return context; + } + + /** + * Optional. Represents the context of the memory. + * @param context context or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Memory setContext(java.lang.String context) { + this.context = context; + return this; + } + /** * Output only. Represents the timestamp when this Memory was created. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MemoryRevision.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MemoryRevision.java index 5a74dfefc0a..9821e176402 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MemoryRevision.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MemoryRevision.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1MemoryRevision extends com.google.api.client.json.GenericJson { + /** + * Output only. Represents the context of the Memory Revision. The context may include context + * from both the historical revisions and the extracted content. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String context; + /** * Output only. Represents the timestamp when this Memory Revision was created. * The value may be {@code null}. @@ -90,6 +98,25 @@ public final class GoogleCloudAiplatformV1beta1MemoryRevision extends com.google @com.google.api.client.util.Key private java.util.Map structuredData; + /** + * Output only. Represents the context of the Memory Revision. The context may include context + * from both the historical revisions and the extracted content. + * @return value or {@code null} for none + */ + public java.lang.String getContext() { + return context; + } + + /** + * Output only. Represents the context of the Memory Revision. The context may include context + * from both the historical revisions and the extracted content. + * @param context context or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MemoryRevision setContext(java.lang.String context) { + this.context = context; + return this; + } + /** * Output only. Represents the timestamp when this Memory Revision was created. * @return value or {@code null} for none diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability.java index 33d779ba05b..09bb377516d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability.java @@ -31,8 +31,8 @@ public final class GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability extends com.google.api.client.json.GenericJson { /** - * Optional. Optional log view that will be used to query logs. If empty, the `_Default` view will - * be used. + * Optional. Optional log view that will be used to query logs. If empty, the project's default + * view (`projects/{project_id}`) will be used. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,16 +60,17 @@ public final class GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability private GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservabilityTraceScope traceScope; /** - * Optional. Optional trace view that will be used to query traces. If empty, the `_Default` view - * will be used. NOTE: This field is not supported yet and will be ignored if set. + * Optional. Optional trace view that will be used to query traces. If empty, the `_AllSpans` view + * from `_Trace` US bucket will be used, i.e. + * `projects/{project_id}/locations/us/buckets/_Trace/datasets/Spans/views/_AllSpans`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String traceView; /** - * Optional. Optional log view that will be used to query logs. If empty, the `_Default` view will - * be used. + * Optional. Optional log view that will be used to query logs. If empty, the project's default + * view (`projects/{project_id}`) will be used. * @return value or {@code null} for none */ public java.lang.String getLogView() { @@ -77,8 +78,8 @@ public java.lang.String getLogView() { } /** - * Optional. Optional log view that will be used to query logs. If empty, the `_Default` view will - * be used. + * Optional. Optional log view that will be used to query logs. If empty, the project's default + * view (`projects/{project_id}`) will be used. * @param logView logView or {@code null} for none */ public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability setLogView(java.lang.String logView) { @@ -138,8 +139,9 @@ public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability setTraceSco } /** - * Optional. Optional trace view that will be used to query traces. If empty, the `_Default` view - * will be used. NOTE: This field is not supported yet and will be ignored if set. + * Optional. Optional trace view that will be used to query traces. If empty, the `_AllSpans` view + * from `_Trace` US bucket will be used, i.e. + * `projects/{project_id}/locations/us/buckets/_Trace/datasets/Spans/views/_AllSpans`. * @return value or {@code null} for none */ public java.lang.String getTraceView() { @@ -147,8 +149,9 @@ public java.lang.String getTraceView() { } /** - * Optional. Optional trace view that will be used to query traces. If empty, the `_Default` view - * will be used. NOTE: This field is not supported yet and will be ignored if set. + * Optional. Optional trace view that will be used to query traces. If empty, the `_AllSpans` view + * from `_Trace` US bucket will be used, i.e. + * `projects/{project_id}/locations/us/buckets/_Trace/datasets/Spans/views/_AllSpans`. * @param traceView traceView or {@code null} for none */ public GoogleCloudAiplatformV1beta1OnlineEvaluatorCloudObservability setTraceView(java.lang.String traceView) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateEgressControlConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateEgressControlConfig.java index 50744b24513..4bae6a33cda 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateEgressControlConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateEgressControlConfig.java @@ -29,13 +29,6 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateEgressControlConfig extends com.google.api.client.json.GenericJson { - /** - * Optional. The customer VPC network that sandbox egress is routed into. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerVpcNetwork; - /** * Optional. DNS peering configurations that allow sandbox egress to resolve customer-internal * domains via the customer VPC. @@ -59,23 +52,6 @@ public final class GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateEgressC @com.google.api.client.util.Key private java.lang.String networkAttachment; - /** - * Optional. The customer VPC network that sandbox egress is routed into. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerVpcNetwork() { - return customerVpcNetwork; - } - - /** - * Optional. The customer VPC network that sandbox egress is routed into. - * @param customerVpcNetwork customerVpcNetwork or {@code null} for none - */ - public GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateEgressControlConfig setCustomerVpcNetwork(java.lang.String customerVpcNetwork) { - this.customerVpcNetwork = customerVpcNetwork; - return this; - } - /** * Optional. DNS peering configurations that allow sandbox egress to resolve customer-internal * domains via the customer VPC. diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml index 7d168c3b5a8..a63e0d7166f 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-aiplatform - v1beta1-rev20260815-2.0.0 - Agent Platform API v1beta1-rev20260815-2.0.0 + v1beta1-rev20260822-2.0.0 + Agent Platform API v1beta1-rev20260822-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1beta1/README.md b/clients/google-api-services-aiplatform/v1beta1/README.md index f9461fd31f6..20495f349c9 100644 --- a/clients/google-api-services-aiplatform/v1beta1/README.md +++ b/clients/google-api-services-aiplatform/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-aiplatform - v1beta1-rev20260815-2.0.0 + v1beta1-rev20260822-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260815-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260822-2.0.0' } ```