source: vendor/google/apiclient-services/src/Integrations/Resource/ProjectsLocationsIntegrations.php

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

Upload project files

  • Property mode set to 100644
File size: 7.8 KB
RevLine 
[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
18namespace Google\Service\Integrations\Resource;
19
20use Google\Service\Integrations\ExecuteEventRequestContent;
21use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteEventResponse;
22use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest;
23use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse;
24use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListIntegrationsResponse;
25use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest;
26use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse;
27use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTestIntegrationsRequest;
28use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTestIntegrationsResponse;
29use Google\Service\Integrations\GoogleProtobufEmpty;
30
31/**
32 * The "integrations" collection of methods.
33 * Typical usage is:
34 * <code>
35 * $integrationsService = new Google\Service\Integrations(...);
36 * $integrations = $integrationsService->projects_locations_integrations;
37 * </code>
38 */
39class ProjectsLocationsIntegrations extends \Google\Service\Resource
40{
41 /**
42 * Delete the selected integration and all versions inside (integrations.delete)
43 *
44 * @param string $name Required. The location resource of the request.
45 * @param array $optParams Optional parameters.
46 * @return GoogleProtobufEmpty
47 * @throws \Google\Service\Exception
48 */
49 public function delete($name, $optParams = [])
50 {
51 $params = ['name' => $name];
52 $params = array_merge($params, $optParams);
53 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
54 }
55 /**
56 * Executes integrations synchronously by passing the trigger id in the request
57 * body. The request is not returned until the requested executions are either
58 * fulfilled or experienced an error. If the integration name is not specified
59 * (passing `-`), all of the associated integration under the given trigger_id
60 * will be executed. Otherwise only the specified integration for the given
61 * `trigger_id` is executed. This is helpful for execution the integration from
62 * UI. (integrations.execute)
63 *
64 * @param string $name Required. The integration resource name.
65 * @param GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest $postBody
66 * @param array $optParams Optional parameters.
67 * @return GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
68 * @throws \Google\Service\Exception
69 */
70 public function execute($name, GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest $postBody, $optParams = [])
71 {
72 $params = ['name' => $name, 'postBody' => $postBody];
73 $params = array_merge($params, $optParams);
74 return $this->call('execute', [$params], GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::class);
75 }
76 /**
77 * Executes an integration on receiving events from Integration Connector
78 * triggers, Eventarc or CPS Trigger. Input data to integration is received in
79 * body in json format (integrations.executeEvent)
80 *
81 * @param string $name Required. The integration resource name. Format:
82 * projects/{gcp_project_id}/locations/{location}/integrations/{integration_id}
83 * @param ExecuteEventRequestContent $postBody
84 * @param array $optParams Optional parameters.
85 *
86 * @opt_param string triggerId Required. Id of the integration trigger config.
87 * The trigger_id is in the format: `integration_connector_trigger/projects/{gcp
88 * _project_id}/location/{location}/connections/{connection_name}/subscriptions/
89 * {subscription_name}`.
90 * @return GoogleCloudIntegrationsV1alphaExecuteEventResponse
91 * @throws \Google\Service\Exception
92 */
93 public function executeEvent($name, ExecuteEventRequestContent $postBody, $optParams = [])
94 {
95 $params = ['name' => $name, 'postBody' => $postBody];
96 $params = array_merge($params, $optParams);
97 return $this->call('executeEvent', [$params], GoogleCloudIntegrationsV1alphaExecuteEventResponse::class);
98 }
99 /**
100 * Returns the list of all integrations in the specified project.
101 * (integrations.listProjectsLocationsIntegrations)
102 *
103 * @param string $parent Required. Project and location from which the
104 * integrations should be listed. Format: projects/{project}
105 * @param array $optParams Optional parameters.
106 *
107 * @opt_param string filter Filter on fields of IntegrationVersion. Fields can
108 * be compared with literal values by use of ":" (containment), "=" (equality),
109 * ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less
110 * than or equal to), and "!=" (inequality) operators. Negation, conjunction,
111 * and disjunction are written using NOT, AND, and OR keywords. For example,
112 * organization_id=\"1\" AND state=ACTIVE AND description:"test". Filtering
113 * cannot be performed on repeated fields like `task_config`.
114 * @opt_param string orderBy The results would be returned in order you
115 * specified here. Supported sort keys are: Descending sort order by
116 * "last_modified_time", "created_time", "snapshot_number". Ascending sort order
117 * by the integration name.
118 * @opt_param int pageSize The page size for the resquest.
119 * @opt_param string pageToken The page token for the resquest.
120 * @return GoogleCloudIntegrationsV1alphaListIntegrationsResponse
121 * @throws \Google\Service\Exception
122 */
123 public function listProjectsLocationsIntegrations($parent, $optParams = [])
124 {
125 $params = ['parent' => $parent];
126 $params = array_merge($params, $optParams);
127 return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListIntegrationsResponse::class);
128 }
129 /**
130 * Schedules an integration for execution by passing the trigger id and the
131 * scheduled time in the request body. (integrations.schedule)
132 *
133 * @param string $name The integration resource name.
134 * @param GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest $postBody
135 * @param array $optParams Optional parameters.
136 * @return GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
137 * @throws \Google\Service\Exception
138 */
139 public function schedule($name, GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest $postBody, $optParams = [])
140 {
141 $params = ['name' => $name, 'postBody' => $postBody];
142 $params = array_merge($params, $optParams);
143 return $this->call('schedule', [$params], GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::class);
144 }
145 /**
146 * Execute the integration in draft state (integrations.test)
147 *
148 * @param string $name Output only. Auto-generated primary key.
149 * @param GoogleCloudIntegrationsV1alphaTestIntegrationsRequest $postBody
150 * @param array $optParams Optional parameters.
151 * @return GoogleCloudIntegrationsV1alphaTestIntegrationsResponse
152 * @throws \Google\Service\Exception
153 */
154 public function test($name, GoogleCloudIntegrationsV1alphaTestIntegrationsRequest $postBody, $optParams = [])
155 {
156 $params = ['name' => $name, 'postBody' => $postBody];
157 $params = array_merge($params, $optParams);
158 return $this->call('test', [$params], GoogleCloudIntegrationsV1alphaTestIntegrationsResponse::class);
159 }
160}
161
162// Adding a class alias for backwards compatibility with the previous class name.
163class_alias(ProjectsLocationsIntegrations::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrations');
Note: See TracBrowser for help on using the repository browser.