google-apis-storagetransfer_v1 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/storagetransfer_v1/classes.rb +22 -3
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +2 -2
- data/lib/google/apis/storagetransfer_v1/representations.rb +13 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +38 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6465c3ba93d41d32e5a5873db7c2a1441b6cf254beb6cb48e4e96a00a6fa341b
|
4
|
+
data.tar.gz: 65c75be4e21035e86a935ae430c2110245948597aedfbcf3a0a4a0a0e78f87b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e0ad888b9c815347be10ac54efc590160f2d33e0dc88e3176352ac858c7f4823dc0b78e27a0627edcbd83923c62628af7dabb2a010ee70b2c51634597717ea9
|
7
|
+
data.tar.gz: 2ae431f44967e0d1bec37aeab2794c1501af63f2788595d24e6ee3d91e35a9915bf0bae06ab33080f8acd3b5d80d87de7bcfcaa6008eec7022fca7271ab06eba
|
data/CHANGELOG.md
CHANGED
@@ -600,9 +600,8 @@ module Google
|
|
600
600
|
# @return [Hash<String,Object>]
|
601
601
|
attr_accessor :metadata
|
602
602
|
|
603
|
-
# The server-assigned name
|
604
|
-
#
|
605
|
-
# have the format of `transferOperations/some/unique/name`.
|
603
|
+
# The server-assigned unique name. The format of `name` is `transferOperations/
|
604
|
+
# some/unique/name`.
|
606
605
|
# Corresponds to the JSON property `name`
|
607
606
|
# @return [String]
|
608
607
|
attr_accessor :name
|
@@ -658,6 +657,26 @@ module Google
|
|
658
657
|
end
|
659
658
|
end
|
660
659
|
|
660
|
+
# Request passed to RunTransferJob.
|
661
|
+
class RunTransferJobRequest
|
662
|
+
include Google::Apis::Core::Hashable
|
663
|
+
|
664
|
+
# Required. The ID of the Google Cloud Platform Console project that owns the
|
665
|
+
# transfer job.
|
666
|
+
# Corresponds to the JSON property `projectId`
|
667
|
+
# @return [String]
|
668
|
+
attr_accessor :project_id
|
669
|
+
|
670
|
+
def initialize(**args)
|
671
|
+
update!(**args)
|
672
|
+
end
|
673
|
+
|
674
|
+
# Update properties of this object
|
675
|
+
def update!(**args)
|
676
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
677
|
+
end
|
678
|
+
end
|
679
|
+
|
661
680
|
# Transfers can be scheduled to recur or to run just once.
|
662
681
|
class Schedule
|
663
682
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module StoragetransferV1
|
18
18
|
# Version of the google-apis-storagetransfer_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210211"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -136,6 +136,12 @@ module Google
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
137
137
|
end
|
138
138
|
|
139
|
+
class RunTransferJobRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
139
145
|
class Schedule
|
140
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
147
|
|
@@ -350,6 +356,13 @@ module Google
|
|
350
356
|
end
|
351
357
|
end
|
352
358
|
|
359
|
+
class RunTransferJobRequest
|
360
|
+
# @private
|
361
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
362
|
+
property :project_id, as: 'projectId'
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
353
366
|
class Schedule
|
354
367
|
# @private
|
355
368
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -228,6 +228,41 @@ module Google
|
|
228
228
|
execute_or_queue_command(command, &block)
|
229
229
|
end
|
230
230
|
|
231
|
+
# Attempts to start a new TransferOperation for the current TransferJob. A
|
232
|
+
# TransferJob has a maximum of one active TransferOperation. If this method is
|
233
|
+
# called while a TransferOperation is active, an error wil be returned.
|
234
|
+
# @param [String] job_name
|
235
|
+
# Required. The name of the transfer job.
|
236
|
+
# @param [Google::Apis::StoragetransferV1::RunTransferJobRequest] run_transfer_job_request_object
|
237
|
+
# @param [String] fields
|
238
|
+
# Selector specifying which fields to include in a partial response.
|
239
|
+
# @param [String] quota_user
|
240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
242
|
+
# @param [Google::Apis::RequestOptions] options
|
243
|
+
# Request-specific options
|
244
|
+
#
|
245
|
+
# @yield [result, err] Result & error if block supplied
|
246
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::Operation] parsed result object
|
247
|
+
# @yieldparam err [StandardError] error object if request failed
|
248
|
+
#
|
249
|
+
# @return [Google::Apis::StoragetransferV1::Operation]
|
250
|
+
#
|
251
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
+
def run_transfer_job(job_name, run_transfer_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
255
|
+
command = make_simple_command(:post, 'v1/{+jobName}:run', options)
|
256
|
+
command.request_representation = Google::Apis::StoragetransferV1::RunTransferJobRequest::Representation
|
257
|
+
command.request_object = run_transfer_job_request_object
|
258
|
+
command.response_representation = Google::Apis::StoragetransferV1::Operation::Representation
|
259
|
+
command.response_class = Google::Apis::StoragetransferV1::Operation
|
260
|
+
command.params['jobName'] = job_name unless job_name.nil?
|
261
|
+
command.query['fields'] = fields unless fields.nil?
|
262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
263
|
+
execute_or_queue_command(command, &block)
|
264
|
+
end
|
265
|
+
|
231
266
|
# Cancels a transfer. Use the transferOperations.get method to check if the
|
232
267
|
# cancellation succeeded or if the operation completed despite the `cancel`
|
233
268
|
# request. When you cancel an operation, the currently running transfer is
|
@@ -308,9 +343,10 @@ module Google
|
|
308
343
|
execute_or_queue_command(command, &block)
|
309
344
|
end
|
310
345
|
|
311
|
-
# Lists transfer operations.
|
346
|
+
# Lists transfer operations. Operations are ordered by their creation time in
|
347
|
+
# reverse chronological order.
|
312
348
|
# @param [String] name
|
313
|
-
#
|
349
|
+
# Not used.
|
314
350
|
# @param [String] filter
|
315
351
|
# Required. A list of query parameters specified as JSON text in the form of: ``"
|
316
352
|
# projectId":"my_project_id", "jobNames":["jobid1","jobid2",...], "
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-storagetransfer_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storagetransfer_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.3.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storagetransfer_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|