google-apis-aiplatform_v1beta1 0.65.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9165,6 +9165,51 @@ module Google
9165
9165
  execute_or_queue_command(command, &block)
9166
9166
  end
9167
9167
 
9168
+ # Gets the access control policy for a resource. Returns an empty policy if the
9169
+ # resource exists and does not have a policy set.
9170
+ # @param [String] resource
9171
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
9172
+ # names](https://cloud.google.com/apis/design/resource_names) for the
9173
+ # appropriate value for this field.
9174
+ # @param [Fixnum] options_requested_policy_version
9175
+ # Optional. The maximum policy version that will be used to format the policy.
9176
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
9177
+ # rejected. Requests for policies with any conditional role bindings must
9178
+ # specify version 3. Policies with no conditional role bindings may specify any
9179
+ # valid value or leave the field unset. The policy in the response might use the
9180
+ # policy version that you specified, or it might use a lower policy version. For
9181
+ # example, if you specify version 3, but the policy has no conditional role
9182
+ # bindings, the response uses version 1. To learn which resources support
9183
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
9184
+ # google.com/iam/help/conditions/resource-policies).
9185
+ # @param [String] fields
9186
+ # Selector specifying which fields to include in a partial response.
9187
+ # @param [String] quota_user
9188
+ # Available to use for quota purposes for server-side applications. Can be any
9189
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9190
+ # @param [Google::Apis::RequestOptions] options
9191
+ # Request-specific options
9192
+ #
9193
+ # @yield [result, err] Result & error if block supplied
9194
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object
9195
+ # @yieldparam err [StandardError] error object if request failed
9196
+ #
9197
+ # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy]
9198
+ #
9199
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9200
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9201
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9202
+ def get_project_location_dataset_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
9203
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
9204
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation
9205
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy
9206
+ command.params['resource'] = resource unless resource.nil?
9207
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
9208
+ command.query['fields'] = fields unless fields.nil?
9209
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9210
+ execute_or_queue_command(command, &block)
9211
+ end
9212
+
9168
9213
  # Fetches the configs of publisher models.
9169
9214
  # @param [String] name
9170
9215
  # Required. The name of the publisher model, in the format of `projects/`project`
@@ -9640,8 +9685,8 @@ module Google
9640
9685
  # @param [String] name
9641
9686
  # The resource that owns the locations collection, if applicable.
9642
9687
  # @param [Array<String>, String] extra_location_types
9643
- # Optional. Unless explicitly documented otherwise, don't use this unsupported
9644
- # field which is primarily intended for internal usage.
9688
+ # Optional. Do not use this field. It is unsupported and is ignored unless
9689
+ # explicitly documented otherwise. This is primarily for internal usage.
9645
9690
  # @param [String] filter
9646
9691
  # A filter to narrow down results to a preferred subset. The filtering language
9647
9692
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -11715,6 +11760,84 @@ module Google
11715
11760
  execute_or_queue_command(command, &block)
11716
11761
  end
11717
11762
 
