google-apis-aiplatform_v1beta1 0.12.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,884 @@ module Google
22
22
  module Apis
23
23
  module AiplatformV1beta1
24
24
 
25
+ # Video embedding response.
26
+ class CloudAiLargeModelsVisionEmbedVideoResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The embedding vector for the video.
30
+ # Corresponds to the JSON property `videoEmbeddings`
31
+ # @return [Array<Object>]
32
+ attr_accessor :video_embeddings
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @video_embeddings = args[:video_embeddings] if args.key?(:video_embeddings)
41
+ end
42
+ end
43
+
44
+ # Details for filtered input text.
45
+ class CloudAiLargeModelsVisionFilteredText
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # Confidence level
49
+ # Corresponds to the JSON property `category`
50
+ # @return [String]
51
+ attr_accessor :category
52
+
53
+ # Filtered category
54
+ # Corresponds to the JSON property `confidence`
55
+ # @return [String]
56
+ attr_accessor :confidence
57
+
58
+ # Input prompt
59
+ # Corresponds to the JSON property `prompt`
60
+ # @return [String]
61
+ attr_accessor :prompt
62
+
63
+ # Score for category
64
+ # Corresponds to the JSON property `score`
65
+ # @return [Float]
66
+ attr_accessor :score
67
+
68
+ def initialize(**args)
69
+ update!(**args)
70
+ end
71
+
72
+ # Update properties of this object
73
+ def update!(**args)
74
+ @category = args[:category] if args.key?(:category)
75
+ @confidence = args[:confidence] if args.key?(:confidence)
76
+ @prompt = args[:prompt] if args.key?(:prompt)
77
+ @score = args[:score] if args.key?(:score)
78
+ end
79
+ end
80
+
81
+ # Generate video response.
82
+ class CloudAiLargeModelsVisionGenerateVideoResponse
83
+ include Google::Apis::Core::Hashable
84
+
85
+ # The generates samples.
86
+ # Corresponds to the JSON property `generatedSamples`
87
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionMedia>]
88
+ attr_accessor :generated_samples
89
+
90
+ # Returns if any videos were filtered due to RAI policies.
91
+ # Corresponds to the JSON property `raiMediaFilteredCount`
92
+ # @return [Fixnum]
93
+ attr_accessor :rai_media_filtered_count
94
+
95
+ # Returns rai failure reasons if any.
96
+ # Corresponds to the JSON property `raiMediaFilteredReasons`
97
+ # @return [Array<String>]
98
+ attr_accessor :rai_media_filtered_reasons
99
+
100
+ # Details for filtered input text.
101
+ # Corresponds to the JSON property `raiTextFilteredReason`
102
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionFilteredText]
103
+ attr_accessor :rai_text_filtered_reason
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @generated_samples = args[:generated_samples] if args.key?(:generated_samples)
112
+ @rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
113
+ @rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
114
+ @rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
115
+ end
116
+ end
117
+
118
+ # Image.
119
+ class CloudAiLargeModelsVisionImage
120
+ include Google::Apis::Core::Hashable
121
+
122
+ # Image encoding, encoded as "image/png" or "image/jpg".
123
+ # Corresponds to the JSON property `encoding`
124
+ # @return [String]
125
+ attr_accessor :encoding
126
+
127
+ # Raw bytes.
128
+ # Corresponds to the JSON property `image`
129
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
130
+ # @return [String]
131
+ attr_accessor :image
132
+
133
+ # RAI scores for generated image returned.
134
+ # Corresponds to the JSON property `imageRaiScores`
135
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImageRaiScores]
136
+ attr_accessor :image_rai_scores
137
+
138
+ # RAI info for image
139
+ # Corresponds to the JSON property `raiInfo`
140
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo]
141
+ attr_accessor :rai_info
142
+
143
+ # Semantic filter info for image.
144
+ # Corresponds to the JSON property `semanticFilterResponse`
145
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionSemanticFilterResponse]
146
+ attr_accessor :semantic_filter_response
147
+
148
+ # Path to another storage (typically Google Cloud Storage).
149
+ # Corresponds to the JSON property `uri`
150
+ # @return [String]
151
+ attr_accessor :uri
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @encoding = args[:encoding] if args.key?(:encoding)
160
+ @image = args[:image] if args.key?(:image)
161
+ @image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores)
162
+ @rai_info = args[:rai_info] if args.key?(:rai_info)
163
+ @semantic_filter_response = args[:semantic_filter_response] if args.key?(:semantic_filter_response)
164
+ @uri = args[:uri] if args.key?(:uri)
165
+ end
166
+ end
167
+
168
+ # RAI scores for generated image returned.
169
+ class CloudAiLargeModelsVisionImageRaiScores
170
+ include Google::Apis::Core::Hashable
171
+
172
+ # Agile watermark score for image.
173
+ # Corresponds to the JSON property `agileWatermarkDetectionScore`
174
+ # @return [Float]
175
+ attr_accessor :agile_watermark_detection_score
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @agile_watermark_detection_score = args[:agile_watermark_detection_score] if args.key?(:agile_watermark_detection_score)
184
+ end
185
+ end
186
+
187
+ # Media.
188
+ class CloudAiLargeModelsVisionMedia
189
+ include Google::Apis::Core::Hashable
190
+
191
+ # Image.
192
+ # Corresponds to the JSON property `image`
193
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionImage]
194
+ attr_accessor :image
195
+
196
+ # Video
197
+ # Corresponds to the JSON property `video`
198
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionVideo]
199
+ attr_accessor :video
200
+
201
+ def initialize(**args)
202
+ update!(**args)
203
+ end
204
+
205
+ # Update properties of this object
206
+ def update!(**args)
207
+ @image = args[:image] if args.key?(:image)
208
+ @video = args[:video] if args.key?(:video)
209
+ end
210
+ end
211
+
212
+ # Generate media content response
213
+ class CloudAiLargeModelsVisionMediaGenerateContentResponse
214
+ include Google::Apis::Core::Hashable
215
+
216
+ # Response to the user's request.
217
+ # Corresponds to the JSON property `response`
218
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceGenerateMultiModalResponse]
219
+ attr_accessor :response
220
+
221
+ def initialize(**args)
222
+ update!(**args)
223
+ end
224
+
225
+ # Update properties of this object
226
+ def update!(**args)
227
+ @response = args[:response] if args.key?(:response)
228
+ end
229
+ end
230
+
231
+ #
232
+ class CloudAiLargeModelsVisionNamedBoundingBox
233
+ include Google::Apis::Core::Hashable
234
+
235
+ #
236
+ # Corresponds to the JSON property `classes`
237
+ # @return [Array<String>]
238
+ attr_accessor :classes
239
+
240
+ #
241
+ # Corresponds to the JSON property `entities`
242
+ # @return [Array<String>]
243
+ attr_accessor :entities
244
+
245
+ #
246
+ # Corresponds to the JSON property `scores`
247
+ # @return [Array<Float>]
248
+ attr_accessor :scores
249
+
250
+ #
251
+ # Corresponds to the JSON property `x1`
252
+ # @return [Float]
253
+ attr_accessor :x1
254
+
255
+ #
256
+ # Corresponds to the JSON property `x2`
257
+ # @return [Float]
258
+ attr_accessor :x2
259
+
260
+ #
261
+ # Corresponds to the JSON property `y1`
262
+ # @return [Float]
263
+ attr_accessor :y1
264
+
265
+ #
266
+ # Corresponds to the JSON property `y2`
267
+ # @return [Float]
268
+ attr_accessor :y2
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @classes = args[:classes] if args.key?(:classes)
277
+ @entities = args[:entities] if args.key?(:entities)
278
+ @scores = args[:scores] if args.key?(:scores)
279
+ @x1 = args[:x1] if args.key?(:x1)
280
+ @x2 = args[:x2] if args.key?(:x2)
281
+ @y1 = args[:y1] if args.key?(:y1)
282
+ @y2 = args[:y2] if args.key?(:y2)
283
+ end
284
+ end
285
+
286
+ #
287
+ class CloudAiLargeModelsVisionRaiInfo
288
+ include Google::Apis::Core::Hashable
289
+
290
+ # List of rai categories' information to return
291
+ # Corresponds to the JSON property `raiCategories`
292
+ # @return [Array<String>]
293
+ attr_accessor :rai_categories
294
+
295
+ # List of rai scores mapping to the rai categories. Rounded to 1 decimal place.
296
+ # Corresponds to the JSON property `scores`
297
+ # @return [Array<Float>]
298
+ attr_accessor :scores
299
+
300
+ def initialize(**args)
301
+ update!(**args)
302
+ end
303
+
304
+ # Update properties of this object
305
+ def update!(**args)
306
+ @rai_categories = args[:rai_categories] if args.key?(:rai_categories)
307
+ @scores = args[:scores] if args.key?(:scores)
308
+ end
309
+ end
310
+
311
+ # Video reasoning response.
312
+ class CloudAiLargeModelsVisionReasonVideoResponse
313
+ include Google::Apis::Core::Hashable
314
+
315
+ # Generated text responses. The generated responses for different segments
316
+ # within the same video.
317
+ # Corresponds to the JSON property `responses`
318
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionReasonVideoResponseTextResponse>]
319
+ attr_accessor :responses
320
+
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
324
+
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @responses = args[:responses] if args.key?(:responses)
328
+ end
329
+ end
330
+
331
+ # Contains text that is the response of the video captioning.
332
+ class CloudAiLargeModelsVisionReasonVideoResponseTextResponse
333
+ include Google::Apis::Core::Hashable
334
+
335
+ # For ease of use, assume that the start_offset is inclusive and the end_offset
336
+ # is exclusive. In mathematical terms, the partition would be written as [
337
+ # start_offset, end_offset).
338
+ # Corresponds to the JSON property `relativeTemporalPartition`
339
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRelativeTemporalPartition]
340
+ attr_accessor :relative_temporal_partition
341
+
342
+ # Text information
343
+ # Corresponds to the JSON property `text`
344
+ # @return [String]
345
+ attr_accessor :text
346
+
347
+ def initialize(**args)
348
+ update!(**args)
349
+ end
350
+
351
+ # Update properties of this object
352
+ def update!(**args)
353
+ @relative_temporal_partition = args[:relative_temporal_partition] if args.key?(:relative_temporal_partition)
354
+ @text = args[:text] if args.key?(:text)
355
+ end
356
+ end
357
+
358
+ # For ease of use, assume that the start_offset is inclusive and the end_offset
359
+ # is exclusive. In mathematical terms, the partition would be written as [
360
+ # start_offset, end_offset).
361
+ class CloudAiLargeModelsVisionRelativeTemporalPartition
362
+ include Google::Apis::Core::Hashable
363
+
364
+ # End time offset of the partition.
365
+ # Corresponds to the JSON property `endOffset`
366
+ # @return [String]
367
+ attr_accessor :end_offset
368
+
369
+ # Start time offset of the partition.
370
+ # Corresponds to the JSON property `startOffset`
371
+ # @return [String]
372
+ attr_accessor :start_offset
373
+
374
+ def initialize(**args)
375
+ update!(**args)
376
+ end
377
+
378
+ # Update properties of this object
379
+ def update!(**args)
380
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
381
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
382
+ end
383
+ end
384
+
385
+ #
386
+ class CloudAiLargeModelsVisionSemanticFilterResponse
387
+ include Google::Apis::Core::Hashable
388
+
389
+ # Class labels of the bounding boxes that failed the semantic filtering.
390
+ # Bounding box coordinates.
391
+ # Corresponds to the JSON property `namedBoundingBoxes`
392
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionNamedBoundingBox>]
393
+ attr_accessor :named_bounding_boxes
394
+
395
+ # This response is added when semantic filter config is turned on in EditConfig.
396
+ # It reports if this image is passed semantic filter response. If
397
+ # passed_semantic_filter is false, the bounding box information will be
398
+ # populated for user to check what caused the semantic filter to fail.
399
+ # Corresponds to the JSON property `passedSemanticFilter`
400
+ # @return [Boolean]
401
+ attr_accessor :passed_semantic_filter
402
+ alias_method :passed_semantic_filter?, :passed_semantic_filter
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @named_bounding_boxes = args[:named_bounding_boxes] if args.key?(:named_bounding_boxes)
411
+ @passed_semantic_filter = args[:passed_semantic_filter] if args.key?(:passed_semantic_filter)
412
+ end
413
+ end
414
+
415
+ # Video
416
+ class CloudAiLargeModelsVisionVideo
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # Path to another storage (typically Google Cloud Storage).
420
+ # Corresponds to the JSON property `uri`
421
+ # @return [String]
422
+ attr_accessor :uri
423
+
424
+ # Raw bytes.
425
+ # Corresponds to the JSON property `video`
426
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
427
+ # @return [String]
428
+ attr_accessor :video
429
+
430
+ def initialize(**args)
431
+ update!(**args)
432
+ end
433
+
434
+ # Update properties of this object
435
+ def update!(**args)
436
+ @uri = args[:uri] if args.key?(:uri)
437
+ @video = args[:video] if args.key?(:video)
438
+ end
439
+ end
440
+
441
+ #
442
+ class CloudAiNlLlmProtoServiceCandidate
443
+ include Google::Apis::Core::Hashable
444
+
445
+ # A collection of source attributions for a piece of content.
446
+ # Corresponds to the JSON property `citationMetadata`
447
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceCitationMetadata]
448
+ attr_accessor :citation_metadata
449
+
450
+ # The content of a single message from a participant.
451
+ # Corresponds to the JSON property `content`
452
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceContent]
453
+ attr_accessor :content
454
+
455
+ # A string that describes the filtering behavior in more detail. Only filled
456
+ # when reason is set.
457
+ # Corresponds to the JSON property `finishMessage`
458
+ # @return [String]
459
+ attr_accessor :finish_message
460
+
461
+ # The reason why the model stopped generating tokens.
462
+ # Corresponds to the JSON property `finishReason`
463
+ # @return [String]
464
+ attr_accessor :finish_reason
465
+
466
+ # Index of the candidate.
467
+ # Corresponds to the JSON property `index`
468
+ # @return [Fixnum]
469
+ attr_accessor :index
470
+
471
+ # Safety ratings of the generated content.
472
+ # Corresponds to the JSON property `safetyRatings`
473
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceSafetyRating>]
474
+ attr_accessor :safety_ratings
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
483
+ @content = args[:content] if args.key?(:content)
484
+ @finish_message = args[:finish_message] if args.key?(:finish_message)
485
+ @finish_reason = args[:finish_reason] if args.key?(:finish_reason)
486
+ @index = args[:index] if args.key?(:index)
487
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
488
+ end
489
+ end
490
+
491
+ # Source attributions for content.
492
+ class CloudAiNlLlmProtoServiceCitation
493
+ include Google::Apis::Core::Hashable
494
+
495
+ # End index into the content.
496
+ # Corresponds to the JSON property `endIndex`
497
+ # @return [Fixnum]
498
+ attr_accessor :end_index
499
+
500
+ # License of the attribution.
501
+ # Corresponds to the JSON property `license`
502
+ # @return [String]
503
+ attr_accessor :license
504
+
505
+ # Represents a whole or partial calendar date, such as a birthday. The time of
506
+ # day and time zone are either specified elsewhere or are insignificant. The
507
+ # date is relative to the Gregorian Calendar. This can represent one of the
508
+ # following: * A full date, with non-zero year, month, and day values. * A month
509
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
510
+ # with a zero month and a zero day. * A year and month, with a zero day (for
511
+ # example, a credit card expiration date). Related types: * google.type.
512
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
513
+ # Corresponds to the JSON property `publicationDate`
514
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeDate]
515
+ attr_accessor :publication_date
516
+
517
+ # Start index into the content.
518
+ # Corresponds to the JSON property `startIndex`
519
+ # @return [Fixnum]
520
+ attr_accessor :start_index
521
+
522
+ # Title of the attribution.
523
+ # Corresponds to the JSON property `title`
524
+ # @return [String]
525
+ attr_accessor :title
526
+
527
+ # Url reference of the attribution.
528
+ # Corresponds to the JSON property `uri`
529
+ # @return [String]
530
+ attr_accessor :uri
531
+
532
+ def initialize(**args)
533
+ update!(**args)
534
+ end
535
+
536
+ # Update properties of this object
537
+ def update!(**args)
538
+ @end_index = args[:end_index] if args.key?(:end_index)
539
+ @license = args[:license] if args.key?(:license)
540
+ @publication_date = args[:publication_date] if args.key?(:publication_date)
541
+ @start_index = args[:start_index] if args.key?(:start_index)
542
+ @title = args[:title] if args.key?(:title)
543
+ @uri = args[:uri] if args.key?(:uri)
544
+ end
545
+ end
546
+
547
+ # A collection of source attributions for a piece of content.
548
+ class CloudAiNlLlmProtoServiceCitationMetadata
549
+ include Google::Apis::Core::Hashable
550
+
551
+ # List of citations.
552
+ # Corresponds to the JSON property `citations`
553
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceCitation>]
554
+ attr_accessor :citations
555
+
556
+ def initialize(**args)
557
+ update!(**args)
558
+ end
559
+
560
+ # Update properties of this object
561
+ def update!(**args)
562
+ @citations = args[:citations] if args.key?(:citations)
563
+ end
564
+ end
565
+
566
+ # The content of a single message from a participant.
567
+ class CloudAiNlLlmProtoServiceContent
568
+ include Google::Apis::Core::Hashable
569
+
570
+ # The parts of the message.
571
+ # Corresponds to the JSON property `parts`
572
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePart>]
573
+ attr_accessor :parts
574
+
575
+ # The role of the current conversation participant.
576
+ # Corresponds to the JSON property `role`
577
+ # @return [String]
578
+ attr_accessor :role
579
+
580
+ def initialize(**args)
581
+ update!(**args)
582
+ end
583
+
584
+ # Update properties of this object
585
+ def update!(**args)
586
+ @parts = args[:parts] if args.key?(:parts)
587
+ @role = args[:role] if args.key?(:role)
588
+ end
589
+ end
590
+
591
+ # Function call details.
592
+ class CloudAiNlLlmProtoServiceFunctionCall
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # The function parameters and values in JSON format.
596
+ # Corresponds to the JSON property `args`
597
+ # @return [Hash<String,Object>]
598
+ attr_accessor :args
599
+
600
+ # Required. The name of the function to call.
601
+ # Corresponds to the JSON property `name`
602
+ # @return [String]
603
+ attr_accessor :name
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @args = args[:args] if args.key?(:args)
612
+ @name = args[:name] if args.key?(:name)
613
+ end
614
+ end
615
+
616
+ # Function response details.
617
+ class CloudAiNlLlmProtoServiceFunctionResponse
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # Required. The name of the function to call.
621
+ # Corresponds to the JSON property `name`
622
+ # @return [String]
623
+ attr_accessor :name
624
+
625
+ # Required. The function response in JSON object format.
626
+ # Corresponds to the JSON property `response`
627
+ # @return [Hash<String,Object>]
628
+ attr_accessor :response
629
+
630
+ def initialize(**args)
631
+ update!(**args)
632
+ end
633
+
634
+ # Update properties of this object
635
+ def update!(**args)
636
+ @name = args[:name] if args.key?(:name)
637
+ @response = args[:response] if args.key?(:response)
638
+ end
639
+ end
640
+
641
+ #
642
+ class CloudAiNlLlmProtoServiceGenerateMultiModalResponse
643
+ include Google::Apis::Core::Hashable
644
+
645
+ # Possible candidate responses to the conversation up until this point.
646
+ # Corresponds to the JSON property `candidates`
647
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceCandidate>]
648
+ attr_accessor :candidates
649
+
650
+ # Content filter results for a prompt sent in the request.
651
+ # Corresponds to the JSON property `promptFeedback`
652
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePromptFeedback]
653
+ attr_accessor :prompt_feedback
654
+
655
+ # Billable prediction metrics.
656
+ # Corresponds to the JSON property `reportingMetrics`
657
+ # @return [Google::Apis::AiplatformV1beta1::IntelligenceCloudAutomlXpsReportingMetrics]
658
+ attr_accessor :reporting_metrics
659
+
660
+ # Usage metadata about response(s).
661
+ # Corresponds to the JSON property `usageMetadata`
662
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceUsageMetadata]
663
+ attr_accessor :usage_metadata
664
+
665
+ def initialize(**args)
666
+ update!(**args)
667
+ end
668
+
669
+ # Update properties of this object
670
+ def update!(**args)
671
+ @candidates = args[:candidates] if args.key?(:candidates)
672
+ @prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
673
+ @reporting_metrics = args[:reporting_metrics] if args.key?(:reporting_metrics)
674
+ @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
675
+ end
676
+ end
677
+
678
+ # A single part of a message.
679
+ class CloudAiNlLlmProtoServicePart
680
+ include Google::Apis::Core::Hashable
681
+
682
+ # Represents file data.
683
+ # Corresponds to the JSON property `fileData`
684
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartFileData]
685
+ attr_accessor :file_data
686
+
687
+ # Function call details.
688
+ # Corresponds to the JSON property `functionCall`
689
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceFunctionCall]
690
+ attr_accessor :function_call
691
+
692
+ # Function response details.
693
+ # Corresponds to the JSON property `functionResponse`
694
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceFunctionResponse]
695
+ attr_accessor :function_response
696
+
697
+ # Represents arbitrary blob data input.
698
+ # Corresponds to the JSON property `inlineData`
699
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartBlob]
700
+ attr_accessor :inline_data
701
+
702
+ # Text input.
703
+ # Corresponds to the JSON property `text`
704
+ # @return [String]
705
+ attr_accessor :text
706
+
707
+ # Metadata describes the input video content.
708
+ # Corresponds to the JSON property `videoMetadata`
709
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartVideoMetadata]
710
+ attr_accessor :video_metadata
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @file_data = args[:file_data] if args.key?(:file_data)
719
+ @function_call = args[:function_call] if args.key?(:function_call)
720
+ @function_response = args[:function_response] if args.key?(:function_response)
721
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
722
+ @text = args[:text] if args.key?(:text)
723
+ @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
724
+ end
725
+ end
726
+
727
+ # Represents arbitrary blob data input.
728
+ class CloudAiNlLlmProtoServicePartBlob
729
+ include Google::Apis::Core::Hashable
730
+
731
+ # Inline data.
732
+ # Corresponds to the JSON property `data`
733
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
734
+ # @return [String]
735
+ attr_accessor :data
736
+
737
+ # The mime type corresponding to this input.
738
+ # Corresponds to the JSON property `mimeType`
739
+ # @return [String]
740
+ attr_accessor :mime_type
741
+
742
+ # Represents file data.
743
+ # Corresponds to the JSON property `originalFileData`
744
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartFileData]
745
+ attr_accessor :original_file_data
746
+
747
+ def initialize(**args)
748
+ update!(**args)
749
+ end
750
+
751
+ # Update properties of this object
752
+ def update!(**args)
753
+ @data = args[:data] if args.key?(:data)
754
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
755
+ @original_file_data = args[:original_file_data] if args.key?(:original_file_data)
756
+ end
757
+ end
758
+
759
+ # Represents file data.
760
+ class CloudAiNlLlmProtoServicePartFileData
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # Inline data.
764
+ # Corresponds to the JSON property `fileUri`
765
+ # @return [String]
766
+ attr_accessor :file_uri
767
+
768
+ # The mime type corresponding to this input.
769
+ # Corresponds to the JSON property `mimeType`
770
+ # @return [String]
771
+ attr_accessor :mime_type
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @file_uri = args[:file_uri] if args.key?(:file_uri)
780
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
781
+ end
782
+ end
783
+
784
+ # Metadata describes the input video content.
785
+ class CloudAiNlLlmProtoServicePartVideoMetadata
786
+ include Google::Apis::Core::Hashable
787
+
788
+ # The end offset of the video.
789
+ # Corresponds to the JSON property `endOffset`
790
+ # @return [String]
791
+ attr_accessor :end_offset
792
+
793
+ # The start offset of the video.
794
+ # Corresponds to the JSON property `startOffset`
795
+ # @return [String]
796
+ attr_accessor :start_offset
797
+
798
+ def initialize(**args)
799
+ update!(**args)
800
+ end
801
+
802
+ # Update properties of this object
803
+ def update!(**args)
804
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
805
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
806
+ end
807
+ end
808
+
809
+ # Content filter results for a prompt sent in the request.
810
+ class CloudAiNlLlmProtoServicePromptFeedback
811
+ include Google::Apis::Core::Hashable
812
+
813
+ # Blocked reason.
814
+ # Corresponds to the JSON property `blockReason`
815
+ # @return [String]
816
+ attr_accessor :block_reason
817
+
818
+ # A readable block reason message.
819
+ # Corresponds to the JSON property `blockReasonMessage`
820
+ # @return [String]
821
+ attr_accessor :block_reason_message
822
+
823
+ # Safety ratings.
824
+ # Corresponds to the JSON property `safetyRatings`
825
+ # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceSafetyRating>]
826
+ attr_accessor :safety_ratings
827
+
828
+ def initialize(**args)
829
+ update!(**args)
830
+ end
831
+
832
+ # Update properties of this object
833
+ def update!(**args)
834
+ @block_reason = args[:block_reason] if args.key?(:block_reason)
835
+ @block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
836
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
837
+ end
838
+ end
839
+
840
+ # Safety rating corresponding to the generated content.
841
+ class CloudAiNlLlmProtoServiceSafetyRating
842
+ include Google::Apis::Core::Hashable
843
+
844
+ # Indicates whether the content was filtered out because of this rating.
845
+ # Corresponds to the JSON property `blocked`
846
+ # @return [Boolean]
847
+ attr_accessor :blocked
848
+ alias_method :blocked?, :blocked
849
+
850
+ # Harm category.
851
+ # Corresponds to the JSON property `category`
852
+ # @return [String]
853
+ attr_accessor :category
854
+
855
+ # Harm probability levels in the content.
856
+ # Corresponds to the JSON property `probability`
857
+ # @return [String]
858
+ attr_accessor :probability
859
+
860
+ def initialize(**args)
861
+ update!(**args)
862
+ end
863
+
864
+ # Update properties of this object
865
+ def update!(**args)
866
+ @blocked = args[:blocked] if args.key?(:blocked)
867
+ @category = args[:category] if args.key?(:category)
868
+ @probability = args[:probability] if args.key?(:probability)
869
+ end
870
+ end
871
+
872
+ # Usage metadata about response(s).
873
+ class CloudAiNlLlmProtoServiceUsageMetadata
874
+ include Google::Apis::Core::Hashable
875
+
876
+ # Number of tokens in the response(s).
877
+ # Corresponds to the JSON property `candidatesTokenCount`
878
+ # @return [Fixnum]
879
+ attr_accessor :candidates_token_count
880
+
881
+ # Number of tokens in the request.
882
+ # Corresponds to the JSON property `promptTokenCount`
883
+ # @return [Fixnum]
884
+ attr_accessor :prompt_token_count
885
+
886
+ #
887
+ # Corresponds to the JSON property `totalTokenCount`
888
+ # @return [Fixnum]
889
+ attr_accessor :total_token_count
890
+
891
+ def initialize(**args)
892
+ update!(**args)
893
+ end
894
+
895
+ # Update properties of this object
896
+ def update!(**args)
897
+ @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
898
+ @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
899
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
900
+ end
901
+ end
902
+
25
903
  # Message that represents an arbitrary HTTP body. It should only be used for
