Skip to content

Commit 473cdfa

Browse files
feat: Automated regeneration of aiplatform v1 client (googleapis#21129)
Auto-created at 2024-12-22 10:26:21 +0000 using the toys pull request generator.
1 parent cdd7463 commit 473cdfa

File tree

6 files changed

+344
-14
lines changed

6 files changed

+344
-14
lines changed

api_names_out.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8108,6 +8108,7 @@
81088108
"/aiplatform:v1/GoogleCloudAiplatformV1GenerationConfig/frequencyPenalty": frequency_penalty
81098109
"/aiplatform:v1/GoogleCloudAiplatformV1GenerationConfig/logprobs": logprobs
81108110
"/aiplatform:v1/GoogleCloudAiplatformV1GenerationConfig/maxOutputTokens": max_output_tokens
8111+
"/aiplatform:v1/GoogleCloudAiplatformV1GenerationConfig/mediaResolution": media_resolution
81118112
"/aiplatform:v1/GoogleCloudAiplatformV1GenerationConfig/presencePenalty": presence_penalty
81128113
"/aiplatform:v1/GoogleCloudAiplatformV1GenerationConfig/responseLogprobs": response_logprobs
81138114
"/aiplatform:v1/GoogleCloudAiplatformV1GenerationConfig/responseMimeType": response_mime_type
@@ -8770,6 +8771,7 @@
87708771
"/aiplatform:v1/GoogleCloudAiplatformV1ModelContainerSpec/healthProbe": health_probe
87718772
"/aiplatform:v1/GoogleCloudAiplatformV1ModelContainerSpec/healthRoute": health_route
87728773
"/aiplatform:v1/GoogleCloudAiplatformV1ModelContainerSpec/imageUri": image_uri
8774+
"/aiplatform:v1/GoogleCloudAiplatformV1ModelContainerSpec/livenessProbe": liveness_probe
87738775
"/aiplatform:v1/GoogleCloudAiplatformV1ModelContainerSpec/ports": ports
87748776
"/aiplatform:v1/GoogleCloudAiplatformV1ModelContainerSpec/ports/port": port
87758777
"/aiplatform:v1/GoogleCloudAiplatformV1ModelContainerSpec/predictRoute": predict_route
@@ -9385,11 +9387,30 @@
93859387
"/aiplatform:v1/GoogleCloudAiplatformV1PrivateServiceConnectConfig/serviceAttachment": service_attachment
93869388
"/aiplatform:v1/GoogleCloudAiplatformV1Probe": google_cloud_aiplatform_v1_probe
93879389
"/aiplatform:v1/GoogleCloudAiplatformV1Probe/exec": exec
9390+
"/aiplatform:v1/GoogleCloudAiplatformV1Probe/grpc": grpc
9391+
"/aiplatform:v1/GoogleCloudAiplatformV1Probe/httpGet": http_get
93889392
"/aiplatform:v1/GoogleCloudAiplatformV1Probe/periodSeconds": period_seconds
9393+
"/aiplatform:v1/GoogleCloudAiplatformV1Probe/tcpSocket": tcp_socket
93899394
"/aiplatform:v1/GoogleCloudAiplatformV1Probe/timeoutSeconds": timeout_seconds
93909395
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeExecAction": google_cloud_aiplatform_v1_probe_exec_action
93919396
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeExecAction/command": command
93929397
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeExecAction/command/command": command
9398+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeGrpcAction": google_cloud_aiplatform_v1_probe_grpc_action
9399+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeGrpcAction/port": port
9400+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeGrpcAction/service": service
9401+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpGetAction": google_cloud_aiplatform_v1_probe_http_get_action
9402+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpGetAction/host": host
9403+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpGetAction/httpHeaders": http_headers
9404+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpGetAction/httpHeaders/http_header": http_header
9405+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpGetAction/path": path
9406+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpGetAction/port": port
9407+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpGetAction/scheme": scheme
9408+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpHeader": google_cloud_aiplatform_v1_probe_http_header
9409+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpHeader/name": name
9410+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeHttpHeader/value": value
9411+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeTcpSocketAction": google_cloud_aiplatform_v1_probe_tcp_socket_action
9412+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeTcpSocketAction/host": host
9413+
"/aiplatform:v1/GoogleCloudAiplatformV1ProbeTcpSocketAction/port": port
93939414
"/aiplatform:v1/GoogleCloudAiplatformV1PscAutomatedEndpoints": google_cloud_aiplatform_v1_psc_automated_endpoints
93949415
"/aiplatform:v1/GoogleCloudAiplatformV1PscAutomatedEndpoints/matchAddress": match_address
93959416
"/aiplatform:v1/GoogleCloudAiplatformV1PscAutomatedEndpoints/network": network
@@ -10916,6 +10937,10 @@
1091610937
"/aiplatform:v1/GoogleCloudAiplatformV1StratifiedSplit/testFraction": test_fraction
1091710938
"/aiplatform:v1/GoogleCloudAiplatformV1StratifiedSplit/trainingFraction": training_fraction
1091810939
"/aiplatform:v1/GoogleCloudAiplatformV1StratifiedSplit/validationFraction": validation_fraction
10940+
"/aiplatform:v1/GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest": google_cloud_aiplatform_v1_stream_query_reasoning_engine_request
10941+
"/aiplatform:v1/GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest/classMethod": class_method
10942+
"/aiplatform:v1/GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest/input": input
10943+
"/aiplatform:v1/GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest/input/input": input
1091910944
"/aiplatform:v1/GoogleCloudAiplatformV1StreamRawPredictRequest": google_cloud_aiplatform_v1_stream_raw_predict_request
1092010945
"/aiplatform:v1/GoogleCloudAiplatformV1StreamRawPredictRequest/httpBody": http_body
1092110946
"/aiplatform:v1/GoogleCloudAiplatformV1StreamingPredictRequest": google_cloud_aiplatform_v1_streaming_predict_request
@@ -13050,6 +13075,8 @@
1305013075
"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.patch/updateMask": update_mask
1305113076
"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.query": query_project_location_reasoning_engine
1305213077
"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.query/name": name
13078+
"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.streamQuery": stream_project_location_reasoning_engine_query
13079+
"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.streamQuery/name": name
1305313080
"/aiplatform:v1/aiplatform.projects.locations.retrieveContexts": retrieve_project_location_contexts
1305413081
"/aiplatform:v1/aiplatform.projects.locations.retrieveContexts/parent": parent
1305513082
"/aiplatform:v1/aiplatform.projects.locations.schedules.create": create_project_location_schedule

generated/google-apis-aiplatform_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-aiplatform_v1
22

3+
### v0.43.0 (2024-12-22)
4+
5+
* Regenerated from discovery document revision 20241214
6+
37
### v0.42.0 (2024-12-08)
48

59
* Regenerated from discovery document revision 20241203

generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/classes.rb

Lines changed: 190 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,7 @@ def update!(**args)
24372437
end
24382438
end
24392439

2440-
# Content blob. It's preferred to send as text directly rather than raw bytes.
2440+
# Content blob.
24412441
class GoogleCloudAiplatformV1Blob
24422442
include Google::Apis::Core::Hashable
24432443

@@ -5077,7 +5077,8 @@ class GoogleCloudAiplatformV1Dataset
50775077
# @return [String]
50785078
attr_accessor :model_reference
50795079

5080-
# Output only. Identifier. The resource name of the Dataset.
5080+
# Output only. Identifier. The resource name of the Dataset. Format: `projects/`
5081+
# project`/locations/`location`/datasets/`dataset``
50815082
# Corresponds to the JSON property `name`
50825083
# @return [String]
50835084
attr_accessor :name
@@ -11572,6 +11573,11 @@ class GoogleCloudAiplatformV1GenerationConfig
1157211573
# @return [Fixnum]
1157311574
attr_accessor :max_output_tokens
1157411575

11576+
# Optional. If specified, the media resolution specified will be used.
11577+
# Corresponds to the JSON property `mediaResolution`
11578+
# @return [String]
11579+
attr_accessor :media_resolution
11580+
1157511581
# Optional. Positive penalties.
1157611582
# Corresponds to the JSON property `presencePenalty`
1157711583
# @return [Float]
@@ -11629,11 +11635,6 @@ class GoogleCloudAiplatformV1GenerationConfig
1162911635
# @return [Float]
1163011636
attr_accessor :temperature
1163111637

11632-
# Optional. If specified, the token resolution specified will be used.
11633-
# Corresponds to the JSON property `tokenResolution`
11634-
# @return [String]
11635-
attr_accessor :token_resolution
11636-
1163711638
# Optional. If specified, top-k sampling will be used.
1163811639
# Corresponds to the JSON property `topK`
1163911640
# @return [Float]
@@ -11655,6 +11656,7 @@ def update!(**args)
1165511656
@frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
1165611657
@logprobs = args[:logprobs] if args.key?(:logprobs)
1165711658
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
11659+
@media_resolution = args[:media_resolution] if args.key?(:media_resolution)
1165811660
@presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
1165911661
@response_logprobs = args[:response_logprobs] if args.key?(:response_logprobs)
1166011662
@response_mime_type = args[:response_mime_type] if args.key?(:response_mime_type)
@@ -11665,7 +11667,6 @@ def update!(**args)
1166511667
@speech_config = args[:speech_config] if args.key?(:speech_config)
1166611668
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
1166711669
@temperature = args[:temperature] if args.key?(:temperature)
11668-
@token_resolution = args[:token_resolution] if args.key?(:token_resolution)
1166911670
@top_k = args[:top_k] if args.key?(:top_k)
1167011671
@top_p = args[:top_p] if args.key?(:top_p)
1167111672
end
@@ -16286,6 +16287,12 @@ class GoogleCloudAiplatformV1ModelContainerSpec
1628616287
# @return [String]
1628716288
attr_accessor :image_uri
1628816289

16290+
# Probe describes a health check to be performed against a container to
16291+
# determine whether it is alive or ready to receive traffic.
16292+
# Corresponds to the JSON property `livenessProbe`
16293+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Probe]
16294+
attr_accessor :liveness_probe
16295+
1628916296
# Immutable. List of ports to expose from the container. Vertex AI sends any
1629016297
# prediction requests that it receives to the first port on this list. Vertex AI
1629116298
# also sends [liveness and health checks](https://cloud.google.com/vertex-ai/
@@ -16348,6 +16355,7 @@ def update!(**args)
1634816355
@health_probe = args[:health_probe] if args.key?(:health_probe)
1634916356
@health_route = args[:health_route] if args.key?(:health_route)
1635016357
@image_uri = args[:image_uri] if args.key?(:image_uri)
16358+
@liveness_probe = args[:liveness_probe] if args.key?(:liveness_probe)
1635116359
@ports = args[:ports] if args.key?(:ports)
1635216360
@predict_route = args[:predict_route] if args.key?(:predict_route)
1635316361
@shared_memory_size_mb = args[:shared_memory_size_mb] if args.key?(:shared_memory_size_mb)
@@ -19660,7 +19668,7 @@ class GoogleCloudAiplatformV1Part
1966019668
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponse]
1966119669
attr_accessor :function_response
1966219670