11763
+ # Sets the access control policy on the specified resource. Replaces any
11764
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
11765
+ # PERMISSION_DENIED` errors.
11766
+ # @param [String] resource
11767
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
11768
+ # names](https://cloud.google.com/apis/design/resource_names) for the
11769
+ # appropriate value for this field.
11770
+ # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
11771
+ # @param [String] fields
11772
+ # Selector specifying which fields to include in a partial response.
11773
+ # @param [String] quota_user
11774
+ # Available to use for quota purposes for server-side applications. Can be any
11775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11776
+ # @param [Google::Apis::RequestOptions] options
11777
+ # Request-specific options
11778
+ #
11779
+ # @yield [result, err] Result & error if block supplied
11780
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object
11781
+ # @yieldparam err [StandardError] error object if request failed
11782
+ #
11783
+ # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy]
11784
+ #
11785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11788
+ def set_project_location_dataset_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
11789
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
11790
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation
11791
+ command.request_object = google_iam_v1_set_iam_policy_request_object
11792
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation
11793
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy
11794
+ command.params['resource'] = resource unless resource.nil?
11795
+ command.query['fields'] = fields unless fields.nil?
11796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11797
+ execute_or_queue_command(command, &block)
11798
+ end
11799
+
11800
+ # Returns permissions that a caller has on the specified resource. If the
11801
+ # resource does not exist, this will return an empty set of permissions, not a `
11802
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
11803
+ # permission-aware UIs and command-line tools, not for authorization checking.
11804
+ # This operation may "fail open" without warning.
11805
+ # @param [String] resource
11806
+ # REQUIRED: The resource for which the policy detail is being requested. See [
11807
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
11808
+ # appropriate value for this field.
11809
+ # @param [Array<String>, String] permissions
11810
+ # The set of permissions to check for the `resource`. Permissions with wildcards
11811
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
11812
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
11813
+ # @param [String] fields
11814
+ # Selector specifying which fields to include in a partial response.
11815
+ # @param [String] quota_user
11816
+ # Available to use for quota purposes for server-side applications. Can be any
11817
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11818
+ # @param [Google::Apis::RequestOptions] options
11819
+ # Request-specific options
11820
+ #
11821
+ # @yield [result, err] Result & error if block supplied
11822
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
11823
+ # @yieldparam err [StandardError] error object if request failed
11824
+ #
11825
+ # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse]
11826
+ #
11827
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11828
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11829
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11830
+ def test_project_location_dataset_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block)
11831
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
11832
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
11833
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse
11834
+ command.params['resource'] = resource unless resource.nil?
11835
+ command.query['permissions'] = permissions unless permissions.nil?
11836
+ command.query['fields'] = fields unless fields.nil?
11837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11838
+ execute_or_queue_command(command, &block)
11839
+ end
11840
+
11718
11841
  # Gets an AnnotationSpec.
11719
11842
  # @param [String] name
11720
11843
  # Required. The name of the AnnotationSpec resource. Format: `projects/`project`/
@@ -14693,6 +14816,45 @@ module Google
14693
14816
  execute_or_queue_command(command, &block)
14694
14817
  end
14695
14818
 
14819
+ # Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
14820
+ # To use this method, invoke_route_prefix must be set to allow the paths that
14821
+ # will be specified in the request.
14822
+ # @param [String] endpoint
14823
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
14824
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
14825
+ # @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object
14826
+ # @param [String] deployed_model_id
14827
+ # ID of the DeployedModel that serves the invoke request.
14828
+ # @param [String] fields
14829
+ # Selector specifying which fields to include in a partial response.
14830
+ # @param [String] quota_user
14831
+ # Available to use for quota purposes for server-side applications. Can be any
14832
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14833
+ # @param [Google::Apis::RequestOptions] options
14834
+ # Request-specific options
14835
+ #
14836
+ # @yield [result, err] Result & error if block supplied
14837
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
14838
+ # @yieldparam err [StandardError] error object if request failed
14839
+ #
14840
+ # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
14841
+ #
14842
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14843
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14844
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14845
+ def inference_project_location_endpoint_google_science(endpoint, google_api_http_body_object = nil, deployed_model_id: nil, fields: nil, quota_user: nil, options: nil, &block)
14846
+ command = make_simple_command(:post, 'v1beta1/{+endpoint}/science/inference', options)
14847
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
14848
+ command.request_object = google_api_http_body_object
14849
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
14850
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
14851
+ command.params['endpoint'] = endpoint unless endpoint.nil?
14852
+ command.query['deployedModelId'] = deployed_model_id unless deployed_model_id.nil?
14853
+ command.query['fields'] = fields unless fields.nil?
14854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14855
+ execute_or_queue_command(command, &block)
14856
+ end
14857
+
14696
14858
  # Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
14697
14859
  # To use this method, invoke_route_prefix must be set to allow the paths that
14698
14860
  # will be specified in the request.
@@ -32117,6 +32279,40 @@ module Google
32117
32279
  execute_or_queue_command(command, &block)
32118
32280
  end
