source: vendor/google/apiclient-services/src/FirebaseDataConnect/Resource/ProjectsLocationsServicesConnectors.php

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

Upload project files

  • Property mode set to 100644
File size: 11.0 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\FirebaseDataConnect\Resource;
19
20use Google\Service\FirebaseDataConnect\Connector;
21use Google\Service\FirebaseDataConnect\ExecuteMutationRequest;
22use Google\Service\FirebaseDataConnect\ExecuteMutationResponse;
23use Google\Service\FirebaseDataConnect\ExecuteQueryRequest;
24use Google\Service\FirebaseDataConnect\ExecuteQueryResponse;
25use Google\Service\FirebaseDataConnect\ListConnectorsResponse;
26use Google\Service\FirebaseDataConnect\Operation;
27
28/**
29 * The "connectors" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $firebasedataconnectService = new Google\Service\FirebaseDataConnect(...);
33 * $connectors = $firebasedataconnectService->projects_locations_services_connectors;
34 * </code>
35 */
36class ProjectsLocationsServicesConnectors extends \Google\Service\Resource
37{
38 /**
39 * Creates a new Connector in a given project and location. The operations are
40 * validated against and must be compatible with the active schema. If the
41 * operations and schema are not compatible or if the schema is not present,
42 * this will result in an error. (connectors.create)
43 *
44 * @param string $parent Required. Value for parent.
45 * @param Connector $postBody
46 * @param array $optParams Optional parameters.
47 *
48 * @opt_param string connectorId Required. The ID to use for the connector,
49 * which will become the final component of the connector's resource name.
50 * @opt_param string requestId Optional. An optional request ID to identify
51 * requests. Specify a unique request ID so that if you must retry your request,
52 * the server will know to ignore the request if it has already been completed.
53 * The server will guarantee that for at least 60 minutes since the first
54 * request. For example, consider a situation where you make an initial request
55 * and the request times out. If you make the request again with the same
56 * request ID, the server can check if original operation with the same request
57 * ID was received, and if so, will ignore the second request. This prevents
58 * clients from accidentally creating duplicate commitments. The request ID must
59 * be a valid UUID with the exception that zero UUID is not supported
60 * (00000000-0000-0000-0000-000000000000).
61 * @opt_param bool validateOnly Optional. If set, validate the request and
62 * preview the Connector, but do not actually create it.
63 * @return Operation
64 * @throws \Google\Service\Exception
65 */
66 public function create($parent, Connector $postBody, $optParams = [])
67 {
68 $params = ['parent' => $parent, 'postBody' => $postBody];
69 $params = array_merge($params, $optParams);
70 return $this->call('create', [$params], Operation::class);
71 }
72 /**
73 * Deletes a single Connector. (connectors.delete)
74 *
75 * @param string $name Required. The name of the connector to delete, in the
76 * format: ``` projects/{project}/locations/{location}/services/{service}/connec
77 * tors/{connector} ```
78 * @param array $optParams Optional parameters.
79 *
80 * @opt_param bool allowMissing Optional. If true and the Connector is not
81 * found, the request will succeed but no action will be taken on the server.
82 * @opt_param string etag Optional. The etag of the Connector. If this is
83 * provided, it must match the server's etag.
84 * @opt_param bool force Optional. If set to true, any child resources (i.e.
85 * ConnectorRevisions) will also be deleted. Otherwise, the request will only
86 * work if the Connector has no child resources.
87 * @opt_param string requestId Optional. An optional request ID to identify
88 * requests. Specify a unique request ID so that if you must retry your request,
89 * the server will know to ignore the request if it has already been completed.
90 * The server will guarantee that for at least 60 minutes after the first
91 * request. For example, consider a situation where you make an initial request
92 * and the request times out. If you make the request again with the same
93 * request ID, the server can check if original operation with the same request
94 * ID was received, and if so, will ignore the second request. This prevents
95 * clients from accidentally creating duplicate commitments. The request ID must
96 * be a valid UUID with the exception that zero UUID is not supported
97 * (00000000-0000-0000-0000-000000000000).
98 * @opt_param bool validateOnly Optional. If set, validate the request and
99 * preview the Connector, but do not actually delete it.
100 * @return Operation
101 * @throws \Google\Service\Exception
102 */
103 public function delete($name, $optParams = [])
104 {
105 $params = ['name' => $name];
106 $params = array_merge($params, $optParams);
107 return $this->call('delete', [$params], Operation::class);
108 }
109 /**
110 * Execute a predefined mutation in a Connector. (connectors.executeMutation)
111 *
112 * @param string $name Required. The resource name of the connector to find the
113 * predefined mutation, in the format: ``` projects/{project}/locations/{locatio
114 * n}/services/{service}/connectors/{connector} ```
115 * @param ExecuteMutationRequest $postBody
116 * @param array $optParams Optional parameters.
117 * @return ExecuteMutationResponse
118 * @throws \Google\Service\Exception
119 */
120 public function executeMutation($name, ExecuteMutationRequest $postBody, $optParams = [])
121 {
122 $params = ['name' => $name, 'postBody' => $postBody];
123 $params = array_merge($params, $optParams);
124 return $this->call('executeMutation', [$params], ExecuteMutationResponse::class);
125 }
126 /**
127 * Execute a predefined query in a Connector. (connectors.executeQuery)
128 *
129 * @param string $name Required. The resource name of the connector to find the
130 * predefined query, in the format: ``` projects/{project}/locations/{location}/
131 * services/{service}/connectors/{connector} ```
132 * @param ExecuteQueryRequest $postBody
133 * @param array $optParams Optional parameters.
134 * @return ExecuteQueryResponse
135 * @throws \Google\Service\Exception
136 */
137 public function executeQuery($name, ExecuteQueryRequest $postBody, $optParams = [])
138 {
139 $params = ['name' => $name, 'postBody' => $postBody];
140 $params = array_merge($params, $optParams);
141 return $this->call('executeQuery', [$params], ExecuteQueryResponse::class);
142 }
143 /**
144 * Gets details of a single Connector. (connectors.get)
145 *
146 * @param string $name Required. The name of the connector to retrieve, in the
147 * format: ``` projects/{project}/locations/{location}/services/{service}/connec
148 * tors/{connector} ```
149 * @param array $optParams Optional parameters.
150 * @return Connector
151 * @throws \Google\Service\Exception
152 */
153 public function get($name, $optParams = [])
154 {
155 $params = ['name' => $name];
156 $params = array_merge($params, $optParams);
157 return $this->call('get', [$params], Connector::class);
158 }
159 /**
160 * Lists Connectors in a given project and location.
161 * (connectors.listProjectsLocationsServicesConnectors)
162 *
163 * @param string $parent Required. Value of parent.
164 * @param array $optParams Optional parameters.
165 *
166 * @opt_param string filter Optional. Filtering results.
167 * @opt_param string orderBy Optional. Hint for how to order the results.
168 * @opt_param int pageSize Optional. Requested page size. Server may return
169 * fewer items than requested. If unspecified, server will pick an appropriate
170 * default.
171 * @opt_param string pageToken Optional. A page token, received from a previous
172 * `ListConnectors` call. Provide this to retrieve the subsequent page. When
173 * paginating, all other parameters provided to `ListConnectors` must match the
174 * call that provided the page token.
175 * @return ListConnectorsResponse
176 * @throws \Google\Service\Exception
177 */
178 public function listProjectsLocationsServicesConnectors($parent, $optParams = [])
179 {
180 $params = ['parent' => $parent];
181 $params = array_merge($params, $optParams);
182 return $this->call('list', [$params], ListConnectorsResponse::class);
183 }
184 /**
185 * Updates the parameters of a single Connector, and creates a new
186 * ConnectorRevision with the updated Connector. The operations are validated
187 * against and must be compatible with the live schema. If the operations and
188 * schema are not compatible or if the schema is not present, this will result
189 * in an error. (connectors.patch)
190 *
191 * @param string $name Identifier. The relative resource name of the connector,
192 * in the format: ``` projects/{project}/locations/{location}/services/{service}
193 * /connectors/{connector} ```
194 * @param Connector $postBody
195 * @param array $optParams Optional parameters.
196 *
197 * @opt_param bool allowMissing Optional. If true and the Connector is not
198 * found, a new Connector will be created. In this case, `update_mask` is
199 * ignored.
200 * @opt_param string requestId Optional. An optional request ID to identify
201 * requests. Specify a unique request ID so that if you must retry your request,
202 * the server will know to ignore the request if it has already been completed.
203 * The server will guarantee that for at least 60 minutes since the first
204 * request. For example, consider a situation where you make an initial request
205 * and the request times out. If you make the request again with the same
206 * request ID, the server can check if original operation with the same request
207 * ID was received, and if so, will ignore the second request. This prevents
208 * clients from accidentally creating duplicate commitments. The request ID must
209 * be a valid UUID with the exception that zero UUID is not supported
210 * (00000000-0000-0000-0000-000000000000).
211 * @opt_param string updateMask Optional. Field mask is used to specify the
212 * fields to be overwritten in the Connector resource by the update. The fields
213 * specified in the update_mask are relative to the resource, not the full
214 * request. A field will be overwritten if it is in the mask. If the user does
215 * not provide a mask then all fields will be overwritten.
216 * @opt_param bool validateOnly Optional. If set, validate the request and
217 * preview the Connector, but do not actually update it.
218 * @return Operation
219 * @throws \Google\Service\Exception
220 */
221 public function patch($name, Connector $postBody, $optParams = [])
222 {
223 $params = ['name' => $name, 'postBody' => $postBody];
224 $params = array_merge($params, $optParams);
225 return $this->call('patch', [$params], Operation::class);
226 }
227}
228
229// Adding a class alias for backwards compatibility with the previous class name.
230class_alias(ProjectsLocationsServicesConnectors::class, 'Google_Service_FirebaseDataConnect_Resource_ProjectsLocationsServicesConnectors');
Note: See TracBrowser for help on using the repository browser.