google-apis-aiplatform_v1 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e021126c4c9f259daf6ec1a8b3fef670575df0eece7f2f593091b841b3705106
4
- data.tar.gz: 944b5dc55bd8b0a6e4cffc9e70ea2c193b28ad8f3d688abe35c94245b3528342
3
+ metadata.gz: ba00166bcd4ceec3982328698324fa9ba1ef10f0bb56d284ca04701e3930685d
4
+ data.tar.gz: 42ed4cddfdf13b3ee8195e3b4fbb258afafc7c14068ee00503c260fd81c9ef7f
5
5
  SHA512:
6
- metadata.gz: e172bdb0fbce8d6ca8d3ffce749e9f59e953424fb55a2256cbdb6d3cb2cf8fa8880973e4ab475b3ad80990ca3612b64776d9206b65ce81f2381fe5b829725e32
7
- data.tar.gz: ba2075f4fb78d0611faeffb1a05156b11576b319d6b0ecaccb7399e3ef8300d50a2d0b80d6ec699438b1c763cee28d980303b98067f9d72061c3ffeff57449db
6
+ metadata.gz: eeb6e9eacd14199a273540c69af412846ebdd9bd9ecda4dd68ff06943d58fc9228f8ddc2de4f7c1fc0ef09e6a5e8d0559936d9cb9b537dfcb4d6d2e97ce72169
7
+ data.tar.gz: baba6e1b68e3c4b523e16b3c8f84dfec1d50808f6d3ba7666acdfe1cb6302c38e89f29b03a735febad7352e083e1f49c1a799e47f0fffed91011d813937abf78
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-aiplatform_v1
2
2
 
3
+ ### v0.49.0 (2025-04-06)
4
+
5
+ * Regenerated from discovery document revision 20250322
6
+
3
7
  ### v0.48.0 (2025-03-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20250319
@@ -3599,6 +3599,44 @@ module Google
3599
3599
  end
3600
3600
  end
3601
3601
 
3602
+ # Map of placeholder in metric prompt template to contents of model input.
3603
+ class GoogleCloudAiplatformV1ContentMap
3604
+ include Google::Apis::Core::Hashable
3605
+
3606
+ # Optional. Map of placeholder to contents.
3607
+ # Corresponds to the JSON property `values`
3608
+ # @return [Hash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMapContents>]
3609
+ attr_accessor :values
3610
+
3611
+ def initialize(**args)
3612
+ update!(**args)
3613
+ end
3614
+
3615
+ # Update properties of this object
3616
+ def update!(**args)
3617
+ @values = args[:values] if args.key?(:values)
3618
+ end
3619
+ end
3620
+
3621
+ # Repeated Content type.
3622
+ class GoogleCloudAiplatformV1ContentMapContents
3623
+ include Google::Apis::Core::Hashable
3624
+
3625
+ # Optional. Repeated contents.
3626
+ # Corresponds to the JSON property `contents`
3627
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
3628
+ attr_accessor :contents
3629
+
3630
+ def initialize(**args)
3631
+ update!(**args)
3632
+ end
3633
+
3634
+ # Update properties of this object
3635
+ def update!(**args)
3636
+ @contents = args[:contents] if args.key?(:contents)
3637
+ end
3638
+ end
3639
+
3602
3640
  # Instance of a general context.
3603
3641
  class GoogleCloudAiplatformV1Context
3604
3642
  include Google::Apis::Core::Hashable
@@ -4862,6 +4900,45 @@ module Google
4862
4900
  end
4863
4901
  end
4864
4902
 
4903
+ # Spec for custom output.
4904
+ class GoogleCloudAiplatformV1CustomOutput
4905
+ include Google::Apis::Core::Hashable
4906
+
4907
+ # Raw output.
4908
+ # Corresponds to the JSON property `rawOutputs`
4909
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RawOutput]
4910
+ attr_accessor :raw_outputs
4911
+
4912
+ def initialize(**args)
4913
+ update!(**args)
4914
+ end
4915
+
4916
+ # Update properties of this object
4917
+ def update!(**args)
4918
+ @raw_outputs = args[:raw_outputs] if args.key?(:raw_outputs)
4919
+ end
4920
+ end
4921
+
4922
+ # Spec for custom output format configuration.
4923
+ class GoogleCloudAiplatformV1CustomOutputFormatConfig
4924
+ include Google::Apis::Core::Hashable
4925
+
4926
+ # Optional. Whether to return raw output.
4927
+ # Corresponds to the JSON property `returnRawOutput`
4928
+ # @return [Boolean]
4929
+ attr_accessor :return_raw_output
4930
+ alias_method :return_raw_output?, :return_raw_output
4931
+
4932
+ def initialize(**args)
4933
+ update!(**args)
4934
+ end
4935
+
4936
+ # Update properties of this object
4937
+ def update!(**args)
4938
+ @return_raw_output = args[:return_raw_output] if args.key?(:return_raw_output)
4939
+ end
4940
+ end
4941
+
4865
4942
  # A piece of data in a Dataset. Could be an image, a video, a document or plain
