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\GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest;
|
---|
21 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse;
|
---|
22 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest;
|
---|
23 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse;
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * The "appsScriptProjects" collection of methods.
|
---|
27 | * Typical usage is:
|
---|
28 | * <code>
|
---|
29 | * $integrationsService = new Google\Service\Integrations(...);
|
---|
30 | * $appsScriptProjects = $integrationsService->projects_locations_appsScriptProjects;
|
---|
31 | * </code>
|
---|
32 | */
|
---|
33 | class ProjectsLocationsAppsScriptProjects extends \Google\Service\Resource
|
---|
34 | {
|
---|
35 | /**
|
---|
36 | * Creates an Apps Script project. (appsScriptProjects.create)
|
---|
37 | *
|
---|
38 | * @param string $parent Required. The project that the executed integration
|
---|
39 | * belongs to.
|
---|
40 | * @param GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest $postBody
|
---|
41 | * @param array $optParams Optional parameters.
|
---|
42 | * @return GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse
|
---|
43 | * @throws \Google\Service\Exception
|
---|
44 | */
|
---|
45 | public function create($parent, GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest $postBody, $optParams = [])
|
---|
46 | {
|
---|
47 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
48 | $params = array_merge($params, $optParams);
|
---|
49 | return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse::class);
|
---|
50 | }
|
---|
51 | /**
|
---|
52 | * Links a existing Apps Script project. (appsScriptProjects.link)
|
---|
53 | *
|
---|
54 | * @param string $parent Required. The project that the executed integration
|
---|
55 | * belongs to.
|
---|
56 | * @param GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest $postBody
|
---|
57 | * @param array $optParams Optional parameters.
|
---|
58 | * @return GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse
|
---|
59 | * @throws \Google\Service\Exception
|
---|
60 | */
|
---|
61 | public function link($parent, GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest $postBody, $optParams = [])
|
---|
62 | {
|
---|
63 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
64 | $params = array_merge($params, $optParams);
|
---|
65 | return $this->call('link', [$params], GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse::class);
|
---|
66 | }
|
---|
67 | }
|
---|
68 |
|
---|
69 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
70 | class_alias(ProjectsLocationsAppsScriptProjects::class, 'Google_Service_Integrations_Resource_ProjectsLocationsAppsScriptProjects');
|
---|