google-apis-firebaseappcheck_v1beta 0.13.0 → 0.14.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: 92ea483c616ff5168b7912af06a5fd1275734b724ac71ba7ae03586f6ed6a3c2
4
- data.tar.gz: 37fa8fa441f4fcea401194cd817d822dac858a400e790cc37be90a5279e6def1
3
+ metadata.gz: 829078b00b66daf8edfb4ebd535b57ca186e492633d97871de4319d3ba4c212c
4
+ data.tar.gz: '069236db7bde12d3402afe0af8f2c7d290bb3cc0a9fcd54641a53ff886eb2951'
5
5
  SHA512:
6
- metadata.gz: 6c38119f463be59ed2e1ccf1923491e0753c34b059886f6bf363b6ac4d6ba011a75aa5550bb4db15c7c3a2d9b8a8af78c4b2d050c5d6211927bd5893e9b52ac3
7
- data.tar.gz: ae71e61a7c7ad6a8190f62e448d1eeec01dd0243c543a3bfbf7b48fc47c3161e702331474786c700f35df8fd99f9050dfff22d9d233a1684442133682d9131ad
6
+ metadata.gz: cf014e9a00f9c3792007cc424e100d7e2c746533b4ad2c66d47a84e178cde586c9c9b352a451264f64fa005a67573a8d7d4b392cf7c10956d7e5f2a37b1d7961
7
+ data.tar.gz: 78c7a3ee48bd85cb2cef36a2b76db83eb4bd68da99b79d0e61f07876321f85595ba0c9282316bbb114909381c1dadfd5dc5e4f2baacdaf99a61eb53ed264994b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.14.0 (2022-03-29)
4
+
5
+ * Regenerated from discovery document revision 20220325
6
+
3
7
  ### v0.13.0 (2022-03-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20220318
@@ -200,6 +200,25 @@ module Google
200
200
  end
201
201
  end
202
202
 
203
+ # Response message for the BatchGetRecaptchaV3Configs method.
204
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
205
+ include Google::Apis::Core::Hashable
206
+
207
+ # RecaptchaV3Configs retrieved.
208
+ # Corresponds to the JSON property `configs`
209
+ # @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config>]
210
+ attr_accessor :configs
211
+
212
+ def initialize(**args)
213
+ update!(**args)
214
+ end
215
+
216
+ # Update properties of this object
217
+ def update!(**args)
218
+ @configs = args[:configs] if args.key?(:configs)
219
+ end
220
+ end
221
+
203
222
  # Response message for the BatchGetSafetyNetConfigs method.
204
223
  class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
205
224
  include Google::Apis::Core::Hashable
@@ -880,6 +899,55 @@ module Google
880
899
  end
881
900
  end
882
901
 
902
+ # An app's reCAPTCHA v3 configuration object. This configuration is used by
903
+ # ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by
904
+ # reCAPTCHA v3. It also controls certain properties of the returned App Check
905
+ # token, such as its ttl.
906
+ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
907
+ include Google::Apis::Core::Hashable
908
+
909
+ # Required. The relative resource name of the reCAPTCHA v3 configuration object,
910
+ # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaV3Config ``
911
+ # `
912
+ # Corresponds to the JSON property `name`
913
+ # @return [String]
914
+ attr_accessor :name
915
+
916
+ # Required. Input only. The site secret used to identify your service for
917
+ # reCAPTCHA v3 verification. For security reasons, this field will never be
918
+ # populated in any response.
919
+ # Corresponds to the JSON property `siteSecret`
920
+ # @return [String]
921
+ attr_accessor :site_secret
922
+
923
+ # Output only. Whether the `site_secret` field was previously set. Since we will
924
+ # never return the `site_secret` field, this field is the only way to find out
925
+ # whether it was previously set.
926
+ # Corresponds to the JSON property `siteSecretSet`
927
+ # @return [Boolean]
928
+ attr_accessor :site_secret_set
929
+ alias_method :site_secret_set?, :site_secret_set
930
+
931
+ # Specifies the duration for which App Check tokens exchanged from reCAPTCHA
932
+ # tokens will be valid. If unset, a default value of 1 day is assumed. Must be
933
+ # between 30 minutes and 7 days, inclusive.
934
+ # Corresponds to the JSON property `tokenTtl`
935
+ # @return [String]
936
+ attr_accessor :token_ttl
937
+
938
+ def initialize(**args)
939
+ update!(**args)
940
+ end
941
+
942
+ # Update properties of this object
943
+ def update!(**args)
944
+ @name = args[:name] if args.key?(:name)
945
+ @site_secret = args[:site_secret] if args.key?(:site_secret)
946
+ @site_secret_set = args[:site_secret_set] if args.key?(:site_secret_set)
947
+ @token_ttl = args[:token_ttl] if args.key?(:token_ttl)
948
+ end
949
+ end
950
+
883
951
  # An app's SafetyNet configuration object. This configuration controls certain
884
952
  # properties of the App Check token returned by ExchangeSafetyNetToken, such as
885
953
  # its ttl. Note that your registered SHA-256 certificate fingerprints are used
@@ -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.13.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220318"
25
+ REVISION = "20220325"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -202,6 +208,12 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class GoogleFirebaseAppcheckV1betaSafetyNetConfig
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -283,6 +295,14 @@ module Google
283
295
  end
284
296
  end
285
297
 
