google-apis-ftp_v1 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.
- 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/ftp_v1/classes.rb +818 -0
- data/lib/google/apis/ftp_v1/gem_version.rb +28 -0
- data/lib/google/apis/ftp_v1/representations.rb +375 -0
- data/lib/google/apis/ftp_v1/service.rb +784 -0
- data/lib/google/apis/ftp_v1.rb +37 -0
- data/lib/google-apis-ftp_v1.rb +15 -0
- metadata +79 -0
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
module Google
|
|
16
|
+
module Apis
|
|
17
|
+
module FtpV1
|
|
18
|
+
# Version of the google-apis-ftp_v1 gem
|
|
19
|
+
GEM_VERSION = "0.1.0"
|
|
20
|
+
|
|
21
|
+
# Version of the code generator used to generate this client
|
|
22
|
+
GENERATOR_VERSION = "0.19.0"
|
|
23
|
+
|
|
24
|
+
# Revision of the discovery document this client was generated from
|
|
25
|
+
REVISION = "20260729"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,375 @@
|
|
|
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 FtpV1
|
|
24
|
+
|
|
25
|
+
class AllowedConsumer
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class CancelOperationRequest
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class DeniedConsumer
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class Empty
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class ExternalServerConfig
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class InternalServerConfig
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class ListLocationsResponse
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class ListOperationsResponse
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class ListServersResponse
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class ListUsersResponse
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class Location
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class Operation
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class OperationMetadata
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class PscEndpoint
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class Server
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class ServerCredential
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
class StartServerRequest
|
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
|
+
|
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
class Status
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class StopServerRequest
|
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
|
+
|
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class StorageDirectoryMapping
|
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
|
+
|
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class User
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
class UserCredential
|
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
|
+
|
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class AllowedConsumer
|
|
158
|
+
# @private
|
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
160
|
+
property :connection_limit, :numeric_string => true, as: 'connectionLimit'
|
|
161
|
+
property :project, as: 'project'
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
class CancelOperationRequest
|
|
166
|
+
# @private
|
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
class DeniedConsumer
|
|
172
|
+
# @private
|
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
174
|
+
property :project, as: 'project'
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
class Empty
|
|
179
|
+
# @private
|
|
180
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
class ExternalServerConfig
|
|
185
|
+
# @private
|
|
186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
187
|
+
collection :allowed_cidr_blocks, as: 'allowedCidrBlocks'
|
|
188
|
+
property :ip_address, as: 'ipAddress'
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
class InternalServerConfig
|
|
193
|
+
# @private
|
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
195
|
+
collection :consumer_accept_list, as: 'consumerAcceptList', class: Google::Apis::FtpV1::AllowedConsumer, decorator: Google::Apis::FtpV1::AllowedConsumer::Representation
|
|
196
|
+
|
|
197
|
+
collection :consumer_reject_list, as: 'consumerRejectList', class: Google::Apis::FtpV1::DeniedConsumer, decorator: Google::Apis::FtpV1::DeniedConsumer::Representation
|
|
198
|
+
|
|
199
|
+
collection :psc_endpoints, as: 'pscEndpoints', class: Google::Apis::FtpV1::PscEndpoint, decorator: Google::Apis::FtpV1::PscEndpoint::Representation
|
|
200
|
+
|
|
201
|
+
property :service_attachment, as: 'serviceAttachment'
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
class ListLocationsResponse
|
|
206
|
+
# @private
|
|
207
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
208
|
+
collection :locations, as: 'locations', class: Google::Apis::FtpV1::Location, decorator: Google::Apis::FtpV1::Location::Representation
|
|
209
|
+
|
|
210
|
+
property :next_page_token, as: 'nextPageToken'
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
class ListOperationsResponse
|
|
215
|
+
# @private
|
|
216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
217
|
+
property :next_page_token, as: 'nextPageToken'
|
|
218
|
+
collection :operations, as: 'operations', class: Google::Apis::FtpV1::Operation, decorator: Google::Apis::FtpV1::Operation::Representation
|
|
219
|
+
|
|
220
|
+
collection :unreachable, as: 'unreachable'
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
class ListServersResponse
|
|
225
|
+
# @private
|
|
226
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
227
|
+
property :next_page_token, as: 'nextPageToken'
|
|
228
|
+
collection :servers, as: 'servers', class: Google::Apis::FtpV1::Server, decorator: Google::Apis::FtpV1::Server::Representation
|
|
229
|
+
|
|
230
|
+
collection :unreachable, as: 'unreachable'
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
class ListUsersResponse
|
|
235
|
+
# @private
|
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
237
|
+
property :next_page_token, as: 'nextPageToken'
|
|
238
|
+
collection :unreachable, as: 'unreachable'
|
|
239
|
+
collection :users, as: 'users', class: Google::Apis::FtpV1::User, decorator: Google::Apis::FtpV1::User::Representation
|
|
240
|
+
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
class Location
|
|
245
|
+
# @private
|
|
246
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
247
|
+
property :display_name, as: 'displayName'
|
|
248
|
+
hash :labels, as: 'labels'
|
|
249
|
+
property :location_id, as: 'locationId'
|
|
250
|
+
hash :metadata, as: 'metadata'
|
|
251
|
+
property :name, as: 'name'
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
class Operation
|
|
256
|
+
# @private
|
|
257
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
258
|
+
property :done, as: 'done'
|
|
259
|
+
property :error, as: 'error', class: Google::Apis::FtpV1::Status, decorator: Google::Apis::FtpV1::Status::Representation
|
|
260
|
+
|
|
261
|
+
hash :metadata, as: 'metadata'
|
|
262
|
+
property :name, as: 'name'
|
|
263
|
+
hash :response, as: 'response'
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
class OperationMetadata
|
|
268
|
+
# @private
|
|
269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
270
|
+
property :api_version, as: 'apiVersion'
|
|
271
|
+
property :create_time, as: 'createTime'
|
|
272
|
+
property :end_time, as: 'endTime'
|
|
273
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
|
274
|
+
property :status_message, as: 'statusMessage'
|
|
275
|
+
property :target, as: 'target'
|
|
276
|
+
property :verb, as: 'verb'
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
class PscEndpoint
|
|
281
|
+
# @private
|
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
283
|
+
property :endpoint, as: 'endpoint'
|
|
284
|
+
property :network, as: 'network'
|
|
285
|
+
property :status, as: 'status'
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
class Server
|
|
290
|
+
# @private
|
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
292
|
+
property :access_type, as: 'accessType'
|
|
293
|
+
property :create_time, as: 'createTime'
|
|
294
|
+
property :display_name, as: 'displayName'
|
|
295
|
+
property :external_config, as: 'externalConfig', class: Google::Apis::FtpV1::ExternalServerConfig, decorator: Google::Apis::FtpV1::ExternalServerConfig::Representation
|
|
296
|
+
|
|
297
|
+
property :google_managed_server_credential, as: 'googleManagedServerCredential', class: Google::Apis::FtpV1::ServerCredential, decorator: Google::Apis::FtpV1::ServerCredential::Representation
|
|
298
|
+
|
|
299
|
+
property :internal_config, as: 'internalConfig', class: Google::Apis::FtpV1::InternalServerConfig, decorator: Google::Apis::FtpV1::InternalServerConfig::Representation
|
|
300
|
+
|
|
301
|
+
hash :labels, as: 'labels'
|
|
302
|
+
property :name, as: 'name'
|
|
303
|
+
property :service_agent, as: 'serviceAgent'
|
|
304
|
+
property :state, as: 'state'
|
|
305
|
+
property :update_time, as: 'updateTime'
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
class ServerCredential
|
|
310
|
+
# @private
|
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
312
|
+
property :asymmetric_algorithm, as: 'asymmetricAlgorithm'
|
|
313
|
+
property :fingerprint, as: 'fingerprint'
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
class StartServerRequest
|
|
318
|
+
# @private
|
|
319
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
class Status
|
|
324
|
+
# @private
|
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
326
|
+
property :code, as: 'code'
|
|
327
|
+
collection :details, as: 'details'
|
|
328
|
+
property :message, as: 'message'
|
|
329
|
+
end
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
class StopServerRequest
|
|
333
|
+
# @private
|
|
334
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
class StorageDirectoryMapping
|
|
339
|
+
# @private
|
|
340
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
341
|
+
property :bucket, as: 'bucket'
|
|
342
|
+
property :bucket_prefix, as: 'bucketPrefix'
|
|
343
|
+
property :directory, as: 'directory'
|
|
344
|
+
property :permission, as: 'permission'
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
class User
|
|
349
|
+
# @private
|
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
351
|
+
property :create_time, as: 'createTime'
|
|
352
|
+
property :customer_service_account, as: 'customerServiceAccount'
|
|
353
|
+
hash :labels, as: 'labels'
|
|
354
|
+
property :name, as: 'name'
|
|
355
|
+
property :state, as: 'state'
|
|
356
|
+
collection :storage_directory_mappings, as: 'storageDirectoryMappings', class: Google::Apis::FtpV1::StorageDirectoryMapping, decorator: Google::Apis::FtpV1::StorageDirectoryMapping::Representation
|
|
357
|
+
|
|
358
|
+
property :update_time, as: 'updateTime'
|
|
359
|
+
collection :user_credentials, as: 'userCredentials', class: Google::Apis::FtpV1::UserCredential, decorator: Google::Apis::FtpV1::UserCredential::Representation
|
|
360
|
+
|
|
361
|
+
property :username, as: 'username'
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
class UserCredential
|
|
366
|
+
# @private
|
|
367
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
368
|
+
property :credential_name, as: 'credentialName'
|
|
369
|
+
property :credential_type, as: 'credentialType'
|
|
370
|
+
property :ssh_public_key_body, as: 'sshPublicKeyBody'
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
end
|