google-apis-aiplatform_v1 0.39.0 → 0.40.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.
@@ -440,6 +440,17 @@ module Google
440
440
  class CloudAiLargeModelsVisionVideo
441
441
  include Google::Apis::Core::Hashable
442
442
 
443
+ # Base 64 encoded video bytes.
444
+ # Corresponds to the JSON property `encodedVideo`
445
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
446
+ # @return [String]
447
+ attr_accessor :encoded_video
448
+
449
+ # Video encoding, for example "video/mp4".
450
+ # Corresponds to the JSON property `encoding`
451
+ # @return [String]
452
+ attr_accessor :encoding
453
+
443
454
  # Path to another storage (typically Google Cloud Storage).
444
455
  # Corresponds to the JSON property `uri`
445
456
  # @return [String]
@@ -457,6 +468,8 @@ module Google
457
468
 
458
469
  # Update properties of this object
459
470
  def update!(**args)
471
+ @encoded_video = args[:encoded_video] if args.key?(:encoded_video)
472
+ @encoding = args[:encoding] if args.key?(:encoding)
460
473
  @uri = args[:uri] if args.key?(:uri)
461
474
  @video = args[:video] if args.key?(:video)
462
475
  end
@@ -2373,6 +2386,33 @@ module Google
2373
2386
  end
2374
2387
  end
2375
2388
 
2389
+ # Config of GenAI caching features. This is a singleton resource.
2390
+ class GoogleCloudAiplatformV1CacheConfig
2391
+ include Google::Apis::Core::Hashable
2392
+
2393
+ # If set to true, disables GenAI caching. Otherwise caching is enabled.
2394
+ # Corresponds to the JSON property `disableCache`
2395
+ # @return [Boolean]
2396
+ attr_accessor :disable_cache
2397
+ alias_method :disable_cache?, :disable_cache
2398
+
2399
+ # Identifier. Name of the cache config. Format: - `projects/`project`/
2400
+ # cacheConfig`.
2401
+ # Corresponds to the JSON property `name`
2402
+ # @return [String]
2403
+ attr_accessor :name
2404
+
2405
+ def initialize(**args)
2406
+ update!(**args)
2407
+ end
2408
+
2409
+ # Update properties of this object
2410
+ def update!(**args)
2411
+ @disable_cache = args[:disable_cache] if args.key?(:disable_cache)
2412
+ @name = args[:name] if args.key?(:name)
2413
+ end
2414
+ end
2415
+
2376
2416
  # Request message for JobService.CancelBatchPredictionJob.
2377
2417
  class GoogleCloudAiplatformV1CancelBatchPredictionJobRequest
2378
2418
  include Google::Apis::Core::Hashable
@@ -2690,6 +2730,25 @@ module Google
2690
2730
  end
2691
2731
  end
2692
2732
 
2733
+ # Configurations (e.g. inference timeout) that are applied on your endpoints.
2734
+ class GoogleCloudAiplatformV1ClientConnectionConfig
2735
+ include Google::Apis::Core::Hashable
2736
+
2737
+ # Customizable online prediction request timeout.
2738
+ # Corresponds to the JSON property `inferenceTimeout`
2739
+ # @return [String]
2740
+ attr_accessor :inference_timeout
2741
+
2742
+ def initialize(**args)
2743
+ update!(**args)
2744
+ end
2745
+
2746
+ # Update properties of this object
2747
+ def update!(**args)
2748
+ @inference_timeout = args[:inference_timeout] if args.key?(:inference_timeout)
2749
+ end
2750
+ end
2751
+
2693
2752
  # Input for coherence metric.
2694
2753
  class GoogleCloudAiplatformV1CoherenceInput
2695
2754
  include Google::Apis::Core::Hashable
@@ -4105,11 +4164,6 @@ module Google
4105
4164
  # @return [String]
4106
4165
  attr_accessor :protected_artifact_location_id
4107
4166
 
4108
- # Configuration for PSC-I.
4109
- # Corresponds to the JSON property `pscInterfaceConfig`
4110
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PscInterfaceConfig]
4111
- attr_accessor :psc_interface_config
4112
-
4113
4167
  # Optional. A list of names for the reserved ip ranges under the VPC network
4114
4168
  # that can be used for this job. If set, we will deploy the job within the
4115
4169
  # provided ip ranges. Otherwise, the job will be deployed to any ip ranges under
