google-apis-firebaseappcheck_v1beta 0.33.0 → 0.35.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: c762f388d2522adb4486fa75369a0072ac13f6f526a494ad8136104083b98c71
4
- data.tar.gz: fb43c208385432f065163414dec615fbb376298071baea34c0899d1a4464c3de
3
+ metadata.gz: 25c6ff67611fa1264068932016796dee0aba72e4aae8b68abeab1c686fde4d77
4
+ data.tar.gz: ceb6095b3a462ea7199152f65c2e91f08a598598e5529d160bff3b53d814c694
5
5
  SHA512:
6
- metadata.gz: ab1e1743150a09a111211cb39cd0d193ea579b3c45041950a7d954eb71027f1ca811eb3a192a65cfa3aa19682c0f310a6bbef6f0f17e1883da0b8edc4c5a8b8d
7
- data.tar.gz: bdfbc83453832c476b2c38fd0e2df794868d7f1b1290805e8925816c34f1ad2474a290083e2f5b9b96f0256a60aa5a53146a71129374a6e579be81a09868758b
6
+ metadata.gz: 16b81c07dc1deea8a638f09ae1ac20de257b1caa55572b56fd0dced49a56aec5aa857d28c2ff606ae1311f0f93fc7ecb769b09fa7c8f4f935f4d0f1fac63436c
7
+ data.tar.gz: 8f43a8382997cb74622324d792ae483ef252adc5f3fe0483e3c5f9397d96e4da47f9ca5c33549dd56233c36d98d59071e29d21e3569b038f7809df1b92778e0a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.35.0 (2024-01-23)
4
+
5
+ * Regenerated using generator version 0.13.0
6
+
7
+ ### v0.34.0 (2023-12-10)
8
+
9
+ * Regenerated from discovery document revision 20231204
10
+
3
11
  ### v0.33.0 (2023-10-15)
4
12
 
5
13
  * Regenerated from discovery document revision 20231009
@@ -257,6 +257,55 @@ module Google
257
257
  end
258
258
  end
259
259
 
260
+ # Request message for the BatchUpdateResourcePolicies method.
261
+ class GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # Required. The request messages specifying the ResourcePolicys to update. A
265
+ # maximum of 100 objects can be updated in a batch.
266
+ # Corresponds to the JSON property `requests`
267
+ # @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest>]
268
+ attr_accessor :requests
269
+
270
+ # Optional. A comma-separated list of names of fields in the
271
+ # ResourceConfigurations to update. Example: `enforcement_mode`. If this field
272
+ # is present, the `update_mask` field in the UpdateResourcePolicyRequest
273
+ # messages must all match this field, or the entire batch fails and no updates
274
+ # will be committed.
275
+ # Corresponds to the JSON property `updateMask`
276
+ # @return [String]
277
+ attr_accessor :update_mask
278
+
279
+ def initialize(**args)
280
+ update!(**args)
281
+ end
282
+
283
+ # Update properties of this object
284
+ def update!(**args)
285
+ @requests = args[:requests] if args.key?(:requests)
286
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
287
+ end
288
+ end
289
+
290
+ # Response message for the BatchUpdateResourcePolicies method.
291
+ class GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse
292
+ include Google::Apis::Core::Hashable
293
+
294
+ # ResourcePolicy objects after the updates have been applied.
295
+ # Corresponds to the JSON property `resourcePolicies`
296
+ # @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy>]
297
+ attr_accessor :resource_policies
298
+
299
+ def initialize(**args)
300
+ update!(**args)
301
+ end
302
+
303
+ # Update properties of this object
304
+ def update!(**args)
305
+ @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
306
+ end
307
+ end
308
+
260
309
  # Request message for the BatchUpdateServices method.
261
310
  class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
262
311
  include Google::Apis::Core::Hashable
@@ -866,6 +915,35 @@ module Google
866
915
  end
867
916
  end
868
917
 
