Skip to content

Commit

Permalink
feat: Automated regeneration of firebaseappcheck v1beta client (#15969)
Browse files Browse the repository at this point in the history
Auto-created at 2023-08-27 10:29:21 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Aug 27, 2023
1 parent 0c4713d commit f08ab23
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193143,6 +193143,8 @@
"/firebaseappcheck:v1beta/firebaseappcheck.oauthClients.exchangeAppAttestAssertion/app": app
"/firebaseappcheck:v1beta/firebaseappcheck.oauthClients.exchangeAppAttestAttestation": exchange_oauth_client_app_attest_attestation
"/firebaseappcheck:v1beta/firebaseappcheck.oauthClients.exchangeAppAttestAttestation/app": app
"/firebaseappcheck:v1beta/firebaseappcheck.oauthClients.exchangeDebugToken": exchange_oauth_client_debug_token
"/firebaseappcheck:v1beta/firebaseappcheck.oauthClients.exchangeDebugToken/app": app
"/firebaseappcheck:v1beta/firebaseappcheck.oauthClients.generateAppAttestChallenge": generate_oauth_client_app_attest_challenge
"/firebaseappcheck:v1beta/firebaseappcheck.oauthClients.generateAppAttestChallenge/app": app
"/firebaseappcheck:v1beta/firebaseappcheck.projects.apps.appAttestConfig.batchGet": batch_project_app_app_attest_config_get
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-firebaseappcheck_v1beta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-firebaseappcheck_v1beta

### v0.32.0 (2023-08-27)

* Regenerated from discovery document revision 20230814

### v0.31.0 (2023-08-13)

* Regenerated from discovery document revision 20230807
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module FirebaseappcheckV1beta
# Version of the google-apis-firebaseappcheck_v1beta gem
GEM_VERSION = "0.31.0"
GEM_VERSION = "0.32.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.12.0"

# Revision of the discovery document this client was generated from
REVISION = "20230807"
REVISION = "20230814"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,46 @@ def exchange_oauth_client_app_attest_attestation(app, google_firebase_appcheck_v
execute_or_queue_command(command, &block)
end

# Validates a debug token secret that you have previously created using
# CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive
# quota is enforced on this method to prevent accidental exposure of the app to
# abuse.
# @param [String] app
# Required. The relative resource name of the app, in the format: ``` projects/`
# project_number`/apps/`app_id` ``` If necessary, the `project_number` element
# can be replaced with the project ID of the Firebase project. Learn more about
# using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/
# 2510) standard.
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest] google_firebase_appcheck_v1beta_exchange_debug_token_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def exchange_oauth_client_debug_token(app, google_firebase_appcheck_v1beta_exchange_debug_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/{+app}:exchangeDebugToken', options)
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest::Representation
command.request_object = google_firebase_appcheck_v1beta_exchange_debug_token_request_object
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
command.params['app'] = app unless app.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Generates a challenge that protects the integrity of an immediately following
# call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A
# challenge should not be reused for multiple calls.
Expand Down

0 comments on commit f08ab23

Please sign in to comment.