google-apis-firebaseappcheck_v1 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eca7f1eb6fca1e4078b1c286ad46933c7841f6c5b784a847fe6f7996a79ce620
4
- data.tar.gz: 5cbe03a67ca4c4b38c93e512ab3576de773cdedbec1352efc9bd631675e81643
3
+ metadata.gz: e21babbb1898129b5fff22241039205b605b1a44864e040d7c4afc0a89d40cd7
4
+ data.tar.gz: 79caad80939bf37d4dccf587988bae07d13d50581a483f91d9891cf6765f1617
5
5
  SHA512:
6
- metadata.gz: 0f1581968255a39ada2532552970f1fe9490d18d2162af98b5e90a4dc7c590dcf536a48f3f4c690d31d024a17f38ed014c16401be545db67a405597fa38a1d0f
7
- data.tar.gz: 6535f175b227bb065624b1a23f8a208e245db69abf71443b993998e9d57b45f28e920cb13403198db2c13d4b249a563524ae6b4e5c971c1ad5c55b4d6fd56bac
6
+ metadata.gz: fcbe4610fb7e56710845eb40793b8dd46bf48a497bf9303f16e4264dec92201d7df049558813772c20ecb729c374e441926a79944678ec8a98e56894468e4917
7
+ data.tar.gz: bf79417c597a9328af81b4f249282af2c445f87ec07a65ca511086899ebc7427e40fbc9a8b564ae9f1c8952c79685d12efb1426fd4b2549688e6f722cb0e54a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1
2
2
 
3
+ ### v0.17.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240708
6
+
3
7
  ### v0.16.0 (2024-06-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20240528
@@ -203,6 +203,54 @@ module Google
203
203
  end
204
204
  end
205
205
 
206
+ # Request message for the BatchUpdateResourcePolicies method.
207
+ class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest
208
+ include Google::Apis::Core::Hashable
209
+
210
+ # Required. The request messages specifying the ResourcePolicy objects to update.
211
+ # A maximum of 100 objects can be updated in a batch.
212
+ # Corresponds to the JSON property `requests`
213
+ # @return [Array<Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest>]
214
+ attr_accessor :requests
215
+
216
+ # Optional. A comma-separated list of names of fields in the ResourcePolicy
217
+ # objects to update. Example: `enforcement_mode`. If this field is present, the `
218
+ # update_mask` field in the UpdateResourcePolicyRequest messages must all match
219
+ # this field, or the entire batch fails and no updates will be committed.
220
+ # Corresponds to the JSON property `updateMask`
221
+ # @return [String]
222
+ attr_accessor :update_mask
223
+
224
+ def initialize(**args)
225
+ update!(**args)
226
+ end
227
+
228
+ # Update properties of this object
229
+ def update!(**args)
230
+ @requests = args[:requests] if args.key?(:requests)
231
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
232
+ end
233
+ end
234
+
235
+ # Response message for the BatchUpdateResourcePolicies method.
236
+ class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse
237
+ include Google::Apis::Core::Hashable
238
+
239
+ # ResourcePolicy objects after the updates have been applied.
240
+ # Corresponds to the JSON property `resourcePolicies`
241
+ # @return [Array<Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy>]
242
+ attr_accessor :resource_policies
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
251
+ end
252
+ end
253
+
206
254
  # Request message for the BatchUpdateServices method.
207
255
  class GoogleFirebaseAppcheckV1BatchUpdateServicesRequest
208
256
  include Google::Apis::Core::Hashable
@@ -791,6 +839,35 @@ module Google
791
839
  end
792
840
  end
793
841
 
842
+ # Response message for the ListResourcePolicies method.
843
+ class GoogleFirebaseAppcheckV1ListResourcePoliciesResponse
844
+ include Google::Apis::Core::Hashable
845
+
846
+ # If the result list is too large to fit in a single response, then a token is
847
+ # returned. If the string is empty or omitted, then this response is the last
848
+ # page of results. This token can be used in a subsequent call to
849
+ # ListResourcePolicies to find the next group of ResourcePolicy objects. Page
850
+ # tokens are short-lived and should not be persisted.
851
+ # Corresponds to the JSON property `nextPageToken`
852
+ # @return [String]
853
+ attr_accessor :next_page_token
854
+
855
+ # The ResourcePolicy objects retrieved.
856
+ # Corresponds to the JSON property `resourcePolicies`
857
+ # @return [Array<Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy>]
858
+ attr_accessor :resource_policies
859
+
860
+ def initialize(**args)
861
+ update!(**args)
862
+ end
863
+
864
+ # Update properties of this object
865
+ def update!(**args)
866
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
867
+ @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
868
+ end
869
+ end
870
+
794
871
  # Response message for the ListServices method.
