Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of FirebaseAppCheck client #10863

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.FirebaseAppCheck.V1 do
API client metadata for GoogleApi.FirebaseAppCheck.V1.
"""

@discovery_revision "20220708"
@discovery_revision "20240304"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangeAp
* `artifact` (*type:* `String.t`, *default:* `nil`) - Required. The artifact returned by a previous call to ExchangeAppAttestAttestation.
* `assertion` (*type:* `String.t`, *default:* `nil`) - Required. The CBOR-encoded assertion returned by the client-side App Attest API.
* `challenge` (*type:* `String.t`, *default:* `nil`) - Required. A one-time challenge returned by an immediately prior call to GenerateAppAttestChallenge.
* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:artifact => String.t() | nil,
:assertion => String.t() | nil,
:challenge => String.t() | nil
:challenge => String.t() | nil,
:limitedUse => boolean() | nil
}

field(:artifact)
field(:assertion)
field(:challenge)
field(:limitedUse)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangeAp
* `attestationStatement` (*type:* `String.t`, *default:* `nil`) - Required. The App Attest statement returned by the client-side App Attest API. This is a base64url encoded CBOR object in the JSON response.
* `challenge` (*type:* `String.t`, *default:* `nil`) - Required. A one-time challenge returned by an immediately prior call to GenerateAppAttestChallenge.
* `keyId` (*type:* `String.t`, *default:* `nil`) - Required. The key ID generated by App Attest for the client app.
* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:attestationStatement => String.t() | nil,
:challenge => String.t() | nil,
:keyId => String.t() | nil
:keyId => String.t() | nil,
:limitedUse => boolean() | nil
}

field(:attestationStatement)
field(:challenge)
field(:keyId)
field(:limitedUse)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangeCu
## Attributes

* `customToken` (*type:* `String.t`, *default:* `nil`) - Required. A custom token signed using your project's Admin SDK service account credentials.
* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:customToken => String.t() | nil
:customToken => String.t() | nil,
:limitedUse => boolean() | nil
}

field(:customToken)
field(:limitedUse)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangeDe
## Attributes

* `debugToken` (*type:* `String.t`, *default:* `nil`) - Required. A debug token secret. This string must match a debug token secret previously created using CreateDebugToken.
* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:debugToken => String.t() | nil
:debugToken => String.t() | nil,
:limitedUse => boolean() | nil
}

field(:debugToken)
field(:limitedUse)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangeDe
## Attributes

* `deviceToken` (*type:* `String.t`, *default:* `nil`) - Required. The `device_token` as returned by Apple's client-side [DeviceCheck API](https://developer.apple.com/documentation/devicecheck/dcdevice). This is the base64 encoded `Data` (Swift) or `NSData` (ObjC) object.
* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:deviceToken => String.t() | nil
:deviceToken => String.t() | nil,
:limitedUse => boolean() | nil
}

field(:deviceToken)
field(:limitedUse)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangePl

## Attributes

* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
* `playIntegrityToken` (*type:* `String.t`, *default:* `nil`) - Required. The [integrity verdict response token from Play Integrity](https://developer.android.com/google/play/integrity/verdict#decrypt-verify) issued to your app.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:limitedUse => boolean() | nil,
:playIntegrityToken => String.t() | nil
}

field(:limitedUse)
field(:playIntegrityToken)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangeRe

## Attributes

* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
* `recaptchaEnterpriseToken` (*type:* `String.t`, *default:* `nil`) - Required. The reCAPTCHA token as returned by the [reCAPTCHA Enterprise JavaScript API](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages).
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:limitedUse => boolean() | nil,
:recaptchaEnterpriseToken => String.t() | nil
}

field(:limitedUse)
field(:recaptchaEnterpriseToken)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ defmodule GoogleApi.FirebaseAppCheck.V1.Model.GoogleFirebaseAppcheckV1ExchangeRe

## Attributes

* `limitedUse` (*type:* `boolean()`, *default:* `nil`) - Specifies whether this attestation is for use in a *limited use* (`true`) or *session based* (`false`) context. To enable this attestation to be used with the *replay protection* feature, set this to `true`. The default value is `false`.
* `recaptchaV3Token` (*type:* `String.t`, *default:* `nil`) - Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](https://developers.google.com/recaptcha/docs/v3).
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:limitedUse => boolean() | nil,
:recaptchaV3Token => String.t() | nil
}

field(:limitedUse)
field(:recaptchaV3Token)
end

Expand Down
Loading
Loading