26
904
  # payload formats that can't be represented as JSON, such as raw binary or an
27
905
  # HTML page. This message can be used both in streaming and non-streaming API
@@ -726,6 +1604,25 @@ module Google
726
1604
  end
727
1605
  end
728
1606
 
1607
+ # Response message for PipelineService.BatchCancelPipelineJobs.
1608
+ class GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsResponse
1609
+ include Google::Apis::Core::Hashable
1610
+
1611
+ # PipelineJobs cancelled.
1612
+ # Corresponds to the JSON property `pipelineJobs`
1613
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob>]
1614
+ attr_accessor :pipeline_jobs
1615
+
1616
+ def initialize(**args)
1617
+ update!(**args)
1618
+ end
1619
+
1620
+ # Update properties of this object
1621
+ def update!(**args)
1622
+ @pipeline_jobs = args[:pipeline_jobs] if args.key?(:pipeline_jobs)
1623
+ end
1624
+ end
1625
+
729
1626
  # Details of operations that perform batch create Features.
730
1627
  class GoogleCloudAiplatformV1beta1BatchCreateFeaturesOperationMetadata
731
1628
  include Google::Apis::Core::Hashable
@@ -920,6 +1817,25 @@ module Google
920
1817
  end
921
1818
  end
922
1819
 