918
+ # Response message for the ListResourcePolicies method.
919
+ class GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse
920
+ include Google::Apis::Core::Hashable
921
+
922
+ # If the result list is too large to fit in a single response, then a token is
923
+ # returned. If the string is empty or omitted, then this response is the last
924
+ # page of results. This token can be used in a subsequent call to
925
+ # ListResourcePolicies to find the next group of ResourcePolicys. Page tokens
926
+ # are short-lived and should not be persisted.
927
+ # Corresponds to the JSON property `nextPageToken`
928
+ # @return [String]
929
+ attr_accessor :next_page_token
930
+
931
+ # The ResourcePolicys retrieved.
932
+ # Corresponds to the JSON property `resourcePolicies`
933
+ # @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy>]
934
+ attr_accessor :resource_policies
935
+
936
+ def initialize(**args)
937
+ update!(**args)
938
+ end
939
+
940
+ # Update properties of this object
941
+ def update!(**args)
942
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
943
+ @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
944
+ end
945
+ end
946
+
869
947
  # Response message for the ListServices method.
870
948
  class GoogleFirebaseAppcheckV1betaListServicesResponse
871
949
  include Google::Apis::Core::Hashable
@@ -1146,6 +1224,67 @@ module Google
1146
1224
  end
1147
1225
  end
1148
1226
 
1227
+ # App Check enforcement policy for a specific resource of a Firebase service
1228
+ # supported by App Check. Note that this policy will override the Service level
1229
+ # enforcement mode configuration.
1230
+ class GoogleFirebaseAppcheckV1betaResourcePolicy
1231
+ include Google::Apis::Core::Hashable
1232
+
1233
+ # Required. The App Check enforcement mode for this resource. This will override
1234
+ # the EnforcementMode setting on the service. For new resources that you are
1235
+ # creating, you should consider setting an override and enable enforcement on
1236
+ # the resource immediately, if there are no outdated clients that can use it.
1237
+ # Corresponds to the JSON property `enforcementMode`
1238
+ # @return [String]
1239
+ attr_accessor :enforcement_mode
1240
+
1241
+ # This checksum is computed by the server based on the value of other fields,
1242
+ # and may be sent on update and delete requests to ensure the client has an up-
1243
+ # to-date value before proceeding. This etag is strongly validated.
1244
+ # Corresponds to the JSON property `etag`
1245
+ # @return [String]
1246
+ attr_accessor :etag
1247
+
1248
+ # Required. The relative name of the resource configuration object, in the
1249
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
1250
+ # resource_policy_id` ``` Note that the `service_id` element must be a supported
1251
+ # service ID. Currently, the following service IDs are supported: * `oauth2.
1252
+ # googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-
1253
+ # generated UID used as the resource ID for the policy.
1254
+ # Corresponds to the JSON property `name`
1255
+ # @return [String]
1256
+ attr_accessor :name
1257
+
1258
+ # Required. Service specific name of the resource object to which this policy
1259
+ # applies, in the format: * `//oauth2.googleapis.com/projects/`project`/
1260
+ # oauthClients/`oauth_client_id`` (Google Identity for iOS) NOTE that the
1261
+ # resource must belong to the service specified in the `name` and be from the
1262
+ # same project as this policy, but it may or may not exist at the time of
1263
+ # creation of the policy.
1264
+ # Corresponds to the JSON property `targetResource`
1265
+ # @return [String]
1266
+ attr_accessor :target_resource
1267
+
1268
+ # Output only. Timestamp when this service configuration object was most
1269
+ # recently updated.
1270
+ # Corresponds to the JSON property `updateTime`
1271
+ # @return [String]
1272
+ attr_accessor :update_time
1273
+
1274
+ def initialize(**args)
1275
+ update!(**args)
1276
+ end
1277
+
1278
+ # Update properties of this object
1279
+ def update!(**args)
1280
+ @enforcement_mode = args[:enforcement_mode] if args.key?(:enforcement_mode)
1281
+ @etag = args[:etag] if args.key?(:etag)
1282
+ @name = args[:name] if args.key?(:name)
1283
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
1284
+ @update_time = args[:update_time] if args.key?(:update_time)
1285
+ end
1286
+ end
1287
+
1149
1288
  # An app's SafetyNet configuration object. This configuration controls certain
