Skip to content

Commit c215d3b

Browse files
feat: Automated regeneration of firebasedataconnect v1beta client (googleapis#24303)
Auto-created at 2025-09-14 10:50:35 +0000 using the toys pull request generator.
1 parent 3cd3cc6 commit c215d3b

File tree

6 files changed

+183
-4
lines changed

6 files changed

+183
-4
lines changed

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248654,6 +248654,11 @@
248654248654
"/firebasedataconnect:v1beta/GraphqlResponse/data/datum": datum
248655248655
"/firebasedataconnect:v1beta/GraphqlResponse/errors": errors
248656248656
"/firebasedataconnect:v1beta/GraphqlResponse/errors/error": error
248657+
"/firebasedataconnect:v1beta/ImpersonateRequest": impersonate_request
248658+
"/firebasedataconnect:v1beta/ImpersonateRequest/extensions": extensions
248659+
"/firebasedataconnect:v1beta/ImpersonateRequest/operationName": operation_name
248660+
"/firebasedataconnect:v1beta/ImpersonateRequest/variables": variables
248661+
"/firebasedataconnect:v1beta/ImpersonateRequest/variables/variable": variable
248657248662
"/firebasedataconnect:v1beta/Impersonation": impersonation
248658248663
"/firebasedataconnect:v1beta/Impersonation/authClaims": auth_claims
248659248664
"/firebasedataconnect:v1beta/Impersonation/authClaims/auth_claim": auth_claim
@@ -248793,6 +248798,10 @@
248793248798
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.executeQuery/name": name
248794248799
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.get": get_project_location_service_connector
248795248800
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.get/name": name
248801+
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.impersonateMutation": impersonate_project_location_service_connector_mutation
248802+
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.impersonateMutation/name": name
248803+
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.impersonateQuery": impersonate_project_location_service_connector_query
248804+
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.impersonateQuery/name": name
248796248805
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.list": list_project_location_service_connectors
248797248806
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.list/filter": filter
248798248807
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.connectors.list/orderBy": order_by
@@ -248823,6 +248832,8 @@
248823248832
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.executeGraphqlRead/name": name
248824248833
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.get": get_project_location_service
248825248834
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.get/name": name
248835+
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.introspectGraphql": introspect_project_location_service_graphql
248836+
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.introspectGraphql/name": name
248826248837
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.list": list_project_location_services
248827248838
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.list/filter": filter
248828248839
"/firebasedataconnect:v1beta/firebasedataconnect.projects.locations.services.list/orderBy": order_by

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

3+
### v0.13.0 (2025-09-14)
4+
5+
* Regenerated from discovery document revision 20250907
6+
37
### v0.12.0 (2025-08-31)
48

59
* Regenerated from discovery document revision 20250824

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,39 @@ def update!(**args)
494494
end
495495
end
496496

497+
# The Impersonate request to Firebase Data Connect.
498+
class ImpersonateRequest
499+
include Google::Apis::Core::Hashable
500+
501+
# GraphqlRequestExtensions contains additional information of `GraphqlRequest`.
502+
# Corresponds to the JSON property `extensions`
503+
# @return [Google::Apis::FirebasedataconnectV1beta::GraphqlRequestExtensions]
504+
attr_accessor :extensions
505+
506+
# Required. The name of the GraphQL operation name. Required because all
507+
# Connector operations must be named. See https://graphql.org/learn/queries/#
508+
# operation-name.
509+
# Corresponds to the JSON property `operationName`
510+
# @return [String]
511+
attr_accessor :operation_name
512+
513+
# Optional. Values for GraphQL variables provided in this request.
514+
# Corresponds to the JSON property `variables`
515+
# @return [Hash<String,Object>]
516+
attr_accessor :variables
517+
518+
def initialize(**args)
519+
update!(**args)
520+
end
521+
522+
# Update properties of this object
523+
def update!(**args)
524+
@extensions = args[:extensions] if args.key?(:extensions)
525+
@operation_name = args[:operation_name] if args.key?(:operation_name)
526+
@variables = args[:variables] if args.key?(:variables)
527+
end
528+
end
529+
497530
# Impersonation configures the Firebase Auth context to impersonate.
498531
class Impersonation
499532
include Google::Apis::Core::Hashable

generated/google-apis-firebasedataconnect_v1beta/lib/google/apis/firebasedataconnect_v1beta/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 FirebasedataconnectV1beta
1818
# Version of the google-apis-firebasedataconnect_v1beta gem
19-
GEM_VERSION = "0.12.0"
19+
GEM_VERSION = "0.13.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 = "20250824"
25+
REVISION = "20250907"
2626
end
2727
end
2828
end

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
112112
include Google::Apis::Core::JsonObjectSupport
113113
end
114114

115+
class ImpersonateRequest
116+
class Representation < Google::Apis::Core::JsonRepresentation; end
117+
118+
include Google::Apis::Core::JsonObjectSupport
119+
end
120+
115121
class Impersonation
116122
class Representation < Google::Apis::Core::JsonRepresentation; end
117123

@@ -338,6 +344,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
338344
end
339345
end
340346

347+
class ImpersonateRequest
348+
# @private
349+
class Representation < Google::Apis::Core::JsonRepresentation
350+
property :extensions, as: 'extensions', class: Google::Apis::FirebasedataconnectV1beta::GraphqlRequestExtensions, decorator: Google::Apis::FirebasedataconnectV1beta::GraphqlRequestExtensions::Representation
351+
352+
property :operation_name, as: 'operationName'
353+
hash :variables, as: 'variables'
354+
end
355+
end
356+
341357
class Impersonation
342358
# @private
343359
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-firebasedataconnect_v1beta/lib/google/apis/firebasedataconnect_v1beta/service.rb

Lines changed: 117 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
8888
# @param [String] name
8989
# The resource that owns the locations collection, if applicable.
9090
# @param [Array<String>, String] extra_location_types
91-
# Optional. Do not use this field. It is unsupported and is ignored unless
92-
# explicitly documented otherwise. This is primarily for internal usage.
91+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
92+
# field which is primarily intended for internal usage.
9393
# @param [String] filter
9494
# A filter to narrow down results to a preferred subset. The filtering language
9595
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -493,6 +493,45 @@ def get_project_location_service(name, fields: nil, quota_user: nil, options: ni
493493
execute_or_queue_command(command, &block)
494494
end
495495

496+
# Execute introspection query against the Firebase Data Connect's generated
497+
# GraphQL schema. GraphQL introspection query provides metadata such as what
498+
# tables the schema have, what queries and mutations can be performed on the
499+
# schema, and so on. Read more at https://graphql.org/learn/introspection.
500+
# IntrospectGraphql can read schema metadata but cannot read rows from Cloud SQL
501+
# instance, which can be done via ExecuteGraphqlRead.
502+
# @param [String] name
503+
# Required. The relative resource name of Firebase Data Connect service, in the
504+
# format: ``` projects/`project`/locations/`location`/services/`service` ```
505+
# @param [Google::Apis::FirebasedataconnectV1beta::GraphqlRequest] graphql_request_object
506+
# @param [String] fields
507+
# Selector specifying which fields to include in a partial response.
508+
# @param [String] quota_user
509+
# Available to use for quota purposes for server-side applications. Can be any
510+
# arbitrary string assigned to a user, but should not exceed 40 characters.
511+
# @param [Google::Apis::RequestOptions] options
512+
# Request-specific options
513+
#
514+
# @yield [result, err] Result & error if block supplied
515+
# @yieldparam result [Google::Apis::FirebasedataconnectV1beta::GraphqlResponse] parsed result object
516+
# @yieldparam err [StandardError] error object if request failed
517+
#
518+
# @return [Google::Apis::FirebasedataconnectV1beta::GraphqlResponse]
519+
#
520+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522+
# @raise [Google::Apis::AuthorizationError] Authorization is required
523+
def introspect_project_location_service_graphql(name, graphql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
524+
command = make_simple_command(:post, 'v1beta/{+name}:introspectGraphql', options)
525+
command.request_representation = Google::Apis::FirebasedataconnectV1beta::GraphqlRequest::Representation
526+
command.request_object = graphql_request_object
527+
command.response_representation = Google::Apis::FirebasedataconnectV1beta::GraphqlResponse::Representation
528+
command.response_class = Google::Apis::FirebasedataconnectV1beta::GraphqlResponse
529+
command.params['name'] = name unless name.nil?
530+
command.query['fields'] = fields unless fields.nil?
531+
command.query['quotaUser'] = quota_user unless quota_user.nil?
532+
execute_or_queue_command(command, &block)
533+
end
534+
496535
# Lists Services in a given project and location.
497536
# @param [String] parent
498537
# Required. Value of parent.
@@ -819,6 +858,82 @@ def get_project_location_service_connector(name, fields: nil, quota_user: nil, o
819858
execute_or_queue_command(command, &block)
820859
end
821860

861+
# Impersonate a mutation defined on a Firebase Data Connect connector. It grants
862+
# the admin SDK access to mutations defined in the given connector. The caller
863+
# can choose to impersonate a particular Firebase Auth user, or skip @auth
864+
# completely.
865+
# @param [String] name
866+
# Required. The resource name of the connector to find the predefined query/
867+
# mutation, in the format: ``` projects/`project`/locations/`location`/services/`
868+
# service`/connectors/`connector` ```
869+
# @param [Google::Apis::FirebasedataconnectV1beta::ImpersonateRequest] impersonate_request_object
870+
# @param [String] fields
871+
# Selector specifying which fields to include in a partial response.
872+
# @param [String] quota_user
873+
# Available to use for quota purposes for server-side applications. Can be any
874+
# arbitrary string assigned to a user, but should not exceed 40 characters.
875+
# @param [Google::Apis::RequestOptions] options
876+
# Request-specific options
877+
#
878+
# @yield [result, err] Result & error if block supplied
879+
# @yieldparam result [Google::Apis::FirebasedataconnectV1beta::GraphqlResponse] parsed result object
880+
# @yieldparam err [StandardError] error object if request failed
881+
#
882+
# @return [Google::Apis::FirebasedataconnectV1beta::GraphqlResponse]
883+
#
884+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
885+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
886+
# @raise [Google::Apis::AuthorizationError] Authorization is required
887+
def impersonate_project_location_service_connector_mutation(name, impersonate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
888+
command = make_simple_command(:post, 'v1beta/{+name}:impersonateMutation', options)
889+
command.request_representation = Google::Apis::FirebasedataconnectV1beta::ImpersonateRequest::Representation
890+
command.request_object = impersonate_request_object
891+
command.response_representation = Google::Apis::FirebasedataconnectV1beta::GraphqlResponse::Representation
892+
command.response_class = Google::Apis::FirebasedataconnectV1beta::GraphqlResponse
893+
command.params['name'] = name unless name.nil?
894+
command.query['fields'] = fields unless fields.nil?
895+
command.query['quotaUser'] = quota_user unless quota_user.nil?
896+
execute_or_queue_command(command, &block)
897+
end
898+
899+
# Impersonate a query defined on a Firebase Data Connect connector. It grants
900+
# the admin SDK access to queries defined in the given connector. The caller can
901+
# choose to impersonate a particular Firebase Auth user, or skip @auth
902+
# completely.
903+
# @param [String] name
904+
# Required. The resource name of the connector to find the predefined query/
905+
# mutation, in the format: ``` projects/`project`/locations/`location`/services/`
906+
# service`/connectors/`connector` ```
907+
# @param [Google::Apis::FirebasedataconnectV1beta::ImpersonateRequest] impersonate_request_object
908+
# @param [String] fields
909+
# Selector specifying which fields to include in a partial response.
910+
# @param [String] quota_user
911+
# Available to use for quota purposes for server-side applications. Can be any
912+
# arbitrary string assigned to a user, but should not exceed 40 characters.
913+
# @param [Google::Apis::RequestOptions] options
914+
# Request-specific options
915+
#
916+
# @yield [result, err] Result & error if block supplied
917+
# @yieldparam result [Google::Apis::FirebasedataconnectV1beta::GraphqlResponse] parsed result object
918+
# @yieldparam err [StandardError] error object if request failed
919+
#
920+
# @return [Google::Apis::FirebasedataconnectV1beta::GraphqlResponse]
921+
#
922+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
923+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
924+
# @raise [Google::Apis::AuthorizationError] Authorization is required
925+
def impersonate_project_location_service_connector_query(name, impersonate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
926+
command = make_simple_command(:post, 'v1beta/{+name}:impersonateQuery', options)
927+
command.request_representation = Google::Apis::FirebasedataconnectV1beta::ImpersonateRequest::Representation
928+
command.request_object = impersonate_request_object
929+
command.response_representation = Google::Apis::FirebasedataconnectV1beta::GraphqlResponse::Representation
930+
command.response_class = Google::Apis::FirebasedataconnectV1beta::GraphqlResponse
931+
command.params['name'] = name unless name.nil?
932+
command.query['fields'] = fields unless fields.nil?
933+
command.query['quotaUser'] = quota_user unless quota_user.nil?
934+
execute_or_queue_command(command, &block)
935+
end
936+
822937
# Lists Connectors in a given project and location.
823938
# @param [String] parent
824939
# Required. Value of parent.

0 commit comments

Comments
 (0)