google-apis-aiplatform_v1beta1 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -705,6 +705,27 @@ module Google
705
705
  end
706
706
  end
707
707
 
708
+ # Request message for PipelineService.BatchCancelPipelineJobs.
709
+ class GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest
710
+ include Google::Apis::Core::Hashable
711
+
712
+ # Required. The names of the PipelineJobs to cancel. A maximum of 32
713
+ # PipelineJobs can be cancelled in a batch. Format: `projects/`project`/
714
+ # locations/`location`/pipelineJobs/`pipelineJob``
715
+ # Corresponds to the JSON property `names`
716
+ # @return [Array<String>]
717
+ attr_accessor :names
718
+
719
+ def initialize(**args)
720
+ update!(**args)
721
+ end
722
+
723
+ # Update properties of this object
724
+ def update!(**args)
725
+ @names = args[:names] if args.key?(:names)
726
+ end
727
+ end
728
+
708
729
  # Details of operations that perform batch create Features.
709
730
  class GoogleCloudAiplatformV1beta1BatchCreateFeaturesOperationMetadata
710
731
  include Google::Apis::Core::Hashable
@@ -1716,6 +1737,32 @@ module Google
1716
1737
  end
1717
1738
  end
1718
1739
 
1740
+ # Content blob.
1741
+ class GoogleCloudAiplatformV1beta1Blob
1742
+ include Google::Apis::Core::Hashable
1743
+
1744
+ # Required. Data.
1745
+ # Corresponds to the JSON property `data`
1746
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1747
+ # @return [String]
1748
+ attr_accessor :data
1749
+
1750
+ # Required. Mime type of the data.
1751
+ # Corresponds to the JSON property `mimeType`
1752
+ # @return [String]
1753
+ attr_accessor :mime_type
1754
+
1755
+ def initialize(**args)
1756
+ update!(**args)
1757
+ end
1758
+
1759
+ # Update properties of this object
1760
+ def update!(**args)
1761
+ @data = args[:data] if args.key?(:data)
1762
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1763
+ end
1764
+ end
1765
+
1719
1766
  # Config for blur baseline. When enabled, a linear path from the maximally
1720
1767
  # blurred image to the input image is created. Using a blurred baseline instead
1721
1768
  # of zero (black image) is motivated by the BlurIG approach explained here:
@@ -1850,6 +1897,56 @@ module Google
1850
1897
  end
1851
1898
  end
1852
1899
 
1900
+ # Generated candidate.
1901
+ class GoogleCloudAiplatformV1beta1Candidate
1902
+ include Google::Apis::Core::Hashable
1903
+
1904
+ # A collection of source attributions for a piece of content.
1905
+ # Corresponds to the JSON property `citationMetadata`
1906
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CitationMetadata]
1907
+ attr_accessor :citation_metadata
1908
+
1909
+ # A single turn in a conversation with the model.
1910
+ # Corresponds to the JSON property `content`
1911
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
1912
+ attr_accessor :content
1913
+
1914
+ # Output only. A string that describes the filtering behavior in more detail.
1915
+ # Only filled when reason is set.
1916
+ # Corresponds to the JSON property `finishMessage`
1917
+ # @return [String]
1918
+ attr_accessor :finish_message
1919
+
1920
+ # Output only. The reason why the model stopped generating tokens.
1921
+ # Corresponds to the JSON property `finishReason`
1922
+ # @return [String]
1923
+ attr_accessor :finish_reason
1924
+
1925
+ # Output only. Index of the candidate.
1926
+ # Corresponds to the JSON property `index`
1927
+ # @return [Fixnum]
1928
+ attr_accessor :index
1929
+
1930
+ # Output only. Safety ratings of the generated content.
1931
+ # Corresponds to the JSON property `safetyRatings`
1932
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
1933
+ attr_accessor :safety_ratings
1934
+
1935
+ def initialize(**args)
1936
+ update!(**args)
1937
+ end
1938
+
1939
+ # Update properties of this object
1940
+ def update!(**args)
1941
+ @citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
1942
+ @content = args[:content] if args.key?(:content)
1943
+ @finish_message = args[:finish_message] if args.key?(:finish_message)
1944
+ @finish_reason = args[:finish_reason] if args.key?(:finish_reason)
1945
+ @index = args[:index] if args.key?(:index)
1946
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
1947
+ end
1948
+ end
1949
+
1853
1950
  # This message will be placed in the metadata field of a google.longrunning.
1854
1951
  # Operation associated with a CheckTrialEarlyStoppingState request.
1855
1952
  class GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateMetatdata
@@ -1915,6 +2012,81 @@ module Google
1915
2012
  end
1916
2013
  end
1917
2014
 
2015
+ # Source attributions for content.
2016
+ class GoogleCloudAiplatformV1beta1Citation
2017
+ include Google::Apis::Core::Hashable
2018
+
2019
+ # Output only. End index into the content.
2020
+ # Corresponds to the JSON property `endIndex`
2021
+ # @return [Fixnum]
2022
+ attr_accessor :end_index
2023
+
2024
+ # Output only. License of the attribution.
2025
+ # Corresponds to the JSON property `license`
2026
+ # @return [String]
2027
+ attr_accessor :license
2028
+
2029
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2030
+ # day and time zone are either specified elsewhere or are insignificant. The
2031
+ # date is relative to the Gregorian Calendar. This can represent one of the
2032
+ # following: * A full date, with non-zero year, month, and day values. * A month
2033
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2034
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2035
+ # example, a credit card expiration date). Related types: * google.type.
2036
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2037
+ # Corresponds to the JSON property `publicationDate`
2038
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeDate]
2039
+ attr_accessor :publication_date
2040
+
2041
+ # Output only. Start index into the content.
2042
+ # Corresponds to the JSON property `startIndex`
2043
+ # @return [Fixnum]
2044
+ attr_accessor :start_index
2045
+
2046
+ # Output only. Title of the attribution.
2047
+ # Corresponds to the JSON property `title`
2048
+ # @return [String]
2049
+ attr_accessor :title
2050
+
2051
+ # Output only. Url reference of the attribution.
2052
+ # Corresponds to the JSON property `uri`
2053
+ # @return [String]
2054
+ attr_accessor :uri
2055
+
2056
+ def initialize(**args)
2057
+ update!(**args)
2058
+ end
2059
+
2060
+ # Update properties of this object
2061
+ def update!(**args)
2062
+ @end_index = args[:end_index] if args.key?(:end_index)
2063
+ @license = args[:license] if args.key?(:license)
2064
+ @publication_date = args[:publication_date] if args.key?(:publication_date)
2065
+ @start_index = args[:start_index] if args.key?(:start_index)
2066
+ @title = args[:title] if args.key?(:title)
2067
+ @uri = args[:uri] if args.key?(:uri)
2068
+ end
2069
+ end
2070
+
2071
+ # A collection of source attributions for a piece of content.
2072
+ class GoogleCloudAiplatformV1beta1CitationMetadata
2073
+ include Google::Apis::Core::Hashable
2074
+
2075
+ # Output only. List of citations.
2076
+ # Corresponds to the JSON property `citations`
2077
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Citation>]
2078
+ attr_accessor :citations
2079
+
2080
+ def initialize(**args)
2081
+ update!(**args)
2082
+ end
2083
+
2084
+ # Update properties of this object
2085
+ def update!(**args)
2086
+ @citations = args[:citations] if args.key?(:citations)
2087
+ end
2088
+ end
2089
+
1918
2090
  # Request message for VizierService.CompleteTrial.