4866
4943
  # text.
4867
4944
  class GoogleCloudAiplatformV1DataItem
@@ -6546,8 +6623,10 @@ module Google
6546
6623
  attr_accessor :create_time
6547
6624
 
6548
6625
  # Output only. DNS of the dedicated endpoint. Will only be populated if
6549
- # dedicated_endpoint_enabled is true. Format: `https://`endpoint_id`.`region`-`
6550
- # project_number`.prediction.vertexai.goog`.
6626
+ # dedicated_endpoint_enabled is true. Depending on the features enabled, uid
6627
+ # might be a random number or a string. For example, if fast_tryout is enabled,
6628
+ # uid will be fasttryout. Format: `https://`endpoint_id`.`region`-`uid`.
6629
+ # prediction.vertexai.goog`.
6551
6630
  # Corresponds to the JSON property `dedicatedEndpointDns`
6552
6631
  # @return [String]
6553
6632
  attr_accessor :dedicated_endpoint_dns
@@ -7066,6 +7145,11 @@ module Google
7066
7145
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeInput]
7067
7146
  attr_accessor :rouge_input
7068
7147
 
7148
+ # Instance and metric spec for RubricBasedInstructionFollowing metric.
7149
+ # Corresponds to the JSON property `rubricBasedInstructionFollowingInput`
7150
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput]
7151
+ attr_accessor :rubric_based_instruction_following_input
7152
+
7069
7153
  # Input for safety metric.
7070
7154
  # Corresponds to the JSON property `safetyInput`
7071
7155
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyInput]
@@ -7160,6 +7244,7 @@ module Google
7160
7244
  @question_answering_quality_input = args[:question_answering_quality_input] if args.key?(:question_answering_quality_input)
7161
7245
  @question_answering_relevance_input = args[:question_answering_relevance_input] if args.key?(:question_answering_relevance_input)
7162
7246
  @rouge_input = args[:rouge_input] if args.key?(:rouge_input)
7247
+ @rubric_based_instruction_following_input = args[:rubric_based_instruction_following_input] if args.key?(:rubric_based_instruction_following_input)
7163
7248
  @safety_input = args[:safety_input] if args.key?(:safety_input)
7164
7249
  @summarization_helpfulness_input = args[:summarization_helpfulness_input] if args.key?(:summarization_helpfulness_input)
7165
7250
  @summarization_quality_input = args[:summarization_quality_input] if args.key?(:summarization_quality_input)
@@ -7268,6 +7353,11 @@ module Google
7268
7353
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeResults]
7269
7354
  attr_accessor :rouge_results
7270
7355
 
7356
+ # Result for RubricBasedInstructionFollowing metric.
7357
+ # Corresponds to the JSON property `rubricBasedInstructionFollowingResult`
7358
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult]
7359
+ attr_accessor :rubric_based_instruction_following_result
7360
+
7271
7361
  # Spec for safety result.
7272
7362
  # Corresponds to the JSON property `safetyResult`
7273
7363
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyResult]
@@ -7361,6 +7451,7 @@ module Google
7361
7451
  @question_answering_quality_result = args[:question_answering_quality_result] if args.key?(:question_answering_quality_result)
7362
7452
  @question_answering_relevance_result = args[:question_answering_relevance_result] if args.key?(:question_answering_relevance_result)
7363
7453
  @rouge_results = args[:rouge_results] if args.key?(:rouge_results)
7454
+ @rubric_based_instruction_following_result = args[:rubric_based_instruction_following_result] if args.key?(:rubric_based_instruction_following_result)
7364
7455
  @safety_result = args[:safety_result] if args.key?(:safety_result)
7365
7456
  @summarization_helpfulness_result = args[:summarization_helpfulness_result] if args.key?(:summarization_helpfulness_result)
