google-apis-storagetransfer_v1 0.2.0 → 0.7.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 +21 -0
- data/lib/google/apis/storagetransfer_v1.rb +1 -1
- data/lib/google/apis/storagetransfer_v1/classes.rb +28 -8
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +3 -3
- data/lib/google/apis/storagetransfer_v1/representations.rb +13 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +38 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d9a1caa865e1ce74aca7f6211424901d12185e9733fcc733503498954b76e58
|
4
|
+
data.tar.gz: 7bb3f43e68086514e726748d754fce3d28164383bd6072fcdf01b7eb5bf1b1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ddfe959948dc3501ecdaff16c490e9bb2f12e3c66194de444bc4b294b07777d43f10e5faa3106734510e6768f830f41432eac19ac65b6a6678c82213117c456
|
7
|
+
data.tar.gz: 38330290ca953fb10f507972ce3021a9fd27f4b5c291b6656e603f9987da208a6ced9204ea4eeb4868704519ca3f1bc85c67dc6b8cad4a58fae32dabe113439b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-storagetransfer_v1
|
2
2
|
|
3
|
+
### v0.7.0 (2021-04-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210427
|
6
|
+
|
7
|
+
### v0.6.0 (2021-03-31)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210325
|
10
|
+
* Regenerated using generator version 0.2.0
|
11
|
+
|
12
|
+
### v0.5.0 (2021-03-04)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.4.0 (2021-02-24)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210218
|
19
|
+
|
20
|
+
### v0.3.0 (2021-02-17)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210211
|
23
|
+
|
3
24
|
### v0.2.0 (2021-02-03)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210128
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
#
|
33
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
@@ -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
|
@@ -943,8 +962,7 @@ module Google
|
|
943
962
|
attr_accessor :last_modification_time
|
944
963
|
|
945
964
|
# The name of the most recently started TransferOperation of this JobConfig.
|
946
|
-
# Present if
|
947
|
-
# this JobConfig.
|
965
|
+
# Present if a TransferOperation has been created for this JobConfig.
|
948
966
|
# Corresponds to the JSON property `latestOperationName`
|
949
967
|
# @return [String]
|
950
968
|
attr_accessor :latest_operation_name
|
@@ -955,8 +973,10 @@ module Google
|
|
955
973
|
# name for this job. If the specified name is in use by a job, the creation
|
956
974
|
# request fails with an ALREADY_EXISTS error. This name must start with `"
|
957
975
|
# transferJobs/"` prefix and end with a letter or a number, and should be no
|
958
|
-
# more than 128 characters.
|
959
|
-
#
|
976
|
+
# more than 128 characters. This name must not start with 'transferJobs/OPI'. '
|
977
|
+
# transferJobs/OPI' is a reserved prefix. Example: `"transferJobs/^(?!OPI)[A-Za-
|
978
|
+
# z0-9-._~]*[A-Za-z0-9]$"` Invalid job names will fail with an INVALID_ARGUMENT
|
979
|
+
# error.
|
960
980
|
# Corresponds to the JSON property `name`
|
961
981
|
# @return [String]
|
962
982
|
attr_accessor :name
|
@@ -1253,7 +1273,7 @@ module Google
|
|
1253
1273
|
# request. Fields in `transferJob` that can be updated are: description,
|
1254
1274
|
# transfer_spec, notification_config, and status. To update the `transfer_spec`
|
1255
1275
|
# of the job, a complete transfer specification must be provided. An incomplete
|
1256
|
-
# specification missing any required fields
|
1276
|
+
# specification missing any required fields is rejected with the error
|
1257
1277
|
# INVALID_ARGUMENT.
|
1258
1278
|
# Corresponds to the JSON property `updateTransferJobFieldMask`
|
1259
1279
|
# @return [String]
|
@@ -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.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210427"
|
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.7.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-
|
11
|
+
date: 2021-05-18 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.7.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: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Storage Transfer API V1
|