1919
2091
  class GoogleCloudAiplatformV1beta1CompleteTrialRequest
1920
2092
  include Google::Apis::Core::Hashable
@@ -2099,6 +2271,34 @@ module Google
2099
2271
  end
2100
2272
  end
2101
2273
 
2274
+ # A single turn in a conversation with the model.
2275
+ class GoogleCloudAiplatformV1beta1Content
2276
+ include Google::Apis::Core::Hashable
2277
+
2278
+ # Required. Ordered parts that make up a message. Parts may have different MIME
2279
+ # types.
2280
+ # Corresponds to the JSON property `parts`
2281
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>]
2282
+ attr_accessor :parts
2283
+
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.
2287
+ # Corresponds to the JSON property `role`
2288
+ # @return [String]
2289
+ attr_accessor :role
2290
+
2291
+ def initialize(**args)
2292
+ update!(**args)
2293
+ end
2294
+
2295
+ # Update properties of this object
2296
+ def update!(**args)
2297
+ @parts = args[:parts] if args.key?(:parts)
2298
+ @role = args[:role] if args.key?(:role)
2299
+ end
2300
+ end
2301
+
2102
2302
  # Instance of a general context.
2103
2303
  class GoogleCloudAiplatformV1beta1Context
2104
2304
  include Google::Apis::Core::Hashable
@@ -2283,19 +2483,32 @@ module Google
2283
2483
  class GoogleCloudAiplatformV1beta1CountTokensRequest
2284
2484
  include Google::Apis::Core::Hashable
2285
2485
 
2486
+ # Required. Input content.
2487
+ # Corresponds to the JSON property `contents`
2488
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
2489
+ attr_accessor :contents
2490
+
2286
2491
  # Required. The instances that are the input to token counting call. Schema is
2287
2492
  # identical to the prediction schema of the underlying model.
2288
2493
  # Corresponds to the JSON property `instances`
2289
2494
  # @return [Array<Object>]
2290
2495
  attr_accessor :instances
2291
2496
 
2497
+ # Required. The name of the publisher model requested to serve the prediction.
2498
+ # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
2499
+ # Corresponds to the JSON property `model`
2500
+ # @return [String]
2501
+ attr_accessor :model
2502
+
2292
2503
  def initialize(**args)
2293
2504
  update!(**args)
2294
2505
  end
2295
2506
 
2296
2507
  # Update properties of this object
2297
2508
  def update!(**args)
2509
+ @contents = args[:contents] if args.key?(:contents)
2298
2510
  @instances = args[:instances] if args.key?(:instances)
2511
+ @model = args[:model] if args.key?(:model)
2299
2512
  end
2300
2513
  end
2301
2514
 
@@ -4251,6 +4464,11 @@ module Google
4251
4464
  # @return [String]
4252
4465
  attr_accessor :deployed_index_id
4253
4466
 
4467
+ # Output only. The display name of the DeployedIndex.
4468
+ # Corresponds to the JSON property `displayName`
4469
+ # @return [String]
4470
+ attr_accessor :display_name
4471
+
4254
4472
  # Immutable. A resource name of the IndexEndpoint.
4255
4473
  # Corresponds to the JSON property `indexEndpoint`
4256
4474
  # @return [String]
@@ -4263,6 +4481,7 @@ module Google
4263
4481
  # Update properties of this object
4264
4482
  def update!(**args)
4265
4483
  @deployed_index_id = args[:deployed_index_id] if args.key?(:deployed_index_id)
4484
+ @display_name = args[:display_name] if args.key?(:display_name)
4266
4485
  @index_endpoint = args[:index_endpoint] if args.key?(:index_endpoint)
4267
4486
  end
4268
4487
  end
@@ -4480,6 +4699,104 @@ module Google
4480
4699
  end
4481
4700
  end
4482
4701
 
4702
+ # Request message for PredictionService.DirectPredict.
4703
+ class GoogleCloudAiplatformV1beta1DirectPredictRequest
4704
+ include Google::Apis::Core::Hashable
4705
+
4706
+ # The prediction input.
4707
+ # Corresponds to the JSON property `inputs`
4708
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor>]
4709
+ attr_accessor :inputs
4710
+
4711
+ # A tensor value type.
4712
+ # Corresponds to the JSON property `parameters`
4713
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor]
4714
+ attr_accessor :parameters
4715
+
4716
+ def initialize(**args)
4717
+ update!(**args)
4718
+ end
4719
+
4720
+ # Update properties of this object
4721
+ def update!(**args)
4722
+ @inputs = args[:inputs] if args.key?(:inputs)
4723
+ @parameters = args[:parameters] if args.key?(:parameters)
4724
+ end
4725
+ end
4726
+
4727
+ # Response message for PredictionService.DirectPredict.
4728
+ class GoogleCloudAiplatformV1beta1DirectPredictResponse
4729
+ include Google::Apis::Core::Hashable
4730
+
4731
+ # The prediction output.
4732
+ # Corresponds to the JSON property `outputs`
4733
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor>]
4734
+ attr_accessor :outputs
4735
+
4736
+ # A tensor value type.
4737
+ # Corresponds to the JSON property `parameters`
4738
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor]
4739
+ attr_accessor :parameters
4740
+
4741
+ def initialize(**args)
4742
+ update!(**args)
4743
+ end
4744
+
4745
+ # Update properties of this object
4746
+ def update!(**args)
4747
+ @outputs = args[:outputs] if args.key?(:outputs)
4748
+ @parameters = args[:parameters] if args.key?(:parameters)
4749
+ end
4750
+ end
4751
+
4752
+ # Request message for PredictionService.DirectRawPredict.
4753
+ class GoogleCloudAiplatformV1beta1DirectRawPredictRequest
4754
+ include Google::Apis::Core::Hashable
4755
+
4756
+ # The prediction input.
4757
+ # Corresponds to the JSON property `input`
4758
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
4759
+ # @return [String]
4760
+ attr_accessor :input
4761
+
4762
+ # Fully qualified name of the API method being invoked to perform predictions.
4763
+ # Format: `/namespace.Service/Method/` Example: `/tensorflow.serving.
4764
+ # PredictionService/Predict`
4765
+ # Corresponds to the JSON property `methodName`
4766
+ # @return [String]
4767
+ attr_accessor :method_name
4768
+
4769
+ def initialize(**args)
4770
+ update!(**args)
4771
+ end
4772
+
4773
+ # Update properties of this object
4774
+ def update!(**args)
4775
+ @input = args[:input] if args.key?(:input)
4776
+ @method_name = args[:method_name] if args.key?(:method_name)
4777
+ end
4778
+ end
4779
+
4780
+ # Response message for PredictionService.DirectRawPredict.
4781
+ class GoogleCloudAiplatformV1beta1DirectRawPredictResponse
4782
+ include Google::Apis::Core::Hashable
4783
+
4784
+ # The prediction output.
4785
+ # Corresponds to the JSON property `output`
4786
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
4787
+ # @return [String]
4788
+ attr_accessor :output
4789
+
4790
+ def initialize(**args)
4791
+ update!(**args)
4792
+ end
4793
+
4794
+ # Update properties of this object
4795
+ def update!(**args)
4796
+ @output = args[:output] if args.key?(:output)
4797
+ end
4798
+ end
4799
+
4483
4800
  # Represents the spec of disk options.