7366
7457
  @summarization_quality_result = args[:summarization_quality_result] if args.key?(:summarization_quality_result)
@@ -11911,6 +12002,12 @@ module Google
11911
12002
  # @return [Fixnum]
11912
12003
  attr_accessor :total_token_count
11913
12004
 
12005
+ # Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go
12006
+ # or Provisioned Throughput quota.
12007
+ # Corresponds to the JSON property `trafficType`
12008
+ # @return [String]
12009
+ attr_accessor :traffic_type
12010
+
11914
12011
  def initialize(**args)
11915
12012
  update!(**args)
11916
12013
  end
@@ -11927,6 +12024,7 @@ module Google
11927
12024
  @tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
11928
12025
  @tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
11929
12026
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
12027
+ @traffic_type = args[:traffic_type] if args.key?(:traffic_type)
11930
12028
  end
11931
12029
  end
11932
12030
 
@@ -20026,6 +20124,11 @@ module Google
20026
20124
  class GoogleCloudAiplatformV1PairwiseMetricInstance
20027
20125
  include Google::Apis::Core::Hashable
20028
20126
 
20127
+ # Map of placeholder in metric prompt template to contents of model input.
20128
+ # Corresponds to the JSON property `contentMapInstance`
20129
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap]
20130
+ attr_accessor :content_map_instance
20131
+
20029
20132
  # Instance specified as a json string. String key-value pairs are expected in
20030
20133
  # the json_instance to render PairwiseMetricSpec.instance_prompt_template.
20031
20134
  # Corresponds to the JSON property `jsonInstance`
@@ -20038,6 +20141,7 @@ module Google
20038
20141
 
20039
20142
  # Update properties of this object
20040
20143
  def update!(**args)
20144
+ @content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
20041
20145
  @json_instance = args[:json_instance] if args.key?(:json_instance)
20042
20146
  end
20043
20147
  end
@@ -20046,6 +20150,11 @@ module Google
20046
20150
  class GoogleCloudAiplatformV1PairwiseMetricResult
20047
20151
  include Google::Apis::Core::Hashable
20048
20152
 
20153
+ # Spec for custom output.
20154
+ # Corresponds to the JSON property `customOutput`
20155
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput]
20156
+ attr_accessor :custom_output
20157
+
20049
20158
  # Output only. Explanation for pairwise metric score.
20050
20159
  # Corresponds to the JSON property `explanation`
20051
20160
  # @return [String]
@@ -20062,6 +20171,7 @@ module Google
20062
20171
 
20063
20172
  # Update properties of this object
20064
20173
  def update!(**args)
20174
+ @custom_output = args[:custom_output] if args.key?(:custom_output)
20065
20175
  @explanation = args[:explanation] if args.key?(:explanation)
20066
20176
  @pairwise_choice = args[:pairwise_choice] if args.key?(:pairwise_choice)
20067
20177
  end
@@ -20081,6 +20191,11 @@ module Google
20081
20191
  # @return [String]
20082
20192
  attr_accessor :candidate_response_field_name
20083
20193
 
20194
+ # Spec for custom output format configuration.
20195
+ # Corresponds to the JSON property `customOutputFormatConfig`
20196
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig]
20197
+ attr_accessor :custom_output_format_config
20198
+
20084
20199
  # Required. Metric prompt template for pairwise metric.
20085
20200
  # Corresponds to the JSON property `metricPromptTemplate`
20086
20201
  # @return [String]
@@ -20099,6 +20214,7 @@ module Google
20099
20214
  def update!(**args)
20100
20215
  @baseline_response_field_name = args[:baseline_response_field_name] if args.key?(:baseline_response_field_name)
20101
20216
  @candidate_response_field_name = args[:candidate_response_field_name] if args.key?(:candidate_response_field_name)
20217
+ @custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
20102
20218
  @metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
20103
20219
  @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
20104
20220
  end
@@ -21210,6 +21326,11 @@ module Google
21210
21326
  class GoogleCloudAiplatformV1PointwiseMetricInstance
21211
21327
  include Google::Apis::Core::Hashable
21212
21328
 
21329
+ # Map of placeholder in metric prompt template to contents of model input.
21330
+ # Corresponds to the JSON property `contentMapInstance`
21331
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap]
21332
+ attr_accessor :content_map_instance
21333
+
21213
21334
  # Instance specified as a json string. String key-value pairs are expected in
