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\GoogleAnalyticsAdmin\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink;
|
---|
21 | use Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListFirebaseLinksResponse;
|
---|
22 | use Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "firebaseLinks" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...);
|
---|
29 | * $firebaseLinks = $analyticsadminService->properties_firebaseLinks;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class PropertiesFirebaseLinks extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * Creates a FirebaseLink. Properties can have at most one FirebaseLink.
|
---|
36 | * (firebaseLinks.create)
|
---|
37 | *
|
---|
38 | * @param string $parent Required. Format: properties/{property_id} Example:
|
---|
39 | * `properties/1234`
|
---|
40 | * @param GoogleAnalyticsAdminV1betaFirebaseLink $postBody
|
---|
41 | * @param array $optParams Optional parameters.
|
---|
42 | * @return GoogleAnalyticsAdminV1betaFirebaseLink
|
---|
43 | * @throws \Google\Service\Exception
|
---|
44 | */
|
---|
45 | public function create($parent, GoogleAnalyticsAdminV1betaFirebaseLink $postBody, $optParams = [])
|
---|
46 | {
|
---|
47 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
48 | $params = array_merge($params, $optParams);
|
---|
49 | return $this->call('create', [$params], GoogleAnalyticsAdminV1betaFirebaseLink::class);
|
---|
50 | }
|
---|
51 | /**
|
---|
52 | * Deletes a FirebaseLink on a property (firebaseLinks.delete)
|
---|
53 | *
|
---|
54 | * @param string $name Required. Format:
|
---|
55 | * properties/{property_id}/firebaseLinks/{firebase_link_id} Example:
|
---|
56 | * `properties/1234/firebaseLinks/5678`
|
---|
57 | * @param array $optParams Optional parameters.
|
---|
58 | * @return GoogleProtobufEmpty
|
---|
59 | * @throws \Google\Service\Exception
|
---|
60 | */
|
---|
61 | public function delete($name, $optParams = [])
|
---|
62 | {
|
---|
63 | $params = ['name' => $name];
|
---|
64 | $params = array_merge($params, $optParams);
|
---|
65 | return $this->call('delete', [$params], GoogleProtobufEmpty::class);
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * Lists FirebaseLinks on a property. Properties can have at most one
|
---|
69 | * FirebaseLink. (firebaseLinks.listPropertiesFirebaseLinks)
|
---|
70 | *
|
---|
71 | * @param string $parent Required. Format: properties/{property_id} Example:
|
---|
72 | * `properties/1234`
|
---|
73 | * @param array $optParams Optional parameters.
|
---|
74 | *
|
---|
75 | * @opt_param int pageSize The maximum number of resources to return. The
|
---|
76 | * service may return fewer than this value, even if there are additional pages.
|
---|
77 | * If unspecified, at most 50 resources will be returned. The maximum value is
|
---|
78 | * 200; (higher values will be coerced to the maximum)
|
---|
79 | * @opt_param string pageToken A page token, received from a previous
|
---|
80 | * `ListFirebaseLinks` call. Provide this to retrieve the subsequent page. When
|
---|
81 | * paginating, all other parameters provided to `ListFirebaseLinks` must match
|
---|
82 | * the call that provided the page token.
|
---|
83 | * @return GoogleAnalyticsAdminV1betaListFirebaseLinksResponse
|
---|
84 | * @throws \Google\Service\Exception
|
---|
85 | */
|
---|
86 | public function listPropertiesFirebaseLinks($parent, $optParams = [])
|
---|
87 | {
|
---|
88 | $params = ['parent' => $parent];
|
---|
89 | $params = array_merge($params, $optParams);
|
---|
90 | return $this->call('list', [$params], GoogleAnalyticsAdminV1betaListFirebaseLinksResponse::class);
|
---|
91 | }
|
---|
92 | }
|
---|
93 |
|
---|
94 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
95 | class_alias(PropertiesFirebaseLinks::class, 'Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesFirebaseLinks');
|
---|