32119
32281
 
32282
+ # Executes code statelessly.
32283
+ # @param [String] name
32284
+ # Required. The resource name of the sandbox environment to execute. Format: `
32285
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
32286
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeRequest] google_cloud_aiplatform_v1beta1_execute_code_request_object
32287
+ # @param [String] fields
32288
+ # Selector specifying which fields to include in a partial response.
32289
+ # @param [String] quota_user
32290
+ # Available to use for quota purposes for server-side applications. Can be any
32291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32292
+ # @param [Google::Apis::RequestOptions] options
32293
+ # Request-specific options
32294
+ #
32295
+ # @yield [result, err] Result & error if block supplied
32296
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse] parsed result object
32297
+ # @yieldparam err [StandardError] error object if request failed
32298
+ #
32299
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse]
32300
+ #
32301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32304
+ def execute_project_location_reasoning_engine_code(name, google_cloud_aiplatform_v1beta1_execute_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
32305
+ command = make_simple_command(:post, 'v1beta1/{+name}:executeCode', options)
32306
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeRequest::Representation
32307
+ command.request_object = google_cloud_aiplatform_v1beta1_execute_code_request_object
32308
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse::Representation
32309
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse
32310
+ command.params['name'] = name unless name.nil?
32311
+ command.query['fields'] = fields unless fields.nil?
32312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32313
+ execute_or_queue_command(command, &block)
32314
+ end
32315
+
32120
32316
  # Gets a reasoning engine.
32121
32317
  # @param [String] name
32122
32318
  # Required. The name of the ReasoningEngine resource. Format: `projects/`project`
@@ -32865,8 +33061,9 @@ module Google
32865
33061
  # reasoning_engine``
32866
33062
  # @param [String] filter
32867
33063
  # Optional. The standard list filter. More detail in [AIP-160](https://google.
32868
- # aip.dev/160). Supported fields (equality match only): * `scope` (as a JSON
32869
- # string)
33064
+ # aip.dev/160). Supported fields: * `scope` (as a JSON string with equality
33065
+ # match only) * `topics` (i.e. `topics.custom_memory_topic_label: "example topic"
33066
+ # OR topics.managed_memory_topic: USER_PREFERENCES`)
32870
33067
  # @param [String] order_by
32871
33068
  # Optional. The standard list order by string. If not specified, the default
32872
33069
  # order is `create_time desc`. If specified, the default sorting order of
@@ -32945,6 +33142,41 @@ module Google
32945
33142
  execute_or_queue_command(command, &block)
32946
33143
  end
32947
33144
 
33145
+ # Purge memories.
33146
+ # @param [String] parent
33147
+ # Required. The resource name of the ReasoningEngine to purge memories from.
33148
+ # Format: `projects/`project`/locations/`location`/reasoningEngines/`
33149
+ # reasoning_engine``
33150
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeMemoriesRequest] google_cloud_aiplatform_v1beta1_purge_memories_request_object
33151
+ # @param [String] fields
33152
+ # Selector specifying which fields to include in a partial response.
33153
+ # @param [String] quota_user
33154
+ # Available to use for quota purposes for server-side applications. Can be any
33155
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33156
+ # @param [Google::Apis::RequestOptions] options
33157
+ # Request-specific options
33158
+ #
33159
+ # @yield [result, err] Result & error if block supplied
33160
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
33161
+ # @yieldparam err [StandardError] error object if request failed
33162
+ #
33163
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
33164
+ #
33165
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33166
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33167
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33168
+ def purge_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_purge_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
33169
+ command = make_simple_command(:post, 'v1beta1/{+parent}/memories:purge', options)
33170
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeMemoriesRequest::Representation
33171
+ command.request_object = google_cloud_aiplatform_v1beta1_purge_memories_request_object
33172
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
33173
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
33174
+ command.params['parent'] = parent unless parent.nil?
33175
+ command.query['fields'] = fields unless fields.nil?
33176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33177
+ execute_or_queue_command(command, &block)
33178
+ end
33179
+
32948
33180
  # Retrieve memories.