21214
21335
  # the json_instance to render PointwiseMetricSpec.instance_prompt_template.
21215
21336
  # Corresponds to the JSON property `jsonInstance`
@@ -21222,6 +21343,7 @@ module Google
21222
21343
 
21223
21344
  # Update properties of this object
21224
21345
  def update!(**args)
21346
+ @content_map_instance = args[:content_map_instance] if args.key?(:content_map_instance)
21225
21347
  @json_instance = args[:json_instance] if args.key?(:json_instance)
21226
21348
  end
21227
21349
  end
@@ -21230,6 +21352,11 @@ module Google
21230
21352
  class GoogleCloudAiplatformV1PointwiseMetricResult
21231
21353
  include Google::Apis::Core::Hashable
21232
21354
 
21355
+ # Spec for custom output.
21356
+ # Corresponds to the JSON property `customOutput`
21357
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput]
21358
+ attr_accessor :custom_output
21359
+
21233
21360
  # Output only. Explanation for pointwise metric score.
21234
21361
  # Corresponds to the JSON property `explanation`
21235
21362
  # @return [String]
@@ -21246,6 +21373,7 @@ module Google
21246
21373
 
21247
21374
  # Update properties of this object
21248
21375
  def update!(**args)
21376
+ @custom_output = args[:custom_output] if args.key?(:custom_output)
21249
21377
  @explanation = args[:explanation] if args.key?(:explanation)
21250
21378
  @score = args[:score] if args.key?(:score)
21251
21379
  end
@@ -21255,6 +21383,11 @@ module Google
21255
21383
  class GoogleCloudAiplatformV1PointwiseMetricSpec
21256
21384
  include Google::Apis::Core::Hashable
21257
21385
 
21386
+ # Spec for custom output format configuration.
21387
+ # Corresponds to the JSON property `customOutputFormatConfig`
21388
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig]
21389
+ attr_accessor :custom_output_format_config
21390
+
21258
21391
  # Required. Metric prompt template for pointwise metric.
21259
21392
  # Corresponds to the JSON property `metricPromptTemplate`
21260
21393
  # @return [String]
@@ -21271,6 +21404,7 @@ module Google
21271
21404
 
21272
21405
  # Update properties of this object
21273
21406
  def update!(**args)
21407
+ @custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config)
21274
21408
  @metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
21275
21409
  @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
21276
21410
  end
@@ -23927,6 +24061,25 @@ module Google
23927
24061
  end
23928
24062
  end
23929
24063
 
24064
+ # Raw output.
24065
+ class GoogleCloudAiplatformV1RawOutput
24066
+ include Google::Apis::Core::Hashable
24067
+
24068
+ # Output only. Raw output string.
24069
+ # Corresponds to the JSON property `rawOutput`
24070
+ # @return [Array<String>]
24071
+ attr_accessor :raw_output
24072
+
24073
+ def initialize(**args)
24074
+ update!(**args)
24075
+ end
24076
+
24077
+ # Update properties of this object
24078
+ def update!(**args)
24079
+ @raw_output = args[:raw_output] if args.key?(:raw_output)
24080
+ end
24081
+ end
24082
+
23930
24083
  # Request message for PredictionService.RawPredict.
23931
24084
  class GoogleCloudAiplatformV1RawPredictRequest
23932
24085
  include Google::Apis::Core::Hashable
@@ -25233,6 +25386,121 @@ module Google
25233
25386
  end
25234
25387
  end
25235
25388
 