4484
4801
  class GoogleCloudAiplatformV1beta1DiskSpec
4485
4802
  include Google::Apis::Core::Hashable
@@ -5999,7 +6316,9 @@ module Google
5999
6316
  class GoogleCloudAiplatformV1beta1ExportDataResponse
6000
6317
  include Google::Apis::Core::Hashable
6001
6318
 
6002
- # All of the files that are exported in this export operation.
6319
+ # 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-*).
6003
6322
  # Corresponds to the JSON property `exportedFiles`
6004
6323
  # @return [Array<String>]
6005
6324
  attr_accessor :exported_files
@@ -6579,7 +6898,7 @@ module Google
6579
6898
  # @return [Hash<String,String>]
6580
6899
  attr_accessor :labels
6581
6900
 
6582
- # Output only. Name of the FeatureGroup. Format: `projects/`project`/locations/`
6901
+ # Identifier. Name of the FeatureGroup. Format: `projects/`project`/locations/`
6583
6902
  # location`/featureGroups/`featureGroup``
6584
6903
  # Corresponds to the JSON property `name`
6585
6904
  # @return [String]
@@ -6762,13 +7081,13 @@ module Google
6762
7081
  # @return [Hash<String,String>]
6763
7082
  attr_accessor :labels
6764
7083
 
6765
- # Output only. Name of the FeatureOnlineStore. Format: `projects/`project`/
7084
+ # Identifier. Name of the FeatureOnlineStore. Format: `projects/`project`/
6766
7085
  # locations/`location`/featureOnlineStores/`featureOnlineStore``
6767
7086
  # Corresponds to the JSON property `name`
6768
7087
  # @return [String]
6769
7088
  attr_accessor :name
6770
7089
 
6771
- # Optimized storage type to replace lightning
7090
+ # Optimized storage type
6772
7091
  # Corresponds to the JSON property `optimized`
6773
7092
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStoreOptimized]
6774
7093
  attr_accessor :optimized
@@ -6916,7 +7235,7 @@ module Google
6916
7235
  end
6917
7236
  end
6918
7237
 
6919
- # Optimized storage type to replace lightning
7238
+ # Optimized storage type
6920
7239
  class GoogleCloudAiplatformV1beta1FeatureOnlineStoreOptimized
6921
7240
  include Google::Apis::Core::Hashable
6922
7241
 
@@ -7218,16 +7537,14 @@ module Google
7218
7537
  # @return [Hash<String,String>]
7219
7538
  attr_accessor :labels
7220
7539
 
7221
- # Output only. Name of the FeatureView. Format: `projects/`project`/locations/`
7540
+ # Identifier. Name of the FeatureView. Format: `projects/`project`/locations/`
7222
7541
  # location`/featureOnlineStores/`feature_online_store`/featureViews/`
7223
7542
  # feature_view``
7224
7543
  # Corresponds to the JSON property `name`
7225
7544
  # @return [String]
7226
7545
  attr_accessor :name
7227
7546
 
7228
- # Configures when data is to be synced/updated for this FeatureView. At the end
7229
- # of the sync the latest featureValues for each entityId of this FeatureView are
7230
- # made ready for online serving.
7547
+ # Configuration for Sync. Only one option is set.
7231
7548
  # Corresponds to the JSON property `syncConfig`
7232
7549
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSyncConfig]
7233
7550
  attr_accessor :sync_config
@@ -7287,6 +7604,25 @@ module Google
7287
7604
  end
7288
7605
  end
7289
7606
 
7607
+ # Lookup key for a feature view.
7608
+ class GoogleCloudAiplatformV1beta1FeatureViewDataKey
7609
+ include Google::Apis::Core::Hashable
7610
+
7611
+ # String key to use for lookup.
7612
+ # Corresponds to the JSON property `key`
7613
+ # @return [String]
7614
+ attr_accessor :key
7615
+
7616
+ def initialize(**args)
7617
+ update!(**args)
7618
+ end
7619
+
7620
+ # Update properties of this object
7621
+ def update!(**args)
7622
+ @key = args[:key] if args.key?(:key)
7623
+ end
7624
+ end
7625
+
7290
7626
  # A Feature Registry source for features that need to be synced to Online Store.
7291
7627
  class GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource
7292
7628
  include Google::Apis::Core::Hashable
@@ -7354,8 +7690,8 @@ module Google
7354
7690
  # @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
7355
7691
  attr_accessor :final_status
7356
7692
 
7357
- # Output only. Name of the FeatureViewSync. Format: `projects/`project`/
7358
- # locations/`location`/featureOnlineStores/`feature_online_store`/featureViews/`
7693
+ # Identifier. Name of the FeatureViewSync. Format: `projects/`project`/locations/
7694
+ # `location`/featureOnlineStores/`feature_online_store`/featureViews/`
7359
7695
  # feature_view`/featureViewSyncs/`feature_view_sync``
7360
7696
  # Corresponds to the JSON property `name`
7361
7697
  # @return [String]
@@ -7382,7 +7718,7 @@ module Google
7382
7718
  end
7383
7719
  end
7384
7720
 
7385
- #
7721
+ # Configuration for Sync. Only one option is set.
7386
7722
  class GoogleCloudAiplatformV1beta1FeatureViewSyncConfig
7387
7723
  include Google::Apis::Core::Hashable
7388
7724
 
@@ -7808,7 +8144,19 @@ module Google
7808
8144
  class GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest
7809
8145
  include Google::Apis::Core::Hashable
7810
8146
 
8147
+ # Optional. Response data format. If not set, FeatureViewDataFormat.KEY_VALUE
8148
+ # will be used.
8149
+ # Corresponds to the JSON property `dataFormat`
8150
+ # @return [String]
8151
+ attr_accessor :data_format
8152
+
8153
+ # Lookup key for a feature view.
8154
+ # Corresponds to the JSON property `dataKey`
8155
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDataKey]
8156
+ attr_accessor :data_key
8157
+
7811
8158
  # Specify response data format. If not set, KeyValue format will be used.
8159
+ # Deprecated. Use FetchFeatureValuesRequest.data_format.
7812
8160
  # Corresponds to the JSON property `format`
7813
8161
  # @return [String]
7814
8162
  attr_accessor :format
@@ -7825,6 +8173,8 @@ module Google
7825
8173
 
7826
8174
  # Update properties of this object
7827
8175
  def update!(**args)
8176
+ @data_format = args[:data_format] if args.key?(:data_format)
8177
+ @data_key = args[:data_key] if args.key?(:data_key)
7828
8178
  @format = args[:format] if args.key?(:format)
7829
8179
  @id = args[:id] if args.key?(:id)
7830
8180
  end
@@ -7901,6 +8251,31 @@ module Google
7901
8251
  end
7902
8252
  end
7903
8253
 