1820
+ # Response message for PipelineService.BatchDeletePipelineJobs.
1821
+ class GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsResponse
1822
+ include Google::Apis::Core::Hashable
1823
+
1824
+ # PipelineJobs deleted.
1825
+ # Corresponds to the JSON property `pipelineJobs`
1826
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob>]
1827
+ attr_accessor :pipeline_jobs
1828
+
1829
+ def initialize(**args)
1830
+ update!(**args)
1831
+ end
1832
+
1833
+ # Update properties of this object
1834
+ def update!(**args)
1835
+ @pipeline_jobs = args[:pipeline_jobs] if args.key?(:pipeline_jobs)
1836
+ end
1837
+ end
1838
+
923
1839
  # Request message for ModelService.BatchImportEvaluatedAnnotations
924
1840
  class GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest
925
1841
  include Google::Apis::Core::Hashable
@@ -1398,8 +2314,7 @@ module Google
1398
2314
  # Fields that will be excluded in the prediction instance that is sent to the
1399
2315
  # Model. Excluded will be attached to the batch prediction output if key_field
1400
2316
  # is not specified. When excluded_fields is populated, included_fields must be
1401
- # empty. The input must be JSONL with objects at each line, CSV, BigQuery or
1402
- # TfRecord.
2317
+ # empty. The input must be JSONL with objects at each line, BigQuery or TfRecord.
1403
2318
  # Corresponds to the JSON property `excludedFields`
