Skip to content

Commit 72b1816

Browse files
feat: Automated regeneration of firebaseml v2beta client (googleapis#23904)
Auto-created at 2025-08-10 10:20:21 +0000 using the toys pull request generator.
1 parent f344a7a commit 72b1816

File tree

5 files changed

+58
-2
lines changed

5 files changed

+58
-2
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244524,6 +244524,7 @@
244524244524
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentRequest/generationConfig": generation_config
244525244525
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentRequest/labels": labels
244526244526
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentRequest/labels/label": label
244527+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentRequest/modelArmorConfig": model_armor_config
244527244528
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentRequest/safetySettings": safety_settings
244528244529
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentRequest/safetySettings/safety_setting": safety_setting
244529244530
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1GenerateContentRequest/systemInstruction": system_instruction
@@ -244683,6 +244684,9 @@
244683244684
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModalityTokenCount": google_cloud_aiplatform_v1beta1_modality_token_count
244684244685
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModalityTokenCount/modality": modality
244685244686
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModalityTokenCount/tokenCount": token_count
244687+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModelArmorConfig": google_cloud_aiplatform_v1beta1_model_armor_config
244688+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModelArmorConfig/promptTemplateName": prompt_template_name
244689+
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1ModelArmorConfig/responseTemplateName": response_template_name
244686244690
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Part": google_cloud_aiplatform_v1beta1_part
244687244691
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Part/codeExecutionResult": code_execution_result
244688244692
"/firebaseml:v2beta/GoogleCloudAiplatformV1beta1Part/executableCode": executable_code

generated/google-apis-firebaseml_v2beta/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-firebaseml_v2beta
22

3+
### v0.28.0 (2025-08-10)
4+
5+
* Regenerated from discovery document revision 20250731
6+
37
### v0.27.0 (2025-08-03)
48

59
* Regenerated from discovery document revision 20250727

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,11 @@ class GoogleCloudAiplatformV1beta1GenerateContentRequest
10611061
# @return [Hash<String,String>]
10621062
attr_accessor :labels
10631063

1064+
# Configuration for Model Armor integrations of prompt and responses.
1065+
# Corresponds to the JSON property `modelArmorConfig`
1066+
# @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModelArmorConfig]
1067+
attr_accessor :model_armor_config
1068+
10641069
# Optional. Per request settings for blocking unsafe content. Enforced on
10651070
# GenerateContentResponse.candidates.
10661071
# Corresponds to the JSON property `safetySettings`
@@ -1098,6 +1103,7 @@ def update!(**args)
10981103
@contents = args[:contents] if args.key?(:contents)
10991104
@generation_config = args[:generation_config] if args.key?(:generation_config)
11001105
@labels = args[:labels] if args.key?(:labels)
1106+
@model_armor_config = args[:model_armor_config] if args.key?(:model_armor_config)
11011107
@safety_settings = args[:safety_settings] if args.key?(:safety_settings)
11021108
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
11031109
@tool_config = args[:tool_config] if args.key?(:tool_config)
@@ -2037,6 +2043,32 @@ def update!(**args)
20372043
end
20382044
end
20392045

2046+
# Configuration for Model Armor integrations of prompt and responses.
2047+
class GoogleCloudAiplatformV1beta1ModelArmorConfig
2048+
include Google::Apis::Core::Hashable
2049+
2050+
# Optional. The name of the Model Armor template to use for prompt sanitization.
2051+
# Corresponds to the JSON property `promptTemplateName`
2052+
# @return [String]
2053+
attr_accessor :prompt_template_name
2054+
2055+
# Optional. The name of the Model Armor template to use for response
2056+
# sanitization.
2057+
# Corresponds to the JSON property `responseTemplateName`
2058+
# @return [String]
2059+
attr_accessor :response_template_name
2060+
2061+
def initialize(**args)
2062+
update!(**args)
2063+
end
2064+
2065+
# Update properties of this object
2066+
def update!(**args)
2067+
@prompt_template_name = args[:prompt_template_name] if args.key?(:prompt_template_name)
2068+
@response_template_name = args[:response_template_name] if args.key?(:response_template_name)
2069+
end
2070+
end
2071+
20402072
# A datatype containing media that is part of a multi-part `Content` message. A `
20412073
# Part` consists of data which has an associated datatype. A `Part` can only
20422074
# contain one of the accepted types in `Part.data`. A `Part` must have a fixed

generated/google-apis-firebaseml_v2beta/lib/google/apis/firebaseml_v2beta/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 FirebasemlV2beta
1818
# Version of the google-apis-firebaseml_v2beta gem
19-
GEM_VERSION = "0.27.0"
19+
GEM_VERSION = "0.28.0"
2020

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

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

generated/google-apis-firebaseml_v2beta/lib/google/apis/firebaseml_v2beta/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
340340
include Google::Apis::Core::JsonObjectSupport
341341
end
342342

343+
class GoogleCloudAiplatformV1beta1ModelArmorConfig
344+
class Representation < Google::Apis::Core::JsonRepresentation; end
345+
346+
include Google::Apis::Core::JsonObjectSupport
347+
end
348+
343349
class GoogleCloudAiplatformV1beta1Part
344350
class Representation < Google::Apis::Core::JsonRepresentation; end
345351

@@ -833,6 +839,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
833839
property :generation_config, as: 'generationConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfig::Representation
834840

835841
hash :labels, as: 'labels'
842+
property :model_armor_config, as: 'modelArmorConfig', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModelArmorConfig, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModelArmorConfig::Representation
843+
836844
collection :safety_settings, as: 'safetySettings', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetySetting, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetySetting::Representation
837845

838846
property :system_instruction, as: 'systemInstruction', class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content, decorator: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content::Representation
@@ -1116,6 +1124,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
11161124
end
11171125
end
11181126

1127+
class GoogleCloudAiplatformV1beta1ModelArmorConfig
1128+
# @private
1129+
class Representation < Google::Apis::Core::JsonRepresentation
1130+
property :prompt_template_name, as: 'promptTemplateName'
1131+
property :response_template_name, as: 'responseTemplateName'
1132+
end
1133+
end
1134+
11191135
class GoogleCloudAiplatformV1beta1Part
11201136
# @private
11211137
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)