25389
+ # Instance and metric spec for RubricBasedInstructionFollowing metric.
25390
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput
25391
+ include Google::Apis::Core::Hashable
25392
+
25393
+ # Instance for RubricBasedInstructionFollowing metric - one instance corresponds
25394
+ # to one row in an evaluation dataset.
25395
+ # Corresponds to the JSON property `instance`
25396
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance]
25397
+ attr_accessor :instance
25398
+
25399
+ # Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
25400
+ # corresponding to rubrics along with overall score.
25401
+ # Corresponds to the JSON property `metricSpec`
25402
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec]
25403
+ attr_accessor :metric_spec
25404
+
25405
+ def initialize(**args)
25406
+ update!(**args)
25407
+ end
25408
+
25409
+ # Update properties of this object
25410
+ def update!(**args)
25411
+ @instance = args[:instance] if args.key?(:instance)
25412
+ @metric_spec = args[:metric_spec] if args.key?(:metric_spec)
25413
+ end
25414
+ end
25415
+
25416
+ # Instance for RubricBasedInstructionFollowing metric - one instance corresponds
25417
+ # to one row in an evaluation dataset.
25418
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance
25419
+ include Google::Apis::Core::Hashable
25420
+
25421
+ # Required. Instance specified as a json string. String key-value pairs are
25422
+ # expected in the json_instance to render RubricBasedInstructionFollowing prompt
25423
+ # templates.
25424
+ # Corresponds to the JSON property `jsonInstance`
25425
+ # @return [String]
25426
+ attr_accessor :json_instance
25427
+
25428
+ def initialize(**args)
25429
+ update!(**args)
25430
+ end
25431
+
25432
+ # Update properties of this object
25433
+ def update!(**args)
25434
+ @json_instance = args[:json_instance] if args.key?(:json_instance)
25435
+ end
25436
+ end
25437
+
25438
+ # Result for RubricBasedInstructionFollowing metric.
25439
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult
25440
+ include Google::Apis::Core::Hashable
25441
+
25442
+ # Output only. List of per rubric critique results.
25443
+ # Corresponds to the JSON property `rubricCritiqueResults`
25444
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricCritiqueResult>]
25445
+ attr_accessor :rubric_critique_results
25446
+
25447
+ # Output only. Overall score for the instruction following.
25448
+ # Corresponds to the JSON property `score`
25449
+ # @return [Float]
25450
+ attr_accessor :score
25451
+
25452
+ def initialize(**args)
25453
+ update!(**args)
25454
+ end
25455
+
25456
+ # Update properties of this object
25457
+ def update!(**args)
25458
+ @rubric_critique_results = args[:rubric_critique_results] if args.key?(:rubric_critique_results)
25459
+ @score = args[:score] if args.key?(:score)
25460
+ end
25461
+ end
25462
+
25463
+ # Spec for RubricBasedInstructionFollowing metric - returns rubrics and verdicts
25464
+ # corresponding to rubrics along with overall score.
25465
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec
25466
+ include Google::Apis::Core::Hashable
25467
+
25468
+ def initialize(**args)
25469
+ update!(**args)
25470
+ end
25471
+
25472
+ # Update properties of this object
25473
+ def update!(**args)
25474
+ end
25475
+ end
25476
+
25477
+ # Rubric critique result.
25478
+ class GoogleCloudAiplatformV1RubricCritiqueResult
25479
+ include Google::Apis::Core::Hashable
25480
+
25481
+ # Output only. Rubric to be evaluated.
25482
+ # Corresponds to the JSON property `rubric`
25483
+ # @return [String]
25484
+ attr_accessor :rubric
25485
+
25486
+ # Output only. Verdict for the rubric - true if the rubric is met, false
25487
+ # otherwise.
25488
+ # Corresponds to the JSON property `verdict`
25489
+ # @return [Boolean]
25490
+ attr_accessor :verdict
25491
+ alias_method :verdict?, :verdict
25492
+
25493
+ def initialize(**args)
25494
+ update!(**args)
25495
+ end
25496
+
25497
+ # Update properties of this object
25498
+ def update!(**args)
25499
+ @rubric = args[:rubric] if args.key?(:rubric)
25500
+ @verdict = args[:verdict] if args.key?(:verdict)
25501
+ end
25502
+ end
25503
+
25236
25504
  # Input for safety metric.
25237
25505
  class GoogleCloudAiplatformV1SafetyInput
25238
25506
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1
18
18
  # Version of the google-apis-aiplatform_v1 gem
19
- GEM_VERSION = "0.48.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250319"
25
+ REVISION = "20250322"
26
26
  end
27
27
  end
28
28
  end
@@ -694,6 +694,18 @@ module Google
694
694
  include Google::Apis::Core::JsonObjectSupport
695
695
  end
696
696
 
697
+ class GoogleCloudAiplatformV1ContentMap
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
703
+ class GoogleCloudAiplatformV1ContentMapContents
704
+ class Representation < Google::Apis::Core::JsonRepresentation; end
705
+
706
+ include Google::Apis::Core::JsonObjectSupport
707
+ end
708
+
697
709
  class GoogleCloudAiplatformV1Context
698
710
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
711
 
@@ -928,6 +940,18 @@ module Google
928
940
  include Google::Apis::Core::JsonObjectSupport
