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 |
|
---|
18 | namespace Google\Service\FirebaseAppDistribution\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1FeedbackReport;
|
---|
21 | use Google\Service\FirebaseAppDistribution\GoogleFirebaseAppdistroV1ListFeedbackReportsResponse;
|
---|
22 | use Google\Service\FirebaseAppDistribution\GoogleProtobufEmpty;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "feedbackReports" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $firebaseappdistributionService = new Google\Service\FirebaseAppDistribution(...);
|
---|
29 | * $feedbackReports = $firebaseappdistributionService->projects_apps_releases_feedbackReports;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class ProjectsAppsReleasesFeedbackReports extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * Deletes a feedback report. (feedbackReports.delete)
|
---|
36 | *
|
---|
37 | * @param string $name Required. The name of the feedback report to delete.
|
---|
38 | * Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackRepor
|
---|
39 | * ts/{feedback_report}
|
---|
40 | * @param array $optParams Optional parameters.
|
---|
41 | * @return GoogleProtobufEmpty
|
---|
42 | * @throws \Google\Service\Exception
|
---|
43 | */
|
---|
44 | public function delete($name, $optParams = [])
|
---|
45 | {
|
---|
46 | $params = ['name' => $name];
|
---|
47 | $params = array_merge($params, $optParams);
|
---|
48 | return $this->call('delete', [$params], GoogleProtobufEmpty::class);
|
---|
49 | }
|
---|
50 | /**
|
---|
51 | * Gets a feedback report. (feedbackReports.get)
|
---|
52 | *
|
---|
53 | * @param string $name Required. The name of the feedback report to retrieve.
|
---|
54 | * Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackRepor
|
---|
55 | * ts/{feedback_report}
|
---|
56 | * @param array $optParams Optional parameters.
|
---|
57 | * @return GoogleFirebaseAppdistroV1FeedbackReport
|
---|
58 | * @throws \Google\Service\Exception
|
---|
59 | */
|
---|
60 | public function get($name, $optParams = [])
|
---|
61 | {
|
---|
62 | $params = ['name' => $name];
|
---|
63 | $params = array_merge($params, $optParams);
|
---|
64 | return $this->call('get', [$params], GoogleFirebaseAppdistroV1FeedbackReport::class);
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * Lists feedback reports. By default, sorts by `createTime` in descending
|
---|
68 | * order. (feedbackReports.listProjectsAppsReleasesFeedbackReports)
|
---|
69 | *
|
---|
70 | * @param string $parent Required. The name of the release resource, which is
|
---|
71 | * the parent of the feedback report resources. Format:
|
---|
72 | * `projects/{project_number}/apps/{app}/releases/{release}`
|
---|
73 | * @param array $optParams Optional parameters.
|
---|
74 | *
|
---|
75 | * @opt_param int pageSize The maximum number of feedback reports to return. The
|
---|
76 | * service may return fewer than this value. The valid range is [1-100]; If
|
---|
77 | * unspecified (0), at most 25 feedback reports are returned. Values above 100
|
---|
78 | * are coerced to 100.
|
---|
79 | * @opt_param string pageToken A page token, received from a previous
|
---|
80 | * `ListFeedbackReports` call. Provide this to retrieve the subsequent page.
|
---|
81 | * When paginating, all other parameters provided to `ListFeedbackReports` must
|
---|
82 | * match the call that provided the page token.
|
---|
83 | * @return GoogleFirebaseAppdistroV1ListFeedbackReportsResponse
|
---|
84 | * @throws \Google\Service\Exception
|
---|
85 | */
|
---|
86 | public function listProjectsAppsReleasesFeedbackReports($parent, $optParams = [])
|
---|
87 | {
|
---|
88 | $params = ['parent' => $parent];
|
---|
89 | $params = array_merge($params, $optParams);
|
---|
90 | return $this->call('list', [$params], GoogleFirebaseAppdistroV1ListFeedbackReportsResponse::class);
|
---|
91 | }
|
---|
92 | }
|
---|
93 |
|
---|
94 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
95 | class_alias(ProjectsAppsReleasesFeedbackReports::class, 'Google_Service_FirebaseAppDistribution_Resource_ProjectsAppsReleasesFeedbackReports');
|
---|