1404
2319
  # @return [Array<String>]
1405
2320
  attr_accessor :excluded_fields
@@ -1408,7 +2323,7 @@ module Google
1408
2323
  # Model. If instance_type is `array`, the order of field names in
1409
2324
  # included_fields also determines the order of the values in the array. When
1410
2325
  # included_fields is populated, excluded_fields must be empty. The input must be
1411
- # JSONL with objects at each line, CSV, BigQuery or TfRecord.
2326
+ # JSONL with objects at each line, BigQuery or TfRecord.
1412
2327
  # Corresponds to the JSON property `includedFields`
1413
2328
  # @return [Array<String>]
1414
2329
  attr_accessor :included_fields
@@ -1737,17 +2652,17 @@ module Google
1737
2652
  end
1738
2653
  end
1739
2654
 
1740
- # Content blob.
2655
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
1741
2656
  class GoogleCloudAiplatformV1beta1Blob
1742
2657
  include Google::Apis::Core::Hashable
1743
2658
 
1744
- # Required. Data.
2659
+ # Required. Raw bytes for media formats.
1745
2660
  # Corresponds to the JSON property `data`
1746
2661
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1747
2662
  # @return [String]
1748
2663
  attr_accessor :data
1749
2664
 
1750
- # Required. Mime type of the data.
2665
+ # Required. The IANA standard MIME type of the source data.
1751
2666
  # Corresponds to the JSON property `mimeType`
1752
2667
  # @return [String]
1753
2668
  attr_accessor :mime_type
@@ -1897,7 +2812,7 @@ module Google
1897
2812
  end
1898
2813
  end
1899
2814
 
1900
- # Generated candidate.
2815
+ # A response candidate generated from the model.
1901
2816
  class GoogleCloudAiplatformV1beta1Candidate
1902
2817
  include Google::Apis::Core::Hashable
1903
2818
 
@@ -1906,18 +2821,22 @@ module Google
1906
2821
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CitationMetadata]
1907
2822
  attr_accessor :citation_metadata
1908
2823
 
1909
- # A single turn in a conversation with the model.
2824
+ # The base structured datatype containing multi-part content of a message. A `
2825
+ # Content` includes a `role` field designating the producer of the `Content` and
2826
+ # a `parts` field containing multi-part data that contains the content of the
2827
+ # message turn.
1910
2828
  # Corresponds to the JSON property `content`
1911
2829
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
1912
2830
  attr_accessor :content
1913
2831
 
1914
- # Output only. A string that describes the filtering behavior in more detail.
1915
- # Only filled when reason is set.
2832
+ # Output only. Describes the reason the mode stopped generating tokens in more
2833
+ # detail. This is only filled when `finish_reason` is set.
1916
2834
  # Corresponds to the JSON property `finishMessage`
1917
2835
  # @return [String]
1918
2836
  attr_accessor :finish_message
1919
2837
 
1920
- # Output only. The reason why the model stopped generating tokens.
2838
+ # Output only. The reason why the model stopped generating tokens. If empty, the
2839
+ # model has not stopped generating the tokens.
1921
2840
  # Corresponds to the JSON property `finishReason`
1922
2841
  # @return [String]
1923
2842
  attr_accessor :finish_reason
@@ -1927,7 +2846,8 @@ module Google
1927
2846
  # @return [Fixnum]
1928
2847
  attr_accessor :index
1929
2848
 
1930
- # Output only. Safety ratings of the generated content.
2849
+ # Output only. List of ratings for the safety of a response candidate. There is
2850
+ # at most one rating per category.
1931
2851
  # Corresponds to the JSON property `safetyRatings`
1932
2852
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
1933
2853
  attr_accessor :safety_ratings
@@ -2271,19 +3191,22 @@ module Google
2271
3191
  end
2272
3192
  end
2273
3193
 
2274
- # A single turn in a conversation with the model.
3194
+ # The base structured datatype containing multi-part content of a message. A `
3195
+ # Content` includes a `role` field designating the producer of the `Content` and
3196
+ # a `parts` field containing multi-part data that contains the content of the
3197
+ # message turn.
2275
3198
  class GoogleCloudAiplatformV1beta1Content
2276
3199
  include Google::Apis::Core::Hashable
2277
3200
 
2278
- # Required. Ordered parts that make up a message. Parts may have different MIME
2279
- # types.
3201
+ # Required. Ordered `Parts` that constitute a single message. Parts may have
3202
+ # different IANA MIME types.
2280
3203
  # Corresponds to the JSON property `parts`
2281
3204
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>]
2282
3205
  attr_accessor :parts
2283
3206
 
2284
- # Optional. The role in a conversation associated with this content. Set it only
2285
- # if a content represents a turn in a conversations, otherwise no need to set
2286
- # role. Possible values: user, model.
3207
+ # Optional. The producer of the content. Must be either 'user' or 'model'.
3208
+ # Useful to set for multi-turn conversations, otherwise can be left blank or
3209
+ # unset.
2287
3210
  # Corresponds to the JSON property `role`