929
941
  end
930
942
 
943
+ class GoogleCloudAiplatformV1CustomOutput
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
949
+ class GoogleCloudAiplatformV1CustomOutputFormatConfig
950
+ class Representation < Google::Apis::Core::JsonRepresentation; end
951
+
952
+ include Google::Apis::Core::JsonObjectSupport
953
+ end
954
+
931
955
  class GoogleCloudAiplatformV1DataItem
932
956
  class Representation < Google::Apis::Core::JsonRepresentation; end
933
957
 
@@ -3892,6 +3916,12 @@ module Google
3892
3916
  include Google::Apis::Core::JsonObjectSupport
3893
3917
  end
3894
3918
 
3919
+ class GoogleCloudAiplatformV1RawOutput
3920
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3921
+
3922
+ include Google::Apis::Core::JsonObjectSupport
3923
+ end
3924
+
3895
3925
  class GoogleCloudAiplatformV1RawPredictRequest
3896
3926
  class Representation < Google::Apis::Core::JsonRepresentation; end
3897
3927
 
@@ -4192,6 +4222,36 @@ module Google
4192
4222
  include Google::Apis::Core::JsonObjectSupport
4193
4223
  end
4194
4224
 
4225
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput
4226
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4227
+
4228
+ include Google::Apis::Core::JsonObjectSupport
4229
+ end
4230
+
4231
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance
4232
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4233
+
4234
+ include Google::Apis::Core::JsonObjectSupport
4235
+ end
4236
+
4237
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult
4238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4239
+
4240
+ include Google::Apis::Core::JsonObjectSupport
4241
+ end
4242
+
4243
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec
4244
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4245
+
4246
+ include Google::Apis::Core::JsonObjectSupport
4247
+ end
4248
+
4249
+ class GoogleCloudAiplatformV1RubricCritiqueResult
4250
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4251
+
4252
+ include Google::Apis::Core::JsonObjectSupport
4253
+ end
4254
+
4195
4255
  class GoogleCloudAiplatformV1SafetyInput
4196
4256
  class Representation < Google::Apis::Core::JsonRepresentation; end
4197
4257
 
@@ -7757,6 +7817,22 @@ module Google
7757
7817
  end
7758
7818
  end
7759
7819
 
7820
+ class GoogleCloudAiplatformV1ContentMap
7821
+ # @private
7822
+ class Representation < Google::Apis::Core::JsonRepresentation
7823
+ hash :values, as: 'values', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMapContents, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMapContents::Representation
7824
+
7825
+ end
7826
+ end
7827
+
7828
+ class GoogleCloudAiplatformV1ContentMapContents
7829
+ # @private
7830
+ class Representation < Google::Apis::Core::JsonRepresentation
7831
+ collection :contents, as: 'contents', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
7832
+
7833
+ end
7834
+ end
7835
+
7760
7836
  class GoogleCloudAiplatformV1Context
7761
7837
  # @private
7762
7838
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8140,6 +8216,21 @@ module Google
8140
8216
  end
8141
8217
  end
8142
8218
 
8219
+ class GoogleCloudAiplatformV1CustomOutput
8220
+ # @private
8221
+ class Representation < Google::Apis::Core::JsonRepresentation
8222
+ property :raw_outputs, as: 'rawOutputs', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RawOutput, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RawOutput::Representation
8223
+
8224
+ end
8225
+ end
8226
+
8227
+ class GoogleCloudAiplatformV1CustomOutputFormatConfig
8228
+ # @private
8229
+ class Representation < Google::Apis::Core::JsonRepresentation
8230
+ property :return_raw_output, as: 'returnRawOutput'
8231
+ end
8232
+ end
8233
+
8143
8234
  class GoogleCloudAiplatformV1DataItem
8144
8235
  # @private
8145
8236
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8714,6 +8805,8 @@ module Google
8714
8805
 
8715
8806
  property :rouge_input, as: 'rougeInput', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeInput, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeInput::Representation
8716
8807
 
8808
+ property :rubric_based_instruction_following_input, as: 'rubricBasedInstructionFollowingInput', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput::Representation
8809
+
8717
8810
  property :safety_input, as: 'safetyInput', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyInput, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyInput::Representation
8718
8811
 
8719
8812
  property :summarization_helpfulness_input, as: 'summarizationHelpfulnessInput', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SummarizationHelpfulnessInput, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SummarizationHelpfulnessInput::Representation
