source: vendor/google/apiclient-services/src/Connectors/Resource/ProjectsLocationsConnectionsActions.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 3.7 KB
Line 
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
18namespace Google\Service\Connectors\Resource;
19
20use Google\Service\Connectors\Action;
21use Google\Service\Connectors\ExecuteActionRequest;
22use Google\Service\Connectors\ExecuteActionResponse;
23use Google\Service\Connectors\ListActionsResponse;
24
25/**
26 * The "actions" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $connectorsService = new Google\Service\Connectors(...);
30 * $actions = $connectorsService->projects_locations_connections_actions;
31 * </code>
32 */
33class ProjectsLocationsConnectionsActions extends \Google\Service\Resource
34{
35 /**
36 * Executes an action with the name specified in the request. The input
37 * parameters for executing the action are passed through the body of the
38 * ExecuteAction request. (actions.execute)
39 *
40 * @param string $name Required. Resource name of the Action. Format: projects/{
41 * project}/locations/{location}/connections/{connection}/actions/{action}
42 * @param ExecuteActionRequest $postBody
43 * @param array $optParams Optional parameters.
44 * @return ExecuteActionResponse
45 * @throws \Google\Service\Exception
46 */
47 public function execute($name, ExecuteActionRequest $postBody, $optParams = [])
48 {
49 $params = ['name' => $name, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('execute', [$params], ExecuteActionResponse::class);
52 }
53 /**
54 * Gets the schema of the given action. (actions.get)
55 *
56 * @param string $name Required. Resource name of the Action. Format: projects/{
57 * project}/locations/{location}/connections/{connection}/actions/{action}
58 * @param array $optParams Optional parameters.
59 * @return Action
60 * @throws \Google\Service\Exception
61 */
62 public function get($name, $optParams = [])
63 {
64 $params = ['name' => $name];
65 $params = array_merge($params, $optParams);
66 return $this->call('get', [$params], Action::class);
67 }
68 /**
69 * Gets the schema of all the actions supported by the connector.
70 * (actions.listProjectsLocationsConnectionsActions)
71 *
72 * @param string $parent Required. Parent resource name of the Action. Format:
73 * projects/{project}/locations/{location}/connections/{connection}
74 * @param array $optParams Optional parameters.
75 *
76 * @opt_param int pageSize Number of Actions to return. Defaults to 25.
77 * @opt_param string pageToken Page token, return from a previous ListActions
78 * call, that can be used retrieve the next page of content. If unspecified, the
79 * request returns the first page of actions.
80 * @opt_param string view Specifies which fields of the Action are returned in
81 * the response.
82 * @return ListActionsResponse
83 * @throws \Google\Service\Exception
84 */
85 public function listProjectsLocationsConnectionsActions($parent, $optParams = [])
86 {
87 $params = ['parent' => $parent];
88 $params = array_merge($params, $optParams);
89 return $this->call('list', [$params], ListActionsResponse::class);
90 }
91}
92
93// Adding a class alias for backwards compatibility with the previous class name.
94class_alias(ProjectsLocationsConnectionsActions::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectionsActions');
Note: See TracBrowser for help on using the repository browser.