32949
33181
  # @param [String] parent
32950
33182
  # Required. The resource name of the ReasoningEngine to retrieve memories from.
@@ -33978,7 +34210,8 @@ module Google
33978
34210
  # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
33979
34211
  # @param [String] filter
33980
34212
  # Optional. The standard list filter. Supported fields: * `display_name` * `
33981
- # user_id` Example: `display_name="abc"`, `user_id="123"`.
34213
+ # user_id` * `labels` Example: `display_name="abc"`, `user_id="123"`, `labels.
34214
+ # key="value"`.
33982
34215
  # @param [String] order_by
33983
34216
  # Optional. A comma-separated list of fields to order by, sorted in ascending
33984
34217
  # order. Use "desc" after a field name for descending. Supported fields: * `
@@ -34067,6 +34300,10 @@ module Google
34067
34300
  # Optional. The standard list filter. Supported fields: * `timestamp` range (i.e.
34068
34301
  # `timestamp>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339
34069
34302
  # format) More detail in [AIP-160](https://google.aip.dev/160).
34303
+ # @param [String] order_by
34304
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
34305
+ # order. Use "desc" after a field name for descending. Supported fields: * `
34306
+ # timestamp` Example: `timestamp desc`.
34070
34307
  # @param [Fixnum] page_size
34071
34308
  # Optional. The maximum number of events to return. The service may return fewer
34072
34309
  # than this value. If unspecified, at most 100 events will be returned. These
@@ -34091,12 +34328,13 @@ module Google
34091
34328
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34092
34329
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34093
34330
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34094
- def list_project_location_reasoning_engine_session_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
34331
+ def list_project_location_reasoning_engine_session_events(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
34095
34332
  command = make_simple_command(:get, 'v1beta1/{+parent}/events', options)
34096
34333
  command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse::Representation
34097
34334
  command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse
34098
34335
  command.params['parent'] = parent unless parent.nil?
34099
34336
  command.query['filter'] = filter unless filter.nil?
34337
+ command.query['orderBy'] = order_by unless order_by.nil?
34100
34338
  command.query['pageSize'] = page_size unless page_size.nil?
34101
34339
  command.query['pageToken'] = page_token unless page_token.nil?
34102
34340
  command.query['fields'] = fields unless fields.nil?
@@ -39782,6 +40020,40 @@ module Google
39782
40020
  execute_or_queue_command(command, &block)
39783
40021
  end
39784
40022
 
40023
+ # Executes code statelessly.
40024
+ # @param [String] name
40025
+ # Required. The resource name of the sandbox environment to execute. Format: `
40026
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
40027
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeRequest] google_cloud_aiplatform_v1beta1_execute_code_request_object
40028
+ # @param [String] fields
40029
+ # Selector specifying which fields to include in a partial response.
40030
+ # @param [String] quota_user
40031
+ # Available to use for quota purposes for server-side applications. Can be any
40032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40033
+ # @param [Google::Apis::RequestOptions] options
40034
+ # Request-specific options
40035
+ #
40036
+ # @yield [result, err] Result & error if block supplied
40037
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse] parsed result object
40038
+ # @yieldparam err [StandardError] error object if request failed
40039
+ #
40040
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse]
40041
+ #
40042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40045
+ def execute_reasoning_engine_code(name, google_cloud_aiplatform_v1beta1_execute_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
40046
+ command = make_simple_command(:post, 'v1beta1/{+name}:executeCode', options)
40047
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeRequest::Representation
40048
+ command.request_object = google_cloud_aiplatform_v1beta1_execute_code_request_object
40049
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse::Representation
40050
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteCodeResponse
40051
+ command.params['name'] = name unless name.nil?
40052
+ command.query['fields'] = fields unless fields.nil?
40053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40054
+ execute_or_queue_command(command, &block)
40055
+ end
40056
+
39785
40057
  # Gets a reasoning engine.
39786
40058
  # @param [String] name
39787
40059
  # Required. The name of the ReasoningEngine resource. Format: `projects/`project`
@@ -40530,8 +40802,9 @@ module Google
40530
40802
  # reasoning_engine``
40531
40803
  # @param [String] filter
40532
40804
  # Optional. The standard list filter. More detail in [AIP-160](https://google.
40533
- # aip.dev/160). Supported fields (equality match only): * `scope` (as a JSON
40534
- # string)
40805
+ # aip.dev/160). Supported fields: * `scope` (as a JSON string with equality
40806
+ # match only) * `topics` (i.e. `topics.custom_memory_topic_label: "example topic"
40807
+ # OR topics.managed_memory_topic: USER_PREFERENCES`)
40535
40808
  # @param [String] order_by
40536
40809
  # Optional. The standard list order by string. If not specified, the default
40537
40810
  # order is `create_time desc`. If specified, the default sorting order of
@@ -40610,6 +40883,41 @@ module Google
40610
40883
  execute_or_queue_command(command, &block)
40611
40884
  end
40612
40885
 
40886
+ # Purge memories.
40887
+ # @param [String] parent
40888
+ # Required. The resource name of the ReasoningEngine to purge memories from.
40889
+ # Format: `projects/`project`/locations/`location`/reasoningEngines/`
40890
+ # reasoning_engine``
40891
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeMemoriesRequest] google_cloud_aiplatform_v1beta1_purge_memories_request_object
40892
+ # @param [String] fields
40893
+ # Selector specifying which fields to include in a partial response.
40894
+ # @param [String] quota_user
40895
+ # Available to use for quota purposes for server-side applications. Can be any
40896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40897
+ # @param [Google::Apis::RequestOptions] options
40898
+ # Request-specific options
40899
+ #
40900
+ # @yield [result, err] Result & error if block supplied
40901
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
40902
+ # @yieldparam err [StandardError] error object if request failed
40903
+ #
40904
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
40905
+ #
40906
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40907
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40908
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40909
+ def purge_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_purge_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
40910
+ command = make_simple_command(:post, 'v1beta1/{+parent}/memories:purge', options)
40911
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeMemoriesRequest::Representation
40912
+ command.request_object = google_cloud_aiplatform_v1beta1_purge_memories_request_object
40913
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
40914
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
40915
+ command.params['parent'] = parent unless parent.nil?
40916
+ command.query['fields'] = fields unless fields.nil?
40917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40918
+ execute_or_queue_command(command, &block)
40919
+ end
40920
+
40613
40921
  # Retrieve memories.