@@ -4160,7 +4214,6 @@ module Google
4160
4214
  @network = args[:network] if args.key?(:network)
4161
4215
  @persistent_resource_id = args[:persistent_resource_id] if args.key?(:persistent_resource_id)
4162
4216
  @protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
4163
- @psc_interface_config = args[:psc_interface_config] if args.key?(:psc_interface_config)
4164
4217
  @reserved_ip_ranges = args[:reserved_ip_ranges] if args.key?(:reserved_ip_ranges)
4165
4218
  @scheduling = args[:scheduling] if args.key?(:scheduling)
4166
4219
  @service_account = args[:service_account] if args.key?(:service_account)
@@ -5410,6 +5463,12 @@ module Google
5410
5463
  # @return [String]
5411
5464
  attr_accessor :shared_resources
5412
5465
 
5466
+ # System labels to apply to Model Garden deployments. System labels are managed
5467
+ # by Google for internal use only.
5468
+ # Corresponds to the JSON property `systemLabels`
5469
+ # @return [Hash<String,String>]
5470
+ attr_accessor :system_labels
5471
+
5413
5472
  def initialize(**args)
5414
5473
  update!(**args)
5415
5474
  end
@@ -5430,6 +5489,7 @@ module Google
5430
5489
  @private_endpoints = args[:private_endpoints] if args.key?(:private_endpoints)
5431
5490
  @service_account = args[:service_account] if args.key?(:service_account)
5432
5491
  @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
5492
+ @system_labels = args[:system_labels] if args.key?(:system_labels)
5433
5493
  end
5434
5494
  end
5435
5495
 
@@ -5761,6 +5821,11 @@ module Google
5761
5821
  class GoogleCloudAiplatformV1Endpoint
5762
5822
  include Google::Apis::Core::Hashable
5763
5823
 
5824
+ # Configurations (e.g. inference timeout) that are applied on your endpoints.
5825
+ # Corresponds to the JSON property `clientConnectionConfig`
5826
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ClientConnectionConfig]
5827
+ attr_accessor :client_connection_config
5828
+
5764
5829
  # Output only. Timestamp when this Endpoint was created.
5765
5830
  # Corresponds to the JSON property `createTime`
5766
5831
  # @return [String]
@@ -5897,6 +5962,7 @@ module Google
5897
5962
 
5898
5963
  # Update properties of this object
5899
5964
  def update!(**args)
5965
+ @client_connection_config = args[:client_connection_config] if args.key?(:client_connection_config)
5900
5966
  @create_time = args[:create_time] if args.key?(:create_time)
5901
5967
  @dedicated_endpoint_dns = args[:dedicated_endpoint_dns] if args.key?(:dedicated_endpoint_dns)
5902
5968
  @dedicated_endpoint_enabled = args[:dedicated_endpoint_enabled] if args.key?(:dedicated_endpoint_enabled)
@@ -8949,6 +9015,11 @@ module Google
8949
9015
  # @return [String]
8950
9016
  attr_accessor :name
8951
9017
 
9018
+ # Configuration for FeatureViews created in Optimized FeatureOnlineStore.
9019
+ # Corresponds to the JSON property `optimizedConfig`
9020
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewOptimizedConfig]
9021
+ attr_accessor :optimized_config
9022
+
8952
9023
  # Output only. Reserved for future use.
8953
9024
  # Corresponds to the JSON property `satisfiesPzi`
8954
9025
  # @return [Boolean]
@@ -8989,6 +9060,7 @@ module Google
8989
9060
  @index_config = args[:index_config] if args.key?(:index_config)
8990
9061
  @labels = args[:labels] if args.key?(:labels)
8991
9062
  @name = args[:name] if args.key?(:name)
9063
+ @optimized_config = args[:optimized_config] if args.key?(:optimized_config)
8992
9064
  @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
8993
9065
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
8994
9066
  @sync_config = args[:sync_config] if args.key?(:sync_config)
@@ -9213,6 +9285,27 @@ module Google
9213
9285
  end
9214
9286
  end
9215
9287
 