2288
3211
  # @return [String]
2289
3212
  attr_accessor :role
@@ -2898,32 +3821,6 @@ module Google
2898
3821
  end
2899
3822
  end
2900
3823
 
2901
- # Metadata information for NotebookService.CreateNotebookExecutionJob.
2902
- class GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata
2903
- include Google::Apis::Core::Hashable
2904
-
2905
- # Generic Metadata shared by all operations.
2906
- # Corresponds to the JSON property `genericMetadata`
2907
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
2908
- attr_accessor :generic_metadata
2909
-
2910
- # A human-readable message that shows the intermediate progress details of
2911
- # NotebookRuntime.
2912
- # Corresponds to the JSON property `progressMessage`
2913
- # @return [String]
2914
- attr_accessor :progress_message
2915
-
2916
- def initialize(**args)
2917
- update!(**args)
2918
- end
2919
-
2920
- # Update properties of this object
2921
- def update!(**args)
2922
- @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
2923
- @progress_message = args[:progress_message] if args.key?(:progress_message)
2924
- end
2925
- end
2926
-
2927
3824
  # Metadata information for NotebookService.CreateNotebookRuntimeTemplate.
2928
3825
  class GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata
2929
3826
  include Google::Apis::Core::Hashable
@@ -3331,6 +4228,19 @@ module Google
3331
4228
  # @return [String]
3332
4229
  attr_accessor :experiment_run
3333
4230
 
4231
+ # Optional. The name of the Model resources for which to generate a mapping to
4232
+ # artifact URIs. Applicable only to some of the Google-provided custom jobs.
4233
+ # Format: `projects/`project`/locations/`location`/models/`model`` In order to
4234
+ # retrieve a specific version of the model, also provide the version ID or
4235
+ # version alias. Example: `projects/`project`/locations/`location`/models/`model`
4236
+ # @2` or `projects/`project`/locations/`location`/models/`model`@golden` If no
4237
+ # version ID or alias is specified, the "default" version will be returned. The "
4238
+ # default" version alias is created for the first version of the model, and can
4239
+ # be moved to other versions later on. There will be exactly one default version.
4240
+ # Corresponds to the JSON property `models`
4241
+ # @return [Array<String>]
4242
+ attr_accessor :models
4243
+
3334
4244
  # Optional. The full name of the Compute Engine [network](/compute/docs/networks-
3335
4245
  # and-firewalls#networks) to which the Job should be peered. For example, `
3336
4246
  # projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/
@@ -3406,6 +4316,7 @@ module Google
3406
4316
  @enable_web_access = args[:enable_web_access] if args.key?(:enable_web_access)
3407
4317
  @experiment = args[:experiment] if args.key?(:experiment)
3408
4318
  @experiment_run = args[:experiment_run] if args.key?(:experiment_run)
4319
+ @models = args[:models] if args.key?(:models)
3409
4320
  @network = args[:network] if args.key?(:network)
3410
4321
  @persistent_resource_id = args[:persistent_resource_id] if args.key?(:persistent_resource_id)
3411
4322
  @protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
@@ -6317,8 +7228,8 @@ module Google
6317
7228
  include Google::Apis::Core::Hashable
6318
7229
 
6319
7230
  # All of the files that are exported in this export operation. For custom code
6320
- # training export, only three (training, validation and test) GCS paths in
6321
- # wildcard format are populated (e.g., gs://.../training-*).
7231
+ # training export, only three (training, validation and test) Cloud Storage
7232
+ # paths in wildcard format are populated (for example, gs://.../training-*).
6322
7233
  # Corresponds to the JSON property `exportedFiles`
6323
7234
  # @return [Array<String>]
6324
7235
  attr_accessor :exported_files
@@ -6835,7 +7746,7 @@ module Google
6835
7746
  attr_accessor :value_type
6836
7747
 
6837
7748
  # Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/
6838
- # View columnn hosting data for this version. If no value is provided, will use
7749
+ # View column hosting data for this version. If no value is provided, will use
6839
7750
  # feature_id.
6840
7751
  # Corresponds to the JSON property `versionColumnName`
6841
7752
  # @return [String]
@@ -8260,7 +9171,7 @@ module Google
8260
9171
  # @return [String]
8261
9172
  attr_accessor :file_uri
8262
9173
 
8263
- # Required. Mime type of the data.
9174
+ # Required. The IANA standard MIME type of the source data.
8264
9175
  # Corresponds to the JSON property `mimeType`
8265
9176
  # @return [String]
8266
9177
  attr_accessor :mime_type
@@ -8552,7 +9463,11 @@ module Google
8552
9463
  end
8553
9464
  end
8554
9465
 
8555
- # Function declaration details.
9466
+ # Structured representation of a function declaration as defined by the [OpenAPI
9467
+ # 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this
9468
+ # declaration are the function name and parameters. This FunctionDeclaration is
9469
+ # a representation of a block of code that can be used as a `Tool` by the model
9470
+ # and executed by the client.
8556
9471
  class GoogleCloudAiplatformV1beta1FunctionDeclaration
8557
9472
  include Google::Apis::Core::Hashable
8558
9473
 
@@ -8569,10 +9484,9 @@ module Google
8569
9484
  # @return [String]
8570
9485
  attr_accessor :name
8571
9486
 
8572
- # Represents a select subset of an OpenAPI 3.0 Schema object. Schema is used to
8573
- # define the format of input/output data. More fields may be added in the future
8574
- # as needed. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.
8575
- # 0.2.md#schemaObject
9487
+ # Schema is used to define the format of input/output data. Represents a select
9488
+ # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
9489
+ # schema). More fields may be added in the future as needed.
8576
9490
  # Corresponds to the JSON property `parameters`
8577
9491
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
8578
9492
  attr_accessor :parameters
@@ -8724,7 +9638,9 @@ module Google
8724
9638
  class GoogleCloudAiplatformV1beta1GenerateContentRequest
8725
9639
  include Google::Apis::Core::Hashable
8726
9640
 
8727
- # Required. Input content.
9641
+ # Required. The content of the current conversation with the model. For single-
9642
+ # turn queries, this is a single instance. For multi-turn queries, this is a
9643
+ # repeated field that contains conversation history + latest request.
8728
9644
  # Corresponds to the JSON property `contents`
8729
9645
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
8730
9646
  attr_accessor :contents
@@ -8746,7 +9662,10 @@ module Google
8746
9662
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetySetting>]
8747
9663
  attr_accessor :safety_settings
8748
9664
 
8749
- # Optional. Tools that the model may use to generate response.
9665
+ # Optional. A list of `Tools` the model may use to generate the next response. A
9666
+ # `Tool` is a piece of code that enables the system to interact with external
9667
+ # systems to perform an action, or set of actions, outside of knowledge and
9668
+ # scope of the model. The only supported tool is currently `Function`
8750
9669
  # Corresponds to the JSON property `tools`
8751
9670
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>]
8752
9671
  attr_accessor :tools
@@ -8867,37 +9786,11 @@ module Google
8867
9786
  # @return [Fixnum]
8868
9787
  attr_accessor :candidate_count
8869
9788
 
8870
- # Optional. Echo.
8871
- # Corresponds to the JSON property `echo`
8872
- # @return [Boolean]
8873
- attr_accessor :echo
8874
- alias_method :echo?, :echo
8875
-
8876
- # Optional. Frequency penalties.
8877
- # Corresponds to the JSON property `frequencyPenalty`
8878
- # @return [Float]
8879
- attr_accessor :frequency_penalty
8880
-
8881
- # Optional. Logit bias.
8882
- # Corresponds to the JSON property `logitBias`
8883
- # @return [Hash<String,Float>]
8884
- attr_accessor :logit_bias
8885
-
8886
- # Optional. Logit probabilities.
8887
- # Corresponds to the JSON property `logprobs`
8888
- # @return [Fixnum]
8889
- attr_accessor :logprobs
8890
-
8891
9789
  # Optional. The maximum number of output tokens to generate per message.
8892
9790
  # Corresponds to the JSON property `maxOutputTokens`
8893
9791
  # @return [Fixnum]
8894
9792
  attr_accessor :max_output_tokens
8895
9793
 
8896
- # Optional. Positive penalties.
8897
- # Corresponds to the JSON property `presencePenalty`
8898
- # @return [Float]
8899
- attr_accessor :presence_penalty
8900
-
8901
9794
  # Optional. Stop sequences.
8902
9795
  # Corresponds to the JSON property `stopSequences`
8903
9796
  # @return [Array<String>]
@@ -8925,12 +9818,7 @@ module Google
8925
9818
  # Update properties of this object
8926
9819
  def update!(**args)