@@ -8782,6 +8875,8 @@ module Google
8782
8875
 
8783
8876
  property :rouge_results, as: 'rougeResults', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeResults, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RougeResults::Representation
8784
8877
 
8878
+ property :rubric_based_instruction_following_result, as: 'rubricBasedInstructionFollowingResult', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult::Representation
8879
+
8785
8880
  property :safety_result, as: 'safetyResult', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyResult, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyResult::Representation
8786
8881
 
8787
8882
  property :summarization_helpfulness_result, as: 'summarizationHelpfulnessResult', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SummarizationHelpfulnessResult, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SummarizationHelpfulnessResult::Representation
@@ -10054,6 +10149,7 @@ module Google
10054
10149
  collection :tool_use_prompt_tokens_details, as: 'toolUsePromptTokensDetails', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount::Representation
10055
10150
 
10056
10151
  property :total_token_count, as: 'totalTokenCount'
10152
+ property :traffic_type, as: 'trafficType'
10057
10153
  end
10058
10154
  end
10059
10155
 
@@ -12334,6 +12430,8 @@ module Google
12334
12430
  class GoogleCloudAiplatformV1PairwiseMetricInstance
12335
12431
  # @private
12336
12432
  class Representation < Google::Apis::Core::JsonRepresentation
12433
+ property :content_map_instance, as: 'contentMapInstance', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap::Representation
12434
+
12337
12435
  property :json_instance, as: 'jsonInstance'
12338
12436
  end
12339
12437
  end
@@ -12341,6 +12439,8 @@ module Google
12341
12439
  class GoogleCloudAiplatformV1PairwiseMetricResult
12342
12440
  # @private
12343
12441
  class Representation < Google::Apis::Core::JsonRepresentation
12442
+ property :custom_output, as: 'customOutput', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput::Representation
12443
+
12344
12444
  property :explanation, as: 'explanation'
12345
12445
  property :pairwise_choice, as: 'pairwiseChoice'
12346
12446
  end
@@ -12351,6 +12451,8 @@ module Google
12351
12451
  class Representation < Google::Apis::Core::JsonRepresentation
12352
12452
  property :baseline_response_field_name, as: 'baselineResponseFieldName'
12353
12453
  property :candidate_response_field_name, as: 'candidateResponseFieldName'
12454
+ property :custom_output_format_config, as: 'customOutputFormatConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig::Representation
12455
+
12354
12456
  property :metric_prompt_template, as: 'metricPromptTemplate'
12355
12457
  property :system_instruction, as: 'systemInstruction'
12356
12458
  end
@@ -12654,6 +12756,8 @@ module Google
12654
12756
  class GoogleCloudAiplatformV1PointwiseMetricInstance
12655
12757
  # @private
12656
12758
  class Representation < Google::Apis::Core::JsonRepresentation
12759
+ property :content_map_instance, as: 'contentMapInstance', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ContentMap::Representation
12760
+
12657
12761
  property :json_instance, as: 'jsonInstance'
12658
12762
  end
12659
12763
  end
@@ -12661,6 +12765,8 @@ module Google
12661
12765
  class GoogleCloudAiplatformV1PointwiseMetricResult
12662
12766
  # @private
12663
12767
  class Representation < Google::Apis::Core::JsonRepresentation
12768
+ property :custom_output, as: 'customOutput', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutput::Representation
12769
+
12664
12770
  property :explanation, as: 'explanation'
12665
12771
  property :score, as: 'score'
12666
12772
  end
@@ -12669,6 +12775,8 @@ module Google
12669
12775
  class GoogleCloudAiplatformV1PointwiseMetricSpec
12670
12776
  # @private
12671
12777
  class Representation < Google::Apis::Core::JsonRepresentation
12778
+ property :custom_output_format_config, as: 'customOutputFormatConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig::Representation
12779
+
12672
12780
  property :metric_prompt_template, as: 'metricPromptTemplate'
12673
12781
  property :system_instruction, as: 'systemInstruction'
12674
12782
  end
@@ -13467,6 +13575,13 @@ module Google
13467
13575
  end
13468
13576
  end
13469
13577
 
13578
+ class GoogleCloudAiplatformV1RawOutput
13579
+ # @private
13580
+ class Representation < Google::Apis::Core::JsonRepresentation
13581
+ collection :raw_output, as: 'rawOutput'
13582
+ end
13583
+ end
13584
+
13470
13585
  class GoogleCloudAiplatformV1RawPredictRequest