9288
+ # Configuration for FeatureViews created in Optimized FeatureOnlineStore.
9289
+ class GoogleCloudAiplatformV1FeatureViewOptimizedConfig
9290
+ include Google::Apis::Core::Hashable
9291
+
9292
+ # A description of resources that to large degree are decided by Vertex AI, and
9293
+ # require only a modest additional configuration. Each Model supporting these
9294
+ # resources documents its specific guidelines.
9295
+ # Corresponds to the JSON property `automaticResources`
9296
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutomaticResources]
9297
+ attr_accessor :automatic_resources
9298
+
9299
+ def initialize(**args)
9300
+ update!(**args)
9301
+ end
9302
+
9303
+ # Update properties of this object
9304
+ def update!(**args)
9305
+ @automatic_resources = args[:automatic_resources] if args.key?(:automatic_resources)
9306
+ end
9307
+ end
9308
+
9216
9309
  # FeatureViewSync is a representation of sync operation which copies data from
9217
9310
  # data source to Feature View in Online Store.
9218
9311
  class GoogleCloudAiplatformV1FeatureViewSync
@@ -9788,6 +9881,25 @@ module Google
9788
9881
  end
9789
9882
  end
9790
9883
 
9884
+ # Request message for PredictionService.FetchPredictOperation.
9885
+ class GoogleCloudAiplatformV1FetchPredictOperationRequest
9886
+ include Google::Apis::Core::Hashable
9887
+
9888
+ # Required. The server-assigned name for the operation.
9889
+ # Corresponds to the JSON property `operationName`
9890
+ # @return [String]
9891
+ attr_accessor :operation_name
9892
+
9893
+ def initialize(**args)
9894
+ update!(**args)
9895
+ end
9896
+
9897
+ # Update properties of this object
9898
+ def update!(**args)
9899
+ @operation_name = args[:operation_name] if args.key?(:operation_name)
9900
+ end
9901
+ end
9902
+
9791
9903
  # URI based data.
9792
9904
  class GoogleCloudAiplatformV1FileData
9793
9905
  include Google::Apis::Core::Hashable
@@ -10345,9 +10457,9 @@ module Google
10345
10457
 
10346
10458
  # Structured representation of a function declaration as defined by the [OpenAPI
10347
10459
  # 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this
10348
- # declaration are the function name and parameters. This FunctionDeclaration is
10349
- # a representation of a block of code that can be used as a `Tool` by the model
10350
- # and executed by the client.
10460
+ # declaration are the function name, description, parameters and response type.
10461
+ # This FunctionDeclaration is a representation of a block of code that can be
10462
+ # used as a `Tool` by the model and executed by the client.
10351
10463
  class GoogleCloudAiplatformV1FunctionDeclaration
10352
10464
  include Google::Apis::Core::Hashable
10353
10465
 
@@ -11015,6 +11127,11 @@ module Google
11015
11127
  class GoogleCloudAiplatformV1GroundingChunkRetrievedContext
11016
11128
  include Google::Apis::Core::Hashable
11017
11129
 
11130
+ # Text of the attribution.
11131
+ # Corresponds to the JSON property `text`
11132
+ # @return [String]
11133
+ attr_accessor :text
11134
+
11018
11135
  # Title of the attribution.
11019
11136
  # Corresponds to the JSON property `title`
11020
11137
  # @return [String]
@@ -11031,6 +11148,7 @@ module Google
11031
11148
 
11032
11149
  # Update properties of this object
11033
11150
  def update!(**args)
11151
+ @text = args[:text] if args.key?(:text)
11034
11152
  @title = args[:title] if args.key?(:title)
11035
11153
  @uri = args[:uri] if args.key?(:uri)
11036
11154
  end
@@ -17264,6 +17382,11 @@ module Google
17264
17382
  # @return [String]
17265
17383
  attr_accessor :create_time
17266
17384
 
17385
+ # Compute configuration to use for an execution job.
17386
+ # Corresponds to the JSON property `customEnvironmentSpec`
17387
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec]
17388
+ attr_accessor :custom_environment_spec
17389
+
17267
17390
  # The Dataform Repository containing the input notebook.
17268
17391
  # Corresponds to the JSON property `dataformRepositorySource`
17269
17392
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource]
@@ -17366,6 +17489,7 @@ module Google
17366
17489
  # Update properties of this object
17367
17490
  def update!(**args)
17368
17491
  @create_time = args[:create_time] if args.key?(:create_time)
17492
+ @custom_environment_spec = args[:custom_environment_spec] if args.key?(:custom_environment_spec)
17369
17493
  @dataform_repository_source = args[:dataform_repository_source] if args.key?(:dataform_repository_source)
