google-apis-firebaseappcheck_v1beta 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b277cc22a7a5e38f10ae593366a656a5dbd0acfafca5be1542777283c9705d8
4
- data.tar.gz: b1f286b30a62ec1e5743095d4475914d1ae7c86264c2e9fe7567fcfeb5ae3cb6
3
+ metadata.gz: 720474e11ced7a8c728d9daf6906425027fe185d213e2ad4588b42e68a21ffb5
4
+ data.tar.gz: 94e31a3e0cc47421ed5c8e64ff9770de121708f0247b492615f88132815c8b9c
5
5
  SHA512:
6
- metadata.gz: d159bbd586f8425b7987f2a8bb2e7fb66ef5756d94bdf35be3f05210487d42fc1f9e7225342298c4596fdab31c182e834a33759c7f5f3b209d68878ec1279a49
7
- data.tar.gz: 5f4cdd0cca7414d40a9f114f6db2664ed09f6e1247846a509576ca09d6a1eaa7feb20e8d4fc917e2e15952a1a584c2cf6aefefb4bcfbb1f48d06ea5fc874c368
6
+ metadata.gz: 59220e1fa1714d6ba6ee93ca96cfb9ae69e77e8e7bbc045710f9ca9fd5d039904daabc63788ef9212a8de9a624218d1298fefa1568ad2aa1a4a71aa14cb69f88
7
+ data.tar.gz: d06814c81af8e8c8b72993c17d94073cd9cb0fb7daa9a6ff9e720847cf987561d15db5eb1971c5cb161ab041f6df292269258ba6a0ea6562641d295ae92aae99
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.8.0 (2021-10-20)
4
+
5
+ * Regenerated from discovery document revision 20211015
6
+
3
7
  ### v0.7.0 (2021-09-29)
4
8
 
5
9
  * Regenerated from discovery document revision 20210924
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Firebaseappcheck service in particular.)
67
67
 
@@ -22,21 +22,19 @@ module Google
22
22
  module Apis
23
23
  module FirebaseappcheckV1beta
24
24
 
25
- # Response object for GenerateAppAttestChallenge
25
+ # Response message for the GenerateAppAttestChallenge method.
26
26
  class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # A one time use challenge for the client to pass to Apple's App Attest API.
29
+ # A one-time use challenge for the client to pass to the App Attest API.
30
30
  # Corresponds to the JSON property `challenge`
31
31
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
32
32
  # @return [String]
33
33
  attr_accessor :challenge
34
34
 
35
- # The duration from the time this challenge is minted until it is expired. This
36
- # field is intended to ease client-side token management, since the device may
37
- # have clock skew, but is still able to accurately measure a duration. This
38
- # expiration is intended to minimize the replay window within which a single
39
- # challenge may be reused. See AIP 142 for naming of this field.
35
+ # The duration from the time this challenge is minted until its expiration. This
36
+ # field is intended to ease client-side token management, since the client may
37
+ # have clock skew, but is still able to accurately measure a duration.
40
38
  # Corresponds to the JSON property `ttl`
41
39
  # @return [String]
42
40
  attr_accessor :ttl
@@ -54,11 +52,11 @@ module Google
54
52
 
55
53
  # An app's App Attest configuration object. This configuration controls certain
56
54
  # properties of the App Check token returned by ExchangeAppAttestAttestation and
57
- # ExchangeAppAttestAttestation, such as its ttl. Note that the Team ID
58
- # registered with your app is used as part of the validation process. Please
59
- # register it via the Firebase Console or programmatically via the [Firebase
60
- # Management Service](https://firebase.google.com/docs/projects/api/reference/
61
- # rest/v1beta1/projects.iosApps/patch).
55
+ # ExchangeAppAttestAssertion, such as its ttl. Note that the Team ID registered
56
+ # with your app is used as part of the validation process. Please register it
57
+ # via the Firebase Console or programmatically via the [Firebase Management
58
+ # Service](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/
59
+ # projects.iosApps/patch).
62
60
  class GoogleFirebaseAppcheckV1betaAppAttestConfig
63
61
  include Google::Apis::Core::Hashable
64
62
 
@@ -252,17 +250,17 @@ module Google
252
250
  # @return [String]
