google-apis-aiplatform_v1 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a279d6619ed5650f5a5011d43a3ff10d460c2a29dc2db6d79aa6872fe3d6a2e
4
- data.tar.gz: 9f2aca5a1639e481f167ee5b5f8c8b80e65d09338ed74875c828176e245de829
3
+ metadata.gz: 301cfb1e189c07c9fd78989ed214c750a5c9da10a0c51107cf2e0d07374b86f1
4
+ data.tar.gz: 6cc9f1d7cc415b5974b8ba2fabc560ec86d7758528e7db4d894e33c5c185200f
5
5
  SHA512:
6
- metadata.gz: 0d94845e379f7764e9f8c4b483c824be34daf52e1c4be1eebd0ea71cc9d97d2696098674d7492ce1851c2959b41f65d5c06bfa8c060b8eb98e1c04d723a629db
7
- data.tar.gz: 207918e1481310a7a8320a0e7c5007e5ab5ae627e82c4cc09db35384fc017d4a455481bb3dcd07a17afededfc851455d70b1f8879eae61daa1dd34778b691e52
6
+ metadata.gz: 16a65dccd32d176de80e7b03fe5efadd1e2affcd6f2a2f5d97a13b1ef4bbcf539d1481297651be27b40dd0ce226255296d7a866cc6b143d819571a1e0d7a32f5
7
+ data.tar.gz: 988f82cc3c9406cfd38024a33fdf28d7a2ff6e8114ec2397d48f0e3bd72543dfaf7a78cb01d1641b270550a542d2e42d3c87f80e64e781604d6234132e8580a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-aiplatform_v1
2
2
 
3
+ ### v0.39.0 (2024-10-20)
4
+
5
+ * Regenerated from discovery document revision 20241007
6
+
3
7
  ### v0.38.0 (2024-10-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20241001
@@ -80,6 +80,11 @@ module Google
80
80
  # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores]
81
81
  attr_accessor :image_rai_scores
82
82
 
83
+ # Image size.
84
+ # Corresponds to the JSON property `imageSize`
85
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageImageSize]
86
+ attr_accessor :image_size
87
+
83
88
  # Next ID: 6
84
89
  # Corresponds to the JSON property `raiInfo`
85
90
  # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo]
@@ -110,6 +115,7 @@ module Google
110
115
  @generation_seed = args[:generation_seed] if args.key?(:generation_seed)
111
116
  @image = args[:image] if args.key?(:image)
112
117
  @image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores)
118
+ @image_size = args[:image_size] if args.key?(:image_size)
113
119
  @rai_info = args[:rai_info] if args.key?(:rai_info)
114
120
  @semantic_filter_response = args[:semantic_filter_response] if args.key?(:semantic_filter_response)
115
121
  @text = args[:text] if args.key?(:text)
@@ -117,6 +123,37 @@ module Google
117
123
  end
118
124
  end
119
125
 
126
+ # Image size.
127
+ class CloudAiLargeModelsVisionImageImageSize
128
+ include Google::Apis::Core::Hashable
129
+
130
+ #
131
+ # Corresponds to the JSON property `channels`
132
+ # @return [Fixnum]
133
+ attr_accessor :channels
134
+
135
+ #
136
+ # Corresponds to the JSON property `height`
137
+ # @return [Fixnum]
138
+ attr_accessor :height
139
+
140
+ #
141
+ # Corresponds to the JSON property `width`
142
+ # @return [Fixnum]
143
+ attr_accessor :width
144
+
145
+ def initialize(**args)
146
+ update!(**args)
147
+ end
148
+
149
+ # Update properties of this object
150
+ def update!(**args)
151
+ @channels = args[:channels] if args.key?(:channels)
152
+ @height = args[:height] if args.key?(:height)
153
+ @width = args[:width] if args.key?(:width)
154
+ end
155
+ end
156
+
120
157
  # RAI scores for generated image returned.
