Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\ListAvailableProjectsResponse;
/**
* The "availableProjects" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $availableProjects = $firebaseService->availableProjects;
* </code>
*/
class AvailableProjects extends \Google\Service\Resource
{
/**
* Lists each [Google Cloud `Project`](https://cloud.google.com/resource-
* manager/reference/rest/v1/projects) that can have Firebase resources added
* and Firebase services enabled. A Project will only be listed if: - The caller
* has sufficient [Google IAM](https://cloud.google.com/iam) permissions to call
* AddFirebase. - The Project is not already a FirebaseProject. - The Project is
* not in an Organization which has policies that prevent Firebase resources
* from being added. (availableProjects.listAvailableProjects)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of Projects to return in the
* response. The server may return fewer than this value at its discretion. If
* no value is specified (or too large a value is specified), the server will
* impose its own limit. This value cannot be negative.
* @opt_param string pageToken Token returned from a previous call to
* `ListAvailableProjects` indicating where in the set of Projects to resume
* listing.
* @return ListAvailableProjectsResponse
* @throws \Google\Service\Exception
*/
public function listAvailableProjects($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAvailableProjectsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AvailableProjects::class, 'Google_Service_FirebaseManagement_Resource_AvailableProjects');

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $operations = $firebaseService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_FirebaseManagement_Resource_Operations');

View File

@@ -0,0 +1,342 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\AddFirebaseRequest;
use Google\Service\FirebaseManagement\AddGoogleAnalyticsRequest;
use Google\Service\FirebaseManagement\AdminSdkConfig;
use Google\Service\FirebaseManagement\AnalyticsDetails;
use Google\Service\FirebaseManagement\FirebaseEmpty;
use Google\Service\FirebaseManagement\FirebaseProject;
use Google\Service\FirebaseManagement\ListFirebaseProjectsResponse;
use Google\Service\FirebaseManagement\Operation;
use Google\Service\FirebaseManagement\RemoveAnalyticsRequest;
use Google\Service\FirebaseManagement\SearchFirebaseAppsResponse;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $projects = $firebaseService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Adds Firebase resources and enables Firebase services in the specified
* existing [Google Cloud `Project`](https://cloud.google.com/resource-
* manager/reference/rest/v1/projects). Since a FirebaseProject is actually also
* a Google Cloud `Project`, a `FirebaseProject` has the same underlying Google
* Cloud identifiers (`projectNumber` and `projectId`). This allows for easy
* interop with Google APIs. The result of this call is an
* [`Operation`](../../v1beta1/operations). Poll the `Operation` to track the
* provisioning process by calling GetOperation until
* [`done`](../../v1beta1/operations#Operation.FIELDS.done) is `true`. When
* `done` is `true`, the `Operation` has either succeeded or failed. If the
* `Operation` succeeded, its
* [`response`](../../v1beta1/operations#Operation.FIELDS.response) is set to a
* FirebaseProject; if the `Operation` failed, its
* [`error`](../../v1beta1/operations#Operation.FIELDS.error) is set to a
* google.rpc.Status. The `Operation` is automatically deleted after completion,
* so there is no need to call DeleteOperation. This method does not modify any
* billing account information on the underlying Google Cloud `Project`. To call
* `AddFirebase`, a project member or service account must have the following
* permissions (the IAM roles of Editor and Owner contain these permissions):
* `firebase.projects.update`, `resourcemanager.projects.get`,
* `serviceusage.services.enable`, and `serviceusage.services.get`.
* (projects.addFirebase)
*
* @param string $project The resource name of the Google Cloud `Project` in
* which Firebase resources will be added and Firebase services enabled, in the
* format: projects/ PROJECT_IDENTIFIER Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values. After calling `AddFirebase`, the unique Project
* identifiers ( [`projectNumber`](https://cloud.google.com/resource-
* manager/reference/rest/v1/projects#Project.FIELDS.project_number) and
* [`projectId`](https://cloud.google.com/resource-
* manager/reference/rest/v1/projects#Project.FIELDS.project_id)) of the
* underlying Google Cloud `Project` are also the identifiers of the
* FirebaseProject.
* @param AddFirebaseRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addFirebase($project, AddFirebaseRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addFirebase', [$params], Operation::class);
}
/**
* Links the specified FirebaseProject with an existing [Google Analytics
* account](http://www.google.com/analytics/). Using this call, you can either:
* - Specify an `analyticsAccountId` to provision a new Google Analytics
* property within the specified account and associate the new property with the
* `FirebaseProject`. - Specify an existing `analyticsPropertyId` to associate
* the property with the `FirebaseProject`. Note that when you call
* `AddGoogleAnalytics`: 1. The first check determines if any existing data
* streams in the Google Analytics property correspond to any existing Firebase
* Apps in the `FirebaseProject` (based on the `packageName` or `bundleId`
* associated with the data stream). Then, as applicable, the data streams and
* apps are linked. Note that this auto-linking only applies to `AndroidApps`
* and `IosApps`. 2. If no corresponding data streams are found for the Firebase
* Apps, new data streams are provisioned in the Google Analytics property for
* each of the Firebase Apps. Note that a new data stream is always provisioned
* for a Web App even if it was previously associated with a data stream in the
* Analytics property. Learn more about the hierarchy and structure of Google
* Analytics accounts in the [Analytics
* documentation](https://support.google.com/analytics/answer/9303323). The
* result of this call is an [`Operation`](../../v1beta1/operations). Poll the
* `Operation` to track the provisioning process by calling GetOperation until
* [`done`](../../v1beta1/operations#Operation.FIELDS.done) is `true`. When
* `done` is `true`, the `Operation` has either succeeded or failed. If the
* `Operation` succeeded, its
* [`response`](../../v1beta1/operations#Operation.FIELDS.response) is set to an
* AnalyticsDetails; if the `Operation` failed, its
* [`error`](../../v1beta1/operations#Operation.FIELDS.error) is set to a
* google.rpc.Status. To call `AddGoogleAnalytics`, a project member must be an
* Owner for the existing `FirebaseProject` and have the [`Edit`
* permission](https://support.google.com/analytics/answer/2884495) for the
* Google Analytics account. If the `FirebaseProject` already has Google
* Analytics enabled, and you call `AddGoogleAnalytics` using an
* `analyticsPropertyId` that's different from the currently associated
* property, then the call will fail. Analytics may have already been enabled in
* the Firebase console or by specifying `timeZone` and `regionCode` in the call
* to [`AddFirebase`](../../v1beta1/projects/addFirebase).
* (projects.addGoogleAnalytics)
*
* @param string $parent The resource name of the FirebaseProject to link to an
* existing Google Analytics account, in the format: projects/PROJECT_IDENTIFIER
* Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param AddGoogleAnalyticsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addGoogleAnalytics($parent, AddGoogleAnalyticsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addGoogleAnalytics', [$params], Operation::class);
}
/**
* Gets the specified FirebaseProject. (projects.get)
*
* @param string $name The resource name of the FirebaseProject, in the format:
* projects/ PROJECT_IDENTIFIER Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param array $optParams Optional parameters.
* @return FirebaseProject
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], FirebaseProject::class);
}
/**
* Gets the configuration artifact associated with the specified
* FirebaseProject, which can be used by servers to simplify initialization.
* Typically, this configuration is used with the Firebase Admin SDK [initialize
* App](https://firebase.google.com/docs/admin/setup#initialize_the_sdk)
* command. (projects.getAdminSdkConfig)
*
* @param string $name The resource name of the FirebaseProject, in the format:
* projects/ PROJECT_IDENTIFIER/adminSdkConfig Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param array $optParams Optional parameters.
* @return AdminSdkConfig
* @throws \Google\Service\Exception
*/
public function getAdminSdkConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAdminSdkConfig', [$params], AdminSdkConfig::class);
}
/**
* Gets the Google Analytics details currently associated with the specified
* FirebaseProject. If the `FirebaseProject` is not yet linked to Google
* Analytics, then the response to `GetAnalyticsDetails` is `NOT_FOUND`.
* (projects.getAnalyticsDetails)
*
* @param string $name The resource name of the FirebaseProject, in the format:
* projects/ PROJECT_IDENTIFIER/analyticsDetails Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param array $optParams Optional parameters.
* @return AnalyticsDetails
* @throws \Google\Service\Exception
*/
public function getAnalyticsDetails($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAnalyticsDetails', [$params], AnalyticsDetails::class);
}
/**
* Lists each FirebaseProject accessible to the caller. The elements are
* returned in no particular order, but they will be a consistent view of the
* Projects when additional requests are made with a `pageToken`. This method is
* eventually consistent with Project mutations, which means newly provisioned
* Projects and recent modifications to existing Projects might not be reflected
* in the set of Projects. The list will include only ACTIVE Projects. Use
* GetFirebaseProject for consistent reads as well as for additional Project
* details. (projects.listProjects)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of Projects to return in the
* response. The server may return fewer than this at its discretion. If no
* value is specified (or too large a value is specified), the server will
* impose its own limit. This value cannot be negative.
* @opt_param string pageToken Token returned from a previous call to
* `ListFirebaseProjects` indicating where in the set of Projects to resume
* listing.
* @opt_param bool showDeleted Optional. Controls whether Projects in the
* DELETED state should be returned in the response. If not specified, only
* `ACTIVE` Projects will be returned.
* @return ListFirebaseProjectsResponse
* @throws \Google\Service\Exception
*/
public function listProjects($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListFirebaseProjectsResponse::class);
}
/**
* Updates the attributes of the specified FirebaseProject. All [query
* parameters](#query-parameters) are required. (projects.patch)
*
* @param string $name The resource name of the Project, in the format:
* projects/PROJECT_IDENTIFIER PROJECT_IDENTIFIER: the Project's
* [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number)
* ***(recommended)*** or its
* [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more
* about using project identifiers in Google's [AIP 2510
* standard](https://google.aip.dev/cloud/2510). Note that the value for
* PROJECT_IDENTIFIER in any response body will be the `ProjectId`.
* @param FirebaseProject $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Specifies which fields of the FirebaseProject to
* update. Note that the following fields are immutable: `name`, `project_id`,
* and `project_number`. To update `state`, use any of the following Google
* Cloud endpoints: [`projects.delete`](https://cloud.google.com/resource-
* manager/reference/rest/v1/projects/delete) or
* [`projects.undelete`](https://cloud.google.com/resource-
* manager/reference/rest/v1/projects/undelete)
* @return FirebaseProject
* @throws \Google\Service\Exception
*/
public function patch($name, FirebaseProject $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], FirebaseProject::class);
}
/**
* Unlinks the specified FirebaseProject from its Google Analytics account. This
* call removes the association of the specified `FirebaseProject` with its
* current Google Analytics property. However, this call does not delete the
* Google Analytics resources, such as the Google Analytics property or any data
* streams. These resources may be re-associated later to the `FirebaseProject`
* by calling [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics)
* and specifying the same `analyticsPropertyId`. For Android Apps and iOS Apps,
* this call re-links data streams with their corresponding apps. However, for
* Web Apps, this call provisions a *new* data stream for each Web App. To call
* `RemoveAnalytics`, a project member must be an Owner for the
* `FirebaseProject`. (projects.removeAnalytics)
*
* @param string $parent The resource name of the FirebaseProject to unlink from
* its Google Analytics account, in the format: projects/PROJECT_IDENTIFIER
* Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param RemoveAnalyticsRequest $postBody
* @param array $optParams Optional parameters.
* @return FirebaseEmpty
* @throws \Google\Service\Exception
*/
public function removeAnalytics($parent, RemoveAnalyticsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeAnalytics', [$params], FirebaseEmpty::class);
}
/**
* Lists all available Apps for the specified FirebaseProject. This is a
* convenience method. Typically, interaction with an App should be done using
* the platform-specific service, but some tool use-cases require a summary of
* all known Apps (such as for App selector interfaces). (projects.searchApps)
*
* @param string $parent The parent FirebaseProject for which to list Apps, in
* the format: projects/ PROJECT_IDENTIFIER Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A query string compatible with Google's [AIP-160
* standard](https://google.aip.dev/160). Use any of the following fields in a
* query: * [`app_id`](../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) *
* [`namespace`](../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) *
* [`platform`](../projects/searchApps#FirebaseAppInfo.FIELDS.platform) This
* query also supports the following "virtual" fields. These are fields which
* are not actually part of the returned resource object, but they can be
* queried as if they are pre-populated with specific values. * `sha1_hash` or
* `sha1_hashes`: This field is considered to be a _repeated_ `string` field,
* populated with the list of all SHA-1 certificate fingerprints registered with
* the AndroidApp. This list is empty if the App is not an `AndroidApp`. *
* `sha256_hash` or `sha256_hashes`: This field is considered to be a _repeated_
* `string` field, populated with the list of all SHA-256 certificate
* fingerprints registered with the AndroidApp. This list is empty if the App is
* not an `AndroidApp`. * `app_store_id`: This field is considered to be a
* _singular_ `string` field, populated with the Apple App Store ID registered
* with the IosApp. This field is empty if the App is not an `IosApp`. *
* `team_id`: This field is considered to be a _singular_ `string` field,
* populated with the Apple team ID registered with the IosApp. This field is
* empty if the App is not an `IosApp`.
* @opt_param int pageSize The maximum number of Apps to return in the response.
* The server may return fewer than this value at its discretion. If no value is
* specified (or too large a value is specified), then the server will impose
* its own limit. This value cannot be negative.
* @opt_param string pageToken Token returned from a previous call to
* `SearchFirebaseApps` indicating where in the set of Apps to resume listing.
* @opt_param bool showDeleted Controls whether Apps in the DELETED state should
* be returned. If not specified, only `ACTIVE` Apps will be returned.
* @return SearchFirebaseAppsResponse
* @throws \Google\Service\Exception
*/
public function searchApps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('searchApps', [$params], SearchFirebaseAppsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_FirebaseManagement_Resource_Projects');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\AndroidApp;
use Google\Service\FirebaseManagement\AndroidAppConfig;
use Google\Service\FirebaseManagement\ListAndroidAppsResponse;
use Google\Service\FirebaseManagement\Operation;
use Google\Service\FirebaseManagement\RemoveAndroidAppRequest;
use Google\Service\FirebaseManagement\UndeleteAndroidAppRequest;
/**
* The "androidApps" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $androidApps = $firebaseService->projects_androidApps;
* </code>
*/
class ProjectsAndroidApps extends \Google\Service\Resource
{
/**
* Requests the creation of a new AndroidApp in the specified FirebaseProject.
* The result of this call is an `Operation` which can be used to track the
* provisioning process. The `Operation` is automatically deleted after
* completion, so there is no need to call `DeleteOperation`.
* (androidApps.create)
*
* @param string $parent The resource name of the parent FirebaseProject in
* which to create an AndroidApp, in the format:
* projects/PROJECT_IDENTIFIER/androidApps Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param AndroidApp $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AndroidApp $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Gets the specified AndroidApp. (androidApps.get)
*
* @param string $name The resource name of the AndroidApp, in the format:
* projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/androidApps/APP_ID Refer to the
* `AndroidApp` [`name`](../projects.androidApps#AndroidApp.FIELDS.name) field
* for details about PROJECT_IDENTIFIER and APP_ID values.
* @param array $optParams Optional parameters.
* @return AndroidApp
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AndroidApp::class);
}
/**
* Gets the configuration artifact associated with the specified AndroidApp.
* (androidApps.getConfig)
*
* @param string $name The resource name of the AndroidApp configuration to
* download, in the format:
* projects/PROJECT_IDENTIFIER/androidApps/APP_ID/config Since an APP_ID is a
* unique identifier, the Unique Resource from Sub-Collection access pattern may
* be used here, in the format: projects/-/androidApps/APP_ID Refer to the
* `AndroidApp` [`name`](../projects.androidApps#AndroidApp.FIELDS.name) field
* for details about PROJECT_IDENTIFIER and APP_ID values.
* @param array $optParams Optional parameters.
* @return AndroidAppConfig
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], AndroidAppConfig::class);
}
/**
* Lists each AndroidApp associated with the specified FirebaseProject. The
* elements are returned in no particular order, but will be a consistent view
* of the Apps when additional requests are made with a `pageToken`.
* (androidApps.listProjectsAndroidApps)
*
* @param string $parent The resource name of the parent FirebaseProject for
* which to list each associated AndroidApp, in the format:
* projects/PROJECT_IDENTIFIER /androidApps Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of Apps to return in the response.
* The server may return fewer than this at its discretion. If no value is
* specified (or too large a value is specified), then the server will impose
* its own limit.
* @opt_param string pageToken Token returned from a previous call to
* `ListAndroidApps` indicating where in the set of Apps to resume listing.
* @opt_param bool showDeleted Controls whether Apps in the DELETED state should
* be returned in the response. If not specified, only `ACTIVE` Apps will be
* returned.
* @return ListAndroidAppsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAndroidApps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAndroidAppsResponse::class);
}
/**
* Updates the attributes of the specified AndroidApp. (androidApps.patch)
*
* @param string $name The resource name of the AndroidApp, in the format:
* projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the
* parent Project's
* [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number)
* ***(recommended)*** or its
* [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more
* about using project identifiers in Google's [AIP 2510
* standard](https://google.aip.dev/cloud/2510). Note that the value for
* PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID:
* the globally unique, Firebase-assigned identifier for the App (see
* [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)).
* @param AndroidApp $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Specifies which fields of the AndroidApp to
* update. Note that the following fields are immutable: `name`, `app_id`,
* `project_id`, and `package_name`. To update `state`, use any of the following
* endpoints: RemoveAndroidApp or UndeleteAndroidApp.
* @return AndroidApp
* @throws \Google\Service\Exception
*/
public function patch($name, AndroidApp $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AndroidApp::class);
}
/**
* Removes the specified AndroidApp from the FirebaseProject.
* (androidApps.remove)
*
* @param string $name Required. The resource name of the AndroidApp, in the
* format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a
* unique identifier, the Unique Resource from Sub-Collection access pattern may
* be used here, in the format: projects/-/androidApps/APP_ID Refer to the
* AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for
* details about PROJECT_IDENTIFIER and APP_ID values.
* @param RemoveAndroidAppRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function remove($name, RemoveAndroidAppRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('remove', [$params], Operation::class);
}
/**
* Restores the specified AndroidApp to the FirebaseProject.
* (androidApps.undelete)
*
* @param string $name Required. The resource name of the AndroidApp, in the
* format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a
* unique identifier, the Unique Resource from Sub-Collection access pattern may
* be used here, in the format: projects/-/androidApps/APP_ID Refer to the
* AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for
* details about PROJECT_IDENTIFIER and APP_ID values.
* @param UndeleteAndroidAppRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function undelete($name, UndeleteAndroidAppRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAndroidApps::class, 'Google_Service_FirebaseManagement_Resource_ProjectsAndroidApps');

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\FirebaseEmpty;
use Google\Service\FirebaseManagement\ListShaCertificatesResponse;
use Google\Service\FirebaseManagement\ShaCertificate;
/**
* The "sha" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $sha = $firebaseService->projects_androidApps_sha;
* </code>
*/
class ProjectsAndroidAppsSha extends \Google\Service\Resource
{
/**
* Adds a ShaCertificate to the specified AndroidApp. (sha.create)
*
* @param string $parent The resource name of the parent AndroidApp to which to
* add a ShaCertificate, in the format: projects/PROJECT_IDENTIFIER/androidApps/
* APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-
* Collection access pattern may be used here, in the format:
* projects/-/androidApps/APP_ID Refer to the `AndroidApp`
* [`name`](../projects.androidApps#AndroidApp.FIELDS.name) field for details
* about PROJECT_IDENTIFIER and APP_ID values.
* @param ShaCertificate $postBody
* @param array $optParams Optional parameters.
* @return ShaCertificate
* @throws \Google\Service\Exception
*/
public function create($parent, ShaCertificate $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ShaCertificate::class);
}
/**
* Removes a ShaCertificate from the specified AndroidApp. (sha.delete)
*
* @param string $name The resource name of the ShaCertificate to remove from
* the parent AndroidApp, in the format:
* projects/PROJECT_IDENTIFIER/androidApps/APP_ID /sha/SHA_HASH Refer to the
* `ShaCertificate`
* [`name`](../projects.androidApps.sha#ShaCertificate.FIELDS.name) field for
* details about PROJECT_IDENTIFIER, APP_ID, and SHA_HASH values. You can obtain
* the full resource name of the `ShaCertificate` from the response of
* [`ListShaCertificates`](../projects.androidApps.sha/list) or the original
* [`CreateShaCertificate`](../projects.androidApps.sha/create).
* @param array $optParams Optional parameters.
* @return FirebaseEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], FirebaseEmpty::class);
}
/**
* Lists the SHA-1 and SHA-256 certificates for the specified AndroidApp.
* (sha.listProjectsAndroidAppsSha)
*
* @param string $parent The resource name of the parent AndroidApp for which to
* list each associated ShaCertificate, in the format:
* projects/PROJECT_IDENTIFIER /androidApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/androidApps/APP_ID Refer to the
* `AndroidApp` [`name`](../projects.androidApps#AndroidApp.FIELDS.name) field
* for details about PROJECT_IDENTIFIER and APP_ID values.
* @param array $optParams Optional parameters.
* @return ListShaCertificatesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAndroidAppsSha($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListShaCertificatesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAndroidAppsSha::class, 'Google_Service_FirebaseManagement_Resource_ProjectsAndroidAppsSha');

View File

@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\ListAvailableLocationsResponse;
/**
* The "availableLocations" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $availableLocations = $firebaseService->projects_availableLocations;
* </code>
*/
class ProjectsAvailableLocations extends \Google\Service\Resource
{
/**
* **DECOMMISSIONED.** **If called, this endpoint will return a 404 error.**
* _Instead, use the applicable resource-specific REST API (or associated
* documentation, as needed) to determine valid locations for each resource used
* in your Project._ Lists the valid ["locations for default Google Cloud
* resources"](https://firebase.google.com/docs/projects/locations#default-
* cloud-location) for the specified Project (including a FirebaseProject). One
* of these locations can be selected as the Project's location for default
* Google Cloud resources, which is the geographical location where the
* Project's resources associated with Google App Engine (such as the default
* Cloud Firestore instance) will be provisioned by default. However, if the
* location for default Google Cloud resources has already been set for the
* Project, then this setting cannot be changed. This call checks for any
* possible [location restrictions](https://cloud.google.com/resource-
* manager/docs/organization-policy/defining-locations) for the specified
* Project and, thus, might return a subset of all possible locations. To list
* all locations (regardless of any restrictions), call the endpoint without
* specifying a unique project identifier (that is,
* `/v1beta1/{parent=projects/-}/listAvailableLocations`). To call
* `ListAvailableLocations` with a specified project, a member must be at
* minimum a Viewer of the Project. Calls without a specified project do not
* require any specific project permissions.
* (availableLocations.listProjectsAvailableLocations)
*
* @param string $parent The FirebaseProject for which to list [locations for
* default Google Cloud
* resources](https://firebase.google.com/docs/projects/locations#default-cloud-
* location), in the format: projects/PROJECT_IDENTIFIER Refer to the
* `FirebaseProject` [`name`](../projects#FirebaseProject.FIELDS.name) field for
* details about PROJECT_IDENTIFIER values. If no unique project identifier is
* specified (that is, `projects/-`), the returned list does not take into
* account org-specific or project-specific location restrictions.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of locations to return in the
* response. The server may return fewer than this value at its discretion. If
* no value is specified (or too large a value is specified), then the server
* will impose its own limit. This value cannot be negative.
* @opt_param string pageToken Token returned from a previous call to
* `ListAvailableLocations` indicating where in the list of locations to resume
* listing.
* @return ListAvailableLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAvailableLocations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAvailableLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAvailableLocations::class, 'Google_Service_FirebaseManagement_Resource_ProjectsAvailableLocations');

View File

@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\FinalizeDefaultLocationRequest;
use Google\Service\FirebaseManagement\Operation;
/**
* The "defaultLocation" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $defaultLocation = $firebaseService->projects_defaultLocation;
* </code>
*/
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');

View File

@@ -0,0 +1,202 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\IosApp;
use Google\Service\FirebaseManagement\IosAppConfig;
use Google\Service\FirebaseManagement\ListIosAppsResponse;
use Google\Service\FirebaseManagement\Operation;
use Google\Service\FirebaseManagement\RemoveIosAppRequest;
use Google\Service\FirebaseManagement\UndeleteIosAppRequest;
/**
* The "iosApps" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $iosApps = $firebaseService->projects_iosApps;
* </code>
*/
class ProjectsIosApps extends \Google\Service\Resource
{
/**
* Requests the creation of a new IosApp in the specified FirebaseProject. The
* result of this call is an `Operation` which can be used to track the
* provisioning process. The `Operation` is automatically deleted after
* completion, so there is no need to call `DeleteOperation`. (iosApps.create)
*
* @param string $parent The resource name of the parent FirebaseProject in
* which to create an IosApp, in the format: projects/PROJECT_IDENTIFIER/iosApps
* Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param IosApp $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, IosApp $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Gets the specified IosApp. (iosApps.get)
*
* @param string $name The resource name of the IosApp, in the format:
* projects/PROJECT_IDENTIFIER /iosApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/iosApps/APP_ID Refer to the `IosApp`
* [`name`](../projects.iosApps#IosApp.FIELDS.name) field for details about
* PROJECT_IDENTIFIER and APP_ID values.
* @param array $optParams Optional parameters.
* @return IosApp
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], IosApp::class);
}
/**
* Gets the configuration artifact associated with the specified IosApp.
* (iosApps.getConfig)
*
* @param string $name The resource name of the App configuration to download,
* in the format: projects/PROJECT_IDENTIFIER/iosApps/APP_ID/config Since an
* APP_ID is a unique identifier, the Unique Resource from Sub-Collection access
* pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to
* the `IosApp` [`name`](../projects.iosApps#IosApp.FIELDS.name) field for
* details about PROJECT_IDENTIFIER and APP_ID values.
* @param array $optParams Optional parameters.
* @return IosAppConfig
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], IosAppConfig::class);
}
/**
* Lists each IosApp associated with the specified FirebaseProject. The elements
* are returned in no particular order, but will be a consistent view of the
* Apps when additional requests are made with a `pageToken`.
* (iosApps.listProjectsIosApps)
*
* @param string $parent The resource name of the parent FirebaseProject for
* which to list each associated IosApp, in the format:
* projects/PROJECT_IDENTIFIER/iosApps Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of Apps to return in the response.
* The server may return fewer than this at its discretion. If no value is
* specified (or too large a value is specified), the server will impose its own
* limit.
* @opt_param string pageToken Token returned from a previous call to
* `ListIosApps` indicating where in the set of Apps to resume listing.
* @opt_param bool showDeleted Controls whether Apps in the DELETED state should
* be returned in the response. If not specified, only `ACTIVE` Apps will be
* returned.
* @return ListIosAppsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsIosApps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListIosAppsResponse::class);
}
/**
* Updates the attributes of the specified IosApp. (iosApps.patch)
*
* @param string $name The resource name of the IosApp, in the format:
* projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the parent
* Project's
* [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number)
* ***(recommended)*** or its
* [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more
* about using project identifiers in Google's [AIP 2510
* standard](https://google.aip.dev/cloud/2510). Note that the value for
* PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID:
* the globally unique, Firebase-assigned identifier for the App (see
* [`appId`](../projects.iosApps#IosApp.FIELDS.app_id)).
* @param IosApp $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Specifies which fields of the IosApp to update.
* Note that the following fields are immutable: `name`, `app_id`, `project_id`,
* and `bundle_id`. To update `state`, use any of the following endpoints:
* RemoveIosApp or UndeleteIosApp.
* @return IosApp
* @throws \Google\Service\Exception
*/
public function patch($name, IosApp $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], IosApp::class);
}
/**
* Removes the specified IosApp from the FirebaseProject. (iosApps.remove)
*
* @param string $name Required. The resource name of the IosApp, in the format:
* projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp
* [name](../projects.iosApps#IosApp.FIELDS.name) field for details about
* PROJECT_IDENTIFIER and APP_ID values.
* @param RemoveIosAppRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function remove($name, RemoveIosAppRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('remove', [$params], Operation::class);
}
/**
* Restores the specified IosApp to the FirebaseProject. (iosApps.undelete)
*
* @param string $name Required. The resource name of the IosApp, in the format:
* projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp
* [name](../projects.iosApps#IosApp.FIELDS.name) field for details about
* PROJECT_IDENTIFIER and APP_ID values.
* @param UndeleteIosAppRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function undelete($name, UndeleteIosAppRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsIosApps::class, 'Google_Service_FirebaseManagement_Resource_ProjectsIosApps');

View File

@@ -0,0 +1,203 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseManagement\Resource;
use Google\Service\FirebaseManagement\ListWebAppsResponse;
use Google\Service\FirebaseManagement\Operation;
use Google\Service\FirebaseManagement\RemoveWebAppRequest;
use Google\Service\FirebaseManagement\UndeleteWebAppRequest;
use Google\Service\FirebaseManagement\WebApp;
use Google\Service\FirebaseManagement\WebAppConfig;
/**
* The "webApps" collection of methods.
* Typical usage is:
* <code>
* $firebaseService = new Google\Service\FirebaseManagement(...);
* $webApps = $firebaseService->projects_webApps;
* </code>
*/
class ProjectsWebApps extends \Google\Service\Resource
{
/**
* Requests the creation of a new WebApp in the specified FirebaseProject. The
* result of this call is an `Operation` which can be used to track the
* provisioning process. The `Operation` is automatically deleted after
* completion, so there is no need to call `DeleteOperation`. (webApps.create)
*
* @param string $parent The resource name of the parent FirebaseProject in
* which to create a WebApp, in the format: projects/PROJECT_IDENTIFIER/webApps
* Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param WebApp $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, WebApp $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Gets the specified WebApp. (webApps.get)
*
* @param string $name The resource name of the WebApp, in the format:
* projects/PROJECT_IDENTIFIER /webApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/webApps/APP_ID Refer to the `WebApp`
* [`name`](../projects.webApps#WebApp.FIELDS.name) field for details about
* PROJECT_IDENTIFIER and APP_ID values.
* @param array $optParams Optional parameters.
* @return WebApp
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WebApp::class);
}
/**
* Gets the configuration artifact associated with the specified WebApp.
* (webApps.getConfig)
*
* @param string $name The resource name of the WebApp configuration to
* download, in the format: projects/PROJECT_IDENTIFIER/webApps/APP_ID/config
* Since an APP_ID is a unique identifier, the Unique Resource from Sub-
* Collection access pattern may be used here, in the format:
* projects/-/webApps/APP_ID Refer to the `WebApp`
* [`name`](../projects.webApps#WebApp.FIELDS.name) field for details about
* PROJECT_IDENTIFIER and APP_ID values.
* @param array $optParams Optional parameters.
* @return WebAppConfig
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], WebAppConfig::class);
}
/**
* Lists each WebApp associated with the specified FirebaseProject. The elements
* are returned in no particular order, but will be a consistent view of the
* Apps when additional requests are made with a `pageToken`.
* (webApps.listProjectsWebApps)
*
* @param string $parent The resource name of the parent FirebaseProject for
* which to list each associated WebApp, in the format:
* projects/PROJECT_IDENTIFIER/webApps Refer to the `FirebaseProject`
* [`name`](../projects#FirebaseProject.FIELDS.name) field for details about
* PROJECT_IDENTIFIER values.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of Apps to return in the response.
* The server may return fewer than this value at its discretion. If no value is
* specified (or too large a value is specified), then the server will impose
* its own limit.
* @opt_param string pageToken Token returned from a previous call to
* `ListWebApps` indicating where in the set of Apps to resume listing.
* @opt_param bool showDeleted Controls whether Apps in the DELETED state should
* be returned in the response. If not specified, only `ACTIVE` Apps will be
* returned.
* @return ListWebAppsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsWebApps($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWebAppsResponse::class);
}
/**
* Updates the attributes of the specified WebApp. (webApps.patch)
*
* @param string $name The resource name of the WebApp, in the format:
* projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent
* Project's
* [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number)
* ***(recommended)*** or its
* [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more
* about using project identifiers in Google's [AIP 2510
* standard](https://google.aip.dev/cloud/2510). Note that the value for
* PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID:
* the globally unique, Firebase-assigned identifier for the App (see
* [`appId`](../projects.webApps#WebApp.FIELDS.app_id)).
* @param WebApp $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Specifies which fields of the WebApp to update.
* Note that the following fields are immutable: `name`, `app_id`, and
* `project_id`. To update `state`, use any of the following endpoints:
* RemoveWebApp or UndeleteWebApp.
* @return WebApp
* @throws \Google\Service\Exception
*/
public function patch($name, WebApp $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], WebApp::class);
}
/**
* Removes the specified WebApp from the FirebaseProject. (webApps.remove)
*
* @param string $name Required. The resource name of the WebApp, in the format:
* projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp
* [name](../projects.webApps#WebApp.FIELDS.name) field for details about
* PROJECT_IDENTIFIER and APP_ID values.
* @param RemoveWebAppRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function remove($name, RemoveWebAppRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('remove', [$params], Operation::class);
}
/**
* Restores the specified WebApp to the FirebaseProject. (webApps.undelete)
*
* @param string $name Required. The resource name of the WebApp, in the format:
* projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique
* identifier, the Unique Resource from Sub-Collection access pattern may be
* used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp
* [name](../projects.webApps#WebApp.FIELDS.name) field for details about
* PROJECT_IDENTIFIER and APP_ID values.
* @param UndeleteWebAppRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function undelete($name, UndeleteWebAppRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsWebApps::class, 'Google_Service_FirebaseManagement_Resource_ProjectsWebApps');