8927
9820
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
8928
- @echo = args[:echo] if args.key?(:echo)
8929
- @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
8930
- @logit_bias = args[:logit_bias] if args.key?(:logit_bias)
8931
- @logprobs = args[:logprobs] if args.key?(:logprobs)
8932
9821
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
8933
- @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
8934
9822
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
8935
9823
  @temperature = args[:temperature] if args.key?(:temperature)
8936
9824
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -10119,6 +11007,31 @@ module Google
10119
11007
  end
10120
11008
  end
10121
11009
 
11010
+ # Request message for [InternalOsServiceStateInstance].
11011
+ class GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance
11012
+ include Google::Apis::Core::Hashable
11013
+
11014
+ # Required. internal service name.
11015
+ # Corresponds to the JSON property `serviceName`
11016
+ # @return [String]
11017
+ attr_accessor :service_name
11018
+
11019
+ # Required. internal service state.
11020
+ # Corresponds to the JSON property `serviceState`
11021
+ # @return [String]
11022
+ attr_accessor :service_state
11023
+
11024
+ def initialize(**args)
11025
+ update!(**args)
11026
+ end
11027
+
11028
+ # Update properties of this object
11029
+ def update!(**args)
11030
+ @service_name = args[:service_name] if args.key?(:service_name)
11031
+ @service_state = args[:service_state] if args.key?(:service_state)
11032
+ end
11033
+ end
11034
+
10122
11035
  # Contains information about the Large Model.
10123
11036
  class GoogleCloudAiplatformV1beta1LargeModelReference
10124
11037
  include Google::Apis::Core::Hashable
@@ -12921,7 +13834,8 @@ module Google
12921
13834
 
12922
13835
  # The metadata of the ModelEvaluation. For the ModelEvaluation uploaded from
12923
13836
  # Managed Pipeline, metadata contains a structured value with keys of "
12924
- # pipeline_job_id", "evaluation_dataset_type", "evaluation_dataset_path".
13837
+ # pipeline_job_id", "evaluation_dataset_type", "evaluation_dataset_path", "
13838
+ # row_based_metrics_path".
12925
13839
  # Corresponds to the JSON property `metadata`
12926
13840
  # @return [Object]
12927
13841
  attr_accessor :metadata
@@ -14722,6 +15636,42 @@ module Google
14722
15636
  end
14723
15637
  end
14724
15638
 
15639
+ # Notebook Reservation Affinity for consuming Zonal reservation.
15640
+ class GoogleCloudAiplatformV1beta1NotebookReservationAffinity
15641
+ include Google::Apis::Core::Hashable
15642
+
15643
+ # Required. Specifies the type of reservation from which this instance can
15644
+ # consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or
15645
+ # RESERVATION_NONE. See Consuming reserved instances for examples.
15646
+ # Corresponds to the JSON property `consumeReservationType`
15647
+ # @return [String]
15648
+ attr_accessor :consume_reservation_type
15649
+
15650
+ # Optional. Corresponds to the label key of a reservation resource. To target a
15651
+ # RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as
15652
+ # the key and specify the name of your reservation as its value.
15653
+ # Corresponds to the JSON property `key`
15654
+ # @return [String]
15655
+ attr_accessor :key
15656
+
15657
+ # Optional. Corresponds to the label values of a reservation resource. This must
15658
+ # be the full path name of Reservation.
15659
+ # Corresponds to the JSON property `values`
15660
+ # @return [Array<String>]
15661
+ attr_accessor :values
15662
+
15663
+ def initialize(**args)
15664
+ update!(**args)
15665
+ end
15666
+
15667
+ # Update properties of this object
15668
+ def update!(**args)
15669
+ @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
15670
+ @key = args[:key] if args.key?(:key)
15671
+ @values = args[:values] if args.key?(:values)
15672
+ end
15673
+ end
15674
+
14725
15675
  # A runtime is a virtual machine allocated to a particular user for a particular
14726
15676
  # Notebook file on temporary basis with lifetime limited to 24 hours.
14727
15677
  class GoogleCloudAiplatformV1beta1NotebookRuntime
@@ -14757,6 +15707,12 @@ module Google
14757
15707
  # @return [String]
14758
15708
  attr_accessor :health_state
14759
15709
 
15710
+ # Output only. Whether NotebookRuntime is upgradable.
15711
+ # Corresponds to the JSON property `isUpgradable`
15712
+ # @return [Boolean]
15713
+ attr_accessor :is_upgradable
15714
+ alias_method :is_upgradable?, :is_upgradable
15715
+
14760
15716
  # The labels with user-defined metadata to organize your NotebookRuntime. Label
14761
15717
  # keys and values can be no longer than 64 characters (Unicode codepoints), can
14762
15718
  # only contain lowercase letters, numeric characters, underscores and dashes.
@@ -14779,6 +15735,12 @@ module Google
14779
15735
  # @return [String]
14780
15736
  attr_accessor :name
14781
15737
 
15738
+ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](
15739
+ # https://cloud.google.com/vpc/docs/add-remove-network-tags)).
15740
+ # Corresponds to the JSON property `networkTags`
15741
+ # @return [Array<String>]
15742
+ attr_accessor :network_tags
15743
+
14782
15744
  # Points to a NotebookRuntimeTemplateRef.
14783
15745
  # Corresponds to the JSON property `notebookRuntimeTemplateRef`
14784
15746
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplateRef]
@@ -14794,6 +15756,11 @@ module Google
14794
15756
  # @return [String]
14795
15757
  attr_accessor :proxy_uri
14796
15758
 
15759
+ # Notebook Reservation Affinity for consuming Zonal reservation.
15760
+ # Corresponds to the JSON property `reservationAffinity`
15761
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookReservationAffinity]
15762
+ attr_accessor :reservation_affinity
15763
+
14797
15764
  # Output only. The runtime (instance) state of the NotebookRuntime.
14798
15765
  # Corresponds to the JSON property `runtimeState`
14799
15766
  # @return [String]
@@ -14830,11 +15797,14 @@ module Google
14830
15797
  @display_name = args[:display_name] if args.key?(:display_name)
14831
15798
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
14832
15799
  @health_state = args[:health_state] if args.key?(:health_state)
15800
+ @is_upgradable = args[:is_upgradable] if args.key?(:is_upgradable)
14833
15801
  @labels = args[:labels] if args.key?(:labels)
14834
15802
  @name = args[:name] if args.key?(:name)
15803
+ @network_tags = args[:network_tags] if args.key?(:network_tags)
14835
15804
  @notebook_runtime_template_ref = args[:notebook_runtime_template_ref] if args.key?(:notebook_runtime_template_ref)
14836
15805
  @notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
14837
15806
  @proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
15807
+ @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
14838
15808
  @runtime_state = args[:runtime_state] if args.key?(:runtime_state)
14839
15809
  @runtime_user = args[:runtime_user] if args.key?(:runtime_user)
14840
15810
  @service_account = args[:service_account] if args.key?(:service_account)
@@ -14917,11 +15887,22 @@ module Google
14917
15887
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NetworkSpec]
14918
15888
  attr_accessor :network_spec
14919
15889
 
15890
+ # Optional. The Compute Engine tags to add to runtime (see [Tagging instances](
15891
+ # https://cloud.google.com/vpc/docs/add-remove-network-tags)).
15892
+ # Corresponds to the JSON property `networkTags`
15893
+ # @return [Array<String>]
15894
+ attr_accessor :network_tags
15895
+
14920
15896
  # Optional. Immutable. The type of the notebook runtime template.
14921
15897
  # Corresponds to the JSON property `notebookRuntimeType`
14922
15898
  # @return [String]
14923
15899
  attr_accessor :notebook_runtime_type
14924
15900
 
15901
+ # Notebook Reservation Affinity for consuming Zonal reservation.
15902
+ # Corresponds to the JSON property `reservationAffinity`
15903
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookReservationAffinity]
15904
+ attr_accessor :reservation_affinity
15905
+
14925
15906
  # The service account that the runtime workload runs as. You can use any service
14926
15907
  # account within the same project, but you must have the service account user
14927
15908
  # permission to use the instance. If not specified, the [Compute Engine default
@@ -14931,6 +15912,13 @@ module Google
14931
15912
  # @return [String]
14932
15913
  attr_accessor :service_account
14933
15914
 
15915
+ # A set of Shielded Instance options. See [Images using supported Shielded VM
15916
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
15917
+ # vm).
15918
+ # Corresponds to the JSON property `shieldedVmConfig`
15919
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ShieldedVmConfig]
15920
+ attr_accessor :shielded_vm_config
15921
+
14934
15922
  # Output only. Timestamp when this NotebookRuntimeTemplate was most recently
14935
15923
  # updated.
14936
15924
  # Corresponds to the JSON property `updateTime`
@@ -14955,8 +15943,11 @@ module Google
14955
15943
  @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
14956
15944
  @name = args[:name] if args.key?(:name)