795
872
  class GoogleFirebaseAppcheckV1ListServicesResponse
796
873
  include Google::Apis::Core::Hashable
@@ -1023,6 +1100,68 @@ module Google
1023
1100
  end
1024
1101
  end
1025
1102
 
1103
+ # App Check enforcement policy for a specific resource of a Firebase service
1104
+ # supported by App Check. Note that this policy will override the service-level
1105
+ # configuration.
1106
+ class GoogleFirebaseAppcheckV1ResourcePolicy
1107
+ include Google::Apis::Core::Hashable
1108
+
1109
+ # Required. The App Check enforcement mode for this resource. This will override
1110
+ # the EnforcementMode setting on the service.
1111
+ # Corresponds to the JSON property `enforcementMode`
1112
+ # @return [String]
1113
+ attr_accessor :enforcement_mode
1114
+
1115
+ # This checksum is computed by the server based on the value of other fields,
1116
+ # and may be sent on update and delete requests to ensure the client has an up-
1117
+ # to-date value before proceeding. This etag is strongly validated as defined by
1118
+ # RFC 7232.
1119
+ # Corresponds to the JSON property `etag`
1120
+ # @return [String]
1121
+ attr_accessor :etag
1122
+
1123
+ # Required. Identifier. The relative name of the resource policy object, in the
1124
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
1125
+ # resource_policy_id` ``` Note that the `service_id` element must be a supported
1126
+ # service ID. Currently, the following service IDs are supported: * `oauth2.
1127
+ # googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-
1128
+ # generated UID.
1129
+ # Corresponds to the JSON property `name`
1130
+ # @return [String]
1131
+ attr_accessor :name
1132
+
1133
+ # Required. Service specific name of the resource object to which this policy
1134
+ # applies, in the format: * `//oauth2.googleapis.com/projects/`project_number`/
1135
+ # oauthClients/`oauth_client_id`` (Google Identity for iOS) Note that the
1136
+ # resource must belong to the service specified in the `name` and be from the
1137
+ # same project as this policy, but the resource is allowed to be missing at the
1138
+ # time of creation of this policy; in that case, we make a best-effort attempt
1139
+ # at respecting this policy, but it may not have any effect until the resource
1140
+ # is fully created.
1141
+ # Corresponds to the JSON property `targetResource`
1142
+ # @return [String]
1143
+ attr_accessor :target_resource
1144
+
1145
+ # Output only. Timestamp when this resource policy configuration object was most
1146
+ # recently updated.
1147
+ # Corresponds to the JSON property `updateTime`
1148
+ # @return [String]
1149
+ attr_accessor :update_time
1150
+
1151
+ def initialize(**args)
1152
+ update!(**args)
1153
+ end
1154
+
1155
+ # Update properties of this object
1156
+ def update!(**args)
1157
+ @enforcement_mode = args[:enforcement_mode] if args.key?(:enforcement_mode)
1158
+ @etag = args[:etag] if args.key?(:etag)
1159
+ @name = args[:name] if args.key?(:name)
1160
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
1161
+ @update_time = args[:update_time] if args.key?(:update_time)
1162
+ end
1163
+ end
1164
+
1026
1165
  # An app's SafetyNet configuration object. This configuration controls certain
1027
1166
  # properties of the `AppCheckToken` returned by ExchangeSafetyNetToken, such as
1028
1167
  # its ttl. Note that your registered SHA-256 certificate fingerprints are used
@@ -1087,6 +1226,35 @@ module Google
1087
1226
  end
1088
1227
  end
1089
1228
 
1229
+ # Request message for the UpdateResourcePolicy method as well as an individual
1230
+ # update message for the BatchUpdateResourcePolicies method.
1231
+ class GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest
1232
+ include Google::Apis::Core::Hashable
1233
+
1234
+ # App Check enforcement policy for a specific resource of a Firebase service
1235
+ # supported by App Check. Note that this policy will override the service-level
1236
+ # configuration.
1237
+ # Corresponds to the JSON property `resourcePolicy`
1238
+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy]
1239
+ attr_accessor :resource_policy
1240
+
1241
+ # Required. A comma-separated list of names of fields in the ResourcePolicy to
1242
+ # update. Example: `enforcement_mode`.
1243
+ # Corresponds to the JSON property `updateMask`
1244
+ # @return [String]
1245
+ attr_accessor :update_mask
1246
+
1247
+ def initialize(**args)
1248
+ update!(**args)
1249
+ end
1250
+
1251
+ # Update properties of this object
1252
+ def update!(**args)
1253
+ @resource_policy = args[:resource_policy] if args.key?(:resource_policy)
1254
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1255
+ end
1256
+ end
1257
+
1090
1258
  # Request message for the UpdateService method as well as an individual update
1091
1259
  # message for the BatchUpdateServices method.
1092
1260
  class GoogleFirebaseAppcheckV1UpdateServiceRequest
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebaseappcheckV1
18
18
  # Version of the google-apis-firebaseappcheck_v1 gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240528"
25
+ REVISION = "20240708"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,18 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
73
85
  class GoogleFirebaseAppcheckV1BatchUpdateServicesRequest
74
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
87
 
@@ -184,6 +196,12 @@ module Google
184
196
  include Google::Apis::Core::JsonObjectSupport
185
197
  end
186
198
 
199
+ class GoogleFirebaseAppcheckV1ListResourcePoliciesResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
187
205
  class GoogleFirebaseAppcheckV1ListServicesResponse
188
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
207
 
@@ -220,6 +238,12 @@ module Google
220
238
  include Google::Apis::Core::JsonObjectSupport
221
239
  end
222
240
 
241
+ class GoogleFirebaseAppcheckV1ResourcePolicy
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
223
247
  class GoogleFirebaseAppcheckV1SafetyNetConfig
224
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
249
 
@@ -232,6 +256,12 @@ module Google
232
256
  include Google::Apis::Core::JsonObjectSupport
233
257
  end
234
258
 
259
+ class GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
235
265
  class GoogleFirebaseAppcheckV1UpdateServiceRequest
236
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
267
 
@@ -308,6 +338,23 @@ module Google
308
338
  end
309
339
  end
310
340
 
341
+ class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ collection :requests, as: 'requests', class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest, decorator: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest::Representation
345
+
346
+ property :update_mask, as: 'updateMask'
347
+ end
348
+ end
349
+
350
+ class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ collection :resource_policies, as: 'resourcePolicies', class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy, decorator: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
354
+
355
+ end
356
+ end
357
+
311
358
  class GoogleFirebaseAppcheckV1BatchUpdateServicesRequest
312
359
  # @private
313
360
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -467,6 +514,15 @@ module Google
467
514
  end
468
515
  end
469
516
 
517
+ class GoogleFirebaseAppcheckV1ListResourcePoliciesResponse
518
+ # @private
519
+ class Representation < Google::Apis::Core::JsonRepresentation
520
+ property :next_page_token, as: 'nextPageToken'
521
+ collection :resource_policies, as: 'resourcePolicies', class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy, decorator: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
522
+
523
+ end
524
+ end
525
+
470
526
  class GoogleFirebaseAppcheckV1ListServicesResponse
471
527
  # @private
472
528
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -523,6 +579,17 @@ module Google
523
579
  end
524
580
  end
525
581
 
582
+ class GoogleFirebaseAppcheckV1ResourcePolicy
583
+ # @private
584
+ class Representation < Google::Apis::Core::JsonRepresentation
585
+ property :enforcement_mode, as: 'enforcementMode'
586
+ property :etag, as: 'etag'
587
+ property :name, as: 'name'
588
+ property :target_resource, as: 'targetResource'
589
+ property :update_time, as: 'updateTime'
590
+ end
591
+ end
592
+
526
593
  class GoogleFirebaseAppcheckV1SafetyNetConfig
527
594
  # @private
528
595
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -539,6 +606,15 @@ module Google
539
606
  end
540
607
  end
541
608
 
