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,784 @@
|
|
|
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 FtpV1
|
|
23
|
+
# Cloud FTP API
|
|
24
|
+
#
|
|
25
|
+
# Cloud FTP is a managed service that allows transferring files directly to
|
|
26
|
+
# Google Cloud Storage using SFTP.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/ftp_v1'
|
|
30
|
+
#
|
|
31
|
+
# Ftp = Google::Apis::FtpV1 # Alias the module
|
|
32
|
+
# service = Ftp::CloudFTPService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://cloud.google.com/cloud-ftp/overview
|
|
35
|
+
class CloudFTPService < Google::Apis::Core::BaseService
|
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://ftp.$UNIVERSE_DOMAIN$/"
|
|
37
|
+
|
|
38
|
+
# @return [String]
|
|
39
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
40
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
41
|
+
attr_accessor :key
|
|
42
|
+
|
|
43
|
+
# @return [String]
|
|
44
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
45
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
46
|
+
attr_accessor :quota_user
|
|
47
|
+
|
|
48
|
+
def initialize
|
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
|
50
|
+
client_name: 'google-apis-ftp_v1',
|
|
51
|
+
client_version: Google::Apis::FtpV1::GEM_VERSION)
|
|
52
|
+
@batch_path = 'batch'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Gets information about a location.
|
|
56
|
+
# @param [String] name
|
|
57
|
+
# Resource name for the location.
|
|
58
|
+
# @param [String] fields
|
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
|
60
|
+
# @param [String] quota_user
|
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
|
64
|
+
# Request-specific options
|
|
65
|
+
#
|
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
|
67
|
+
# @yieldparam result [Google::Apis::FtpV1::Location] parsed result object
|
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
69
|
+
#
|
|
70
|
+
# @return [Google::Apis::FtpV1::Location]
|
|
71
|
+
#
|
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
75
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
76
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
77
|
+
command.response_representation = Google::Apis::FtpV1::Location::Representation
|
|
78
|
+
command.response_class = Google::Apis::FtpV1::Location
|
|
79
|
+
command.params['name'] = name unless name.nil?
|
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
82
|
+
execute_or_queue_command(command, &block)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Lists information about the supported locations for this service. This method
|
|
86
|
+
# lists locations based on the resource scope provided in the
|
|
87
|
+
# ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
|
|
88
|
+
# the method lists the public locations available to all projects. * **Project-
|
|
89
|
+
# specific locations**: If `name` follows the format `projects/`project``, the
|
|
90
|
+
# method lists locations visible to that specific project. This includes public,
|
|
91
|
+
# private, or other project-specific locations enabled for the project. For gRPC
|
|
92
|
+
# and client library implementations, the resource name is passed as the `name`
|
|
93
|
+
# field. For direct service calls, the resource name is incorporated into the
|
|
94
|
+
# request path based on the specific service implementation and version.
|
|
95
|
+
# @param [String] name
|
|
96
|
+
# The resource that owns the locations collection, if applicable.
|
|
97
|
+
# @param [Array<String>, String] extra_location_types
|
|
98
|
+
# Optional. Do not use this field unless explicitly documented otherwise. This
|
|
99
|
+
# is primarily for internal usage.
|
|
100
|
+
# @param [String] filter
|
|
101
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
|
102
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
103
|
+
# in [AIP-160](https://google.aip.dev/160).
|
|
104
|
+
# @param [Fixnum] page_size
|
|
105
|
+
# The maximum number of results to return. If not set, the service selects a
|
|
106
|
+
# default.
|
|
107
|
+
# @param [String] page_token
|
|
108
|
+
# A page token received from the `next_page_token` field in the response. Send
|
|
109
|
+
# that page token to receive the subsequent page.
|
|
110
|
+
# @param [String] fields
|
|
111
|
+
# Selector specifying which fields to include in a partial response.
|
|
112
|
+
# @param [String] quota_user
|
|
113
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
114
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
115
|
+
# @param [Google::Apis::RequestOptions] options
|
|
116
|
+
# Request-specific options
|
|
117
|
+
#
|
|
118
|
+
# @yield [result, err] Result & error if block supplied
|
|
119
|
+
# @yieldparam result [Google::Apis::FtpV1::ListLocationsResponse] parsed result object
|
|
120
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
121
|
+
#
|
|
122
|
+
# @return [Google::Apis::FtpV1::ListLocationsResponse]
|
|
123
|
+
#
|
|
124
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
125
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
126
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
127
|
+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
128
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
|
129
|
+
command.response_representation = Google::Apis::FtpV1::ListLocationsResponse::Representation
|
|
130
|
+
command.response_class = Google::Apis::FtpV1::ListLocationsResponse
|
|
131
|
+
command.params['name'] = name unless name.nil?
|
|
132
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
|
133
|
+
command.query['filter'] = filter unless filter.nil?
|
|
134
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
135
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
136
|
+
command.query['fields'] = fields unless fields.nil?
|
|
137
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
138
|
+
execute_or_queue_command(command, &block)
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
142
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
143
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
144
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
145
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
146
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
147
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
148
|
+
# , corresponding to `Code.CANCELLED`.
|
|
149
|
+
# @param [String] name
|
|
150
|
+
# The name of the operation resource to be cancelled.
|
|
151
|
+
# @param [Google::Apis::FtpV1::CancelOperationRequest] cancel_operation_request_object
|
|
152
|
+
# @param [String] fields
|
|
153
|
+
# Selector specifying which fields to include in a partial response.
|
|
154
|
+
# @param [String] quota_user
|
|
155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
157
|
+
# @param [Google::Apis::RequestOptions] options
|
|
158
|
+
# Request-specific options
|
|
159
|
+
#
|
|
160
|
+
# @yield [result, err] Result & error if block supplied
|
|
161
|
+
# @yieldparam result [Google::Apis::FtpV1::Empty] parsed result object
|
|
162
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
163
|
+
#
|
|
164
|
+
# @return [Google::Apis::FtpV1::Empty]
|
|
165
|
+
#
|
|
166
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
167
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
168
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
169
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
170
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
171
|
+
command.request_representation = Google::Apis::FtpV1::CancelOperationRequest::Representation
|
|
172
|
+
command.request_object = cancel_operation_request_object
|
|
173
|
+
command.response_representation = Google::Apis::FtpV1::Empty::Representation
|
|
174
|
+
command.response_class = Google::Apis::FtpV1::Empty
|
|
175
|
+
command.params['name'] = name unless name.nil?
|
|
176
|
+
command.query['fields'] = fields unless fields.nil?
|
|
177
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
178
|
+
execute_or_queue_command(command, &block)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
182
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
183
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
184
|
+
# UNIMPLEMENTED`.
|
|
185
|
+
# @param [String] name
|
|
186
|
+
# The name of the operation resource to be deleted.
|
|
187
|
+
# @param [String] fields
|
|
188
|
+
# Selector specifying which fields to include in a partial response.
|
|
189
|
+
# @param [String] quota_user
|
|
190
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
191
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
192
|
+
# @param [Google::Apis::RequestOptions] options
|
|
193
|
+
# Request-specific options
|
|
194
|
+
#
|
|
195
|
+
# @yield [result, err] Result & error if block supplied
|
|
196
|
+
# @yieldparam result [Google::Apis::FtpV1::Empty] parsed result object
|
|
197
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
198
|
+
#
|
|
199
|
+
# @return [Google::Apis::FtpV1::Empty]
|
|
200
|
+
#
|
|
201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
204
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
205
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
206
|
+
command.response_representation = Google::Apis::FtpV1::Empty::Representation
|
|
207
|
+
command.response_class = Google::Apis::FtpV1::Empty
|
|
208
|
+
command.params['name'] = name unless name.nil?
|
|
209
|
+
command.query['fields'] = fields unless fields.nil?
|
|
210
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
211
|
+
execute_or_queue_command(command, &block)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
215
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
216
|
+
# @param [String] name
|
|
217
|
+
# The name of the operation resource.
|
|
218
|
+
# @param [String] fields
|
|
219
|
+
# Selector specifying which fields to include in a partial response.
|
|
220
|
+
# @param [String] quota_user
|
|
221
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
222
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
223
|
+
# @param [Google::Apis::RequestOptions] options
|
|
224
|
+
# Request-specific options
|
|
225
|
+
#
|
|
226
|
+
# @yield [result, err] Result & error if block supplied
|
|
227
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
228
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
229
|
+
#
|
|
230
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
231
|
+
#
|
|
232
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
233
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
234
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
235
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
236
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
237
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
238
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
239
|
+
command.params['name'] = name unless name.nil?
|
|
240
|
+
command.query['fields'] = fields unless fields.nil?
|
|
241
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
242
|
+
execute_or_queue_command(command, &block)
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
246
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
247
|
+
# @param [String] name
|
|
248
|
+
# The name of the operation's parent resource.
|
|
249
|
+
# @param [String] filter
|
|
250
|
+
# The standard list filter.
|
|
251
|
+
# @param [Fixnum] page_size
|
|
252
|
+
# The standard list page size.
|
|
253
|
+
# @param [String] page_token
|
|
254
|
+
# The standard list page token.
|
|
255
|
+
# @param [Boolean] return_partial_success
|
|
256
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
257
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
258
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
259
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
260
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
261
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
262
|
+
# documentation.
|
|
263
|
+
# @param [String] fields
|
|
264
|
+
# Selector specifying which fields to include in a partial response.
|
|
265
|
+
# @param [String] quota_user
|
|
266
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
267
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
268
|
+
# @param [Google::Apis::RequestOptions] options
|
|
269
|
+
# Request-specific options
|
|
270
|
+
#
|
|
271
|
+
# @yield [result, err] Result & error if block supplied
|
|
272
|
+
# @yieldparam result [Google::Apis::FtpV1::ListOperationsResponse] parsed result object
|
|
273
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
274
|
+
#
|
|
275
|
+
# @return [Google::Apis::FtpV1::ListOperationsResponse]
|
|
276
|
+
#
|
|
277
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
278
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
279
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
280
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
281
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
282
|
+
command.response_representation = Google::Apis::FtpV1::ListOperationsResponse::Representation
|
|
283
|
+
command.response_class = Google::Apis::FtpV1::ListOperationsResponse
|
|
284
|
+
command.params['name'] = name unless name.nil?
|
|
285
|
+
command.query['filter'] = filter unless filter.nil?
|
|
286
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
287
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
288
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
289
|
+
command.query['fields'] = fields unless fields.nil?
|
|
290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
291
|
+
execute_or_queue_command(command, &block)
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Creates a new Server in a given project and location.
|
|
295
|
+
# @param [String] parent
|
|
296
|
+
# Required. Value for parent.
|
|
297
|
+
# @param [Google::Apis::FtpV1::Server] server_object
|
|
298
|
+
# @param [String] request_id
|
|
299
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
300
|
+
# request ID so that if you must retry your request, the server will know to
|
|
301
|
+
# ignore the request if it has already been completed. The server will guarantee
|
|
302
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
|
303
|
+
# situation where you make an initial request and the request times out. If you
|
|
304
|
+
# make the request again with the same request ID, the server can check if
|
|
305
|
+
# original operation with the same request ID was received, and if so, will
|
|
306
|
+
# ignore the second request. This prevents clients from accidentally creating
|
|
307
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
|
308
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
309
|
+
# @param [String] server_id
|
|
310
|
+
# Required. Id of the requesting object If auto-generating Id server-side,
|
|
311
|
+
# remove this field and server_id from the method_signature of Create RPC
|
|
312
|
+
# @param [String] fields
|
|
313
|
+
# Selector specifying which fields to include in a partial response.
|
|
314
|
+
# @param [String] quota_user
|
|
315
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
316
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
317
|
+
# @param [Google::Apis::RequestOptions] options
|
|
318
|
+
# Request-specific options
|
|
319
|
+
#
|
|
320
|
+
# @yield [result, err] Result & error if block supplied
|
|
321
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
322
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
323
|
+
#
|
|
324
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
325
|
+
#
|
|
326
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
327
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
328
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
329
|
+
def create_project_location_server(parent, server_object = nil, request_id: nil, server_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
330
|
+
command = make_simple_command(:post, 'v1/{+parent}/servers', options)
|
|
331
|
+
command.request_representation = Google::Apis::FtpV1::Server::Representation
|
|
332
|
+
command.request_object = server_object
|
|
333
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
334
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
335
|
+
command.params['parent'] = parent unless parent.nil?
|
|
336
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
337
|
+
command.query['serverId'] = server_id unless server_id.nil?
|
|
338
|
+
command.query['fields'] = fields unless fields.nil?
|
|
339
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
340
|
+
execute_or_queue_command(command, &block)
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Deletes a single Server.
|
|
344
|
+
# @param [String] name
|
|
345
|
+
# Required. Name of the resource
|
|
346
|
+
# @param [String] fields
|
|
347
|
+
# Selector specifying which fields to include in a partial response.
|
|
348
|
+
# @param [String] quota_user
|
|
349
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
350
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
351
|
+
# @param [Google::Apis::RequestOptions] options
|
|
352
|
+
# Request-specific options
|
|
353
|
+
#
|
|
354
|
+
# @yield [result, err] Result & error if block supplied
|
|
355
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
356
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
357
|
+
#
|
|
358
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
359
|
+
#
|
|
360
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
361
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
362
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
363
|
+
def delete_project_location_server(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
364
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
365
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
366
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
367
|
+
command.params['name'] = name unless name.nil?
|
|
368
|
+
command.query['fields'] = fields unless fields.nil?
|
|
369
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
370
|
+
execute_or_queue_command(command, &block)
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Gets details of a single Server.
|
|
374
|
+
# @param [String] name
|
|
375
|
+
# Required. Name of the resource
|
|
376
|
+
# @param [String] view
|
|
377
|
+
# Optional. The view of the Server resource to return.
|
|
378
|
+
# @param [String] fields
|
|
379
|
+
# Selector specifying which fields to include in a partial response.
|
|
380
|
+
# @param [String] quota_user
|
|
381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
383
|
+
# @param [Google::Apis::RequestOptions] options
|
|
384
|
+
# Request-specific options
|
|
385
|
+
#
|
|
386
|
+
# @yield [result, err] Result & error if block supplied
|
|
387
|
+
# @yieldparam result [Google::Apis::FtpV1::Server] parsed result object
|
|
388
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
389
|
+
#
|
|
390
|
+
# @return [Google::Apis::FtpV1::Server]
|
|
391
|
+
#
|
|
392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
395
|
+
def get_project_location_server(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
396
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
397
|
+
command.response_representation = Google::Apis::FtpV1::Server::Representation
|
|
398
|
+
command.response_class = Google::Apis::FtpV1::Server
|
|
399
|
+
command.params['name'] = name unless name.nil?
|
|
400
|
+
command.query['view'] = view unless view.nil?
|
|
401
|
+
command.query['fields'] = fields unless fields.nil?
|
|
402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
403
|
+
execute_or_queue_command(command, &block)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Lists Servers in a given project and location.
|
|
407
|
+
# @param [String] parent
|
|
408
|
+
# Required. Parent value for ListServersRequest
|
|
409
|
+
# @param [String] filter
|
|
410
|
+
# Optional. Filtering results
|
|
411
|
+
# @param [String] order_by
|
|
412
|
+
# Optional. Hint for how to order the results
|
|
413
|
+
# @param [Fixnum] page_size
|
|
414
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
|
415
|
+
# If unspecified, server will pick an appropriate default.
|
|
416
|
+
# @param [String] page_token
|
|
417
|
+
# Optional. A token identifying a page of results the server should return.
|
|
418
|
+
# @param [String] view
|
|
419
|
+
# Optional. The view of the Server resource to return.
|
|
420
|
+
# @param [String] fields
|
|
421
|
+
# Selector specifying which fields to include in a partial response.
|
|
422
|
+
# @param [String] quota_user
|
|
423
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
424
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
425
|
+
# @param [Google::Apis::RequestOptions] options
|
|
426
|
+
# Request-specific options
|
|
427
|
+
#
|
|
428
|
+
# @yield [result, err] Result & error if block supplied
|
|
429
|
+
# @yieldparam result [Google::Apis::FtpV1::ListServersResponse] parsed result object
|
|
430
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
431
|
+
#
|
|
432
|
+
# @return [Google::Apis::FtpV1::ListServersResponse]
|
|
433
|
+
#
|
|
434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
437
|
+
def list_project_location_servers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
438
|
+
command = make_simple_command(:get, 'v1/{+parent}/servers', options)
|
|
439
|
+
command.response_representation = Google::Apis::FtpV1::ListServersResponse::Representation
|
|
440
|
+
command.response_class = Google::Apis::FtpV1::ListServersResponse
|
|
441
|
+
command.params['parent'] = parent unless parent.nil?
|
|
442
|
+
command.query['filter'] = filter unless filter.nil?
|
|
443
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
444
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
445
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
446
|
+
command.query['view'] = view unless view.nil?
|
|
447
|
+
command.query['fields'] = fields unless fields.nil?
|
|
448
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
449
|
+
execute_or_queue_command(command, &block)
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Updates the parameters of a single Server.
|
|
453
|
+
# @param [String] name
|
|
454
|
+
# Identifier. name of resource
|
|
455
|
+
# @param [Google::Apis::FtpV1::Server] server_object
|
|
456
|
+
# @param [String] request_id
|
|
457
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
458
|
+
# request ID so that if you must retry your request, the server will know to
|
|
459
|
+
# ignore the request if it has already been completed. The server will guarantee
|
|
460
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
|
461
|
+
# situation where you make an initial request and the request times out. If you
|
|
462
|
+
# make the request again with the same request ID, the server can check if
|
|
463
|
+
# original operation with the same request ID was received, and if so, will
|
|
464
|
+
# ignore the second request. This prevents clients from accidentally creating
|
|
465
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
|
466
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
467
|
+
# @param [String] update_mask
|
|
468
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
469
|
+
# Server resource by the update. The fields specified in the update_mask are
|
|
470
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
|
471
|
+
# it is in the mask. If the user does not provide a mask then all fields present
|
|
472
|
+
# in the request will be overwritten.
|
|
473
|
+
# @param [String] fields
|
|
474
|
+
# Selector specifying which fields to include in a partial response.
|
|
475
|
+
# @param [String] quota_user
|
|
476
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
477
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
478
|
+
# @param [Google::Apis::RequestOptions] options
|
|
479
|
+
# Request-specific options
|
|
480
|
+
#
|
|
481
|
+
# @yield [result, err] Result & error if block supplied
|
|
482
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
483
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
484
|
+
#
|
|
485
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
486
|
+
#
|
|
487
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
488
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
489
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
490
|
+
def patch_project_location_server(name, server_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
491
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
492
|
+
command.request_representation = Google::Apis::FtpV1::Server::Representation
|
|
493
|
+
command.request_object = server_object
|
|
494
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
495
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
496
|
+
command.params['name'] = name unless name.nil?
|
|
497
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
498
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
499
|
+
command.query['fields'] = fields unless fields.nil?
|
|
500
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
501
|
+
execute_or_queue_command(command, &block)
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# Starts a stopping/stopped Server.
|
|
505
|
+
# @param [String] name
|
|
506
|
+
# Required. Name of the resource Format: `projects/`project`/locations/`location`
|
|
507
|
+
# /servers/`server``
|
|
508
|
+
# @param [Google::Apis::FtpV1::StartServerRequest] start_server_request_object
|
|
509
|
+
# @param [String] fields
|
|
510
|
+
# Selector specifying which fields to include in a partial response.
|
|
511
|
+
# @param [String] quota_user
|
|
512
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
513
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
514
|
+
# @param [Google::Apis::RequestOptions] options
|
|
515
|
+
# Request-specific options
|
|
516
|
+
#
|
|
517
|
+
# @yield [result, err] Result & error if block supplied
|
|
518
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
519
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
520
|
+
#
|
|
521
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
522
|
+
#
|
|
523
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
524
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
525
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
526
|
+
def start_server(name, start_server_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
527
|
+
command = make_simple_command(:post, 'v1/{+name}:start', options)
|
|
528
|
+
command.request_representation = Google::Apis::FtpV1::StartServerRequest::Representation
|
|
529
|
+
command.request_object = start_server_request_object
|
|
530
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
531
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
532
|
+
command.params['name'] = name unless name.nil?
|
|
533
|
+
command.query['fields'] = fields unless fields.nil?
|
|
534
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
535
|
+
execute_or_queue_command(command, &block)
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
# Stops an active Server.
|
|
539
|
+
# @param [String] name
|
|
540
|
+
# Required. Name of the resource. Format: `projects/`project`/locations/`
|
|
541
|
+
# location`/servers/`server``
|
|
542
|
+
# @param [Google::Apis::FtpV1::StopServerRequest] stop_server_request_object
|
|
543
|
+
# @param [String] fields
|
|
544
|
+
# Selector specifying which fields to include in a partial response.
|
|
545
|
+
# @param [String] quota_user
|
|
546
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
547
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
548
|
+
# @param [Google::Apis::RequestOptions] options
|
|
549
|
+
# Request-specific options
|
|
550
|
+
#
|
|
551
|
+
# @yield [result, err] Result & error if block supplied
|
|
552
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
553
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
554
|
+
#
|
|
555
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
556
|
+
#
|
|
557
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
558
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
559
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
560
|
+
def stop_server(name, stop_server_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
561
|
+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
|
|
562
|
+
command.request_representation = Google::Apis::FtpV1::StopServerRequest::Representation
|
|
563
|
+
command.request_object = stop_server_request_object
|
|
564
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
565
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
566
|
+
command.params['name'] = name unless name.nil?
|
|
567
|
+
command.query['fields'] = fields unless fields.nil?
|
|
568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
569
|
+
execute_or_queue_command(command, &block)
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Creates a new User in a given project and location and Server.
|
|
573
|
+
# @param [String] parent
|
|
574
|
+
# Required. Value for parent.
|
|
575
|
+
# @param [Google::Apis::FtpV1::User] user_object
|
|
576
|
+
# @param [String] request_id
|
|
577
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
578
|
+
# request ID so that if you must retry your request, the server will know to
|
|
579
|
+
# ignore the request if it has already been completed. The server will guarantee
|
|
580
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
|
581
|
+
# situation where you make an initial request and the request times out. If you
|
|
582
|
+
# make the request again with the same request ID, the server can check if
|
|
583
|
+
# original operation with the same request ID was received, and if so, will
|
|
584
|
+
# ignore the second request. This prevents clients from accidentally creating
|
|
585
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
|
586
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
587
|
+
# @param [String] user_id
|
|
588
|
+
# Required. Id of the requesting object If auto-generating Id server-side,
|
|
589
|
+
# remove this field and server_id from the method_signature of Create RPC
|
|
590
|
+
# @param [String] fields
|
|
591
|
+
# Selector specifying which fields to include in a partial response.
|
|
592
|
+
# @param [String] quota_user
|
|
593
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
594
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
595
|
+
# @param [Google::Apis::RequestOptions] options
|
|
596
|
+
# Request-specific options
|
|
597
|
+
#
|
|
598
|
+
# @yield [result, err] Result & error if block supplied
|
|
599
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
600
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
601
|
+
#
|
|
602
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
603
|
+
#
|
|
604
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
605
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
606
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
607
|
+
def create_project_location_server_user(parent, user_object = nil, request_id: nil, user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
608
|
+
command = make_simple_command(:post, 'v1/{+parent}/users', options)
|
|
609
|
+
command.request_representation = Google::Apis::FtpV1::User::Representation
|
|
610
|
+
command.request_object = user_object
|
|
611
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
612
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
613
|
+
command.params['parent'] = parent unless parent.nil?
|
|
614
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
615
|
+
command.query['userId'] = user_id unless user_id.nil?
|
|
616
|
+
command.query['fields'] = fields unless fields.nil?
|
|
617
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
618
|
+
execute_or_queue_command(command, &block)
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# Deletes a single User.
|
|
622
|
+
# @param [String] name
|
|
623
|
+
# Required. Name of the resource
|
|
624
|
+
# @param [Boolean] force
|
|
625
|
+
# Optional. If set to true, the request will force the deletion of the User.
|
|
626
|
+
# @param [String] fields
|
|
627
|
+
# Selector specifying which fields to include in a partial response.
|
|
628
|
+
# @param [String] quota_user
|
|
629
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
630
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
631
|
+
# @param [Google::Apis::RequestOptions] options
|
|
632
|
+
# Request-specific options
|
|
633
|
+
#
|
|
634
|
+
# @yield [result, err] Result & error if block supplied
|
|
635
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
636
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
637
|
+
#
|
|
638
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
639
|
+
#
|
|
640
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
641
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
642
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
643
|
+
def delete_project_location_server_user(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
644
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
645
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
646
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
647
|
+
command.params['name'] = name unless name.nil?
|
|
648
|
+
command.query['force'] = force unless force.nil?
|
|
649
|
+
command.query['fields'] = fields unless fields.nil?
|
|
650
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
651
|
+
execute_or_queue_command(command, &block)
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Gets details of a single User.
|
|
655
|
+
# @param [String] name
|
|
656
|
+
# Required. Name of the resource
|
|
657
|
+
# @param [String] view
|
|
658
|
+
# Optional. The view of the User resource to return.
|
|
659
|
+
# @param [String] fields
|
|
660
|
+
# Selector specifying which fields to include in a partial response.
|
|
661
|
+
# @param [String] quota_user
|
|
662
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
663
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
664
|
+
# @param [Google::Apis::RequestOptions] options
|
|
665
|
+
# Request-specific options
|
|
666
|
+
#
|
|
667
|
+
# @yield [result, err] Result & error if block supplied
|
|
668
|
+
# @yieldparam result [Google::Apis::FtpV1::User] parsed result object
|
|
669
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
670
|
+
#
|
|
671
|
+
# @return [Google::Apis::FtpV1::User]
|
|
672
|
+
#
|
|
673
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
674
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
675
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
676
|
+
def get_project_location_server_user(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
677
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
678
|
+
command.response_representation = Google::Apis::FtpV1::User::Representation
|
|
679
|
+
command.response_class = Google::Apis::FtpV1::User
|
|
680
|
+
command.params['name'] = name unless name.nil?
|
|
681
|
+
command.query['view'] = view unless view.nil?
|
|
682
|
+
command.query['fields'] = fields unless fields.nil?
|
|
683
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
684
|
+
execute_or_queue_command(command, &block)
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
# Lists Users in a given project and location.
|
|
688
|
+
# @param [String] parent
|
|
689
|
+
# Required. Parent value for ListUsersRequest
|
|
690
|
+
# @param [String] filter
|
|
691
|
+
# Optional. Filtering results
|
|
692
|
+
# @param [String] order_by
|
|
693
|
+
# Optional. Hint for how to order the results
|
|
694
|
+
# @param [Fixnum] page_size
|
|
695
|
+
# Optional. Requested page size. User may return fewer items than requested. The
|
|
696
|
+
# maximum value is 1000; The default value is 50 if the field is omitted (or set
|
|
697
|
+
# to 0).
|
|
698
|
+
# @param [String] page_token
|
|
699
|
+
# Optional. A token identifying a page of results the user should return.
|
|
700
|
+
# @param [String] view
|
|
701
|
+
# Optional. The view of the User resource to return.
|
|
702
|
+
# @param [String] fields
|
|
703
|
+
# Selector specifying which fields to include in a partial response.
|
|
704
|
+
# @param [String] quota_user
|
|
705
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
706
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
707
|
+
# @param [Google::Apis::RequestOptions] options
|
|
708
|
+
# Request-specific options
|
|
709
|
+
#
|
|
710
|
+
# @yield [result, err] Result & error if block supplied
|
|
711
|
+
# @yieldparam result [Google::Apis::FtpV1::ListUsersResponse] parsed result object
|
|
712
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
713
|
+
#
|
|
714
|
+
# @return [Google::Apis::FtpV1::ListUsersResponse]
|
|
715
|
+
#
|
|
716
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
717
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
718
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
719
|
+
def list_project_location_server_users(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
720
|
+
command = make_simple_command(:get, 'v1/{+parent}/users', options)
|
|
721
|
+
command.response_representation = Google::Apis::FtpV1::ListUsersResponse::Representation
|
|
722
|
+
command.response_class = Google::Apis::FtpV1::ListUsersResponse
|
|
723
|
+
command.params['parent'] = parent unless parent.nil?
|
|
724
|
+
command.query['filter'] = filter unless filter.nil?
|
|
725
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
726
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
727
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
728
|
+
command.query['view'] = view unless view.nil?
|
|
729
|
+
command.query['fields'] = fields unless fields.nil?
|
|
730
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
731
|
+
execute_or_queue_command(command, &block)
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# Updates the parameters of a single User.
|
|
735
|
+
# @param [String] name
|
|
736
|
+
# Identifier. User-friendly name via which User will be identified. projects/`
|
|
737
|
+
# project`/locations/`location`/servers/`server`/users/`user`
|
|
738
|
+
# @param [Google::Apis::FtpV1::User] user_object
|
|
739
|
+
# @param [String] update_mask
|
|
740
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
741
|
+
# User resource by the update. The fields specified in the update_mask are
|
|
742
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
|
743
|
+
# it is in the mask. If the user does not provide a mask then all fields present
|
|
744
|
+
# in the request will be overwritten.
|
|
745
|
+
# @param [String] fields
|
|
746
|
+
# Selector specifying which fields to include in a partial response.
|
|
747
|
+
# @param [String] quota_user
|
|
748
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
749
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
750
|
+
# @param [Google::Apis::RequestOptions] options
|
|
751
|
+
# Request-specific options
|
|
752
|
+
#
|
|
753
|
+
# @yield [result, err] Result & error if block supplied
|
|
754
|
+
# @yieldparam result [Google::Apis::FtpV1::Operation] parsed result object
|
|
755
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
756
|
+
#
|
|
757
|
+
# @return [Google::Apis::FtpV1::Operation]
|
|
758
|
+
#
|
|
759
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
760
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
761
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
762
|
+
def patch_project_location_server_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
763
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
764
|
+
command.request_representation = Google::Apis::FtpV1::User::Representation
|
|
765
|
+
command.request_object = user_object
|
|
766
|
+
command.response_representation = Google::Apis::FtpV1::Operation::Representation
|
|
767
|
+
command.response_class = Google::Apis::FtpV1::Operation
|
|
768
|
+
command.params['name'] = name unless name.nil?
|
|
769
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
770
|
+
command.query['fields'] = fields unless fields.nil?
|
|
771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
772
|
+
execute_or_queue_command(command, &block)
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
protected
|
|
776
|
+
|
|
777
|
+
def apply_command_defaults(command)
|
|
778
|
+
command.query['key'] = key unless key.nil?
|
|
779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
780
|
+
end
|
|
781
|
+
end
|
|
782
|
+
end
|
|
783
|
+
end
|
|
784
|
+
end
|