13471
13586
  # @private
13472
13587
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13900,6 +14015,46 @@ module Google
13900
14015
  end
13901
14016
  end
13902
14017
 
14018
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInput
14019
+ # @private
14020
+ class Representation < Google::Apis::Core::JsonRepresentation
14021
+ property :instance, as: 'instance', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance::Representation
14022
+
14023
+ property :metric_spec, as: 'metricSpec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec::Representation
14024
+
14025
+ end
14026
+ end
14027
+
14028
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingInstance
14029
+ # @private
14030
+ class Representation < Google::Apis::Core::JsonRepresentation
14031
+ property :json_instance, as: 'jsonInstance'
14032
+ end
14033
+ end
14034
+
14035
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingResult
14036
+ # @private
14037
+ class Representation < Google::Apis::Core::JsonRepresentation
14038
+ collection :rubric_critique_results, as: 'rubricCritiqueResults', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricCritiqueResult, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricCritiqueResult::Representation
14039
+
14040
+ property :score, as: 'score'
14041
+ end
14042
+ end
14043
+
14044
+ class GoogleCloudAiplatformV1RubricBasedInstructionFollowingSpec
14045
+ # @private
14046
+ class Representation < Google::Apis::Core::JsonRepresentation
14047
+ end
14048
+ end
14049
+
14050
+ class GoogleCloudAiplatformV1RubricCritiqueResult
14051
+ # @private
14052
+ class Representation < Google::Apis::Core::JsonRepresentation
14053
+ property :rubric, as: 'rubric'
14054
+ property :verdict, as: 'verdict'
14055
+ end
14056
+ end
14057
+
13903
14058
  class GoogleCloudAiplatformV1SafetyInput
13904
14059
  # @private
13905
14060
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -917,6 +917,9 @@ module Google
917
917
  # Lists information about the supported locations for this service.
918
918
  # @param [String] name
919
919
  # The resource that owns the locations collection, if applicable.
920
+ # @param [Array<String>, String] extra_location_types
921
+ # Optional. A list of extra location types that should be used as conditions for
922
+ # controlling the visibility of the locations.
920
923
  # @param [String] filter
921
924
  # A filter to narrow down results to a preferred subset. The filtering language
922
925
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -944,11 +947,12 @@ module Google
944
947
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
948
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
949
  # @raise [Google::Apis::AuthorizationError] Authorization is required
947
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
950
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
948
951
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
949
952
  command.response_representation = Google::Apis::AiplatformV1::GoogleCloudLocationListLocationsResponse::Representation
950
953
  command.response_class = Google::Apis::AiplatformV1::GoogleCloudLocationListLocationsResponse
951
954
  command.params['name'] = name unless name.nil?
955
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
952
956
  command.query['filter'] = filter unless filter.nil?
953
957
  command.query['pageSize'] = page_size unless page_size.nil?
954
958
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -18103,6 +18107,10 @@ module Google
18103
18107
  # @param [String] name
18104
18108
  # Required. The name of the ReasoningEngine resource to be deleted. Format: `
18105
18109
  # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
18110
+ # @param [Boolean] force
18111
+ # Optional. If set to true, child resources of this reasoning engine will also
18112
+ # be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error
18113
+ # when the reasoning engine has undeleted child resources.
18106
18114
  # @param [String] fields
18107
18115
  # Selector specifying which fields to include in a partial response.
18108
18116
  # @param [String] quota_user
@@ -18120,11 +18128,12 @@ module Google
18120
18128
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18121
18129
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18122
18130
  # @raise [Google::Apis::AuthorizationError] Authorization is required
18123
- def delete_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
18131
+ def delete_project_location_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
18124
18132
  command = make_simple_command(:delete, 'v1/{+name}', options)
18125
18133
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
18126
18134
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
18127
18135
  command.params['name'] = name unless name.nil?
18136
+ command.query['force'] = force unless force.nil?
18128
18137
  command.query['fields'] = fields unless fields.nil?
18129
18138
  command.query['quotaUser'] = quota_user unless quota_user.nil?
18130
18139
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-30 00:00:00.000000000 Z
10
+ date: 2025-04-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.48.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.49.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
62
62
  rdoc_options: []
63
63
  require_paths: