Debian Codegraph @

docs/dyn/firebaseappcheck_v1.projects.services.resourcePolicies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="firebaseappcheck_v1.html">Firebase App Check API</a> . <a href="firebaseappcheck_v1.projects.html">projects</a> . <a href="firebaseappcheck_v1.projects.services.html">services</a> . <a href="firebaseappcheck_v1.projects.services.resourcePolicies.html">resourcePolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Atomically updates the specified ResourcePolicy configurations.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Creates the specified ResourcePolicy configuration.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Deletes the specified ResourcePolicy configuration.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Gets the requested ResourcePolicy configuration.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists all ResourcePolicy configurations for the specified project and service.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates the specified ResourcePolicy configuration.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
104 <pre>Atomically updates the specified ResourcePolicy configurations.
105
106 Args:
107 parent: string, Required. The parent service name, in the format ``` projects/{project_number}/services/{service_id} ``` The parent collection in the `name` field of any resource being updated must match this field, or the entire batch fails. (required)
108 body: object, The request body.
109 The object takes the form of:
110
111 { # Request message for the BatchUpdateResourcePolicies method.
112 &quot;requests&quot;: [ # Required. The request messages specifying the ResourcePolicy objects to update. A maximum of 100 objects can be updated in a batch.
113 { # Request message for the UpdateResourcePolicy method as well as an individual update message for the BatchUpdateResourcePolicies method.
114 &quot;resourcePolicy&quot;: { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration. # Required. The ResourcePolicy to update. The ResourcePolicy&#x27;s `name` field is used to identify the ResourcePolicy to be updated, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)
115 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
116 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
117 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
118 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
119 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
120 },
121 &quot;updateMask&quot;: &quot;A String&quot;, # Required. A comma-separated list of names of fields in the ResourcePolicy to update. Example: `enforcement_mode`.
122 },
123 ],
124 &quot;updateMask&quot;: &quot;A String&quot;, # Optional. A comma-separated list of names of fields in the ResourcePolicy objects to update. Example: `enforcement_mode`. If this field is present, the `update_mask` field in the UpdateResourcePolicyRequest messages must all match this field, or the entire batch fails and no updates will be committed.
125 }
126
127 x__xgafv: string, V1 error format.
128 Allowed values
129 1 - v1 error format
130 2 - v2 error format
131
132 Returns:
133 An object of the form:
134
135 { # Response message for the BatchUpdateResourcePolicies method.
136 &quot;resourcePolicies&quot;: [ # ResourcePolicy objects after the updates have been applied.
137 { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
138 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
139 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
140 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
141 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
142 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
143 },
144 ],
145 }</pre>
146 </div>
147
148 <div class="method">
149 <code class="details" id="close">close()</code>
150 <pre>Close httplib2 connections.</pre>
151 </div>
152
153 <div class="method">
154 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
155 <pre>Creates the specified ResourcePolicy configuration.
156
157 Args:
158 parent: string, Required. The relative resource name of the parent Service in which the specified ResourcePolicy will be created, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) (required)
159 body: object, The request body.
160 The object takes the form of:
161
162 { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
163 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
164 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
165 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
166 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
167 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
168 }
169
170 x__xgafv: string, V1 error format.
171 Allowed values
172 1 - v1 error format
173 2 - v2 error format
174
175 Returns:
176 An object of the form:
177
178 { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
179 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
180 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
181 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
182 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
183 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
184 }</pre>
185 </div>
186
187 <div class="method">
188 <code class="details" id="delete">delete(name, etag=None, x__xgafv=None)</code>
189 <pre>Deletes the specified ResourcePolicy configuration.
190
191 Args:
192 name: string, Required. The relative resource name of the ResourcePolicy to delete, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` (required)
193 etag: string, The checksum to be validated against the current ResourcePolicy, to ensure the client has an up-to-date value before proceeding. This checksum is computed by the server based on the values of fields in the ResourcePolicy object, and can be obtained from the ResourcePolicy object received from the last CreateResourcePolicy, GetResourcePolicy, ListResourcePolicies, UpdateResourcePolicy, or BatchUpdateResourcePolicies call. This etag is strongly validated as defined by RFC 7232.
194 x__xgafv: string, V1 error format.
195 Allowed values
196 1 - v1 error format
197 2 - v2 error format
198
199 Returns:
200 An object of the form:
201
202 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
203 }</pre>
204 </div>
205
206 <div class="method">
207 <code class="details" id="get">get(name, x__xgafv=None)</code>
208 <pre>Gets the requested ResourcePolicy configuration.
209
210 Args:
211 name: string, Required. The relative resource name of the ResourcePolicy to retrieve, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) (required)
212 x__xgafv: string, V1 error format.
213 Allowed values
214 1 - v1 error format
215 2 - v2 error format
216
217 Returns:
218 An object of the form:
219
220 { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
221 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
222 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
223 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
224 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
225 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
226 }</pre>
227 </div>
228
229 <div class="method">
230 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
231 <pre>Lists all ResourcePolicy configurations for the specified project and service.
232
233 Args:
234 parent: string, Required. The relative resource name of the parent Service for which to list each associated ResourcePolicy, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) (required)
235 filter: string, Optional. Filters the results by the specified rule. For the exact syntax of this field, please consult the [AIP-160](https://google.aip.dev/160) standard. Currently, since the only fields in the ResourcePolicy resource are the scalar fields `enforcement_mode` and `target_resource`, this method does not support the traversal operator (`.`) or the has operator (`:`). Here are some examples of valid filters: * `enforcement_mode = ENFORCED` * `target_resource = &quot;//oauth2.googleapis.com/projects/12345/oauthClients/&quot;` * `enforcement_mode = ENFORCED AND target_resource = &quot;//oauth2.googleapis.com/projects/12345/oauthClients/&quot;`
236 pageSize: integer, The maximum number of ResourcePolicy objects to return in the response. The server may return fewer than this at its own discretion. If no value is specified (or too large a value is specified), the server will impose its own limit.
237 pageToken: string, Token returned from a previous call to ListResourcePolicies indicating where in the set of ResourcePolicy objects to resume listing. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourcePolicies must match the call that provided the page token; if they do not match, the result is undefined.
238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243 Returns:
244 An object of the form:
245
246 { # Response message for the ListResourcePolicies method.
247 &quot;nextPageToken&quot;: &quot;A String&quot;, # If the result list is too large to fit in a single response, then a token is returned. If the string is empty or omitted, then this response is the last page of results. This token can be used in a subsequent call to ListResourcePolicies to find the next group of ResourcePolicy objects. Page tokens are short-lived and should not be persisted.
248 &quot;resourcePolicies&quot;: [ # The ResourcePolicy objects retrieved.
249 { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
250 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
251 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
252 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
253 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
254 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
255 },
256 ],
257 }</pre>
258 </div>
259
260 <div class="method">
261 <code class="details" id="list_next">list_next()</code>
262 <pre>Retrieves the next page of results.
263
264 Args:
265 previous_request: The request for the previous page. (required)
266 previous_response: The response from the request for the previous page. (required)
267
268 Returns:
269 A request object that you can call &#x27;execute()&#x27; on to request the next
270 page. Returns None if there are no more items in the collection.
271 </pre>
272 </div>
273
274 <div class="method">
275 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
276 <pre>Updates the specified ResourcePolicy configuration.
277
278 Args:
279 name: string, Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID. (required)
280 body: object, The request body.
281 The object takes the form of:
282
283 { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
284 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
285 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
286 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
287 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
288 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
289 }
290
291 updateMask: string, Required. A comma-separated list of names of fields in the ResourcePolicy to update. Example: `enforcement_mode`.
292 x__xgafv: string, V1 error format.
293 Allowed values
294 1 - v1 error format
295 2 - v2 error format
296
297 Returns:
298 An object of the form:
299
300 { # App Check enforcement policy for a specific resource of a Google service supported by App Check. Note that this policy will override the service-level configuration.
301 &quot;enforcementMode&quot;: &quot;A String&quot;, # Required. The App Check enforcement mode for this resource. This will override the App Check overall EnforcementMode setting on the service.
302 &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.
303 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.
304 &quot;targetResource&quot;: &quot;A String&quot;, # Required. Service specific name of the resource object to which this policy applies, in the format: * **iOS OAuth clients** (Google Identity for iOS): `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.
305 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this resource policy configuration object was most recently updated.
306 }</pre>
307 </div>
308
309 </body></html>