8254
+ # URI based data.
8255
+ class GoogleCloudAiplatformV1beta1FileData
8256
+ include Google::Apis::Core::Hashable
8257
+
8258
+ # Required. URI.
8259
+ # Corresponds to the JSON property `fileUri`
8260
+ # @return [String]
8261
+ attr_accessor :file_uri
8262
+
8263
+ # Required. Mime type of the data.
8264
+ # Corresponds to the JSON property `mimeType`
8265
+ # @return [String]
8266
+ attr_accessor :mime_type
8267
+
8268
+ def initialize(**args)
8269
+ update!(**args)
8270
+ end
8271
+
8272
+ # Update properties of this object
8273
+ def update!(**args)
8274
+ @file_uri = args[:file_uri] if args.key?(:file_uri)
8275
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8276
+ end
8277
+ end
8278
+
7904
8279
  # Assigns input data to training, validation, and test sets based on the given
7905
8280
  # filters, data pieces not matched by any filter are ignored. Currently only
7906
8281
  # supported for Datasets containing DataItems. If any of the filters in this
@@ -8149,6 +8524,100 @@ module Google
8149
8524
  end
8150
8525
  end
8151
8526
 
8527
+ # A predicted [FunctionCall] returned from the model that contains a string
8528
+ # representing the [FunctionDeclaration.name] and a structured JSON object
8529
+ # containing the parameters and their values.
8530
+ class GoogleCloudAiplatformV1beta1FunctionCall
8531
+ include Google::Apis::Core::Hashable
8532
+
8533
+ # Optional. Required. The function parameters and values in JSON object format.
8534
+ # See [FunctionDeclaration.parameters] for parameter details.
8535
+ # Corresponds to the JSON property `args`
8536
+ # @return [Hash<String,Object>]
8537
+ attr_accessor :args
8538
+
8539
+ # Required. The name of the function to call. Matches [FunctionDeclaration.name].
8540
+ # Corresponds to the JSON property `name`
8541
+ # @return [String]
8542
+ attr_accessor :name
8543
+
8544
+ def initialize(**args)
8545
+ update!(**args)
8546
+ end
8547
+
8548
+ # Update properties of this object
8549
+ def update!(**args)
8550
+ @args = args[:args] if args.key?(:args)
8551
+ @name = args[:name] if args.key?(:name)
8552
+ end
8553
+ end
8554
+
8555
+ # Function declaration details.
8556
+ class GoogleCloudAiplatformV1beta1FunctionDeclaration
8557
+ include Google::Apis::Core::Hashable
8558
+
8559
+ # Optional. Description and purpose of the function. Model uses it to decide how
8560
+ # and whether to call the function.
8561
+ # Corresponds to the JSON property `description`
8562
+ # @return [String]
8563
+ attr_accessor :description
8564
+
8565
+ # Required. The name of the function to call. Must start with a letter or an
8566
+ # underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a
8567
+ # maximum length of 64.
8568
+ # Corresponds to the JSON property `name`
8569
+ # @return [String]
8570
+ attr_accessor :name
8571
+
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
8576
+ # Corresponds to the JSON property `parameters`
8577
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
8578
+ attr_accessor :parameters
8579
+
8580
+ def initialize(**args)
8581
+ update!(**args)
8582
+ end
8583
+
8584
+ # Update properties of this object
8585
+ def update!(**args)
8586
+ @description = args[:description] if args.key?(:description)
8587
+ @name = args[:name] if args.key?(:name)
8588
+ @parameters = args[:parameters] if args.key?(:parameters)
8589
+ end
8590
+ end
8591
+
8592
+ # The result output from a [FunctionCall] that contains a string representing
8593
+ # the [FunctionDeclaration.name] and a structured JSON object containing any
8594
+ # output from the function is used as context to the model. This should contain
8595
+ # the result of a [FunctionCall] made based on model prediction.
8596
+ class GoogleCloudAiplatformV1beta1FunctionResponse
8597
+ include Google::Apis::Core::Hashable
8598
+
8599
+ # Required. The name of the function to call. Matches [FunctionDeclaration.name]
8600
+ # and [FunctionCall.name].
8601
+ # Corresponds to the JSON property `name`
8602
+ # @return [String]
8603
+ attr_accessor :name
8604
+
8605
+ # Required. The function response in JSON object format.
8606
+ # Corresponds to the JSON property `response`
8607
+ # @return [Hash<String,Object>]
8608
+ attr_accessor :response
8609
+
8610
+ def initialize(**args)
8611
+ update!(**args)
8612
+ end
8613
+
8614
+ # Update properties of this object
8615
+ def update!(**args)
8616
+ @name = args[:name] if args.key?(:name)
8617
+ @response = args[:response] if args.key?(:response)
8618
+ end
8619
+ end
8620
+
8152
8621
  # The Google Cloud Storage location where the output is to be written to.
8153
8622
  class GoogleCloudAiplatformV1beta1GcsDestination
8154
8623
  include Google::Apis::Core::Hashable
@@ -8225,18 +8694,229 @@ module Google
8225
8694
  # @return [Fixnum]
8226
8695
  attr_accessor :expires_in
8227
8696
 
8228
- # Space-separated list of scopes contained in the returned token. https://cloud.
8229
- # google.com/docs/authentication/token-types#access-contents
8230
- # Corresponds to the JSON property `scope`
8231
- # @return [String]
8232
- attr_accessor :scope
8697
+ # Space-separated list of scopes contained in the returned token. https://cloud.
8698
+ # google.com/docs/authentication/token-types#access-contents
8699
+ # Corresponds to the JSON property `scope`
8700
+ # @return [String]
8701
+ attr_accessor :scope
8702
+
8703
+ # Type of the returned access token (e.g. "Bearer"). It specifies how the token
8704
+ # must be used. Bearer tokens may be used by any entity without proof of
8705
+ # identity.
8706
+ # Corresponds to the JSON property `tokenType`
8707
+ # @return [String]
8708
+ attr_accessor :token_type
8709
+
8710
+ def initialize(**args)
8711
+ update!(**args)
8712
+ end
8713
+
8714
+ # Update properties of this object
8715
+ def update!(**args)
8716
+ @access_token = args[:access_token] if args.key?(:access_token)
8717
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
8718
+ @scope = args[:scope] if args.key?(:scope)
8719
+ @token_type = args[:token_type] if args.key?(:token_type)
8720
+ end
8721
+ end
8722
+
8723
+ # Request message for [PredictionService.GenerateContent].
8724
+ class GoogleCloudAiplatformV1beta1GenerateContentRequest
8725
+ include Google::Apis::Core::Hashable
8726
+
8727
+ # Required. Input content.
8728
+ # Corresponds to the JSON property `contents`
8729
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
8730
+ attr_accessor :contents
8731
+
8732
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
8733
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
8734
+ # Corresponds to the JSON property `endpoint`
8735
+ # @return [String]
8736
+ attr_accessor :endpoint
8737
+
8738
+ # Generation config.
8739
+ # Corresponds to the JSON property `generationConfig`
8740
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfig]
8741
+ attr_accessor :generation_config
8742
+
8743
+ # Optional. Per request settings for blocking unsafe content. Enforced on
8744
+ # GenerateContentResponse.candidates.
8745
+ # Corresponds to the JSON property `safetySettings`
8746
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetySetting>]
8747
+ attr_accessor :safety_settings
8748
+
8749
+ # Optional. Tools that the model may use to generate response.
8750
+ # Corresponds to the JSON property `tools`
8751
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>]
8752
+ attr_accessor :tools
8753
+
8754
+ def initialize(**args)
8755
+ update!(**args)
8756
+ end
8757
+
8758
+ # Update properties of this object
8759
+ def update!(**args)
8760
+ @contents = args[:contents] if args.key?(:contents)
8761
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
8762
+ @generation_config = args[:generation_config] if args.key?(:generation_config)
8763
+ @safety_settings = args[:safety_settings] if args.key?(:safety_settings)
8764
+ @tools = args[:tools] if args.key?(:tools)
8765
+ end
8766
+ end
8767
+
8768
+ # Response message for [PredictionService.GenerateContent].
8769
+ class GoogleCloudAiplatformV1beta1GenerateContentResponse
8770
+ include Google::Apis::Core::Hashable
8771
+
8772
+ # Output only. Generated candidates.
8773
+ # Corresponds to the JSON property `candidates`
8774
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Candidate>]
8775
+ attr_accessor :candidates
8776
+
8777
+ # Content filter results for a prompt sent in the request.
8778
+ # Corresponds to the JSON property `promptFeedback`
8779
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
8780
+ attr_accessor :prompt_feedback
8781
+
8782
+ # Usage metadata about response(s).
8783
+ # Corresponds to the JSON property `usageMetadata`
8784
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
8785
+ attr_accessor :usage_metadata
8786
+
8787
+ def initialize(**args)
8788
+ update!(**args)
8789
+ end
8790
+
8791
+ # Update properties of this object
8792
+ def update!(**args)
8793
+ @candidates = args[:candidates] if args.key?(:candidates)
8794
+ @prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
8795
+ @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
8796
+ end
8797
+ end
8798
+
8799
+ # Content filter results for a prompt sent in the request.
8800
+ class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
8801
+ include Google::Apis::Core::Hashable
8802
+
8803
+ # Output only. Blocked reason.
8804
+ # Corresponds to the JSON property `blockReason`
8805
+ # @return [String]
8806
+ attr_accessor :block_reason
8807
+
8808
+ # Output only. A readable block reason message.
8809
+ # Corresponds to the JSON property `blockReasonMessage`
8810
+ # @return [String]
8811
+ attr_accessor :block_reason_message
8812
+
8813
+ # Output only. Safety ratings.
8814
+ # Corresponds to the JSON property `safetyRatings`
8815
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
8816
+ attr_accessor :safety_ratings
8817
+
8818
+ def initialize(**args)
8819
+ update!(**args)
8820
+ end
8821
+
8822
+ # Update properties of this object
8823
+ def update!(**args)
8824
+ @block_reason = args[:block_reason] if args.key?(:block_reason)
8825
+ @block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
8826
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
8827
+ end
8828
+ end
8829
+
8830
+ # Usage metadata about response(s).
8831
+ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
8832
+ include Google::Apis::Core::Hashable
8833
+
8834
+ # Number of tokens in the response(s).
8835
+ # Corresponds to the JSON property `candidatesTokenCount`
8836
+ # @return [Fixnum]
8837
+ attr_accessor :candidates_token_count
8838
+
8839
+ # Number of tokens in the request.
8840
+ # Corresponds to the JSON property `promptTokenCount`
8841
+ # @return [Fixnum]
8842
+ attr_accessor :prompt_token_count
8843
+
8844
+ #
8845
+ # Corresponds to the JSON property `totalTokenCount`
8846
+ # @return [Fixnum]
8847
+ attr_accessor :total_token_count
8848
+
8849
+ def initialize(**args)
8850
+ update!(**args)
8851
+ end
8852
+
8853
+ # Update properties of this object
8854
+ def update!(**args)
8855
+ @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
8856
+ @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
8857
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
8858
+ end
8859
+ end
8860
+
8861
+ # Generation config.
8862
+ class GoogleCloudAiplatformV1beta1GenerationConfig
8863
+ include Google::Apis::Core::Hashable
8864
+
8865
+ # Optional. Number of candidates to generate.
8866
+ # Corresponds to the JSON property `candidateCount`
8867
+ # @return [Fixnum]
8868
+ attr_accessor :candidate_count
8869
+
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
+ # Optional. The maximum number of output tokens to generate per message.
8892
+ # Corresponds to the JSON property `maxOutputTokens`
8893
+ # @return [Fixnum]
8894
+ attr_accessor :max_output_tokens
8895
+
8896
+ # Optional. Positive penalties.
8897
+ # Corresponds to the JSON property `presencePenalty`
8898
+ # @return [Float]
8899
+ attr_accessor :presence_penalty
8900
+
8901
+ # Optional. Stop sequences.
8902
+ # Corresponds to the JSON property `stopSequences`
8903
+ # @return [Array<String>]
8904
+ attr_accessor :stop_sequences
8905
+
8906
+ # Optional. Controls the randomness of predictions.
8907
+ # Corresponds to the JSON property `temperature`
8908
+ # @return [Float]
8909
+ attr_accessor :temperature
8910
+
8911
+ # Optional. If specified, top-k sampling will be used.
8912
+ # Corresponds to the JSON property `topK`
8913
+ # @return [Float]
8914
+ attr_accessor :top_k
8233
8915
 
8234
- # Type of the returned access token (e.g. "Bearer"). It specifies how the token
8235
- # must be used. Bearer tokens may be used by any entity without proof of
8236
- # identity.
8237
- # Corresponds to the JSON property `tokenType`
8238
- # @return [String]
8239
- attr_accessor :token_type
8916
+ # Optional. If specified, nucleus sampling will be used.
8917
+ # Corresponds to the JSON property `topP`
8918
+ # @return [Float]
8919
+ attr_accessor :top_p
8240
8920
 
8241
8921
  def initialize(**args)
8242
8922
  update!(**args)
@@ -8244,10 +8924,17 @@ module Google
8244
8924
 
8245
8925
  # Update properties of this object
8246
8926
  def update!(**args)
8247
- @access_token = args[:access_token] if args.key?(:access_token)
8248
- @expires_in = args[:expires_in] if args.key?(:expires_in)
8249
- @scope = args[:scope] if args.key?(:scope)
8250
- @token_type = args[:token_type] if args.key?(:token_type)
8927
+ @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
+ @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
+ @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
8935
+ @temperature = args[:temperature] if args.key?(:temperature)
8936
+ @top_k = args[:top_k] if args.key?(:top_k)
8937
+ @top_p = args[:top_p] if args.key?(:top_p)
8251
8938
  end
8252
8939
  end
8253
8940
 
@@ -11747,6 +12434,11 @@ module Google
11747
12434
  # @return [Array<String>]
11748
12435
  attr_accessor :command
11749
12436
 
12437
+ # Immutable. Deployment timeout. Limit for deployment timeout is 2 hours.
12438
+ # Corresponds to the JSON property `deploymentTimeout`
12439
+ # @return [String]
12440
+ attr_accessor :deployment_timeout
12441
+
11750
12442
  # Immutable. List of environment variables to set in the container. After the
11751
12443
  # container starts running, code running in the container can read these
11752
12444
  # environment variables. Additionally, the command and args fields can reference