253
251
  attr_accessor :display_name
254
252
 
255
- # The relative resource name of the debug token, in the format: ``` projects/`
256
- # project_number`/apps/`app_id`/debugTokens/`debug_token_id` ```
253
+ # Required. The relative resource name of the debug token, in the format: ```
254
+ # projects/`project_number`/apps/`app_id`/debugTokens/`debug_token_id` ```
257
255
  # Corresponds to the JSON property `name`
258
256
  # @return [String]
259
257
  attr_accessor :name
260
258
 
261
- # Input only. Immutable. The secret token itself. Must be provided during
262
- # creation, and must be a UUID4, case insensitive. This field is immutable once
263
- # set, and cannot be provided during an UpdateDebugToken request. You can,
264
- # however, delete this debug token using DeleteDebugToken to revoke it. For
265
- # security reasons, this field will never be populated in any response.
259
+ # Required. Input only. Immutable. The secret token itself. Must be provided
260
+ # during creation, and must be a UUID4, case insensitive. This field is
261
+ # immutable once set, and cannot be provided during an UpdateDebugToken request.
262
+ # You can, however, delete this debug token using DeleteDebugToken to revoke it.
263
+ # For security reasons, this field will never be populated in any response.
266
264
  # Corresponds to the JSON property `token`
267
265
  # @return [String]
268
266
  attr_accessor :token
@@ -338,23 +336,26 @@ module Google
338
336
  end
339
337
  end
340
338
 
341
- # Request message for ExchangeAppAttestAssertion
339
+ # Request message for the ExchangeAppAttestAssertion method.
342
340
  class GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest
343
341
  include Google::Apis::Core::Hashable
344
342
 
345
- # The artifact previously returned by ExchangeAppAttestAttestation.
343
+ # Required. The artifact returned by a previous call to
344
+ # ExchangeAppAttestAttestation.
346
345
  # Corresponds to the JSON property `artifact`
347
346
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
348
347
  # @return [String]
349
348
  attr_accessor :artifact
350
349
 
351
- # The CBOR encoded assertion provided by the Apple App Attest SDK.
350
+ # Required. The CBOR-encoded assertion returned by the client-side App Attest
351
+ # API.
352
352
  # Corresponds to the JSON property `assertion`
353
353
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
354
354
  # @return [String]
355
355
  attr_accessor :assertion
356
356
 
357
- # A one time challenge returned by GenerateAppAttestChallenge.
357
+ # Required. A one-time challenge returned by an immediately prior call to
358
+ # GenerateAppAttestChallenge.
358
359
  # Corresponds to the JSON property `challenge`
359
360
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
360
361
  # @return [String]
@@ -372,19 +373,19 @@ module Google
372
373
  end
373
374
  end
374
375
 
375
- # Request message for ExchangeAppAttestAttestation
376
+ # Request message for the ExchangeAppAttestAttestation method.
376
377
  class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest
377
378
  include Google::Apis::Core::Hashable
378
379
 
379
- # Required. The App Attest statement as returned by Apple's client-side App
380
- # Attest API. This is the CBOR object returned by Apple, which will be Base64
381
- # encoded in the JSON API.
380
+ # Required. The App Attest statement returned by the client-side App Attest API.
381
+ # This is a base64url encoded CBOR object in the JSON response.
382
382
  # Corresponds to the JSON property `attestationStatement`
383
383
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
384
384
  # @return [String]
385
385
  attr_accessor :attestation_statement
386
386
 
387
- # Required. The challenge previously generated by the FAC backend.
387
+ # Required. A one-time challenge returned by an immediately prior call to
388
+ # GenerateAppAttestChallenge.
388
389
  # Corresponds to the JSON property `challenge`
389
390
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
390
391
  # @return [String]
@@ -408,12 +409,11 @@ module Google
408
409
  end
409
410
  end
410
411
 
411
- # Response message for ExchangeAppAttestAttestation and
412
- # ExchangeAppAttestDebugAttestation
412
+ # Response message for the ExchangeAppAttestAttestation method.
413
413
  class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
414
414
  include Google::Apis::Core::Hashable
415
415
 