609
+ class GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest
610
+ # @private
611
+ class Representation < Google::Apis::Core::JsonRepresentation
612
+ property :resource_policy, as: 'resourcePolicy', class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy, decorator: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
613
+
614
+ property :update_mask, as: 'updateMask'
615
+ end
616
+ end
617
+
542
618
  class GoogleFirebaseAppcheckV1UpdateServiceRequest
543
619
  # @private
544
620
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1692,6 +1692,253 @@ module Google
1692
1692
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1693
1693
  execute_or_queue_command(command, &block)
1694
1694
  end
1695
+
1696
+ # Atomically updates the specified ResourcePolicy configurations.
1697
+ # @param [String] parent
1698
+ # Required. The parent service name, in the format ``` projects/`project_number`/
1699
+ # services/`service_id` ``` The parent collection in the `name` field of any
1700
+ # resource being updated must match this field, or the entire batch fails.
1701
+ # @param [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest] google_firebase_appcheck_v1_batch_update_resource_policies_request_object
1702
+ # @param [String] fields
1703
+ # Selector specifying which fields to include in a partial response.
1704
+ # @param [String] quota_user
1705
+ # Available to use for quota purposes for server-side applications. Can be any
1706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1707
+ # @param [Google::Apis::RequestOptions] options
1708
+ # Request-specific options
1709
+ #
1710
+ # @yield [result, err] Result & error if block supplied
1711
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse] parsed result object
1712
+ # @yieldparam err [StandardError] error object if request failed
1713
+ #
1714
+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse]
1715
+ #
1716
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1717
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1718
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1719
+ def batch_project_service_resource_policy_update(parent, google_firebase_appcheck_v1_batch_update_resource_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1720
+ command = make_simple_command(:post, 'v1/{+parent}/resourcePolicies:batchUpdate', options)
1721
+ command.request_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest::Representation
1722
+ command.request_object = google_firebase_appcheck_v1_batch_update_resource_policies_request_object
1723
+ command.response_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse::Representation
1724
+ command.response_class = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse
1725
+ command.params['parent'] = parent unless parent.nil?
1726
+ command.query['fields'] = fields unless fields.nil?
1727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1728
+ execute_or_queue_command(command, &block)
1729
+ end
1730
+
1731
+ # Creates the specified ResourcePolicy configuration.
1732
+ # @param [String] parent
1733
+ # Required. The relative resource name of the parent Service in which the
1734
+ # specified ResourcePolicy will be created, in the format: ``` projects/`
1735
+ # project_number`/services/`service_id` ``` Note that the `service_id` element
1736
+ # must be a supported service ID. Currently, the following service IDs are
1737
+ # supported: * `oauth2.googleapis.com` (Google Identity for iOS)
1738
+ # @param [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy] google_firebase_appcheck_v1_resource_policy_object
1739
+ # @param [String] fields
1740
+ # Selector specifying which fields to include in a partial response.
1741
+ # @param [String] quota_user
1742
+ # Available to use for quota purposes for server-side applications. Can be any
1743
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1744
+ # @param [Google::Apis::RequestOptions] options
1745
+ # Request-specific options
1746
+ #
1747
+ # @yield [result, err] Result & error if block supplied
1748
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy] parsed result object
1749
+ # @yieldparam err [StandardError] error object if request failed
1750
+ #
1751
+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy]
1752
+ #
1753
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1754
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1755
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1756
+ def create_project_service_resource_policy(parent, google_firebase_appcheck_v1_resource_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1757
+ command = make_simple_command(:post, 'v1/{+parent}/resourcePolicies', options)
1758
+ command.request_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
1759
+ command.request_object = google_firebase_appcheck_v1_resource_policy_object
1760
+ command.response_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
1761
+ command.response_class = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy
1762
+ command.params['parent'] = parent unless parent.nil?
1763
+ command.query['fields'] = fields unless fields.nil?
1764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1765
+ execute_or_queue_command(command, &block)
1766
+ end
1767
+
1768
+ # Deletes the specified ResourcePolicy configuration.
1769
+ # @param [String] name
1770
+ # Required. The relative resource name of the ResourcePolicy to delete, in the
1771
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
1772
+ # resource_policy_id` ```
1773
+ # @param [String] etag
1774
+ # The checksum to be validated against the current ResourcePolicy, to ensure the
1775
+ # client has an up-to-date value before proceeding. This checksum is computed by
1776
+ # the server based on the values of fields in the ResourcePolicy object, and can
1777
+ # be obtained from the ResourcePolicy object received from the last
1778
+ # CreateResourcePolicy, GetResourcePolicy, ListResourcePolicies,
1779
+ # UpdateResourcePolicy, or BatchUpdateResourcePolicies call. This etag is
1780
+ # strongly validated as defined by RFC 7232.
1781
+ # @param [String] fields
1782
+ # Selector specifying which fields to include in a partial response.
1783
+ # @param [String] quota_user
1784
+ # Available to use for quota purposes for server-side applications. Can be any
1785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1786
+ # @param [Google::Apis::RequestOptions] options
1787
+ # Request-specific options
1788
+ #
1789
+ # @yield [result, err] Result & error if block supplied
1790
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1::GoogleProtobufEmpty] parsed result object
1791
+ # @yieldparam err [StandardError] error object if request failed
1792
+ #
1793
+ # @return [Google::Apis::FirebaseappcheckV1::GoogleProtobufEmpty]
1794
+ #
1795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1798
+ def delete_project_service_resource_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
1799
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1800
+ command.response_representation = Google::Apis::FirebaseappcheckV1::GoogleProtobufEmpty::Representation
1801
+ command.response_class = Google::Apis::FirebaseappcheckV1::GoogleProtobufEmpty
1802
+ command.params['name'] = name unless name.nil?
1803
+ command.query['etag'] = etag unless etag.nil?
1804
+ command.query['fields'] = fields unless fields.nil?
1805
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1806
+ execute_or_queue_command(command, &block)
1807
+ end
1808
+
1809
+ # Gets the requested ResourcePolicy configuration.
1810
+ # @param [String] name
1811
+ # Required. The relative resource name of the ResourcePolicy to retrieve, in the
1812
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
1813
+ # resource_policy_id` ``` Note that the `service_id` element must be a supported
1814
+ # service ID. Currently, the following service IDs are supported: * `oauth2.
1815
+ # googleapis.com` (Google Identity for iOS)
1816
+ # @param [String] fields
1817
+ # Selector specifying which fields to include in a partial response.
1818
+ # @param [String] quota_user
1819
+ # Available to use for quota purposes for server-side applications. Can be any
1820
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1821
+ # @param [Google::Apis::RequestOptions] options
1822
+ # Request-specific options
1823
+ #
1824
+ # @yield [result, err] Result & error if block supplied
1825
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy] parsed result object
1826
+ # @yieldparam err [StandardError] error object if request failed
1827
+ #
1828
+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy]
1829
+ #
1830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1833
+ def get_project_service_resource_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1834
+ command = make_simple_command(:get, 'v1/{+name}', options)
1835
+ command.response_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
1836
+ command.response_class = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy
1837
+ command.params['name'] = name unless name.nil?
1838
+ command.query['fields'] = fields unless fields.nil?
1839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1840
+ execute_or_queue_command(command, &block)
1841
+ end
1842
+
1843
+ # Lists all ResourcePolicy configurations for the specified project and service.
1844
+ # @param [String] parent
1845
+ # Required. The relative resource name of the parent Service for which to list
1846
+ # each associated ResourcePolicy, in the format: ``` projects/`project_number`/
1847
+ # services/`service_id` ``` Note that the `service_id` element must be a
1848
+ # supported service ID. Currently, the following service IDs are supported: * `
1849
+ # oauth2.googleapis.com` (Google Identity for iOS)
1850
+ # @param [String] filter
1851
+ # Optional. Filters the results by the specified rule. For the exact syntax of
1852
+ # this field, please consult the [AIP-160](https://google.aip.dev/160) standard.
1853
+ # Currently, since the only fields in the ResourcePolicy resource are the scalar
1854
+ # fields `enforcement_mode` and `target_resource`, this method does not support
1855
+ # the traversal operator (`.`) or the has operator (`:`). Here are some examples
1856
+ # of valid filters: * `enforcement_mode = ENFORCED` * `target_resource = "//
1857
+ # oauth2.googleapis.com/projects/12345/oauthClients/"` * `enforcement_mode =
1858
+ # ENFORCED AND target_resource = "//oauth2.googleapis.com/projects/12345/
1859
+ # oauthClients/"`
1860
+ # @param [Fixnum] page_size
1861
+ # The maximum number of ResourcePolicy objects to return in the response. The
1862
+ # server may return fewer than this at its own discretion. If no value is
1863
+ # specified (or too large a value is specified), the server will impose its own
1864
+ # limit.
1865
+ # @param [String] page_token
1866
+ # Token returned from a previous call to ListResourcePolicies indicating where
1867
+ # in the set of ResourcePolicy objects to resume listing. Provide this to
1868
+ # retrieve the subsequent page. When paginating, all other parameters provided
1869
+ # to ListResourcePolicies must match the call that provided the page token; if
1870
+ # they do not match, the result is undefined.
1871
+ # @param [String] fields
1872
+ # Selector specifying which fields to include in a partial response.
1873
+ # @param [String] quota_user
1874
+ # Available to use for quota purposes for server-side applications. Can be any
1875
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1876
+ # @param [Google::Apis::RequestOptions] options
1877
+ # Request-specific options
1878
+ #
1879
+ # @yield [result, err] Result & error if block supplied
1880
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ListResourcePoliciesResponse] parsed result object
1881
+ # @yieldparam err [StandardError] error object if request failed
1882
+ #
1883
+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ListResourcePoliciesResponse]
1884
+ #
1885
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1886
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1887
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1888
+ def list_project_service_resource_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1889
+ command = make_simple_command(:get, 'v1/{+parent}/resourcePolicies', options)
1890
+ command.response_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ListResourcePoliciesResponse::Representation
1891
+ command.response_class = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ListResourcePoliciesResponse
1892
+ command.params['parent'] = parent unless parent.nil?
1893
+ command.query['filter'] = filter unless filter.nil?
1894
+ command.query['pageSize'] = page_size unless page_size.nil?
1895
+ command.query['pageToken'] = page_token unless page_token.nil?
1896
+ command.query['fields'] = fields unless fields.nil?
1897
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1898
+ execute_or_queue_command(command, &block)
1899
+ end
1900
+
1901
+ # Updates the specified ResourcePolicy configuration.
1902
+ # @param [String] name
1903
+ # Required. Identifier. The relative name of the resource policy object, in the
1904
+ # format: ``` projects/`project_number`/services/`service_id`/resourcePolicies/`
1905
+ # resource_policy_id` ``` Note that the `service_id` element must be a supported
1906
+ # service ID. Currently, the following service IDs are supported: * `oauth2.
1907
+ # googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-
1908
+ # generated UID.
1909
+ # @param [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy] google_firebase_appcheck_v1_resource_policy_object
1910
+ # @param [String] update_mask
1911
+ # Required. A comma-separated list of names of fields in the ResourcePolicy to
1912
+ # update. Example: `enforcement_mode`.
1913
+ # @param [String] fields
1914
+ # Selector specifying which fields to include in a partial response.
1915
+ # @param [String] quota_user
1916
+ # Available to use for quota purposes for server-side applications. Can be any
1917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1918
+ # @param [Google::Apis::RequestOptions] options
1919
+ # Request-specific options
1920
+ #
1921
+ # @yield [result, err] Result & error if block supplied
1922
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy] parsed result object
1923
+ # @yieldparam err [StandardError] error object if request failed
1924
+ #
1925
+ # @return [Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy]
1926
+ #
1927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1930
+ def patch_project_service_resource_policy(name, google_firebase_appcheck_v1_resource_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1931
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1932
+ command.request_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
1933
+ command.request_object = google_firebase_appcheck_v1_resource_policy_object
1934
+ command.response_representation = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy::Representation
1935
+ command.response_class = Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ResourcePolicy
1936
+ command.params['name'] = name unless name.nil?
1937
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1938
+ command.query['fields'] = fields unless fields.nil?
1939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1940
+ execute_or_queue_command(command, &block)
1941
+ end
1695
1942
 
1696
1943
  protected
1697
1944
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseappcheck_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.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: 2024-06-02 00:00:00.000000000 Z
11
+ date: 2024-07-25 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1
63
63
  post_install_message:
64
64
  rdoc_options: []