19663-
# Content blob. It's preferred to send as text directly rather than raw bytes.
19671+
# Content blob.
1966419672
# Corresponds to the JSON property `inlineData`
1966519673
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob]
1966619674
attr_accessor :inline_data
@@ -20915,13 +20923,29 @@ class GoogleCloudAiplatformV1Probe
2091520923
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeExecAction]
2091620924
attr_accessor :exec
2091720925

20926+
# GrpcAction checks the health of a container using a gRPC service.
20927+
# Corresponds to the JSON property `grpc`
20928+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeGrpcAction]
20929+
attr_accessor :grpc
20930+
20931+
# HttpGetAction describes an action based on HTTP Get requests.
20932+
# Corresponds to the JSON property `httpGet`
20933+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeHttpGetAction]
20934+
attr_accessor :http_get
20935+
2091820936
# How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
2091920937
# value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe
2092020938
# argument 'periodSeconds'.
2092120939
# Corresponds to the JSON property `periodSeconds`
2092220940
# @return [Fixnum]
2092320941
attr_accessor :period_seconds
2092420942

20943+
# TcpSocketAction probes the health of a container by opening a TCP socket
20944+
# connection.
20945+
# Corresponds to the JSON property `tcpSocket`
20946+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeTcpSocketAction]
20947+
attr_accessor :tcp_socket
20948+
2092520949
# Number of seconds after which the probe times out. Defaults to 1 second.
2092620950
# Minimum value is 1. Must be greater or equal to period_seconds. Maps to
2092720951
# Kubernetes probe argument 'timeoutSeconds'.
@@ -20936,7 +20960,10 @@ def initialize(**args)
2093620960
# Update properties of this object
2093720961
def update!(**args)
2093820962
@exec = args[:exec] if args.key?(:exec)
20963+
@grpc = args[:grpc] if args.key?(:grpc)
20964+
@http_get = args[:http_get] if args.key?(:http_get)
2093920965
@period_seconds = args[:period_seconds] if args.key?(:period_seconds)
20966+
@tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
2094020967
@timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
2094120968
end
2094220969
end
@@ -20965,6 +20992,133 @@ def update!(**args)
2096520992
end
2096620993
end
2096720994