40614
40922
  # @param [String] parent
40615
40923
  # Required. The resource name of the ReasoningEngine to retrieve memories from.
@@ -41136,6 +41444,185 @@ module Google
41136
41444
  execute_or_queue_command(command, &block)
41137
41445
  end
41138
41446
 
41447
+ # Creates a SandboxEnvironment in a given reasoning engine.
41448
+ # @param [String] parent
41449
+ # Required. The resource name of the reasoning engine to create the
41450
+ # SandboxEnvironment in. Format: `projects/`project`/locations/`location`/
41451
+ # reasoningEngines/`reasoning_engine``.
41452
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] google_cloud_aiplatform_v1beta1_sandbox_environment_object
41453
+ # @param [String] fields
41454
+ # Selector specifying which fields to include in a partial response.
41455
+ # @param [String] quota_user
41456
+ # Available to use for quota purposes for server-side applications. Can be any
41457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41458
+ # @param [Google::Apis::RequestOptions] options
41459
+ # Request-specific options
41460
+ #
41461
+ # @yield [result, err] Result & error if block supplied
41462
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
41463
+ # @yieldparam err [StandardError] error object if request failed
41464
+ #
41465
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
41466
+ #
41467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41470
+ def create_reasoning_engine_sandbox_environment(parent, google_cloud_aiplatform_v1beta1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
41471
+ command = make_simple_command(:post, 'v1beta1/{+parent}/sandboxEnvironments', options)
41472
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation
41473
+ command.request_object = google_cloud_aiplatform_v1beta1_sandbox_environment_object
41474
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
41475
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
41476
+ command.params['parent'] = parent unless parent.nil?
41477
+ command.query['fields'] = fields unless fields.nil?
41478
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41479
+ execute_or_queue_command(command, &block)
41480
+ end
41481
+
41482
+ # Deletes the specific SandboxEnvironment.
41483
+ # @param [String] name
41484
+ # Required. The resource name of the SandboxEnvironment to delete. Format: `
41485
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
41486
+ # sandboxEnvironments/`sandbox_environment``
41487
+ # @param [String] fields
41488
+ # Selector specifying which fields to include in a partial response.
41489
+ # @param [String] quota_user
41490
+ # Available to use for quota purposes for server-side applications. Can be any
41491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41492
+ # @param [Google::Apis::RequestOptions] options
41493
+ # Request-specific options
41494
+ #
41495
+ # @yield [result, err] Result & error if block supplied
41496
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
41497
+ # @yieldparam err [StandardError] error object if request failed
41498
+ #
41499
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
41500
+ #
41501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41504
+ def delete_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
41505
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
41506
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
41507
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
41508
+ command.params['name'] = name unless name.nil?
41509
+ command.query['fields'] = fields unless fields.nil?
41510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41511
+ execute_or_queue_command(command, &block)
41512
+ end
41513
+
41514
+ # Executes using a sandbox environment.
41515
+ # @param [String] name
41516
+ # Required. The resource name of the sandbox environment to execute. Format: `
41517
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
41518
+ # sandboxEnvironments/`sandbox_environment``
41519
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object
41520
+ # @param [String] fields
41521
+ # Selector specifying which fields to include in a partial response.
41522
+ # @param [String] quota_user
41523
+ # Available to use for quota purposes for server-side applications. Can be any
41524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41525
+ # @param [Google::Apis::RequestOptions] options
41526
+ # Request-specific options
41527
+ #
41528
+ # @yield [result, err] Result & error if block supplied
41529
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse] parsed result object
41530
+ # @yieldparam err [StandardError] error object if request failed
41531
+ #
41532
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse]
41533
+ #
41534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41537
+ def execute_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
41538
+ command = make_simple_command(:post, 'v1beta1/{+name}:execute', options)
41539
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest::Representation
41540
+ command.request_object = google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object
41541
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse::Representation
41542
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse
41543
+ command.params['name'] = name unless name.nil?
41544
+ command.query['fields'] = fields unless fields.nil?
41545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41546
+ execute_or_queue_command(command, &block)
41547
+ end
41548
+
41549
+ # Gets details of the specific SandboxEnvironment.
41550
+ # @param [String] name
41551
+ # Required. The resource name of the sandbox environment. Format: `projects/`
41552
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine`/
41553
+ # sandboxEnvironments/`sandbox_environment``
41554
+ # @param [String] fields
41555
+ # Selector specifying which fields to include in a partial response.
41556
+ # @param [String] quota_user
41557
+ # Available to use for quota purposes for server-side applications. Can be any
41558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41559
+ # @param [Google::Apis::RequestOptions] options
41560
+ # Request-specific options
41561
+ #
41562
+ # @yield [result, err] Result & error if block supplied
41563
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] parsed result object
41564
+ # @yieldparam err [StandardError] error object if request failed
41565
+ #
41566
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment]
41567
+ #
41568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41571
+ def get_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
41572
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
41573
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation
41574
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment
41575
+ command.params['name'] = name unless name.nil?
41576
+ command.query['fields'] = fields unless fields.nil?
41577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41578
+ execute_or_queue_command(command, &block)
41579
+ end
41580
+
41581
+ # Lists SandboxEnvironments in a given reasoning engine.
41582
+ # @param [String] parent
41583
+ # Required. The resource name of the reasoning engine to list sandbox
41584
+ # environments from. Format: `projects/`project`/locations/`location`/
41585
+ # reasoningEngines/`reasoning_engine``
41586
+ # @param [String] filter
41587
+ # Optional. The standard list filter. More detail in [AIP-160](https://google.
41588
+ # aip.dev/160).
41589
+ # @param [Fixnum] page_size
41590
+ # Optional. The maximum number of SandboxEnvironments to return. The service may
41591
+ # return fewer than this value. If unspecified, at most 100 SandboxEnvironments
41592
+ # will be returned.
41593
+ # @param [String] page_token
41594
+ # Optional. The standard list page token, received from a previous `
41595
+ # ListSandboxEnvironments` call. Provide this to retrieve the subsequent page.
41596
+ # @param [String] fields
41597
+ # Selector specifying which fields to include in a partial response.
41598
+ # @param [String] quota_user
41599
+ # Available to use for quota purposes for server-side applications. Can be any
41600
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
41601
+ # @param [Google::Apis::RequestOptions] options
41602
+ # Request-specific options
41603
+ #
41604
+ # @yield [result, err] Result & error if block supplied
41605
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse] parsed result object
41606
+ # @yieldparam err [StandardError] error object if request failed
41607
+ #
41608
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse]
41609
+ #
41610
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41611
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41612
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
41613
+ def list_reasoning_engine_sandbox_environments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
41614
+ command = make_simple_command(:get, 'v1beta1/{+parent}/sandboxEnvironments', options)
41615
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse::Representation
41616
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse
41617
+ command.params['parent'] = parent unless parent.nil?
41618
+ command.query['filter'] = filter unless filter.nil?
41619
+ command.query['pageSize'] = page_size unless page_size.nil?
41620
+ command.query['pageToken'] = page_token unless page_token.nil?
41621
+ command.query['fields'] = fields unless fields.nil?
41622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
41623
+ execute_or_queue_command(command, &block)
41624
+ end
41625
+
41139
41626
  # Starts asynchronous cancellation on a long-running operation. The server makes
