* $firebaseService = new Google\Service\FirebaseManagement(...); * $defaultLocation = $firebaseService->projects_defaultLocation; * */ class ProjectsDefaultLocation extends \Google\Service\Resource { /** * **DECOMMISSIONED.** **If called, this endpoint will return a 404 error.** * _Instead, use the applicable resource-specific REST API to set the location * for each resource used in your Project._ Sets the ["location for default * Google Cloud * resources"](https://firebase.google.com/docs/projects/locations#default- * cloud-location) for the specified FirebaseProject. This method creates a * Google App Engine application with a [default Cloud Storage bucket](https://c * loud.google.com/appengine/docs/standard/python/googlecloudstorageclient/setti * ng-up-cloud-storage#activating_a_cloud_storage_bucket), located in the * specified [`locationId`](#body.request_body.FIELDS.location_id). This * location must be one of the available [App Engine * locations](https://cloud.google.com/about/locations#region). After the * location for default Google Cloud resources is finalized, or if it was * already set, it cannot be changed. The location for default Google Cloud * resources for the specified `FirebaseProject` might already be set because * either the underlying Google Cloud `Project` already has an App Engine * application or `FinalizeDefaultLocation` was previously called with a * specified `locationId`. The result of this call is an * [`Operation`](../../v1beta1/operations), which can be used to track the * provisioning process. The * [`response`](../../v1beta1/operations#Operation.FIELDS.response) type of the * `Operation` is google.protobuf.Empty. The `Operation` can be polled by its * `name` using GetOperation until `done` is true. When `done` is true, the * `Operation` has either succeeded or failed. If the `Operation` has succeeded, * its [`response`](../../v1beta1/operations#Operation.FIELDS.response) will be * set to a google.protobuf.Empty; if the `Operation` has failed, its `error` * will be set to a google.rpc.Status. The `Operation` is automatically deleted * after completion, so there is no need to call DeleteOperation. All fields * listed in the [request body](#request-body) are required. To call * `FinalizeDefaultLocation`, a member must be an Owner of the Project. * (defaultLocation.finalize) * * @param string $parent The resource name of the FirebaseProject for which the * ["location for default Google Cloud * resources"](https://firebase.google.com/docs/projects/locations#default- * cloud-location) will be set, in the format: projects/PROJECT_IDENTIFIER Refer * to the `FirebaseProject` [`name`](../projects#FirebaseProject.FIELDS.name) * field for details about PROJECT_IDENTIFIER values. * @param FinalizeDefaultLocationRequest $postBody * @param array $optParams Optional parameters. * @return Operation * @throws \Google\Service\Exception */ public function finalize($parent, FinalizeDefaultLocationRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('finalize', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsDefaultLocation::class, 'Google_Service_FirebaseManagement_Resource_ProjectsDefaultLocation');