google-apis-aiplatform_v1 0.40.0 → 0.41.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/aiplatform_v1/classes.rb +2110 -27
- data/lib/google/apis/aiplatform_v1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1/representations.rb +1071 -6
- data/lib/google/apis/aiplatform_v1/service.rb +1155 -98
- metadata +4 -4
@@ -598,6 +598,50 @@ module Google
|
|
598
598
|
execute_or_queue_command(command, &block)
|
599
599
|
end
|
600
600
|
|
601
|
+
# Upload a file into a RagCorpus.
|
602
|
+
# @param [String] parent
|
603
|
+
# Required. The name of the RagCorpus resource into which to upload the file.
|
604
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
605
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadRagFileRequest] google_cloud_aiplatform_v1_upload_rag_file_request_object
|
606
|
+
# @param [String] fields
|
607
|
+
# Selector specifying which fields to include in a partial response.
|
608
|
+
# @param [String] quota_user
|
609
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
610
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
611
|
+
# @param [IO, String] upload_source
|
612
|
+
# IO stream or filename containing content to upload
|
613
|
+
# @param [String] content_type
|
614
|
+
# Content type of the uploaded content.
|
615
|
+
# @param [Google::Apis::RequestOptions] options
|
616
|
+
# Request-specific options
|
617
|
+
#
|
618
|
+
# @yield [result, err] Result & error if block supplied
|
619
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadRagFileResponse] parsed result object
|
620
|
+
# @yieldparam err [StandardError] error object if request failed
|
621
|
+
#
|
622
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadRagFileResponse]
|
623
|
+
#
|
624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
627
|
+
def upload_medium(parent, google_cloud_aiplatform_v1_upload_rag_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
628
|
+
if upload_source.nil?
|
629
|
+
command = make_simple_command(:post, 'v1/{+parent}/ragFiles:upload', options)
|
630
|
+
else
|
631
|
+
command = make_upload_command(:post, 'v1/{+parent}/ragFiles:upload', options)
|
632
|
+
command.upload_source = upload_source
|
633
|
+
command.upload_content_type = content_type
|
634
|
+
end
|
635
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadRagFileRequest::Representation
|
636
|
+
command.request_object = google_cloud_aiplatform_v1_upload_rag_file_request_object
|
637
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadRagFileResponse::Representation
|
638
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UploadRagFileResponse
|
639
|
+
command.params['parent'] = parent unless parent.nil?
|
640
|
+
command.query['fields'] = fields unless fields.nil?
|
641
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
642
|
+
execute_or_queue_command(command, &block)
|
643
|
+
end
|
644
|
+
|
601
645
|
# Gets a GenAI cache config.
|
602
646
|
# @param [String] name
|
603
647
|
# Required. Name of the cache config. Format: - `projects/`project`/cacheConfig`.
|
@@ -662,6 +706,79 @@ module Google
|
|
662
706
|
execute_or_queue_command(command, &block)
|
663
707
|
end
|
664
708
|
|
709
|
+
# Given an input prompt, it returns augmented prompt from vertex rag store to
|
710
|
+
# guide LLM towards generating grounded responses.
|
711
|
+
# @param [String] parent
|
712
|
+
# Required. The resource name of the Location from which to augment prompt. The
|
713
|
+
# users must have permission to make a call in the project. Format: `projects/`
|
714
|
+
# project`/locations/`location``.
|
715
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptRequest] google_cloud_aiplatform_v1_augment_prompt_request_object
|
716
|
+
# @param [String] fields
|
717
|
+
# Selector specifying which fields to include in a partial response.
|
718
|
+
# @param [String] quota_user
|
719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
721
|
+
# @param [Google::Apis::RequestOptions] options
|
722
|
+
# Request-specific options
|
723
|
+
#
|
724
|
+
# @yield [result, err] Result & error if block supplied
|
725
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptResponse] parsed result object
|
726
|
+
# @yieldparam err [StandardError] error object if request failed
|
727
|
+
#
|
728
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptResponse]
|
729
|
+
#
|
730
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
731
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
732
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
733
|
+
def augment_project_location_prompt(parent, google_cloud_aiplatform_v1_augment_prompt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
734
|
+
command = make_simple_command(:post, 'v1/{+parent}:augmentPrompt', options)
|
735
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptRequest::Representation
|
736
|
+
command.request_object = google_cloud_aiplatform_v1_augment_prompt_request_object
|
737
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptResponse::Representation
|
738
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AugmentPromptResponse
|
739
|
+
command.params['parent'] = parent unless parent.nil?
|
740
|
+
command.query['fields'] = fields unless fields.nil?
|
741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
742
|
+
execute_or_queue_command(command, &block)
|
743
|
+
end
|
744
|
+
|
745
|
+
# Given an input text, it returns a score that evaluates the factuality of the
|
746
|
+
# text. It also extracts and returns claims from the text and provides
|
747
|
+
# supporting facts.
|
748
|
+
# @param [String] parent
|
749
|
+
# Required. The resource name of the Location from which to corroborate text.
|
750
|
+
# The users must have permission to make a call in the project. Format: `
|
751
|
+
# projects/`project`/locations/`location``.
|
752
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorroborateContentRequest] google_cloud_aiplatform_v1_corroborate_content_request_object
|
753
|
+
# @param [String] fields
|
754
|
+
# Selector specifying which fields to include in a partial response.
|
755
|
+
# @param [String] quota_user
|
756
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
757
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
758
|
+
# @param [Google::Apis::RequestOptions] options
|
759
|
+
# Request-specific options
|
760
|
+
#
|
761
|
+
# @yield [result, err] Result & error if block supplied
|
762
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorroborateContentResponse] parsed result object
|
763
|
+
# @yieldparam err [StandardError] error object if request failed
|
764
|
+
#
|
765
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorroborateContentResponse]
|
766
|
+
#
|
767
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
768
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
769
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
770
|
+
def corroborate_project_location_content(parent, google_cloud_aiplatform_v1_corroborate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
771
|
+
command = make_simple_command(:post, 'v1/{+parent}:corroborateContent', options)
|
772
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorroborateContentRequest::Representation
|
773
|
+
command.request_object = google_cloud_aiplatform_v1_corroborate_content_request_object
|
774
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorroborateContentResponse::Representation
|
775
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CorroborateContentResponse
|
776
|
+
command.params['parent'] = parent unless parent.nil?
|
777
|
+
command.query['fields'] = fields unless fields.nil?
|
778
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
779
|
+
execute_or_queue_command(command, &block)
|
780
|
+
end
|
781
|
+
|
665
782
|
# Evaluates instances based on a given metric.
|
666
783
|
# @param [String] location
|
667
784
|
# Required. The resource name of the Location to evaluate the instances. Format:
|
@@ -769,6 +886,41 @@ module Google
|
|
769
886
|
execute_or_queue_command(command, &block)
|
770
887
|
end
|
771
888
|
|
889
|
+
# Retrieves relevant contexts for a query.
|
890
|
+
# @param [String] parent
|
891
|
+
# Required. The resource name of the Location from which to retrieve RagContexts.
|
892
|
+
# The users must have permission to make a call in the project. Format: `
|
893
|
+
# projects/`project`/locations/`location``.
|
894
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsRequest] google_cloud_aiplatform_v1_retrieve_contexts_request_object
|
895
|
+
# @param [String] fields
|
896
|
+
# Selector specifying which fields to include in a partial response.
|
897
|
+
# @param [String] quota_user
|
898
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
899
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
900
|
+
# @param [Google::Apis::RequestOptions] options
|
901
|
+
# Request-specific options
|
902
|
+
#
|
903
|
+
# @yield [result, err] Result & error if block supplied
|
904
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsResponse] parsed result object
|
905
|
+
# @yieldparam err [StandardError] error object if request failed
|
906
|
+
#
|
907
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsResponse]
|
908
|
+
#
|
909
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
910
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
911
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
912
|
+
def retrieve_project_location_contexts(parent, google_cloud_aiplatform_v1_retrieve_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
913
|
+
command = make_simple_command(:post, 'v1/{+parent}:retrieveContexts', options)
|
914
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsRequest::Representation
|
915
|
+
command.request_object = google_cloud_aiplatform_v1_retrieve_contexts_request_object
|
916
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsResponse::Representation
|
917
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveContextsResponse
|
918
|
+
command.params['parent'] = parent unless parent.nil?
|
919
|
+
command.query['fields'] = fields unless fields.nil?
|
920
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
921
|
+
execute_or_queue_command(command, &block)
|
922
|
+
end
|
923
|
+
|
772
924
|
# Cancels a BatchPredictionJob. Starts asynchronous cancellation on the
|
773
925
|
# BatchPredictionJob. The server makes the best effort to cancel the job, but
|
774
926
|
# success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or
|
@@ -961,6 +1113,180 @@ module Google
|
|
961
1113
|
execute_or_queue_command(command, &block)
|
962
1114
|
end
|
963
1115
|
|
1116
|
+
# Creates cached content, this call will initialize the cached content in the
|
1117
|
+
# data storage, and users need to pay for the cache data storage.
|
1118
|
+
# @param [String] parent
|
1119
|
+
# Required. The parent resource where the cached content will be created
|
1120
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent] google_cloud_aiplatform_v1_cached_content_object
|
1121
|
+
# @param [String] fields
|
1122
|
+
# Selector specifying which fields to include in a partial response.
|
1123
|
+
# @param [String] quota_user
|
1124
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1125
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1126
|
+
# @param [Google::Apis::RequestOptions] options
|
1127
|
+
# Request-specific options
|
1128
|
+
#
|
1129
|
+
# @yield [result, err] Result & error if block supplied
|
1130
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent] parsed result object
|
1131
|
+
# @yieldparam err [StandardError] error object if request failed
|
1132
|
+
#
|
1133
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent]
|
1134
|
+
#
|
1135
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1136
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1137
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1138
|
+
def create_project_location_cached_content(parent, google_cloud_aiplatform_v1_cached_content_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1139
|
+
command = make_simple_command(:post, 'v1/{+parent}/cachedContents', options)
|
1140
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent::Representation
|
1141
|
+
command.request_object = google_cloud_aiplatform_v1_cached_content_object
|
1142
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent::Representation
|
1143
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent
|
1144
|
+
command.params['parent'] = parent unless parent.nil?
|
1145
|
+
command.query['fields'] = fields unless fields.nil?
|
1146
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1147
|
+
execute_or_queue_command(command, &block)
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Deletes cached content
|
1151
|
+
# @param [String] name
|
1152
|
+
# Required. The resource name referring to the cached content
|
1153
|
+
# @param [String] fields
|
1154
|
+
# Selector specifying which fields to include in a partial response.
|
1155
|
+
# @param [String] quota_user
|
1156
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1157
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1158
|
+
# @param [Google::Apis::RequestOptions] options
|
1159
|
+
# Request-specific options
|
1160
|
+
#
|
1161
|
+
# @yield [result, err] Result & error if block supplied
|
1162
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
1163
|
+
# @yieldparam err [StandardError] error object if request failed
|
1164
|
+
#
|
1165
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
1166
|
+
#
|
1167
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1168
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1169
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1170
|
+
def delete_project_location_cached_content(name, fields: nil, quota_user: nil, options: nil, &block)
|
1171
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1172
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
1173
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
1174
|
+
command.params['name'] = name unless name.nil?
|
1175
|
+
command.query['fields'] = fields unless fields.nil?
|
1176
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1177
|
+
execute_or_queue_command(command, &block)
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# Gets cached content configurations
|
1181
|
+
# @param [String] name
|
1182
|
+
# Required. The resource name referring to the cached content
|
1183
|
+
# @param [String] fields
|
1184
|
+
# Selector specifying which fields to include in a partial response.
|
1185
|
+
# @param [String] quota_user
|
1186
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1187
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1188
|
+
# @param [Google::Apis::RequestOptions] options
|
1189
|
+
# Request-specific options
|
1190
|
+
#
|
1191
|
+
# @yield [result, err] Result & error if block supplied
|
1192
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent] parsed result object
|
1193
|
+
# @yieldparam err [StandardError] error object if request failed
|
1194
|
+
#
|
1195
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent]
|
1196
|
+
#
|
1197
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1198
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1199
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1200
|
+
def get_project_location_cached_content(name, fields: nil, quota_user: nil, options: nil, &block)
|
1201
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1202
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent::Representation
|
1203
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent
|
1204
|
+
command.params['name'] = name unless name.nil?
|
1205
|
+
command.query['fields'] = fields unless fields.nil?
|
1206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1207
|
+
execute_or_queue_command(command, &block)
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
# Lists cached contents in a project
|
1211
|
+
# @param [String] parent
|
1212
|
+
# Required. The parent, which owns this collection of cached contents.
|
1213
|
+
# @param [Fixnum] page_size
|
1214
|
+
# Optional. The maximum number of cached contents to return. The service may
|
1215
|
+
# return fewer than this value. If unspecified, some default (under maximum)
|
1216
|
+
# number of items will be returned. The maximum value is 1000; values above 1000
|
1217
|
+
# will be coerced to 1000.
|
1218
|
+
# @param [String] page_token
|
1219
|
+
# Optional. A page token, received from a previous `ListCachedContents` call.
|
1220
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
1221
|
+
# parameters provided to `ListCachedContents` must match the call that provided
|
1222
|
+
# the page token.
|
1223
|
+
# @param [String] fields
|
1224
|
+
# Selector specifying which fields to include in a partial response.
|
1225
|
+
# @param [String] quota_user
|
1226
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1227
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1228
|
+
# @param [Google::Apis::RequestOptions] options
|
1229
|
+
# Request-specific options
|
1230
|
+
#
|
1231
|
+
# @yield [result, err] Result & error if block supplied
|
1232
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListCachedContentsResponse] parsed result object
|
1233
|
+
# @yieldparam err [StandardError] error object if request failed
|
1234
|
+
#
|
1235
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListCachedContentsResponse]
|
1236
|
+
#
|
1237
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1238
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1239
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1240
|
+
def list_project_location_cached_contents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1241
|
+
command = make_simple_command(:get, 'v1/{+parent}/cachedContents', options)
|
1242
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListCachedContentsResponse::Representation
|
1243
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListCachedContentsResponse
|
1244
|
+
command.params['parent'] = parent unless parent.nil?
|
1245
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1246
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1247
|
+
command.query['fields'] = fields unless fields.nil?
|
1248
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1249
|
+
execute_or_queue_command(command, &block)
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
# Updates cached content configurations
|
1253
|
+
# @param [String] name
|
1254
|
+
# Immutable. Identifier. The server-generated resource name of the cached
|
1255
|
+
# content Format: projects/`project`/locations/`location`/cachedContents/`
|
1256
|
+
# cached_content`
|
1257
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent] google_cloud_aiplatform_v1_cached_content_object
|
1258
|
+
# @param [String] update_mask
|
1259
|
+
# Required. The list of fields to update.
|
1260
|
+
# @param [String] fields
|
1261
|
+
# Selector specifying which fields to include in a partial response.
|
1262
|
+
# @param [String] quota_user
|
1263
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1264
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1265
|
+
# @param [Google::Apis::RequestOptions] options
|
1266
|
+
# Request-specific options
|
1267
|
+
#
|
1268
|
+
# @yield [result, err] Result & error if block supplied
|
1269
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent] parsed result object
|
1270
|
+
# @yieldparam err [StandardError] error object if request failed
|
1271
|
+
#
|
1272
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent]
|
1273
|
+
#
|
1274
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1275
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1276
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1277
|
+
def patch_project_location_cached_content(name, google_cloud_aiplatform_v1_cached_content_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1278
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1279
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent::Representation
|
1280
|
+
command.request_object = google_cloud_aiplatform_v1_cached_content_object
|
1281
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent::Representation
|
1282
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CachedContent
|
1283
|
+
command.params['name'] = name unless name.nil?
|
1284
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1285
|
+
command.query['fields'] = fields unless fields.nil?
|
1286
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1287
|
+
execute_or_queue_command(command, &block)
|
1288
|
+
end
|
1289
|
+
|
964
1290
|
# Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The
|
965
1291
|
# server makes a best effort to cancel the job, but success is not guaranteed.
|
966
1292
|
# Clients can use JobService.GetCustomJob or other methods to check whether the
|
@@ -1156,8 +1482,8 @@ module Google
|
|
1156
1482
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
1157
1483
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
1158
1484
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1159
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
1160
|
-
# corresponding to `Code.CANCELLED`.
|
1485
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
1486
|
+
# , corresponding to `Code.CANCELLED`.
|
1161
1487
|
# @param [String] name
|
1162
1488
|
# The name of the operation resource to be cancelled.
|
1163
1489
|
# @param [String] fields
|
@@ -1527,8 +1853,8 @@ module Google
|
|
1527
1853
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
1528
1854
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
1529
1855
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1530
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
1531
|
-
# corresponding to `Code.CANCELLED`.
|
1856
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
1857
|
+
# , corresponding to `Code.CANCELLED`.
|
1532
1858
|
# @param [String] name
|
1533
1859
|
# The name of the operation resource to be cancelled.
|
1534
1860
|
# @param [String] fields
|
@@ -2094,8 +2420,8 @@ module Google
|
|
2094
2420
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
2095
2421
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
2096
2422
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
2097
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
2098
|
-
# corresponding to `Code.CANCELLED`.
|
2423
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
2424
|
+
# , corresponding to `Code.CANCELLED`.
|
2099
2425
|
# @param [String] name
|
2100
2426
|
# The name of the operation resource to be cancelled.
|
2101
2427
|
# @param [String] fields
|
@@ -2374,8 +2700,8 @@ module Google
|
|
2374
2700
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
2375
2701
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
2376
2702
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
2377
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
2378
|
-
# corresponding to `Code.CANCELLED`.
|
2703
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
2704
|
+
# , corresponding to `Code.CANCELLED`.
|
2379
2705
|
# @param [String] name
|
2380
2706
|
# The name of the operation resource to be cancelled.
|
2381
2707
|
# @param [String] fields
|
@@ -2557,8 +2883,8 @@ module Google
|
|
2557
2883
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
2558
2884
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
2559
2885
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
2560
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
2561
|
-
# corresponding to `Code.CANCELLED`.
|
2886
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
2887
|
+
# , corresponding to `Code.CANCELLED`.
|
2562
2888
|
# @param [String] name
|
2563
2889
|
# The name of the operation resource to be cancelled.
|
2564
2890
|
# @param [String] fields
|
@@ -2956,8 +3282,8 @@ module Google
|
|
2956
3282
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
2957
3283
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
2958
3284
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
2959
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
2960
|
-
# corresponding to `Code.CANCELLED`.
|
3285
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
3286
|
+
# , corresponding to `Code.CANCELLED`.
|
2961
3287
|
# @param [String] name
|
2962
3288
|
# The name of the operation resource to be cancelled.
|
2963
3289
|
# @param [String] fields
|
@@ -3217,8 +3543,8 @@ module Google
|
|
3217
3543
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
3218
3544
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
3219
3545
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
3220
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
3221
|
-
# corresponding to `Code.CANCELLED`.
|
3546
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
3547
|
+
# , corresponding to `Code.CANCELLED`.
|
3222
3548
|
# @param [String] name
|
3223
3549
|
# The name of the operation resource to be cancelled.
|
3224
3550
|
# @param [String] fields
|
@@ -3619,8 +3945,8 @@ module Google
|
|
3619
3945
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
3620
3946
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
3621
3947
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
3622
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
3623
|
-
# corresponding to `Code.CANCELLED`.
|
3948
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
3949
|
+
# , corresponding to `Code.CANCELLED`.
|
3624
3950
|
# @param [String] name
|
3625
3951
|
# The name of the operation resource to be cancelled.
|
3626
3952
|
# @param [String] fields
|
@@ -4562,6 +4888,39 @@ module Google
|
|
4562
4888
|
execute_or_queue_command(command, &block)
|
4563
4889
|
end
|
4564
4890
|
|
4891
|
+
# Updates an Endpoint with a long running operation.
|
4892
|
+
# @param [String] name
|
4893
|
+
# Output only. The resource name of the Endpoint.
|
4894
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest] google_cloud_aiplatform_v1_update_endpoint_long_running_request_object
|
4895
|
+
# @param [String] fields
|
4896
|
+
# Selector specifying which fields to include in a partial response.
|
4897
|
+
# @param [String] quota_user
|
4898
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4899
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4900
|
+
# @param [Google::Apis::RequestOptions] options
|
4901
|
+
# Request-specific options
|
4902
|
+
#
|
4903
|
+
# @yield [result, err] Result & error if block supplied
|
4904
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
4905
|
+
# @yieldparam err [StandardError] error object if request failed
|
4906
|
+
#
|
4907
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
4908
|
+
#
|
4909
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4910
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4911
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4912
|
+
def update_project_location_endpoint(name, google_cloud_aiplatform_v1_update_endpoint_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4913
|
+
command = make_simple_command(:post, 'v1/{+name}:update', options)
|
4914
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest::Representation
|
4915
|
+
command.request_object = google_cloud_aiplatform_v1_update_endpoint_long_running_request_object
|
4916
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
4917
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
4918
|
+
command.params['name'] = name unless name.nil?
|
4919
|
+
command.query['fields'] = fields unless fields.nil?
|
4920
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4921
|
+
execute_or_queue_command(command, &block)
|
4922
|
+
end
|
4923
|
+
|
4565
4924
|
# Exposes an OpenAI-compatible endpoint for chat completions.
|
4566
4925
|
# @param [String] endpoint
|
4567
4926
|
# Required. The name of the endpoint requested to serve the prediction. Format: `
|
@@ -4602,8 +4961,8 @@ module Google
|
|
4602
4961
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
4603
4962
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
4604
4963
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
4605
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
4606
|
-
# corresponding to `Code.CANCELLED`.
|
4964
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
4965
|
+
# , corresponding to `Code.CANCELLED`.
|
4607
4966
|
# @param [String] name
|
4608
4967
|
# The name of the operation resource to be cancelled.
|
4609
4968
|
# @param [String] fields
|
@@ -4906,9 +5265,9 @@ module Google
|
|
4906
5265
|
# than this value. If unspecified, at most 100 FeatureGroups will be returned.
|
4907
5266
|
# The maximum value is 100; any value greater than 100 will be coerced to 100.
|
4908
5267
|
# @param [String] page_token
|
4909
|
-
# A page token, received from a previous
|
5268
|
+
# A page token, received from a previous FeatureRegistryService.
|
4910
5269
|
# ListFeatureGroups call. Provide this to retrieve the subsequent page. When
|
4911
|
-
# paginating, all other parameters provided to
|
5270
|
+
# paginating, all other parameters provided to FeatureRegistryService.
|
4912
5271
|
# ListFeatureGroups must match the call that provided the page token.
|
4913
5272
|
# @param [String] fields
|
4914
5273
|
# Selector specifying which fields to include in a partial response.
|
@@ -8001,8 +8360,8 @@ module Google
|
|
8001
8360
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
8002
8361
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
8003
8362
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
8004
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
8005
|
-
# corresponding to `Code.CANCELLED`.
|
8363
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
8364
|
+
# , corresponding to `Code.CANCELLED`.
|
8006
8365
|
# @param [String] name
|
8007
8366
|
# The name of the operation resource to be cancelled.
|
8008
8367
|
# @param [String] fields
|
@@ -8184,8 +8543,8 @@ module Google
|
|
8184
8543
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
8185
8544
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
8186
8545
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
8187
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
8188
|
-
# corresponding to `Code.CANCELLED`.
|
8546
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
8547
|
+
# , corresponding to `Code.CANCELLED`.
|
8189
8548
|
# @param [String] name
|
8190
8549
|
# The name of the operation resource to be cancelled.
|
8191
8550
|
# @param [String] fields
|
@@ -8367,8 +8726,8 @@ module Google
|
|
8367
8726
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
8368
8727
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
8369
8728
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
8370
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
8371
|
-
# corresponding to `Code.CANCELLED`.
|
8729
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
8730
|
+
# , corresponding to `Code.CANCELLED`.
|
8372
8731
|
# @param [String] name
|
8373
8732
|
# The name of the operation resource to be cancelled.
|
8374
8733
|
# @param [String] fields
|
@@ -8745,8 +9104,8 @@ module Google
|
|
8745
9104
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
8746
9105
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
8747
9106
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
8748
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
8749
|
-
# corresponding to `Code.CANCELLED`.
|
9107
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
9108
|
+
# , corresponding to `Code.CANCELLED`.
|
8750
9109
|
# @param [String] name
|
8751
9110
|
# The name of the operation resource to be cancelled.
|
8752
9111
|
# @param [String] fields
|
@@ -9291,8 +9650,8 @@ module Google
|
|
9291
9650
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
9292
9651
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
9293
9652
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
9294
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
9295
|
-
# corresponding to `Code.CANCELLED`.
|
9653
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
9654
|
+
# , corresponding to `Code.CANCELLED`.
|
9296
9655
|
# @param [String] name
|
9297
9656
|
# The name of the operation resource to be cancelled.
|
9298
9657
|
# @param [String] fields
|
@@ -9720,8 +10079,8 @@ module Google
|
|
9720
10079
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
9721
10080
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
9722
10081
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
9723
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
9724
|
-
# corresponding to `Code.CANCELLED`.
|
10082
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
10083
|
+
# , corresponding to `Code.CANCELLED`.
|
9725
10084
|
# @param [String] name
|
9726
10085
|
# The name of the operation resource to be cancelled.
|
9727
10086
|
# @param [String] fields
|
@@ -10366,8 +10725,8 @@ module Google
|
|
10366
10725
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
10367
10726
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
10368
10727
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
10369
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
10370
|
-
# corresponding to `Code.CANCELLED`.
|
10728
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
10729
|
+
# , corresponding to `Code.CANCELLED`.
|
10371
10730
|
# @param [String] name
|
10372
10731
|
# The name of the operation resource to be cancelled.
|
10373
10732
|
# @param [String] fields
|
@@ -10951,8 +11310,8 @@ module Google
|
|
10951
11310
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
10952
11311
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
10953
11312
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
10954
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
10955
|
-
# corresponding to `Code.CANCELLED`.
|
11313
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
11314
|
+
# , corresponding to `Code.CANCELLED`.
|
10956
11315
|
# @param [String] name
|
10957
11316
|
# The name of the operation resource to be cancelled.
|
10958
11317
|
# @param [String] fields
|
@@ -11458,8 +11817,8 @@ module Google
|
|
11458
11817
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
11459
11818
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
11460
11819
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
11461
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
11462
|
-
# corresponding to `Code.CANCELLED`.
|
11820
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
11821
|
+
# , corresponding to `Code.CANCELLED`.
|
11463
11822
|
# @param [String] name
|
11464
11823
|
# The name of the operation resource to be cancelled.
|
11465
11824
|
# @param [String] fields
|
@@ -11761,8 +12120,8 @@ module Google
|
|
11761
12120
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
11762
12121
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
11763
12122
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
11764
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
11765
|
-
# corresponding to `Code.CANCELLED`.
|
12123
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
12124
|
+
# , corresponding to `Code.CANCELLED`.
|
11766
12125
|
# @param [String] name
|
11767
12126
|
# The name of the operation resource to be cancelled.
|
11768
12127
|
# @param [String] fields
|
@@ -12016,8 +12375,8 @@ module Google
|
|
12016
12375
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
12017
12376
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
12018
12377
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
12019
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
12020
|
-
# corresponding to `Code.CANCELLED`.
|
12378
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
12379
|
+
# , corresponding to `Code.CANCELLED`.
|
12021
12380
|
# @param [String] name
|
12022
12381
|
# The name of the operation resource to be cancelled.
|
12023
12382
|
# @param [String] fields
|
@@ -12511,8 +12870,8 @@ module Google
|
|
12511
12870
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
12512
12871
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
12513
12872
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
12514
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
12515
|
-
# corresponding to `Code.CANCELLED`.
|
12873
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
12874
|
+
# , corresponding to `Code.CANCELLED`.
|
12516
12875
|
# @param [String] name
|
12517
12876
|
# The name of the operation resource to be cancelled.
|
12518
12877
|
# @param [String] fields
|
@@ -13354,8 +13713,8 @@ module Google
|
|
13354
13713
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
13355
13714
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
13356
13715
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
13357
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
13358
|
-
# corresponding to `Code.CANCELLED`.
|
13716
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
13717
|
+
# , corresponding to `Code.CANCELLED`.
|
13359
13718
|
# @param [String] name
|
13360
13719
|
# The name of the operation resource to be cancelled.
|
13361
13720
|
# @param [String] fields
|
@@ -13650,8 +14009,8 @@ module Google
|
|
13650
14009
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
13651
14010
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
13652
14011
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
13653
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
13654
|
-
# corresponding to `Code.CANCELLED`.
|
14012
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
14013
|
+
# , corresponding to `Code.CANCELLED`.
|
13655
14014
|
# @param [String] name
|
13656
14015
|
# The name of the operation resource to be cancelled.
|
13657
14016
|
# @param [String] fields
|
@@ -14206,8 +14565,8 @@ module Google
|
|
14206
14565
|
# Optional. The standard list page size.
|
14207
14566
|
# @param [String] page_token
|
14208
14567
|
# Optional. The standard list page token. Typically obtained via
|
14209
|
-
#
|
14210
|
-
# ListNotebookExecutionJobs call.
|
14568
|
+
# ListNotebookExecutionJobsResponse.next_page_token of the previous
|
14569
|
+
# NotebookService.ListNotebookExecutionJobs call.
|
14211
14570
|
# @param [String] view
|
14212
14571
|
# Optional. The NotebookExecutionJob view. Defaults to BASIC.
|
14213
14572
|
# @param [String] fields
|
@@ -14248,8 +14607,8 @@ module Google
|
|
14248
14607
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
14249
14608
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
14250
14609
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
14251
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
14252
|
-
# corresponding to `Code.CANCELLED`.
|
14610
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
14611
|
+
# , corresponding to `Code.CANCELLED`.
|
14253
14612
|
# @param [String] name
|
14254
14613
|
# The name of the operation resource to be cancelled.
|
14255
14614
|
# @param [String] fields
|
@@ -14754,8 +15113,8 @@ module Google
|
|
14754
15113
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
14755
15114
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
14756
15115
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
14757
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
14758
|
-
# corresponding to `Code.CANCELLED`.
|
15116
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
15117
|
+
# , corresponding to `Code.CANCELLED`.
|
14759
15118
|
# @param [String] name
|
14760
15119
|
# The name of the operation resource to be cancelled.
|
14761
15120
|
# @param [String] fields
|
@@ -15216,8 +15575,8 @@ module Google
|
|
15216
15575
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
15217
15576
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
15218
15577
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
15219
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
15220
|
-
# corresponding to `Code.CANCELLED`.
|
15578
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
15579
|
+
# , corresponding to `Code.CANCELLED`.
|
15221
15580
|
# @param [String] name
|
15222
15581
|
# The name of the operation resource to be cancelled.
|
15223
15582
|
# @param [String] fields
|
@@ -15399,8 +15758,8 @@ module Google
|
|
15399
15758
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
15400
15759
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
15401
15760
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
15402
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
15403
|
-
# corresponding to `Code.CANCELLED`.
|
15761
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
15762
|
+
# , corresponding to `Code.CANCELLED`.
|
15404
15763
|
# @param [String] name
|
15405
15764
|
# The name of the operation resource to be cancelled.
|
15406
15765
|
# @param [String] fields
|
@@ -15686,7 +16045,7 @@ module Google
|
|
15686
16045
|
# Optional. The standard list page size.
|
15687
16046
|
# @param [String] page_token
|
15688
16047
|
# Optional. The standard list page token. Typically obtained via
|
15689
|
-
#
|
16048
|
+
# ListPersistentResourcesResponse.next_page_token of the previous
|
15690
16049
|
# PersistentResourceService.ListPersistentResource call.
|
15691
16050
|
# @param [String] fields
|
15692
16051
|
# Selector specifying which fields to include in a partial response.
|
@@ -15795,8 +16154,8 @@ module Google
|
|
15795
16154
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
15796
16155
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
15797
16156
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
15798
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
15799
|
-
# corresponding to `Code.CANCELLED`.
|
16157
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
16158
|
+
# , corresponding to `Code.CANCELLED`.
|
15800
16159
|
# @param [String] name
|
15801
16160
|
# The name of the operation resource to be cancelled.
|
15802
16161
|
# @param [String] fields
|
@@ -16267,8 +16626,8 @@ module Google
|
|
16267
16626
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
16268
16627
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
16269
16628
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
16270
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
16271
|
-
# corresponding to `Code.CANCELLED`.
|
16629
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
16630
|
+
# , corresponding to `Code.CANCELLED`.
|
16272
16631
|
# @param [String] name
|
16273
16632
|
# The name of the operation resource to be cancelled.
|
16274
16633
|
# @param [String] fields
|
@@ -16794,11 +17153,11 @@ module Google
|
|
16794
17153
|
execute_or_queue_command(command, &block)
|
16795
17154
|
end
|
16796
17155
|
|
16797
|
-
# Creates a
|
17156
|
+
# Creates a RagCorpus.
|
16798
17157
|
# @param [String] parent
|
16799
|
-
# Required. The resource name of the Location to create the
|
17158
|
+
# Required. The resource name of the Location to create the RagCorpus in. Format:
|
16800
17159
|
# `projects/`project`/locations/`location``
|
16801
|
-
# @param [Google::Apis::AiplatformV1::
|
17160
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus] google_cloud_aiplatform_v1_rag_corpus_object
|
16802
17161
|
# @param [String] fields
|
16803
17162
|
# Selector specifying which fields to include in a partial response.
|
16804
17163
|
# @param [String] quota_user
|
@@ -16808,21 +17167,718 @@ module Google
|
|
16808
17167
|
# Request-specific options
|
16809
17168
|
#
|
16810
17169
|
# @yield [result, err] Result & error if block supplied
|
16811
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
17170
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
16812
17171
|
# @yieldparam err [StandardError] error object if request failed
|
16813
17172
|
#
|
16814
|
-
# @return [Google::Apis::AiplatformV1::
|
17173
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
16815
17174
|
#
|
16816
17175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16817
17176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16818
17177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16819
|
-
def
|
16820
|
-
command = make_simple_command(:post, 'v1/{+parent}/
|
16821
|
-
command.request_representation = Google::Apis::AiplatformV1::
|
16822
|
-
command.request_object =
|
16823
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
16824
|
-
command.response_class = Google::Apis::AiplatformV1::
|
16825
|
-
command.params['parent'] = parent unless parent.nil?
|
17178
|
+
def create_project_location_rag_corpora(parent, google_cloud_aiplatform_v1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17179
|
+
command = make_simple_command(:post, 'v1/{+parent}/ragCorpora', options)
|
17180
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus::Representation
|
17181
|
+
command.request_object = google_cloud_aiplatform_v1_rag_corpus_object
|
17182
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17183
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17184
|
+
command.params['parent'] = parent unless parent.nil?
|
17185
|
+
command.query['fields'] = fields unless fields.nil?
|
17186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17187
|
+
execute_or_queue_command(command, &block)
|
17188
|
+
end
|
17189
|
+
|
17190
|
+
# Deletes a RagCorpus.
|
17191
|
+
# @param [String] name
|
17192
|
+
# Required. The name of the RagCorpus resource to be deleted. Format: `projects/`
|
17193
|
+
# project`/locations/`location`/ragCorpora/`rag_corpus``
|
17194
|
+
# @param [Boolean] force
|
17195
|
+
# Optional. If set to true, any RagFiles in this RagCorpus will also be deleted.
|
17196
|
+
# Otherwise, the request will only work if the RagCorpus has no RagFiles.
|
17197
|
+
# @param [String] fields
|
17198
|
+
# Selector specifying which fields to include in a partial response.
|
17199
|
+
# @param [String] quota_user
|
17200
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17201
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17202
|
+
# @param [Google::Apis::RequestOptions] options
|
17203
|
+
# Request-specific options
|
17204
|
+
#
|
17205
|
+
# @yield [result, err] Result & error if block supplied
|
17206
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17207
|
+
# @yieldparam err [StandardError] error object if request failed
|
17208
|
+
#
|
17209
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17210
|
+
#
|
17211
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17212
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17213
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17214
|
+
def delete_project_location_rag_corpora(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17215
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
17216
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17217
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17218
|
+
command.params['name'] = name unless name.nil?
|
17219
|
+
command.query['force'] = force unless force.nil?
|
17220
|
+
command.query['fields'] = fields unless fields.nil?
|
17221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17222
|
+
execute_or_queue_command(command, &block)
|
17223
|
+
end
|
17224
|
+
|
17225
|
+
# Gets a RagCorpus.
|
17226
|
+
# @param [String] name
|
17227
|
+
# Required. The name of the RagCorpus resource. Format: `projects/`project`/
|
17228
|
+
# locations/`location`/ragCorpora/`rag_corpus``
|
17229
|
+
# @param [String] fields
|
17230
|
+
# Selector specifying which fields to include in a partial response.
|
17231
|
+
# @param [String] quota_user
|
17232
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17233
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17234
|
+
# @param [Google::Apis::RequestOptions] options
|
17235
|
+
# Request-specific options
|
17236
|
+
#
|
17237
|
+
# @yield [result, err] Result & error if block supplied
|
17238
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus] parsed result object
|
17239
|
+
# @yieldparam err [StandardError] error object if request failed
|
17240
|
+
#
|
17241
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus]
|
17242
|
+
#
|
17243
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17244
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17245
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17246
|
+
def get_project_location_rag_corpora(name, fields: nil, quota_user: nil, options: nil, &block)
|
17247
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
17248
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus::Representation
|
17249
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus
|
17250
|
+
command.params['name'] = name unless name.nil?
|
17251
|
+
command.query['fields'] = fields unless fields.nil?
|
17252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17253
|
+
execute_or_queue_command(command, &block)
|
17254
|
+
end
|
17255
|
+
|
17256
|
+
# Lists RagCorpora in a Location.
|
17257
|
+
# @param [String] parent
|
17258
|
+
# Required. The resource name of the Location from which to list the RagCorpora.
|
17259
|
+
# Format: `projects/`project`/locations/`location``
|
17260
|
+
# @param [Fixnum] page_size
|
17261
|
+
# Optional. The standard list page size.
|
17262
|
+
# @param [String] page_token
|
17263
|
+
# Optional. The standard list page token. Typically obtained via
|
17264
|
+
# ListRagCorporaResponse.next_page_token of the previous VertexRagDataService.
|
17265
|
+
# ListRagCorpora call.
|
17266
|
+
# @param [String] fields
|
17267
|
+
# Selector specifying which fields to include in a partial response.
|
17268
|
+
# @param [String] quota_user
|
17269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17271
|
+
# @param [Google::Apis::RequestOptions] options
|
17272
|
+
# Request-specific options
|
17273
|
+
#
|
17274
|
+
# @yield [result, err] Result & error if block supplied
|
17275
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagCorporaResponse] parsed result object
|
17276
|
+
# @yieldparam err [StandardError] error object if request failed
|
17277
|
+
#
|
17278
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagCorporaResponse]
|
17279
|
+
#
|
17280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17283
|
+
def list_project_location_rag_corporas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17284
|
+
command = make_simple_command(:get, 'v1/{+parent}/ragCorpora', options)
|
17285
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagCorporaResponse::Representation
|
17286
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagCorporaResponse
|
17287
|
+
command.params['parent'] = parent unless parent.nil?
|
17288
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17289
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17290
|
+
command.query['fields'] = fields unless fields.nil?
|
17291
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17292
|
+
execute_or_queue_command(command, &block)
|
17293
|
+
end
|
17294
|
+
|
17295
|
+
# Updates a RagCorpus.
|
17296
|
+
# @param [String] name
|
17297
|
+
# Output only. The resource name of the RagCorpus.
|
17298
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus] google_cloud_aiplatform_v1_rag_corpus_object
|
17299
|
+
# @param [String] fields
|
17300
|
+
# Selector specifying which fields to include in a partial response.
|
17301
|
+
# @param [String] quota_user
|
17302
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17303
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17304
|
+
# @param [Google::Apis::RequestOptions] options
|
17305
|
+
# Request-specific options
|
17306
|
+
#
|
17307
|
+
# @yield [result, err] Result & error if block supplied
|
17308
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17309
|
+
# @yieldparam err [StandardError] error object if request failed
|
17310
|
+
#
|
17311
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17312
|
+
#
|
17313
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17314
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17315
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17316
|
+
def patch_project_location_rag_corpora(name, google_cloud_aiplatform_v1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17317
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
17318
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagCorpus::Representation
|
17319
|
+
command.request_object = google_cloud_aiplatform_v1_rag_corpus_object
|
17320
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17321
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17322
|
+
command.params['name'] = name unless name.nil?
|
17323
|
+
command.query['fields'] = fields unless fields.nil?
|
17324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17325
|
+
execute_or_queue_command(command, &block)
|
17326
|
+
end
|
17327
|
+
|
17328
|
+
# Deletes a RagFile.
|
17329
|
+
# @param [String] name
|
17330
|
+
# Required. The name of the RagFile resource to be deleted. Format: `projects/`
|
17331
|
+
# project`/locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
17332
|
+
# @param [String] fields
|
17333
|
+
# Selector specifying which fields to include in a partial response.
|
17334
|
+
# @param [String] quota_user
|
17335
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17336
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17337
|
+
# @param [Google::Apis::RequestOptions] options
|
17338
|
+
# Request-specific options
|
17339
|
+
#
|
17340
|
+
# @yield [result, err] Result & error if block supplied
|
17341
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17342
|
+
# @yieldparam err [StandardError] error object if request failed
|
17343
|
+
#
|
17344
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17345
|
+
#
|
17346
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17347
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17348
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17349
|
+
def delete_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
17350
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
17351
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17352
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17353
|
+
command.params['name'] = name unless name.nil?
|
17354
|
+
command.query['fields'] = fields unless fields.nil?
|
17355
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17356
|
+
execute_or_queue_command(command, &block)
|
17357
|
+
end
|
17358
|
+
|
17359
|
+
# Gets a RagFile.
|
17360
|
+
# @param [String] name
|
17361
|
+
# Required. The name of the RagFile resource. Format: `projects/`project`/
|
17362
|
+
# locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
17363
|
+
# @param [String] fields
|
17364
|
+
# Selector specifying which fields to include in a partial response.
|
17365
|
+
# @param [String] quota_user
|
17366
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17367
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17368
|
+
# @param [Google::Apis::RequestOptions] options
|
17369
|
+
# Request-specific options
|
17370
|
+
#
|
17371
|
+
# @yield [result, err] Result & error if block supplied
|
17372
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFile] parsed result object
|
17373
|
+
# @yieldparam err [StandardError] error object if request failed
|
17374
|
+
#
|
17375
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFile]
|
17376
|
+
#
|
17377
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17378
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17379
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17380
|
+
def get_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
17381
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
17382
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFile::Representation
|
17383
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFile
|
17384
|
+
command.params['name'] = name unless name.nil?
|
17385
|
+
command.query['fields'] = fields unless fields.nil?
|
17386
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17387
|
+
execute_or_queue_command(command, &block)
|
17388
|
+
end
|
17389
|
+
|
17390
|
+
# Import files from Google Cloud Storage or Google Drive into a RagCorpus.
|
17391
|
+
# @param [String] parent
|
17392
|
+
# Required. The name of the RagCorpus resource into which to import files.
|
17393
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
17394
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImportRagFilesRequest] google_cloud_aiplatform_v1_import_rag_files_request_object
|
17395
|
+
# @param [String] fields
|
17396
|
+
# Selector specifying which fields to include in a partial response.
|
17397
|
+
# @param [String] quota_user
|
17398
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17399
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17400
|
+
# @param [Google::Apis::RequestOptions] options
|
17401
|
+
# Request-specific options
|
17402
|
+
#
|
17403
|
+
# @yield [result, err] Result & error if block supplied
|
17404
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17405
|
+
# @yieldparam err [StandardError] error object if request failed
|
17406
|
+
#
|
17407
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17408
|
+
#
|
17409
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17410
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17411
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17412
|
+
def import_project_location_rag_corpora_rag_file(parent, google_cloud_aiplatform_v1_import_rag_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17413
|
+
command = make_simple_command(:post, 'v1/{+parent}/ragFiles:import', options)
|
17414
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ImportRagFilesRequest::Representation
|
17415
|
+
command.request_object = google_cloud_aiplatform_v1_import_rag_files_request_object
|
17416
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17417
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17418
|
+
command.params['parent'] = parent unless parent.nil?
|
17419
|
+
command.query['fields'] = fields unless fields.nil?
|
17420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17421
|
+
execute_or_queue_command(command, &block)
|
17422
|
+
end
|
17423
|
+
|
17424
|
+
# Lists RagFiles in a RagCorpus.
|
17425
|
+
# @param [String] parent
|
17426
|
+
# Required. The resource name of the RagCorpus from which to list the RagFiles.
|
17427
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
17428
|
+
# @param [Fixnum] page_size
|
17429
|
+
# Optional. The standard list page size.
|
17430
|
+
# @param [String] page_token
|
17431
|
+
# Optional. The standard list page token. Typically obtained via
|
17432
|
+
# ListRagFilesResponse.next_page_token of the previous VertexRagDataService.
|
17433
|
+
# ListRagFiles call.
|
17434
|
+
# @param [String] fields
|
17435
|
+
# Selector specifying which fields to include in a partial response.
|
17436
|
+
# @param [String] quota_user
|
17437
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17438
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17439
|
+
# @param [Google::Apis::RequestOptions] options
|
17440
|
+
# Request-specific options
|
17441
|
+
#
|
17442
|
+
# @yield [result, err] Result & error if block supplied
|
17443
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagFilesResponse] parsed result object
|
17444
|
+
# @yieldparam err [StandardError] error object if request failed
|
17445
|
+
#
|
17446
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagFilesResponse]
|
17447
|
+
#
|
17448
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17449
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17450
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17451
|
+
def list_project_location_rag_corpora_rag_files(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17452
|
+
command = make_simple_command(:get, 'v1/{+parent}/ragFiles', options)
|
17453
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagFilesResponse::Representation
|
17454
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListRagFilesResponse
|
17455
|
+
command.params['parent'] = parent unless parent.nil?
|
17456
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17457
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17458
|
+
command.query['fields'] = fields unless fields.nil?
|
17459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17460
|
+
execute_or_queue_command(command, &block)
|
17461
|
+
end
|
17462
|
+
|
17463
|
+
# Creates a reasoning engine.
|
17464
|
+
# @param [String] parent
|
17465
|
+
# Required. The resource name of the Location to create the ReasoningEngine in.
|
17466
|
+
# Format: `projects/`project`/locations/`location``
|
17467
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
|
17468
|
+
# @param [String] fields
|
17469
|
+
# Selector specifying which fields to include in a partial response.
|
17470
|
+
# @param [String] quota_user
|
17471
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17472
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17473
|
+
# @param [Google::Apis::RequestOptions] options
|
17474
|
+
# Request-specific options
|
17475
|
+
#
|
17476
|
+
# @yield [result, err] Result & error if block supplied
|
17477
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17478
|
+
# @yieldparam err [StandardError] error object if request failed
|
17479
|
+
#
|
17480
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17481
|
+
#
|
17482
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17483
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17484
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17485
|
+
def create_project_location_reasoning_engine(parent, google_cloud_aiplatform_v1_reasoning_engine_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17486
|
+
command = make_simple_command(:post, 'v1/{+parent}/reasoningEngines', options)
|
17487
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
17488
|
+
command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
|
17489
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17490
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17491
|
+
command.params['parent'] = parent unless parent.nil?
|
17492
|
+
command.query['fields'] = fields unless fields.nil?
|
17493
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17494
|
+
execute_or_queue_command(command, &block)
|
17495
|
+
end
|
17496
|
+
|
17497
|
+
# Deletes a reasoning engine.
|
17498
|
+
# @param [String] name
|
17499
|
+
# Required. The name of the ReasoningEngine resource to be deleted. Format: `
|
17500
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
17501
|
+
# @param [String] fields
|
17502
|
+
# Selector specifying which fields to include in a partial response.
|
17503
|
+
# @param [String] quota_user
|
17504
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17505
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17506
|
+
# @param [Google::Apis::RequestOptions] options
|
17507
|
+
# Request-specific options
|
17508
|
+
#
|
17509
|
+
# @yield [result, err] Result & error if block supplied
|
17510
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17511
|
+
# @yieldparam err [StandardError] error object if request failed
|
17512
|
+
#
|
17513
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17514
|
+
#
|
17515
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17516
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17517
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17518
|
+
def delete_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
|
17519
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
17520
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17521
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17522
|
+
command.params['name'] = name unless name.nil?
|
17523
|
+
command.query['fields'] = fields unless fields.nil?
|
17524
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17525
|
+
execute_or_queue_command(command, &block)
|
17526
|
+
end
|
17527
|
+
|
17528
|
+
# Gets a reasoning engine.
|
17529
|
+
# @param [String] name
|
17530
|
+
# Required. The name of the ReasoningEngine resource. Format: `projects/`project`
|
17531
|
+
# /locations/`location`/reasoningEngines/`reasoning_engine``
|
17532
|
+
# @param [String] fields
|
17533
|
+
# Selector specifying which fields to include in a partial response.
|
17534
|
+
# @param [String] quota_user
|
17535
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17536
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17537
|
+
# @param [Google::Apis::RequestOptions] options
|
17538
|
+
# Request-specific options
|
17539
|
+
#
|
17540
|
+
# @yield [result, err] Result & error if block supplied
|
17541
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] parsed result object
|
17542
|
+
# @yieldparam err [StandardError] error object if request failed
|
17543
|
+
#
|
17544
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine]
|
17545
|
+
#
|
17546
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17547
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17548
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17549
|
+
def get_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
|
17550
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
17551
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
17552
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine
|
17553
|
+
command.params['name'] = name unless name.nil?
|
17554
|
+
command.query['fields'] = fields unless fields.nil?
|
17555
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17556
|
+
execute_or_queue_command(command, &block)
|
17557
|
+
end
|
17558
|
+
|
17559
|
+
# Lists reasoning engines in a location.
|
17560
|
+
# @param [String] parent
|
17561
|
+
# Required. The resource name of the Location to list the ReasoningEngines from.
|
17562
|
+
# Format: `projects/`project`/locations/`location``
|
17563
|
+
# @param [String] filter
|
17564
|
+
# Optional. The standard list filter. More detail in [AIP-160](https://google.
|
17565
|
+
# aip.dev/160).
|
17566
|
+
# @param [Fixnum] page_size
|
17567
|
+
# Optional. The standard list page size.
|
17568
|
+
# @param [String] page_token
|
17569
|
+
# Optional. The standard list page token.
|
17570
|
+
# @param [String] fields
|
17571
|
+
# Selector specifying which fields to include in a partial response.
|
17572
|
+
# @param [String] quota_user
|
17573
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17574
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17575
|
+
# @param [Google::Apis::RequestOptions] options
|
17576
|
+
# Request-specific options
|
17577
|
+
#
|
17578
|
+
# @yield [result, err] Result & error if block supplied
|
17579
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse] parsed result object
|
17580
|
+
# @yieldparam err [StandardError] error object if request failed
|
17581
|
+
#
|
17582
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse]
|
17583
|
+
#
|
17584
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17585
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17586
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17587
|
+
def list_project_location_reasoning_engines(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17588
|
+
command = make_simple_command(:get, 'v1/{+parent}/reasoningEngines', options)
|
17589
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse::Representation
|
17590
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse
|
17591
|
+
command.params['parent'] = parent unless parent.nil?
|
17592
|
+
command.query['filter'] = filter unless filter.nil?
|
17593
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17594
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17595
|
+
command.query['fields'] = fields unless fields.nil?
|
17596
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17597
|
+
execute_or_queue_command(command, &block)
|
17598
|
+
end
|
17599
|
+
|
17600
|
+
# Updates a reasoning engine.
|
17601
|
+
# @param [String] name
|
17602
|
+
# Identifier. The resource name of the ReasoningEngine.
|
17603
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
|
17604
|
+
# @param [String] update_mask
|
17605
|
+
# Optional. Mask specifying which fields to update.
|
17606
|
+
# @param [String] fields
|
17607
|
+
# Selector specifying which fields to include in a partial response.
|
17608
|
+
# @param [String] quota_user
|
17609
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17610
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17611
|
+
# @param [Google::Apis::RequestOptions] options
|
17612
|
+
# Request-specific options
|
17613
|
+
#
|
17614
|
+
# @yield [result, err] Result & error if block supplied
|
17615
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17616
|
+
# @yieldparam err [StandardError] error object if request failed
|
17617
|
+
#
|
17618
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17619
|
+
#
|
17620
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17621
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17622
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17623
|
+
def patch_project_location_reasoning_engine(name, google_cloud_aiplatform_v1_reasoning_engine_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17624
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
17625
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
17626
|
+
command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
|
17627
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17628
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17629
|
+
command.params['name'] = name unless name.nil?
|
17630
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
17631
|
+
command.query['fields'] = fields unless fields.nil?
|
17632
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17633
|
+
execute_or_queue_command(command, &block)
|
17634
|
+
end
|
17635
|
+
|
17636
|
+
# Queries using a reasoning engine.
|
17637
|
+
# @param [String] name
|
17638
|
+
# Required. The name of the ReasoningEngine resource to use. Format: `projects/`
|
17639
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
17640
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest] google_cloud_aiplatform_v1_query_reasoning_engine_request_object
|
17641
|
+
# @param [String] fields
|
17642
|
+
# Selector specifying which fields to include in a partial response.
|
17643
|
+
# @param [String] quota_user
|
17644
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17645
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17646
|
+
# @param [Google::Apis::RequestOptions] options
|
17647
|
+
# Request-specific options
|
17648
|
+
#
|
17649
|
+
# @yield [result, err] Result & error if block supplied
|
17650
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] parsed result object
|
17651
|
+
# @yieldparam err [StandardError] error object if request failed
|
17652
|
+
#
|
17653
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse]
|
17654
|
+
#
|
17655
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17656
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17657
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17658
|
+
def query_project_location_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17659
|
+
command = make_simple_command(:post, 'v1/{+name}:query', options)
|
17660
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest::Representation
|
17661
|
+
command.request_object = google_cloud_aiplatform_v1_query_reasoning_engine_request_object
|
17662
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation
|
17663
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse
|
17664
|
+
command.params['name'] = name unless name.nil?
|
17665
|
+
command.query['fields'] = fields unless fields.nil?
|
17666
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17667
|
+
execute_or_queue_command(command, &block)
|
17668
|
+
end
|
17669
|
+
|
17670
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
17671
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
17672
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
17673
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
17674
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
17675
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
17676
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
17677
|
+
# , corresponding to `Code.CANCELLED`.
|
17678
|
+
# @param [String] name
|
17679
|
+
# The name of the operation resource to be cancelled.
|
17680
|
+
# @param [String] fields
|
17681
|
+
# Selector specifying which fields to include in a partial response.
|
17682
|
+
# @param [String] quota_user
|
17683
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17684
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17685
|
+
# @param [Google::Apis::RequestOptions] options
|
17686
|
+
# Request-specific options
|
17687
|
+
#
|
17688
|
+
# @yield [result, err] Result & error if block supplied
|
17689
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
17690
|
+
# @yieldparam err [StandardError] error object if request failed
|
17691
|
+
#
|
17692
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
17693
|
+
#
|
17694
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17695
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17696
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17697
|
+
def cancel_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
17698
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
17699
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
17700
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
17701
|
+
command.params['name'] = name unless name.nil?
|
17702
|
+
command.query['fields'] = fields unless fields.nil?
|
17703
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17704
|
+
execute_or_queue_command(command, &block)
|
17705
|
+
end
|
17706
|
+
|
17707
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
17708
|
+
# longer interested in the operation result. It does not cancel the operation.
|
17709
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
17710
|
+
# UNIMPLEMENTED`.
|
17711
|
+
# @param [String] name
|
17712
|
+
# The name of the operation resource to be deleted.
|
17713
|
+
# @param [String] fields
|
17714
|
+
# Selector specifying which fields to include in a partial response.
|
17715
|
+
# @param [String] quota_user
|
17716
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17717
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17718
|
+
# @param [Google::Apis::RequestOptions] options
|
17719
|
+
# Request-specific options
|
17720
|
+
#
|
17721
|
+
# @yield [result, err] Result & error if block supplied
|
17722
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
17723
|
+
# @yieldparam err [StandardError] error object if request failed
|
17724
|
+
#
|
17725
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
17726
|
+
#
|
17727
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17728
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17729
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17730
|
+
def delete_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
17731
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
17732
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
17733
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
17734
|
+
command.params['name'] = name unless name.nil?
|
17735
|
+
command.query['fields'] = fields unless fields.nil?
|
17736
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17737
|
+
execute_or_queue_command(command, &block)
|
17738
|
+
end
|
17739
|
+
|
17740
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
17741
|
+
# to poll the operation result at intervals as recommended by the API service.
|
17742
|
+
# @param [String] name
|
17743
|
+
# The name of the operation resource.
|
17744
|
+
# @param [String] fields
|
17745
|
+
# Selector specifying which fields to include in a partial response.
|
17746
|
+
# @param [String] quota_user
|
17747
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17748
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17749
|
+
# @param [Google::Apis::RequestOptions] options
|
17750
|
+
# Request-specific options
|
17751
|
+
#
|
17752
|
+
# @yield [result, err] Result & error if block supplied
|
17753
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17754
|
+
# @yieldparam err [StandardError] error object if request failed
|
17755
|
+
#
|
17756
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17757
|
+
#
|
17758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17761
|
+
def get_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
17762
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
17763
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17764
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17765
|
+
command.params['name'] = name unless name.nil?
|
17766
|
+
command.query['fields'] = fields unless fields.nil?
|
17767
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17768
|
+
execute_or_queue_command(command, &block)
|
17769
|
+
end
|
17770
|
+
|
17771
|
+
# Lists operations that match the specified filter in the request. If the server
|
17772
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
17773
|
+
# @param [String] name
|
17774
|
+
# The name of the operation's parent resource.
|
17775
|
+
# @param [String] filter
|
17776
|
+
# The standard list filter.
|
17777
|
+
# @param [Fixnum] page_size
|
17778
|
+
# The standard list page size.
|
17779
|
+
# @param [String] page_token
|
17780
|
+
# The standard list page token.
|
17781
|
+
# @param [String] fields
|
17782
|
+
# Selector specifying which fields to include in a partial response.
|
17783
|
+
# @param [String] quota_user
|
17784
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17785
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17786
|
+
# @param [Google::Apis::RequestOptions] options
|
17787
|
+
# Request-specific options
|
17788
|
+
#
|
17789
|
+
# @yield [result, err] Result & error if block supplied
|
17790
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
|
17791
|
+
# @yieldparam err [StandardError] error object if request failed
|
17792
|
+
#
|
17793
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
|
17794
|
+
#
|
17795
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17796
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17797
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17798
|
+
def list_project_location_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17799
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
17800
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
17801
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
17802
|
+
command.params['name'] = name unless name.nil?
|
17803
|
+
command.query['filter'] = filter unless filter.nil?
|
17804
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17805
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17806
|
+
command.query['fields'] = fields unless fields.nil?
|
17807
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17808
|
+
execute_or_queue_command(command, &block)
|
17809
|
+
end
|
17810
|
+
|
17811
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
17812
|
+
# specified timeout, returning the latest state. If the operation is already
|
17813
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
17814
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
17815
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
17816
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
17817
|
+
# the latest state before the specified timeout (including immediately), meaning
|
17818
|
+
# even an immediate response is no guarantee that the operation is done.
|
17819
|
+
# @param [String] name
|
17820
|
+
# The name of the operation resource to wait on.
|
17821
|
+
# @param [String] timeout
|
17822
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
17823
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
17824
|
+
# context deadline is also specified, the shorter one will be used.
|
17825
|
+
# @param [String] fields
|
17826
|
+
# Selector specifying which fields to include in a partial response.
|
17827
|
+
# @param [String] quota_user
|
17828
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17829
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17830
|
+
# @param [Google::Apis::RequestOptions] options
|
17831
|
+
# Request-specific options
|
17832
|
+
#
|
17833
|
+
# @yield [result, err] Result & error if block supplied
|
17834
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
17835
|
+
# @yieldparam err [StandardError] error object if request failed
|
17836
|
+
#
|
17837
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
17838
|
+
#
|
17839
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17840
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17841
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17842
|
+
def wait_project_location_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17843
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
17844
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
17845
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
17846
|
+
command.params['name'] = name unless name.nil?
|
17847
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
17848
|
+
command.query['fields'] = fields unless fields.nil?
|
17849
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17850
|
+
execute_or_queue_command(command, &block)
|
17851
|
+
end
|
17852
|
+
|
17853
|
+
# Creates a Schedule.
|
17854
|
+
# @param [String] parent
|
17855
|
+
# Required. The resource name of the Location to create the Schedule in. Format:
|
17856
|
+
# `projects/`project`/locations/`location``
|
17857
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schedule] google_cloud_aiplatform_v1_schedule_object
|
17858
|
+
# @param [String] fields
|
17859
|
+
# Selector specifying which fields to include in a partial response.
|
17860
|
+
# @param [String] quota_user
|
17861
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17862
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17863
|
+
# @param [Google::Apis::RequestOptions] options
|
17864
|
+
# Request-specific options
|
17865
|
+
#
|
17866
|
+
# @yield [result, err] Result & error if block supplied
|
17867
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schedule] parsed result object
|
17868
|
+
# @yieldparam err [StandardError] error object if request failed
|
17869
|
+
#
|
17870
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schedule]
|
17871
|
+
#
|
17872
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17873
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17874
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17875
|
+
def create_project_location_schedule(parent, google_cloud_aiplatform_v1_schedule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17876
|
+
command = make_simple_command(:post, 'v1/{+parent}/schedules', options)
|
17877
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schedule::Representation
|
17878
|
+
command.request_object = google_cloud_aiplatform_v1_schedule_object
|
17879
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schedule::Representation
|
17880
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schedule
|
17881
|
+
command.params['parent'] = parent unless parent.nil?
|
16826
17882
|
command.query['fields'] = fields unless fields.nil?
|
16827
17883
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16828
17884
|
execute_or_queue_command(command, &block)
|
@@ -17037,7 +18093,7 @@ module Google
|
|
17037
18093
|
# state to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is
|
17038
18094
|
# resumed, new runs will be scheduled starting from the next execution time
|
17039
18095
|
# after the current time based on the time_specification in the Schedule. If
|
17040
|
-
# Schedule.
|
18096
|
+
# Schedule.catch_up is set up true, all missed runs will be scheduled for
|
17041
18097
|
# backfill first.
|
17042
18098
|
# @param [String] name
|
17043
18099
|
# Required. The name of the Schedule resource to be resumed. Format: `projects/`
|
@@ -17078,8 +18134,8 @@ module Google
|
|
17078
18134
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
17079
18135
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
17080
18136
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
17081
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
17082
|
-
# corresponding to `Code.CANCELLED`.
|
18137
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
18138
|
+
# , corresponding to `Code.CANCELLED`.
|
17083
18139
|
# @param [String] name
|
17084
18140
|
# The name of the operation resource to be cancelled.
|
17085
18141
|
# @param [String] fields
|
@@ -17440,8 +18496,8 @@ module Google
|
|
17440
18496
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
17441
18497
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
17442
18498
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
17443
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
17444
|
-
# corresponding to `Code.CANCELLED`.
|
18499
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
18500
|
+
# , corresponding to `Code.CANCELLED`.
|
17445
18501
|
# @param [String] name
|
17446
18502
|
# The name of the operation resource to be cancelled.
|
17447
18503
|
# @param [String] fields
|
@@ -17793,8 +18849,8 @@ module Google
|
|
17793
18849
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
17794
18850
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
17795
18851
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
17796
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
17797
|
-
# corresponding to `Code.CANCELLED`.
|
18852
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
18853
|
+
# , corresponding to `Code.CANCELLED`.
|
17798
18854
|
# @param [String] name
|
17799
18855
|
# The name of the operation resource to be cancelled.
|
17800
18856
|
# @param [String] fields
|
@@ -18322,8 +19378,8 @@ module Google
|
|
18322
19378
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
18323
19379
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
18324
19380
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
18325
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
18326
|
-
# corresponding to `Code.CANCELLED`.
|
19381
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
19382
|
+
# , corresponding to `Code.CANCELLED`.
|
18327
19383
|
# @param [String] name
|
18328
19384
|
# The name of the operation resource to be cancelled.
|
18329
19385
|
# @param [String] fields
|
@@ -19066,8 +20122,8 @@ module Google
|
|
19066
20122
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
19067
20123
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
19068
20124
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
19069
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
19070
|
-
# corresponding to `Code.CANCELLED`.
|
20125
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
20126
|
+
# , corresponding to `Code.CANCELLED`.
|
19071
20127
|
# @param [String] name
|
19072
20128
|
# The name of the operation resource to be cancelled.
|
19073
20129
|
# @param [String] fields
|
@@ -19518,8 +20574,8 @@ module Google
|
|
19518
20574
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
19519
20575
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
19520
20576
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
19521
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
19522
|
-
# corresponding to `Code.CANCELLED`.
|
20577
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
20578
|
+
# , corresponding to `Code.CANCELLED`.
|
19523
20579
|
# @param [String] name
|
19524
20580
|
# The name of the operation resource to be cancelled.
|
19525
20581
|
# @param [String] fields
|
@@ -20011,8 +21067,8 @@ module Google
|
|
20011
21067
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
20012
21068
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
20013
21069
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
20014
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
20015
|
-
# corresponding to `Code.CANCELLED`.
|
21070
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
21071
|
+
# , corresponding to `Code.CANCELLED`.
|
20016
21072
|
# @param [String] name
|
20017
21073
|
# The name of the operation resource to be cancelled.
|
20018
21074
|
# @param [String] fields
|
@@ -20194,8 +21250,8 @@ module Google
|
|
20194
21250
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
20195
21251
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
20196
21252
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
20197
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
20198
|
-
# corresponding to `Code.CANCELLED`.
|
21253
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
21254
|
+
# , corresponding to `Code.CANCELLED`.
|
20199
21255
|
# @param [String] name
|
20200
21256
|
# The name of the operation resource to be cancelled.
|
20201
21257
|
# @param [String] fields
|
@@ -20570,8 +21626,8 @@ module Google
|
|
20570
21626
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
20571
21627
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
20572
21628
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
20573
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
20574
|
-
# corresponding to `Code.CANCELLED`.
|
21629
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
21630
|
+
# , corresponding to `Code.CANCELLED`.
|
20575
21631
|
# @param [String] name
|
20576
21632
|
# The name of the operation resource to be cancelled.
|
20577
21633
|
# @param [String] fields
|
@@ -20863,8 +21919,9 @@ module Google
|
|
20863
21919
|
# @param [Fixnum] page_size
|
20864
21920
|
# Optional. The standard list page size.
|
20865
21921
|
# @param [String] page_token
|
20866
|
-
# Optional. The standard list page token. Typically obtained via
|
20867
|
-
# next_page_token of the previous GenAiTuningService.
|
21922
|
+
# Optional. The standard list page token. Typically obtained via
|
21923
|
+
# ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.
|
21924
|
+
# ListTuningJob][] call.
|
20868
21925
|
# @param [String] fields
|
20869
21926
|
# Selector specifying which fields to include in a partial response.
|
20870
21927
|
# @param [String] quota_user
|
@@ -20935,8 +21992,8 @@ module Google
|
|
20935
21992
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
20936
21993
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
20937
21994
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
20938
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
20939
|
-
# corresponding to `Code.CANCELLED`.
|
21995
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
21996
|
+
# , corresponding to `Code.CANCELLED`.
|
20940
21997
|
# @param [String] name
|
20941
21998
|
# The name of the operation resource to be cancelled.
|
20942
21999
|
# @param [String] fields
|