416
- # An artifact that should be passed back during the Assertion flow.
416
+ # An artifact that can be used in future calls to ExchangeAppAttestAssertion.
417
417
  # Corresponds to the JSON property `artifact`
418
418
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
419
419
  # @return [String]
@@ -482,7 +482,7 @@ module Google
482
482
 
483
483
  # Required. The `device_token` as returned by Apple's client-side [DeviceCheck
484
484
  # API](https://developer.apple.com/documentation/devicecheck/dcdevice). This is
485
- # the Base64 encoded `Data` (Swift) or `NSData` (ObjC) object.
485
+ # the base64 encoded `Data` (Swift) or `NSData` (ObjC) object.
486
486
  # Corresponds to the JSON property `deviceToken`
487
487
  # @return [String]
488
488
  attr_accessor :device_token
@@ -537,7 +537,7 @@ module Google
537
537
  end
538
538
  end
539
539
 
540
- # Request message for GenerateAppAttestChallenge
540
+ # Request message for the GenerateAppAttestChallenge method.
541
541
  class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest
542
542
  include Google::Apis::Core::Hashable
543
543
 
@@ -664,7 +664,7 @@ module Google
664
664
  # The currently active set of public keys that can be used to verify App Check
665
665
  # tokens. This object is a JWK set as specified by [section 5 of RFC 7517](https:
666
666
  # //tools.ietf.org/html/rfc7517#section-5). For security, the response **must
667
- # not** be cached for longer than one day.
667
+ # not** be cached for longer than six hours.
668
668
  class GoogleFirebaseAppcheckV1betaPublicJwkSet
669
669
  include Google::Apis::Core::Hashable
670
670
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebaseappcheckV1beta
18
18
  # Version of the google-apis-firebaseappcheck_v1beta gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210924"
25
+ REVISION = "20211015"
26
26
  end
27
27
  end
28
28
  end
@@ -22,18 +22,8 @@ module Google
22
22
  module FirebaseappcheckV1beta
23
23
  # Firebase App Check API
24
24
  #
25
- # App Check works alongside other Firebase services to help protect your backend
26
- # resources from abuse, such as billing fraud or phishing. With App Check,
27
- # devices running your app will use an app or device attestation provider that
28
- # attests to one or both of the following: * Requests originate from your
29
- # authentic app * Requests originate from an authentic, untampered device This
30
- # attestation is attached to every request your app makes to your Firebase
31
- # backend resources. The Firebase App Check REST API allows you to manage your
32
- # App Check configurations programmatically. It also allows you to exchange
33
- # attestation material for App Check tokens directly without using a Firebase
34
- # SDK. Finally, it allows you to obtain the public key set necessary to validate
35
- # an App Check token yourself. [Learn more about App Check](https://firebase.
36
- # google.com/docs/app-check).
25
+ # Firebase App Check works alongside other Firebase services to help protect
26
+ # your backend resources from abuse, such as billing fraud or phishing.
37
27
  #
38
28
  # @example
39
29
  # require 'google/apis/firebaseappcheck_v1beta'
@@ -94,13 +84,15 @@ module Google
94
84
  execute_or_queue_command(command, &block)
95
85
  end
96
86
 
97
- # Accepts a AppAttest Artifact and Assertion, and uses the developer's
98
- # preconfigured auth token to verify the token with Apple. Returns an
99
- # AttestationToken with the App ID as specified by the `app` field included as
100
- # attested claims.
87
+ # Accepts an App Attest assertion and an artifact previously obtained from
88
+ # ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns
89
+ # an App Check token encapsulated in an AttestationTokenResponse.
101
90
  # @param [String] app
102
- # Required. The full resource name to the iOS App. Format: "projects/`project_id`
103
- # /apps/`app_id`"
91
+ # Required. The relative resource name of the iOS app, in the format: ```
92
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
93
+ # element can be replaced with the project ID of the Firebase project. Learn
94
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
95
+ # dev/cloud/2510) standard.
104
96
  # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest] google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object
105
97
  # @param [String] fields
106
98
  # Selector specifying which fields to include in a partial response.
@@ -131,13 +123,19 @@ module Google
131
123
  execute_or_queue_command(command, &block)
132
124
  end
133
125
 