17370
17494
  @direct_notebook_source = args[:direct_notebook_source] if args.key?(:direct_notebook_source)
17371
17495
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -17385,6 +17509,37 @@ module Google
17385
17509
  end
17386
17510
  end
17387
17511
 
17512
+ # Compute configuration to use for an execution job.
17513
+ class GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec
17514
+ include Google::Apis::Core::Hashable
17515
+
17516
+ # Specification of a single machine.
17517
+ # Corresponds to the JSON property `machineSpec`
17518
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MachineSpec]
17519
+ attr_accessor :machine_spec
17520
+
17521
+ # Network spec.
17522
+ # Corresponds to the JSON property `networkSpec`
17523
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NetworkSpec]
17524
+ attr_accessor :network_spec
17525
+
17526
+ # Represents the spec of persistent disk options.
17527
+ # Corresponds to the JSON property `persistentDiskSpec`
17528
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentDiskSpec]
17529
+ attr_accessor :persistent_disk_spec
17530
+
17531
+ def initialize(**args)
17532
+ update!(**args)
17533
+ end
17534
+
17535
+ # Update properties of this object
17536
+ def update!(**args)
17537
+ @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
17538
+ @network_spec = args[:network_spec] if args.key?(:network_spec)
17539
+ @persistent_disk_spec = args[:persistent_disk_spec] if args.key?(:persistent_disk_spec)
17540
+ end
17541
+ end
17542
+
17388
17543
  # The Dataform Repository containing the input notebook.
17389
17544
  class GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource
17390
17545
  include Google::Apis::Core::Hashable
@@ -19127,6 +19282,38 @@ module Google
19127
19282
  end
19128
19283
  end
19129
19284
 
19285
+ # Request message for PredictionService.PredictLongRunning.
19286
+ class GoogleCloudAiplatformV1PredictLongRunningRequest
19287
+ include Google::Apis::Core::Hashable
19288
+
19289
+ # Required. The instances that are the input to the prediction call. A
19290
+ # DeployedModel may have an upper limit on the number of instances it supports
19291
+ # per request, and when it is exceeded the prediction call errors in case of
19292
+ # AutoML Models, or, in case of customer created Models, the behaviour is as
19293
+ # documented by that Model. The schema of any single instance may be specified
19294
+ # via Endpoint's DeployedModels' Model's PredictSchemata's instance_schema_uri.
19295
+ # Corresponds to the JSON property `instances`
19296
+ # @return [Array<Object>]
19297
+ attr_accessor :instances
19298
+
19299
+ # Optional. The parameters that govern the prediction. The schema of the
19300
+ # parameters may be specified via Endpoint's DeployedModels' Model's
19301
+ # PredictSchemata's parameters_schema_uri.
19302
+ # Corresponds to the JSON property `parameters`
19303
+ # @return [Object]
19304
+ attr_accessor :parameters
19305
+
19306
+ def initialize(**args)
19307
+ update!(**args)
19308
+ end
19309
+
19310
+ # Update properties of this object
19311
+ def update!(**args)
19312
+ @instances = args[:instances] if args.key?(:instances)
19313
+ @parameters = args[:parameters] if args.key?(:parameters)
19314
+ end
19315
+ end
19316
+
19130
19317
  # Request message for PredictionService.Predict.
19131
19318
  class GoogleCloudAiplatformV1PredictRequest
19132
19319
  include Google::Apis::Core::Hashable
@@ -19498,19 +19685,6 @@ module Google
19498
19685
  end
19499
19686
  end
19500
19687
 
19501
- # Configuration for PSC-I.
19502
- class GoogleCloudAiplatformV1PscInterfaceConfig
19503
- include Google::Apis::Core::Hashable
19504
-
19505
- def initialize(**args)
19506
- update!(**args)
19507
- end
19508
-
19509
- # Update properties of this object
19510
- def update!(**args)
19511
- end
19512
- end
19513
-
19514
19688
  # A Model Garden Publisher Model.
19515
19689
  class GoogleCloudAiplatformV1PublisherModel
19516
19690
  include Google::Apis::Core::Hashable
@@ -19781,8 +19955,8 @@ module Google
19781
19955
  class GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata
19782
19956
  include Google::Apis::Core::Hashable
19783
19957
 
