source: vendor/google/apiclient-services/src/FirebaseAppDistribution/Resource/ProjectsAppsReleases.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 6.9 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\FirebaseAppDistribution\Resource;
19
20use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest;
21use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1DistributeReleaseRequest;
22use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1DistributeReleaseResponse;
23use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1ListReleasesResponse;
24use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1Release;
25use Google\Service\FirebaseAppDistribution\GoogleProtobufEmpty;
26
27/**
28 * The "releases" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
32 * $releases = $firebaseappdistributionService->projects_apps_releases;
33 * </code>
34 */
35class ProjectsAppsReleases extends \Google\Service\Resource
36{
37 /**
38 * Deletes releases. A maximum of 100 releases can be deleted per request.
39 * (releases.batchDelete)
40 *
41 * @param string $parent Required. The name of the app resource, which is the
42 * parent of the release resources. Format:
43 * `projects/{project_number}/apps/{app_id}`
44 * @param GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest $postBody
45 * @param array $optParams Optional parameters.
46 * @return GoogleProtobufEmpty
47 * @throws \Google\Service\Exception
48 */
49 public function batchDelete($parent, GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest $postBody, $optParams = [])
50 {
51 $params = ['parent' => $parent, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('batchDelete', [$params], GoogleProtobufEmpty::class);
54 }
55 /**
56 * Distributes a release to testers. This call does the following: 1. Creates
57 * testers for the specified emails, if none exist. 2. Adds the testers and
58 * groups to the release. 3. Sends new testers an invitation email. 4. Sends
59 * existing testers a new release email. The request will fail with a
60 * `INVALID_ARGUMENT` if it contains a group that doesn't exist.
61 * (releases.distribute)
62 *
63 * @param string $name Required. The name of the release resource to distribute.
64 * Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`
65 * @param GoogleFirebaseAppdistroV1DistributeReleaseRequest $postBody
66 * @param array $optParams Optional parameters.
67 * @return GoogleFirebaseAppdistroV1DistributeReleaseResponse
68 * @throws \Google\Service\Exception
69 */
70 public function distribute($name, GoogleFirebaseAppdistroV1DistributeReleaseRequest $postBody, $optParams = [])
71 {
72 $params = ['name' => $name, 'postBody' => $postBody];
73 $params = array_merge($params, $optParams);
74 return $this->call('distribute', [$params], GoogleFirebaseAppdistroV1DistributeReleaseResponse::class);
75 }
76 /**
77 * Gets a release. (releases.get)
78 *
79 * @param string $name Required. The name of the release resource to retrieve.
80 * Format: projects/{project_number}/apps/{app_id}/releases/{release_id}
81 * @param array $optParams Optional parameters.
82 * @return GoogleFirebaseAppdistroV1Release
83 * @throws \Google\Service\Exception
84 */
85 public function get($name, $optParams = [])
86 {
87 $params = ['name' => $name];
88 $params = array_merge($params, $optParams);
89 return $this->call('get', [$params], GoogleFirebaseAppdistroV1Release::class);
90 }
91 /**
92 * Lists releases. By default, sorts by `createTime` in descending order.
93 * (releases.listProjectsAppsReleases)
94 *
95 * @param string $parent Required. The name of the app resource, which is the
96 * parent of the release resources. Format:
97 * `projects/{project_number}/apps/{app_id}`
98 * @param array $optParams Optional parameters.
99 *
100 * @opt_param string filter The expression to filter releases listed in the
101 * response. To learn more about filtering, refer to [Google's AIP-160
102 * standard](http://aip.dev/160). Supported fields: - `releaseNotes.text`
103 * supports `=` (can contain a wildcard character (`*`) at the beginning or end
104 * of the string) - `createTime` supports `<`, `<=`, `>` and `>=`, and expects
105 * an RFC-3339 formatted string Examples: - `createTime <=
106 * "2021-09-08T00:00:00+04:00"` - `releaseNotes.text="fixes" AND createTime >=
107 * "2021-09-08T00:00:00.0Z"` - `releaseNotes.text="*v1.0.0-rc*"`
108 * @opt_param string orderBy The fields used to order releases. Supported
109 * fields: - `createTime` To specify descending order for a field, append a
110 * "desc" suffix, for example, `createTime desc`. If this parameter is not set,
111 * releases are ordered by `createTime` in descending order.
112 * @opt_param int pageSize The maximum number of releases to return. The service
113 * may return fewer than this value. The valid range is [1-100]; If unspecified
114 * (0), at most 25 releases are returned. Values above 100 are coerced to 100.
115 * @opt_param string pageToken A page token, received from a previous
116 * `ListReleases` call. Provide this to retrieve the subsequent page. When
117 * paginating, all other parameters provided to `ListReleases` must match the
118 * call that provided the page token.
119 * @return GoogleFirebaseAppdistroV1ListReleasesResponse
120 * @throws \Google\Service\Exception
121 */
122 public function listProjectsAppsReleases($parent, $optParams = [])
123 {
124 $params = ['parent' => $parent];
125 $params = array_merge($params, $optParams);
126 return $this->call('list', [$params], GoogleFirebaseAppdistroV1ListReleasesResponse::class);
127 }
128 /**
129 * Updates a release. (releases.patch)
130 *
131 * @param string $name The name of the release resource. Format:
132 * `projects/{project_number}/apps/{app_id}/releases/{release_id}`
133 * @param GoogleFirebaseAppdistroV1Release $postBody
134 * @param array $optParams Optional parameters.
135 *
136 * @opt_param string updateMask The list of fields to update.
137 * @return GoogleFirebaseAppdistroV1Release
138 * @throws \Google\Service\Exception
139 */
140 public function patch($name, GoogleFirebaseAppdistroV1Release $postBody, $optParams = [])
141 {
142 $params = ['name' => $name, 'postBody' => $postBody];
143 $params = array_merge($params, $optParams);
144 return $this->call('patch', [$params], GoogleFirebaseAppdistroV1Release::class);
145 }
146}
147
148// Adding a class alias for backwards compatibility with the previous class name.
149class_alias(ProjectsAppsReleases::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsAppsReleases');
Note: See TracBrowser for help on using the repository browser.