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,54 @@
<?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\FirebaseAppDistribution\Resource;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1UploadReleaseRequest;
use Google\Service\FirebaseAppDistribution\GoogleLongrunningOperation;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $media = $firebaseappdistributionService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Uploads a binary. Uploading a binary can result in a new release being
* created, an update to an existing release, or a no-op if a release with the
* same binary already exists. (media.upload)
*
* @param string $app The name of the app resource. Format:
* `projects/{project_number}/apps/{app_id}`
* @param GoogleFirebaseAppdistroV1UploadReleaseRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function upload($app, GoogleFirebaseAppdistroV1UploadReleaseRequest $postBody, $optParams = [])
{
$params = ['app' => $app, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_FirebaseAppDistribution_Resource_Media');

View File

@@ -0,0 +1,33 @@
<?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\FirebaseAppDistribution\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $projects = $firebaseappdistributionService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_FirebaseAppDistribution_Resource_Projects');

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\FirebaseAppDistribution\Resource;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1AabInfo;
/**
* The "apps" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $apps = $firebaseappdistributionService->projects_apps;
* </code>
*/
class ProjectsApps extends \Google\Service\Resource
{
/**
* Gets Android App Bundle (AAB) information for a Firebase app.
* (apps.getAabInfo)
*
* @param string $name Required. The name of the `AabInfo` resource to retrieve.
* Format: `projects/{project_number}/apps/{app_id}/aabInfo`
* @param array $optParams Optional parameters.
* @return GoogleFirebaseAppdistroV1AabInfo
* @throws \Google\Service\Exception
*/
public function getAabInfo($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAabInfo', [$params], GoogleFirebaseAppdistroV1AabInfo::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsApps::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsApps');

View File

@@ -0,0 +1,149 @@
<?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\FirebaseAppDistribution\Resource;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1DistributeReleaseRequest;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1DistributeReleaseResponse;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1ListReleasesResponse;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1Release;
use Google\Service\FirebaseAppDistribution\GoogleProtobufEmpty;
/**
* The "releases" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $releases = $firebaseappdistributionService->projects_apps_releases;
* </code>
*/
class ProjectsAppsReleases extends \Google\Service\Resource
{
/**
* Deletes releases. A maximum of 100 releases can be deleted per request.
* (releases.batchDelete)
*
* @param string $parent Required. The name of the app resource, which is the
* parent of the release resources. Format:
* `projects/{project_number}/apps/{app_id}`
* @param GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchDelete($parent, GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], GoogleProtobufEmpty::class);
}
/**
* Distributes a release to testers. This call does the following: 1. Creates
* testers for the specified emails, if none exist. 2. Adds the testers and
* groups to the release. 3. Sends new testers an invitation email. 4. Sends
* existing testers a new release email. The request will fail with a
* `INVALID_ARGUMENT` if it contains a group that doesn't exist.
* (releases.distribute)
*
* @param string $name Required. The name of the release resource to distribute.
* Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`
* @param GoogleFirebaseAppdistroV1DistributeReleaseRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleFirebaseAppdistroV1DistributeReleaseResponse
* @throws \Google\Service\Exception
*/
public function distribute($name, GoogleFirebaseAppdistroV1DistributeReleaseRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('distribute', [$params], GoogleFirebaseAppdistroV1DistributeReleaseResponse::class);
}
/**
* Gets a release. (releases.get)
*
* @param string $name Required. The name of the release resource to retrieve.
* Format: projects/{project_number}/apps/{app_id}/releases/{release_id}
* @param array $optParams Optional parameters.
* @return GoogleFirebaseAppdistroV1Release
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleFirebaseAppdistroV1Release::class);
}
/**
* Lists releases. By default, sorts by `createTime` in descending order.
* (releases.listProjectsAppsReleases)
*
* @param string $parent Required. The name of the app resource, which is the
* parent of the release resources. Format:
* `projects/{project_number}/apps/{app_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string filter The expression to filter releases listed in the
* response. To learn more about filtering, refer to [Google's AIP-160
* standard](http://aip.dev/160). Supported fields: - `releaseNotes.text`
* supports `=` (can contain a wildcard character (`*`) at the beginning or end
* of the string) - `createTime` supports `<`, `<=`, `>` and `>=`, and expects
* an RFC-3339 formatted string Examples: - `createTime <=
* "2021-09-08T00:00:00+04:00"` - `releaseNotes.text="fixes" AND createTime >=
* "2021-09-08T00:00:00.0Z"` - `releaseNotes.text="*v1.0.0-rc*"`
* @opt_param string orderBy The fields used to order releases. Supported
* fields: - `createTime` To specify descending order for a field, append a
* "desc" suffix, for example, `createTime desc`. If this parameter is not set,
* releases are ordered by `createTime` in descending order.
* @opt_param int pageSize The maximum number of releases to return. The service
* may return fewer than this value. The valid range is [1-100]; If unspecified
* (0), at most 25 releases are returned. Values above 100 are coerced to 100.
* @opt_param string pageToken A page token, received from a previous
* `ListReleases` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListReleases` must match the
* call that provided the page token.
* @return GoogleFirebaseAppdistroV1ListReleasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAppsReleases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleFirebaseAppdistroV1ListReleasesResponse::class);
}
/**
* Updates a release. (releases.patch)
*
* @param string $name The name of the release resource. Format:
* `projects/{project_number}/apps/{app_id}/releases/{release_id}`
* @param GoogleFirebaseAppdistroV1Release $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update.
* @return GoogleFirebaseAppdistroV1Release
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleFirebaseAppdistroV1Release $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleFirebaseAppdistroV1Release::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAppsReleases::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsAppsReleases');

View File

@@ -0,0 +1,95 @@
<?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\FirebaseAppDistribution\Resource;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1FeedbackReport;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1ListFeedbackReportsResponse;
use Google\Service\FirebaseAppDistribution\GoogleProtobufEmpty;
/**
* The "feedbackReports" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $feedbackReports = $firebaseappdistributionService->projects_apps_releases_feedbackReports;
* </code>
*/
class ProjectsAppsReleasesFeedbackReports extends \Google\Service\Resource
{
/**
* Deletes a feedback report. (feedbackReports.delete)
*
* @param string $name Required. The name of the feedback report to delete.
* Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackRepor
* ts/{feedback_report}
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a feedback report. (feedbackReports.get)
*
* @param string $name Required. The name of the feedback report to retrieve.
* Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackRepor
* ts/{feedback_report}
* @param array $optParams Optional parameters.
* @return GoogleFirebaseAppdistroV1FeedbackReport
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleFirebaseAppdistroV1FeedbackReport::class);
}
/**
* Lists feedback reports. By default, sorts by `createTime` in descending
* order. (feedbackReports.listProjectsAppsReleasesFeedbackReports)
*
* @param string $parent Required. The name of the release resource, which is
* the parent of the feedback report resources. Format:
* `projects/{project_number}/apps/{app}/releases/{release}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of feedback reports to return. The
* service may return fewer than this value. The valid range is [1-100]; If
* unspecified (0), at most 25 feedback reports are returned. Values above 100
* are coerced to 100.
* @opt_param string pageToken A page token, received from a previous
* `ListFeedbackReports` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListFeedbackReports` must
* match the call that provided the page token.
* @return GoogleFirebaseAppdistroV1ListFeedbackReportsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAppsReleasesFeedbackReports($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleFirebaseAppdistroV1ListFeedbackReportsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAppsReleasesFeedbackReports::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsAppsReleasesFeedbackReports');

View File

@@ -0,0 +1,138 @@
<?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\FirebaseAppDistribution\Resource;
use Google\Service\FirebaseAppDistribution\GoogleLongrunningCancelOperationRequest;
use Google\Service\FirebaseAppDistribution\GoogleLongrunningListOperationsResponse;
use Google\Service\FirebaseAppDistribution\GoogleLongrunningOperation;
use Google\Service\FirebaseAppDistribution\GoogleLongrunningWaitOperationRequest;
use Google\Service\FirebaseAppDistribution\GoogleProtobufEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $operations = $firebaseappdistributionService->projects_apps_releases_operations;
* </code>
*/
class ProjectsAppsReleasesOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param GoogleLongrunningCancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, GoogleLongrunningCancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsAppsReleasesOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAppsReleasesOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
/**
* Waits until the specified long-running operation is done or reaches at most a
* specified timeout, returning the latest state. If the operation is already
* done, the latest state is immediately returned. If the timeout specified is
* greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
* the server does not support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort
* basis. It may return the latest state before the specified timeout (including
* immediately), meaning even an immediate response is no guarantee that the
* operation is done. (operations.wait)
*
* @param string $name The name of the operation resource to wait on.
* @param GoogleLongrunningWaitOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function wait($name, GoogleLongrunningWaitOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('wait', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAppsReleasesOperations::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsAppsReleasesOperations');

View File

@@ -0,0 +1,168 @@
<?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\FirebaseAppDistribution\Resource;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchJoinGroupRequest;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchLeaveGroupRequest;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1Group;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1ListGroupsResponse;
use Google\Service\FirebaseAppDistribution\GoogleProtobufEmpty;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $groups = $firebaseappdistributionService->projects_groups;
* </code>
*/
class ProjectsGroups extends \Google\Service\Resource
{
/**
* Batch adds members to a group. The testers will gain access to all releases
* that the groups have access to. (groups.batchJoin)
*
* @param string $group Required. The name of the group resource to which
* testers are added. Format: `projects/{project_number}/groups/{group_alias}`
* @param GoogleFirebaseAppdistroV1BatchJoinGroupRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchJoin($group, GoogleFirebaseAppdistroV1BatchJoinGroupRequest $postBody, $optParams = [])
{
$params = ['group' => $group, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchJoin', [$params], GoogleProtobufEmpty::class);
}
/**
* Batch removed members from a group. The testers will lose access to all
* releases that the groups have access to. (groups.batchLeave)
*
* @param string $group Required. The name of the group resource from which
* testers are removed. Format: `projects/{project_number}/groups/{group_alias}`
* @param GoogleFirebaseAppdistroV1BatchLeaveGroupRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchLeave($group, GoogleFirebaseAppdistroV1BatchLeaveGroupRequest $postBody, $optParams = [])
{
$params = ['group' => $group, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchLeave', [$params], GoogleProtobufEmpty::class);
}
/**
* Create a group. (groups.create)
*
* @param string $parent Required. The name of the project resource, which is
* the parent of the group resource. Format: `projects/{project_number}`
* @param GoogleFirebaseAppdistroV1Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string groupId Optional. The "alias" to use for the group, which
* will become the final component of the group's resource name. This value must
* be unique per project. The field is named `groupId` to comply with AIP
* guidance for user-specified IDs. This value should be 4-63 characters, and
* valid characters are `/a-z-/`. If not set, it will be generated based on the
* display name.
* @return GoogleFirebaseAppdistroV1Group
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleFirebaseAppdistroV1Group $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleFirebaseAppdistroV1Group::class);
}
/**
* Delete a group. (groups.delete)
*
* @param string $name Required. The name of the group resource. Format:
* `projects/{project_number}/groups/{group_alias}`
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Get a group. (groups.get)
*
* @param string $name Required. The name of the group resource to retrieve.
* Format: `projects/{project_number}/groups/{group_alias}`
* @param array $optParams Optional parameters.
* @return GoogleFirebaseAppdistroV1Group
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleFirebaseAppdistroV1Group::class);
}
/**
* List groups. (groups.listProjectsGroups)
*
* @param string $parent Required. The name of the project resource, which is
* the parent of the group resources. Format: `projects/{project_number}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of groups to return. The
* service may return fewer than this value. The valid range is [1-1000]; If
* unspecified (0), at most 25 groups are returned. Values above 1000 are
* coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListGroups` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListGroups` must match the call
* that provided the page token.
* @return GoogleFirebaseAppdistroV1ListGroupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleFirebaseAppdistroV1ListGroupsResponse::class);
}
/**
* Update a group. (groups.patch)
*
* @param string $name The name of the group resource. Format:
* `projects/{project_number}/groups/{group_alias}`
* @param GoogleFirebaseAppdistroV1Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update.
* @return GoogleFirebaseAppdistroV1Group
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleFirebaseAppdistroV1Group $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleFirebaseAppdistroV1Group::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsGroups::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsGroups');

View File

@@ -0,0 +1,124 @@
<?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\FirebaseAppDistribution\Resource;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchAddTestersRequest;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchAddTestersResponse;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchRemoveTestersRequest;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchRemoveTestersResponse;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1ListTestersResponse;
use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1Tester;
/**
* The "testers" collection of methods.
* Typical usage is:
* <code>
* $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
* $testers = $firebaseappdistributionService->projects_testers;
* </code>
*/
class ProjectsTesters extends \Google\Service\Resource
{
/**
* Batch adds testers. This call adds testers for the specified emails if they
* don't already exist. Returns all testers specified in the request, including
* newly created and previously existing testers. This action is idempotent.
* (testers.batchAdd)
*
* @param string $project Required. The name of the project resource. Format:
* `projects/{project_number}`
* @param GoogleFirebaseAppdistroV1BatchAddTestersRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleFirebaseAppdistroV1BatchAddTestersResponse
* @throws \Google\Service\Exception
*/
public function batchAdd($project, GoogleFirebaseAppdistroV1BatchAddTestersRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchAdd', [$params], GoogleFirebaseAppdistroV1BatchAddTestersResponse::class);
}
/**
* Batch removes testers. If found, this call deletes testers for the specified
* emails. Returns all deleted testers. (testers.batchRemove)
*
* @param string $project Required. The name of the project resource. Format:
* `projects/{project_number}`
* @param GoogleFirebaseAppdistroV1BatchRemoveTestersRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleFirebaseAppdistroV1BatchRemoveTestersResponse
* @throws \Google\Service\Exception
*/
public function batchRemove($project, GoogleFirebaseAppdistroV1BatchRemoveTestersRequest $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchRemove', [$params], GoogleFirebaseAppdistroV1BatchRemoveTestersResponse::class);
}
/**
* Lists testers and their resource ids. (testers.listProjectsTesters)
*
* @param string $parent Required. The name of the project resource, which is
* the parent of the tester resources. Format: `projects/{project_number}`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The expression to filter testers listed in
* the response. To learn more about filtering, refer to [Google's AIP-160
* standard](http://aip.dev/160). Supported fields: - `name` - `displayName` -
* `groups` Example: - `name = "projects/-/testers@example.com"` - `displayName
* = "Joe Sixpack"` - `groups = "projects/groups/qa-team"`
* @opt_param int pageSize Optional. The maximum number of testers to return.
* The service may return fewer than this value. The valid range is [1-1000]; If
* unspecified (0), at most 10 testers are returned. Values above 1000 are
* coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListTesters` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListTesters` must match the
* call that provided the page token.
* @return GoogleFirebaseAppdistroV1ListTestersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTesters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleFirebaseAppdistroV1ListTestersResponse::class);
}
/**
* Update a tester. If the testers joins a group they gain access to all
* releases that the group has access to. (testers.patch)
*
* @param string $name The name of the tester resource. Format:
* `projects/{project_number}/testers/{email_address}`
* @param GoogleFirebaseAppdistroV1Tester $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update.
* @return GoogleFirebaseAppdistroV1Tester
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleFirebaseAppdistroV1Tester $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleFirebaseAppdistroV1Tester::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTesters::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsTesters');