[e3d4e0a] | 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\GoogleCloudIntegrationsV1alphaLiftSuspensionRequest;
|
---|
| 21 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLiftSuspensionResponse;
|
---|
| 22 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSuspensionsResponse;
|
---|
| 23 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaResolveSuspensionRequest;
|
---|
| 24 | use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaResolveSuspensionResponse;
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | * The "suspensions" collection of methods.
|
---|
| 28 | * Typical usage is:
|
---|
| 29 | * <code>
|
---|
| 30 | * $integrationsService = new Google\Service\Integrations(...);
|
---|
| 31 | * $suspensions = $integrationsService->projects_locations_integrations_executions_suspensions;
|
---|
| 32 | * </code>
|
---|
| 33 | */
|
---|
| 34 | class ProjectsLocationsIntegrationsExecutionsSuspensions extends \Google\Service\Resource
|
---|
| 35 | {
|
---|
| 36 | /**
|
---|
| 37 | * * Lifts suspension for the Suspension task. Fetch corresponding suspension
|
---|
| 38 | * with provided suspension Id, resolve suspension, and set up suspension result
|
---|
| 39 | * for the Suspension Task. (suspensions.lift)
|
---|
| 40 | *
|
---|
| 41 | * @param string $name Required. The resource that the suspension belongs to. "p
|
---|
| 42 | * rojects/{project}/locations/{location}/products/{product}/integrations/{integ
|
---|
| 43 | * ration}/executions/{execution}/suspensions/{suspenion}" format.
|
---|
| 44 | * @param GoogleCloudIntegrationsV1alphaLiftSuspensionRequest $postBody
|
---|
| 45 | * @param array $optParams Optional parameters.
|
---|
| 46 | * @return GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
|
---|
| 47 | * @throws \Google\Service\Exception
|
---|
| 48 | */
|
---|
| 49 | public function lift($name, GoogleCloudIntegrationsV1alphaLiftSuspensionRequest $postBody, $optParams = [])
|
---|
| 50 | {
|
---|
| 51 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 52 | $params = array_merge($params, $optParams);
|
---|
| 53 | return $this->call('lift', [$params], GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::class);
|
---|
| 54 | }
|
---|
| 55 | /**
|
---|
| 56 | * * Lists suspensions associated with a specific execution. Only those with
|
---|
| 57 | * permissions to resolve the relevant suspensions will be able to view them.
|
---|
| 58 | * (suspensions.listProjectsLocationsIntegrationsExecutionsSuspensions)
|
---|
| 59 | *
|
---|
| 60 | * @param string $parent Required. projects/{gcp_project_id}/locations/{location
|
---|
| 61 | * }/products/{product}/integrations/{integration_name}/executions/{execution_na
|
---|
| 62 | * me}
|
---|
| 63 | * @param array $optParams Optional parameters.
|
---|
| 64 | *
|
---|
| 65 | * @opt_param string filter Standard filter field.
|
---|
| 66 | * @opt_param string orderBy Field name to order by.
|
---|
| 67 | * @opt_param int pageSize Maximum number of entries in the response.
|
---|
| 68 | * @opt_param string pageToken Token to retrieve a specific page.
|
---|
| 69 | * @return GoogleCloudIntegrationsV1alphaListSuspensionsResponse
|
---|
| 70 | * @throws \Google\Service\Exception
|
---|
| 71 | */
|
---|
| 72 | public function listProjectsLocationsIntegrationsExecutionsSuspensions($parent, $optParams = [])
|
---|
| 73 | {
|
---|
| 74 | $params = ['parent' => $parent];
|
---|
| 75 | $params = array_merge($params, $optParams);
|
---|
| 76 | return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSuspensionsResponse::class);
|
---|
| 77 | }
|
---|
| 78 | /**
|
---|
| 79 | * * Resolves (lifts/rejects) any number of suspensions. If the integration is
|
---|
| 80 | * already running, only the status of the suspension is updated. Otherwise, the
|
---|
| 81 | * suspended integration will begin execution again. (suspensions.resolve)
|
---|
| 82 | *
|
---|
| 83 | * @param string $name Required. projects/{gcp_project_id}/locations/{location}/
|
---|
| 84 | * products/{product}/integrations/{integration_name}/executions/{execution_name
|
---|
| 85 | * }/suspensions/{suspension_id}
|
---|
| 86 | * @param GoogleCloudIntegrationsV1alphaResolveSuspensionRequest $postBody
|
---|
| 87 | * @param array $optParams Optional parameters.
|
---|
| 88 | * @return GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
|
---|
| 89 | * @throws \Google\Service\Exception
|
---|
| 90 | */
|
---|
| 91 | public function resolve($name, GoogleCloudIntegrationsV1alphaResolveSuspensionRequest $postBody, $optParams = [])
|
---|
| 92 | {
|
---|
| 93 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 94 | $params = array_merge($params, $optParams);
|
---|
| 95 | return $this->call('resolve', [$params], GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::class);
|
---|
| 96 | }
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 100 | class_alias(ProjectsLocationsIntegrationsExecutionsSuspensions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrationsExecutionsSuspensions');
|
---|