google-apis-vpcaccess_v1beta1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,207 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module VpcaccessV1beta1
24
+
25
+ class Connector
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListConnectorsResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ListLocationsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ListOperationsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Location
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Operation
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class OperationMetadata
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class OperationMetadataV1Alpha1
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class OperationMetadataV1Beta1
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Status
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Subnet
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Connector
92
+ # @private
93
+ class Representation < Google::Apis::Core::JsonRepresentation
94
+ collection :connected_projects, as: 'connectedProjects'
95
+ property :ip_cidr_range, as: 'ipCidrRange'
96
+ property :machine_type, as: 'machineType'
97
+ property :max_instances, as: 'maxInstances'
98
+ property :max_throughput, as: 'maxThroughput'
99
+ property :min_instances, as: 'minInstances'
100
+ property :min_throughput, as: 'minThroughput'
101
+ property :name, as: 'name'
102
+ property :network, as: 'network'
103
+ property :state, as: 'state'
104
+ property :subnet, as: 'subnet', class: Google::Apis::VpcaccessV1beta1::Subnet, decorator: Google::Apis::VpcaccessV1beta1::Subnet::Representation
105
+
106
+ end
107
+ end
108
+
109
+ class ListConnectorsResponse
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ collection :connectors, as: 'connectors', class: Google::Apis::VpcaccessV1beta1::Connector, decorator: Google::Apis::VpcaccessV1beta1::Connector::Representation
113
+
114
+ property :next_page_token, as: 'nextPageToken'
115
+ end
116
+ end
117
+
118
+ class ListLocationsResponse
119
+ # @private
120
+ class Representation < Google::Apis::Core::JsonRepresentation
121
+ collection :locations, as: 'locations', class: Google::Apis::VpcaccessV1beta1::Location, decorator: Google::Apis::VpcaccessV1beta1::Location::Representation
122
+
123
+ property :next_page_token, as: 'nextPageToken'
124
+ end
125
+ end
126
+
127
+ class ListOperationsResponse
128
+ # @private
129
+ class Representation < Google::Apis::Core::JsonRepresentation
130
+ property :next_page_token, as: 'nextPageToken'
131
+ collection :operations, as: 'operations', class: Google::Apis::VpcaccessV1beta1::Operation, decorator: Google::Apis::VpcaccessV1beta1::Operation::Representation
132
+
133
+ end
134
+ end
135
+
136
+ class Location
137
+ # @private
138
+ class Representation < Google::Apis::Core::JsonRepresentation
139
+ property :display_name, as: 'displayName'
140
+ hash :labels, as: 'labels'
141
+ property :location_id, as: 'locationId'
142
+ hash :metadata, as: 'metadata'
143
+ property :name, as: 'name'
144
+ end
145
+ end
146
+
147
+ class Operation
148
+ # @private
149
+ class Representation < Google::Apis::Core::JsonRepresentation
150
+ property :done, as: 'done'
151
+ property :error, as: 'error', class: Google::Apis::VpcaccessV1beta1::Status, decorator: Google::Apis::VpcaccessV1beta1::Status::Representation
152
+
153
+ hash :metadata, as: 'metadata'
154
+ property :name, as: 'name'
155
+ hash :response, as: 'response'
156
+ end
157
+ end
158
+
159
+ class OperationMetadata
160
+ # @private
161
+ class Representation < Google::Apis::Core::JsonRepresentation
162
+ property :create_time, as: 'createTime'
163
+ property :end_time, as: 'endTime'
164
+ property :method_prop, as: 'method'
165
+ property :target, as: 'target'
166
+ end
167
+ end
168
+
169
+ class OperationMetadataV1Alpha1
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :end_time, as: 'endTime'
173
+ property :insert_time, as: 'insertTime'
174
+ property :method_prop, as: 'method'
175
+ property :target, as: 'target'
176
+ end
177
+ end
178
+
179
+ class OperationMetadataV1Beta1
180
+ # @private
181
+ class Representation < Google::Apis::Core::JsonRepresentation
182
+ property :create_time, as: 'createTime'
183
+ property :end_time, as: 'endTime'
184
+ property :method_prop, as: 'method'
185
+ property :target, as: 'target'
186
+ end
187
+ end
188
+
189
+ class Status
190
+ # @private
191
+ class Representation < Google::Apis::Core::JsonRepresentation
192
+ property :code, as: 'code'
193
+ collection :details, as: 'details'
194
+ property :message, as: 'message'
195
+ end
196
+ end
197
+
198
+ class Subnet
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :name, as: 'name'
202
+ property :project_id, as: 'projectId'
203
+ end
204
+ end
205
+ end
206
+ end
207
+ end
@@ -0,0 +1,353 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module VpcaccessV1beta1
23
+ # Serverless VPC Access API
24
+ #
25
+ # API for managing VPC access connectors.
26
+ #
27
+ # @example
28
+ # require 'google/apis/vpcaccess_v1beta1'
29
+ #
30
+ # Vpcaccess = Google::Apis::VpcaccessV1beta1 # Alias the module
31
+ # service = Vpcaccess::ServerlessVPCAccessService.new
32
+ #
33
+ # @see https://cloud.google.com/vpc/docs/configure-serverless-vpc-access
34
+ class ServerlessVPCAccessService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://vpcaccess.googleapis.com/', '',
47
+ client_name: 'google-apis-vpcaccess_v1beta1',
48
+ client_version: Google::Apis::VpcaccessV1beta1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Lists information about the supported locations for this service.
53
+ # @param [String] name
54
+ # The resource that owns the locations collection, if applicable.
55
+ # @param [String] filter
56
+ # A filter to narrow down results to a preferred subset. The filtering language
57
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
58
+ # in [AIP-160](https://google.aip.dev/160).
59
+ # @param [Fixnum] page_size
60
+ # The maximum number of results to return. If not set, the service selects a
61
+ # default.
62
+ # @param [String] page_token
63
+ # A page token received from the `next_page_token` field in the response. Send
64
+ # that page token to receive the subsequent page.
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
67
+ # @param [String] quota_user
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::ListLocationsResponse] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::VpcaccessV1beta1::ListLocationsResponse]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
84
+ command.response_representation = Google::Apis::VpcaccessV1beta1::ListLocationsResponse::Representation
85
+ command.response_class = Google::Apis::VpcaccessV1beta1::ListLocationsResponse
86
+ command.params['name'] = name unless name.nil?
87
+ command.query['filter'] = filter unless filter.nil?
88
+ command.query['pageSize'] = page_size unless page_size.nil?
89
+ command.query['pageToken'] = page_token unless page_token.nil?
90
+ command.query['fields'] = fields unless fields.nil?
91
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
92
+ execute_or_queue_command(command, &block)
93
+ end
94
+
95
+ # Creates a Serverless VPC Access connector, returns an operation.
96
+ # @param [String] parent
97
+ # Required. The project and location in which the configuration should be
98
+ # created, specified in the format `projects/*/locations/*`.
99
+ # @param [Google::Apis::VpcaccessV1beta1::Connector] connector_object
100
+ # @param [String] connector_id
101
+ # Required. The ID to use for this connector.
102
+ # @param [String] fields
103
+ # Selector specifying which fields to include in a partial response.
104
+ # @param [String] quota_user
105
+ # Available to use for quota purposes for server-side applications. Can be any
106
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
107
+ # @param [Google::Apis::RequestOptions] options
108
+ # Request-specific options
109
+ #
110
+ # @yield [result, err] Result & error if block supplied
111
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::Operation] parsed result object
112
+ # @yieldparam err [StandardError] error object if request failed
113
+ #
114
+ # @return [Google::Apis::VpcaccessV1beta1::Operation]
115
+ #
116
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
119
+ def create_project_location_connector(parent, connector_object = nil, connector_id: nil, fields: nil, quota_user: nil, options: nil, &block)
120
+ command = make_simple_command(:post, 'v1beta1/{+parent}/connectors', options)
121
+ command.request_representation = Google::Apis::VpcaccessV1beta1::Connector::Representation
122
+ command.request_object = connector_object
123
+ command.response_representation = Google::Apis::VpcaccessV1beta1::Operation::Representation
124
+ command.response_class = Google::Apis::VpcaccessV1beta1::Operation
125
+ command.params['parent'] = parent unless parent.nil?
126
+ command.query['connectorId'] = connector_id unless connector_id.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
132
+ # Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource
133
+ # does not exist.
134
+ # @param [String] name
135
+ # Required. Name of a Serverless VPC Access connector to delete.
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # @param [Google::Apis::RequestOptions] options
142
+ # Request-specific options
143
+ #
144
+ # @yield [result, err] Result & error if block supplied
145
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::Operation] parsed result object
146
+ # @yieldparam err [StandardError] error object if request failed
147
+ #
148
+ # @return [Google::Apis::VpcaccessV1beta1::Operation]
149
+ #
150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
153
+ def delete_project_location_connector(name, fields: nil, quota_user: nil, options: nil, &block)
154
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
155
+ command.response_representation = Google::Apis::VpcaccessV1beta1::Operation::Representation
156
+ command.response_class = Google::Apis::VpcaccessV1beta1::Operation
157
+ command.params['name'] = name unless name.nil?
158
+ command.query['fields'] = fields unless fields.nil?
159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ execute_or_queue_command(command, &block)
161
+ end
162
+
163
+ # Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does
164
+ # not exist.
165
+ # @param [String] name
166
+ # Required. Name of a Serverless VPC Access connector to get.
167
+ # @param [String] fields
168
+ # Selector specifying which fields to include in a partial response.
169
+ # @param [String] quota_user
170
+ # Available to use for quota purposes for server-side applications. Can be any
171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
172
+ # @param [Google::Apis::RequestOptions] options
173
+ # Request-specific options
174
+ #
175
+ # @yield [result, err] Result & error if block supplied
176
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::Connector] parsed result object
177
+ # @yieldparam err [StandardError] error object if request failed
178
+ #
179
+ # @return [Google::Apis::VpcaccessV1beta1::Connector]
180
+ #
181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
184
+ def get_project_location_connector(name, fields: nil, quota_user: nil, options: nil, &block)
185
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
186
+ command.response_representation = Google::Apis::VpcaccessV1beta1::Connector::Representation
187
+ command.response_class = Google::Apis::VpcaccessV1beta1::Connector
188
+ command.params['name'] = name unless name.nil?
189
+ command.query['fields'] = fields unless fields.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
191
+ execute_or_queue_command(command, &block)
192
+ end
193
+
194
+ # Lists Serverless VPC Access connectors.
195
+ # @param [String] parent
196
+ # Required. The project and location from which the routes should be listed.
197
+ # @param [Fixnum] page_size
198
+ # Maximum number of functions to return per call.
199
+ # @param [String] page_token
200
+ # Continuation token.
201
+ # @param [String] fields
202
+ # Selector specifying which fields to include in a partial response.
203
+ # @param [String] quota_user
204
+ # Available to use for quota purposes for server-side applications. Can be any
205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [Google::Apis::RequestOptions] options
207
+ # Request-specific options
208
+ #
209
+ # @yield [result, err] Result & error if block supplied
210
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::ListConnectorsResponse] parsed result object
211
+ # @yieldparam err [StandardError] error object if request failed
212
+ #
213
+ # @return [Google::Apis::VpcaccessV1beta1::ListConnectorsResponse]
214
+ #
215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
218
+ def list_project_location_connectors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
219
+ command = make_simple_command(:get, 'v1beta1/{+parent}/connectors', options)
220
+ command.response_representation = Google::Apis::VpcaccessV1beta1::ListConnectorsResponse::Representation
221
+ command.response_class = Google::Apis::VpcaccessV1beta1::ListConnectorsResponse
222
+ command.params['parent'] = parent unless parent.nil?
223
+ command.query['pageSize'] = page_size unless page_size.nil?
224
+ command.query['pageToken'] = page_token unless page_token.nil?
225
+ command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ execute_or_queue_command(command, &block)
228
+ end
229
+
230
+ # Updates a Serverless VPC Access connector, returns an operation.
231
+ # @param [String] name
232
+ # The resource name in the format `projects/*/locations/*/connectors/*`.
233
+ # @param [Google::Apis::VpcaccessV1beta1::Connector] connector_object
234
+ # @param [String] update_mask
235
+ # The fields to update on the entry group. If absent or empty, all modifiable
236
+ # fields are updated.
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::Operation] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::VpcaccessV1beta1::Operation]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def patch_project_location_connector(name, connector_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
255
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
256
+ command.request_representation = Google::Apis::VpcaccessV1beta1::Connector::Representation
257
+ command.request_object = connector_object
258
+ command.response_representation = Google::Apis::VpcaccessV1beta1::Operation::Representation
259
+ command.response_class = Google::Apis::VpcaccessV1beta1::Operation
260
+ command.params['name'] = name unless name.nil?
261
+ command.query['updateMask'] = update_mask unless update_mask.nil?
262
+ command.query['fields'] = fields unless fields.nil?
263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
264
+ execute_or_queue_command(command, &block)
265
+ end
266
+
267
+ # Gets the latest state of a long-running operation. Clients can use this method
268
+ # to poll the operation result at intervals as recommended by the API service.
269
+ # @param [String] name
270
+ # The name of the operation resource.
271
+ # @param [String] fields
272
+ # Selector specifying which fields to include in a partial response.
273
+ # @param [String] quota_user
274
+ # Available to use for quota purposes for server-side applications. Can be any
275
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
276
+ # @param [Google::Apis::RequestOptions] options
277
+ # Request-specific options
278
+ #
279
+ # @yield [result, err] Result & error if block supplied
280
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::Operation] parsed result object
281
+ # @yieldparam err [StandardError] error object if request failed
282
+ #
283
+ # @return [Google::Apis::VpcaccessV1beta1::Operation]
284
+ #
285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
288
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
289
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
290
+ command.response_representation = Google::Apis::VpcaccessV1beta1::Operation::Representation
291
+ command.response_class = Google::Apis::VpcaccessV1beta1::Operation
292
+ command.params['name'] = name unless name.nil?
293
+ command.query['fields'] = fields unless fields.nil?
294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
295
+ execute_or_queue_command(command, &block)
296
+ end
297
+
298
+ # Lists operations that match the specified filter in the request. If the server
299
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
300
+ # binding allows API services to override the binding to use different resource
301
+ # name schemes, such as `users/*/operations`. To override the binding, API
302
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
303
+ # service configuration. For backwards compatibility, the default name includes
304
+ # the operations collection id, however overriding users must ensure the name
305
+ # binding is the parent resource, without the operations collection id.
306
+ # @param [String] name
307
+ # The name of the operation's parent resource.
308
+ # @param [String] filter
309
+ # The standard list filter.
310
+ # @param [Fixnum] page_size
311
+ # The standard list page size.
312
+ # @param [String] page_token
313
+ # The standard list page token.
314
+ # @param [String] fields
315
+ # Selector specifying which fields to include in a partial response.
316
+ # @param [String] quota_user
317
+ # Available to use for quota purposes for server-side applications. Can be any
318
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
319
+ # @param [Google::Apis::RequestOptions] options
320
+ # Request-specific options
321
+ #
322
+ # @yield [result, err] Result & error if block supplied
323
+ # @yieldparam result [Google::Apis::VpcaccessV1beta1::ListOperationsResponse] parsed result object
324
+ # @yieldparam err [StandardError] error object if request failed
325
+ #
326
+ # @return [Google::Apis::VpcaccessV1beta1::ListOperationsResponse]
327
+ #
328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
331
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
332
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
333
+ command.response_representation = Google::Apis::VpcaccessV1beta1::ListOperationsResponse::Representation
334
+ command.response_class = Google::Apis::VpcaccessV1beta1::ListOperationsResponse
335
+ command.params['name'] = name unless name.nil?
336
+ command.query['filter'] = filter unless filter.nil?
337
+ command.query['pageSize'] = page_size unless page_size.nil?
338
+ command.query['pageToken'] = page_token unless page_token.nil?
339
+ command.query['fields'] = fields unless fields.nil?
340
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
341
+ execute_or_queue_command(command, &block)
342
+ end
343
+
344
+ protected
345
+
346
+ def apply_command_defaults(command)
347
+ command.query['key'] = key unless key.nil?
348
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
349
+ end
350
+ end
351
+ end
352
+ end
353
+ end
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/vpcaccess_v1beta1/service.rb'
16
+ require 'google/apis/vpcaccess_v1beta1/classes.rb'
17
+ require 'google/apis/vpcaccess_v1beta1/representations.rb'
18
+ require 'google/apis/vpcaccess_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Serverless VPC Access API
23
+ #
24
+ # API for managing VPC access connectors.
25
+ #
26
+ # @see https://cloud.google.com/vpc/docs/configure-serverless-vpc-access
27
+ module VpcaccessV1beta1
28
+ # Version of the Serverless VPC Access API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1beta1'
31
+
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/vpcaccess_v1beta1"