20995+
# GrpcAction checks the health of a container using a gRPC service.
20996+
class GoogleCloudAiplatformV1ProbeGrpcAction
20997+
include Google::Apis::Core::Hashable
20998+
20999+
# Port number of the gRPC service. Number must be in the range 1 to 65535.
21000+
# Corresponds to the JSON property `port`
21001+
# @return [Fixnum]
21002+
attr_accessor :port
21003+
21004+
# Service is the name of the service to place in the gRPC HealthCheckRequest (
21005+
# see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this
21006+
# is not specified, the default behavior is defined by gRPC.
21007+
# Corresponds to the JSON property `service`
21008+
# @return [String]
21009+
attr_accessor :service
21010+
21011+
def initialize(**args)
21012+
update!(**args)
21013+
end
21014+
21015+
# Update properties of this object
21016+
def update!(**args)
21017+
@port = args[:port] if args.key?(:port)
21018+
@service = args[:service] if args.key?(:service)
21019+
end
21020+
end
21021+
21022+
# HttpGetAction describes an action based on HTTP Get requests.
21023+
class GoogleCloudAiplatformV1ProbeHttpGetAction
21024+
include Google::Apis::Core::Hashable
21025+
21026+
# Host name to connect to, defaults to the model serving container's IP. You
21027+
# probably want to set "Host" in httpHeaders instead.
21028+
# Corresponds to the JSON property `host`
21029+
# @return [String]
21030+
attr_accessor :host
21031+
21032+
# Custom headers to set in the request. HTTP allows repeated headers.
21033+
# Corresponds to the JSON property `httpHeaders`
21034+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ProbeHttpHeader>]
21035+
attr_accessor :http_headers
21036+
21037+
# Path to access on the HTTP server.
21038+
# Corresponds to the JSON property `path`
21039+
# @return [String]
21040+
attr_accessor :path
21041+
21042+
# Number of the port to access on the container. Number must be in the range 1
21043+
# to 65535.
21044+
# Corresponds to the JSON property `port`
21045+
# @return [Fixnum]
21046+
attr_accessor :port
21047+
21048+
# Scheme to use for connecting to the host. Defaults to HTTP. Acceptable values
21049+
# are "HTTP" or "HTTPS".
21050+
# Corresponds to the JSON property `scheme`
21051+
# @return [String]
21052+
attr_accessor :scheme
21053+
21054+
def initialize(**args)
21055+
update!(**args)
21056+
end
21057+
21058+
# Update properties of this object
21059+
def update!(**args)
21060+
@host = args[:host] if args.key?(:host)
21061+
@http_headers = args[:http_headers] if args.key?(:http_headers)
21062+
@path = args[:path] if args.key?(:path)
21063+
@port = args[:port] if args.key?(:port)
21064+
@scheme = args[:scheme] if args.key?(:scheme)
21065+
end
21066+
end
21067+
21068+
# HttpHeader describes a custom header to be used in HTTP probes
21069+
class GoogleCloudAiplatformV1ProbeHttpHeader
21070+
include Google::Apis::Core::Hashable
21071+
21072+
# The header field name. This will be canonicalized upon output, so case-variant
21073+
# names will be understood as the same header.
21074+
# Corresponds to the JSON property `name`
21075+
# @return [String]
21076+
attr_accessor :name
21077+
21078+
# The header field value
21079+
# Corresponds to the JSON property `value`
21080+
# @return [String]
21081+
attr_accessor :value
21082+
21083+
def initialize(**args)
21084+
update!(**args)
21085+
end
21086+
21087+
# Update properties of this object
21088+
def update!(**args)
21089+
@name = args[:name] if args.key?(:name)
21090+
@value = args[:value] if args.key?(:value)
21091+
end
21092+
end
21093+
21094+
# TcpSocketAction probes the health of a container by opening a TCP socket
21095+
# connection.
21096+
class GoogleCloudAiplatformV1ProbeTcpSocketAction
21097+
include Google::Apis::Core::Hashable
21098+
21099+
# Optional: Host name to connect to, defaults to the model serving container's
21100+
# IP.
21101+
# Corresponds to the JSON property `host`
21102+
# @return [String]
21103+
attr_accessor :host
21104+
21105+
# Number of the port to access on the container. Number must be in the range 1
21106+
# to 65535.
21107+
# Corresponds to the JSON property `port`
21108+
# @return [Fixnum]
21109+
attr_accessor :port
21110+
21111+
def initialize(**args)
21112+
update!(**args)
21113+
end
21114+
21115+
# Update properties of this object
21116+
def update!(**args)
21117+
@host = args[:host] if args.key?(:host)
21118+
@port = args[:port] if args.key?(:port)
21119+
end
21120+
end
21121+
2096821122
# PscAutomatedEndpoints defines the output of the forwarding rule automatically
2096921123
# created by each PscAutomationConfig.
2097021124
class GoogleCloudAiplatformV1PscAutomatedEndpoints
@@ -32292,6 +32446,33 @@ def update!(**args)
3229232446
end
3229332447
end
3229432448