19784
- # Optional. Labels for the deployment. For managing deployment config like
19785
- # verifying, source of deployment config, etc.
19958
+ # Optional. Labels for the deployment config. For managing deployment config
19959
+ # like verifying, source of deployment config, etc.
19786
19960
  # Corresponds to the JSON property `labels`
19787
19961
  # @return [Hash<String,String>]
19788
19962
  attr_accessor :labels
@@ -25265,6 +25439,11 @@ module Google
25265
25439
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt]
25266
25440
  attr_accessor :structured_prompt
25267
25441
 
25442
+ # Prompt variation for Translation use case.
25443
+ # Corresponds to the JSON property `translationPrompt`
25444
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt]
25445
+ attr_accessor :translation_prompt
25446
+
25268
25447
  def initialize(**args)
25269
25448
  update!(**args)
25270
25449
  end
@@ -25275,6 +25454,7 @@ module Google
25275
25454
  @executions = args[:executions] if args.key?(:executions)
25276
25455
  @multimodal_prompt = args[:multimodal_prompt] if args.key?(:multimodal_prompt)
25277
25456
  @structured_prompt = args[:structured_prompt] if args.key?(:structured_prompt)
25457
+ @translation_prompt = args[:translation_prompt] if args.key?(:translation_prompt)
25278
25458
  end
25279
25459
  end
25280
25460
 
@@ -25420,6 +25600,50 @@ module Google
25420
25600
  end
25421
25601
  end
25422
25602
 
25603
+ # A pair of sentences used as reference in source and target languages.
25604
+ class GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair
25605
+ include Google::Apis::Core::Hashable
25606
+
25607
+ # Source sentence in the sentence pair.
25608
+ # Corresponds to the JSON property `sourceSentence`
25609
+ # @return [String]
25610
+ attr_accessor :source_sentence
25611
+
25612
+ # Target sentence in the sentence pair.
25613
+ # Corresponds to the JSON property `targetSentence`
25614
+ # @return [String]
25615
+ attr_accessor :target_sentence
25616
+
25617
+ def initialize(**args)
25618
+ update!(**args)
25619
+ end
25620
+
25621
+ # Update properties of this object
25622
+ def update!(**args)
25623
+ @source_sentence = args[:source_sentence] if args.key?(:source_sentence)
25624
+ @target_sentence = args[:target_sentence] if args.key?(:target_sentence)
25625
+ end
25626
+ end
25627
+
25628
+ # A list of reference sentence pairs.
25629
+ class GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList
25630
+ include Google::Apis::Core::Hashable
25631
+
25632
+ # Reference sentence pairs.
25633
+ # Corresponds to the JSON property `referenceSentencePairs`
25634
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair>]
25635
+ attr_accessor :reference_sentence_pairs
25636
+
25637
+ def initialize(**args)
25638
+ update!(**args)
25639
+ end
25640
+
25641
+ # Update properties of this object
25642
+ def update!(**args)
25643
+ @reference_sentence_pairs = args[:reference_sentence_pairs] if args.key?(:reference_sentence_pairs)
25644
+ end
25645
+ end
25646
+
25423
25647
  # Prompt variation that stores preambles in separate fields.
25424
25648
  class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
25425
25649
  include Google::Apis::Core::Hashable
@@ -25437,6 +25661,16 @@ module Google
25437
25661
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList>]
25438
25662
  attr_accessor :examples
25439
25663
 
25664
+ # Preamble: For infill prompt, the prefix before expected model response.
25665
+ # Corresponds to the JSON property `infillPrefix`
25666
+ # @return [String]
25667
+ attr_accessor :infill_prefix
25668
+
25669
+ # Preamble: For infill prompt, the suffix after expected model response.
25670
+ # Corresponds to the JSON property `infillSuffix`
25671
+ # @return [String]
25672
+ attr_accessor :infill_suffix
25673
+
25440
25674
  # Preamble: The input prefixes before each example input.
25441
25675
  # Corresponds to the JSON property `inputPrefixes`
25442
25676
  # @return [Array<String>]
@@ -25447,6 +25681,12 @@ module Google
25447
25681
  # @return [Array<String>]
25448
25682
  attr_accessor :output_prefixes
25449
25683
 
25684
+ # Preamble: The input test data for prediction. Each PartList in this field
25685
+ # represents one text-only input set for a single model request.
25686
+ # Corresponds to the JSON property `predictionInputs`
25687
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList>]
25688
+ attr_accessor :prediction_inputs
25689
+
25450
25690
  # The prompt message that aligns with the prompt message in google.cloud.