@@ -11762,6 +12454,22 @@ module Google
11762
12454
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnvVar>]
11763
12455
  attr_accessor :env
11764
12456
 
12457
+ # Immutable. List of ports to expose from the container. Vertex AI sends gRPC
12458
+ # prediction requests that it receives to the first port on this list. Vertex AI
12459
+ # also sends liveness and health checks to this port. If you do not specify this
12460
+ # field, gRPC requests to the container will be disabled. Vertex AI does not use
12461
+ # ports other than the first one listed. This field corresponds to the `ports`
12462
+ # field of the Kubernetes Containers v1 core API.
12463
+ # Corresponds to the JSON property `grpcPorts`
12464
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Port>]
12465
+ attr_accessor :grpc_ports
12466
+
12467
+ # Probe describes a health check to be performed against a container to
12468
+ # determine whether it is alive or ready to receive traffic.
12469
+ # Corresponds to the JSON property `healthProbe`
12470
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Probe]
12471
+ attr_accessor :health_probe
12472
+
11765
12473
  # Immutable. HTTP path on the container to send health checks to. Vertex AI
11766
12474
  # intermittently sends GET requests to this path on the container's IP address
11767
12475
  # and port to check that the container is healthy. Read more about [health
@@ -11837,6 +12545,18 @@ module Google
11837
12545
  # @return [String]
11838
12546
  attr_accessor :predict_route
11839
12547
 
12548
+ # Immutable. The amount of the VM memory to reserve as the shared memory for the
12549
+ # model in megabytes.
12550
+ # Corresponds to the JSON property `sharedMemorySizeMb`
12551
+ # @return [Fixnum]
12552
+ attr_accessor :shared_memory_size_mb
12553
+
12554
+ # Probe describes a health check to be performed against a container to
12555
+ # determine whether it is alive or ready to receive traffic.
12556
+ # Corresponds to the JSON property `startupProbe`
12557
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Probe]
12558
+ attr_accessor :startup_probe
12559
+
11840
12560
  def initialize(**args)
11841
12561
  update!(**args)
11842
12562
  end
@@ -11845,11 +12565,16 @@ module Google
11845
12565
  def update!(**args)
11846
12566
  @args = args[:args] if args.key?(:args)
11847
12567
  @command = args[:command] if args.key?(:command)
12568
+ @deployment_timeout = args[:deployment_timeout] if args.key?(:deployment_timeout)
11848
12569
  @env = args[:env] if args.key?(:env)
12570
+ @grpc_ports = args[:grpc_ports] if args.key?(:grpc_ports)
12571
+ @health_probe = args[:health_probe] if args.key?(:health_probe)
11849
12572
  @health_route = args[:health_route] if args.key?(:health_route)
11850
12573
  @image_uri = args[:image_uri] if args.key?(:image_uri)
11851
12574
  @ports = args[:ports] if args.key?(:ports)
11852
12575
  @predict_route = args[:predict_route] if args.key?(:predict_route)
12576
+ @shared_memory_size_mb = args[:shared_memory_size_mb] if args.key?(:shared_memory_size_mb)
12577
+ @startup_probe = args[:startup_probe] if args.key?(:startup_probe)
11853
12578
  end
11854
12579
  end
11855
12580
 
@@ -14255,6 +14980,60 @@ module Google
14255
14980
  end
14256
14981
  end
14257
14982
 
14983
+ # Content part.
14984
+ class GoogleCloudAiplatformV1beta1Part
14985
+ include Google::Apis::Core::Hashable
14986
+
14987
+ # URI based data.
14988
+ # Corresponds to the JSON property `fileData`
14989
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FileData]
14990
+ attr_accessor :file_data
14991
+
14992
+ # A predicted [FunctionCall] returned from the model that contains a string
14993
+ # representing the [FunctionDeclaration.name] and a structured JSON object
14994
+ # containing the parameters and their values.
14995
+ # Corresponds to the JSON property `functionCall`
14996
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionCall]
14997
+ attr_accessor :function_call
14998
+
14999
+ # The result output from a [FunctionCall] that contains a string representing
15000
+ # the [FunctionDeclaration.name] and a structured JSON object containing any
15001
+ # output from the function is used as context to the model. This should contain
15002
+ # the result of a [FunctionCall] made based on model prediction.
15003
+ # Corresponds to the JSON property `functionResponse`
15004
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponse]
15005
+ attr_accessor :function_response
15006
+
15007
+ # Content blob.
15008
+ # Corresponds to the JSON property `inlineData`
15009
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Blob]
15010
+ attr_accessor :inline_data
15011
+
15012
+ # Optional. Text part (can be code).
15013
+ # Corresponds to the JSON property `text`
15014
+ # @return [String]
15015
+ attr_accessor :text
15016
+
15017
+ # Metadata describes the input video content.
15018
+ # Corresponds to the JSON property `videoMetadata`
15019
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VideoMetadata]
15020
+ attr_accessor :video_metadata
15021
+
15022
+ def initialize(**args)
15023
+ update!(**args)
15024
+ end
15025
+
15026
+ # Update properties of this object
15027
+ def update!(**args)
15028
+ @file_data = args[:file_data] if args.key?(:file_data)
15029
+ @function_call = args[:function_call] if args.key?(:function_call)
15030
+ @function_response = args[:function_response] if args.key?(:function_response)
15031
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
15032
+ @text = args[:text] if args.key?(:text)
15033
+ @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
15034
+ end
15035
+ end
15036
+
14258
15037
  # Request message for JobService.PauseModelDeploymentMonitoringJob.
14259
15038
  class GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest
14260
15039
  include Google::Apis::Core::Hashable
@@ -15300,6 +16079,66 @@ module Google
15300
16079
  end
15301
16080
  end
15302
16081
 
16082
+ # Probe describes a health check to be performed against a container to
16083
+ # determine whether it is alive or ready to receive traffic.
16084
+ class GoogleCloudAiplatformV1beta1Probe
16085
+ include Google::Apis::Core::Hashable
16086
+
16087
+ # ExecAction specifies a command to execute.
16088
+ # Corresponds to the JSON property `exec`
16089
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ProbeExecAction]
16090
+ attr_accessor :exec
16091
+
16092
+ # How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
16093
+ # value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe
16094
+ # argument 'periodSeconds'.
16095
+ # Corresponds to the JSON property `periodSeconds`
16096
+ # @return [Fixnum]
16097
+ attr_accessor :period_seconds
16098
+
16099
+ # Number of seconds after which the probe times out. Defaults to 1 second.
16100
+ # Minimum value is 1. Must be greater or equal to period_seconds. Maps to
16101
+ # Kubernetes probe argument 'timeoutSeconds'.
16102
+ # Corresponds to the JSON property `timeoutSeconds`
16103
+ # @return [Fixnum]
16104
+ attr_accessor :timeout_seconds
16105
+
16106
+ def initialize(**args)
16107
+ update!(**args)
16108
+ end
16109
+
16110
+ # Update properties of this object
16111
+ def update!(**args)
16112
+ @exec = args[:exec] if args.key?(:exec)
16113
+ @period_seconds = args[:period_seconds] if args.key?(:period_seconds)
16114
+ @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
16115
+ end
16116
+ end
16117
+
16118
+ # ExecAction specifies a command to execute.
16119
+ class GoogleCloudAiplatformV1beta1ProbeExecAction
16120
+ include Google::Apis::Core::Hashable
16121
+
16122
+ # Command is the command line to execute inside the container, the working
16123
+ # directory for the command is root ('/') in the container's filesystem. The
16124
+ # command is simply exec'd, it is not run inside a shell, so traditional shell
16125
+ # instructions ('|', etc) won't work. To use a shell, you need to explicitly
16126
+ # call out to that shell. Exit status of 0 is treated as live/healthy and non-
16127
+ # zero is unhealthy.
16128
+ # Corresponds to the JSON property `command`
16129
+ # @return [Array<String>]
16130
+ attr_accessor :command
16131
+
16132
+ def initialize(**args)
16133
+ update!(**args)
16134
+ end
16135
+
16136
+ # Update properties of this object
16137
+ def update!(**args)
16138
+ @command = args[:command] if args.key?(:command)
16139
+ end
16140
+ end
16141
+
15303
16142
  # A Model Garden Publisher Model.