298
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ collection :configs, as: 'configs', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
302
+
303
+ end
304
+ end
305
+
286
306
  class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
287
307
  # @private
288
308
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -477,6 +497,16 @@ module Google
477
497
  end
478
498
  end
479
499
 
500
+ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
501
+ # @private
502
+ class Representation < Google::Apis::Core::JsonRepresentation
503
+ property :name, as: 'name'
504
+ property :site_secret, as: 'siteSecret'
505
+ property :site_secret_set, as: 'siteSecretSet'
506
+ property :token_ttl, as: 'tokenTtl'
507
+ end
508
+ end
509
+
480
510
  class GoogleFirebaseAppcheckV1betaSafetyNetConfig
481
511
  # @private
482
512
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1110,6 +1110,119 @@ module Google
1110
1110
  execute_or_queue_command(command, &block)
1111
1111
  end
1112
1112
 
1113
+ # Atomically gets the RecaptchaV3Configs for the specified list of apps. For
1114
+ # security reasons, the `site_secret` field is never populated in the response.
1115
+ # @param [String] parent
1116
+ # Required. The parent project name shared by all RecaptchaV3Configs being
1117
+ # retrieved, in the format ``` projects/`project_number` ``` The parent
1118
+ # collection in the `name` field of any resource being retrieved must match this
1119
+ # field, or the entire batch fails.
1120
+ # @param [Array<String>, String] names
1121
+ # Required. The relative resource names of the RecaptchaV3Configs to retrieve,
1122
+ # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaV3Config ``
1123
+ # ` A maximum of 100 objects can be retrieved in a batch.
1124
+ # @param [String] fields
1125
+ # Selector specifying which fields to include in a partial response.
1126
+ # @param [String] quota_user
1127
+ # Available to use for quota purposes for server-side applications. Can be any
1128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1129
+ # @param [Google::Apis::RequestOptions] options
1130
+ # Request-specific options
1131
+ #
1132
+ # @yield [result, err] Result & error if block supplied
1133
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse] parsed result object
1134
+ # @yieldparam err [StandardError] error object if request failed
1135
+ #
1136
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse]
1137
+ #
1138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
+ def batch_project_app_recaptcha_v3_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
1142
+ command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet', options)
1143
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse::Representation
1144
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
1145
+ command.params['parent'] = parent unless parent.nil?
1146
+ command.query['names'] = names unless names.nil?
1147
+ command.query['fields'] = fields unless fields.nil?
1148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1149
+ execute_or_queue_command(command, &block)
1150
+ end
1151
+
1152
+ # Gets the RecaptchaV3Config for the specified app. For security reasons, the `
1153
+ # site_secret` field is never populated in the response.
1154
+ # @param [String] name
1155
+ # Required. The relative resource name of the RecaptchaV3Config, in the format: `
1156
+ # `` projects/`project_number`/apps/`app_id`/recaptchaV3Config ```
1157
+ # @param [String] fields
1158
+ # Selector specifying which fields to include in a partial response.
1159
+ # @param [String] quota_user
1160
+ # Available to use for quota purposes for server-side applications. Can be any
1161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1162
+ # @param [Google::Apis::RequestOptions] options
1163
+ # Request-specific options
1164
+ #
1165
+ # @yield [result, err] Result & error if block supplied
1166
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config] parsed result object
1167
+ # @yieldparam err [StandardError] error object if request failed
1168
+ #
1169
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config]
1170
+ #
1171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1174
+ def get_project_app_recaptcha_v3_config(name, fields: nil, quota_user: nil, options: nil, &block)
1175
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
1176
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
1177
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config
1178
+ command.params['name'] = name unless name.nil?
1179
+ command.query['fields'] = fields unless fields.nil?
1180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1181
+ execute_or_queue_command(command, &block)
1182
+ end
1183
+
1184
+ # Updates the RecaptchaV3Config for the specified app. While this configuration
1185
+ # is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3
1186
+ # tokens for App Check tokens. For security reasons, the `site_secret` field is
1187
+ # never populated in the response.
1188
+ # @param [String] name
1189
+ # Required. The relative resource name of the reCAPTCHA v3 configuration object,
1190
+ # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaV3Config ``
1191
+ # `
1192
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config] google_firebase_appcheck_v1beta_recaptcha_v3_config_object
1193
+ # @param [String] update_mask
1194
+ # Required. A comma-separated list of names of fields in the RecaptchaV3Config
1195
+ # to update. Example: `site_secret`.
1196
+ # @param [String] fields
1197
+ # Selector specifying which fields to include in a partial response.
1198
+ # @param [String] quota_user
1199
+ # Available to use for quota purposes for server-side applications. Can be any
1200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def patch_project_app_recaptcha_v3_config(name, google_firebase_appcheck_v1beta_recaptcha_v3_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
1215
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
1216
+ command.request_object = google_firebase_appcheck_v1beta_recaptcha_v3_config_object
1217
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
1218
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config
1219
+ command.params['name'] = name unless name.nil?
1220
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1221
+ command.query['fields'] = fields unless fields.nil?
1222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1223
+ execute_or_queue_command(command, &block)
1224
+ end
1225
+
1113
1226
  # Atomically gets the SafetyNetConfigs for the specified list of apps.
1114
1227
  # @param [String] parent
1115
1228
  # Required. The parent project name shared by all SafetyNetConfigs being
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.13.0
4
+ version: 0.14.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: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.14.0
62
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: []