google-apis-aiplatform_v1 0.32.0 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c0c04608d5b66f9f1763ebb5f539b6de4ce6477a5585c4d18f2792a029e736b
|
4
|
+
data.tar.gz: 936101605822a4c059f8956f8754331ab9eb960f772ed6e4dc9956c1b5f04ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5af961bc7e96a9704de6d124b23a1474ec0ad052549c7923890c46f305bf54aeba127f01ffc7fd3eafe8c894b57cbd48dc28234088399110915af822e36f894
|
7
|
+
data.tar.gz: 8bb15cd482926f04b7038bd5b43656de62efe283f5d7b1390037967167ecb3753a9e6f1ee882cf1c7b25e370055c2add18f0121583cd37871a3befc3fddda618
|
data/CHANGELOG.md
CHANGED
@@ -8161,9 +8161,9 @@ module Google
|
|
8161
8161
|
attr_accessor :entity_id_columns
|
8162
8162
|
|
8163
8163
|
# Optional. If the source is a time-series source, this can be set to control
|
8164
|
-
# how downstream sources (ex:
|
8165
|
-
#
|
8166
|
-
#
|
8164
|
+
# how downstream sources (ex: FeatureView ) will treat time-series sources. If
|
8165
|
+
# not set, will treat the source as a time-series source with `feature_timestamp`
|
8166
|
+
# as timestamp column and no scan boundary.
|
8167
8167
|
# Corresponds to the JSON property `timeSeries`
|
8168
8168
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries]
|
8169
8169
|
attr_accessor :time_series
|
@@ -8185,8 +8185,9 @@ module Google
|
|
8185
8185
|
include Google::Apis::Core::Hashable
|
8186
8186
|
|
8187
8187
|
# Optional. Column hosting timestamp values for a time-series source. Will be
|
8188
|
-
# used to determine the latest
|
8189
|
-
# provided,
|
8188
|
+
# used to determine the latest `feature_values` for each entity. Optional. If
|
8189
|
+
# not provided, column named `feature_timestamp` of type `TIMESTAMP` will be
|
8190
|
+
# used.
|
8190
8191
|
# Corresponds to the JSON property `timestampColumn`
|
8191
8192
|
# @return [String]
|
8192
8193
|
attr_accessor :timestamp_column
|
@@ -9160,6 +9161,12 @@ module Google
|
|
9160
9161
|
# @return [Fixnum]
|
9161
9162
|
attr_accessor :row_synced
|
9162
9163
|
|
9164
|
+
# Lower bound of the system time watermark for the sync job. This is only set
|
9165
|
+
# for continuously syncing feature views.
|
9166
|
+
# Corresponds to the JSON property `systemWatermarkTime`
|
9167
|
+
# @return [String]
|
9168
|
+
attr_accessor :system_watermark_time
|
9169
|
+
|
9163
9170
|
# Output only. BigQuery slot milliseconds consumed for the sync job.
|
9164
9171
|
# Corresponds to the JSON property `totalSlot`
|
9165
9172
|
# @return [Fixnum]
|
@@ -9172,6 +9179,7 @@ module Google
|
|
9172
9179
|
# Update properties of this object
|
9173
9180
|
def update!(**args)
|
9174
9181
|
@row_synced = args[:row_synced] if args.key?(:row_synced)
|
9182
|
+
@system_watermark_time = args[:system_watermark_time] if args.key?(:system_watermark_time)
|
9175
9183
|
@total_slot = args[:total_slot] if args.key?(:total_slot)
|
9176
9184
|
end
|
9177
9185
|
end
|
@@ -10445,7 +10453,7 @@ module Google
|
|
10445
10453
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema]
|
10446
10454
|
attr_accessor :response_schema
|
10447
10455
|
|
10448
|
-
#
|
10456
|
+
# The configuration for routing the request to a specific model.
|
10449
10457
|
# Corresponds to the JSON property `routingConfig`
|
10450
10458
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfigRoutingConfig]
|
10451
10459
|
attr_accessor :routing_config
|
@@ -10496,7 +10504,7 @@ module Google
|
|
10496
10504
|
end
|
10497
10505
|
end
|
10498
10506
|
|
10499
|
-
#
|
10507
|
+
# The configuration for routing the request to a specific model.
|
10500
10508
|
class GoogleCloudAiplatformV1GenerationConfigRoutingConfig
|
10501
10509
|
include Google::Apis::Core::Hashable
|
10502
10510
|
|
@@ -10546,8 +10554,8 @@ module Google
|
|
10546
10554
|
class GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode
|
10547
10555
|
include Google::Apis::Core::Hashable
|
10548
10556
|
|
10549
|
-
# The model name to use. Only the public LLM models are accepted. e.g. gemini-1.
|
10550
|
-
# 5-pro-001.
|
10557
|
+
# The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.
|
10558
|
+
# 5-pro-001'.
|
10551
10559
|
# Corresponds to the JSON property `modelName`
|
10552
10560
|
# @return [String]
|
10553
10561
|
attr_accessor :model_name
|
@@ -16500,11 +16508,11 @@ module Google
|
|
16500
16508
|
end
|
16501
16509
|
|
16502
16510
|
# Numeric filter is used to search a subset of the entities by using boolean
|
16503
|
-
# rules on numeric columns. For example: Database Point 0: `name:
|
16504
|
-
# 42` `name:
|
16505
|
-
# name:
|
16506
|
-
#
|
16507
|
-
# Matches Point 1, 2 `name:
|
16511
|
+
# rules on numeric columns. For example: Database Point 0: `name: "a" value_int:
|
16512
|
+
# 42` `name: "b" value_float: 1.0` Database Point 1: `name: "a" value_int: 10` `
|
16513
|
+
# name: "b" value_float: 2.0` Database Point 2: `name: "a" value_int: -1` `name:
|
16514
|
+
# "b" value_float: 3.0` Query: `name: "a" value_int: 12 operator: LESS` //
|
16515
|
+
# Matches Point 1, 2 `name: "b" value_float: 2.0 operator: EQUAL` // Matches
|
16508
16516
|
# Point 1
|
16509
16517
|
class GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter
|
16510
16518
|
include Google::Apis::Core::Hashable
|
@@ -18014,6 +18022,18 @@ module Google
|
|
18014
18022
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ResourceRuntimeSpec]
|
18015
18023
|
attr_accessor :resource_runtime_spec
|
18016
18024
|
|
18025
|
+
# Output only. Reserved for future use.
|
18026
|
+
# Corresponds to the JSON property `satisfiesPzi`
|
18027
|
+
# @return [Boolean]
|
18028
|
+
attr_accessor :satisfies_pzi
|
18029
|
+
alias_method :satisfies_pzi?, :satisfies_pzi
|
18030
|
+
|
18031
|
+
# Output only. Reserved for future use.
|
18032
|
+
# Corresponds to the JSON property `satisfiesPzs`
|
18033
|
+
# @return [Boolean]
|
18034
|
+
attr_accessor :satisfies_pzs
|
18035
|
+
alias_method :satisfies_pzs?, :satisfies_pzs
|
18036
|
+
|
18017
18037
|
# Output only. Time when the PersistentResource for the first time entered the `
|
18018
18038
|
# RUNNING` state.
|
18019
18039
|
# Corresponds to the JSON property `startTime`
|
@@ -18047,6 +18067,8 @@ module Google
|
|
18047
18067
|
@resource_pools = args[:resource_pools] if args.key?(:resource_pools)
|
18048
18068
|
@resource_runtime = args[:resource_runtime] if args.key?(:resource_runtime)
|
18049
18069
|
@resource_runtime_spec = args[:resource_runtime_spec] if args.key?(:resource_runtime_spec)
|
18070
|
+
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
18071
|
+
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
18050
18072
|
@start_time = args[:start_time] if args.key?(:start_time)
|
18051
18073
|
@state = args[:state] if args.key?(:state)
|
18052
18074
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -19208,6 +19230,11 @@ module Google
|
|
19208
19230
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke]
|
19209
19231
|
attr_accessor :deploy_gke
|
19210
19232
|
|
19233
|
+
# Multiple setups to deploy the PublisherModel.
|
19234
|
+
# Corresponds to the JSON property `multiDeployVertex`
|
19235
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex]
|
19236
|
+
attr_accessor :multi_deploy_vertex
|
19237
|
+
|
19211
19238
|
# The regional resource name or the URI. Key is region, e.g., us-central1,
|
19212
19239
|
# europe-west2, global, etc..
|
19213
19240
|
# Corresponds to the JSON property `openEvaluationPipeline`
|
@@ -19274,6 +19301,7 @@ module Google
|
|
19274
19301
|
@create_application = args[:create_application] if args.key?(:create_application)
|
19275
19302
|
@deploy = args[:deploy] if args.key?(:deploy)
|
19276
19303
|
@deploy_gke = args[:deploy_gke] if args.key?(:deploy_gke)
|
19304
|
+
@multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
|
19277
19305
|
@open_evaluation_pipeline = args[:open_evaluation_pipeline] if args.key?(:open_evaluation_pipeline)
|
19278
19306
|
@open_fine_tuning_pipeline = args[:open_fine_tuning_pipeline] if args.key?(:open_fine_tuning_pipeline)
|
19279
19307
|
@open_fine_tuning_pipelines = args[:open_fine_tuning_pipelines] if args.key?(:open_fine_tuning_pipelines)
|
@@ -19421,6 +19449,25 @@ module Google
|
|
19421
19449
|
end
|
19422
19450
|
end
|
19423
19451
|
|
19452
|
+
# Multiple setups to deploy the PublisherModel.
|
19453
|
+
class GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex
|
19454
|
+
include Google::Apis::Core::Hashable
|
19455
|
+
|
19456
|
+
# Optional. One click deployment configurations.
|
19457
|
+
# Corresponds to the JSON property `multiDeployVertex`
|
19458
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeploy>]
|
19459
|
+
attr_accessor :multi_deploy_vertex
|
19460
|
+
|
19461
|
+
def initialize(**args)
|
19462
|
+
update!(**args)
|
19463
|
+
end
|
19464
|
+
|
19465
|
+
# Update properties of this object
|
19466
|
+
def update!(**args)
|
19467
|
+
@multi_deploy_vertex = args[:multi_deploy_vertex] if args.key?(:multi_deploy_vertex)
|
19468
|
+
end
|
19469
|
+
end
|
19470
|
+
|
19424
19471
|
# Open fine tuning pipelines.
|
19425
19472
|
class GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
|
19426
19473
|
include Google::Apis::Core::Hashable
|
@@ -21200,11 +21247,16 @@ module Google
|
|
21200
21247
|
alias_method :disable_attribution?, :disable_attribution
|
21201
21248
|
|
21202
21249
|
# Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
|
21203
|
-
# google.com/
|
21250
|
+
# google.com/products/agent-builder
|
21204
21251
|
# Corresponds to the JSON property `vertexAiSearch`
|
21205
21252
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearch]
|
21206
21253
|
attr_accessor :vertex_ai_search
|
21207
21254
|
|
21255
|
+
# Retrieve from Vertex RAG Store for grounding.
|
21256
|
+
# Corresponds to the JSON property `vertexRagStore`
|
21257
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStore]
|
21258
|
+
attr_accessor :vertex_rag_store
|
21259
|
+
|
21208
21260
|
def initialize(**args)
|
21209
21261
|
update!(**args)
|
21210
21262
|
end
|
@@ -21213,6 +21265,7 @@ module Google
|
|
21213
21265
|
def update!(**args)
|
21214
21266
|
@disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
|
21215
21267
|
@vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
|
21268
|
+
@vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
|
21216
21269
|
end
|
21217
21270
|
end
|
21218
21271
|
|
@@ -21895,6 +21948,14 @@ module Google
|
|
21895
21948
|
attr_accessor :disable_retries
|
21896
21949
|
alias_method :disable_retries?, :disable_retries
|
21897
21950
|
|
21951
|
+
# Optional. This is the maximum duration that a job will wait for the requested
|
21952
|
+
# resources to be provisioned if the scheduling strategy is set to [Strategy.
|
21953
|
+
# DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is
|
21954
|
+
# 24 hours.
|
21955
|
+
# Corresponds to the JSON property `maxWaitDuration`
|
21956
|
+
# @return [String]
|
21957
|
+
attr_accessor :max_wait_duration
|
21958
|
+
|
21898
21959
|
# Restarts the entire CustomJob if a worker gets restarted. This feature can be
|
21899
21960
|
# used by distributed training jobs that are not resilient to workers leaving
|
21900
21961
|
# and joining a job.
|
@@ -21920,6 +21981,7 @@ module Google
|
|
21920
21981
|
# Update properties of this object
|
21921
21982
|
def update!(**args)
|
21922
21983
|
@disable_retries = args[:disable_retries] if args.key?(:disable_retries)
|
21984
|
+
@max_wait_duration = args[:max_wait_duration] if args.key?(:max_wait_duration)
|
21923
21985
|
@restart_job_on_worker_restart = args[:restart_job_on_worker_restart] if args.key?(:restart_job_on_worker_restart)
|
21924
21986
|
@strategy = args[:strategy] if args.key?(:strategy)
|
21925
21987
|
@timeout = args[:timeout] if args.key?(:timeout)
|
@@ -30239,11 +30301,21 @@ module Google
|
|
30239
30301
|
# @return [Fixnum]
|
30240
30302
|
attr_accessor :total_billable_token_count
|
30241
30303
|
|
30304
|
+
# The number of examples in the dataset that have been truncated by any amount.
|
30305
|
+
# Corresponds to the JSON property `totalTruncatedExampleCount`
|
30306
|
+
# @return [Fixnum]
|
30307
|
+
attr_accessor :total_truncated_example_count
|
30308
|
+
|
30242
30309
|
# Output only. Number of tuning characters in the tuning dataset.
|
30243
30310
|
# Corresponds to the JSON property `totalTuningCharacterCount`
|
30244
30311
|
# @return [Fixnum]
|
30245
30312
|
attr_accessor :total_tuning_character_count
|
30246
30313
|
|
30314
|
+
# A partial sample of the indices (starting from 1) of the truncated examples.
|
30315
|
+
# Corresponds to the JSON property `truncatedExampleIndices`
|
30316
|
+
# @return [Array<Fixnum>]
|
30317
|
+
attr_accessor :truncated_example_indices
|
30318
|
+
|
30247
30319
|
# Output only. Number of examples in the tuning dataset.
|
30248
30320
|
# Corresponds to the JSON property `tuningDatasetExampleCount`
|
30249
30321
|
# @return [Fixnum]
|
@@ -30282,7 +30354,9 @@ module Google
|
|
30282
30354
|
def update!(**args)
|
30283
30355
|
@total_billable_character_count = args[:total_billable_character_count] if args.key?(:total_billable_character_count)
|
30284
30356
|
@total_billable_token_count = args[:total_billable_token_count] if args.key?(:total_billable_token_count)
|
30357
|
+
@total_truncated_example_count = args[:total_truncated_example_count] if args.key?(:total_truncated_example_count)
|
30285
30358
|
@total_tuning_character_count = args[:total_tuning_character_count] if args.key?(:total_tuning_character_count)
|
30359
|
+
@truncated_example_indices = args[:truncated_example_indices] if args.key?(:truncated_example_indices)
|
30286
30360
|
@tuning_dataset_example_count = args[:tuning_dataset_example_count] if args.key?(:tuning_dataset_example_count)
|
30287
30361
|
@tuning_step_count = args[:tuning_step_count] if args.key?(:tuning_step_count)
|
30288
30362
|
@user_dataset_examples = args[:user_dataset_examples] if args.key?(:user_dataset_examples)
|
@@ -32845,11 +32919,11 @@ module Google
|
|
32845
32919
|
end
|
32846
32920
|
|
32847
32921
|
# Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
|
32848
|
-
# google.com/
|
32922
|
+
# google.com/products/agent-builder
|
32849
32923
|
class GoogleCloudAiplatformV1VertexAiSearch
|
32850
32924
|
include Google::Apis::Core::Hashable
|
32851
32925
|
|
32852
|
-
# Required. Fully-qualified Vertex AI Search
|
32926
|
+
# Required. Fully-qualified Vertex AI Search data store resource ID. Format: `
|
32853
32927
|
# projects/`project`/locations/`location`/collections/`collection`/dataStores/`
|
32854
32928
|
# dataStore``
|
32855
32929
|
# Corresponds to the JSON property `datastore`
|
@@ -32866,6 +32940,72 @@ module Google
|
|
32866
32940
|
end
|
32867
32941
|
end
|
32868
32942
|
|
32943
|
+
# Retrieve from Vertex RAG Store for grounding.
|
32944
|
+
class GoogleCloudAiplatformV1VertexRagStore
|
32945
|
+
include Google::Apis::Core::Hashable
|
32946
|
+
|
32947
|
+
# Optional. Deprecated. Please use rag_resources instead.
|
32948
|
+
# Corresponds to the JSON property `ragCorpora`
|
32949
|
+
# @return [Array<String>]
|
32950
|
+
attr_accessor :rag_corpora
|
32951
|
+
|
32952
|
+
# Optional. The representation of the rag source. It can be used to specify
|
32953
|
+
# corpus only or ragfiles. Currently only support one corpus or multiple files
|
32954
|
+
# from one corpus. In the future we may open up multiple corpora support.
|
32955
|
+
# Corresponds to the JSON property `ragResources`
|
32956
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStoreRagResource>]
|
32957
|
+
attr_accessor :rag_resources
|
32958
|
+
|
32959
|
+
# Optional. Number of top k results to return from the selected corpora.
|
32960
|
+
# Corresponds to the JSON property `similarityTopK`
|
32961
|
+
# @return [Fixnum]
|
32962
|
+
attr_accessor :similarity_top_k
|
32963
|
+
|
32964
|
+
# Optional. Only return results with vector distance smaller than the threshold.
|
32965
|
+
# Corresponds to the JSON property `vectorDistanceThreshold`
|
32966
|
+
# @return [Float]
|
32967
|
+
attr_accessor :vector_distance_threshold
|
32968
|
+
|
32969
|
+
def initialize(**args)
|
32970
|
+
update!(**args)
|
32971
|
+
end
|
32972
|
+
|
32973
|
+
# Update properties of this object
|
32974
|
+
def update!(**args)
|
32975
|
+
@rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
|
32976
|
+
@rag_resources = args[:rag_resources] if args.key?(:rag_resources)
|
32977
|
+
@similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
|
32978
|
+
@vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
|
32979
|
+
end
|
32980
|
+
end
|
32981
|
+
|
32982
|
+
# The definition of the Rag resource.
|
32983
|
+
class GoogleCloudAiplatformV1VertexRagStoreRagResource
|
32984
|
+
include Google::Apis::Core::Hashable
|
32985
|
+
|
32986
|
+
# Optional. RagCorpora resource name. Format: `projects/`project`/locations/`
|
32987
|
+
# location`/ragCorpora/`rag_corpus``
|
32988
|
+
# Corresponds to the JSON property `ragCorpus`
|
32989
|
+
# @return [String]
|
32990
|
+
attr_accessor :rag_corpus
|
32991
|
+
|
32992
|
+
# Optional. rag_file_id. The files should be in the same rag_corpus set in
|
32993
|
+
# rag_corpus field.
|
32994
|
+
# Corresponds to the JSON property `ragFileIds`
|
32995
|
+
# @return [Array<String>]
|
32996
|
+
attr_accessor :rag_file_ids
|
32997
|
+
|
32998
|
+
def initialize(**args)
|
32999
|
+
update!(**args)
|
33000
|
+
end
|
33001
|
+
|
33002
|
+
# Update properties of this object
|
33003
|
+
def update!(**args)
|
33004
|
+
@rag_corpus = args[:rag_corpus] if args.key?(:rag_corpus)
|
33005
|
+
@rag_file_ids = args[:rag_file_ids] if args.key?(:rag_file_ids)
|
33006
|
+
end
|
33007
|
+
end
|
33008
|
+
|
32869
33009
|
# Metadata describes the input video content.
|
32870
33010
|
class GoogleCloudAiplatformV1VideoMetadata
|
32871
33011
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AiplatformV1
|
18
18
|
# Version of the google-apis-aiplatform_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.33.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240816"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -3112,6 +3112,12 @@ module Google
|
|
3112
3112
|
include Google::Apis::Core::JsonObjectSupport
|
3113
3113
|
end
|
3114
3114
|
|
3115
|
+
class GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex
|
3116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3117
|
+
|
3118
|
+
include Google::Apis::Core::JsonObjectSupport
|
3119
|
+
end
|
3120
|
+
|
3115
3121
|
class GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
|
3116
3122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3117
3123
|
|
@@ -5470,6 +5476,18 @@ module Google
|
|
5470
5476
|
include Google::Apis::Core::JsonObjectSupport
|
5471
5477
|
end
|
5472
5478
|
|
5479
|
+
class GoogleCloudAiplatformV1VertexRagStore
|
5480
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
5481
|
+
|
5482
|
+
include Google::Apis::Core::JsonObjectSupport
|
5483
|
+
end
|
5484
|
+
|
5485
|
+
class GoogleCloudAiplatformV1VertexRagStoreRagResource
|
5486
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
5487
|
+
|
5488
|
+
include Google::Apis::Core::JsonObjectSupport
|
5489
|
+
end
|
5490
|
+
|
5473
5491
|
class GoogleCloudAiplatformV1VideoMetadata
|
5474
5492
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
5475
5493
|
|
@@ -8173,6 +8191,7 @@ module Google
|
|
8173
8191
|
# @private
|
8174
8192
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8175
8193
|
property :row_synced, :numeric_string => true, as: 'rowSynced'
|
8194
|
+
property :system_watermark_time, as: 'systemWatermarkTime'
|
8176
8195
|
property :total_slot, :numeric_string => true, as: 'totalSlot'
|
8177
8196
|
end
|
8178
8197
|
end
|
@@ -10649,6 +10668,8 @@ module Google
|
|
10649
10668
|
|
10650
10669
|
property :resource_runtime_spec, as: 'resourceRuntimeSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ResourceRuntimeSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ResourceRuntimeSpec::Representation
|
10651
10670
|
|
10671
|
+
property :satisfies_pzi, as: 'satisfiesPzi'
|
10672
|
+
property :satisfies_pzs, as: 'satisfiesPzs'
|
10652
10673
|
property :start_time, as: 'startTime'
|
10653
10674
|
property :state, as: 'state'
|
10654
10675
|
property :update_time, as: 'updateTime'
|
@@ -10960,6 +10981,8 @@ module Google
|
|
10960
10981
|
|
10961
10982
|
property :deploy_gke, as: 'deployGke', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke::Representation
|
10962
10983
|
|
10984
|
+
property :multi_deploy_vertex, as: 'multiDeployVertex', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex::Representation
|
10985
|
+
|
10963
10986
|
property :open_evaluation_pipeline, as: 'openEvaluationPipeline', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences::Representation
|
10964
10987
|
|
10965
10988
|
property :open_fine_tuning_pipeline, as: 'openFineTuningPipeline', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences::Representation
|
@@ -11020,6 +11043,14 @@ module Google
|
|
11020
11043
|
end
|
11021
11044
|
end
|
11022
11045
|
|
11046
|
+
class GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex
|
11047
|
+
# @private
|
11048
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
11049
|
+
collection :multi_deploy_vertex, as: 'multiDeployVertex', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeploy, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModelCallToActionDeploy::Representation
|
11050
|
+
|
11051
|
+
end
|
11052
|
+
end
|
11053
|
+
|
11023
11054
|
class GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
|
11024
11055
|
# @private
|
11025
11056
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -11596,6 +11627,8 @@ module Google
|
|
11596
11627
|
property :disable_attribution, as: 'disableAttribution'
|
11597
11628
|
property :vertex_ai_search, as: 'vertexAiSearch', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearch, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearch::Representation
|
11598
11629
|
|
11630
|
+
property :vertex_rag_store, as: 'vertexRagStore', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStore, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStore::Representation
|
11631
|
+
|
11599
11632
|
end
|
11600
11633
|
end
|
11601
11634
|
|
@@ -11787,6 +11820,7 @@ module Google
|
|
11787
11820
|
# @private
|
11788
11821
|
class Representation < Google::Apis::Core::JsonRepresentation
|
11789
11822
|
property :disable_retries, as: 'disableRetries'
|
11823
|
+
property :max_wait_duration, as: 'maxWaitDuration'
|
11790
11824
|
property :restart_job_on_worker_restart, as: 'restartJobOnWorkerRestart'
|
11791
11825
|
property :strategy, as: 'strategy'
|
11792
11826
|
property :timeout, as: 'timeout'
|
@@ -14014,7 +14048,9 @@ module Google
|
|
14014
14048
|
class Representation < Google::Apis::Core::JsonRepresentation
|
14015
14049
|
property :total_billable_character_count, :numeric_string => true, as: 'totalBillableCharacterCount'
|
14016
14050
|
property :total_billable_token_count, :numeric_string => true, as: 'totalBillableTokenCount'
|
14051
|
+
property :total_truncated_example_count, :numeric_string => true, as: 'totalTruncatedExampleCount'
|
14017
14052
|
property :total_tuning_character_count, :numeric_string => true, as: 'totalTuningCharacterCount'
|
14053
|
+
collection :truncated_example_indices, as: 'truncatedExampleIndices'
|
14018
14054
|
property :tuning_dataset_example_count, :numeric_string => true, as: 'tuningDatasetExampleCount'
|
14019
14055
|
property :tuning_step_count, :numeric_string => true, as: 'tuningStepCount'
|
14020
14056
|
collection :user_dataset_examples, as: 'userDatasetExamples', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
|
@@ -14795,6 +14831,25 @@ module Google
|
|
14795
14831
|
end
|
14796
14832
|
end
|
14797
14833
|
|
14834
|
+
class GoogleCloudAiplatformV1VertexRagStore
|
14835
|
+
# @private
|
14836
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
14837
|
+
collection :rag_corpora, as: 'ragCorpora'
|
14838
|
+
collection :rag_resources, as: 'ragResources', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStoreRagResource, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStoreRagResource::Representation
|
14839
|
+
|
14840
|
+
property :similarity_top_k, as: 'similarityTopK'
|
14841
|
+
property :vector_distance_threshold, as: 'vectorDistanceThreshold'
|
14842
|
+
end
|
14843
|
+
end
|
14844
|
+
|
14845
|
+
class GoogleCloudAiplatformV1VertexRagStoreRagResource
|
14846
|
+
# @private
|
14847
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
14848
|
+
property :rag_corpus, as: 'ragCorpus'
|
14849
|
+
collection :rag_file_ids, as: 'ragFileIds'
|
14850
|
+
end
|
14851
|
+
end
|
14852
|
+
|
14798
14853
|
class GoogleCloudAiplatformV1VideoMetadata
|
14799
14854
|
# @private
|
14800
14855
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,6 +52,552 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Creates a Dataset.
|
56
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] google_cloud_aiplatform_v1_dataset_object
|
57
|
+
# @param [String] parent
|
58
|
+
# Required. The resource name of the Location to create the Dataset in. Format: `
|
59
|
+
# projects/`project`/locations/`location``
|
60
|
+
# @param [String] fields
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
62
|
+
# @param [String] quota_user
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
+
# @param [Google::Apis::RequestOptions] options
|
66
|
+
# Request-specific options
|
67
|
+
#
|
68
|
+
# @yield [result, err] Result & error if block supplied
|
69
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
70
|
+
# @yieldparam err [StandardError] error object if request failed
|
71
|
+
#
|
72
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
73
|
+
#
|
74
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
+
def create_dataset(google_cloud_aiplatform_v1_dataset_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
78
|
+
command = make_simple_command(:post, 'v1/datasets', options)
|
79
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
80
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_object
|
81
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
82
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
83
|
+
command.query['parent'] = parent unless parent.nil?
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
execute_or_queue_command(command, &block)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Deletes a Dataset.
|
90
|
+
# @param [String] name
|
91
|
+
# Required. The resource name of the Dataset to delete. Format: `projects/`
|
92
|
+
# project`/locations/`location`/datasets/`dataset``
|
93
|
+
# @param [String] fields
|
94
|
+
# Selector specifying which fields to include in a partial response.
|
95
|
+
# @param [String] quota_user
|
96
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
97
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
98
|
+
# @param [Google::Apis::RequestOptions] options
|
99
|
+
# Request-specific options
|
100
|
+
#
|
101
|
+
# @yield [result, err] Result & error if block supplied
|
102
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
104
|
+
#
|
105
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
106
|
+
#
|
107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
+
def delete_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
|
111
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
112
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
113
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
114
|
+
command.params['name'] = name unless name.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Gets a Dataset.
|
121
|
+
# @param [String] name
|
122
|
+
# Required. The name of the Dataset resource.
|
123
|
+
# @param [String] read_mask
|
124
|
+
# Mask specifying which fields to read.
|
125
|
+
# @param [String] fields
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
127
|
+
# @param [String] quota_user
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def get_dataset(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
144
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
145
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset
|
146
|
+
command.params['name'] = name unless name.nil?
|
147
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
148
|
+
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
execute_or_queue_command(command, &block)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Lists Datasets in a Location.
|
154
|
+
# @param [String] filter
|
155
|
+
# An expression for filtering the results of the request. For field names both
|
156
|
+
# snake_case and camelCase are supported. * `display_name`: supports = and != * `
|
157
|
+
# metadata_schema_uri`: supports = and != * `labels` supports general map
|
158
|
+
# functions that is: * `labels.key=value` - key:value equality * `labels.key:*
|
159
|
+
# or labels:key - key existence * A key including a space must be quoted. `
|
160
|
+
# labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels.
|
161
|
+
# myKey="myValue"`
|
162
|
+
# @param [String] order_by
|
163
|
+
# A comma-separated list of fields to order by, sorted in ascending order. Use "
|
164
|
+
# desc" after a field name for descending. Supported fields: * `display_name` * `
|
165
|
+
# create_time` * `update_time`
|
166
|
+
# @param [Fixnum] page_size
|
167
|
+
# The standard list page size.
|
168
|
+
# @param [String] page_token
|
169
|
+
# The standard list page token.
|
170
|
+
# @param [String] parent
|
171
|
+
# Required. The name of the Dataset's parent resource. Format: `projects/`
|
172
|
+
# project`/locations/`location``
|
173
|
+
# @param [String] read_mask
|
174
|
+
# Mask specifying which fields to read.
|
175
|
+
# @param [String] fields
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
177
|
+
# @param [String] quota_user
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def list_datasets(filter: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:get, 'v1/datasets', options)
|
194
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse::Representation
|
195
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetsResponse
|
196
|
+
command.query['filter'] = filter unless filter.nil?
|
197
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
198
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
199
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
200
|
+
command.query['parent'] = parent unless parent.nil?
|
201
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
202
|
+
command.query['fields'] = fields unless fields.nil?
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
+
execute_or_queue_command(command, &block)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Updates a Dataset.
|
208
|
+
# @param [String] name
|
209
|
+
# Output only. Identifier. The resource name of the Dataset.
|
210
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] google_cloud_aiplatform_v1_dataset_object
|
211
|
+
# @param [String] update_mask
|
212
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
213
|
+
# definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` *
|
214
|
+
# `description` * `labels`
|
215
|
+
# @param [String] fields
|
216
|
+
# Selector specifying which fields to include in a partial response.
|
217
|
+
# @param [String] quota_user
|
218
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
219
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
220
|
+
# @param [Google::Apis::RequestOptions] options
|
221
|
+
# Request-specific options
|
222
|
+
#
|
223
|
+
# @yield [result, err] Result & error if block supplied
|
224
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset] parsed result object
|
225
|
+
# @yieldparam err [StandardError] error object if request failed
|
226
|
+
#
|
227
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset]
|
228
|
+
#
|
229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
232
|
+
def patch_dataset(name, google_cloud_aiplatform_v1_dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
233
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
234
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
235
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_object
|
236
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset::Representation
|
237
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Dataset
|
238
|
+
command.params['name'] = name unless name.nil?
|
239
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
240
|
+
command.query['fields'] = fields unless fields.nil?
|
241
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
242
|
+
execute_or_queue_command(command, &block)
|
243
|
+
end
|
244
|
+
|
245
|
+
# Create a version from a Dataset.
|
246
|
+
# @param [String] parent
|
247
|
+
# Required. The name of the Dataset resource. Format: `projects/`project`/
|
248
|
+
# locations/`location`/datasets/`dataset``
|
249
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] google_cloud_aiplatform_v1_dataset_version_object
|
250
|
+
# @param [String] fields
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
252
|
+
# @param [String] quota_user
|
253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
255
|
+
# @param [Google::Apis::RequestOptions] options
|
256
|
+
# Request-specific options
|
257
|
+
#
|
258
|
+
# @yield [result, err] Result & error if block supplied
|
259
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
260
|
+
# @yieldparam err [StandardError] error object if request failed
|
261
|
+
#
|
262
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
263
|
+
#
|
264
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
+
def create_dataset_dataset_version(parent, google_cloud_aiplatform_v1_dataset_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
268
|
+
command = make_simple_command(:post, 'v1/{+parent}/datasetVersions', options)
|
269
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
270
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_version_object
|
271
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
272
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
273
|
+
command.params['parent'] = parent unless parent.nil?
|
274
|
+
command.query['fields'] = fields unless fields.nil?
|
275
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
276
|
+
execute_or_queue_command(command, &block)
|
277
|
+
end
|
278
|
+
|
279
|
+
# Deletes a Dataset version.
|
280
|
+
# @param [String] name
|
281
|
+
# Required. The resource name of the Dataset version to delete. Format: `
|
282
|
+
# projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
|
283
|
+
# dataset_version``
|
284
|
+
# @param [String] fields
|
285
|
+
# Selector specifying which fields to include in a partial response.
|
286
|
+
# @param [String] quota_user
|
287
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
288
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
289
|
+
# @param [Google::Apis::RequestOptions] options
|
290
|
+
# Request-specific options
|
291
|
+
#
|
292
|
+
# @yield [result, err] Result & error if block supplied
|
293
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
294
|
+
# @yieldparam err [StandardError] error object if request failed
|
295
|
+
#
|
296
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
297
|
+
#
|
298
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
299
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
300
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
301
|
+
def delete_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
302
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
303
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
304
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
305
|
+
command.params['name'] = name unless name.nil?
|
306
|
+
command.query['fields'] = fields unless fields.nil?
|
307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
308
|
+
execute_or_queue_command(command, &block)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Gets a Dataset version.
|
312
|
+
# @param [String] name
|
313
|
+
# Required. The resource name of the Dataset version to delete. Format: `
|
314
|
+
# projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/`
|
315
|
+
# dataset_version``
|
316
|
+
# @param [String] read_mask
|
317
|
+
# Mask specifying which fields to read.
|
318
|
+
# @param [String] fields
|
319
|
+
# Selector specifying which fields to include in a partial response.
|
320
|
+
# @param [String] quota_user
|
321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
323
|
+
# @param [Google::Apis::RequestOptions] options
|
324
|
+
# Request-specific options
|
325
|
+
#
|
326
|
+
# @yield [result, err] Result & error if block supplied
|
327
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] parsed result object
|
328
|
+
# @yieldparam err [StandardError] error object if request failed
|
329
|
+
#
|
330
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion]
|
331
|
+
#
|
332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
335
|
+
def get_dataset_dataset_version(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
336
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
337
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
338
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion
|
339
|
+
command.params['name'] = name unless name.nil?
|
340
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
341
|
+
command.query['fields'] = fields unless fields.nil?
|
342
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
343
|
+
execute_or_queue_command(command, &block)
|
344
|
+
end
|
345
|
+
|
346
|
+
# Lists DatasetVersions in a Dataset.
|
347
|
+
# @param [String] parent
|
348
|
+
# Required. The resource name of the Dataset to list DatasetVersions from.
|
349
|
+
# Format: `projects/`project`/locations/`location`/datasets/`dataset``
|
350
|
+
# @param [String] filter
|
351
|
+
# Optional. The standard list filter.
|
352
|
+
# @param [String] order_by
|
353
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
354
|
+
# order. Use "desc" after a field name for descending.
|
355
|
+
# @param [Fixnum] page_size
|
356
|
+
# Optional. The standard list page size.
|
357
|
+
# @param [String] page_token
|
358
|
+
# Optional. The standard list page token.
|
359
|
+
# @param [String] read_mask
|
360
|
+
# Optional. Mask specifying which fields to read.
|
361
|
+
# @param [String] fields
|
362
|
+
# Selector specifying which fields to include in a partial response.
|
363
|
+
# @param [String] quota_user
|
364
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
365
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
366
|
+
# @param [Google::Apis::RequestOptions] options
|
367
|
+
# Request-specific options
|
368
|
+
#
|
369
|
+
# @yield [result, err] Result & error if block supplied
|
370
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse] parsed result object
|
371
|
+
# @yieldparam err [StandardError] error object if request failed
|
372
|
+
#
|
373
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse]
|
374
|
+
#
|
375
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
376
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
377
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
378
|
+
def list_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
379
|
+
command = make_simple_command(:get, 'v1/{+parent}/datasetVersions', options)
|
380
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse::Representation
|
381
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListDatasetVersionsResponse
|
382
|
+
command.params['parent'] = parent unless parent.nil?
|
383
|
+
command.query['filter'] = filter unless filter.nil?
|
384
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
385
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
386
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
387
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
388
|
+
command.query['fields'] = fields unless fields.nil?
|
389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
390
|
+
execute_or_queue_command(command, &block)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Updates a DatasetVersion.
|
394
|
+
# @param [String] name
|
395
|
+
# Output only. Identifier. The resource name of the DatasetVersion.
|
396
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] google_cloud_aiplatform_v1_dataset_version_object
|
397
|
+
# @param [String] update_mask
|
398
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
399
|
+
# definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`
|
400
|
+
# @param [String] fields
|
401
|
+
# Selector specifying which fields to include in a partial response.
|
402
|
+
# @param [String] quota_user
|
403
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
404
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
405
|
+
# @param [Google::Apis::RequestOptions] options
|
406
|
+
# Request-specific options
|
407
|
+
#
|
408
|
+
# @yield [result, err] Result & error if block supplied
|
409
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion] parsed result object
|
410
|
+
# @yieldparam err [StandardError] error object if request failed
|
411
|
+
#
|
412
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion]
|
413
|
+
#
|
414
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
415
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
416
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
417
|
+
def patch_dataset_dataset_version(name, google_cloud_aiplatform_v1_dataset_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
418
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
419
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
420
|
+
command.request_object = google_cloud_aiplatform_v1_dataset_version_object
|
421
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion::Representation
|
422
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DatasetVersion
|
423
|
+
command.params['name'] = name unless name.nil?
|
424
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
425
|
+
command.query['fields'] = fields unless fields.nil?
|
426
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
427
|
+
execute_or_queue_command(command, &block)
|
428
|
+
end
|
429
|
+
|
430
|
+
# Restores a dataset version.
|
431
|
+
# @param [String] name
|
432
|
+
# Required. The name of the DatasetVersion resource. Format: `projects/`project`/
|
433
|
+
# locations/`location`/datasets/`dataset`/datasetVersions/`dataset_version``
|
434
|
+
# @param [String] fields
|
435
|
+
# Selector specifying which fields to include in a partial response.
|
436
|
+
# @param [String] quota_user
|
437
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
438
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
439
|
+
# @param [Google::Apis::RequestOptions] options
|
440
|
+
# Request-specific options
|
441
|
+
#
|
442
|
+
# @yield [result, err] Result & error if block supplied
|
443
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
444
|
+
# @yieldparam err [StandardError] error object if request failed
|
445
|
+
#
|
446
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
447
|
+
#
|
448
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
449
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
450
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
451
|
+
def restore_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
452
|
+
command = make_simple_command(:get, 'v1/{+name}:restore', options)
|
453
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
454
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
455
|
+
command.params['name'] = name unless name.nil?
|
456
|
+
command.query['fields'] = fields unless fields.nil?
|
457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
458
|
+
execute_or_queue_command(command, &block)
|
459
|
+
end
|
460
|
+
|
461
|
+
# Return a list of tokens based on the input text.
|
462
|
+
# @param [String] endpoint
|
463
|
+
# Required. The name of the Endpoint requested to get lists of tokens and token
|
464
|
+
# ids.
|
465
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest] google_cloud_aiplatform_v1_compute_tokens_request_object
|
466
|
+
# @param [String] fields
|
467
|
+
# Selector specifying which fields to include in a partial response.
|
468
|
+
# @param [String] quota_user
|
469
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
470
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
471
|
+
# @param [Google::Apis::RequestOptions] options
|
472
|
+
# Request-specific options
|
473
|
+
#
|
474
|
+
# @yield [result, err] Result & error if block supplied
|
475
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse] parsed result object
|
476
|
+
# @yieldparam err [StandardError] error object if request failed
|
477
|
+
#
|
478
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse]
|
479
|
+
#
|
480
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
481
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
482
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
483
|
+
def compute_endpoint_tokens(endpoint, google_cloud_aiplatform_v1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
484
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:computeTokens', options)
|
485
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest::Representation
|
486
|
+
command.request_object = google_cloud_aiplatform_v1_compute_tokens_request_object
|
487
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse::Representation
|
488
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse
|
489
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
490
|
+
command.query['fields'] = fields unless fields.nil?
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
492
|
+
execute_or_queue_command(command, &block)
|
493
|
+
end
|
494
|
+
|
495
|
+
# Perform a token counting.
|
496
|
+
# @param [String] endpoint
|
497
|
+
# Required. The name of the Endpoint requested to perform token counting. Format:
|
498
|
+
# `projects/`project`/locations/`location`/endpoints/`endpoint``
|
499
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest] google_cloud_aiplatform_v1_count_tokens_request_object
|
500
|
+
# @param [String] fields
|
501
|
+
# Selector specifying which fields to include in a partial response.
|
502
|
+
# @param [String] quota_user
|
503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
505
|
+
# @param [Google::Apis::RequestOptions] options
|
506
|
+
# Request-specific options
|
507
|
+
#
|
508
|
+
# @yield [result, err] Result & error if block supplied
|
509
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse] parsed result object
|
510
|
+
# @yieldparam err [StandardError] error object if request failed
|
511
|
+
#
|
512
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse]
|
513
|
+
#
|
514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
517
|
+
def count_endpoint_tokens(endpoint, google_cloud_aiplatform_v1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
518
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:countTokens', options)
|
519
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest::Representation
|
520
|
+
command.request_object = google_cloud_aiplatform_v1_count_tokens_request_object
|
521
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse::Representation
|
522
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse
|
523
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
524
|
+
command.query['fields'] = fields unless fields.nil?
|
525
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
526
|
+
execute_or_queue_command(command, &block)
|
527
|
+
end
|
528
|
+
|
529
|
+
# Generate content with multimodal inputs.
|
530
|
+
# @param [String] model
|
531
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
532
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
533
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
534
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
535
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
536
|
+
# @param [String] fields
|
537
|
+
# Selector specifying which fields to include in a partial response.
|
538
|
+
# @param [String] quota_user
|
539
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
540
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
541
|
+
# @param [Google::Apis::RequestOptions] options
|
542
|
+
# Request-specific options
|
543
|
+
#
|
544
|
+
# @yield [result, err] Result & error if block supplied
|
545
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
546
|
+
# @yieldparam err [StandardError] error object if request failed
|
547
|
+
#
|
548
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
549
|
+
#
|
550
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
551
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
552
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
553
|
+
def generate_endpoint_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
554
|
+
command = make_simple_command(:post, 'v1/{+model}:generateContent', options)
|
555
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
556
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
557
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
558
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
559
|
+
command.params['model'] = model unless model.nil?
|
560
|
+
command.query['fields'] = fields unless fields.nil?
|
561
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
562
|
+
execute_or_queue_command(command, &block)
|
563
|
+
end
|
564
|
+
|
565
|
+
# Generate content with multimodal inputs with streaming support.
|
566
|
+
# @param [String] model
|
567
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
568
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
569
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
570
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
571
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
572
|
+
# @param [String] fields
|
573
|
+
# Selector specifying which fields to include in a partial response.
|
574
|
+
# @param [String] quota_user
|
575
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
576
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
577
|
+
# @param [Google::Apis::RequestOptions] options
|
578
|
+
# Request-specific options
|
579
|
+
#
|
580
|
+
# @yield [result, err] Result & error if block supplied
|
581
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
582
|
+
# @yieldparam err [StandardError] error object if request failed
|
583
|
+
#
|
584
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
585
|
+
#
|
586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
589
|
+
def stream_endpoint_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
590
|
+
command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
|
591
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
592
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
593
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
594
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
595
|
+
command.params['model'] = model unless model.nil?
|
596
|
+
command.query['fields'] = fields unless fields.nil?
|
597
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
598
|
+
execute_or_queue_command(command, &block)
|
599
|
+
end
|
600
|
+
|
55
601
|
# Evaluates instances based on a given metric.
|
56
602
|
# @param [String] location
|
57
603
|
# Required. The resource name of the Location to evaluate the instances. Format:
|
@@ -3471,8 +4017,10 @@ module Google
|
|
3471
4017
|
|
3472
4018
|
# Generate content with multimodal inputs.
|
3473
4019
|
# @param [String] model
|
3474
|
-
# Required. The name of the publisher model
|
3475
|
-
#
|
4020
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
4021
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
4022
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
4023
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
3476
4024
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
3477
4025
|
# @param [String] fields
|
3478
4026
|
# Selector specifying which fields to include in a partial response.
|
@@ -3775,8 +4323,10 @@ module Google
|
|
3775
4323
|
|
3776
4324
|
# Generate content with multimodal inputs with streaming support.
|
3777
4325
|
# @param [String] model
|
3778
|
-
# Required. The name of the publisher model
|
3779
|
-
#
|
4326
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
4327
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
4328
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
4329
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
3780
4330
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
3781
4331
|
# @param [String] fields
|
3782
4332
|
# Selector specifying which fields to include in a partial response.
|
@@ -15474,8 +16024,10 @@ module Google
|
|
15474
16024
|
|
15475
16025
|
# Generate content with multimodal inputs.
|
15476
16026
|
# @param [String] model
|
15477
|
-
# Required. The name of the publisher model
|
15478
|
-
#
|
16027
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
16028
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
16029
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
16030
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
15479
16031
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
15480
16032
|
# @param [String] fields
|
15481
16033
|
# Selector specifying which fields to include in a partial response.
|
@@ -15614,8 +16166,10 @@ module Google
|
|
15614
16166
|
|
15615
16167
|
# Generate content with multimodal inputs with streaming support.
|
15616
16168
|
# @param [String] model
|
15617
|
-
# Required. The name of the publisher model
|
15618
|
-
#
|
16169
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
16170
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
16171
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
16172
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
15619
16173
|
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
15620
16174
|
# @param [String] fields
|
15621
16175
|
# Selector specifying which fields to include in a partial response.
|
@@ -19889,6 +20443,110 @@ module Google
|
|
19889
20443
|
execute_or_queue_command(command, &block)
|
19890
20444
|
end
|
19891
20445
|
|
20446
|
+
# Return a list of tokens based on the input text.
|
20447
|
+
# @param [String] endpoint
|
20448
|
+
# Required. The name of the Endpoint requested to get lists of tokens and token
|
20449
|
+
# ids.
|
20450
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest] google_cloud_aiplatform_v1_compute_tokens_request_object
|
20451
|
+
# @param [String] fields
|
20452
|
+
# Selector specifying which fields to include in a partial response.
|
20453
|
+
# @param [String] quota_user
|
20454
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20455
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20456
|
+
# @param [Google::Apis::RequestOptions] options
|
20457
|
+
# Request-specific options
|
20458
|
+
#
|
20459
|
+
# @yield [result, err] Result & error if block supplied
|
20460
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse] parsed result object
|
20461
|
+
# @yieldparam err [StandardError] error object if request failed
|
20462
|
+
#
|
20463
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse]
|
20464
|
+
#
|
20465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20468
|
+
def compute_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20469
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:computeTokens', options)
|
20470
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest::Representation
|
20471
|
+
command.request_object = google_cloud_aiplatform_v1_compute_tokens_request_object
|
20472
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse::Representation
|
20473
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse
|
20474
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
20475
|
+
command.query['fields'] = fields unless fields.nil?
|
20476
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20477
|
+
execute_or_queue_command(command, &block)
|
20478
|
+
end
|
20479
|
+
|
20480
|
+
# Perform a token counting.
|
20481
|
+
# @param [String] endpoint
|
20482
|
+
# Required. The name of the Endpoint requested to perform token counting. Format:
|
20483
|
+
# `projects/`project`/locations/`location`/endpoints/`endpoint``
|
20484
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest] google_cloud_aiplatform_v1_count_tokens_request_object
|
20485
|
+
# @param [String] fields
|
20486
|
+
# Selector specifying which fields to include in a partial response.
|
20487
|
+
# @param [String] quota_user
|
20488
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20489
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20490
|
+
# @param [Google::Apis::RequestOptions] options
|
20491
|
+
# Request-specific options
|
20492
|
+
#
|
20493
|
+
# @yield [result, err] Result & error if block supplied
|
20494
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse] parsed result object
|
20495
|
+
# @yieldparam err [StandardError] error object if request failed
|
20496
|
+
#
|
20497
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse]
|
20498
|
+
#
|
20499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20502
|
+
def count_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20503
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:countTokens', options)
|
20504
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest::Representation
|
20505
|
+
command.request_object = google_cloud_aiplatform_v1_count_tokens_request_object
|
20506
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse::Representation
|
20507
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse
|
20508
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
20509
|
+
command.query['fields'] = fields unless fields.nil?
|
20510
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20511
|
+
execute_or_queue_command(command, &block)
|
20512
|
+
end
|
20513
|
+
|
20514
|
+
# Generate content with multimodal inputs.
|
20515
|
+
# @param [String] model
|
20516
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
20517
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
20518
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
20519
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
20520
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
20521
|
+
# @param [String] fields
|
20522
|
+
# Selector specifying which fields to include in a partial response.
|
20523
|
+
# @param [String] quota_user
|
20524
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20525
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20526
|
+
# @param [Google::Apis::RequestOptions] options
|
20527
|
+
# Request-specific options
|
20528
|
+
#
|
20529
|
+
# @yield [result, err] Result & error if block supplied
|
20530
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
20531
|
+
# @yieldparam err [StandardError] error object if request failed
|
20532
|
+
#
|
20533
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
20534
|
+
#
|
20535
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20536
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20537
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20538
|
+
def generate_publisher_model_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20539
|
+
command = make_simple_command(:post, 'v1/{+model}:generateContent', options)
|
20540
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
20541
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
20542
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
20543
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
20544
|
+
command.params['model'] = model unless model.nil?
|
20545
|
+
command.query['fields'] = fields unless fields.nil?
|
20546
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20547
|
+
execute_or_queue_command(command, &block)
|
20548
|
+
end
|
20549
|
+
|
19892
20550
|
# Gets a Model Garden publisher model.
|
19893
20551
|
# @param [String] name
|
19894
20552
|
# Required. The name of the PublisherModel resource. Format: `publishers/`
|
@@ -19933,6 +20591,42 @@ module Google
|
|
19933
20591
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19934
20592
|
execute_or_queue_command(command, &block)
|
19935
20593
|
end
|
20594
|
+
|
20595
|
+
# Generate content with multimodal inputs with streaming support.
|
20596
|
+
# @param [String] model
|
20597
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
20598
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
20599
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
20600
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
20601
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
20602
|
+
# @param [String] fields
|
20603
|
+
# Selector specifying which fields to include in a partial response.
|
20604
|
+
# @param [String] quota_user
|
20605
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20606
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20607
|
+
# @param [Google::Apis::RequestOptions] options
|
20608
|
+
# Request-specific options
|
20609
|
+
#
|
20610
|
+
# @yield [result, err] Result & error if block supplied
|
20611
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
20612
|
+
# @yieldparam err [StandardError] error object if request failed
|
20613
|
+
#
|
20614
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
20615
|
+
#
|
20616
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20617
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20618
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20619
|
+
def stream_publisher_model_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
20620
|
+
command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
|
20621
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
20622
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
20623
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
20624
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
20625
|
+
command.params['model'] = model unless model.nil?
|
20626
|
+
command.query['fields'] = fields unless fields.nil?
|
20627
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20628
|
+
execute_or_queue_command(command, &block)
|
20629
|
+
end
|
19936
20630
|
|
19937
20631
|
protected
|
19938
20632
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-aiplatform_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.33.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|