25451
25691
  # aiplatform.master.GenerateContentRequest.
25452
25692
  # Corresponds to the JSON property `promptMessage`
@@ -25461,12 +25701,178 @@ module Google
25461
25701
  def update!(**args)
25462
25702
  @context = args[:context] if args.key?(:context)
25463
25703
  @examples = args[:examples] if args.key?(:examples)
25704
+ @infill_prefix = args[:infill_prefix] if args.key?(:infill_prefix)
25705
+ @infill_suffix = args[:infill_suffix] if args.key?(:infill_suffix)
25464
25706
  @input_prefixes = args[:input_prefixes] if args.key?(:input_prefixes)
25465
25707
  @output_prefixes = args[:output_prefixes] if args.key?(:output_prefixes)
25708
+ @prediction_inputs = args[:prediction_inputs] if args.key?(:prediction_inputs)
25466
25709
  @prompt_message = args[:prompt_message] if args.key?(:prompt_message)
25467
25710
  end
25468
25711
  end
25469
25712
 
25713
+ # The translation example that contains reference sentences from various sources.
25714
+ class GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample
25715
+ include Google::Apis::Core::Hashable
25716
+
25717
+ # The reference sentences from inline text.
25718
+ # Corresponds to the JSON property `referenceSentencePairLists`
25719
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList>]
25720
+ attr_accessor :reference_sentence_pair_lists
25721
+
25722
+ # The reference sentences from file.
25723
+ # Corresponds to the JSON property `referenceSentencesFileInputs`
25724
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput>]
25725
+ attr_accessor :reference_sentences_file_inputs
25726
+
25727
+ def initialize(**args)
25728
+ update!(**args)
25729
+ end
25730
+
25731
+ # Update properties of this object
25732
+ def update!(**args)
25733
+ @reference_sentence_pair_lists = args[:reference_sentence_pair_lists] if args.key?(:reference_sentence_pair_lists)
25734
+ @reference_sentences_file_inputs = args[:reference_sentences_file_inputs] if args.key?(:reference_sentences_file_inputs)
25735
+ end
25736
+ end
25737
+
25738
+ #
25739
+ class GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource
25740
+ include Google::Apis::Core::Hashable
25741
+
25742
+ # The file's contents.
25743
+ # Corresponds to the JSON property `content`
25744
+ # @return [String]
25745
+ attr_accessor :content
25746
+
25747
+ # The file's display name.
25748
+ # Corresponds to the JSON property `displayName`
25749
+ # @return [String]
25750
+ attr_accessor :display_name
25751
+
25752
+ # The file's mime type.
25753
+ # Corresponds to the JSON property `mimeType`
25754
+ # @return [String]
25755
+ attr_accessor :mime_type
25756
+
25757
+ def initialize(**args)
25758
+ update!(**args)
25759
+ end
25760
+
25761
+ # Update properties of this object
25762
+ def update!(**args)
25763
+ @content = args[:content] if args.key?(:content)
25764
+ @display_name = args[:display_name] if args.key?(:display_name)
25765
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
25766
+ end
25767
+ end
25768
+
25769
+ #
25770
+ class GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource
25771
+ include Google::Apis::Core::Hashable
25772
+
25773
+ # Source data URI. For example, `gs://my_bucket/my_object`.
25774
+ # Corresponds to the JSON property `inputUri`
25775
+ # @return [String]
25776
+ attr_accessor :input_uri
25777
+
25778
+ def initialize(**args)
25779
+ update!(**args)
25780
+ end
25781
+
25782
+ # Update properties of this object
25783
+ def update!(**args)
25784
+ @input_uri = args[:input_uri] if args.key?(:input_uri)
25785
+ end
25786
+ end
25787
+
25788
+ # Optional settings for translation prompt.
25789
+ class GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption
25790
+ include Google::Apis::Core::Hashable
25791
+
25792
+ # How many shots to use.
25793
+ # Corresponds to the JSON property `numberOfShots`
25794
+ # @return [Fixnum]
25795
+ attr_accessor :number_of_shots
25796
+
25797
+ def initialize(**args)
25798
+ update!(**args)
25799
+ end
25800
+
25801
+ # Update properties of this object
25802
+ def update!(**args)
25803
+ @number_of_shots = args[:number_of_shots] if args.key?(:number_of_shots)
25804
+ end
25805
+ end
25806
+
25807
+ # Prompt variation for Translation use case.
25808
+ class GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt
25809
+ include Google::Apis::Core::Hashable
25810
+
25811
+ # The translation example that contains reference sentences from various sources.
25812
+ # Corresponds to the JSON property `example`
25813
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample]
25814
+ attr_accessor :example
25815
+
25816
+ # Optional settings for translation prompt.
25817
+ # Corresponds to the JSON property `option`
25818
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption]
25819
+ attr_accessor :option
25820
+
25821
+ # The prompt message that aligns with the prompt message in google.cloud.
25822
+ # aiplatform.master.GenerateContentRequest.
25823
+ # Corresponds to the JSON property `promptMessage`
25824
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage]
25825
+ attr_accessor :prompt_message
25826
+
25827
+ # The source language code.
25828
+ # Corresponds to the JSON property `sourceLanguageCode`
25829
+ # @return [String]
25830
+ attr_accessor :source_language_code
25831
+
25832
+ # The target language code.
25833
+ # Corresponds to the JSON property `targetLanguageCode`
25834
+ # @return [String]
25835
+ attr_accessor :target_language_code
25836
+
25837
+ def initialize(**args)
25838
+ update!(**args)
25839
+ end
25840
+
25841
+ # Update properties of this object
25842
+ def update!(**args)
25843
+ @example = args[:example] if args.key?(:example)
25844
+ @option = args[:option] if args.key?(:option)
25845
+ @prompt_message = args[:prompt_message] if args.key?(:prompt_message)
25846
+ @source_language_code = args[:source_language_code] if args.key?(:source_language_code)
25847
+ @target_language_code = args[:target_language_code] if args.key?(:target_language_code)
25848
+ end
25849
+ end
25850
+
25851
+ #
25852
+ class GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput
25853
+ include Google::Apis::Core::Hashable
25854
+
25855
+ # Inlined file source.
25856
+ # Corresponds to the JSON property `fileInputSource`
25857
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource]
25858
+ attr_accessor :file_input_source
25859
+
25860
+ # Cloud Storage file source.
25861
+ # Corresponds to the JSON property `gcsInputSource`
25862
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource]
25863
+ attr_accessor :gcs_input_source
25864
+
25865
+ def initialize(**args)
25866
+ update!(**args)
25867
+ end
25868
+
25869
+ # Update properties of this object
25870
+ def update!(**args)
25871
+ @file_input_source = args[:file_input_source] if args.key?(:file_input_source)
25872
+ @gcs_input_source = args[:gcs_input_source] if args.key?(:gcs_input_source)
25873
+ end
25874
+ end
25875
+
25470
25876
  # The metadata of Datasets that contain tables data.