15304
16143
  class GoogleCloudAiplatformV1beta1PublisherModel
15305
16144
  include Google::Apis::Core::Hashable
@@ -16369,6 +17208,25 @@ module Google
16369
17208
  end
16370
17209
  end
16371
17210
 
17211
+ # Details of operations that perform reboot PersistentResource.
17212
+ class GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata
17213
+ include Google::Apis::Core::Hashable
17214
+
17215
+ # Generic Metadata shared by all operations.
17216
+ # Corresponds to the JSON property `genericMetadata`
17217
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
17218
+ attr_accessor :generic_metadata
17219
+
17220
+ def initialize(**args)
17221
+ update!(**args)
17222
+ end
17223
+
17224
+ # Update properties of this object
17225
+ def update!(**args)
17226
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
17227
+ end
17228
+ end
17229
+
16372
17230
  # Request message for MetadataService.DeleteContextChildrenRequest.
16373
17231
  class GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest
16374
17232
  include Google::Apis::Core::Hashable
@@ -16751,6 +17609,64 @@ module Google
16751
17609
  end
16752
17610
  end
16753
17611
 
17612
+ # Safety rating corresponding to the generated content.
17613
+ class GoogleCloudAiplatformV1beta1SafetyRating
17614
+ include Google::Apis::Core::Hashable
17615
+
17616
+ # Output only. Indicates whether the content was filtered out because of this
17617
+ # rating.
17618
+ # Corresponds to the JSON property `blocked`
17619
+ # @return [Boolean]
17620
+ attr_accessor :blocked
17621
+ alias_method :blocked?, :blocked
17622
+
17623
+ # Output only. Harm category.
17624
+ # Corresponds to the JSON property `category`
17625
+ # @return [String]
17626
+ attr_accessor :category
17627
+
17628
+ # Output only. Harm probability levels in the content.
17629
+ # Corresponds to the JSON property `probability`
17630
+ # @return [String]
17631
+ attr_accessor :probability
17632
+
17633
+ def initialize(**args)
17634
+ update!(**args)
17635
+ end
17636
+
17637
+ # Update properties of this object
17638
+ def update!(**args)
17639
+ @blocked = args[:blocked] if args.key?(:blocked)
17640
+ @category = args[:category] if args.key?(:category)
17641
+ @probability = args[:probability] if args.key?(:probability)
17642
+ end
17643
+ end
17644
+
17645
+ # Safety settings.
17646
+ class GoogleCloudAiplatformV1beta1SafetySetting
17647
+ include Google::Apis::Core::Hashable
17648
+
17649
+ # Required. Harm category.
17650
+ # Corresponds to the JSON property `category`
17651
+ # @return [String]
17652
+ attr_accessor :category
17653
+
17654
+ # Required. The harm block threshold.
17655
+ # Corresponds to the JSON property `threshold`
17656
+ # @return [String]
17657
+ attr_accessor :threshold
17658
+
17659
+ def initialize(**args)
17660
+ update!(**args)
17661
+ end
17662
+
17663
+ # Update properties of this object
17664
+ def update!(**args)
17665
+ @category = args[:category] if args.key?(:category)
17666
+ @threshold = args[:threshold] if args.key?(:threshold)
17667
+ end
17668
+ end
17669
+
16754
17670
  # Active learning data sampling config. For every active learning labeling
16755
17671
  # iteration, it will select a batch of data based on the sampling strategy.
16756
17672
  class GoogleCloudAiplatformV1beta1SampleConfig
@@ -17155,6 +18071,84 @@ module Google
17155
18071
  end
17156
18072
  end
17157
18073
 
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
18078
+ class GoogleCloudAiplatformV1beta1Schema
18079
+ include Google::Apis::Core::Hashable
18080
+
18081
+ # Optional. The description of the data.
18082
+ # Corresponds to the JSON property `description`
18083
+ # @return [String]
18084
+ attr_accessor :description
18085
+
18086
+ # Optional. Possible values of the element of Type.STRING with enum format. For
18087
+ # example we can define an Enum Direction as : `type:STRING, format:enum, enum:["
18088
+ # EAST", NORTH", "SOUTH", "WEST"]`
18089
+ # Corresponds to the JSON property `enum`
18090
+ # @return [Array<String>]
18091
+ attr_accessor :enum
18092
+
18093
+ # Optional. Example of the object. Will only populated when the object is the
18094
+ # root.
18095
+ # Corresponds to the JSON property `example`
18096
+ # @return [Object]
18097
+ attr_accessor :example
18098
+
18099
+ # Optional. The format of the data. Supported formats: for NUMBER type: float,
18100
+ # double for INTEGER type: int32, int64
18101
+ # Corresponds to the JSON property `format`
18102
+ # @return [String]
18103
+ attr_accessor :format
18104
+
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
18109
+ # Corresponds to the JSON property `items`
18110
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
18111
+ attr_accessor :items
18112
+
18113
+ # Optional. Indicates if the value may be null.
18114
+ # Corresponds to the JSON property `nullable`
18115
+ # @return [Boolean]
18116
+ attr_accessor :nullable
18117
+ alias_method :nullable?, :nullable
18118
+
18119
+ # Optional. Properties of Type.OBJECT.
18120
+ # Corresponds to the JSON property `properties`
18121
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema>]
18122
+ attr_accessor :properties
18123
+
18124
+ # Optional. Required properties of Type.OBJECT.
18125
+ # Corresponds to the JSON property `required`
18126
+ # @return [Array<String>]
18127
+ attr_accessor :required
18128
+
18129
+ # Optional. The type of the data.
18130
+ # Corresponds to the JSON property `type`
18131
+ # @return [String]
18132
+ attr_accessor :type
18133
+
18134
+ def initialize(**args)
18135
+ update!(**args)
18136
+ end
18137
+
18138
+ # Update properties of this object
18139
+ def update!(**args)
18140
+ @description = args[:description] if args.key?(:description)
18141
+ @enum = args[:enum] if args.key?(:enum)
18142
+ @example = args[:example] if args.key?(:example)
18143
+ @format = args[:format] if args.key?(:format)
18144
+ @items = args[:items] if args.key?(:items)
18145
+ @nullable = args[:nullable] if args.key?(:nullable)
18146
+ @properties = args[:properties] if args.key?(:properties)
18147
+ @required = args[:required] if args.key?(:required)
18148
+ @type = args[:type] if args.key?(:type)
18149
+ end
18150
+ end
18151
+
17158
18152
  # An entry of mapping between color and AnnotationSpec. The mapping is used in
