google-apis-storagetransfer_v1 0.17.0 → 0.21.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 +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/storagetransfer_v1/classes.rb +184 -36
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +3 -3
- data/lib/google/apis/storagetransfer_v1/representations.rb +41 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +31 -30
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d89023c3ce1dd89ee38d3e9119fef1c48ef8559b37d32890010be3af2a5ae85
|
4
|
+
data.tar.gz: 919fdcd9355c2296638d9ec7b068d73b3107dcb7ae42ec1b161d8e5f51e48000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 868b3ebce9e5728d49663ab5fefda461e7cbdd6734edb47fcaa4ab1d53251ff6d8412e63d93784906bf03143f5a90b0fe615ed51c24813f11f3ed7ab5a21a8a7
|
7
|
+
data.tar.gz: 9d9be353a17b7c068107ec2e3f31b209547206d13de15899a7f24cb51892b92f0c7236bc94c81832ab877c2c34a61891f1f41249bd5db86d488e16f040095f0b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-storagetransfer_v1
|
2
2
|
|
3
|
+
### v0.21.0 (2022-02-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220127
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.20.0 (2021-12-14)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211211
|
11
|
+
|
12
|
+
### v0.19.0 (2021-12-11)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211210
|
15
|
+
|
16
|
+
### v0.18.0 (2021-12-02)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211130
|
19
|
+
|
3
20
|
### v0.17.0 (2021-11-06)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211105
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/storagetransfer_v1"
|
|
51
51
|
client = Google::Apis::StoragetransferV1::StoragetransferService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -26,8 +26,7 @@ module Google
|
|
26
26
|
class AgentPool
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# Specifies
|
30
|
-
# mbps for the agent pool.
|
29
|
+
# Specifies a bandwidth limit for an agent pool.
|
31
30
|
# Corresponds to the JSON property `bandwidthLimit`
|
32
31
|
# @return [Google::Apis::StoragetransferV1::BandwidthLimit]
|
33
32
|
attr_accessor :bandwidth_limit
|
@@ -37,8 +36,8 @@ module Google
|
|
37
36
|
# @return [String]
|
38
37
|
attr_accessor :display_name
|
39
38
|
|
40
|
-
# Required. Specifies a unique string that identifies the agent pool. Format:
|
41
|
-
# projects/`project_id`/agentPools/`agent_pool_id
|
39
|
+
# Required. Specifies a unique string that identifies the agent pool. Format: `
|
40
|
+
# projects/`project_id`/agentPools/`agent_pool_id``
|
42
41
|
# Corresponds to the JSON property `name`
|
43
42
|
# @return [String]
|
44
43
|
attr_accessor :name
|
@@ -191,12 +190,10 @@ module Google
|
|
191
190
|
class AzureCredentials
|
192
191
|
include Google::Apis::Core::Hashable
|
193
192
|
|
194
|
-
# Required. Azure shared access signature (SAS).
|
195
|
-
#
|
196
|
-
#
|
197
|
-
#
|
198
|
-
# Azure Storage resources using shared access signatures (SAS)](https://docs.
|
199
|
-
# microsoft.com/en-us/azure/storage/common/storage-sas-overview).
|
193
|
+
# Required. Azure shared access signature (SAS). For more information about SAS,
|
194
|
+
# see [Grant limited access to Azure Storage resources using shared access
|
195
|
+
# signatures (SAS)](https://docs.microsoft.com/en-us/azure/storage/common/
|
196
|
+
# storage-sas-overview).
|
200
197
|
# Corresponds to the JSON property `sasToken`
|
201
198
|
# @return [String]
|
202
199
|
attr_accessor :sas_token
|
@@ -211,12 +208,12 @@ module Google
|
|
211
208
|
end
|
212
209
|
end
|
213
210
|
|
214
|
-
# Specifies
|
215
|
-
# mbps for the agent pool.
|
211
|
+
# Specifies a bandwidth limit for an agent pool.
|
216
212
|
class BandwidthLimit
|
217
213
|
include Google::Apis::Core::Hashable
|
218
214
|
|
219
|
-
#
|
215
|
+
# Bandwidth rate in megabytes per second, distributed across all the agents in
|
216
|
+
# the pool.
|
220
217
|
# Corresponds to the JSON property `limitMbps`
|
221
218
|
# @return [Fixnum]
|
222
219
|
attr_accessor :limit_mbps
|
@@ -533,18 +530,37 @@ module Google
|
|
533
530
|
end
|
534
531
|
end
|
535
532
|
|
536
|
-
#
|
533
|
+
# Specifies the logging behavior for transfer operations. For cloud-to-cloud
|
534
|
+
# transfers, logs are sent to Cloud Logging. See [Read transfer logs](https://
|
535
|
+
# cloud.google.com/storage-transfer/docs/read-transfer-logs) for details. For
|
536
|
+
# transfers to or from a POSIX file system, logs are stored in the Cloud Storage
|
537
|
+
# bucket that is the source or sink of the transfer. See [Managing Transfer for
|
538
|
+
# on-premises jobs] (https://cloud.google.com/storage-transfer/docs/managing-on-
|
539
|
+
# prem-jobs#viewing-logs) for details.
|
537
540
|
class LoggingConfig
|
538
541
|
include Google::Apis::Core::Hashable
|
539
542
|
|
540
|
-
#
|
541
|
-
#
|
542
|
-
# logs are not generated for this transfer.
|
543
|
+
# For transfers with a PosixFilesystem source, this option enables the Cloud
|
544
|
+
# Storage transfer logs for this transfer.
|
543
545
|
# Corresponds to the JSON property `enableOnpremGcsTransferLogs`
|
544
546
|
# @return [Boolean]
|
545
547
|
attr_accessor :enable_onprem_gcs_transfer_logs
|
546
548
|
alias_method :enable_onprem_gcs_transfer_logs?, :enable_onprem_gcs_transfer_logs
|
547
549
|
|
550
|
+
# States in which `log_actions` are logged. If empty, no logs are generated. Not
|
551
|
+
# supported for transfers with PosixFilesystem data sources; use
|
552
|
+
# enable_onprem_gcs_transfer_logs instead.
|
553
|
+
# Corresponds to the JSON property `logActionStates`
|
554
|
+
# @return [Array<String>]
|
555
|
+
attr_accessor :log_action_states
|
556
|
+
|
557
|
+
# Specifies the actions to be logged. If empty, no logs are generated. Not
|
558
|
+
# supported for transfers with PosixFilesystem data sources; use
|
559
|
+
# enable_onprem_gcs_transfer_logs instead.
|
560
|
+
# Corresponds to the JSON property `logActions`
|
561
|
+
# @return [Array<String>]
|
562
|
+
attr_accessor :log_actions
|
563
|
+
|
548
564
|
def initialize(**args)
|
549
565
|
update!(**args)
|
550
566
|
end
|
@@ -552,6 +568,86 @@ module Google
|
|
552
568
|
# Update properties of this object
|
553
569
|
def update!(**args)
|
554
570
|
@enable_onprem_gcs_transfer_logs = args[:enable_onprem_gcs_transfer_logs] if args.key?(:enable_onprem_gcs_transfer_logs)
|
571
|
+
@log_action_states = args[:log_action_states] if args.key?(:log_action_states)
|
572
|
+
@log_actions = args[:log_actions] if args.key?(:log_actions)
|
573
|
+
end
|
574
|
+
end
|
575
|
+
|
576
|
+
# Specifies the metadata options for running a transfer.
|
577
|
+
class MetadataOptions
|
578
|
+
include Google::Apis::Core::Hashable
|
579
|
+
|
580
|
+
# Specifies how each object's ACLs should be preserved for transfers between
|
581
|
+
# Google Cloud Storage buckets. If unspecified, the default behavior is the same
|
582
|
+
# as ACL_DESTINATION_BUCKET_DEFAULT.
|
583
|
+
# Corresponds to the JSON property `acl`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :acl
|
586
|
+
|
587
|
+
# Specifies how each file's GID attribute should be handled by the transfer. If
|
588
|
+
# unspecified, the default behavior is the same as GID_SKIP when the source is a
|
589
|
+
# POSIX file system.
|
590
|
+
# Corresponds to the JSON property `gid`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :gid
|
593
|
+
|
594
|
+
# Specifies how each object's Cloud KMS customer-managed encryption key (CMEK)
|
595
|
+
# is preserved for transfers between Google Cloud Storage buckets. If
|
596
|
+
# unspecified, the default behavior is the same as
|
597
|
+
# KMS_KEY_DESTINATION_BUCKET_DEFAULT.
|
598
|
+
# Corresponds to the JSON property `kmsKey`
|
599
|
+
# @return [String]
|
600
|
+
attr_accessor :kms_key
|
601
|
+
|
602
|
+
# Specifies how each file's mode attribute should be handled by the transfer. If
|
603
|
+
# unspecified, the default behavior is the same as MODE_SKIP when the source is
|
604
|
+
# a POSIX file system.
|
605
|
+
# Corresponds to the JSON property `mode`
|
606
|
+
# @return [String]
|
607
|
+
attr_accessor :mode
|
608
|
+
|
609
|
+
# Specifies the storage class to set on objects being transferred to Google
|
610
|
+
# Cloud Storage buckets. If unspecified, the default behavior is the same as
|
611
|
+
# STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT.
|
612
|
+
# Corresponds to the JSON property `storageClass`
|
613
|
+
# @return [String]
|
614
|
+
attr_accessor :storage_class
|
615
|
+
|
616
|
+
# Specifies how symlinks should be handled by the transfer. If unspecified, the
|
617
|
+
# default behavior is the same as SYMLINK_SKIP when the source is a POSIX file
|
618
|
+
# system.
|
619
|
+
# Corresponds to the JSON property `symlink`
|
620
|
+
# @return [String]
|
621
|
+
attr_accessor :symlink
|
622
|
+
|
623
|
+
# Specifies how each object's temporary hold status should be preserved for
|
624
|
+
# transfers between Google Cloud Storage buckets. If unspecified, the default
|
625
|
+
# behavior is the same as TEMPORARY_HOLD_PRESERVE.
|
626
|
+
# Corresponds to the JSON property `temporaryHold`
|
627
|
+
# @return [String]
|
628
|
+
attr_accessor :temporary_hold
|
629
|
+
|
630
|
+
# Specifies how each file's UID attribute should be handled by the transfer. If
|
631
|
+
# unspecified, the default behavior is the same as UID_SKIP when the source is a
|
632
|
+
# POSIX file system.
|
633
|
+
# Corresponds to the JSON property `uid`
|
634
|
+
# @return [String]
|
635
|
+
attr_accessor :uid
|
636
|
+
|
637
|
+
def initialize(**args)
|
638
|
+
update!(**args)
|
639
|
+
end
|
640
|
+
|
641
|
+
# Update properties of this object
|
642
|
+
def update!(**args)
|
643
|
+
@acl = args[:acl] if args.key?(:acl)
|
644
|
+
@gid = args[:gid] if args.key?(:gid)
|
645
|
+
@kms_key = args[:kms_key] if args.key?(:kms_key)
|
646
|
+
@mode = args[:mode] if args.key?(:mode)
|
647
|
+
@storage_class = args[:storage_class] if args.key?(:storage_class)
|
648
|
+
@symlink = args[:symlink] if args.key?(:symlink)
|
649
|
+
@temporary_hold = args[:temporary_hold] if args.key?(:temporary_hold)
|
650
|
+
@uid = args[:uid] if args.key?(:uid)
|
555
651
|
end
|
556
652
|
end
|
557
653
|
|
@@ -667,18 +763,24 @@ module Google
|
|
667
763
|
# @return [String]
|
668
764
|
attr_accessor :last_modified_since
|
669
765
|
|
670
|
-
#
|
671
|
-
#
|
672
|
-
# modification time" are transferred
|
673
|
-
#
|
766
|
+
# Ensures that objects are not transferred if a specific maximum time has
|
767
|
+
# elapsed since the "last modification time". When a TransferOperation begins,
|
768
|
+
# objects with a "last modification time" are transferred only if the elapsed
|
769
|
+
# time between the start_time of the `TransferOperation`and the "last
|
770
|
+
# modification time" of the object is less than the value of
|
771
|
+
# max_time_elapsed_since_last_modification`. Objects that do not have a "last
|
772
|
+
# modification time" are also transferred.
|
674
773
|
# Corresponds to the JSON property `maxTimeElapsedSinceLastModification`
|
675
774
|
# @return [String]
|
676
775
|
attr_accessor :max_time_elapsed_since_last_modification
|
677
776
|
|
678
|
-
#
|
679
|
-
#
|
680
|
-
# modification time" are transferred
|
681
|
-
#
|
777
|
+
# Ensures that objects are not transferred until a specific minimum time has
|
778
|
+
# elapsed after the "last modification time". When a TransferOperation begins,
|
779
|
+
# objects with a "last modification time" are transferred only if the elapsed
|
780
|
+
# time between the start_time of the `TransferOperation` and the "last
|
781
|
+
# modification time" of the object is equal to or greater than the value of
|
782
|
+
# min_time_elapsed_since_last_modification`. Objects that do not have a "last
|
783
|
+
# modification time" are also transferred.
|
682
784
|
# Corresponds to the JSON property `minTimeElapsedSinceLastModification`
|
683
785
|
# @return [String]
|
684
786
|
attr_accessor :min_time_elapsed_since_last_modification
|
@@ -806,8 +908,7 @@ module Google
|
|
806
908
|
class RunTransferJobRequest
|
807
909
|
include Google::Apis::Core::Hashable
|
808
910
|
|
809
|
-
# Required. The ID of the Google Cloud
|
810
|
-
# transfer job.
|
911
|
+
# Required. The ID of the Google Cloud project that owns the transfer job.
|
811
912
|
# Corresponds to the JSON property `projectId`
|
812
913
|
# @return [String]
|
813
914
|
attr_accessor :project_id
|
@@ -1149,7 +1250,13 @@ module Google
|
|
1149
1250
|
# @return [String]
|
1150
1251
|
attr_accessor :latest_operation_name
|
1151
1252
|
|
1152
|
-
#
|
1253
|
+
# Specifies the logging behavior for transfer operations. For cloud-to-cloud
|
1254
|
+
# transfers, logs are sent to Cloud Logging. See [Read transfer logs](https://
|
1255
|
+
# cloud.google.com/storage-transfer/docs/read-transfer-logs) for details. For
|
1256
|
+
# transfers to or from a POSIX file system, logs are stored in the Cloud Storage
|
1257
|
+
# bucket that is the source or sink of the transfer. See [Managing Transfer for
|
1258
|
+
# on-premises jobs] (https://cloud.google.com/storage-transfer/docs/managing-on-
|
1259
|
+
# prem-jobs#viewing-logs) for details.
|
1153
1260
|
# Corresponds to the JSON property `loggingConfig`
|
1154
1261
|
# @return [Google::Apis::StoragetransferV1::LoggingConfig]
|
1155
1262
|
attr_accessor :logging_config
|
@@ -1184,7 +1291,7 @@ module Google
|
|
1184
1291
|
# @return [Google::Apis::StoragetransferV1::NotificationConfig]
|
1185
1292
|
attr_accessor :notification_config
|
1186
1293
|
|
1187
|
-
# The ID of the Google Cloud
|
1294
|
+
# The ID of the Google Cloud project that owns the job.
|
1188
1295
|
# Corresponds to the JSON property `projectId`
|
1189
1296
|
# @return [String]
|
1190
1297
|
attr_accessor :project_id
|
@@ -1229,6 +1336,27 @@ module Google
|
|
1229
1336
|
end
|
1230
1337
|
end
|
1231
1338
|
|
1339
|
+
# Specifies where the manifest is located.
|
1340
|
+
class TransferManifest
|
1341
|
+
include Google::Apis::Core::Hashable
|
1342
|
+
|
1343
|
+
# Specifies the path to the manifest in Cloud Storage. The Google-managed
|
1344
|
+
# service account for the transfer must have `storage.objects.get` permission
|
1345
|
+
# for this object. An example path is `gs://bucket_name/path/manifest.csv`.
|
1346
|
+
# Corresponds to the JSON property `location`
|
1347
|
+
# @return [String]
|
1348
|
+
attr_accessor :location
|
1349
|
+
|
1350
|
+
def initialize(**args)
|
1351
|
+
update!(**args)
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
# Update properties of this object
|
1355
|
+
def update!(**args)
|
1356
|
+
@location = args[:location] if args.key?(:location)
|
1357
|
+
end
|
1358
|
+
end
|
1359
|
+
|
1232
1360
|
# A description of the execution of a transfer.
|
1233
1361
|
class TransferOperation
|
1234
1362
|
include Google::Apis::Core::Hashable
|
@@ -1266,7 +1394,7 @@ module Google
|
|
1266
1394
|
# @return [Google::Apis::StoragetransferV1::NotificationConfig]
|
1267
1395
|
attr_accessor :notification_config
|
1268
1396
|
|
1269
|
-
# The ID of the Google Cloud
|
1397
|
+
# The ID of the Google Cloud project that owns the operation.
|
1270
1398
|
# Corresponds to the JSON property `projectId`
|
1271
1399
|
# @return [String]
|
1272
1400
|
attr_accessor :project_id
|
@@ -1329,6 +1457,11 @@ module Google
|
|
1329
1457
|
attr_accessor :delete_objects_unique_in_sink
|
1330
1458
|
alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink
|
1331
1459
|
|
1460
|
+
# Specifies the metadata options for running a transfer.
|
1461
|
+
# Corresponds to the JSON property `metadataOptions`
|
1462
|
+
# @return [Google::Apis::StoragetransferV1::MetadataOptions]
|
1463
|
+
attr_accessor :metadata_options
|
1464
|
+
|
1332
1465
|
# When to overwrite objects that already exist in the sink. The default is that
|
1333
1466
|
# only objects that are different from the source are ovewritten. If true, all
|
1334
1467
|
# objects in the sink whose name matches an object in the source are overwritten
|
@@ -1346,6 +1479,7 @@ module Google
|
|
1346
1479
|
def update!(**args)
|
1347
1480
|
@delete_objects_from_source_after_transfer = args[:delete_objects_from_source_after_transfer] if args.key?(:delete_objects_from_source_after_transfer)
|
1348
1481
|
@delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink)
|
1482
|
+
@metadata_options = args[:metadata_options] if args.key?(:metadata_options)
|
1349
1483
|
@overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_in_sink)
|
1350
1484
|
end
|
1351
1485
|
end
|
@@ -1387,6 +1521,14 @@ module Google
|
|
1387
1521
|
# @return [Google::Apis::StoragetransferV1::GcsData]
|
1388
1522
|
attr_accessor :gcs_data_source
|
1389
1523
|
|
1524
|
+
# In a GcsData resource, an object's name is the Cloud Storage object's name and
|
1525
|
+
# its "last modification time" refers to the object's `updated` property of
|
1526
|
+
# Cloud Storage objects, which changes when the content or the metadata of the
|
1527
|
+
# object is updated.
|
1528
|
+
# Corresponds to the JSON property `gcsIntermediateDataLocation`
|
1529
|
+
# @return [Google::Apis::StoragetransferV1::GcsData]
|
1530
|
+
attr_accessor :gcs_intermediate_data_location
|
1531
|
+
|
1390
1532
|
# An HttpData resource specifies a list of objects on the web to be transferred
|
1391
1533
|
# over HTTP. The information of the objects to be transferred is contained in a
|
1392
1534
|
# file referenced by a URL. The first line in the file must be `"TsvHttpData-1.0"
|
@@ -1445,6 +1587,11 @@ module Google
|
|
1445
1587
|
# @return [String]
|
1446
1588
|
attr_accessor :source_agent_pool_name
|
1447
1589
|
|
1590
|
+
# Specifies where the manifest is located.
|
1591
|
+
# Corresponds to the JSON property `transferManifest`
|
1592
|
+
# @return [Google::Apis::StoragetransferV1::TransferManifest]
|
1593
|
+
attr_accessor :transfer_manifest
|
1594
|
+
|
1448
1595
|
# TransferOptions define the actions to be performed on objects in a transfer.
|
1449
1596
|
# Corresponds to the JSON property `transferOptions`
|
1450
1597
|
# @return [Google::Apis::StoragetransferV1::TransferOptions]
|
@@ -1460,12 +1607,14 @@ module Google
|
|
1460
1607
|
@azure_blob_storage_data_source = args[:azure_blob_storage_data_source] if args.key?(:azure_blob_storage_data_source)
|
1461
1608
|
@gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
|
1462
1609
|
@gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
|
1610
|
+
@gcs_intermediate_data_location = args[:gcs_intermediate_data_location] if args.key?(:gcs_intermediate_data_location)
|
1463
1611
|
@http_data_source = args[:http_data_source] if args.key?(:http_data_source)
|
1464
1612
|
@object_conditions = args[:object_conditions] if args.key?(:object_conditions)
|
1465
1613
|
@posix_data_sink = args[:posix_data_sink] if args.key?(:posix_data_sink)
|
1466
1614
|
@posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
|
1467
1615
|
@sink_agent_pool_name = args[:sink_agent_pool_name] if args.key?(:sink_agent_pool_name)
|
1468
1616
|
@source_agent_pool_name = args[:source_agent_pool_name] if args.key?(:source_agent_pool_name)
|
1617
|
+
@transfer_manifest = args[:transfer_manifest] if args.key?(:transfer_manifest)
|
1469
1618
|
@transfer_options = args[:transfer_options] if args.key?(:transfer_options)
|
1470
1619
|
end
|
1471
1620
|
end
|
@@ -1474,8 +1623,7 @@ module Google
|
|
1474
1623
|
class UpdateTransferJobRequest
|
1475
1624
|
include Google::Apis::Core::Hashable
|
1476
1625
|
|
1477
|
-
# Required. The ID of the Google Cloud
|
1478
|
-
# job.
|
1626
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
1479
1627
|
# Corresponds to the JSON property `projectId`
|
1480
1628
|
# @return [String]
|
1481
1629
|
attr_accessor :project_id
|
@@ -1488,10 +1636,10 @@ module Google
|
|
1488
1636
|
|
1489
1637
|
# The field mask of the fields in `transferJob` that are to be updated in this
|
1490
1638
|
# request. Fields in `transferJob` that can be updated are: description,
|
1491
|
-
# transfer_spec, notification_config, and status. To update the `
|
1492
|
-
# of the job, a complete transfer specification must be provided.
|
1493
|
-
# specification missing any required fields is rejected with the
|
1494
|
-
# INVALID_ARGUMENT.
|
1639
|
+
# transfer_spec, notification_config, logging_config, and status. To update the `
|
1640
|
+
# transfer_spec` of the job, a complete transfer specification must be provided.
|
1641
|
+
# An incomplete specification missing any required fields is rejected with the
|
1642
|
+
# error INVALID_ARGUMENT.
|
1495
1643
|
# Corresponds to the JSON property `updateTransferJobFieldMask`
|
1496
1644
|
# @return [String]
|
1497
1645
|
attr_accessor :update_transfer_job_field_mask
|
@@ -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.21.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220127"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -130,6 +130,12 @@ module Google
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
+
class MetadataOptions
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
133
139
|
class NotificationConfig
|
134
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
141
|
|
@@ -202,6 +208,12 @@ module Google
|
|
202
208
|
include Google::Apis::Core::JsonObjectSupport
|
203
209
|
end
|
204
210
|
|
211
|
+
class TransferManifest
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
205
217
|
class TransferOperation
|
206
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
219
|
|
@@ -374,6 +386,22 @@ module Google
|
|
374
386
|
# @private
|
375
387
|
class Representation < Google::Apis::Core::JsonRepresentation
|
376
388
|
property :enable_onprem_gcs_transfer_logs, as: 'enableOnpremGcsTransferLogs'
|
389
|
+
collection :log_action_states, as: 'logActionStates'
|
390
|
+
collection :log_actions, as: 'logActions'
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
394
|
+
class MetadataOptions
|
395
|
+
# @private
|
396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
397
|
+
property :acl, as: 'acl'
|
398
|
+
property :gid, as: 'gid'
|
399
|
+
property :kms_key, as: 'kmsKey'
|
400
|
+
property :mode, as: 'mode'
|
401
|
+
property :storage_class, as: 'storageClass'
|
402
|
+
property :symlink, as: 'symlink'
|
403
|
+
property :temporary_hold, as: 'temporaryHold'
|
404
|
+
property :uid, as: 'uid'
|
377
405
|
end
|
378
406
|
end
|
379
407
|
|
@@ -519,6 +547,13 @@ module Google
|
|
519
547
|
end
|
520
548
|
end
|
521
549
|
|
550
|
+
class TransferManifest
|
551
|
+
# @private
|
552
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
553
|
+
property :location, as: 'location'
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
522
557
|
class TransferOperation
|
523
558
|
# @private
|
524
559
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -544,6 +579,8 @@ module Google
|
|
544
579
|
class Representation < Google::Apis::Core::JsonRepresentation
|
545
580
|
property :delete_objects_from_source_after_transfer, as: 'deleteObjectsFromSourceAfterTransfer'
|
546
581
|
property :delete_objects_unique_in_sink, as: 'deleteObjectsUniqueInSink'
|
582
|
+
property :metadata_options, as: 'metadataOptions', class: Google::Apis::StoragetransferV1::MetadataOptions, decorator: Google::Apis::StoragetransferV1::MetadataOptions::Representation
|
583
|
+
|
547
584
|
property :overwrite_objects_already_existing_in_sink, as: 'overwriteObjectsAlreadyExistingInSink'
|
548
585
|
end
|
549
586
|
end
|
@@ -559,6 +596,8 @@ module Google
|
|
559
596
|
|
560
597
|
property :gcs_data_source, as: 'gcsDataSource', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
|
561
598
|
|
599
|
+
property :gcs_intermediate_data_location, as: 'gcsIntermediateDataLocation', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
|
600
|
+
|
562
601
|
property :http_data_source, as: 'httpDataSource', class: Google::Apis::StoragetransferV1::HttpData, decorator: Google::Apis::StoragetransferV1::HttpData::Representation
|
563
602
|
|
564
603
|
property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
|
@@ -569,6 +608,8 @@ module Google
|
|
569
608
|
|
570
609
|
property :sink_agent_pool_name, as: 'sinkAgentPoolName'
|
571
610
|
property :source_agent_pool_name, as: 'sourceAgentPoolName'
|
611
|
+
property :transfer_manifest, as: 'transferManifest', class: Google::Apis::StoragetransferV1::TransferManifest, decorator: Google::Apis::StoragetransferV1::TransferManifest::Representation
|
612
|
+
|
572
613
|
property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
|
573
614
|
|
574
615
|
end
|
@@ -52,14 +52,14 @@ module Google
|
|
52
52
|
|
53
53
|
# Returns the Google service account that is used by Storage Transfer Service to
|
54
54
|
# access buckets in the project where transfers run or in other projects. Each
|
55
|
-
# Google service account is associated with one Google Cloud
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
55
|
+
# Google service account is associated with one Google Cloud project. Users
|
56
|
+
# should add this service account to the Google Cloud Storage bucket ACLs to
|
57
|
+
# grant access to Storage Transfer Service. This service account is created and
|
58
|
+
# owned by Storage Transfer Service and can only be used by Storage Transfer
|
59
|
+
# Service.
|
60
60
|
# @param [String] project_id
|
61
|
-
# Required. The ID of the Google Cloud
|
62
|
-
#
|
61
|
+
# Required. The ID of the Google Cloud project that the Google service account
|
62
|
+
# is associated with.
|
63
63
|
# @param [String] fields
|
64
64
|
# Selector specifying which fields to include in a partial response.
|
65
65
|
# @param [String] quota_user
|
@@ -89,14 +89,16 @@ module Google
|
|
89
89
|
|
90
90
|
# Creates an agent pool resource.
|
91
91
|
# @param [String] project_id
|
92
|
-
# Required. The ID of the Google Cloud
|
93
|
-
# agent pool.
|
92
|
+
# Required. The ID of the Google Cloud project that owns the agent pool.
|
94
93
|
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
95
94
|
# @param [String] agent_pool_id
|
96
|
-
# Required. The
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
95
|
+
# Required. The ID of the agent pool to create. The `agent_pool_id` must meet
|
96
|
+
# the following requirements: * Length of 128 characters or less. * Not start
|
97
|
+
# with the string `goog`. * Start with a lowercase ASCII character, followed by:
|
98
|
+
# * Zero or more: lowercase Latin alphabet characters, numerals, hyphens (`-`),
|
99
|
+
# periods (`.`), underscores (`_`), or tildes (`~`). * One or more numerals or
|
100
|
+
# lowercase ASCII characters. As expressed by the regular expression: `^(?!goog)[
|
101
|
+
# a-z]([a-z0-9-._~]*[a-z0-9])?$`.
|
100
102
|
# @param [String] fields
|
101
103
|
# Selector specifying which fields to include in a partial response.
|
102
104
|
# @param [String] quota_user
|
@@ -129,7 +131,7 @@ module Google
|
|
129
131
|
|
130
132
|
# Deletes an agent pool.
|
131
133
|
# @param [String] name
|
132
|
-
# Required. The agent pool
|
134
|
+
# Required. The name of the agent pool to delete.
|
133
135
|
# @param [String] fields
|
134
136
|
# Selector specifying which fields to include in a partial response.
|
135
137
|
# @param [String] quota_user
|
@@ -159,7 +161,7 @@ module Google
|
|
159
161
|
|
160
162
|
# Gets an agent pool.
|
161
163
|
# @param [String] name
|
162
|
-
# Required. The agent pool to get.
|
164
|
+
# Required. The name of the agent pool to get.
|
163
165
|
# @param [String] fields
|
164
166
|
# Selector specifying which fields to include in a partial response.
|
165
167
|
# @param [String] quota_user
|
@@ -189,16 +191,15 @@ module Google
|
|
189
191
|
|
190
192
|
# Lists agent pools.
|
191
193
|
# @param [String] project_id
|
192
|
-
# Required. The ID of the Google Cloud
|
193
|
-
# job.
|
194
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
194
195
|
# @param [String] filter
|
195
|
-
#
|
196
|
+
# An optional list of query parameters specified as JSON text in the form of: ``"
|
196
197
|
# agentPoolNames":["agentpool1","agentpool2",...]`` Since `agentPoolNames`
|
197
|
-
# support multiple values, its values must be specified with array notation.
|
198
|
-
#
|
199
|
-
#
|
198
|
+
# support multiple values, its values must be specified with array notation.
|
199
|
+
# When the filter is either empty or not provided, the list returns all agent
|
200
|
+
# pools for the project.
|
200
201
|
# @param [Fixnum] page_size
|
201
|
-
# The list page size. The max allowed value is 256
|
202
|
+
# The list page size. The max allowed value is `256`.
|
202
203
|
# @param [String] page_token
|
203
204
|
# The list page token.
|
204
205
|
# @param [String] fields
|
@@ -233,13 +234,14 @@ module Google
|
|
233
234
|
|
234
235
|
# Updates an existing agent pool resource.
|
235
236
|
# @param [String] name
|
236
|
-
# Required. Specifies a unique string that identifies the agent pool. Format:
|
237
|
-
# projects/`project_id`/agentPools/`agent_pool_id
|
237
|
+
# Required. Specifies a unique string that identifies the agent pool. Format: `
|
238
|
+
# projects/`project_id`/agentPools/`agent_pool_id``
|
238
239
|
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
239
240
|
# @param [String] update_mask
|
240
|
-
# The field mask
|
241
|
-
#
|
242
|
-
#
|
241
|
+
# The [field mask] (https://developers.google.com/protocol-buffers/docs/
|
242
|
+
# reference/google.protobuf) of the fields in `agentPool` to update in this
|
243
|
+
# request. The following `agentPool` fields can be updated: * display_name *
|
244
|
+
# bandwidth_limit
|
243
245
|
# @param [String] fields
|
244
246
|
# Selector specifying which fields to include in a partial response.
|
245
247
|
# @param [String] quota_user
|
@@ -304,8 +306,7 @@ module Google
|
|
304
306
|
# @param [String] job_name
|
305
307
|
# Required. The job to get.
|
306
308
|
# @param [String] project_id
|
307
|
-
# Required. The ID of the Google Cloud
|
308
|
-
# job.
|
309
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
309
310
|
# @param [String] fields
|
310
311
|
# Selector specifying which fields to include in a partial response.
|
311
312
|
# @param [String] quota_user
|
@@ -413,7 +414,7 @@ module Google
|
|
413
414
|
|
414
415
|
# Attempts to start a new TransferOperation for the current TransferJob. A
|
415
416
|
# TransferJob has a maximum of one active TransferOperation. If this method is
|
416
|
-
# called while a TransferOperation is active, an error
|
417
|
+
# called while a TransferOperation is active, an error will be returned.
|
417
418
|
# @param [String] job_name
|
418
419
|
# Required. The name of the transfer job.
|
419
420
|
# @param [Google::Apis::StoragetransferV1::RunTransferJobRequest] run_transfer_job_request_object
|
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.21.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:
|
11
|
+
date: 2022-02-07 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/main/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.21.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storagetransfer_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Storage Transfer API V1
|