32449+
# Request message for ReasoningEngineExecutionService.StreamQuery.
32450+
class GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest
32451+
include Google::Apis::Core::Hashable
32452+
32453+
# Optional. Class method to be used for the stream query. It is optional and
32454+
# defaults to "stream_query" if unspecified.
32455+
# Corresponds to the JSON property `classMethod`
32456+
# @return [String]
32457+
attr_accessor :class_method
32458+
32459+
# Optional. Input content provided by users in JSON object format. Examples
32460+
# include text query, function calling parameters, media bytes, etc.
32461+
# Corresponds to the JSON property `input`
32462+
# @return [Hash<String,Object>]
32463+
attr_accessor :input
32464+
32465+
def initialize(**args)
32466+
update!(**args)
32467+
end
32468+
32469+
# Update properties of this object
32470+
def update!(**args)
32471+
@class_method = args[:class_method] if args.key?(:class_method)
32472+
@input = args[:input] if args.key?(:input)
32473+
end
32474+
end
32475+
3229532476
# Request message for PredictionService.StreamRawPredict.
3229632477
class GoogleCloudAiplatformV1StreamRawPredictRequest
3229732478
include Google::Apis::Core::Hashable

generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AiplatformV1
1818
# Version of the google-apis-aiplatform_v1 gem
19-
GEM_VERSION = "0.42.0"
19+
GEM_VERSION = "0.43.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241203"
25+
REVISION = "20241214"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)