121
158
  class CloudAiLargeModelsVisionImageRaiScores
122
159
  include Google::Apis::Core::Hashable
@@ -4068,6 +4105,11 @@ module Google
4068
4105
  # @return [String]
4069
4106
  attr_accessor :protected_artifact_location_id
4070
4107
 
4108
+ # Configuration for PSC-I.
4109
+ # Corresponds to the JSON property `pscInterfaceConfig`
4110
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PscInterfaceConfig]
4111
+ attr_accessor :psc_interface_config
4112
+
4071
4113
  # Optional. A list of names for the reserved ip ranges under the VPC network
4072
4114
  # that can be used for this job. If set, we will deploy the job within the
4073
4115
  # provided ip ranges. Otherwise, the job will be deployed to any ip ranges under
@@ -4118,6 +4160,7 @@ module Google
4118
4160
  @network = args[:network] if args.key?(:network)
4119
4161
  @persistent_resource_id = args[:persistent_resource_id] if args.key?(:persistent_resource_id)
4120
4162
  @protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
4163
+ @psc_interface_config = args[:psc_interface_config] if args.key?(:psc_interface_config)
4121
4164
  @reserved_ip_ranges = args[:reserved_ip_ranges] if args.key?(:reserved_ip_ranges)
4122
4165
  @scheduling = args[:scheduling] if args.key?(:scheduling)
4123
4166
  @service_account = args[:service_account] if args.key?(:service_account)
@@ -9245,6 +9288,13 @@ module Google
9245
9288
  class GoogleCloudAiplatformV1FeatureViewSyncConfig
9246
9289
  include Google::Apis::Core::Hashable
9247
9290
 
9291
+ # Optional. If true, syncs the FeatureView in a continuous manner to Online
9292
+ # Store.
9293
+ # Corresponds to the JSON property `continuous`
9294
+ # @return [Boolean]
9295
+ attr_accessor :continuous
9296
+ alias_method :continuous?, :continuous
9297
+
9248
9298
  # Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled runs.
9249
9299
  # To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "
9250
9300
  # CRON_TZ=$`IANA_TIME_ZONE`" or "TZ=$`IANA_TIME_ZONE`". The $`IANA_TIME_ZONE`
@@ -9260,6 +9310,7 @@ module Google
9260
9310
 
9261
9311
  # Update properties of this object
9262
9312
  def update!(**args)
9313
+ @continuous = args[:continuous] if args.key?(:continuous)
9263
9314
  @cron = args[:cron] if args.key?(:cron)
9264
9315
  end
9265
9316
  end
@@ -10587,6 +10638,13 @@ module Google
10587
10638
  class GoogleCloudAiplatformV1GenerationConfig
10588
10639
  include Google::Apis::Core::Hashable
10589
10640
 
10641
+ # Optional. If enabled, audio timestamp will be included in the request to the
10642
+ # model.
10643
+ # Corresponds to the JSON property `audioTimestamp`
10644
+ # @return [Boolean]
10645
+ attr_accessor :audio_timestamp
10646
+ alias_method :audio_timestamp?, :audio_timestamp
10647
+
10590
10648
  # Optional. Number of candidates to generate.
10591
10649
  # Corresponds to the JSON property `candidateCount`
10592
10650
  # @return [Fixnum]
@@ -10670,6 +10728,7 @@ module Google
10670
10728
 
10671
10729
  # Update properties of this object
10672
10730
  def update!(**args)
10731
+ @audio_timestamp = args[:audio_timestamp] if args.key?(:audio_timestamp)
10673
10732
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
10674
10733
  @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
10675
10734
  @logprobs = args[:logprobs] if args.key?(:logprobs)
@@ -19439,6 +19498,19 @@ module Google
19439
19498
  end
19440
19499
  end
19441
19500
 