14957
15945
  @network_spec = args[:network_spec] if args.key?(:network_spec)
15946
+ @network_tags = args[:network_tags] if args.key?(:network_tags)
14958
15947
  @notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
15948
+ @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
14959
15949
  @service_account = args[:service_account] if args.key?(:service_account)
15950
+ @shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
14960
15951
  @update_time = args[:update_time] if args.key?(:update_time)
14961
15952
  end
14962
15953
  end
@@ -14980,7 +15971,11 @@ module Google
14980
15971
  end
14981
15972
  end
14982
15973
 
14983
- # Content part.
15974
+ # A datatype containing media that is part of a multi-part `Content` message. A `
15975
+ # Part` consists of data which has an associated datatype. A `Part` can only
15976
+ # contain one of the accepted types in `Part.data`. A `Part` must have a fixed
15977
+ # IANA MIME type identifying the type and subtype of the media if `inline_data`
15978
+ # or `file_data` field is filled with raw bytes.
14984
15979
  class GoogleCloudAiplatformV1beta1Part
14985
15980
  include Google::Apis::Core::Hashable
14986
15981
 
@@ -15004,7 +15999,7 @@ module Google
15004
15999
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponse]
15005
16000
  attr_accessor :function_response
15006
16001
 
15007
- # Content blob.
16002
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
15008
16003
  # Corresponds to the JSON property `inlineData`
15009
16004
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Blob]
15010
16005
  attr_accessor :inline_data
@@ -16192,6 +17187,11 @@ module Google
16192
17187
  # @return [String]
16193
17188
  attr_accessor :version_id
16194
17189
 
17190
+ # Optional. Indicates the state of the model version.
17191
+ # Corresponds to the JSON property `versionState`
17192
+ # @return [String]
17193
+ attr_accessor :version_state
17194
+
16195
17195
  def initialize(**args)
16196
17196
  update!(**args)
16197
17197
  end
@@ -16207,6 +17207,7 @@ module Google
16207
17207
  @publisher_model_template = args[:publisher_model_template] if args.key?(:publisher_model_template)
16208
17208
  @supported_actions = args[:supported_actions] if args.key?(:supported_actions)
16209
17209
  @version_id = args[:version_id] if args.key?(:version_id)
17210
+ @version_state = args[:version_state] if args.key?(:version_state)
16210
17211
  end
16211
17212
  end
16212
17213
 
@@ -16334,6 +17335,11 @@ module Google
16334
17335
  # @return [String]
16335
17336
  attr_accessor :model_display_name
16336
17337
 
17338
+ # Optional. The signed URI for ephemeral Cloud Storage access to model artifact.
17339
+ # Corresponds to the JSON property `publicArtifactUri`
17340
+ # @return [String]
17341
+ attr_accessor :public_artifact_uri
17342
+
16337
17343
  # The resource name of the shared DeploymentResourcePool to deploy on. Format: `
16338
17344
  # projects/`project`/locations/`location`/deploymentResourcePools/`
16339
17345
  # deployment_resource_pool``
@@ -16358,6 +17364,7 @@ module Google
16358
17364
  @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
16359
17365
  @large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
16360
17366
  @model_display_name = args[:model_display_name] if args.key?(:model_display_name)
17367
+ @public_artifact_uri = args[:public_artifact_uri] if args.key?(:public_artifact_uri)
16361
17368
  @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
16362
17369
  @title = args[:title] if args.key?(:title)
16363
17370
  end
@@ -16470,6 +17477,11 @@ module Google
16470
17477
  class GoogleCloudAiplatformV1beta1PublisherModelResourceReference
16471
17478
  include Google::Apis::Core::Hashable
16472
17479
 
17480
+ # Description of the resource.
17481
+ # Corresponds to the JSON property `description`
17482
+ # @return [String]
17483
+ attr_accessor :description
17484
+
16473
17485
  # The resource name of the Google Cloud resource.
16474
17486
  # Corresponds to the JSON property `resourceName`
16475
17487
  # @return [String]
@@ -16480,14 +17492,21 @@ module Google
16480
17492
  # @return [String]
16481
17493
  attr_accessor :uri
16482
17494
 
17495
+ # Use case (CUJ) of the resource.
17496
+ # Corresponds to the JSON property `useCase`
17497
+ # @return [String]
17498
+ attr_accessor :use_case
17499
+
16483
17500
  def initialize(**args)
16484
17501
  update!(**args)
16485
17502
  end
16486
17503
 
16487
17504
  # Update properties of this object
16488
17505
  def update!(**args)
17506
+ @description = args[:description] if args.key?(:description)
16489
17507
  @resource_name = args[:resource_name] if args.key?(:resource_name)
16490
17508
  @uri = args[:uri] if args.key?(:uri)
17509
+ @use_case = args[:use_case] if args.key?(:use_case)
16491
17510
  end
16492
17511
  end
16493
17512
 
@@ -17356,6 +18375,16 @@ module Google
17356
18375
  # @return [String]
17357
18376
  attr_accessor :event_type
17358
18377
 
18378
+ # The details of the internal os service states.
18379
+ # Corresponds to the JSON property `internalOsServiceStateInstance`
18380
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance>]
18381
+ attr_accessor :internal_os_service_state_instance
18382
+
18383
+ # Optional. The details of the internal os service states.
18384
+ # Corresponds to the JSON property `internalOsServiceStateInstances`
18385
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance>]
18386
+ attr_accessor :internal_os_service_state_instances
18387
+
17359
18388
  # Required. The VM identity token (a JWT) for authenticating the VM. https://
17360
18389
  # cloud.google.com/compute/docs/instances/verifying-instance-identity
17361
18390
  # Corresponds to the JSON property `vmToken`
@@ -17370,6 +18399,8 @@ module Google
17370
18399
  def update!(**args)
17371
18400
  @event_details = args[:event_details] if args.key?(:event_details)
17372
18401
  @event_type = args[:event_type] if args.key?(:event_type)
18402
+ @internal_os_service_state_instance = args[:internal_os_service_state_instance] if args.key?(:internal_os_service_state_instance)
18403
+ @internal_os_service_state_instances = args[:internal_os_service_state_instances] if args.key?(:internal_os_service_state_instances)
17373
18404
  @vm_token = args[:vm_token] if args.key?(:vm_token)
17374
18405
  end
17375
18406
  end
@@ -18046,6 +19077,12 @@ module Google
18046
19077
  attr_accessor :disable_retries
18047
19078
  alias_method :disable_retries?, :disable_retries
18048
19079
 
19080
+ # Optional. This is the maximum time a user will wait in the QRM queue for
19081
+ # resources. Default is 1 day
19082
+ # Corresponds to the JSON property `maxWaitDuration`
19083
+ # @return [String]
19084
+ attr_accessor :max_wait_duration
19085
+
18049
19086
  # Restarts the entire CustomJob if a worker gets restarted. This feature can be
18050
19087
  # used by distributed training jobs that are not resilient to workers leaving
18051
19088
  # and joining a job.
@@ -18066,15 +19103,15 @@ module Google
18066
19103
  # Update properties of this object
18067
19104
  def update!(**args)
18068
19105
  @disable_retries = args[:disable_retries] if args.key?(:disable_retries)
19106
+ @max_wait_duration = args[:max_wait_duration] if args.key?(:max_wait_duration)
18069
19107
  @restart_job_on_worker_restart = args[:restart_job_on_worker_restart] if args.key?(:restart_job_on_worker_restart)
18070
19108
  @timeout = args[:timeout] if args.key?(:timeout)
18071
19109
  end
18072
19110
  end
18073
19111
 
18074
- # Represents a select subset of an OpenAPI 3.0 Schema object. Schema is used to
18075
- # define the format of input/output data. More fields may be added in the future
18076
- # as needed. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.
18077
- # 0.2.md#schemaObject
19112
+ # Schema is used to define the format of input/output data. Represents a select
19113
+ # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
19114
+ # schema). More fields may be added in the future as needed.
18078
19115
  class GoogleCloudAiplatformV1beta1Schema
18079
19116
  include Google::Apis::Core::Hashable
18080
19117
 
@@ -18102,10 +19139,9 @@ module Google
18102
19139
  # @return [String]
18103
19140
  attr_accessor :format
18104
19141
 
18105
- # Represents a select subset of an OpenAPI 3.0 Schema object. Schema is used to
18106
- # define the format of input/output data. More fields may be added in the future
18107
- # as needed. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.
18108
- # 0.2.md#schemaObject
19142
+ # Schema is used to define the format of input/output data. Represents a select
19143
+ # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
19144
+ # schema). More fields may be added in the future as needed.
18109
19145
  # Corresponds to the JSON property `items`
18110
19146
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
18111
19147
  attr_accessor :items
@@ -24343,6 +25379,32 @@ module Google
24343
25379
  end
24344
25380
  end
24345
25381
 