134
- # Accepts a AppAttest CBOR Attestation, and uses the developer's preconfigured
135
- # team and bundle IDs to verify the token with Apple. Returns an Attestation
136
- # Artifact that can later be exchanged for an AttestationToken in
137
- # ExchangeAppAttestAssertion.
126
+ # Accepts an App Attest CBOR attestation and verifies it with Apple using the
127
+ # developer's preconfigured team and bundle IDs. If valid, returns an
128
+ # attestation artifact that can later be exchanged for an
129
+ # AttestationTokenResponse using ExchangeAppAttestAssertion. For convenience and
130
+ # performance, this method's response object will also contain an App Check
131
+ # token encapsulated in an AttestationTokenResponse (if the verification is
132
+ # successful).
138
133
  # @param [String] app
139
- # Required. The full resource name to the iOS App. Format: "projects/`project_id`
140
- # /apps/`app_id`"
134
+ # Required. The relative resource name of the iOS app, in the format: ```
135
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
136
+ # element can be replaced with the project ID of the Firebase project. Learn
137
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
138
+ # dev/cloud/2510) standard.
141
139
  # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest] google_firebase_appcheck_v1beta_exchange_app_attest_attestation_request_object
142
140
  # @param [String] fields
143
141
  # Selector specifying which fields to include in a partial response.
@@ -365,11 +363,15 @@ module Google
365
363
  execute_or_queue_command(command, &block)
366
364
  end
367
365
 
368
- # Initiates the App Attest flow by generating a challenge which will be used as
369
- # a type of nonce for this attestation.
366
+ # Generates a challenge that protects the integrity of an immediately following
367
+ # call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A
368
+ # challenge should not be reused for multiple calls.
370
369
  # @param [String] app
371
- # Required. The full resource name to the iOS App. Format: "projects/`project_id`
372
- # /apps/`app_id`"
370
+ # Required. The relative resource name of the iOS app, in the format: ```
371
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
372
+ # element can be replaced with the project ID of the Firebase project. Learn
373
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
374
+ # dev/cloud/2510) standard.
373
375
  # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest] google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object
374
376
  # @param [String] fields
375
377
  # Selector specifying which fields to include in a partial response.
@@ -663,8 +665,8 @@ module Google
663
665
  # cannot be updated, nor will it be populated in the response, but you can
664
666
  # revoke the debug token using DeleteDebugToken.
665
667
  # @param [String] name
666
- # The relative resource name of the debug token, in the format: ``` projects/`
667
- # project_number`/apps/`app_id`/debugTokens/`debug_token_id` ```
668
+ # Required. The relative resource name of the debug token, in the format: ```
669
+ # projects/`project_number`/apps/`app_id`/debugTokens/`debug_token_id` ```
668
670
  # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken] google_firebase_appcheck_v1beta_debug_token_object
669
671
  # @param [String] update_mask
670
672
  # Required. A comma-separated list of names of fields in the DebugToken to
@@ -21,18 +21,8 @@ module Google
21
21
  module Apis
22
22
  # Firebase App Check API
23
23
  #
24
- # App Check works alongside other Firebase services to help protect your backend
25
- # resources from abuse, such as billing fraud or phishing. With App Check,
26
- # devices running your app will use an app or device attestation provider that
27
- # attests to one or both of the following: * Requests originate from your
28
- # authentic app * Requests originate from an authentic, untampered device This
29
- # attestation is attached to every request your app makes to your Firebase
30
- # backend resources. The Firebase App Check REST API allows you to manage your
31
- # App Check configurations programmatically. It also allows you to exchange
32
- # attestation material for App Check tokens directly without using a Firebase
33
- # SDK. Finally, it allows you to obtain the public key set necessary to validate
34
- # an App Check token yourself. [Learn more about App Check](https://firebase.
35
- # google.com/docs/app-check).
24
+ # Firebase App Check works alongside other Firebase services to help protect
25
+ # your backend resources from abuse, such as billing fraud or phishing.
36
26
  #
37
27
  # @see https://firebase.google.com/docs/app-check
38
28
  module FirebaseappcheckV1beta
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseappcheck_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.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: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseappcheck_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.7.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseappcheck_v1beta
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1beta/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.8.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: