google-apis-vpcaccess_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/vpcaccess_v1/classes.rb +475 -0
- data/lib/google/apis/vpcaccess_v1/gem_version.rb +28 -0
- data/lib/google/apis/vpcaccess_v1/representations.rb +207 -0
- data/lib/google/apis/vpcaccess_v1/service.rb +316 -0
- data/lib/google/apis/vpcaccess_v1.rb +36 -0
- data/lib/google-apis-vpcaccess_v1.rb +15 -0
- metadata +82 -0
@@ -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 VpcaccessV1
|
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::VpcaccessV1::Subnet, decorator: Google::Apis::VpcaccessV1::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::VpcaccessV1::Connector, decorator: Google::Apis::VpcaccessV1::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::VpcaccessV1::Location, decorator: Google::Apis::VpcaccessV1::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::VpcaccessV1::Operation, decorator: Google::Apis::VpcaccessV1::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::VpcaccessV1::Status, decorator: Google::Apis::VpcaccessV1::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,316 @@
|
|
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 VpcaccessV1
|
23
|
+
# Serverless VPC Access API
|
24
|
+
#
|
25
|
+
# API for managing VPC access connectors.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/vpcaccess_v1'
|
29
|
+
#
|
30
|
+
# Vpcaccess = Google::Apis::VpcaccessV1 # 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_v1',
|
48
|
+
client_version: Google::Apis::VpcaccessV1::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::VpcaccessV1::ListLocationsResponse] parsed result object
|
75
|
+
# @yieldparam err [StandardError] error object if request failed
|
76
|
+
#
|
77
|
+
# @return [Google::Apis::VpcaccessV1::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, 'v1/{+name}/locations', options)
|
84
|
+
command.response_representation = Google::Apis::VpcaccessV1::ListLocationsResponse::Representation
|
85
|
+
command.response_class = Google::Apis::VpcaccessV1::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::VpcaccessV1::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::VpcaccessV1::Operation] parsed result object
|
112
|
+
# @yieldparam err [StandardError] error object if request failed
|
113
|
+
#
|
114
|
+
# @return [Google::Apis::VpcaccessV1::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, 'v1/{+parent}/connectors', options)
|
121
|
+
command.request_representation = Google::Apis::VpcaccessV1::Connector::Representation
|
122
|
+
command.request_object = connector_object
|
123
|
+
command.response_representation = Google::Apis::VpcaccessV1::Operation::Representation
|
124
|
+
command.response_class = Google::Apis::VpcaccessV1::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::VpcaccessV1::Operation] parsed result object
|
146
|
+
# @yieldparam err [StandardError] error object if request failed
|
147
|
+
#
|
148
|
+
# @return [Google::Apis::VpcaccessV1::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, 'v1/{+name}', options)
|
155
|
+
command.response_representation = Google::Apis::VpcaccessV1::Operation::Representation
|
156
|
+
command.response_class = Google::Apis::VpcaccessV1::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::VpcaccessV1::Connector] parsed result object
|
177
|
+
# @yieldparam err [StandardError] error object if request failed
|
178
|
+
#
|
179
|
+
# @return [Google::Apis::VpcaccessV1::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, 'v1/{+name}', options)
|
186
|
+
command.response_representation = Google::Apis::VpcaccessV1::Connector::Representation
|
187
|
+
command.response_class = Google::Apis::VpcaccessV1::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::VpcaccessV1::ListConnectorsResponse] parsed result object
|
211
|
+
# @yieldparam err [StandardError] error object if request failed
|
212
|
+
#
|
213
|
+
# @return [Google::Apis::VpcaccessV1::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, 'v1/{+parent}/connectors', options)
|
220
|
+
command.response_representation = Google::Apis::VpcaccessV1::ListConnectorsResponse::Representation
|
221
|
+
command.response_class = Google::Apis::VpcaccessV1::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
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
231
|
+
# to poll the operation result at intervals as recommended by the API service.
|
232
|
+
# @param [String] name
|
233
|
+
# The name of the operation resource.
|
234
|
+
# @param [String] fields
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
236
|
+
# @param [String] quota_user
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
239
|
+
# @param [Google::Apis::RequestOptions] options
|
240
|
+
# Request-specific options
|
241
|
+
#
|
242
|
+
# @yield [result, err] Result & error if block supplied
|
243
|
+
# @yieldparam result [Google::Apis::VpcaccessV1::Operation] parsed result object
|
244
|
+
# @yieldparam err [StandardError] error object if request failed
|
245
|
+
#
|
246
|
+
# @return [Google::Apis::VpcaccessV1::Operation]
|
247
|
+
#
|
248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
252
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
253
|
+
command.response_representation = Google::Apis::VpcaccessV1::Operation::Representation
|
254
|
+
command.response_class = Google::Apis::VpcaccessV1::Operation
|
255
|
+
command.params['name'] = name unless name.nil?
|
256
|
+
command.query['fields'] = fields unless fields.nil?
|
257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
258
|
+
execute_or_queue_command(command, &block)
|
259
|
+
end
|
260
|
+
|
261
|
+
# Lists operations that match the specified filter in the request. If the server
|
262
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
263
|
+
# binding allows API services to override the binding to use different resource
|
264
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
265
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
266
|
+
# service configuration. For backwards compatibility, the default name includes
|
267
|
+
# the operations collection id, however overriding users must ensure the name
|
268
|
+
# binding is the parent resource, without the operations collection id.
|
269
|
+
# @param [String] name
|
270
|
+
# The name of the operation's parent resource.
|
271
|
+
# @param [String] filter
|
272
|
+
# The standard list filter.
|
273
|
+
# @param [Fixnum] page_size
|
274
|
+
# The standard list page size.
|
275
|
+
# @param [String] page_token
|
276
|
+
# The standard list page token.
|
277
|
+
# @param [String] fields
|
278
|
+
# Selector specifying which fields to include in a partial response.
|
279
|
+
# @param [String] quota_user
|
280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
282
|
+
# @param [Google::Apis::RequestOptions] options
|
283
|
+
# Request-specific options
|
284
|
+
#
|
285
|
+
# @yield [result, err] Result & error if block supplied
|
286
|
+
# @yieldparam result [Google::Apis::VpcaccessV1::ListOperationsResponse] parsed result object
|
287
|
+
# @yieldparam err [StandardError] error object if request failed
|
288
|
+
#
|
289
|
+
# @return [Google::Apis::VpcaccessV1::ListOperationsResponse]
|
290
|
+
#
|
291
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
292
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
293
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
294
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
295
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
296
|
+
command.response_representation = Google::Apis::VpcaccessV1::ListOperationsResponse::Representation
|
297
|
+
command.response_class = Google::Apis::VpcaccessV1::ListOperationsResponse
|
298
|
+
command.params['name'] = name unless name.nil?
|
299
|
+
command.query['filter'] = filter unless filter.nil?
|
300
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
301
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
302
|
+
command.query['fields'] = fields unless fields.nil?
|
303
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
304
|
+
execute_or_queue_command(command, &block)
|
305
|
+
end
|
306
|
+
|
307
|
+
protected
|
308
|
+
|
309
|
+
def apply_command_defaults(command)
|
310
|
+
command.query['key'] = key unless key.nil?
|
311
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
312
|
+
end
|
313
|
+
end
|
314
|
+
end
|
315
|
+
end
|
316
|
+
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_v1/service.rb'
|
16
|
+
require 'google/apis/vpcaccess_v1/classes.rb'
|
17
|
+
require 'google/apis/vpcaccess_v1/representations.rb'
|
18
|
+
require 'google/apis/vpcaccess_v1/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 VpcaccessV1
|
28
|
+
# Version of the Serverless VPC Access API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1'
|
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_v1"
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-apis-vpcaccess_v1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-02-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-apis-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.11.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.11.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.a
|
33
|
+
description: This is the simple REST client for Serverless VPC Access API V1. Simple
|
34
|
+
REST clients are Ruby client libraries that provide access to Google services via
|
35
|
+
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
36
|
+
based on the discovery documents published by the service, and they handle most
|
37
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
38
|
+
use this client to access the Serverless VPC Access API, but note that some services
|
39
|
+
may provide a separate modern client that is easier to use.
|
40
|
+
email: googleapis-packages@google.com
|
41
|
+
executables: []
|
42
|
+
extensions: []
|
43
|
+
extra_rdoc_files: []
|
44
|
+
files:
|
45
|
+
- ".yardopts"
|
46
|
+
- CHANGELOG.md
|
47
|
+
- LICENSE.md
|
48
|
+
- OVERVIEW.md
|
49
|
+
- lib/google-apis-vpcaccess_v1.rb
|
50
|
+
- lib/google/apis/vpcaccess_v1.rb
|
51
|
+
- lib/google/apis/vpcaccess_v1/classes.rb
|
52
|
+
- lib/google/apis/vpcaccess_v1/gem_version.rb
|
53
|
+
- lib/google/apis/vpcaccess_v1/representations.rb
|
54
|
+
- lib/google/apis/vpcaccess_v1/service.rb
|
55
|
+
homepage: https://github.com/google/google-api-ruby-client
|
56
|
+
licenses:
|
57
|
+
- Apache-2.0
|
58
|
+
metadata:
|
59
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vpcaccess_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-vpcaccess_v1/v0.1.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vpcaccess_v1
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2.5'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
requirements: []
|
78
|
+
rubygems_version: 3.4.2
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: Simple REST client for Serverless VPC Access API V1
|
82
|
+
test_files: []
|