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\Integrations\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDeprovisionClientRequest;
|
---|
21 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaProvisionClientRequest;
|
---|
22 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest;
|
---|
23 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSwitchEncryptionRequest;
|
---|
24 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSwitchVariableMaskingRequest;
|
---|
25 | use Google\Service\Integrations\GoogleProtobufEmpty;
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * The "clients" collection of methods.
|
---|
29 | * Typical usage is:
|
---|
30 | * <code>
|
---|
31 | * $integrationsService = new Google\Service\Integrations(...);
|
---|
32 | * $clients = $integrationsService->projects_locations_clients;
|
---|
33 | * </code>
|
---|
34 | */
|
---|
35 | class ProjectsLocationsClients extends \Google\Service\Resource
|
---|
36 | {
|
---|
37 | /**
|
---|
38 | * Perform the deprovisioning steps to disable a user GCP project to use IP and
|
---|
39 | * purge all related data in a wipeout-compliant way. (clients.deprovision)
|
---|
40 | *
|
---|
41 | * @param string $parent Required. Required: The ID of the GCP Project to be
|
---|
42 | * deprovisioned.
|
---|
43 | * @param GoogleCloudIntegrationsV1alphaDeprovisionClientRequest $postBody
|
---|
44 | * @param array $optParams Optional parameters.
|
---|
45 | * @return GoogleProtobufEmpty
|
---|
46 | * @throws \Google\Service\Exception
|
---|
47 | */
|
---|
48 | public function deprovision($parent, GoogleCloudIntegrationsV1alphaDeprovisionClientRequest $postBody, $optParams = [])
|
---|
49 | {
|
---|
50 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
51 | $params = array_merge($params, $optParams);
|
---|
52 | return $this->call('deprovision', [$params], GoogleProtobufEmpty::class);
|
---|
53 | }
|
---|
54 | /**
|
---|
55 | * Perform the provisioning steps to enable a user GCP project to use IP. If GCP
|
---|
56 | * project already registered on IP end via Apigee Integration, provisioning
|
---|
57 | * will fail. (clients.provision)
|
---|
58 | *
|
---|
59 | * @param string $parent Required. Required: The ID of the GCP Project to be
|
---|
60 | * provisioned.
|
---|
61 | * @param GoogleCloudIntegrationsV1alphaProvisionClientRequest $postBody
|
---|
62 | * @param array $optParams Optional parameters.
|
---|
63 | * @return GoogleProtobufEmpty
|
---|
64 | * @throws \Google\Service\Exception
|
---|
65 | */
|
---|
66 | public function provision($parent, GoogleCloudIntegrationsV1alphaProvisionClientRequest $postBody, $optParams = [])
|
---|
67 | {
|
---|
68 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
69 | $params = array_merge($params, $optParams);
|
---|
70 | return $this->call('provision', [$params], GoogleProtobufEmpty::class);
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * Update run-as service account for provisioned client (clients.replace)
|
---|
74 | *
|
---|
75 | * @param string $parent Required. Required: The ID of the GCP Project to be
|
---|
76 | * provisioned.
|
---|
77 | * @param GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest $postBody
|
---|
78 | * @param array $optParams Optional parameters.
|
---|
79 | * @return GoogleProtobufEmpty
|
---|
80 | * @throws \Google\Service\Exception
|
---|
81 | */
|
---|
82 | public function replace($parent, GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest $postBody, $optParams = [])
|
---|
83 | {
|
---|
84 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
85 | $params = array_merge($params, $optParams);
|
---|
86 | return $this->call('replace', [$params], GoogleProtobufEmpty::class);
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * Update client from GMEK to CMEK (clients.switchProjectsLocationsClients)
|
---|
90 | *
|
---|
91 | * @param string $parent Required. Required: The ID of the GCP Project to be
|
---|
92 | * provisioned.
|
---|
93 | * @param GoogleCloudIntegrationsV1alphaSwitchEncryptionRequest $postBody
|
---|
94 | * @param array $optParams Optional parameters.
|
---|
95 | * @return GoogleProtobufEmpty
|
---|
96 | * @throws \Google\Service\Exception
|
---|
97 | */
|
---|
98 | public function switchProjectsLocationsClients($parent, GoogleCloudIntegrationsV1alphaSwitchEncryptionRequest $postBody, $optParams = [])
|
---|
99 | {
|
---|
100 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
101 | $params = array_merge($params, $optParams);
|
---|
102 | return $this->call('switch', [$params], GoogleProtobufEmpty::class);
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * Update variable masking for provisioned client
|
---|
106 | * (clients.switchVariableMasking)
|
---|
107 | *
|
---|
108 | * @param string $parent Required. Required: The ID of the GCP Project to be
|
---|
109 | * provisioned.
|
---|
110 | * @param GoogleCloudIntegrationsV1alphaSwitchVariableMaskingRequest $postBody
|
---|
111 | * @param array $optParams Optional parameters.
|
---|
112 | * @return GoogleProtobufEmpty
|
---|
113 | * @throws \Google\Service\Exception
|
---|
114 | */
|
---|
115 | public function switchVariableMasking($parent, GoogleCloudIntegrationsV1alphaSwitchVariableMaskingRequest $postBody, $optParams = [])
|
---|
116 | {
|
---|
117 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
118 | $params = array_merge($params, $optParams);
|
---|
119 | return $this->call('switchVariableMasking', [$params], GoogleProtobufEmpty::class);
|
---|
120 | }
|
---|
121 | }
|
---|
122 |
|
---|
123 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
124 | class_alias(ProjectsLocationsClients::class, 'Google_Service_Integrations_Resource_ProjectsLocationsClients');
|
---|