41140
41627
  # a best effort to cancel the operation, but success is not guaranteed. If the
41141
41628
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -41464,7 +41951,8 @@ module Google
41464
41951
  # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
41465
41952
  # @param [String] filter
41466
41953
  # Optional. The standard list filter. Supported fields: * `display_name` * `
41467
- # user_id` Example: `display_name="abc"`, `user_id="123"`.
41954
+ # user_id` * `labels` Example: `display_name="abc"`, `user_id="123"`, `labels.
41955
+ # key="value"`.
41468
41956
  # @param [String] order_by
41469
41957
  # Optional. A comma-separated list of fields to order by, sorted in ascending
41470
41958
  # order. Use "desc" after a field name for descending. Supported fields: * `
@@ -41553,6 +42041,10 @@ module Google
41553
42041
  # Optional. The standard list filter. Supported fields: * `timestamp` range (i.e.
41554
42042
  # `timestamp>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339
41555
42043
  # format) More detail in [AIP-160](https://google.aip.dev/160).
42044
+ # @param [String] order_by
42045
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
42046
+ # order. Use "desc" after a field name for descending. Supported fields: * `
42047
+ # timestamp` Example: `timestamp desc`.
41556
42048
  # @param [Fixnum] page_size
41557
42049
  # Optional. The maximum number of events to return. The service may return fewer
41558
42050
  # than this value. If unspecified, at most 100 events will be returned. These
@@ -41577,12 +42069,13 @@ module Google
41577
42069
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41578
42070
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41579
42071
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41580
- def list_reasoning_engine_session_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
42072
+ def list_reasoning_engine_session_events(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
41581
42073
  command = make_simple_command(:get, 'v1beta1/{+parent}/events', options)
41582
42074
  command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse::Representation
41583
42075
  command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse
41584
42076
  command.params['parent'] = parent unless parent.nil?
41585
42077
  command.query['filter'] = filter unless filter.nil?
42078
+ command.query['orderBy'] = order_by unless order_by.nil?
41586
42079
  command.query['pageSize'] = page_size unless page_size.nil?
41587
42080
  command.query['pageToken'] = page_token unless page_token.nil?
41588
42081
  command.query['fields'] = fields unless fields.nil?