19501
+ # Configuration for PSC-I.
19502
+ class GoogleCloudAiplatformV1PscInterfaceConfig
19503
+ include Google::Apis::Core::Hashable
19504
+
19505
+ def initialize(**args)
19506
+ update!(**args)
19507
+ end
19508
+
19509
+ # Update properties of this object
19510
+ def update!(**args)
19511
+ end
19512
+ end
19513
+
19442
19514
  # A Model Garden Publisher Model.
19443
19515
  class GoogleCloudAiplatformV1PublisherModel
19444
19516
  include Google::Apis::Core::Hashable
@@ -22380,9 +22452,10 @@ module Google
22380
22452
  # @return [String]
22381
22453
  attr_accessor :description
22382
22454
 
22383
- # Optional. Possible values of the element of Type.STRING with enum format. For
22384
- # example we can define an Enum Direction as : `type:STRING, format:enum, enum:["
22385
- # EAST", NORTH", "SOUTH", "WEST"]`
22455
+ # Optional. Possible values of the element of primitive type with enum format.
22456
+ # Examples: 1. We can define direction as : `type:STRING, format:enum, enum:["
22457
+ # EAST", NORTH", "SOUTH", "WEST"]` 2. We can define apartment number as : `type:
22458
+ # INTEGER, format:enum, enum:["101", "201", "301"]`
22386
22459
  # Corresponds to the JSON property `enum`
22387
22460
  # @return [Array<String>]
22388
22461
  attr_accessor :enum
@@ -25168,6 +25241,232 @@ module Google
25168
25241
  end
25169
25242
  end
25170
25243
 
