google-apis-aiplatform_v1beta1 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +1038 -55
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +457 -0
- data/lib/google/apis/aiplatform_v1beta1/service.rb +401 -7
- metadata +3 -3
@@ -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
|
-
#
|
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,7 +7081,7 @@ module Google
|
|
6762
7081
|
# @return [Hash<String,String>]
|
6763
7082
|
attr_accessor :labels
|
6764
7083
|
|
6765
|
-
#
|
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]
|
@@ -7218,16 +7537,14 @@ module Google
|
|
7218
7537
|
# @return [Hash<String,String>]
|
7219
7538
|
attr_accessor :labels
|
7220
7539
|
|
7221
|
-
#
|
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
|
-
#
|
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
|
@@ -7373,8 +7690,8 @@ module Google
|
|
7373
7690
|
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
7374
7691
|
attr_accessor :final_status
|
7375
7692
|
|
7376
|
-
#
|
7377
|
-
#
|
7693
|
+
# Identifier. Name of the FeatureViewSync. Format: `projects/`project`/locations/
|
7694
|
+
# `location`/featureOnlineStores/`feature_online_store`/featureViews/`
|
7378
7695
|
# feature_view`/featureViewSyncs/`feature_view_sync``
|
7379
7696
|
# Corresponds to the JSON property `name`
|
7380
7697
|
# @return [String]
|
@@ -7401,7 +7718,7 @@ module Google
|
|
7401
7718
|
end
|
7402
7719
|
end
|
7403
7720
|
|
7404
|
-
#
|
7721
|
+
# Configuration for Sync. Only one option is set.
|
7405
7722
|
class GoogleCloudAiplatformV1beta1FeatureViewSyncConfig
|
7406
7723
|
include Google::Apis::Core::Hashable
|
7407
7724
|
|
@@ -7934,6 +8251,31 @@ module Google
|
|
7934
8251
|
end
|
7935
8252
|
end
|
7936
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
|
+
|
7937
8279
|
# Assigns input data to training, validation, and test sets based on the given
|
7938
8280
|
# filters, data pieces not matched by any filter are ignored. Currently only
|
7939
8281
|
# supported for Datasets containing DataItems. If any of the filters in this
|
@@ -8182,6 +8524,100 @@ module Google
|
|
8182
8524
|
end
|
8183
8525
|
end
|
8184
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
|
+
|
8185
8621
|
# The Google Cloud Storage location where the output is to be written to.
|
8186
8622
|
class GoogleCloudAiplatformV1beta1GcsDestination
|
8187
8623
|
include Google::Apis::Core::Hashable
|
@@ -8199,20 +8635,185 @@ module Google
|
|
8199
8635
|
|
8200
8636
|
# Update properties of this object
|
8201
8637
|
def update!(**args)
|
8202
|
-
@output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
|
8638
|
+
@output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
|
8639
|
+
end
|
8640
|
+
end
|
8641
|
+
|
8642
|
+
# The Google Cloud Storage location for the input content.
|
8643
|
+
class GoogleCloudAiplatformV1beta1GcsSource
|
8644
|
+
include Google::Apis::Core::Hashable
|
8645
|
+
|
8646
|
+
# Required. Google Cloud Storage URI(-s) to the input file(s). May contain
|
8647
|
+
# wildcards. For more information on wildcards, see https://cloud.google.com/
|
8648
|
+
# storage/docs/gsutil/addlhelp/WildcardNames.
|
8649
|
+
# Corresponds to the JSON property `uris`
|
8650
|
+
# @return [Array<String>]
|
8651
|
+
attr_accessor :uris
|
8652
|
+
|
8653
|
+
def initialize(**args)
|
8654
|
+
update!(**args)
|
8655
|
+
end
|
8656
|
+
|
8657
|
+
# Update properties of this object
|
8658
|
+
def update!(**args)
|
8659
|
+
@uris = args[:uris] if args.key?(:uris)
|
8660
|
+
end
|
8661
|
+
end
|
8662
|
+
|
8663
|
+
# Request message for NotebookInternalService.GenerateAccessToken.
|
8664
|
+
class GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest
|
8665
|
+
include Google::Apis::Core::Hashable
|
8666
|
+
|
8667
|
+
# Required. The VM identity token (a JWT) for authenticating the VM. https://
|
8668
|
+
# cloud.google.com/compute/docs/instances/verifying-instance-identity
|
8669
|
+
# Corresponds to the JSON property `vmToken`
|
8670
|
+
# @return [String]
|
8671
|
+
attr_accessor :vm_token
|
8672
|
+
|
8673
|
+
def initialize(**args)
|
8674
|
+
update!(**args)
|
8675
|
+
end
|
8676
|
+
|
8677
|
+
# Update properties of this object
|
8678
|
+
def update!(**args)
|
8679
|
+
@vm_token = args[:vm_token] if args.key?(:vm_token)
|
8680
|
+
end
|
8681
|
+
end
|
8682
|
+
|
8683
|
+
# Response message for NotebookInternalService.GenerateToken.
|
8684
|
+
class GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse
|
8685
|
+
include Google::Apis::Core::Hashable
|
8686
|
+
|
8687
|
+
# Short-lived access token string which may be used to access Google APIs.
|
8688
|
+
# Corresponds to the JSON property `accessToken`
|
8689
|
+
# @return [String]
|
8690
|
+
attr_accessor :access_token
|
8691
|
+
|
8692
|
+
# The time in seconds when the access token expires. Typically that's 3600.
|
8693
|
+
# Corresponds to the JSON property `expiresIn`
|
8694
|
+
# @return [Fixnum]
|
8695
|
+
attr_accessor :expires_in
|
8696
|
+
|
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)
|
8203
8796
|
end
|
8204
8797
|
end
|
8205
8798
|
|
8206
|
-
#
|
8207
|
-
class
|
8799
|
+
# Content filter results for a prompt sent in the request.
|
8800
|
+
class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
|
8208
8801
|
include Google::Apis::Core::Hashable
|
8209
8802
|
|
8210
|
-
#
|
8211
|
-
#
|
8212
|
-
#
|
8213
|
-
|
8214
|
-
|
8215
|
-
|
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
|
8216
8817
|
|
8217
8818
|
def initialize(**args)
|
8218
8819
|
update!(**args)
|
@@ -8220,19 +8821,30 @@ module Google
|
|
8220
8821
|
|
8221
8822
|
# Update properties of this object
|
8222
8823
|
def update!(**args)
|
8223
|
-
@
|
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)
|
8224
8827
|
end
|
8225
8828
|
end
|
8226
8829
|
|
8227
|
-
#
|
8228
|
-
class
|
8830
|
+
# Usage metadata about response(s).
|
8831
|
+
class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
|
8229
8832
|
include Google::Apis::Core::Hashable
|
8230
8833
|
|
8231
|
-
#
|
8232
|
-
#
|
8233
|
-
#
|
8234
|
-
|
8235
|
-
|
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
|
8236
8848
|
|
8237
8849
|
def initialize(**args)
|
8238
8850
|
update!(**args)
|
@@ -8240,36 +8852,71 @@ module Google
|
|
8240
8852
|
|
8241
8853
|
# Update properties of this object
|
8242
8854
|
def update!(**args)
|
8243
|
-
@
|
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)
|
8244
8858
|
end
|
8245
8859
|
end
|
8246
8860
|
|
8247
|
-
#
|
8248
|
-
class
|
8861
|
+
# Generation config.
|
8862
|
+
class GoogleCloudAiplatformV1beta1GenerationConfig
|
8249
8863
|
include Google::Apis::Core::Hashable
|
8250
8864
|
|
8251
|
-
#
|
8252
|
-
# Corresponds to the JSON property `
|
8253
|
-
# @return [
|
8254
|
-
attr_accessor :
|
8865
|
+
# Optional. Number of candidates to generate.
|
8866
|
+
# Corresponds to the JSON property `candidateCount`
|
8867
|
+
# @return [Fixnum]
|
8868
|
+
attr_accessor :candidate_count
|
8255
8869
|
|
8256
|
-
#
|
8257
|
-
# Corresponds to the JSON property `
|
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`
|
8258
8888
|
# @return [Fixnum]
|
8259
|
-
attr_accessor :
|
8889
|
+
attr_accessor :logprobs
|
8260
8890
|
|
8261
|
-
#
|
8262
|
-
#
|
8263
|
-
#
|
8264
|
-
|
8265
|
-
attr_accessor :scope
|
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
|
8266
8895
|
|
8267
|
-
#
|
8268
|
-
#
|
8269
|
-
#
|
8270
|
-
|
8271
|
-
|
8272
|
-
|
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
|
8915
|
+
|
8916
|
+
# Optional. If specified, nucleus sampling will be used.
|
8917
|
+
# Corresponds to the JSON property `topP`
|
8918
|
+
# @return [Float]
|
8919
|
+
attr_accessor :top_p
|
8273
8920
|
|
8274
8921
|
def initialize(**args)
|
8275
8922
|
update!(**args)
|
@@ -8277,10 +8924,17 @@ module Google
|
|
8277
8924
|
|
8278
8925
|
# Update properties of this object
|
8279
8926
|
def update!(**args)
|
8280
|
-
@
|
8281
|
-
@
|
8282
|
-
@
|
8283
|
-
@
|
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)
|
8284
8938
|
end
|
8285
8939
|
end
|
8286
8940
|
|
@@ -11780,8 +12434,7 @@ module Google
|
|
11780
12434
|
# @return [Array<String>]
|
11781
12435
|
attr_accessor :command
|
11782
12436
|
|
11783
|
-
# Immutable. Deployment timeout.
|
11784
|
-
# exposing.
|
12437
|
+
# Immutable. Deployment timeout. Limit for deployment timeout is 2 hours.
|
11785
12438
|
# Corresponds to the JSON property `deploymentTimeout`
|
11786
12439
|
# @return [String]
|
11787
12440
|
attr_accessor :deployment_timeout
|
@@ -11801,6 +12454,16 @@ module Google
|
|
11801
12454
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnvVar>]
|
11802
12455
|
attr_accessor :env
|
11803
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
|
+
|
11804
12467
|
# Probe describes a health check to be performed against a container to
|
11805
12468
|
# determine whether it is alive or ready to receive traffic.
|
11806
12469
|
# Corresponds to the JSON property `healthProbe`
|
@@ -11883,7 +12546,7 @@ module Google
|
|
11883
12546
|
attr_accessor :predict_route
|
11884
12547
|
|
11885
12548
|
# Immutable. The amount of the VM memory to reserve as the shared memory for the
|
11886
|
-
# model in megabytes.
|
12549
|
+
# model in megabytes.
|
11887
12550
|
# Corresponds to the JSON property `sharedMemorySizeMb`
|
11888
12551
|
# @return [Fixnum]
|
11889
12552
|
attr_accessor :shared_memory_size_mb
|
@@ -11904,6 +12567,7 @@ module Google
|
|
11904
12567
|
@command = args[:command] if args.key?(:command)
|
11905
12568
|
@deployment_timeout = args[:deployment_timeout] if args.key?(:deployment_timeout)
|
11906
12569
|
@env = args[:env] if args.key?(:env)
|
12570
|
+
@grpc_ports = args[:grpc_ports] if args.key?(:grpc_ports)
|
11907
12571
|
@health_probe = args[:health_probe] if args.key?(:health_probe)
|
11908
12572
|
@health_route = args[:health_route] if args.key?(:health_route)
|
11909
12573
|
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
@@ -14316,6 +14980,60 @@ module Google
|
|
14316
14980
|
end
|
14317
14981
|
end
|
14318
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
|
+
|
14319
15037
|
# Request message for JobService.PauseModelDeploymentMonitoringJob.
|
14320
15038
|
class GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest
|
14321
15039
|
include Google::Apis::Core::Hashable
|
@@ -16891,6 +17609,64 @@ module Google
|
|
16891
17609
|
end
|
16892
17610
|
end
|
16893
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
|
+
|
16894
17670
|
# Active learning data sampling config. For every active learning labeling
|
16895
17671
|
# iteration, it will select a batch of data based on the sampling strategy.
|
16896
17672
|
class GoogleCloudAiplatformV1beta1SampleConfig
|
@@ -17295,6 +18071,84 @@ module Google
|
|
17295
18071
|
end
|
17296
18072
|
end
|
17297
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
|
+
|
17298
18152
|
# An entry of mapping between color and AnnotationSpec. The mapping is used in
|
17299
18153
|
# segmentation mask.
|
17300
18154
|
class GoogleCloudAiplatformV1beta1SchemaAnnotationSpecColor
|
@@ -25472,6 +26326,30 @@ module Google
|
|
25472
26326
|
end
|
25473
26327
|
end
|
25474
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
|
+
|
25475
26353
|
# CMLE training config. For every active learning labeling iteration, system
|
25476
26354
|
# will train a machine learning model on CMLE. The trained model will be used by
|
25477
26355
|
# data sampling algorithm to select DataItems.
|
@@ -26253,6 +27131,45 @@ module Google
|
|
26253
27131
|
end
|
26254
27132
|
end
|
26255
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
|
+
|
26256
27173
|
# Details of ModelService.UploadModel operation.
|
26257
27174
|
class GoogleCloudAiplatformV1beta1UploadModelOperationMetadata
|
26258
27175
|
include Google::Apis::Core::Hashable
|
@@ -26445,6 +27362,31 @@ module Google
|
|
26445
27362
|
end
|
26446
27363
|
end
|
26447
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
|
+
|
26448
27390
|
# Represents the spec of a worker pool in a job.
|
26449
27391
|
class GoogleCloudAiplatformV1beta1WorkerPoolSpec
|
26450
27392
|
include Google::Apis::Core::Hashable
|
@@ -27272,6 +28214,47 @@ module Google
|
|
27272
28214
|
end
|
27273
28215
|
end
|
27274
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
|
+
|
27275
28258
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
27276
28259
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
27277
28260
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|