1150
1289
  # properties of the `AppCheckToken` returned by ExchangeSafetyNetToken, such as
1151
1290
  # its ttl. Note that your registered SHA-256 certificate fingerprints are used
@@ -1227,6 +1366,35 @@ module Google
1227
1366
  end
1228
1367
  end
1229
1368
 
1369
+ # Request message for the UpdateResourcePolicy method as well as an individual
1370
+ # update message for the BatchUpdateResourcePolicies method.
1371
+ class GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest
1372
+ include Google::Apis::Core::Hashable
1373
+
1374
+ # App Check enforcement policy for a specific resource of a Firebase service
1375
+ # supported by App Check. Note that this policy will override the Service level
1376
+ # enforcement mode configuration.
1377
+ # Corresponds to the JSON property `resourcePolicy`
1378
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy]
1379
+ attr_accessor :resource_policy
1380
+
1381
+ # Required. A comma-separated list of names of fields in the ResourcePolicy to
1382
+ # update. Example: `enforcement_mode`.
1383
+ # Corresponds to the JSON property `updateMask`
1384
+ # @return [String]
1385
+ attr_accessor :update_mask
1386
+
1387
+ def initialize(**args)
1388
+ update!(**args)
1389
+ end
1390
+
1391
+ # Update properties of this object
1392
+ def update!(**args)
1393
+ @resource_policy = args[:resource_policy] if args.key?(:resource_policy)
1394
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1395
+ end
1396
+ end
1397
+
1230
1398
  # Request message for the UpdateService method as well as an individual update
1231
1399
  # message for the BatchUpdateServices method.
1232
1400
  class GoogleFirebaseAppcheckV1betaUpdateServiceRequest
@@ -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.33.0"
19
+ GEM_VERSION = "0.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231009"
25
+ REVISION = "20231204"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,18 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -202,6 +214,12 @@ module Google
202
214
  include Google::Apis::Core::JsonObjectSupport
203
215
  end
204
216
 
217
+ class GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
205
223
  class GoogleFirebaseAppcheckV1betaListServicesResponse
206
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
225
 
@@ -244,6 +262,12 @@ module Google
244
262
  include Google::Apis::Core::JsonObjectSupport
245
263
  end
246
264
 
265
+ class GoogleFirebaseAppcheckV1betaResourcePolicy
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
247
271
  class GoogleFirebaseAppcheckV1betaSafetyNetConfig
248
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
273
 
@@ -256,6 +280,12 @@ module Google
256
280
  include Google::Apis::Core::JsonObjectSupport
257
281
  end
258
282
 
283
+ class GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
259
289
  class GoogleFirebaseAppcheckV1betaUpdateServiceRequest
260
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
291
 
@@ -361,6 +391,23 @@ module Google
361
391
  end
362
392
  end
363
393
 
394
+ class GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest
395
+ # @private
396
+ class Representation < Google::Apis::Core::JsonRepresentation
397
+ collection :requests, as: 'requests', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest::Representation
398
+
399
+ property :update_mask, as: 'updateMask'
400
+ end
401
+ end
402
+
403
+ class GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ collection :resource_policies, as: 'resourcePolicies', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
407
+
408
+ end
409
+ end
410
+
364
411
  class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
365
412
  # @private
366
413
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -528,6 +575,15 @@ module Google
528
575
  end
529
576
  end
530
577
 
578
+ class GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse
579
+ # @private
580
+ class Representation < Google::Apis::Core::JsonRepresentation
581
+ property :next_page_token, as: 'nextPageToken'
582
+ collection :resource_policies, as: 'resourcePolicies', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
583
+
584
+ end
585
+ end
586
+
531
587
  class GoogleFirebaseAppcheckV1betaListServicesResponse
