google-apis-aiplatform_v1 0.6.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
|
|
@@ -2319,6 +2386,54 @@ module Google
|
|
2319
2386
|
end
|
2320
2387
|
end
|
2321
2388
|
|
2389
|
+
# Runtime operation information for CreateDeploymentResourcePool method.
|
2390
|
+
class GoogleCloudAiplatformV1CreateDeploymentResourcePoolOperationMetadata
|
2391
|
+
include Google::Apis::Core::Hashable
|
2392
|
+
|
2393
|
+
# Generic Metadata shared by all operations.
|
2394
|
+
# Corresponds to the JSON property `genericMetadata`
|
2395
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenericOperationMetadata]
|
2396
|
+
attr_accessor :generic_metadata
|
2397
|
+
|
2398
|
+
def initialize(**args)
|
2399
|
+
update!(**args)
|
2400
|
+
end
|
2401
|
+
|
2402
|
+
# Update properties of this object
|
2403
|
+
def update!(**args)
|
2404
|
+
@generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
|
2405
|
+
end
|
2406
|
+
end
|
2407
|
+
|
2408
|
+
# Request message for CreateDeploymentResourcePool method.
|
2409
|
+
class GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest
|
2410
|
+
include Google::Apis::Core::Hashable
|
2411
|
+
|
2412
|
+
# A description of resources that can be shared by multiple DeployedModels,
|
2413
|
+
# whose underlying specification consists of a DedicatedResources.
|
2414
|
+
# Corresponds to the JSON property `deploymentResourcePool`
|
2415
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeploymentResourcePool]
|
2416
|
+
attr_accessor :deployment_resource_pool
|
2417
|
+
|
2418
|
+
# Required. The ID to use for the DeploymentResourcePool, which will become the
|
2419
|
+
# final component of the DeploymentResourcePool's resource name. The maximum
|
2420
|
+
# length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-
|
2421
|
+
# z0-9])?$/`.
|
2422
|
+
# Corresponds to the JSON property `deploymentResourcePoolId`
|
2423
|
+
# @return [String]
|
2424
|
+
attr_accessor :deployment_resource_pool_id
|
2425
|
+
|
2426
|
+
def initialize(**args)
|
2427
|
+
update!(**args)
|
2428
|
+
end
|
2429
|
+
|
2430
|
+
# Update properties of this object
|
2431
|
+
def update!(**args)
|
2432
|
+
@deployment_resource_pool = args[:deployment_resource_pool] if args.key?(:deployment_resource_pool)
|
2433
|
+
@deployment_resource_pool_id = args[:deployment_resource_pool_id] if args.key?(:deployment_resource_pool_id)
|
2434
|
+
end
|
2435
|
+
end
|
2436
|
+
|
2322
2437
|
# Runtime operation information for EndpointService.CreateEndpoint.
|
2323
2438
|
class GoogleCloudAiplatformV1CreateEndpointOperationMetadata
|
2324
2439
|
include Google::Apis::Core::Hashable
|
@@ -4028,6 +4143,11 @@ module Google
|
|
4028
4143
|
# @return [String]
|
4029
4144
|
attr_accessor :deployed_index_id
|
4030
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
|
+
|
4031
4151
|
# Immutable. A resource name of the IndexEndpoint.
|
4032
4152
|
# Corresponds to the JSON property `indexEndpoint`
|
4033
4153
|
# @return [String]
|
@@ -4040,6 +4160,7 @@ module Google
|
|
4040
4160
|
# Update properties of this object
|
4041
4161
|
def update!(**args)
|
4042
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)
|
4043
4164
|
@index_endpoint = args[:index_endpoint] if args.key?(:index_endpoint)
|
4044
4165
|
end
|
4045
4166
|
end
|
@@ -4136,6 +4257,13 @@ module Google
|
|
4136
4257
|
# @return [String]
|
4137
4258
|
attr_accessor :service_account
|
4138
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
|
+
|
4139
4267
|
def initialize(**args)
|
4140
4268
|
update!(**args)
|
4141
4269
|
end
|
@@ -4154,6 +4282,7 @@ module Google
|
|
4154
4282
|
@model_version_id = args[:model_version_id] if args.key?(:model_version_id)
|
4155
4283
|
@private_endpoints = args[:private_endpoints] if args.key?(:private_endpoints)
|
4156
4284
|
@service_account = args[:service_account] if args.key?(:service_account)
|
4285
|
+
@shared_resources = args[:shared_resources] if args.key?(:shared_resources)
|
4157
4286
|
end
|
4158
4287
|
end
|
4159
4288
|
|
@@ -4182,6 +4311,41 @@ module Google
|
|
4182
4311
|
end
|
4183
4312
|
end
|
4184
4313
|
|
4314
|
+
# A description of resources that can be shared by multiple DeployedModels,
|
4315
|
+
# whose underlying specification consists of a DedicatedResources.
|
4316
|
+
class GoogleCloudAiplatformV1DeploymentResourcePool
|
4317
|
+
include Google::Apis::Core::Hashable
|
4318
|
+
|
4319
|
+
# Output only. Timestamp when this DeploymentResourcePool was created.
|
4320
|
+
# Corresponds to the JSON property `createTime`
|
4321
|
+
# @return [String]
|
4322
|
+
attr_accessor :create_time
|
4323
|
+
|
4324
|
+
# A description of resources that are dedicated to a DeployedModel, and that
|
4325
|
+
# need a higher degree of manual configuration.
|
4326
|
+
# Corresponds to the JSON property `dedicatedResources`
|
4327
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DedicatedResources]
|
4328
|
+
attr_accessor :dedicated_resources
|
4329
|
+
|
4330
|
+
# Immutable. The resource name of the DeploymentResourcePool. Format: `projects/`
|
4331
|
+
# project`/locations/`location`/deploymentResourcePools/`
|
4332
|
+
# deployment_resource_pool``
|
4333
|
+
# Corresponds to the JSON property `name`
|
4334
|
+
# @return [String]
|
4335
|
+
attr_accessor :name
|
4336
|
+
|
4337
|
+
def initialize(**args)
|
4338
|
+
update!(**args)
|
4339
|
+
end
|
4340
|
+
|
4341
|
+
# Update properties of this object
|
4342
|
+
def update!(**args)
|
4343
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4344
|
+
@dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
|
4345
|
+
@name = args[:name] if args.key?(:name)
|
4346
|
+
end
|
4347
|
+
end
|
4348
|
+
|
4185
4349
|
#
|
4186
4350
|
class GoogleCloudAiplatformV1DestinationFeatureSetting
|
4187
4351
|
include Google::Apis::Core::Hashable
|
@@ -4208,6 +4372,104 @@ module Google
|
|
4208
4372
|
end
|
4209
4373
|
end
|
4210
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
|
+
|
4211
4473
|
# Represents the spec of disk options.
|
4212
4474
|
class GoogleCloudAiplatformV1DiskSpec
|
4213
4475
|
include Google::Apis::Core::Hashable
|
@@ -5600,6 +5862,22 @@ module Google
|
|
5600
5862
|
class GoogleCloudAiplatformV1ExportDataConfig
|
5601
5863
|
include Google::Apis::Core::Hashable
|
5602
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
|
+
|
5603
5881
|
# An expression for filtering what part of the Dataset is to be exported. Only
|
5604
5882
|
# Annotations that match this filter will be exported. The filter syntax is the
|
5605
5883
|
# same as in ListAnnotations.
|
@@ -5607,6 +5885,20 @@ module Google
|
|
5607
5885
|
# @return [String]
|
5608
5886
|
attr_accessor :annotations_filter
|
5609
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
|
+
|
5610
5902
|
# Assigns the input data to training, validation, and test sets as per the given
|
5611
5903
|
# fractions. Any of `training_fraction`, `validation_fraction` and `
|
5612
5904
|
# test_fraction` may optionally be provided, they must sum to up to 1. If the
|
@@ -5622,15 +5914,31 @@ module Google
|
|
5622
5914
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
|
5623
5915
|
attr_accessor :gcs_destination
|
5624
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
|
+
|
5625
5929
|
def initialize(**args)
|
5626
5930
|
update!(**args)
|
5627
5931
|
end
|
5628
5932
|
|
5629
5933
|
# Update properties of this object
|
5630
5934
|
def update!(**args)
|
5935
|
+
@annotation_schema_uri = args[:annotation_schema_uri] if args.key?(:annotation_schema_uri)
|
5631
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)
|
5632
5939
|
@fraction_split = args[:fraction_split] if args.key?(:fraction_split)
|
5633
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)
|
5634
5942
|
end
|
5635
5943
|
end
|
5636
5944
|
|
@@ -5684,7 +5992,14 @@ module Google
|
|
5684
5992
|
class GoogleCloudAiplatformV1ExportDataResponse
|
5685
5993
|
include Google::Apis::Core::Hashable
|
5686
5994
|
|
5687
|
-
#
|
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-*).
|
5688
6003
|
# Corresponds to the JSON property `exportedFiles`
|
5689
6004
|
# @return [Array<String>]
|
5690
6005
|
attr_accessor :exported_files
|
@@ -5695,6 +6010,7 @@ module Google
|
|
5695
6010
|
|
5696
6011
|
# Update properties of this object
|
5697
6012
|
def update!(**args)
|
6013
|
+
@data_stats = args[:data_stats] if args.key?(:data_stats)
|
5698
6014
|
@exported_files = args[:exported_files] if args.key?(:exported_files)
|
5699
6015
|
end
|
5700
6016
|
end
|
@@ -5834,6 +6150,53 @@ module Google
|
|
5834
6150
|
end
|
5835
6151
|
end
|
5836
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
|
+
|
5837
6200
|
# Assigns the input data to training, validation, and test sets as per the given
|
5838
6201
|
# fractions. Any of `training_fraction`, `validation_fraction` and `
|
5839
6202
|
# test_fraction` may optionally be provided, they must sum to up to 1. If the
|
@@ -6193,7 +6556,7 @@ module Google
|
|
6193
6556
|
# @return [Hash<String,String>]
|
6194
6557
|
attr_accessor :labels
|
6195
6558
|
|
6196
|
-
#
|
6559
|
+
# Identifier. Name of the FeatureGroup. Format: `projects/`project`/locations/`
|
6197
6560
|
# location`/featureGroups/`featureGroup``
|
6198
6561
|
# Corresponds to the JSON property `name`
|
6199
6562
|
# @return [String]
|
@@ -6364,7 +6727,7 @@ module Google
|
|
6364
6727
|
# @return [Hash<String,String>]
|
6365
6728
|
attr_accessor :labels
|
6366
6729
|
|
6367
|
-
#
|
6730
|
+
# Identifier. Name of the FeatureOnlineStore. Format: `projects/`project`/
|
6368
6731
|
# locations/`location`/featureOnlineStores/`featureOnlineStore``
|
6369
6732
|
# Corresponds to the JSON property `name`
|
6370
6733
|
# @return [String]
|
@@ -6742,16 +7105,14 @@ module Google
|
|
6742
7105
|
# @return [Hash<String,String>]
|
6743
7106
|
attr_accessor :labels
|
6744
7107
|
|
6745
|
-
#
|
7108
|
+
# Identifier. Name of the FeatureView. Format: `projects/`project`/locations/`
|
6746
7109
|
# location`/featureOnlineStores/`feature_online_store`/featureViews/`
|
6747
7110
|
# feature_view``
|
6748
7111
|
# Corresponds to the JSON property `name`
|
6749
7112
|
# @return [String]
|
6750
7113
|
attr_accessor :name
|
6751
7114
|
|
6752
|
-
#
|
6753
|
-
# of the sync the latest featureValues for each entityId of this FeatureView are
|
6754
|
-
# made ready for online serving.
|
7115
|
+
# Configuration for Sync. Only one option is set.
|
6755
7116
|
# Corresponds to the JSON property `syncConfig`
|
6756
7117
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewSyncConfig]
|
6757
7118
|
attr_accessor :sync_config
|
@@ -6805,6 +7166,25 @@ module Google
|
|
6805
7166
|
end
|
6806
7167
|
end
|
6807
7168
|
|
7169
|
+
# Lookup key for a feature view.
|
7170
|
+
class GoogleCloudAiplatformV1FeatureViewDataKey
|
7171
|
+
include Google::Apis::Core::Hashable
|
7172
|
+
|
7173
|
+
# String key to use for lookup.
|
7174
|
+
# Corresponds to the JSON property `key`
|
7175
|
+
# @return [String]
|
7176
|
+
attr_accessor :key
|
7177
|
+
|
7178
|
+
def initialize(**args)
|
7179
|
+
update!(**args)
|
7180
|
+
end
|
7181
|
+
|
7182
|
+
# Update properties of this object
|
7183
|
+
def update!(**args)
|
7184
|
+
@key = args[:key] if args.key?(:key)
|
7185
|
+
end
|
7186
|
+
end
|
7187
|
+
|
6808
7188
|
# A Feature Registry source for features that need to be synced to Online Store.
|
6809
7189
|
class GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource
|
6810
7190
|
include Google::Apis::Core::Hashable
|
@@ -6872,8 +7252,8 @@ module Google
|
|
6872
7252
|
# @return [Google::Apis::AiplatformV1::GoogleRpcStatus]
|
6873
7253
|
attr_accessor :final_status
|
6874
7254
|
|
6875
|
-
#
|
6876
|
-
#
|
7255
|
+
# Identifier. Name of the FeatureViewSync. Format: `projects/`project`/locations/
|
7256
|
+
# `location`/featureOnlineStores/`feature_online_store`/featureViews/`
|
6877
7257
|
# feature_view`/featureViewSyncs/`feature_view_sync``
|
6878
7258
|
# Corresponds to the JSON property `name`
|
6879
7259
|
# @return [String]
|
@@ -6900,7 +7280,7 @@ module Google
|
|
6900
7280
|
end
|
6901
7281
|
end
|
6902
7282
|
|
6903
|
-
#
|
7283
|
+
# Configuration for Sync. Only one option is set.
|
6904
7284
|
class GoogleCloudAiplatformV1FeatureViewSyncConfig
|
6905
7285
|
include Google::Apis::Core::Hashable
|
6906
7286
|
|
@@ -7220,16 +7600,16 @@ module Google
|
|
7220
7600
|
class GoogleCloudAiplatformV1FetchFeatureValuesRequest
|
7221
7601
|
include Google::Apis::Core::Hashable
|
7222
7602
|
|
7223
|
-
#
|
7224
|
-
#
|
7603
|
+
# Optional. Response data format. If not set, FeatureViewDataFormat.KEY_VALUE
|
7604
|
+
# will be used.
|
7605
|
+
# Corresponds to the JSON property `dataFormat`
|
7225
7606
|
# @return [String]
|
7226
|
-
attr_accessor :
|
7607
|
+
attr_accessor :data_format
|
7227
7608
|
|
7228
|
-
#
|
7229
|
-
#
|
7230
|
-
#
|
7231
|
-
|
7232
|
-
attr_accessor :id
|
7609
|
+
# Lookup key for a feature view.
|
7610
|
+
# Corresponds to the JSON property `dataKey`
|
7611
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewDataKey]
|
7612
|
+
attr_accessor :data_key
|
7233
7613
|
|
7234
7614
|
def initialize(**args)
|
7235
7615
|
update!(**args)
|
@@ -7237,8 +7617,8 @@ module Google
|
|
7237
7617
|
|
7238
7618
|
# Update properties of this object
|
7239
7619
|
def update!(**args)
|
7240
|
-
@
|
7241
|
-
@
|
7620
|
+
@data_format = args[:data_format] if args.key?(:data_format)
|
7621
|
+
@data_key = args[:data_key] if args.key?(:data_key)
|
7242
7622
|
end
|
7243
7623
|
end
|
7244
7624
|
|
@@ -7313,6 +7693,31 @@ module Google
|
|
7313
7693
|
end
|
7314
7694
|
end
|
7315
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
|
+
|
7316
7721
|
# Assigns input data to training, validation, and test sets based on the given
|
7317
7722
|
# filters, data pieces not matched by any filter are ignored. Currently only
|
7318
7723
|
# supported for Datasets containing DataItems. If any of the filters in this
|
@@ -7561,6 +7966,63 @@ module Google
|
|
7561
7966
|
end
|
7562
7967
|
end
|
7563
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
|
+
|
7564
8026
|
# The Google Cloud Storage location where the output is to be written to.
|
7565
8027
|
class GoogleCloudAiplatformV1GcsDestination
|
7566
8028
|
include Google::Apis::Core::Hashable
|
@@ -9047,6 +9509,32 @@ module Google
|
|
9047
9509
|
end
|
9048
9510
|
end
|
9049
9511
|
|
9512
|
+
# Response message for ListDeploymentResourcePools method.
|
9513
|
+
class GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse
|
9514
|
+
include Google::Apis::Core::Hashable
|
9515
|
+
|
9516
|
+
# The DeploymentResourcePools from the specified location.
|
9517
|
+
# Corresponds to the JSON property `deploymentResourcePools`
|
9518
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeploymentResourcePool>]
|
9519
|
+
attr_accessor :deployment_resource_pools
|
9520
|
+
|
9521
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
9522
|
+
# field is omitted, there are no subsequent pages.
|
9523
|
+
# Corresponds to the JSON property `nextPageToken`
|
9524
|
+
# @return [String]
|
9525
|
+
attr_accessor :next_page_token
|
9526
|
+
|
9527
|
+
def initialize(**args)
|
9528
|
+
update!(**args)
|
9529
|
+
end
|
9530
|
+
|
9531
|
+
# Update properties of this object
|
9532
|
+
def update!(**args)
|
9533
|
+
@deployment_resource_pools = args[:deployment_resource_pools] if args.key?(:deployment_resource_pools)
|
9534
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9535
|
+
end
|
9536
|
+
end
|
9537
|
+
|
9050
9538
|
# Response message for EndpointService.ListEndpoints.
|
9051
9539
|
class GoogleCloudAiplatformV1ListEndpointsResponse
|
9052
9540
|
include Google::Apis::Core::Hashable
|
@@ -10704,6 +11192,11 @@ module Google
|
|
10704
11192
|
# @return [String]
|
10705
11193
|
attr_accessor :create_time
|
10706
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
|
+
|
10707
11200
|
# Output only. The pointers to DeployedModels created from this Model. Note that
|
10708
11201
|
# Model could have been deployed to Endpoints in different Locations.
|
10709
11202
|
# Corresponds to the JSON property `deployedModels`
|
@@ -10910,6 +11403,7 @@ module Google
|
|
10910
11403
|
@artifact_uri = args[:artifact_uri] if args.key?(:artifact_uri)
|
10911
11404
|
@container_spec = args[:container_spec] if args.key?(:container_spec)
|
10912
11405
|
@create_time = args[:create_time] if args.key?(:create_time)
|
11406
|
+
@data_stats = args[:data_stats] if args.key?(:data_stats)
|
10913
11407
|
@deployed_models = args[:deployed_models] if args.key?(:deployed_models)
|
10914
11408
|
@description = args[:description] if args.key?(:description)
|
10915
11409
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -11008,6 +11502,11 @@ module Google
|
|
11008
11502
|
# @return [Array<String>]
|
11009
11503
|
attr_accessor :command
|
11010
11504
|
|
11505
|
+
# Immutable. Deployment timeout. Limit for deployment timeout is 2 hours.
|
11506
|
+
# Corresponds to the JSON property `deploymentTimeout`
|
11507
|
+
# @return [String]
|
11508
|
+
attr_accessor :deployment_timeout
|
11509
|
+
|
11011
11510
|
# Immutable. List of environment variables to set in the container. After the
|
11012
11511
|
# container starts running, code running in the container can read these
|
11013
11512
|
# environment variables. Additionally, the command and args fields can reference
|
@@ -11023,6 +11522,22 @@ module Google
|
|
11023
11522
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar>]
|
11024
11523
|
attr_accessor :env
|
11025
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
|
+
|
11535
|
+
# Probe describes a health check to be performed against a container to
|
11536
|
+
# determine whether it is alive or ready to receive traffic.
|
11537
|
+
# Corresponds to the JSON property `healthProbe`
|
11538
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Probe]
|
11539
|
+
attr_accessor :health_probe
|
11540
|
+
|
11026
11541
|
# Immutable. HTTP path on the container to send health checks to. Vertex AI
|
11027
11542
|
# intermittently sends GET requests to this path on the container's IP address
|
11028
11543
|
# and port to check that the container is healthy. Read more about [health
|
@@ -11098,6 +11613,18 @@ module Google
|
|
11098
11613
|
# @return [String]
|
11099
11614
|
attr_accessor :predict_route
|
11100
11615
|
|
11616
|
+
# Immutable. The amount of the VM memory to reserve as the shared memory for the
|
11617
|
+
# model in megabytes.
|
11618
|
+
# Corresponds to the JSON property `sharedMemorySizeMb`
|
11619
|
+
# @return [Fixnum]
|
11620
|
+
attr_accessor :shared_memory_size_mb
|
11621
|
+
|
11622
|
+
# Probe describes a health check to be performed against a container to
|
11623
|
+
# determine whether it is alive or ready to receive traffic.
|
11624
|
+
# Corresponds to the JSON property `startupProbe`
|
11625
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Probe]
|
11626
|
+
attr_accessor :startup_probe
|
11627
|
+
|
11101
11628
|
def initialize(**args)
|
11102
11629
|
update!(**args)
|
11103
11630
|
end
|
@@ -11106,11 +11633,69 @@ module Google
|
|
11106
11633
|
def update!(**args)
|
11107
11634
|
@args = args[:args] if args.key?(:args)
|
11108
11635
|
@command = args[:command] if args.key?(:command)
|
11636
|
+
@deployment_timeout = args[:deployment_timeout] if args.key?(:deployment_timeout)
|
11109
11637
|
@env = args[:env] if args.key?(:env)
|
11638
|
+
@grpc_ports = args[:grpc_ports] if args.key?(:grpc_ports)
|
11639
|
+
@health_probe = args[:health_probe] if args.key?(:health_probe)
|
11110
11640
|
@health_route = args[:health_route] if args.key?(:health_route)
|
11111
11641
|
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
11112
11642
|
@ports = args[:ports] if args.key?(:ports)
|
11113
11643
|
@predict_route = args[:predict_route] if args.key?(:predict_route)
|
11644
|
+
@shared_memory_size_mb = args[:shared_memory_size_mb] if args.key?(:shared_memory_size_mb)
|
11645
|
+
@startup_probe = args[:startup_probe] if args.key?(:startup_probe)
|
11646
|
+
end
|
11647
|
+
end
|
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)
|
11114
11699
|
end
|
11115
11700
|
end
|
11116
11701
|
|
@@ -13277,6 +13862,60 @@ module Google
|
|
13277
13862
|
end
|
13278
13863
|
end
|
13279
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
|
+
|
13280
13919
|
# Request message for JobService.PauseModelDeploymentMonitoringJob.
|
13281
13920
|
class GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest
|
13282
13921
|
include Google::Apis::Core::Hashable
|
@@ -14197,6 +14836,66 @@ module Google
|
|
14197
14836
|
end
|
14198
14837
|
end
|
14199
14838
|
|
14839
|
+
# Probe describes a health check to be performed against a container to
|
14840
|
+
# determine whether it is alive or ready to receive traffic.
|
14841
|
+
class GoogleCloudAiplatformV1Probe
|
14842
|
+
include Google::Apis::Core::Hashable
|
14843
|
+
|
14844
|
+
# ExecAction specifies a command to execute.
|
14845
|
+
# Corresponds to the JSON property `exec`
|
14846
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeExecAction]
|
14847
|
+
attr_accessor :exec
|
14848
|
+
|
14849
|
+
# How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
|
14850
|
+
# value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe
|
14851
|
+
# argument 'periodSeconds'.
|
14852
|
+
# Corresponds to the JSON property `periodSeconds`
|
14853
|
+
# @return [Fixnum]
|
14854
|
+
attr_accessor :period_seconds
|
14855
|
+
|
14856
|
+
# Number of seconds after which the probe times out. Defaults to 1 second.
|
14857
|
+
# Minimum value is 1. Must be greater or equal to period_seconds. Maps to
|
14858
|
+
# Kubernetes probe argument 'timeoutSeconds'.
|
14859
|
+
# Corresponds to the JSON property `timeoutSeconds`
|
14860
|
+
# @return [Fixnum]
|
14861
|
+
attr_accessor :timeout_seconds
|
14862
|
+
|
14863
|
+
def initialize(**args)
|
14864
|
+
update!(**args)
|
14865
|
+
end
|
14866
|
+
|
14867
|
+
# Update properties of this object
|
14868
|
+
def update!(**args)
|
14869
|
+
@exec = args[:exec] if args.key?(:exec)
|
14870
|
+
@period_seconds = args[:period_seconds] if args.key?(:period_seconds)
|
14871
|
+
@timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
|
14872
|
+
end
|
14873
|
+
end
|
14874
|
+
|
14875
|
+
# ExecAction specifies a command to execute.
|
14876
|
+
class GoogleCloudAiplatformV1ProbeExecAction
|
14877
|
+
include Google::Apis::Core::Hashable
|
14878
|
+
|
14879
|
+
# Command is the command line to execute inside the container, the working
|
14880
|
+
# directory for the command is root ('/') in the container's filesystem. The
|
14881
|
+
# command is simply exec'd, it is not run inside a shell, so traditional shell
|
14882
|
+
# instructions ('|', etc) won't work. To use a shell, you need to explicitly
|
14883
|
+
# call out to that shell. Exit status of 0 is treated as live/healthy and non-
|
14884
|
+
# zero is unhealthy.
|
14885
|
+
# Corresponds to the JSON property `command`
|
14886
|
+
# @return [Array<String>]
|
14887
|
+
attr_accessor :command
|
14888
|
+
|
14889
|
+
def initialize(**args)
|
14890
|
+
update!(**args)
|
14891
|
+
end
|
14892
|
+
|
14893
|
+
# Update properties of this object
|
14894
|
+
def update!(**args)
|
14895
|
+
@command = args[:command] if args.key?(:command)
|
14896
|
+
end
|
14897
|
+
end
|
14898
|
+
|
14200
14899
|
# A Model Garden Publisher Model.
|
14201
14900
|
class GoogleCloudAiplatformV1PublisherModel
|
14202
14901
|
include Google::Apis::Core::Hashable
|
@@ -14792,6 +15491,52 @@ module Google
|
|
14792
15491
|
end
|
14793
15492
|
end
|
14794
15493
|
|
15494
|
+
# Response message for QueryDeployedModels method.
|
15495
|
+
class GoogleCloudAiplatformV1QueryDeployedModelsResponse
|
15496
|
+
include Google::Apis::Core::Hashable
|
15497
|
+
|
15498
|
+
# References to the DeployedModels that share the specified
|
15499
|
+
# deploymentResourcePool.
|
15500
|
+
# Corresponds to the JSON property `deployedModelRefs`
|
15501
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployedModelRef>]
|
15502
|
+
attr_accessor :deployed_model_refs
|
15503
|
+
|
15504
|
+
# DEPRECATED Use deployed_model_refs instead.
|
15505
|
+
# Corresponds to the JSON property `deployedModels`
|
15506
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployedModel>]
|
15507
|
+
attr_accessor :deployed_models
|
15508
|
+
|
15509
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
15510
|
+
# field is omitted, there are no subsequent pages.
|
15511
|
+
# Corresponds to the JSON property `nextPageToken`
|
15512
|
+
# @return [String]
|
15513
|
+
attr_accessor :next_page_token
|
15514
|
+
|
15515
|
+
# The total number of DeployedModels on this DeploymentResourcePool.
|
15516
|
+
# Corresponds to the JSON property `totalDeployedModelCount`
|
15517
|
+
# @return [Fixnum]
|
15518
|
+
attr_accessor :total_deployed_model_count
|
15519
|
+
|
15520
|
+
# The total number of Endpoints that have DeployedModels on this
|
15521
|
+
# DeploymentResourcePool.
|
15522
|
+
# Corresponds to the JSON property `totalEndpointCount`
|
15523
|
+
# @return [Fixnum]
|
15524
|
+
attr_accessor :total_endpoint_count
|
15525
|
+
|
15526
|
+
def initialize(**args)
|
15527
|
+
update!(**args)
|
15528
|
+
end
|
15529
|
+
|
15530
|
+
# Update properties of this object
|
15531
|
+
def update!(**args)
|
15532
|
+
@deployed_model_refs = args[:deployed_model_refs] if args.key?(:deployed_model_refs)
|
15533
|
+
@deployed_models = args[:deployed_models] if args.key?(:deployed_models)
|
15534
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
15535
|
+
@total_deployed_model_count = args[:total_deployed_model_count] if args.key?(:total_deployed_model_count)
|
15536
|
+
@total_endpoint_count = args[:total_endpoint_count] if args.key?(:total_endpoint_count)
|
15537
|
+
end
|
15538
|
+
end
|
15539
|
+
|
14795
15540
|
# Request message for PredictionService.RawPredict.
|
14796
15541
|
class GoogleCloudAiplatformV1RawPredictRequest
|
14797
15542
|
include Google::Apis::Core::Hashable
|
@@ -17351,6 +18096,12 @@ module Google
|
|
17351
18096
|
class GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig
|
17352
18097
|
include Google::Apis::Core::Hashable
|
17353
18098
|
|
18099
|
+
# If set, skip finding claim attributions (i.e not generate grounding citation).
|
18100
|
+
# Corresponds to the JSON property `disableAttribution`
|
18101
|
+
# @return [Boolean]
|
18102
|
+
attr_accessor :disable_attribution
|
18103
|
+
alias_method :disable_attribution?, :disable_attribution
|
18104
|
+
|
17354
18105
|
# The sources for the grounding checking.
|
17355
18106
|
# Corresponds to the JSON property `sources`
|
17356
18107
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry>]
|
@@ -17362,6 +18113,7 @@ module Google
|
|
17362
18113
|
|
17363
18114
|
# Update properties of this object
|
17364
18115
|
def update!(**args)
|
18116
|
+
@disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
|
17365
18117
|
@sources = args[:sources] if args.key?(:sources)
|
17366
18118
|
end
|
17367
18119
|
end
|
@@ -17370,16 +18122,28 @@ module Google
|
|
17370
18122
|
class GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry
|
17371
18123
|
include Google::Apis::Core::Hashable
|
17372
18124
|
|
17373
|
-
# The uri of the
|
18125
|
+
# The uri of the Vertex AI Search data source. Deprecated. Use
|
18126
|
+
# vertex_ai_search_datastore instead.
|
17374
18127
|
# Corresponds to the JSON property `enterpriseDatastore`
|
17375
18128
|
# @return [String]
|
17376
18129
|
attr_accessor :enterprise_datastore
|
17377
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
|
+
|
17378
18137
|
# The type of the grounding checking source.
|
17379
18138
|
# Corresponds to the JSON property `type`
|
17380
18139
|
# @return [String]
|
17381
18140
|
attr_accessor :type
|
17382
18141
|
|
18142
|
+
# The uri of the Vertex AI Search data source.
|
18143
|
+
# Corresponds to the JSON property `vertexAiSearchDatastore`
|
18144
|
+
# @return [String]
|
18145
|
+
attr_accessor :vertex_ai_search_datastore
|
18146
|
+
|
17383
18147
|
def initialize(**args)
|
17384
18148
|
update!(**args)
|
17385
18149
|
end
|
@@ -17387,7 +18151,9 @@ module Google
|
|
17387
18151
|
# Update properties of this object
|
17388
18152
|
def update!(**args)
|
17389
18153
|
@enterprise_datastore = args[:enterprise_datastore] if args.key?(:enterprise_datastore)
|
18154
|
+
@inline_context = args[:inline_context] if args.key?(:inline_context)
|
17390
18155
|
@type = args[:type] if args.key?(:type)
|
18156
|
+
@vertex_ai_search_datastore = args[:vertex_ai_search_datastore] if args.key?(:vertex_ai_search_datastore)
|
17391
18157
|
end
|
17392
18158
|
end
|
17393
18159
|
|
@@ -18430,6 +19196,11 @@ module Google
|
|
18430
19196
|
# @return [Fixnum]
|
18431
19197
|
attr_accessor :max_output_tokens
|
18432
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
|
+
|
18433
19204
|
# Type of the prompt dataset.
|
18434
19205
|
# Corresponds to the JSON property `promptType`
|
18435
19206
|
# @return [String]
|
@@ -18474,6 +19245,7 @@ module Google
|
|
18474
19245
|
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
18475
19246
|
@grounding_config = args[:grounding_config] if args.key?(:grounding_config)
|
18476
19247
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
19248
|
+
@note = args[:note] if args.key?(:note)
|
18477
19249
|
@prompt_type = args[:prompt_type] if args.key?(:prompt_type)
|
18478
19250
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
18479
19251
|
@temperature = args[:temperature] if args.key?(:temperature)
|
@@ -24286,6 +25058,25 @@ module Google
|
|
24286
25058
|
end
|
24287
25059
|
end
|
24288
25060
|
|
25061
|
+
# Runtime operation information for UpdateDeploymentResourcePool method.
|
25062
|
+
class GoogleCloudAiplatformV1UpdateDeploymentResourcePoolOperationMetadata
|
25063
|
+
include Google::Apis::Core::Hashable
|
25064
|
+
|
25065
|
+
# Generic Metadata shared by all operations.
|
25066
|
+
# Corresponds to the JSON property `genericMetadata`
|
25067
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenericOperationMetadata]
|
25068
|
+
attr_accessor :generic_metadata
|
25069
|
+
|
25070
|
+
def initialize(**args)
|
25071
|
+
update!(**args)
|
25072
|
+
end
|
25073
|
+
|
25074
|
+
# Update properties of this object
|
25075
|
+
def update!(**args)
|
25076
|
+
@generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
|
25077
|
+
end
|
25078
|
+
end
|
25079
|
+
|
24289
25080
|
# Runtime operation information for ModelService.UpdateExplanationDataset.
|
24290
25081
|
class GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata
|
24291
25082
|
include Google::Apis::Core::Hashable
|
@@ -24524,6 +25315,45 @@ module Google
|
|
24524
25315
|
end
|
24525
25316
|
end
|
24526
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
|
+
|
24527
25357
|
# Details of ModelService.UploadModel operation.
|
24528
25358
|
class GoogleCloudAiplatformV1UploadModelOperationMetadata
|
24529
25359
|
include Google::Apis::Core::Hashable
|
@@ -24568,10 +25398,11 @@ module Google
|
|
24568
25398
|
|
24569
25399
|
# Optional. The user-provided custom service account to use to do the model
|
24570
25400
|
# upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/
|
24571
|
-
# docs/general/access-control#service-agents) will be used
|
24572
|
-
#
|
24573
|
-
#
|
24574
|
-
#
|
25401
|
+
# docs/general/access-control#service-agents) will be used to access resources
|
25402
|
+
# needed to upload the model. This account must belong to the target project
|
25403
|
+
# where the model is uploaded to, i.e., the project specified in the `parent`
|
25404
|
+
# field of this request and have necessary read permissions (to Google Cloud
|
25405
|
+
# Storage, Artifact Registry, etc.).
|
24575
25406
|
# Corresponds to the JSON property `serviceAccount`
|
24576
25407
|
# @return [String]
|
24577
25408
|
attr_accessor :service_account
|
@@ -24715,6 +25546,31 @@ module Google
|
|
24715
25546
|
end
|
24716
25547
|
end
|
24717
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
|
+
|
24718
25574
|
# Represents the spec of a worker pool in a job.
|
24719
25575
|
class GoogleCloudAiplatformV1WorkerPoolSpec
|
24720
25576
|
include Google::Apis::Core::Hashable
|