google-apis-storagetransfer_v1 0.11.0 → 0.15.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 +16 -0
- data/lib/google/apis/storagetransfer_v1/classes.rb +95 -12
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +2 -2
- data/lib/google/apis/storagetransfer_v1/representations.rb +33 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +1 -1
- data/lib/google/apis/storagetransfer_v1.rb +1 -1
- 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: aaf5f19eaeed582465b6c5731652816d1aa449310dd54aaf94b3e046eb7cb585
|
4
|
+
data.tar.gz: 706993d4d3f82b2ca63d516825538ceb8dd8cf7fa58935c86e3029cc67eade70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9955efc018150ff22b5bd04be0f9a3b2d2e445cf4fd7c2fc9ccde7081a6da03bcbb5e5c14907c5daf7be791c1196d6ba9beb1ce8bae2aa34784f12739e52c7a6
|
7
|
+
data.tar.gz: cb6efab3cdd02c96b51e6f4d291d0287a52ad2f074ad7647f1e7a79871c59fdb4f638439522509d58cdf3f79eb03b2d047b9fe048da8e153a9cbe4e28029d4e8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-storagetransfer_v1
|
2
2
|
|
3
|
+
### v0.15.0 (2021-09-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210918
|
6
|
+
|
7
|
+
### v0.14.0 (2021-08-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210812
|
10
|
+
|
11
|
+
### v0.13.0 (2021-07-31)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210726
|
14
|
+
|
15
|
+
### v0.12.0 (2021-07-14)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210708
|
18
|
+
|
3
19
|
### v0.11.0 (2021-07-07)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210701
|
@@ -76,13 +76,12 @@ module Google
|
|
76
76
|
# @return [String]
|
77
77
|
attr_accessor :path
|
78
78
|
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
85
|
-
# GoogleServiceAccount for this project.
|
79
|
+
# The Amazon Resource Name (ARN) of the role to support temporary credentials
|
80
|
+
# via `AssumeRoleWithWebIdentity`. For more information about ARNs, see [IAM
|
81
|
+
# ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.
|
82
|
+
# html#identifiers-arns). When a role ARN is provided, Transfer Service fetches
|
83
|
+
# temporary credentials for the session using a `AssumeRoleWithWebIdentity` call
|
84
|
+
# for the provided role using the GoogleServiceAccount for this project.
|
86
85
|
# Corresponds to the JSON property `roleArn`
|
87
86
|
# @return [String]
|
88
87
|
attr_accessor :role_arn
|
@@ -450,6 +449,28 @@ module Google
|
|
450
449
|
end
|
451
450
|
end
|
452
451
|
|
452
|
+
# Logging configuration.
|
453
|
+
class LoggingConfig
|
454
|
+
include Google::Apis::Core::Hashable
|
455
|
+
|
456
|
+
# Enables the Cloud Storage transfer logs for this transfer. This is only
|
457
|
+
# supported for transfer jobs with PosixFilesystem sources. The default is that
|
458
|
+
# logs are not generated for this transfer.
|
459
|
+
# Corresponds to the JSON property `enableOnpremGcsTransferLogs`
|
460
|
+
# @return [Boolean]
|
461
|
+
attr_accessor :enable_onprem_gcs_transfer_logs
|
462
|
+
alias_method :enable_onprem_gcs_transfer_logs?, :enable_onprem_gcs_transfer_logs
|
463
|
+
|
464
|
+
def initialize(**args)
|
465
|
+
update!(**args)
|
466
|
+
end
|
467
|
+
|
468
|
+
# Update properties of this object
|
469
|
+
def update!(**args)
|
470
|
+
@enable_onprem_gcs_transfer_logs = args[:enable_onprem_gcs_transfer_logs] if args.key?(:enable_onprem_gcs_transfer_logs)
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
453
474
|
# Specification to configure notifications published to Pub/Sub. Notifications
|
454
475
|
# are published to the customer-provided topic using the following `
|
455
476
|
# PubsubMessage.attributes`: * `"eventType"`: one of the EventType values * `"
|
@@ -497,7 +518,8 @@ module Google
|
|
497
518
|
# refers to the time of the last change to the object's content or metadata —
|
498
519
|
# specifically, this is the `updated` property of Cloud Storage objects, the `
|
499
520
|
# LastModified` field of S3 objects, and the `Last-Modified` header of Azure
|
500
|
-
# blobs.
|
521
|
+
# blobs. Transfers that use PosixFilesystem and have a Cloud Storage source don'
|
522
|
+
# t support `ObjectConditions`.
|
501
523
|
class ObjectConditions
|
502
524
|
include Google::Apis::Core::Hashable
|
503
525
|
|
@@ -664,6 +686,25 @@ module Google
|
|
664
686
|
end
|
665
687
|
end
|
666
688
|
|
689
|
+
# A POSIX filesystem resource.
|
690
|
+
class PosixFilesystem
|
691
|
+
include Google::Apis::Core::Hashable
|
692
|
+
|
693
|
+
# Root directory path to the filesystem.
|
694
|
+
# Corresponds to the JSON property `rootDirectory`
|
695
|
+
# @return [String]
|
696
|
+
attr_accessor :root_directory
|
697
|
+
|
698
|
+
def initialize(**args)
|
699
|
+
update!(**args)
|
700
|
+
end
|
701
|
+
|
702
|
+
# Update properties of this object
|
703
|
+
def update!(**args)
|
704
|
+
@root_directory = args[:root_directory] if args.key?(:root_directory)
|
705
|
+
end
|
706
|
+
end
|
707
|
+
|
667
708
|
# Request passed to ResumeTransferOperation.
|
668
709
|
class ResumeTransferOperationRequest
|
669
710
|
include Google::Apis::Core::Hashable
|
@@ -886,6 +927,28 @@ module Google
|
|
886
927
|
# @return [Fixnum]
|
887
928
|
attr_accessor :bytes_from_source_skipped_by_sync
|
888
929
|
|
930
|
+
# For transfers involving PosixFilesystem only. Number of listing failures for
|
931
|
+
# each directory found at the source. Potential failures when listing a
|
932
|
+
# directory include permission failure or block failure. If listing a directory
|
933
|
+
# fails, no files in the directory are transferred.
|
934
|
+
# Corresponds to the JSON property `directoriesFailedToListFromSource`
|
935
|
+
# @return [Fixnum]
|
936
|
+
attr_accessor :directories_failed_to_list_from_source
|
937
|
+
|
938
|
+
# For transfers involving PosixFilesystem only. Number of directories found
|
939
|
+
# while listing. For example, if the root directory of the transfer is `base/`
|
940
|
+
# and there are two other directories, `a/` and `b/` under this directory, the
|
941
|
+
# count after listing `base/`, `base/a/` and `base/b/` is 3.
|
942
|
+
# Corresponds to the JSON property `directoriesFoundFromSource`
|
943
|
+
# @return [Fixnum]
|
944
|
+
attr_accessor :directories_found_from_source
|
945
|
+
|
946
|
+
# For transfers involving PosixFilesystem only. Number of successful listings
|
947
|
+
# for each directory found at the source.
|
948
|
+
# Corresponds to the JSON property `directoriesSuccessfullyListedFromSource`
|
949
|
+
# @return [Fixnum]
|
950
|
+
attr_accessor :directories_successfully_listed_from_source
|
951
|
+
|
889
952
|
# Objects that are copied to the data sink.
|
890
953
|
# Corresponds to the JSON property `objectsCopiedToSink`
|
891
954
|
# @return [Fixnum]
|
@@ -944,6 +1007,9 @@ module Google
|
|
944
1007
|
@bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink)
|
945
1008
|
@bytes_from_source_failed = args[:bytes_from_source_failed] if args.key?(:bytes_from_source_failed)
|
946
1009
|
@bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
|
1010
|
+
@directories_failed_to_list_from_source = args[:directories_failed_to_list_from_source] if args.key?(:directories_failed_to_list_from_source)
|
1011
|
+
@directories_found_from_source = args[:directories_found_from_source] if args.key?(:directories_found_from_source)
|
1012
|
+
@directories_successfully_listed_from_source = args[:directories_successfully_listed_from_source] if args.key?(:directories_successfully_listed_from_source)
|
947
1013
|
@objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
|
948
1014
|
@objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
|
949
1015
|
@objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
|
@@ -987,15 +1053,24 @@ module Google
|
|
987
1053
|
# @return [String]
|
988
1054
|
attr_accessor :latest_operation_name
|
989
1055
|
|
1056
|
+
# Logging configuration.
|
1057
|
+
# Corresponds to the JSON property `loggingConfig`
|
1058
|
+
# @return [Google::Apis::StoragetransferV1::LoggingConfig]
|
1059
|
+
attr_accessor :logging_config
|
1060
|
+
|
990
1061
|
# A unique name (within the transfer project) assigned when the job is created.
|
991
1062
|
# If this field is empty in a CreateTransferJobRequest, Storage Transfer Service
|
992
1063
|
# assigns a unique name. Otherwise, the specified name is used as the unique
|
993
1064
|
# name for this job. If the specified name is in use by a job, the creation
|
994
1065
|
# request fails with an ALREADY_EXISTS error. This name must start with `"
|
995
1066
|
# transferJobs/"` prefix and end with a letter or a number, and should be no
|
996
|
-
# more than 128 characters.
|
997
|
-
# transferJobs/OPI
|
998
|
-
#
|
1067
|
+
# more than 128 characters. For transfers involving PosixFilesystem, this name
|
1068
|
+
# must start with `transferJobs/OPI` specifically. For all other transfer types,
|
1069
|
+
# this name must not start with `transferJobs/OPI`. Non-PosixFilesystem example:
|
1070
|
+
# `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` PosixFilesystem example:
|
1071
|
+
# `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` Applications must not rely
|
1072
|
+
# on the enforcement of naming requirements involving OPI. Invalid job names
|
1073
|
+
# fail with an INVALID_ARGUMENT error.
|
999
1074
|
# Corresponds to the JSON property `name`
|
1000
1075
|
# @return [String]
|
1001
1076
|
attr_accessor :name
|
@@ -1048,6 +1123,7 @@ module Google
|
|
1048
1123
|
@description = args[:description] if args.key?(:description)
|
1049
1124
|
@last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time)
|
1050
1125
|
@latest_operation_name = args[:latest_operation_name] if args.key?(:latest_operation_name)
|
1126
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
1051
1127
|
@name = args[:name] if args.key?(:name)
|
1052
1128
|
@notification_config = args[:notification_config] if args.key?(:notification_config)
|
1053
1129
|
@project_id = args[:project_id] if args.key?(:project_id)
|
@@ -1245,11 +1321,17 @@ module Google
|
|
1245
1321
|
# refers to the time of the last change to the object's content or metadata —
|
1246
1322
|
# specifically, this is the `updated` property of Cloud Storage objects, the `
|
1247
1323
|
# LastModified` field of S3 objects, and the `Last-Modified` header of Azure
|
1248
|
-
# blobs.
|
1324
|
+
# blobs. Transfers that use PosixFilesystem and have a Cloud Storage source don'
|
1325
|
+
# t support `ObjectConditions`.
|
1249
1326
|
# Corresponds to the JSON property `objectConditions`
|
1250
1327
|
# @return [Google::Apis::StoragetransferV1::ObjectConditions]
|
1251
1328
|
attr_accessor :object_conditions
|
1252
1329
|
|
1330
|
+
# A POSIX filesystem resource.
|
1331
|
+
# Corresponds to the JSON property `posixDataSource`
|
1332
|
+
# @return [Google::Apis::StoragetransferV1::PosixFilesystem]
|
1333
|
+
attr_accessor :posix_data_source
|
1334
|
+
|
1253
1335
|
# TransferOptions define the actions to be performed on objects in a transfer.
|
1254
1336
|
# Corresponds to the JSON property `transferOptions`
|
1255
1337
|
# @return [Google::Apis::StoragetransferV1::TransferOptions]
|
@@ -1267,6 +1349,7 @@ module Google
|
|
1267
1349
|
@gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
|
1268
1350
|
@http_data_source = args[:http_data_source] if args.key?(:http_data_source)
|
1269
1351
|
@object_conditions = args[:object_conditions] if args.key?(:object_conditions)
|
1352
|
+
@posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
|
1270
1353
|
@transfer_options = args[:transfer_options] if args.key?(:transfer_options)
|
1271
1354
|
end
|
1272
1355
|
end
|
@@ -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.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210918"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -106,6 +106,12 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
+
class LoggingConfig
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
109
115
|
class NotificationConfig
|
110
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
117
|
|
@@ -130,6 +136,12 @@ module Google
|
|
130
136
|
include Google::Apis::Core::JsonObjectSupport
|
131
137
|
end
|
132
138
|
|
139
|
+
class PosixFilesystem
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
133
145
|
class ResumeTransferOperationRequest
|
134
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
147
|
|
@@ -313,6 +325,13 @@ module Google
|
|
313
325
|
end
|
314
326
|
end
|
315
327
|
|
328
|
+
class LoggingConfig
|
329
|
+
# @private
|
330
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
+
property :enable_onprem_gcs_transfer_logs, as: 'enableOnpremGcsTransferLogs'
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
316
335
|
class NotificationConfig
|
317
336
|
# @private
|
318
337
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -352,6 +371,13 @@ module Google
|
|
352
371
|
end
|
353
372
|
end
|
354
373
|
|
374
|
+
class PosixFilesystem
|
375
|
+
# @private
|
376
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
377
|
+
property :root_directory, as: 'rootDirectory'
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
355
381
|
class ResumeTransferOperationRequest
|
356
382
|
# @private
|
357
383
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -410,6 +436,9 @@ module Google
|
|
410
436
|
property :bytes_found_only_from_sink, :numeric_string => true, as: 'bytesFoundOnlyFromSink'
|
411
437
|
property :bytes_from_source_failed, :numeric_string => true, as: 'bytesFromSourceFailed'
|
412
438
|
property :bytes_from_source_skipped_by_sync, :numeric_string => true, as: 'bytesFromSourceSkippedBySync'
|
439
|
+
property :directories_failed_to_list_from_source, :numeric_string => true, as: 'directoriesFailedToListFromSource'
|
440
|
+
property :directories_found_from_source, :numeric_string => true, as: 'directoriesFoundFromSource'
|
441
|
+
property :directories_successfully_listed_from_source, :numeric_string => true, as: 'directoriesSuccessfullyListedFromSource'
|
413
442
|
property :objects_copied_to_sink, :numeric_string => true, as: 'objectsCopiedToSink'
|
414
443
|
property :objects_deleted_from_sink, :numeric_string => true, as: 'objectsDeletedFromSink'
|
415
444
|
property :objects_deleted_from_source, :numeric_string => true, as: 'objectsDeletedFromSource'
|
@@ -429,6 +458,8 @@ module Google
|
|
429
458
|
property :description, as: 'description'
|
430
459
|
property :last_modification_time, as: 'lastModificationTime'
|
431
460
|
property :latest_operation_name, as: 'latestOperationName'
|
461
|
+
property :logging_config, as: 'loggingConfig', class: Google::Apis::StoragetransferV1::LoggingConfig, decorator: Google::Apis::StoragetransferV1::LoggingConfig::Representation
|
462
|
+
|
432
463
|
property :name, as: 'name'
|
433
464
|
property :notification_config, as: 'notificationConfig', class: Google::Apis::StoragetransferV1::NotificationConfig, decorator: Google::Apis::StoragetransferV1::NotificationConfig::Representation
|
434
465
|
|
@@ -485,6 +516,8 @@ module Google
|
|
485
516
|
|
486
517
|
property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
|
487
518
|
|
519
|
+
property :posix_data_source, as: 'posixDataSource', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
|
520
|
+
|
488
521
|
property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
|
489
522
|
|
490
523
|
end
|
@@ -119,7 +119,7 @@ module Google
|
|
119
119
|
|
120
120
|
# Gets a transfer job.
|
121
121
|
# @param [String] job_name
|
122
|
-
# Required.
|
122
|
+
# Required. The job to get.
|
123
123
|
# @param [String] project_id
|
124
124
|
# Required. The ID of the Google Cloud Platform Console project that owns the
|
125
125
|
# job.
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
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.15.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-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storagetransfer_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.15.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storagetransfer_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|