25471
25877
  class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata
25472
25878
  include Google::Apis::Core::Hashable
@@ -29542,6 +29948,19 @@ module Google
29542
29948
  end
29543
29949
  end
29544
29950
 
29951
+ # Request message for NotebookService.StopNotebookRuntime.
29952
+ class GoogleCloudAiplatformV1StopNotebookRuntimeRequest
29953
+ include Google::Apis::Core::Hashable
29954
+
29955
+ def initialize(**args)
29956
+ update!(**args)
29957
+ end
29958
+
29959
+ # Update properties of this object
29960
+ def update!(**args)
29961
+ end
29962
+ end
29963
+
29545
29964
  # Request message for VizierService.StopTrial.
29546
29965
  class GoogleCloudAiplatformV1StopTrialRequest
29547
29966
  include Google::Apis::Core::Hashable
@@ -32868,7 +33287,7 @@ module Google
32868
33287
  class GoogleCloudAiplatformV1TuningJob
32869
33288
  include Google::Apis::Core::Hashable
32870
33289
 
32871
- # The base model that is being tuned, e.g., "gemini-1.0-pro-002".
33290
+ # The base model that is being tuned, e.g., "gemini-1.0-pro-002". .
32872
33291
  # Corresponds to the JSON property `baseModel`
32873
33292
  # @return [String]
32874
33293
  attr_accessor :base_model
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1
18
18
  # Version of the google-apis-aiplatform_v1 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241007"
25
+ REVISION = "20241026"
26
26
  end
27
27
  end
28
28
  end