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\Firebaseappcheck\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Firebaseappcheck\GoogleFirebaseAppcheckV1BatchGetPlayIntegrityConfigsResponse;
|
---|
21 | use Google\Service\Firebaseappcheck\GoogleFirebaseAppcheckV1PlayIntegrityConfig;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "playIntegrityConfig" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $firebaseappcheckService = new Google\Service\Firebaseappcheck(...);
|
---|
28 | * $playIntegrityConfig = $firebaseappcheckService->projects_apps_playIntegrityConfig;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class ProjectsAppsPlayIntegrityConfig extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * Atomically gets the PlayIntegrityConfigs for the specified list of apps.
|
---|
35 | * (playIntegrityConfig.batchGet)
|
---|
36 | *
|
---|
37 | * @param string $parent Required. The parent project name shared by all
|
---|
38 | * PlayIntegrityConfigs being retrieved, in the format ```
|
---|
39 | * projects/{project_number} ``` The parent collection in the `name` field of
|
---|
40 | * any resource being retrieved must match this field, or the entire batch
|
---|
41 | * fails.
|
---|
42 | * @param array $optParams Optional parameters.
|
---|
43 | *
|
---|
44 | * @opt_param string names Required. The relative resource names of the
|
---|
45 | * PlayIntegrityConfigs to retrieve, in the format ```
|
---|
46 | * projects/{project_number}/apps/{app_id}/playIntegrityConfig ``` A maximum of
|
---|
47 | * 100 objects can be retrieved in a batch.
|
---|
48 | * @return GoogleFirebaseAppcheckV1BatchGetPlayIntegrityConfigsResponse
|
---|
49 | * @throws \Google\Service\Exception
|
---|
50 | */
|
---|
51 | public function batchGet($parent, $optParams = [])
|
---|
52 | {
|
---|
53 | $params = ['parent' => $parent];
|
---|
54 | $params = array_merge($params, $optParams);
|
---|
55 | return $this->call('batchGet', [$params], GoogleFirebaseAppcheckV1BatchGetPlayIntegrityConfigsResponse::class);
|
---|
56 | }
|
---|
57 | /**
|
---|
58 | * Gets the PlayIntegrityConfig for the specified app. (playIntegrityConfig.get)
|
---|
59 | *
|
---|
60 | * @param string $name Required. The relative resource name of the
|
---|
61 | * PlayIntegrityConfig, in the format: ```
|
---|
62 | * projects/{project_number}/apps/{app_id}/playIntegrityConfig ```
|
---|
63 | * @param array $optParams Optional parameters.
|
---|
64 | * @return GoogleFirebaseAppcheckV1PlayIntegrityConfig
|
---|
65 | * @throws \Google\Service\Exception
|
---|
66 | */
|
---|
67 | public function get($name, $optParams = [])
|
---|
68 | {
|
---|
69 | $params = ['name' => $name];
|
---|
70 | $params = array_merge($params, $optParams);
|
---|
71 | return $this->call('get', [$params], GoogleFirebaseAppcheckV1PlayIntegrityConfig::class);
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * Updates the PlayIntegrityConfig for the specified app. While this
|
---|
75 | * configuration is incomplete or invalid, the app will be unable to exchange
|
---|
76 | * Play Integrity tokens for App Check tokens. (playIntegrityConfig.patch)
|
---|
77 | *
|
---|
78 | * @param string $name Required. The relative resource name of the Play
|
---|
79 | * Integrity configuration object, in the format: ```
|
---|
80 | * projects/{project_number}/apps/{app_id}/playIntegrityConfig ```
|
---|
81 | * @param GoogleFirebaseAppcheckV1PlayIntegrityConfig $postBody
|
---|
82 | * @param array $optParams Optional parameters.
|
---|
83 | *
|
---|
84 | * @opt_param string updateMask Required. A comma-separated list of names of
|
---|
85 | * fields in the PlayIntegrityConfig to update. Example: `token_ttl`.
|
---|
86 | * @return GoogleFirebaseAppcheckV1PlayIntegrityConfig
|
---|
87 | * @throws \Google\Service\Exception
|
---|
88 | */
|
---|
89 | public function patch($name, GoogleFirebaseAppcheckV1PlayIntegrityConfig $postBody, $optParams = [])
|
---|
90 | {
|
---|
91 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
92 | $params = array_merge($params, $optParams);
|
---|
93 | return $this->call('patch', [$params], GoogleFirebaseAppcheckV1PlayIntegrityConfig::class);
|
---|
94 | }
|
---|
95 | }
|
---|
96 |
|
---|
97 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
98 | class_alias(ProjectsAppsPlayIntegrityConfig::class, 'Google_Service_Firebaseappcheck_Resource_ProjectsAppsPlayIntegrityConfig');
|
---|