25244
+ # The A2 schema of a prompt.
25245
+ class GoogleCloudAiplatformV1SchemaPromptApiSchema
25246
+ include Google::Apis::Core::Hashable
25247
+
25248
+ # The Schema version that represents changes to the API behavior.
25249
+ # Corresponds to the JSON property `apiSchemaVersion`
25250
+ # @return [String]
25251
+ attr_accessor :api_schema_version
25252
+
25253
+ # A list of execution instances for constructing a ready-to-use prompt.
25254
+ # Corresponds to the JSON property `executions`
25255
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution>]
25256
+ attr_accessor :executions
25257
+
25258
+ # Prompt variation that embeds preambles to prompt string.
25259
+ # Corresponds to the JSON property `multimodalPrompt`
25260
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt]
25261
+ attr_accessor :multimodal_prompt
25262
+
25263
+ # Prompt variation that stores preambles in separate fields.
25264
+ # Corresponds to the JSON property `structuredPrompt`
25265
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt]
25266
+ attr_accessor :structured_prompt
25267
+
25268
+ def initialize(**args)
25269
+ update!(**args)
25270
+ end
25271
+
25272
+ # Update properties of this object
25273
+ def update!(**args)
25274
+ @api_schema_version = args[:api_schema_version] if args.key?(:api_schema_version)
25275
+ @executions = args[:executions] if args.key?(:executions)
25276
+ @multimodal_prompt = args[:multimodal_prompt] if args.key?(:multimodal_prompt)
25277
+ @structured_prompt = args[:structured_prompt] if args.key?(:structured_prompt)
25278
+ end
25279
+ end
25280
+
25281
+ # A prompt instance's parameters set that contains a set of variable values.
25282
+ class GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution
25283
+ include Google::Apis::Core::Hashable
25284
+
25285
+ # Maps variable names to their value.
25286
+ # Corresponds to the JSON property `arguments`
25287
+ # @return [Hash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue>]
25288
+ attr_accessor :arguments
25289
+
25290
+ def initialize(**args)
25291
+ update!(**args)
25292
+ end
25293
+
25294
+ # Update properties of this object
25295
+ def update!(**args)
25296
+ @arguments = args[:arguments] if args.key?(:arguments)
25297
+ end
25298
+ end
25299
+
25300
+ # The value of a variable in prompt.
25301
+ class GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue
25302
+ include Google::Apis::Core::Hashable
25303
+
25304
+ # A list of elements and information that make up a portion of prompt.
25305
+ # Corresponds to the JSON property `partList`
25306
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList]
25307
+ attr_accessor :part_list
25308
+
25309
+ def initialize(**args)
25310
+ update!(**args)
25311
+ end
25312
+
25313
+ # Update properties of this object
25314
+ def update!(**args)
25315
+ @part_list = args[:part_list] if args.key?(:part_list)
25316
+ end
25317
+ end
25318
+
25319
+ # Prompt variation that embeds preambles to prompt string.
25320
+ class GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
25321
+ include Google::Apis::Core::Hashable
25322
+
25323
+ # The prompt message that aligns with the prompt message in google.cloud.
25324
+ # aiplatform.master.GenerateContentRequest.
25325
+ # Corresponds to the JSON property `promptMessage`
25326
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage]
25327
+ attr_accessor :prompt_message
25328
+
25329
+ def initialize(**args)
25330
+ update!(**args)
25331
+ end
25332
+
25333
+ # Update properties of this object
25334
+ def update!(**args)
25335
+ @prompt_message = args[:prompt_message] if args.key?(:prompt_message)
25336
+ end
25337
+ end
25338
+
25339
+ # A list of elements and information that make up a portion of prompt.
25340
+ class GoogleCloudAiplatformV1SchemaPromptSpecPartList
25341
+ include Google::Apis::Core::Hashable
25342
+
25343
+ # A list of elements that can be part of a prompt.
25344
+ # Corresponds to the JSON property `parts`
25345
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>]
25346
+ attr_accessor :parts
25347
+
25348
+ def initialize(**args)
25349
+ update!(**args)
25350
+ end
25351
+
25352
+ # Update properties of this object
25353
+ def update!(**args)
25354
+ @parts = args[:parts] if args.key?(:parts)
25355
+ end
25356
+ end
25357
+
25358
+ # The prompt message that aligns with the prompt message in google.cloud.
25359
+ # aiplatform.master.GenerateContentRequest.
25360
+ class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage
25361
+ include Google::Apis::Core::Hashable
25362
+
25363
+ # The content of the current conversation with the model. For single-turn
25364
+ # queries, this is a single instance. For multi-turn queries, this is a repeated
25365
+ # field that contains conversation history + latest request.
25366
+ # Corresponds to the JSON property `contents`
25367
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
25368
+ attr_accessor :contents
25369
+
25370
+ # Generation config.
25371
+ # Corresponds to the JSON property `generationConfig`
25372
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfig]
25373
+ attr_accessor :generation_config
25374
+
25375
+ # The model name.
25376
+ # Corresponds to the JSON property `model`
25377
+ # @return [String]
25378
+ attr_accessor :model
25379
+
25380
+ # Per request settings for blocking unsafe content. Enforced on
25381
+ # GenerateContentResponse.candidates.
25382
+ # Corresponds to the JSON property `safetySettings`
25383
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting>]
25384
+ attr_accessor :safety_settings
25385
+
25386
+ # The base structured datatype containing multi-part content of a message. A `
25387
+ # Content` includes a `role` field designating the producer of the `Content` and
25388
+ # a `parts` field containing multi-part data that contains the content of the
25389
+ # message turn.
25390
+ # Corresponds to the JSON property `systemInstruction`
25391
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
25392
+ attr_accessor :system_instruction
25393
+
25394
+ # Tool config. This config is shared for all tools provided in the request.
25395
+ # Corresponds to the JSON property `toolConfig`
25396
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig]
25397
+ attr_accessor :tool_config
25398
+
25399
+ # A list of `Tools` the model may use to generate the next response. A `Tool` is
25400
+ # a piece of code that enables the system to interact with external systems to
25401
+ # perform an action, or set of actions, outside of knowledge and scope of the
25402
+ # model.
25403
+ # Corresponds to the JSON property `tools`
25404
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
25405
+ attr_accessor :tools
25406
+
25407
+ def initialize(**args)
25408
+ update!(**args)
25409
+ end
25410
+
25411
+ # Update properties of this object
25412
+ def update!(**args)
25413
+ @contents = args[:contents] if args.key?(:contents)
25414
+ @generation_config = args[:generation_config] if args.key?(:generation_config)
25415
+ @model = args[:model] if args.key?(:model)
25416
+ @safety_settings = args[:safety_settings] if args.key?(:safety_settings)
25417
+ @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
25418
+ @tool_config = args[:tool_config] if args.key?(:tool_config)
25419
+ @tools = args[:tools] if args.key?(:tools)
25420
+ end
25421
+ end
25422
+
25423
+ # Prompt variation that stores preambles in separate fields.
25424
+ class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
25425
+ include Google::Apis::Core::Hashable
25426
+
25427
+ # The base structured datatype containing multi-part content of a message. A `
25428
+ # Content` includes a `role` field designating the producer of the `Content` and
25429
+ # a `parts` field containing multi-part data that contains the content of the
25430
+ # message turn.
25431
+ # Corresponds to the JSON property `context`
25432
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
25433
+ attr_accessor :context
25434
+
25435
+ # Preamble: A set of examples for expected model response.
25436
+ # Corresponds to the JSON property `examples`
25437
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList>]
25438
+ attr_accessor :examples
25439
+
25440
+ # Preamble: The input prefixes before each example input.
25441
+ # Corresponds to the JSON property `inputPrefixes`
25442
+ # @return [Array<String>]
25443
+ attr_accessor :input_prefixes
25444
+
25445
+ # Preamble: The output prefixes before each example output.
25446
+ # Corresponds to the JSON property `outputPrefixes`
25447
+ # @return [Array<String>]
25448
+ attr_accessor :output_prefixes
25449
+
25450
+ # The prompt message that aligns with the prompt message in google.cloud.
25451
+ # aiplatform.master.GenerateContentRequest.
25452
+ # Corresponds to the JSON property `promptMessage`
25453
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage]
25454
+ attr_accessor :prompt_message
25455
+
25456
+ def initialize(**args)
25457
+ update!(**args)
25458
+ end
25459
+
25460
+ # Update properties of this object
25461
+ def update!(**args)
25462
+ @context = args[:context] if args.key?(:context)
25463
+ @examples = args[:examples] if args.key?(:examples)
25464
+ @input_prefixes = args[:input_prefixes] if args.key?(:input_prefixes)
25465
+ @output_prefixes = args[:output_prefixes] if args.key?(:output_prefixes)
25466
+ @prompt_message = args[:prompt_message] if args.key?(:prompt_message)
25467
+ end
25468
+ end
25469
+
25171
25470
  # The metadata of Datasets that contain tables data.