532
588
  # @private
533
589
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -594,6 +650,17 @@ module Google
594
650
  end
595
651
  end
596
652
 
653
+ class GoogleFirebaseAppcheckV1betaResourcePolicy
654
+ # @private
655
+ class Representation < Google::Apis::Core::JsonRepresentation
656
+ property :enforcement_mode, as: 'enforcementMode'
657
+ property :etag, as: 'etag'
658
+ property :name, as: 'name'
659
+ property :target_resource, as: 'targetResource'
660
+ property :update_time, as: 'updateTime'
661
+ end
662
+ end
663
+
597
664
  class GoogleFirebaseAppcheckV1betaSafetyNetConfig
598
665
  # @private
599
666
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -612,6 +679,15 @@ module Google
612
679
  end
613
680
  end
614
681
 
682
+ class GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest
683
+ # @private
684
+ class Representation < Google::Apis::Core::JsonRepresentation
685
+ property :resource_policy, as: 'resourcePolicy', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
686
+
687
+ property :update_mask, as: 'updateMask'
688
+ end
689
+ end
690
+
615
691
  class GoogleFirebaseAppcheckV1betaUpdateServiceRequest
616
692
  # @private
617
693
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://firebase.google.com/docs/app-check
35
35
  class FirebaseappcheckService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://firebaseappcheck.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://firebaseappcheck.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-firebaseappcheck_v1beta',
49
51
  client_version: Google::Apis::FirebaseappcheckV1beta::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -1899,6 +1901,239 @@ module Google
1899
1901
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1900
1902
  execute_or_queue_command(command, &block)
1901
1903
  end