25382
+ # A set of Shielded Instance options. See [Images using supported Shielded VM
25383
+ # features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
25384
+ # vm).
25385
+ class GoogleCloudAiplatformV1beta1ShieldedVmConfig
25386
+ include Google::Apis::Core::Hashable
25387
+
25388
+ # Defines whether the instance has [Secure Boot](https://cloud.google.com/
25389
+ # compute/shielded-vm/docs/shielded-vm#secure-boot) enabled. Secure Boot helps
25390
+ # ensure that the system only runs authentic software by verifying the digital
25391
+ # signature of all boot components, and halting the boot process if signature
25392
+ # verification fails.
25393
+ # Corresponds to the JSON property `enableSecureBoot`
25394
+ # @return [Boolean]
25395
+ attr_accessor :enable_secure_boot
25396
+ alias_method :enable_secure_boot?, :enable_secure_boot
25397
+
25398
+ def initialize(**args)
25399
+ update!(**args)
25400
+ end
25401
+
25402
+ # Update properties of this object
25403
+ def update!(**args)
25404
+ @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
25405
+ end
25406
+ end
25407
+
24346
25408
  # Config for SmoothGrad approximation of gradients. When enabled, the gradients
24347
25409
  # are approximated by averaging the gradients from noisy samples in the vicinity
24348
25410
  # of the inputs. Adding noise can help improve the computed gradients. Refer to
@@ -26326,7 +27388,9 @@ module Google
26326
27388
  end
26327
27389
  end
26328
27390
 
26329
- # Tool details that the model may use to generate response.
27391
+ # Tool details that the model may use to generate response. A `Tool` is a piece
27392
+ # of code that enables the system to interact with external systems to perform
27393
+ # an action, or set of actions, outside of knowledge and scope of the model.
26330
27394
  class GoogleCloudAiplatformV1beta1Tool
26331
27395
  include Google::Apis::Core::Hashable
26332
27396
 
@@ -27726,21 +28790,43 @@ module Google
27726
28790
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
27727
28791
  # email address that represents a Google group. For example, `admins@example.com`
27728
28792
  # . * `domain:`domain``: The G Suite domain (primary) that represents all the
27729
- # users of that domain. For example, `google.com` or `example.com`. * `deleted:
27730
- # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
27731
- # representing a user that has been recently deleted. For example, `alice@
27732
- # example.com?uid=123456789012345678901`. If the user is recovered, this value
27733
- # reverts to `user:`emailid`` and the recovered user retains the role in the
27734
- # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
27735
- # (plus unique identifier) representing a service account that has been recently
27736
- # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
28793
+ # users of that domain. For example, `google.com` or `example.com`. * `principal:
28794
+ # //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
28795
+ # subject_attribute_value``: A single identity in a workforce identity pool. * `
28796
+ # principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
28797
+ # group/`group_id``: All workforce identities in a group. * `principalSet://iam.
28798
+ # googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
28799
+ # attribute_name`/`attribute_value``: All workforce identities with a specific
28800
+ # attribute value. * `principalSet://iam.googleapis.com/locations/global/
28801
+ # workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
28802
+ # principal://iam.googleapis.com/projects/`project_number`/locations/global/
28803
+ # workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
28804
+ # identity in a workload identity pool. * `principalSet://iam.googleapis.com/
28805
+ # projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
28806
+ # group/`group_id``: A workload identity pool group. * `principalSet://iam.
28807
+ # googleapis.com/projects/`project_number`/locations/global/
28808
+ # workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
28809
+ # All identities in a workload identity pool with a certain attribute. * `
28810
+ # principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
28811
+ # workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
28812
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
28813
+ # identifier) representing a user that has been recently deleted. For example, `
28814
+ # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
28815
+ # value reverts to `user:`emailid`` and the recovered user retains the role in
28816
+ # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
28817
+ # address (plus unique identifier) representing a service account that has been
28818
+ # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
27737
28819
  # 123456789012345678901`. If the service account is undeleted, this value
27738
28820
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
27739
28821
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
27740
28822
  # An email address (plus unique identifier) representing a Google group that has
27741
28823
  # been recently deleted. For example, `admins@example.com?uid=
27742
28824
  # 123456789012345678901`. If the group is recovered, this value reverts to `
27743
- # group:`emailid`` and the recovered group retains the role in the binding.
28825
+ # group:`emailid`` and the recovered group retains the role in the binding. * `
28826
+ # deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
28827
+ # pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
28828
+ # workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
28829
+ # locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
27744
28830
  # Corresponds to the JSON property `members`
27745
28831
  # @return [Array<String>]
27746
28832
  attr_accessor :members
@@ -28374,6 +29460,102 @@ module Google
28374
29460
  @units = args[:units] if args.key?(:units)
28375
29461
  end
28376
29462
  end
29463
+
29464
+ #
29465
+ class IntelligenceCloudAutomlXpsMetricEntry
29466
+ include Google::Apis::Core::Hashable
29467
+
29468
+ # For billing metrics that are using legacy sku's, set the legacy billing metric
29469
+ # id here. This will be sent to Chemist as the "cloudbilling.googleapis.com/
29470
+ # argentum_metric_id" label. Otherwise leave empty.
29471
+ # Corresponds to the JSON property `argentumMetricId`
29472
+ # @return [String]
29473
+ attr_accessor :argentum_metric_id
29474
+
29475
+ # A double value.
29476
+ # Corresponds to the JSON property `doubleValue`
29477
+ # @return [Float]
29478
+ attr_accessor :double_value
29479
+
29480
+ # A signed 64-bit integer value.
29481
+ # Corresponds to the JSON property `int64Value`
29482
+ # @return [Fixnum]
29483
+ attr_accessor :int64_value
29484
+
29485
+ # The metric name defined in the service configuration.
29486
+ # Corresponds to the JSON property `metricName`
29487
+ # @return [String]
29488
+ attr_accessor :metric_name
29489
+
29490
+ # Billing system labels for this (metric, value) pair.
29491
+ # Corresponds to the JSON property `systemLabels`
29492
+ # @return [Array<Google::Apis::AiplatformV1beta1::IntelligenceCloudAutomlXpsMetricEntryLabel>]
29493
+ attr_accessor :system_labels
29494
+
29495
+ def initialize(**args)
29496
+ update!(**args)
29497
+ end
29498
+
29499
+ # Update properties of this object
29500
+ def update!(**args)
29501
+ @argentum_metric_id = args[:argentum_metric_id] if args.key?(:argentum_metric_id)
29502
+ @double_value = args[:double_value] if args.key?(:double_value)
29503
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
29504
+ @metric_name = args[:metric_name] if args.key?(:metric_name)
29505
+ @system_labels = args[:system_labels] if args.key?(:system_labels)
29506
+ end
29507
+ end
29508
+
29509
+ #
29510
+ class IntelligenceCloudAutomlXpsMetricEntryLabel
29511
+ include Google::Apis::Core::Hashable
29512
+
29513
+ # The name of the label.
29514
+ # Corresponds to the JSON property `labelName`
29515
+ # @return [String]
29516
+ attr_accessor :label_name
29517
+
29518
+ # The value of the label.
29519
+ # Corresponds to the JSON property `labelValue`
29520
+ # @return [String]
29521
+ attr_accessor :label_value
29522
+
29523
+ def initialize(**args)
29524
+ update!(**args)
29525
+ end
29526
+
29527
+ # Update properties of this object
29528
+ def update!(**args)
29529
+ @label_name = args[:label_name] if args.key?(:label_name)
29530
+ @label_value = args[:label_value] if args.key?(:label_value)
29531
+ end
29532
+ end
29533
+
29534
+ #
29535
+ class IntelligenceCloudAutomlXpsReportingMetrics
29536
+ include Google::Apis::Core::Hashable
29537
+
29538
+ # The effective time training used. If set, this is used for quota management
29539
+ # and billing. Deprecated. AutoML BE doesn't use this. Don't set.
29540
+ # Corresponds to the JSON property `effectiveTrainingDuration`
29541
+ # @return [String]
29542
+ attr_accessor :effective_training_duration
29543
+
29544
+ # One entry per metric name. The values must be aggregated per metric name.
29545
+ # Corresponds to the JSON property `metricEntries`
29546
+ # @return [Array<Google::Apis::AiplatformV1beta1::IntelligenceCloudAutomlXpsMetricEntry>]
29547
+ attr_accessor :metric_entries
29548
+
29549
+ def initialize(**args)
29550
+ update!(**args)
29551
+ end
29552
+
29553
+ # Update properties of this object
29554
+ def update!(**args)
29555
+ @effective_training_duration = args[:effective_training_duration] if args.key?(:effective_training_duration)
29556
+ @metric_entries = args[:metric_entries] if args.key?(:metric_entries)
29557
+ end
29558
+ end
28377
29559
  end
28378
29560
  end
28379
29561
  end