25172
25471
  class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata
25173
25472
  include Google::Apis::Core::Hashable
@@ -25399,6 +25698,11 @@ module Google
25399
25698
  # @return [String]
25400
25699
  attr_accessor :note
25401
25700
 
25701
+ # The A2 schema of a prompt.
25702
+ # Corresponds to the JSON property `promptApiSchema`
25703
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptApiSchema]
25704
+ attr_accessor :prompt_api_schema
25705
+
25402
25706
  # Type of the prompt dataset.
25403
25707
  # Corresponds to the JSON property `promptType`
25404
25708
  # @return [String]
@@ -25470,6 +25774,7 @@ module Google
25470
25774
  @logprobs = args[:logprobs] if args.key?(:logprobs)
25471
25775
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
25472
25776
  @note = args[:note] if args.key?(:note)
25777
+ @prompt_api_schema = args[:prompt_api_schema] if args.key?(:prompt_api_schema)
25473
25778
  @prompt_type = args[:prompt_type] if args.key?(:prompt_type)
25474
25779
  @seed_enabled = args[:seed_enabled] if args.key?(:seed_enabled)
25475
25780
  @seed_value = args[:seed_value] if args.key?(:seed_value)
@@ -32027,7 +32332,7 @@ module Google
32027
32332
  class GoogleCloudAiplatformV1ToolParameterKvMatchSpec