1904
+
1905
+ # Atomically updates the specified ResourcePolicy configurations.
1906
+ # @param [String] parent
1907
+ # Required. The parent project name and the service, in the format ``` projects/`
1908
+ # project_number`/services/`service_id` ``` The parent collection in the `name`
1909
+ # field of any resource being updated must match this field, or the entire batch
1910
+ # fails.
1911
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest] google_firebase_appcheck_v1beta_batch_update_resource_policies_request_object
1912
+ # @param [String] fields
1913
+ # Selector specifying which fields to include in a partial response.
1914
+ # @param [String] quota_user
1915
+ # Available to use for quota purposes for server-side applications. Can be any
1916
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1917
+ # @param [Google::Apis::RequestOptions] options
1918
+ # Request-specific options
1919
+ #
1920
+ # @yield [result, err] Result & error if block supplied
1921
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse] parsed result object
1922
+ # @yieldparam err [StandardError] error object if request failed
1923
+ #
1924
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse]
1925
+ #
1926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1929
+ def batch_project_service_resource_policy_update(parent, google_firebase_appcheck_v1beta_batch_update_resource_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1930
+ command = make_simple_command(:post, 'v1beta/{+parent}/resourcePolicies:batchUpdate', options)
1931
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest::Representation
1932
+ command.request_object = google_firebase_appcheck_v1beta_batch_update_resource_policies_request_object
1933
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse::Representation
1934
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesResponse
1935
+ command.params['parent'] = parent unless parent.nil?
1936
+ command.query['fields'] = fields unless fields.nil?
1937
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1938
+ execute_or_queue_command(command, &block)
1939
+ end
1940
+
1941
+ # Creates the specified ResourcePolicy configuration.
1942
+ # @param [String] parent
1943
+ # Required. The relative resource name of the parent service in which the
1944
+ # specified ResourcePolicy will be created, in the format: ``` projects/`
1945
+ # project_number`/services/`service_id` ``` Note that the `service_id` element
1946
+ # must be a supported service ID. Currently, the following service IDs are
1947
+ # supported: * `oauth2.googleapis.com` (Google Identity for iOS)
1948
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy] google_firebase_appcheck_v1beta_resource_policy_object
1949
+ # @param [String] fields
1950
+ # Selector specifying which fields to include in a partial response.
1951
+ # @param [String] quota_user
1952
+ # Available to use for quota purposes for server-side applications. Can be any
1953
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1954
+ # @param [Google::Apis::RequestOptions] options
1955
+ # Request-specific options
1956
+ #
1957
+ # @yield [result, err] Result & error if block supplied
1958
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy] parsed result object
1959
+ # @yieldparam err [StandardError] error object if request failed
1960
+ #
1961
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy]
1962
+ #
1963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1966
+ def create_project_service_resource_policy(parent, google_firebase_appcheck_v1beta_resource_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1967
+ command = make_simple_command(:post, 'v1beta/{+parent}/resourcePolicies', options)
1968
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
1969
+ command.request_object = google_firebase_appcheck_v1beta_resource_policy_object
1970
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
1971
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy
1972
+ command.params['parent'] = parent unless parent.nil?
1973
+ command.query['fields'] = fields unless fields.nil?
1974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1975
+ execute_or_queue_command(command, &block)
1976
+ end
1977
+
1978
+ # Deletes the specified ResourcePolicy configuration.
1979
+ # @param [String] name
1980
+ # Required. The relative resource name of the ResourcePolicy to delete, in the
1981
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
1982
+ # resource_name` ```
1983
+ # @param [String] etag
1984
+ # The checksum to be validated against the current ResourcePolicy, to ensure the
1985
+ # client has an up-to-date value before proceeding. The user can obtain this
1986
+ # from the ResourcePolicy object that they last received. This etag is strongly
1987
+ # validated.
1988
+ # @param [String] fields
1989
+ # Selector specifying which fields to include in a partial response.
1990
+ # @param [String] quota_user
1991
+ # Available to use for quota purposes for server-side applications. Can be any
1992
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1993
+ # @param [Google::Apis::RequestOptions] options
1994
+ # Request-specific options
1995
+ #
1996
+ # @yield [result, err] Result & error if block supplied
1997
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty] parsed result object
1998
+ # @yieldparam err [StandardError] error object if request failed
1999
+ #
2000
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty]
2001
+ #
2002
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2003
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2004
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2005
+ def delete_project_service_resource_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
2006
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
2007
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty::Representation
2008
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty
2009
+ command.params['name'] = name unless name.nil?
2010
+ command.query['etag'] = etag unless etag.nil?
2011
+ command.query['fields'] = fields unless fields.nil?
2012
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2013
+ execute_or_queue_command(command, &block)
2014
+ end
2015
+
2016
+ # Gets the requested ResourcePolicy configuration.
2017
+ # @param [String] name
2018
+ # Required. The relative resource name of the ResourcePolicy to retrieve, in the
2019
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
2020
+ # resource_policy_id` ``` Note that the `service_id` element must be a supported
2021
+ # service ID. Currently, the following service IDs are supported: * `oauth2.
2022
+ # googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-
2023
+ # generated UID used as the resource ID for the policy.
2024
+ # @param [String] fields
2025
+ # Selector specifying which fields to include in a partial response.
2026
+ # @param [String] quota_user
2027
+ # Available to use for quota purposes for server-side applications. Can be any
2028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2029
+ # @param [Google::Apis::RequestOptions] options
2030
+ # Request-specific options
2031
+ #
2032
+ # @yield [result, err] Result & error if block supplied
2033
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy] parsed result object
2034
+ # @yieldparam err [StandardError] error object if request failed
2035
+ #
2036
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy]
2037
+ #
2038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2041
+ def get_project_service_resource_policy(name, fields: nil, quota_user: nil, options: nil, &block)
2042
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
2043
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
2044
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy
2045
+ command.params['name'] = name unless name.nil?
2046
+ command.query['fields'] = fields unless fields.nil?
2047
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2048
+ execute_or_queue_command(command, &block)
2049
+ end
2050
+
2051
+ # Lists all ResourcePolicy configurations for the specified project and service.
2052
+ # @param [String] parent
2053
+ # Required. The relative resource name of the parent project and service for
2054
+ # which to list each associated ResourcePolicy, in the format: ``` projects/`
2055
+ # project_number`/services/`service_name` ```
2056
+ # @param [Fixnum] page_size
2057
+ # The maximum number of ResourcePolicys to return in the response. Only
2058
+ # explicitly configured policies are returned. The server may return fewer than
2059
+ # this at its own discretion. If no value is specified (or too large a value is
2060
+ # specified), the server will impose its own limit.
2061
+ # @param [String] page_token
2062
+ # Token returned from a previous call to ListResourcePolicies indicating where
2063
+ # in the set of ResourcePolicys to resume listing. Provide this to retrieve the
2064
+ # subsequent page. When paginating, all other parameters provided to
2065
+ # ListResourcePolicies must match the call that provided the page token; if they
2066
+ # do not match, the result is undefined.
2067
+ # @param [String] fields
2068
+ # Selector specifying which fields to include in a partial response.
2069
+ # @param [String] quota_user
2070
+ # Available to use for quota purposes for server-side applications. Can be any
2071
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2072
+ # @param [Google::Apis::RequestOptions] options
2073
+ # Request-specific options
2074
+ #
2075
+ # @yield [result, err] Result & error if block supplied
2076
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse] parsed result object
2077
+ # @yieldparam err [StandardError] error object if request failed
2078
+ #
2079
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse]
2080
+ #
2081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2084
+ def list_project_service_resource_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2085
+ command = make_simple_command(:get, 'v1beta/{+parent}/resourcePolicies', options)
2086
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse::Representation
2087
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse
2088
+ command.params['parent'] = parent unless parent.nil?
2089
+ command.query['pageSize'] = page_size unless page_size.nil?
2090
+ command.query['pageToken'] = page_token unless page_token.nil?
2091
+ command.query['fields'] = fields unless fields.nil?
2092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2093
+ execute_or_queue_command(command, &block)
2094
+ end
2095
+
2096
+ # Updates the specified ResourcePolicy configuration.
2097
+ # @param [String] name
2098
+ # Required. The relative name of the resource configuration object, in the
2099
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
2100
+ # resource_policy_id` ``` Note that the `service_id` element must be a supported
2101
+ # service ID. Currently, the following service IDs are supported: * `oauth2.
2102
+ # googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-
2103
+ # generated UID used as the resource ID for the policy.
2104
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy] google_firebase_appcheck_v1beta_resource_policy_object
2105
+ # @param [String] update_mask
2106
+ # Required. A comma-separated list of names of fields in the ResourcePolicy to
2107
+ # update. Example: `enforcement_mode`.
2108
+ # @param [String] fields
2109
+ # Selector specifying which fields to include in a partial response.
2110
+ # @param [String] quota_user
2111
+ # Available to use for quota purposes for server-side applications. Can be any
2112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2113
+ # @param [Google::Apis::RequestOptions] options
2114
+ # Request-specific options
2115
+ #
2116
+ # @yield [result, err] Result & error if block supplied
2117
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy] parsed result object
2118
+ # @yieldparam err [StandardError] error object if request failed
2119
+ #
2120
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy]
2121
+ #
2122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2125
+ def patch_project_service_resource_policy(name, google_firebase_appcheck_v1beta_resource_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2126
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
2127
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
2128
+ command.request_object = google_firebase_appcheck_v1beta_resource_policy_object
2129
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy::Representation
2130
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaResourcePolicy
2131
+ command.params['name'] = name unless name.nil?
2132
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2133
+ command.query['fields'] = fields unless fields.nil?
2134
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2135
+ execute_or_queue_command(command, &block)
2136
+ end
1902
2137
 
1903
2138
  protected
1904
2139
 
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.33.0
4
+ version: 0.35.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: 2023-10-15 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.35.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Firebase App Check API V1beta