Method: projects.services.batchUpdate
Stay organized with collections
Save and categorize content based on your preferences.
Atomically updates the specified Service
configurations.
HTTP request
POST https://firebaseappcheck.googleapis.com/v1/{parent=projects/*}/services:batchUpdate
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The parent project name shared by all Service configurations being updated, in the format
projects/{project_number}
The parent collection in the name field of any resource being updated must match this field, or the entire batch fails.
|
Request body
The request body contains data with the following structure:
Fields |
updateMask |
string (FieldMask format)
Optional. A comma-separated list of names of fields in the Service s to update. Example: displayName . If the updateMask field is set in both this request and any of the UpdateServiceRequest messages, they must match or the entire batch fails and no updates will be committed.
|
requests[] |
object (UpdateServiceRequest )
Required. The request messages specifying the Service s to update. A maximum of 100 objects can be updated in a batch.
|
Response body
Response message for the services.batchUpdate
method.
If successful, the response body contains data with the following structure:
JSON representation |
{
"services": [
{
object (Service )
}
]
} |
Fields |
services[] |
object (Service )
Service objects after the updates have been applied.
|
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/firebase
For more information, see the Authentication Overview.
UpdateServiceRequest
JSON representation |
{
"service": {
object (Service )
},
"updateMask": string
} |
Fields |
service |
object (Service )
Required. The Service to update. The Service 's name field is used to identify the Service to be updated, 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:
firebasestorage.googleapis.com (Cloud Storage for Firebase)
firebasedatabase.googleapis.com (Firebase Realtime Database)
firestore.googleapis.com (Cloud Firestore)
oauth2.googleapis.com (Google Identity for iOS)
|
updateMask |
string (FieldMask format)
Required. A comma-separated list of names of fields in the Service to update. Example: enforcementMode .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-26 UTC.
[null,null,["Last updated 2024-09-26 UTC."],[],[],null,["# Method: projects.services.batchUpdate\n\nAtomically updates the specified [Service](/docs/reference/appcheck/rest/v1/projects.services#Service) configurations.\n\n### HTTP request\n\n`POST https://firebaseappcheck.googleapis.com/v1/{parent=projects/*}/services:batchUpdate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent project name shared by all [Service](/docs/reference/appcheck/rest/v1/projects.services#Service) configurations being updated, in the format projects/{project_number} The parent collection in the `name` field of any resource being updated must match this field, or the entire batch fails. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"updateMask\": string, \"requests\": [ { object (/docs/reference/appcheck/rest/v1/projects.services/batchUpdate#UpdateServiceRequest) } ] } ``` |\n\n| Fields ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Optional. A comma-separated list of names of fields in the [Service](/docs/reference/appcheck/rest/v1/projects.services#Service)s to update. Example: `displayName`. If the `updateMask` field is set in both this request and any of the [UpdateServiceRequest](/docs/reference/appcheck/rest/v1/projects.services/batchUpdate#UpdateServiceRequest) messages, they must match or the entire batch fails and no updates will be committed. |\n| `requests[]` | `object (`[UpdateServiceRequest](/docs/reference/appcheck/rest/v1/projects.services/batchUpdate#UpdateServiceRequest)`)` Required. The request messages specifying the [Service](/docs/reference/appcheck/rest/v1/projects.services#Service)s to update. A maximum of 100 objects can be updated in a batch. |\n\n### Response body\n\nResponse message for the [services.batchUpdate](/docs/reference/appcheck/rest/v1/projects.services/batchUpdate#google.firebase.appcheck.v1.ConfigService.BatchUpdateServices) method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------|\n| ``` { \"services\": [ { object (/docs/reference/appcheck/rest/v1/projects.services#Service) } ] } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `services[]` | `object (`[Service](/docs/reference/appcheck/rest/v1/projects.services#Service)`)` [Service](/docs/reference/appcheck/rest/v1/projects.services#Service) objects after the updates have been applied. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/firebase`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\nUpdateServiceRequest\n--------------------\n\nRequest message for the [services.patch](/docs/reference/appcheck/rest/v1/projects.services/patch#google.firebase.appcheck.v1.ConfigService.UpdateService) method as well as an individual update message for the [services.batchUpdate](/docs/reference/appcheck/rest/v1/projects.services/batchUpdate#google.firebase.appcheck.v1.ConfigService.BatchUpdateServices) method.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------|\n| ``` { \"service\": { object (/docs/reference/appcheck/rest/v1/projects.services#Service) }, \"updateMask\": string } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `service` | `object (`[Service](/docs/reference/appcheck/rest/v1/projects.services#Service)`)` Required. The [Service](/docs/reference/appcheck/rest/v1/projects.services#Service) to update. The [Service](/docs/reference/appcheck/rest/v1/projects.services#Service)'s `name` field is used to identify the [Service](/docs/reference/appcheck/rest/v1/projects.services#Service) to be updated, 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: - `firebasestorage.googleapis.com` (Cloud Storage for Firebase) - `firebasedatabase.googleapis.com` (Firebase Realtime Database) - `firestore.googleapis.com` (Cloud Firestore) - `oauth2.googleapis.com` (Google Identity for iOS) |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. A comma-separated list of names of fields in the [Service](/docs/reference/appcheck/rest/v1/projects.services#Service) to update. Example: `enforcementMode`. |"]]