32028
32333
  include Google::Apis::Core::Hashable
32029
32334
 
32030
- # Optional. Whether to use STRCIT string match on parameter values.
32335
+ # Optional. Whether to use STRICT string match on parameter values.
32031
32336
  # Corresponds to the JSON property `useStrictStringMatch`
32032
32337
  # @return [Boolean]
32033
32338
  attr_accessor :use_strict_string_match
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1
18
18
  # Version of the google-apis-aiplatform_v1 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241001"
25
+ REVISION = "20241007"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class CloudAiLargeModelsVisionImageImageSize
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class CloudAiLargeModelsVisionImageRaiScores
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -3124,6 +3130,12 @@ module Google
3124
3130
  include Google::Apis::Core::JsonObjectSupport
3125
3131
  end
3126
3132
 
3133
+ class GoogleCloudAiplatformV1PscInterfaceConfig
3134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3135
+
3136
+ include Google::Apis::Core::JsonObjectSupport
3137
+ end
3138
+
3127
3139
  class GoogleCloudAiplatformV1PublisherModel
3128
3140
  class Representation < Google::Apis::Core::JsonRepresentation; end
3129
3141
 
@@ -4096,6 +4108,48 @@ module Google
4096
4108
  include Google::Apis::Core::JsonObjectSupport
4097
4109
  end
4098
4110
 
4111
+ class GoogleCloudAiplatformV1SchemaPromptApiSchema
4112
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4113
+
4114
+ include Google::Apis::Core::JsonObjectSupport
4115
+ end
4116
+
4117
+ class GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution
4118
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4119
+
4120
+ include Google::Apis::Core::JsonObjectSupport
4121
+ end
4122
+
4123
+ class GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue
4124
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4125
+
4126
+ include Google::Apis::Core::JsonObjectSupport
4127
+ end
4128
+
4129
+ class GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
4130
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4131
+
4132
+ include Google::Apis::Core::JsonObjectSupport
4133
+ end
4134
+
4135
+ class GoogleCloudAiplatformV1SchemaPromptSpecPartList
4136
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4137
+
4138
+ include Google::Apis::Core::JsonObjectSupport
4139
+ end
4140
+
4141
+ class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage
4142
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4143
+
4144
+ include Google::Apis::Core::JsonObjectSupport
4145
+ end
4146
+
4147
+ class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
4148
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4149
+
4150
+ include Google::Apis::Core::JsonObjectSupport
4151
+ end
4152
+
4099
4153
  class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata
4100
4154
  class Representation < Google::Apis::Core::JsonRepresentation; end
4101
4155
 
@@ -5716,6 +5770,8 @@ module Google
5716
5770
  property :image, :base64 => true, as: 'image'
5717
5771
  property :image_rai_scores, as: 'imageRaiScores', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores::Representation
5718
5772
 
5773
+ property :image_size, as: 'imageSize', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageImageSize, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageImageSize::Representation
5774
+
5719
5775
  property :rai_info, as: 'raiInfo', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo::Representation
5720
5776
 
5721
5777
  property :semantic_filter_response, as: 'semanticFilterResponse', class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse, decorator: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse::Representation
@@ -5725,6 +5781,15 @@ module Google
5725
5781
  end
5726
5782
  end
5727
5783
 
5784
+ class CloudAiLargeModelsVisionImageImageSize
5785
+ # @private
5786
+ class Representation < Google::Apis::Core::JsonRepresentation
5787
+ property :channels, as: 'channels'
5788
+ property :height, as: 'height'
5789
+ property :width, as: 'width'
5790
+ end
5791
+ end
5792
+
5728
5793
  class CloudAiLargeModelsVisionImageRaiScores
5729
5794
  # @private
