google-apis-aiplatform_v1 0.7.0 → 0.8.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.
@@ -1672,6 +1672,32 @@ module Google
|
|
1672
1672
|
end
|
1673
1673
|
end
|
1674
1674
|
|
1675
|
+
# Content blob.
|
1676
|
+
class GoogleCloudAiplatformV1Blob
|
1677
|
+
include Google::Apis::Core::Hashable
|
1678
|
+
|
1679
|
+
# Required. Data.
|
1680
|
+
# Corresponds to the JSON property `data`
|
1681
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1682
|
+
# @return [String]
|
1683
|
+
attr_accessor :data
|
1684
|
+
|
1685
|
+
# Required. Mime type of the data.
|
1686
|
+
# Corresponds to the JSON property `mimeType`
|
1687
|
+
# @return [String]
|
1688
|
+
attr_accessor :mime_type
|
1689
|
+
|
1690
|
+
def initialize(**args)
|
1691
|
+
update!(**args)
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
# Update properties of this object
|
1695
|
+
def update!(**args)
|
1696
|
+
@data = args[:data] if args.key?(:data)
|
1697
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
1698
|
+
end
|
1699
|
+
end
|
1700
|
+
|
1675
1701
|
# Config for blur baseline. When enabled, a linear path from the maximally
|
1676
1702
|
# blurred image to the input image is created. Using a blurred baseline instead
|
1677
1703
|
# of zero (black image) is motivated by the BlurIG approach explained here:
|
@@ -2055,6 +2081,34 @@ module Google
|
|
2055
2081
|
end
|
2056
2082
|
end
|
2057
2083
|
|
2084
|
+
# A single turn in a conversation with the model.
|
2085
|
+
class GoogleCloudAiplatformV1Content
|
2086
|
+
include Google::Apis::Core::Hashable
|
2087
|
+
|
2088
|
+
# Required. Ordered parts that make up a message. Parts may have different MIME
|
2089
|
+
# types.
|
2090
|
+
# Corresponds to the JSON property `parts`
|
2091
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>]
|
2092
|
+
attr_accessor :parts
|
2093
|
+
|
2094
|
+
# Optional. The role in a conversation associated with this content. Set it only
|
2095
|
+
# if a content represents a turn in a conversations, otherwise no need to set
|
2096
|
+
# role. Possible values: user, model.
|
2097
|
+
# Corresponds to the JSON property `role`
|
2098
|
+
# @return [String]
|
2099
|
+
attr_accessor :role
|
2100
|
+
|
2101
|
+
def initialize(**args)
|
2102
|
+
update!(**args)
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
# Update properties of this object
|
2106
|
+
def update!(**args)
|
2107
|
+
@parts = args[:parts] if args.key?(:parts)
|
2108
|
+
@role = args[:role] if args.key?(:role)
|
2109
|
+
end
|
2110
|
+
end
|
2111
|
+
|
2058
2112
|
# Instance of a general context.
|
2059
2113
|
class GoogleCloudAiplatformV1Context
|
2060
2114
|
include Google::Apis::Core::Hashable
|
@@ -2239,19 +2293,32 @@ module Google
|
|
2239
2293
|
class GoogleCloudAiplatformV1CountTokensRequest
|
2240
2294
|
include Google::Apis::Core::Hashable
|
2241
2295
|
|
2296
|
+
# Required. Input content.
|
2297
|
+
# Corresponds to the JSON property `contents`
|
2298
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
2299
|
+
attr_accessor :contents
|
2300
|
+
|
2242
2301
|
# Required. The instances that are the input to token counting call. Schema is
|
2243
2302
|
# identical to the prediction schema of the underlying model.
|
2244
2303
|
# Corresponds to the JSON property `instances`
|
2245
2304
|
# @return [Array<Object>]
|
2246
2305
|
attr_accessor :instances
|
2247
2306
|
|
2307
|
+
# Required. The name of the publisher model requested to serve the prediction.
|
2308
|
+
# Format: `projects/`project`/locations/`location`/publishers/*/models/*`
|
2309
|
+
# Corresponds to the JSON property `model`
|
2310
|
+
# @return [String]
|
2311
|
+
attr_accessor :model
|
2312
|
+
|
2248
2313
|
def initialize(**args)
|
2249
2314
|
update!(**args)
|
2250
2315
|
end
|
2251
2316
|
|
2252
2317
|
# Update properties of this object
|
2253
2318
|
def update!(**args)
|
2319
|
+
@contents = args[:contents] if args.key?(:contents)
|
2254
2320
|
@instances = args[:instances] if args.key?(:instances)
|
2321
|
+
@model = args[:model] if args.key?(:model)
|
2255
2322
|
end
|
2256
2323
|
end
|
2257
2324
|
|
@@ -4076,6 +4143,11 @@ module Google
|
|
4076
4143
|
# @return [String]
|
4077
4144
|
attr_accessor :deployed_index_id
|
4078
4145
|
|
4146
|
+
# Output only. The display name of the DeployedIndex.
|
4147
|
+
# Corresponds to the JSON property `displayName`
|
4148
|
+
# @return [String]
|
4149
|
+
attr_accessor :display_name
|
4150
|
+
|
4079
4151
|
# Immutable. A resource name of the IndexEndpoint.
|
4080
4152
|
# Corresponds to the JSON property `indexEndpoint`
|
4081
4153
|
# @return [String]
|
@@ -4088,6 +4160,7 @@ module Google
|
|
4088
4160
|
# Update properties of this object
|
4089
4161
|
def update!(**args)
|
4090
4162
|
@deployed_index_id = args[:deployed_index_id] if args.key?(:deployed_index_id)
|
4163
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4091
4164
|
@index_endpoint = args[:index_endpoint] if args.key?(:index_endpoint)
|
4092
4165
|
end
|
4093
4166
|
end
|
@@ -4184,6 +4257,13 @@ module Google
|
|
4184
4257
|
# @return [String]
|
4185
4258
|
attr_accessor :service_account
|
4186
4259
|
|
4260
|
+
# The resource name of the shared DeploymentResourcePool to deploy on. Format: `
|
4261
|
+
# projects/`project`/locations/`location`/deploymentResourcePools/`
|
4262
|
+
# deployment_resource_pool``
|
4263
|
+
# Corresponds to the JSON property `sharedResources`
|
4264
|
+
# @return [String]
|
4265
|
+
attr_accessor :shared_resources
|
4266
|
+
|
4187
4267
|
def initialize(**args)
|
4188
4268
|
update!(**args)
|
4189
4269
|
end
|
@@ -4202,6 +4282,7 @@ module Google
|
|
4202
4282
|
@model_version_id = args[:model_version_id] if args.key?(:model_version_id)
|
4203
4283
|
@private_endpoints = args[:private_endpoints] if args.key?(:private_endpoints)
|
4204
4284
|
@service_account = args[:service_account] if args.key?(:service_account)
|
4285
|
+
@shared_resources = args[:shared_resources] if args.key?(:shared_resources)
|
4205
4286
|
end
|
4206
4287
|
end
|
4207
4288
|
|
@@ -4291,6 +4372,104 @@ module Google
|
|
4291
4372
|
end
|
4292
4373
|
end
|
4293
4374
|
|
4375
|
+
# Request message for PredictionService.DirectPredict.
|
4376
|
+
class GoogleCloudAiplatformV1DirectPredictRequest
|
4377
|
+
include Google::Apis::Core::Hashable
|
4378
|
+
|
4379
|
+
# The prediction input.
|
4380
|
+
# Corresponds to the JSON property `inputs`
|
4381
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor>]
|
4382
|
+
attr_accessor :inputs
|
4383
|
+
|
4384
|
+
# A tensor value type.
|
4385
|
+
# Corresponds to the JSON property `parameters`
|
4386
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor]
|
4387
|
+
attr_accessor :parameters
|
4388
|
+
|
4389
|
+
def initialize(**args)
|
4390
|
+
update!(**args)
|
4391
|
+
end
|
4392
|
+
|
4393
|
+
# Update properties of this object
|
4394
|
+
def update!(**args)
|
4395
|
+
@inputs = args[:inputs] if args.key?(:inputs)
|
4396
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
4397
|
+
end
|
4398
|
+
end
|
4399
|
+
|
4400
|
+
# Response message for PredictionService.DirectPredict.
|
4401
|
+
class GoogleCloudAiplatformV1DirectPredictResponse
|
4402
|
+
include Google::Apis::Core::Hashable
|
4403
|
+
|
4404
|
+
# The prediction output.
|
4405
|
+
# Corresponds to the JSON property `outputs`
|
4406
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor>]
|
4407
|
+
attr_accessor :outputs
|
4408
|
+
|
4409
|
+
# A tensor value type.
|
4410
|
+
# Corresponds to the JSON property `parameters`
|
4411
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor]
|
4412
|
+
attr_accessor :parameters
|
4413
|
+
|
4414
|
+
def initialize(**args)
|
4415
|
+
update!(**args)
|
4416
|
+
end
|
4417
|
+
|
4418
|
+
# Update properties of this object
|
4419
|
+
def update!(**args)
|
4420
|
+
@outputs = args[:outputs] if args.key?(:outputs)
|
4421
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
4422
|
+
end
|
4423
|
+
end
|
4424
|
+
|
4425
|
+
# Request message for PredictionService.DirectRawPredict.
|
4426
|
+
class GoogleCloudAiplatformV1DirectRawPredictRequest
|
4427
|
+
include Google::Apis::Core::Hashable
|
4428
|
+
|
4429
|
+
# The prediction input.
|
4430
|
+
# Corresponds to the JSON property `input`
|
4431
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
4432
|
+
# @return [String]
|
4433
|
+
attr_accessor :input
|
4434
|
+
|
4435
|
+
# Fully qualified name of the API method being invoked to perform predictions.
|
4436
|
+
# Format: `/namespace.Service/Method/` Example: `/tensorflow.serving.
|
4437
|
+
# PredictionService/Predict`
|
4438
|
+
# Corresponds to the JSON property `methodName`
|
4439
|
+
# @return [String]
|
4440
|
+
attr_accessor :method_name
|
4441
|
+
|
4442
|
+
def initialize(**args)
|
4443
|
+
update!(**args)
|
4444
|
+
end
|
4445
|
+
|
4446
|
+
# Update properties of this object
|
4447
|
+
def update!(**args)
|
4448
|
+
@input = args[:input] if args.key?(:input)
|
4449
|
+
@method_name = args[:method_name] if args.key?(:method_name)
|
4450
|
+
end
|
4451
|
+
end
|
4452
|
+
|
4453
|
+
# Response message for PredictionService.DirectRawPredict.
|
4454
|
+
class GoogleCloudAiplatformV1DirectRawPredictResponse
|
4455
|
+
include Google::Apis::Core::Hashable
|
4456
|
+
|
4457
|
+
# The prediction output.
|
4458
|
+
# Corresponds to the JSON property `output`
|
4459
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
4460
|
+
# @return [String]
|
4461
|
+
attr_accessor :output
|
4462
|
+
|
4463
|
+
def initialize(**args)
|
4464
|
+
update!(**args)
|
4465
|
+
end
|
4466
|
+
|
4467
|
+
# Update properties of this object
|
4468
|
+
def update!(**args)
|
4469
|
+
@output = args[:output] if args.key?(:output)
|
4470
|
+
end
|
4471
|
+
end
|
4472
|
+
|
4294
4473
|
# Represents the spec of disk options.
|
4295
4474
|
class GoogleCloudAiplatformV1DiskSpec
|
4296
4475
|
include Google::Apis::Core::Hashable
|
@@ -5683,6 +5862,22 @@ module Google
|
|
5683
5862
|
class GoogleCloudAiplatformV1ExportDataConfig
|
5684
5863
|
include Google::Apis::Core::Hashable
|
5685
5864
|
|
5865
|
+
# Only used for custom training data export use cases. Only applicable to
|
5866
|
+
# Datasets that have DataItems and Annotations. Cloud Storage URI that points to
|
5867
|
+
# a YAML file describing the annotation schema. The schema is defined as an
|
5868
|
+
# OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/
|
5869
|
+
# blob/main/versions/3.0.2.md#schemaObject). The schema files that can be used
|
5870
|
+
# here are found in gs://google-cloud-aiplatform/schema/dataset/annotation/,
|
5871
|
+
# note that the chosen schema must be consistent with metadata of the Dataset
|
5872
|
+
# specified by dataset_id. Only Annotations that both match this schema and
|
5873
|
+
# belong to DataItems not ignored by the split method are used in respectively
|
5874
|
+
# training, validation or test role, depending on the role of the DataItem they
|
5875
|
+
# are on. When used in conjunction with annotations_filter, the Annotations used
|
5876
|
+
# for training are filtered by both annotations_filter and annotation_schema_uri.
|
5877
|
+
# Corresponds to the JSON property `annotationSchemaUri`
|
5878
|
+
# @return [String]
|
5879
|
+
attr_accessor :annotation_schema_uri
|
5880
|
+
|
5686
5881
|
# An expression for filtering what part of the Dataset is to be exported. Only
|
5687
5882
|
# Annotations that match this filter will be exported. The filter syntax is the
|
5688
5883
|
# same as in ListAnnotations.
|
@@ -5690,6 +5885,20 @@ module Google
|
|
5690
5885
|
# @return [String]
|
5691
5886
|
attr_accessor :annotations_filter
|
5692
5887
|
|
5888
|
+
# Indicates the usage of the exported files.
|
5889
|
+
# Corresponds to the JSON property `exportUse`
|
5890
|
+
# @return [String]
|
5891
|
+
attr_accessor :export_use
|
5892
|
+
|
5893
|
+
# Assigns input data to training, validation, and test sets based on the given
|
5894
|
+
# filters, data pieces not matched by any filter are ignored. Currently only
|
5895
|
+
# supported for Datasets containing DataItems. If any of the filters in this
|
5896
|
+
# message are to match nothing, then they can be set as '-' (the minus sign).
|
5897
|
+
# Supported only for unstructured Datasets.
|
5898
|
+
# Corresponds to the JSON property `filterSplit`
|
5899
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExportFilterSplit]
|
5900
|
+
attr_accessor :filter_split
|
5901
|
+
|
5693
5902
|
# Assigns the input data to training, validation, and test sets as per the given
|
5694
5903
|
# fractions. Any of `training_fraction`, `validation_fraction` and `
|
5695
5904
|
# test_fraction` may optionally be provided, they must sum to up to 1. If the
|
@@ -5705,15 +5914,31 @@ module Google
|
|
5705
5914
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
|
5706
5915
|
attr_accessor :gcs_destination
|
5707
5916
|
|
5917
|
+
# Only used for custom training data export use cases. Only applicable to
|
5918
|
+
# Datasets that have SavedQueries. The ID of a SavedQuery (annotation set) under
|
5919
|
+
# the Dataset specified by dataset_id used for filtering Annotations for
|
5920
|
+
# training. Only Annotations that are associated with this SavedQuery are used
|
5921
|
+
# in respectively training. When used in conjunction with annotations_filter,
|
5922
|
+
# the Annotations used for training are filtered by both saved_query_id and
|
5923
|
+
# annotations_filter. Only one of saved_query_id and annotation_schema_uri
|
5924
|
+
# should be specified as both of them represent the same thing: problem type.
|
5925
|
+
# Corresponds to the JSON property `savedQueryId`
|
5926
|
+
# @return [String]
|
5927
|
+
attr_accessor :saved_query_id
|
5928
|
+
|
5708
5929
|
def initialize(**args)
|
5709
5930
|
update!(**args)
|
5710
5931
|
end
|
5711
5932
|
|
5712
5933
|
# Update properties of this object
|
5713
5934
|
def update!(**args)
|
5935
|
+
@annotation_schema_uri = args[:annotation_schema_uri] if args.key?(:annotation_schema_uri)
|
5714
5936
|
@annotations_filter = args[:annotations_filter] if args.key?(:annotations_filter)
|
5937
|
+
@export_use = args[:export_use] if args.key?(:export_use)
|
5938
|
+
@filter_split = args[:filter_split] if args.key?(:filter_split)
|
5715
5939
|
@fraction_split = args[:fraction_split] if args.key?(:fraction_split)
|
5716
5940
|
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
5941
|
+
@saved_query_id = args[:saved_query_id] if args.key?(:saved_query_id)
|
5717
5942
|
end
|
5718
5943
|
end
|
5719
5944
|
|
@@ -5767,7 +5992,14 @@ module Google
|
|
5767
5992
|
class GoogleCloudAiplatformV1ExportDataResponse
|
5768
5993
|
include Google::Apis::Core::Hashable
|
5769
5994
|
|
5770
|
-
#
|
5995
|
+
# Stats of data used for train or evaluate the Model.
|
5996
|
+
# Corresponds to the JSON property `dataStats`
|
5997
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelDataStats]
|
5998
|
+
attr_accessor :data_stats
|
5999
|
+
|
6000
|
+
# All of the files that are exported in this export operation. For custom code
|
6001
|
+
# training export, only three (training, validation and test) GCS paths in
|
6002
|
+
# wildcard format are populated (e.g., gs://.../training-*).
|
5771
6003
|
# Corresponds to the JSON property `exportedFiles`
|
5772
6004
|
# @return [Array<String>]
|
5773
6005
|
attr_accessor :exported_files
|
@@ -5778,6 +6010,7 @@ module Google
|
|
5778
6010
|
|
5779
6011
|
# Update properties of this object
|
5780
6012
|
def update!(**args)
|
6013
|
+
@data_stats = args[:data_stats] if args.key?(:data_stats)
|
5781
6014
|
@exported_files = args[:exported_files] if args.key?(:exported_files)
|
5782
6015
|
end
|
5783
6016
|
end
|
@@ -5917,6 +6150,53 @@ module Google
|
|
5917
6150
|
end
|
5918
6151
|
end
|
5919
6152
|
|
6153
|
+
# Assigns input data to training, validation, and test sets based on the given
|
6154
|
+
# filters, data pieces not matched by any filter are ignored. Currently only
|
6155
|
+
# supported for Datasets containing DataItems. If any of the filters in this
|
6156
|
+
# message are to match nothing, then they can be set as '-' (the minus sign).
|
6157
|
+
# Supported only for unstructured Datasets.
|
6158
|
+
class GoogleCloudAiplatformV1ExportFilterSplit
|
6159
|
+
include Google::Apis::Core::Hashable
|
6160
|
+
|
6161
|
+
# Required. A filter on DataItems of the Dataset. DataItems that match this
|
6162
|
+
# filter are used to test the Model. A filter with same syntax as the one used
|
6163
|
+
# in DatasetService.ListDataItems may be used. If a single DataItem is matched
|
6164
|
+
# by more than one of the FilterSplit filters, then it is assigned to the first
|
6165
|
+
# set that applies to it in the training, validation, test order.
|
6166
|
+
# Corresponds to the JSON property `testFilter`
|
6167
|
+
# @return [String]
|
6168
|
+
attr_accessor :test_filter
|
6169
|
+
|
6170
|
+
# Required. A filter on DataItems of the Dataset. DataItems that match this
|
6171
|
+
# filter are used to train the Model. A filter with same syntax as the one used
|
6172
|
+
# in DatasetService.ListDataItems may be used. If a single DataItem is matched
|
6173
|
+
# by more than one of the FilterSplit filters, then it is assigned to the first
|
6174
|
+
# set that applies to it in the training, validation, test order.
|
6175
|
+
# Corresponds to the JSON property `trainingFilter`
|
6176
|
+
# @return [String]
|
6177
|
+
attr_accessor :training_filter
|
6178
|
+
|
6179
|
+
# Required. A filter on DataItems of the Dataset. DataItems that match this
|
6180
|
+
# filter are used to validate the Model. A filter with same syntax as the one
|
6181
|
+
# used in DatasetService.ListDataItems may be used. If a single DataItem is
|
6182
|
+
# matched by more than one of the FilterSplit filters, then it is assigned to
|
6183
|
+
# the first set that applies to it in the training, validation, test order.
|
6184
|
+
# Corresponds to the JSON property `validationFilter`
|
6185
|
+
# @return [String]
|
6186
|
+
attr_accessor :validation_filter
|
6187
|
+
|
6188
|
+
def initialize(**args)
|
6189
|
+
update!(**args)
|
6190
|
+
end
|
6191
|
+
|
6192
|
+
# Update properties of this object
|
6193
|
+
def update!(**args)
|
6194
|
+
@test_filter = args[:test_filter] if args.key?(:test_filter)
|
6195
|
+
@training_filter = args[:training_filter] if args.key?(:training_filter)
|
6196
|
+
@validation_filter = args[:validation_filter] if args.key?(:validation_filter)
|
6197
|
+
end
|
6198
|
+
end
|
6199
|
+
|
5920
6200
|
# Assigns the input data to training, validation, and test sets as per the given
|
5921
6201
|
# fractions. Any of `training_fraction`, `validation_fraction` and `
|
5922
6202
|
# test_fraction` may optionally be provided, they must sum to up to 1. If the
|
@@ -6276,7 +6556,7 @@ module Google
|
|
6276
6556
|
# @return [Hash<String,String>]
|
6277
6557
|
attr_accessor :labels
|
6278
6558
|
|
6279
|
-
#
|
6559
|
+
# Identifier. Name of the FeatureGroup. Format: `projects/`project`/locations/`
|
6280
6560
|
# location`/featureGroups/`featureGroup``
|
6281
6561
|
# Corresponds to the JSON property `name`
|
6282
6562
|
# @return [String]
|
@@ -6447,7 +6727,7 @@ module Google
|
|
6447
6727
|
# @return [Hash<String,String>]
|
6448
6728
|
attr_accessor :labels
|
6449
6729
|
|
6450
|
-
#
|
6730
|
+
# Identifier. Name of the FeatureOnlineStore. Format: `projects/`project`/
|
6451
6731
|
# locations/`location`/featureOnlineStores/`featureOnlineStore``
|
6452
6732
|
# Corresponds to the JSON property `name`
|
6453
6733
|
# @return [String]
|
@@ -6825,16 +7105,14 @@ module Google
|
|
6825
7105
|
# @return [Hash<String,String>]
|
6826
7106
|
attr_accessor :labels
|
6827
7107
|
|
6828
|
-
#
|
7108
|
+
# Identifier. Name of the FeatureView. Format: `projects/`project`/locations/`
|
6829
7109
|
# location`/featureOnlineStores/`feature_online_store`/featureViews/`
|
6830
7110
|
# feature_view``
|
6831
7111
|
# Corresponds to the JSON property `name`
|
6832
7112
|
# @return [String]
|
6833
7113
|
attr_accessor :name
|
6834
7114
|
|
6835
|
-
#
|
6836
|
-
# of the sync the latest featureValues for each entityId of this FeatureView are
|
6837
|
-
# made ready for online serving.
|
7115
|
+
# Configuration for Sync. Only one option is set.
|
6838
7116
|
# Corresponds to the JSON property `syncConfig`
|
6839
7117
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewSyncConfig]
|
6840
7118
|
attr_accessor :sync_config
|
@@ -6974,8 +7252,8 @@ module Google
|
|
6974
7252
|
# @return [Google::Apis::AiplatformV1::GoogleRpcStatus]
|
6975
7253
|
attr_accessor :final_status
|
6976
7254
|
|
6977
|
-
#
|
6978
|
-
#
|
7255
|
+
# Identifier. Name of the FeatureViewSync. Format: `projects/`project`/locations/
|
7256
|
+
# `location`/featureOnlineStores/`feature_online_store`/featureViews/`
|
6979
7257
|
# feature_view`/featureViewSyncs/`feature_view_sync``
|
6980
7258
|
# Corresponds to the JSON property `name`
|
6981
7259
|
# @return [String]
|
@@ -7002,7 +7280,7 @@ module Google
|
|
7002
7280
|
end
|
7003
7281
|
end
|
7004
7282
|
|
7005
|
-
#
|
7283
|
+
# Configuration for Sync. Only one option is set.
|
7006
7284
|
class GoogleCloudAiplatformV1FeatureViewSyncConfig
|
7007
7285
|
include Google::Apis::Core::Hashable
|
7008
7286
|
|
@@ -7415,6 +7693,31 @@ module Google
|
|
7415
7693
|
end
|
7416
7694
|
end
|
7417
7695
|
|
7696
|
+
# URI based data.
|
7697
|
+
class GoogleCloudAiplatformV1FileData
|
7698
|
+
include Google::Apis::Core::Hashable
|
7699
|
+
|
7700
|
+
# Required. URI.
|
7701
|
+
# Corresponds to the JSON property `fileUri`
|
7702
|
+
# @return [String]
|
7703
|
+
attr_accessor :file_uri
|
7704
|
+
|
7705
|
+
# Required. Mime type of the data.
|
7706
|
+
# Corresponds to the JSON property `mimeType`
|
7707
|
+
# @return [String]
|
7708
|
+
attr_accessor :mime_type
|
7709
|
+
|
7710
|
+
def initialize(**args)
|
7711
|
+
update!(**args)
|
7712
|
+
end
|
7713
|
+
|
7714
|
+
# Update properties of this object
|
7715
|
+
def update!(**args)
|
7716
|
+
@file_uri = args[:file_uri] if args.key?(:file_uri)
|
7717
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
7718
|
+
end
|
7719
|
+
end
|
7720
|
+
|
7418
7721
|
# Assigns input data to training, validation, and test sets based on the given
|
7419
7722
|
# filters, data pieces not matched by any filter are ignored. Currently only
|
7420
7723
|
# supported for Datasets containing DataItems. If any of the filters in this
|
@@ -7663,6 +7966,63 @@ module Google
|
|
7663
7966
|
end
|
7664
7967
|
end
|
7665
7968
|
|
7969
|
+
# A predicted [FunctionCall] returned from the model that contains a string
|
7970
|
+
# representing the [FunctionDeclaration.name] and a structured JSON object
|
7971
|
+
# containing the parameters and their values.
|
7972
|
+
class GoogleCloudAiplatformV1FunctionCall
|
7973
|
+
include Google::Apis::Core::Hashable
|
7974
|
+
|
7975
|
+
# Optional. Required. The function parameters and values in JSON object format.
|
7976
|
+
# See [FunctionDeclaration.parameters] for parameter details.
|
7977
|
+
# Corresponds to the JSON property `args`
|
7978
|
+
# @return [Hash<String,Object>]
|
7979
|
+
attr_accessor :args
|
7980
|
+
|
7981
|
+
# Required. The name of the function to call. Matches [FunctionDeclaration.name].
|
7982
|
+
# Corresponds to the JSON property `name`
|
7983
|
+
# @return [String]
|
7984
|
+
attr_accessor :name
|
7985
|
+
|
7986
|
+
def initialize(**args)
|
7987
|
+
update!(**args)
|
7988
|
+
end
|
7989
|
+
|
7990
|
+
# Update properties of this object
|
7991
|
+
def update!(**args)
|
7992
|
+
@args = args[:args] if args.key?(:args)
|
7993
|
+
@name = args[:name] if args.key?(:name)
|
7994
|
+
end
|
7995
|
+
end
|
7996
|
+
|
7997
|
+
# The result output from a [FunctionCall] that contains a string representing
|
7998
|
+
# the [FunctionDeclaration.name] and a structured JSON object containing any
|
7999
|
+
# output from the function is used as context to the model. This should contain
|
8000
|
+
# the result of a [FunctionCall] made based on model prediction.
|
8001
|
+
class GoogleCloudAiplatformV1FunctionResponse
|
8002
|
+
include Google::Apis::Core::Hashable
|
8003
|
+
|
8004
|
+
# Required. The name of the function to call. Matches [FunctionDeclaration.name]
|
8005
|
+
# and [FunctionCall.name].
|
8006
|
+
# Corresponds to the JSON property `name`
|
8007
|
+
# @return [String]
|
8008
|
+
attr_accessor :name
|
8009
|
+
|
8010
|
+
# Required. The function response in JSON object format.
|
8011
|
+
# Corresponds to the JSON property `response`
|
8012
|
+
# @return [Hash<String,Object>]
|
8013
|
+
attr_accessor :response
|
8014
|
+
|
8015
|
+
def initialize(**args)
|
8016
|
+
update!(**args)
|
8017
|
+
end
|
8018
|
+
|
8019
|
+
# Update properties of this object
|
8020
|
+
def update!(**args)
|
8021
|
+
@name = args[:name] if args.key?(:name)
|
8022
|
+
@response = args[:response] if args.key?(:response)
|
8023
|
+
end
|
8024
|
+
end
|
8025
|
+
|
7666
8026
|
# The Google Cloud Storage location where the output is to be written to.
|
7667
8027
|
class GoogleCloudAiplatformV1GcsDestination
|
7668
8028
|
include Google::Apis::Core::Hashable
|
@@ -10832,6 +11192,11 @@ module Google
|
|
10832
11192
|
# @return [String]
|
10833
11193
|
attr_accessor :create_time
|
10834
11194
|
|
11195
|
+
# Stats of data used for train or evaluate the Model.
|
11196
|
+
# Corresponds to the JSON property `dataStats`
|
11197
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelDataStats]
|
11198
|
+
attr_accessor :data_stats
|
11199
|
+
|
10835
11200
|
# Output only. The pointers to DeployedModels created from this Model. Note that
|
10836
11201
|
# Model could have been deployed to Endpoints in different Locations.
|
10837
11202
|
# Corresponds to the JSON property `deployedModels`
|
@@ -11038,6 +11403,7 @@ module Google
|
|
11038
11403
|
@artifact_uri = args[:artifact_uri] if args.key?(:artifact_uri)
|
11039
11404
|
@container_spec = args[:container_spec] if args.key?(:container_spec)
|
11040
11405
|
@create_time = args[:create_time] if args.key?(:create_time)
|
11406
|
+
@data_stats = args[:data_stats] if args.key?(:data_stats)
|
11041
11407
|
@deployed_models = args[:deployed_models] if args.key?(:deployed_models)
|
11042
11408
|
@description = args[:description] if args.key?(:description)
|
11043
11409
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -11136,8 +11502,7 @@ module Google
|
|
11136
11502
|
# @return [Array<String>]
|
11137
11503
|
attr_accessor :command
|
11138
11504
|
|
11139
|
-
# Immutable. Deployment timeout.
|
11140
|
-
# exposing.
|
11505
|
+
# Immutable. Deployment timeout. Limit for deployment timeout is 2 hours.
|
11141
11506
|
# Corresponds to the JSON property `deploymentTimeout`
|
11142
11507
|
# @return [String]
|
11143
11508
|
attr_accessor :deployment_timeout
|
@@ -11157,6 +11522,16 @@ module Google
|
|
11157
11522
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar>]
|
11158
11523
|
attr_accessor :env
|
11159
11524
|
|
11525
|
+
# Immutable. List of ports to expose from the container. Vertex AI sends gRPC
|
11526
|
+
# prediction requests that it receives to the first port on this list. Vertex AI
|
11527
|
+
# also sends liveness and health checks to this port. If you do not specify this
|
11528
|
+
# field, gRPC requests to the container will be disabled. Vertex AI does not use
|
11529
|
+
# ports other than the first one listed. This field corresponds to the `ports`
|
11530
|
+
# field of the Kubernetes Containers v1 core API.
|
11531
|
+
# Corresponds to the JSON property `grpcPorts`
|
11532
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Port>]
|
11533
|
+
attr_accessor :grpc_ports
|
11534
|
+
|
11160
11535
|
# Probe describes a health check to be performed against a container to
|
11161
11536
|
# determine whether it is alive or ready to receive traffic.
|
11162
11537
|
# Corresponds to the JSON property `healthProbe`
|
@@ -11239,7 +11614,7 @@ module Google
|
|
11239
11614
|
attr_accessor :predict_route
|
11240
11615
|
|
11241
11616
|
# Immutable. The amount of the VM memory to reserve as the shared memory for the
|
11242
|
-
# model in megabytes.
|
11617
|
+
# model in megabytes.
|
11243
11618
|
# Corresponds to the JSON property `sharedMemorySizeMb`
|
11244
11619
|
# @return [Fixnum]
|
11245
11620
|
attr_accessor :shared_memory_size_mb
|
@@ -11260,6 +11635,7 @@ module Google
|
|
11260
11635
|
@command = args[:command] if args.key?(:command)
|
11261
11636
|
@deployment_timeout = args[:deployment_timeout] if args.key?(:deployment_timeout)
|
11262
11637
|
@env = args[:env] if args.key?(:env)
|
11638
|
+
@grpc_ports = args[:grpc_ports] if args.key?(:grpc_ports)
|
11263
11639
|
@health_probe = args[:health_probe] if args.key?(:health_probe)
|
11264
11640
|
@health_route = args[:health_route] if args.key?(:health_route)
|
11265
11641
|
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
@@ -11270,6 +11646,59 @@ module Google
|
|
11270
11646
|
end
|
11271
11647
|
end
|
11272
11648
|
|
11649
|
+
# Stats of data used for train or evaluate the Model.
|
11650
|
+
class GoogleCloudAiplatformV1ModelDataStats
|
11651
|
+
include Google::Apis::Core::Hashable
|
11652
|
+
|
11653
|
+
# Number of Annotations that are used for evaluating this Model. If the Model is
|
11654
|
+
# evaluated multiple times, this will be the number of test Annotations used by
|
11655
|
+
# the first evaluation. If the Model is not evaluated, the number is 0.
|
11656
|
+
# Corresponds to the JSON property `testAnnotationsCount`
|
11657
|
+
# @return [Fixnum]
|
11658
|
+
attr_accessor :test_annotations_count
|
11659
|
+
|
11660
|
+
# Number of DataItems that were used for evaluating this Model. If the Model is
|
11661
|
+
# evaluated multiple times, this will be the number of test DataItems used by
|
11662
|
+
# the first evaluation. If the Model is not evaluated, the number is 0.
|
11663
|
+
# Corresponds to the JSON property `testDataItemsCount`
|
11664
|
+
# @return [Fixnum]
|
11665
|
+
attr_accessor :test_data_items_count
|
11666
|
+
|
11667
|
+
# Number of Annotations that are used for training this Model.
|
11668
|
+
# Corresponds to the JSON property `trainingAnnotationsCount`
|
11669
|
+
# @return [Fixnum]
|
11670
|
+
attr_accessor :training_annotations_count
|
11671
|
+
|
11672
|
+
# Number of DataItems that were used for training this Model.
|
11673
|
+
# Corresponds to the JSON property `trainingDataItemsCount`
|
11674
|
+
# @return [Fixnum]
|
11675
|
+
attr_accessor :training_data_items_count
|
11676
|
+
|
11677
|
+
# Number of Annotations that are used for validating this Model during training.
|
11678
|
+
# Corresponds to the JSON property `validationAnnotationsCount`
|
11679
|
+
# @return [Fixnum]
|
11680
|
+
attr_accessor :validation_annotations_count
|
11681
|
+
|
11682
|
+
# Number of DataItems that were used for validating this Model during training.
|
11683
|
+
# Corresponds to the JSON property `validationDataItemsCount`
|
11684
|
+
# @return [Fixnum]
|
11685
|
+
attr_accessor :validation_data_items_count
|
11686
|
+
|
11687
|
+
def initialize(**args)
|
11688
|
+
update!(**args)
|
11689
|
+
end
|
11690
|
+
|
11691
|
+
# Update properties of this object
|
11692
|
+
def update!(**args)
|
11693
|
+
@test_annotations_count = args[:test_annotations_count] if args.key?(:test_annotations_count)
|
11694
|
+
@test_data_items_count = args[:test_data_items_count] if args.key?(:test_data_items_count)
|
11695
|
+
@training_annotations_count = args[:training_annotations_count] if args.key?(:training_annotations_count)
|
11696
|
+
@training_data_items_count = args[:training_data_items_count] if args.key?(:training_data_items_count)
|
11697
|
+
@validation_annotations_count = args[:validation_annotations_count] if args.key?(:validation_annotations_count)
|
11698
|
+
@validation_data_items_count = args[:validation_data_items_count] if args.key?(:validation_data_items_count)
|
11699
|
+
end
|
11700
|
+
end
|
11701
|
+
|
11273
11702
|
# ModelDeploymentMonitoringBigQueryTable specifies the BigQuery table name as
|
11274
11703
|
# well as some information of the logs stored in this table.
|
11275
11704
|
class GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable
|
@@ -13433,6 +13862,60 @@ module Google
|
|
13433
13862
|
end
|
13434
13863
|
end
|
13435
13864
|
|
13865
|
+
# Content part.
|
13866
|
+
class GoogleCloudAiplatformV1Part
|
13867
|
+
include Google::Apis::Core::Hashable
|
13868
|
+
|
13869
|
+
# URI based data.
|
13870
|
+
# Corresponds to the JSON property `fileData`
|
13871
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileData]
|
13872
|
+
attr_accessor :file_data
|
13873
|
+
|
13874
|
+
# A predicted [FunctionCall] returned from the model that contains a string
|
13875
|
+
# representing the [FunctionDeclaration.name] and a structured JSON object
|
13876
|
+
# containing the parameters and their values.
|
13877
|
+
# Corresponds to the JSON property `functionCall`
|
13878
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionCall]
|
13879
|
+
attr_accessor :function_call
|
13880
|
+
|
13881
|
+
# The result output from a [FunctionCall] that contains a string representing
|
13882
|
+
# the [FunctionDeclaration.name] and a structured JSON object containing any
|
13883
|
+
# output from the function is used as context to the model. This should contain
|
13884
|
+
# the result of a [FunctionCall] made based on model prediction.
|
13885
|
+
# Corresponds to the JSON property `functionResponse`
|
13886
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponse]
|
13887
|
+
attr_accessor :function_response
|
13888
|
+
|
13889
|
+
# Content blob.
|
13890
|
+
# Corresponds to the JSON property `inlineData`
|
13891
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob]
|
13892
|
+
attr_accessor :inline_data
|
13893
|
+
|
13894
|
+
# Optional. Text part (can be code).
|
13895
|
+
# Corresponds to the JSON property `text`
|
13896
|
+
# @return [String]
|
13897
|
+
attr_accessor :text
|
13898
|
+
|
13899
|
+
# Metadata describes the input video content.
|
13900
|
+
# Corresponds to the JSON property `videoMetadata`
|
13901
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata]
|
13902
|
+
attr_accessor :video_metadata
|
13903
|
+
|
13904
|
+
def initialize(**args)
|
13905
|
+
update!(**args)
|
13906
|
+
end
|
13907
|
+
|
13908
|
+
# Update properties of this object
|
13909
|
+
def update!(**args)
|
13910
|
+
@file_data = args[:file_data] if args.key?(:file_data)
|
13911
|
+
@function_call = args[:function_call] if args.key?(:function_call)
|
13912
|
+
@function_response = args[:function_response] if args.key?(:function_response)
|
13913
|
+
@inline_data = args[:inline_data] if args.key?(:inline_data)
|
13914
|
+
@text = args[:text] if args.key?(:text)
|
13915
|
+
@video_metadata = args[:video_metadata] if args.key?(:video_metadata)
|
13916
|
+
end
|
13917
|
+
end
|
13918
|
+
|
13436
13919
|
# Request message for JobService.PauseModelDeploymentMonitoringJob.
|
13437
13920
|
class GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest
|
13438
13921
|
include Google::Apis::Core::Hashable
|
@@ -17645,6 +18128,12 @@ module Google
|
|
17645
18128
|
# @return [String]
|
17646
18129
|
attr_accessor :enterprise_datastore
|
17647
18130
|
|
18131
|
+
# The grounding text passed inline with the Predict API. It can support up to 1
|
18132
|
+
# million token context.
|
18133
|
+
# Corresponds to the JSON property `inlineContext`
|
18134
|
+
# @return [String]
|
18135
|
+
attr_accessor :inline_context
|
18136
|
+
|
17648
18137
|
# The type of the grounding checking source.
|
17649
18138
|
# Corresponds to the JSON property `type`
|
17650
18139
|
# @return [String]
|
@@ -17662,6 +18151,7 @@ module Google
|
|
17662
18151
|
# Update properties of this object
|
17663
18152
|
def update!(**args)
|
17664
18153
|
@enterprise_datastore = args[:enterprise_datastore] if args.key?(:enterprise_datastore)
|
18154
|
+
@inline_context = args[:inline_context] if args.key?(:inline_context)
|
17665
18155
|
@type = args[:type] if args.key?(:type)
|
17666
18156
|
@vertex_ai_search_datastore = args[:vertex_ai_search_datastore] if args.key?(:vertex_ai_search_datastore)
|
17667
18157
|
end
|
@@ -18706,6 +19196,11 @@ module Google
|
|
18706
19196
|
# @return [Fixnum]
|
18707
19197
|
attr_accessor :max_output_tokens
|
18708
19198
|
|
19199
|
+
# User-created prompt note. Note size limit is 2KB.
|
19200
|
+
# Corresponds to the JSON property `note`
|
19201
|
+
# @return [String]
|
19202
|
+
attr_accessor :note
|
19203
|
+
|
18709
19204
|
# Type of the prompt dataset.
|
18710
19205
|
# Corresponds to the JSON property `promptType`
|
18711
19206
|
# @return [String]
|
@@ -18750,6 +19245,7 @@ module Google
|
|
18750
19245
|
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
18751
19246
|
@grounding_config = args[:grounding_config] if args.key?(:grounding_config)
|
18752
19247
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
19248
|
+
@note = args[:note] if args.key?(:note)
|
18753
19249
|
@prompt_type = args[:prompt_type] if args.key?(:prompt_type)
|
18754
19250
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
18755
19251
|
@temperature = args[:temperature] if args.key?(:temperature)
|
@@ -24819,6 +25315,45 @@ module Google
|
|
24819
25315
|
end
|
24820
25316
|
end
|
24821
25317
|
|
25318
|
+
# Metadata information for NotebookService.UpgradeNotebookRuntime.
|
25319
|
+
class GoogleCloudAiplatformV1UpgradeNotebookRuntimeOperationMetadata
|
25320
|
+
include Google::Apis::Core::Hashable
|
25321
|
+
|
25322
|
+
# Generic Metadata shared by all operations.
|
25323
|
+
# Corresponds to the JSON property `genericMetadata`
|
25324
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenericOperationMetadata]
|
25325
|
+
attr_accessor :generic_metadata
|
25326
|
+
|
25327
|
+
# A human-readable message that shows the intermediate progress details of
|
25328
|
+
# NotebookRuntime.
|
25329
|
+
# Corresponds to the JSON property `progressMessage`
|
25330
|
+
# @return [String]
|
25331
|
+
attr_accessor :progress_message
|
25332
|
+
|
25333
|
+
def initialize(**args)
|
25334
|
+
update!(**args)
|
25335
|
+
end
|
25336
|
+
|
25337
|
+
# Update properties of this object
|
25338
|
+
def update!(**args)
|
25339
|
+
@generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
|
25340
|
+
@progress_message = args[:progress_message] if args.key?(:progress_message)
|
25341
|
+
end
|
25342
|
+
end
|
25343
|
+
|
25344
|
+
# Request message for NotebookService.UpgradeNotebookRuntime.
|
25345
|
+
class GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest
|
25346
|
+
include Google::Apis::Core::Hashable
|
25347
|
+
|
25348
|
+
def initialize(**args)
|
25349
|
+
update!(**args)
|
25350
|
+
end
|
25351
|
+
|
25352
|
+
# Update properties of this object
|
25353
|
+
def update!(**args)
|
25354
|
+
end
|
25355
|
+
end
|
25356
|
+
|
24822
25357
|
# Details of ModelService.UploadModel operation.
|
24823
25358
|
class GoogleCloudAiplatformV1UploadModelOperationMetadata
|
24824
25359
|
include Google::Apis::Core::Hashable
|
@@ -25011,6 +25546,31 @@ module Google
|
|
25011
25546
|
end
|
25012
25547
|
end
|
25013
25548
|
|
25549
|
+
# Metadata describes the input video content.
|
25550
|
+
class GoogleCloudAiplatformV1VideoMetadata
|
25551
|
+
include Google::Apis::Core::Hashable
|
25552
|
+
|
25553
|
+
# Optional. The end offset of the video.
|
25554
|
+
# Corresponds to the JSON property `endOffset`
|
25555
|
+
# @return [String]
|
25556
|
+
attr_accessor :end_offset
|
25557
|
+
|
25558
|
+
# Optional. The start offset of the video.
|
25559
|
+
# Corresponds to the JSON property `startOffset`
|
25560
|
+
# @return [String]
|
25561
|
+
attr_accessor :start_offset
|
25562
|
+
|
25563
|
+
def initialize(**args)
|
25564
|
+
update!(**args)
|
25565
|
+
end
|
25566
|
+
|
25567
|
+
# Update properties of this object
|
25568
|
+
def update!(**args)
|
25569
|
+
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
25570
|
+
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
25571
|
+
end
|
25572
|
+
end
|
25573
|
+
|
25014
25574
|
# Represents the spec of a worker pool in a job.
|
25015
25575
|
class GoogleCloudAiplatformV1WorkerPoolSpec
|
25016
25576
|
include Google::Apis::Core::Hashable
|