source: vendor/google/apiclient-services/src/ServerlessVPCAccess.php

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

Upload project files

  • Property mode set to 100644
File size: 6.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;
19
20use Google\Client;
21
22/**
23 * Service definition for ServerlessVPCAccess (v1).
24 *
25 * <p>
26 * API for managing VPC access connectors.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/vpc/docs/configure-serverless-vpc-access" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class ServerlessVPCAccess extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations;
42 public $projects_locations_connectors;
43 public $projects_locations_operations;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the ServerlessVPCAccess service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://vpcaccess.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://vpcaccess.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'vpcaccess';
62
63 $this->projects_locations = new ServerlessVPCAccess\Resource\ProjectsLocations(
64 $this,
65 $this->serviceName,
66 'locations',
67 [
68 'methods' => [
69 'list' => [
70 'path' => 'v1/{+name}/locations',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 'filter' => [
79 'location' => 'query',
80 'type' => 'string',
81 ],
82 'pageSize' => [
83 'location' => 'query',
84 'type' => 'integer',
85 ],
86 'pageToken' => [
87 'location' => 'query',
88 'type' => 'string',
89 ],
90 ],
91 ],
92 ]
93 ]
94 );
95 $this->projects_locations_connectors = new ServerlessVPCAccess\Resource\ProjectsLocationsConnectors(
96 $this,
97 $this->serviceName,
98 'connectors',
99 [
100 'methods' => [
101 'create' => [
102 'path' => 'v1/{+parent}/connectors',
103 'httpMethod' => 'POST',
104 'parameters' => [
105 'parent' => [
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ],
110 'connectorId' => [
111 'location' => 'query',
112 'type' => 'string',
113 ],
114 ],
115 ],'delete' => [
116 'path' => 'v1/{+name}',
117 'httpMethod' => 'DELETE',
118 'parameters' => [
119 'name' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 ],
125 ],'get' => [
126 'path' => 'v1/{+name}',
127 'httpMethod' => 'GET',
128 'parameters' => [
129 'name' => [
130 'location' => 'path',
131 'type' => 'string',
132 'required' => true,
133 ],
134 ],
135 ],'list' => [
136 'path' => 'v1/{+parent}/connectors',
137 'httpMethod' => 'GET',
138 'parameters' => [
139 'parent' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 'pageSize' => [
145 'location' => 'query',
146 'type' => 'integer',
147 ],
148 'pageToken' => [
149 'location' => 'query',
150 'type' => 'string',
151 ],
152 ],
153 ],'patch' => [
154 'path' => 'v1/{+name}',
155 'httpMethod' => 'PATCH',
156 'parameters' => [
157 'name' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 'updateMask' => [
163 'location' => 'query',
164 'type' => 'string',
165 ],
166 ],
167 ],
168 ]
169 ]
170 );
171 $this->projects_locations_operations = new ServerlessVPCAccess\Resource\ProjectsLocationsOperations(
172 $this,
173 $this->serviceName,
174 'operations',
175 [
176 'methods' => [
177 'get' => [
178 'path' => 'v1/{+name}',
179 'httpMethod' => 'GET',
180 'parameters' => [
181 'name' => [
182 'location' => 'path',
183 'type' => 'string',
184 'required' => true,
185 ],
186 ],
187 ],'list' => [
188 'path' => 'v1/{+name}/operations',
189 'httpMethod' => 'GET',
190 'parameters' => [
191 'name' => [
192 'location' => 'path',
193 'type' => 'string',
194 'required' => true,
195 ],
196 'filter' => [
197 'location' => 'query',
198 'type' => 'string',
199 ],
200 'pageSize' => [
201 'location' => 'query',
202 'type' => 'integer',
203 ],
204 'pageToken' => [
205 'location' => 'query',
206 'type' => 'string',
207 ],
208 ],
209 ],
210 ]
211 ]
212 );
213 }
214}
215
216// Adding a class alias for backwards compatibility with the previous class name.
217class_alias(ServerlessVPCAccess::class, 'Google_Service_ServerlessVPCAccess');
Note: See TracBrowser for help on using the repository browser.