5730
5795
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6908,6 +6973,8 @@ module Google
6908
6973
  property :network, as: 'network'
6909
6974
  property :persistent_resource_id, as: 'persistentResourceId'
6910
6975
  property :protected_artifact_location_id, as: 'protectedArtifactLocationId'
6976
+ property :psc_interface_config, as: 'pscInterfaceConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PscInterfaceConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PscInterfaceConfig::Representation
6977
+
6911
6978
  collection :reserved_ip_ranges, as: 'reservedIpRanges'
6912
6979
  property :scheduling, as: 'scheduling', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Scheduling, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Scheduling::Representation
6913
6980
 
@@ -8272,6 +8339,7 @@ module Google
8272
8339
  class GoogleCloudAiplatformV1FeatureViewSyncConfig
8273
8340
  # @private
8274
8341
  class Representation < Google::Apis::Core::JsonRepresentation
8342
+ property :continuous, as: 'continuous'
8275
8343
  property :cron, as: 'cron'
8276
8344
  end
8277
8345
  end
@@ -8660,6 +8728,7 @@ module Google
8660
8728
  class GoogleCloudAiplatformV1GenerationConfig
8661
8729
  # @private
8662
8730
  class Representation < Google::Apis::Core::JsonRepresentation
8731
+ property :audio_timestamp, as: 'audioTimestamp'
8663
8732
  property :candidate_count, as: 'candidateCount'
8664
8733
  property :frequency_penalty, as: 'frequencyPenalty'
8665
8734
  property :logprobs, as: 'logprobs'
@@ -11097,6 +11166,12 @@ module Google
11097
11166
  end
11098
11167
  end
11099
11168
 
11169
+ class GoogleCloudAiplatformV1PscInterfaceConfig
11170
+ # @private
11171
+ class Representation < Google::Apis::Core::JsonRepresentation
11172
+ end
11173
+ end
11174
+
11100
11175
  class GoogleCloudAiplatformV1PublisherModel
11101
11176
  # @private
11102
11177
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -12704,6 +12779,84 @@ module Google
12704
12779
  end
12705
12780
  end
12706
12781
 
12782
+ class GoogleCloudAiplatformV1SchemaPromptApiSchema
12783
+ # @private
12784
+ class Representation < Google::Apis::Core::JsonRepresentation
12785
+ property :api_schema_version, as: 'apiSchemaVersion'
12786
+ collection :executions, as: 'executions', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution::Representation
12787
+
12788
+ property :multimodal_prompt, as: 'multimodalPrompt', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt::Representation
12789
+
12790
+ property :structured_prompt, as: 'structuredPrompt', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt::Representation
12791
+
12792
+ end
12793
+ end
12794
+
12795
+ class GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution
12796
+ # @private
12797
+ class Representation < Google::Apis::Core::JsonRepresentation
12798
+ hash :arguments, as: 'arguments', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue::Representation
12799
+
12800
+ end
12801
+ end
12802
+
12803
+ class GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue
12804
+ # @private
12805
+ class Representation < Google::Apis::Core::JsonRepresentation
12806
+ property :part_list, as: 'partList', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList::Representation
12807
+
12808
+ end
12809
+ end
12810
+
12811
+ class GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt
12812
+ # @private
12813
+ class Representation < Google::Apis::Core::JsonRepresentation
12814
+ property :prompt_message, as: 'promptMessage', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage::Representation
12815
+
12816
+ end
12817
+ end
12818
+
12819
+ class GoogleCloudAiplatformV1SchemaPromptSpecPartList
12820
+ # @private
12821
+ class Representation < Google::Apis::Core::JsonRepresentation
12822
+ collection :parts, as: 'parts', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part::Representation
12823
+
12824
+ end
12825
+ end
12826
+
12827
+ class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage
12828
+ # @private
12829
+ class Representation < Google::Apis::Core::JsonRepresentation
12830
+ collection :contents, as: 'contents', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
12831
+
12832
+ property :generation_config, as: 'generationConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfig::Representation
12833
+
12834
+ property :model, as: 'model'
12835
+ collection :safety_settings, as: 'safetySettings', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting::Representation
12836
+
12837
+ property :system_instruction, as: 'systemInstruction', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
12838
+
12839
+ property :tool_config, as: 'toolConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolConfig::Representation
12840
+
12841
+ collection :tools, as: 'tools', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool::Representation
12842
+
12843
+ end
12844
+ end
12845
+
12846
+ class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt
12847
+ # @private
12848
+ class Representation < Google::Apis::Core::JsonRepresentation
12849
+ property :context, as: 'context', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content::Representation
12850
+
12851
+ collection :examples, as: 'examples', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPartList::Representation
12852
+
12853
+ collection :input_prefixes, as: 'inputPrefixes'
12854
+ collection :output_prefixes, as: 'outputPrefixes'
12855
+ property :prompt_message, as: 'promptMessage', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage::Representation
12856
+
12857
+ end
12858
+ end
12859
+
12707
12860
  class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata
12708
12861
  # @private
12709
12862
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -12780,6 +12933,8 @@ module Google
12780
12933
  property :logprobs, as: 'logprobs'
12781
12934
  property :max_output_tokens, :numeric_string => true, as: 'maxOutputTokens'
12782
12935
  property :note, as: 'note'
12936
+ property :prompt_api_schema, as: 'promptApiSchema', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptApiSchema, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptApiSchema::Representation
12937
+
12783
12938
  property :prompt_type, as: 'promptType'
12784
12939
  property :seed_enabled, as: 'seedEnabled'
12785
12940
  property :seed_value, :numeric_string => true, as: 'seedValue'
@@ -4850,6 +4850,42 @@ module Google
4850
4850
  execute_or_queue_command(command, &block)
4851
4851
  end
4852
4852
 
4853
+ # Creates a batch of Features in a given FeatureGroup.
4854
+ # @param [String] parent
4855
+ # Required. The resource name of the EntityType/FeatureGroup to create the batch
4856
+ # of Features under. Format: `projects/`project`/locations/`location`/
4857
+ # featurestores/`featurestore`/entityTypes/`entity_type`` `projects/`project`/
4858
+ # locations/`location`/featureGroups/`feature_group``
4859
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateFeaturesRequest] google_cloud_aiplatform_v1_batch_create_features_request_object
4860
+ # @param [String] fields
4861
+ # Selector specifying which fields to include in a partial response.
4862
+ # @param [String] quota_user
4863
+ # Available to use for quota purposes for server-side applications. Can be any
4864
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4865
+ # @param [Google::Apis::RequestOptions] options
4866
+ # Request-specific options
4867
+ #
4868
+ # @yield [result, err] Result & error if block supplied
4869
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
4870
+ # @yieldparam err [StandardError] error object if request failed
4871
+ #
4872
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
4873
+ #
4874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4877
+ def batch_project_location_feature_group_feature_create(parent, google_cloud_aiplatform_v1_batch_create_features_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4878
+ command = make_simple_command(:post, 'v1/{+parent}/features:batchCreate', options)
4879
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateFeaturesRequest::Representation
4880
+ command.request_object = google_cloud_aiplatform_v1_batch_create_features_request_object
4881
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
4882
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
4883
+ command.params['parent'] = parent unless parent.nil?
4884
+ command.query['fields'] = fields unless fields.nil?
4885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4886
+ execute_or_queue_command(command, &block)
4887
+ end
4888
+
4853
4889
  # Creates a new Feature in a given FeatureGroup.
4854
4890
  # @param [String] parent
4855
4891
  # Required. The resource name of the EntityType or FeatureGroup to create a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-13 00:00:00.000000000 Z
11
+ date: 2024-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
63
63
  post_install_message:
64
64
  rdoc_options: []