17159
18153
  # segmentation mask.
17160
18154
  class GoogleCloudAiplatformV1beta1SchemaAnnotationSpecColor
@@ -25332,6 +26326,30 @@ module Google
25332
26326
  end
25333
26327
  end
25334
26328
 
26329
+ # Tool details that the model may use to generate response.
26330
+ class GoogleCloudAiplatformV1beta1Tool
26331
+ include Google::Apis::Core::Hashable
26332
+
26333
+ # Optional. One or more function declarations to be passed to the model along
26334
+ # with the current user query. Model may decide to call a subset of these
26335
+ # functions by populating FunctionCall in the response. User should provide a
26336
+ # FunctionResponse for each function call in the next turn. Based on the
26337
+ # function responses, Model will generate the final response back to the user.
26338
+ # Maximum 64 function declarations can be provided.
26339
+ # Corresponds to the JSON property `functionDeclarations`
26340
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
26341
+ attr_accessor :function_declarations
26342
+
26343
+ def initialize(**args)
26344
+ update!(**args)
26345
+ end
26346
+
26347
+ # Update properties of this object
26348
+ def update!(**args)
26349
+ @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
26350
+ end
26351
+ end
26352
+
25335
26353
  # CMLE training config. For every active learning labeling iteration, system
25336
26354
  # will train a machine learning model on CMLE. The trained model will be used by
25337
26355
  # data sampling algorithm to select DataItems.
@@ -26113,6 +27131,45 @@ module Google
26113
27131
  end
26114
27132
  end
26115
27133
 
27134
+ # Metadata information for NotebookService.UpgradeNotebookRuntime.
27135
+ class GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeOperationMetadata
27136
+ include Google::Apis::Core::Hashable
27137
+
27138
+ # Generic Metadata shared by all operations.
27139
+ # Corresponds to the JSON property `genericMetadata`
27140
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
27141
+ attr_accessor :generic_metadata
27142
+
27143
+ # A human-readable message that shows the intermediate progress details of
27144
+ # NotebookRuntime.
27145
+ # Corresponds to the JSON property `progressMessage`
27146
+ # @return [String]
27147
+ attr_accessor :progress_message
27148
+
27149
+ def initialize(**args)
27150
+ update!(**args)
27151
+ end
27152
+
27153
+ # Update properties of this object
27154
+ def update!(**args)
27155
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
27156
+ @progress_message = args[:progress_message] if args.key?(:progress_message)
27157
+ end
27158
+ end
27159
+
27160
+ # Request message for NotebookService.UpgradeNotebookRuntime.
27161
+ class GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest
27162
+ include Google::Apis::Core::Hashable
27163
+
27164
+ def initialize(**args)
27165
+ update!(**args)
27166
+ end
27167
+
27168
+ # Update properties of this object
27169
+ def update!(**args)
27170
+ end
27171
+ end
27172
+
26116
27173
  # Details of ModelService.UploadModel operation.
26117
27174
  class GoogleCloudAiplatformV1beta1UploadModelOperationMetadata
26118
27175
  include Google::Apis::Core::Hashable
@@ -26157,10 +27214,11 @@ module Google
26157
27214
 
26158
27215
  # Optional. The user-provided custom service account to use to do the model
26159
27216
  # upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/
26160
- # docs/general/access-control#service-agents) will be used. Users uploading the
26161
- # Model must have the `iam.serviceAccounts.actAs` permission on this service
26162
- # account. Also, this account must belong to the project specified in the `
26163
- # parent` field and have all necessary read permissions.
27217
+ # docs/general/access-control#service-agents) will be used to access resources
27218
+ # needed to upload the model. This account must belong to the target project
27219
+ # where the model is uploaded to, i.e., the project specified in the `parent`
27220
+ # field of this request and have necessary read permissions (to Google Cloud
27221
+ # Storage, Artifact Registry, etc.).
26164
27222
  # Corresponds to the JSON property `serviceAccount`
26165
27223
  # @return [String]
26166
27224
  attr_accessor :service_account
@@ -26304,6 +27362,31 @@ module Google
26304
27362
  end
26305
27363
  end
26306
27364
 
27365
+ # Metadata describes the input video content.
27366
+ class GoogleCloudAiplatformV1beta1VideoMetadata
27367
+ include Google::Apis::Core::Hashable
27368
+
27369
+ # Optional. The end offset of the video.
27370
+ # Corresponds to the JSON property `endOffset`
27371
+ # @return [String]
27372
+ attr_accessor :end_offset
27373
+
27374
+ # Optional. The start offset of the video.
27375
+ # Corresponds to the JSON property `startOffset`
27376
+ # @return [String]
27377
+ attr_accessor :start_offset
27378
+
27379
+ def initialize(**args)
27380
+ update!(**args)
27381
+ end
27382
+
27383
+ # Update properties of this object
27384
+ def update!(**args)
27385
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
27386
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
27387
+ end
27388
+ end
27389
+
26307
27390
  # Represents the spec of a worker pool in a job.
26308
27391
  class GoogleCloudAiplatformV1beta1WorkerPoolSpec
26309
27392
  include Google::Apis::Core::Hashable
@@ -27131,6 +28214,47 @@ module Google
27131
28214
  end
27132
28215
  end
27133
28216
 
28217
+ # Represents a whole or partial calendar date, such as a birthday. The time of
28218
+ # day and time zone are either specified elsewhere or are insignificant. The
28219
+ # date is relative to the Gregorian Calendar. This can represent one of the
28220
+ # following: * A full date, with non-zero year, month, and day values. * A month
28221
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
28222
+ # with a zero month and a zero day. * A year and month, with a zero day (for
28223
+ # example, a credit card expiration date). Related types: * google.type.
28224
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
28225
+ class GoogleTypeDate
28226
+ include Google::Apis::Core::Hashable
28227
+
28228
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
28229
+ # specify a year by itself or a year and month where the day isn't significant.
28230
+ # Corresponds to the JSON property `day`
28231
+ # @return [Fixnum]
28232
+ attr_accessor :day
28233
+
28234
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
28235
+ # and day.
28236
+ # Corresponds to the JSON property `month`
28237
+ # @return [Fixnum]
28238
+ attr_accessor :month
28239
+
28240
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
28241
+ # year.
28242
+ # Corresponds to the JSON property `year`
28243
+ # @return [Fixnum]
28244
+ attr_accessor :year
28245
+
28246
+ def initialize(**args)
28247
+ update!(**args)
28248
+ end
28249
+
28250
+ # Update properties of this object
28251
+ def update!(**args)
28252
+ @day = args[:day] if args.key?(:day)
28253
+ @month = args[:month] if args.key?(:month)
28254
+ @year = args[:year] if args.key?(:year)
28255
+ end
28256
+ end
28257
+
27134
28258
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
27135
28259
  # CEL is a C-like expression language. The syntax and semantics of CEL are
27136
28260
  # documented at https://github.com/google/cel-spec. Example (Comparison): title: