google-apis-storagetransfer_v1 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65b607b8f7d0e8a8b327553107169710f0d052c05241bc4ccacbc13632b69b26
4
- data.tar.gz: 8e12775f35686fbad11c420670cc1d9961523e5cd6a57627db9f52f4f0d87b64
3
+ metadata.gz: 62a3e076f2a4f7e850ab3c1540cc4d37f1c431aab1e16cb49b1822256b9a770e
4
+ data.tar.gz: 24ea9d15dae7a9da467922ef3d63e58aff37f7933c0459425ef8c838f4aa738a
5
5
  SHA512:
6
- metadata.gz: ac42f9213be2551d265851a962243f25986667e638727f9648f5e559f8645399ff50c7b934623fefa873a40fc9b0223067a0be108b0ca7f84b8084f2c637d8b6
7
- data.tar.gz: 20dc341becc0aa928e7e03b9b5318e42bf9c92197162b165264c144d2f21bb0566cf3731f84247e92d36f3bdbff0bcf12a1036a1d567fb73e247af8556898d8b
6
+ metadata.gz: 820b951951ee2a7be4c5dedb005ab47dc25d2e91c48dbbefa0a7520b7a3c1a127cddbfa7284abf20d5a3fc18c840e546b3cdf6ea9b713267e88d7dfe830d7d4e
7
+ data.tar.gz: 46813972c1c50fa0c429a9811567b1f0b0c55788793642e4632911b8a24b91e4dc00f6c83571505bbcece29ea54b088110e07ac6ed8789d2cfbed87ceb577f1f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-storagetransfer_v1
2
2
 
3
+ ### v0.19.0 (2021-12-11)
4
+
5
+ * Regenerated from discovery document revision 20211210
6
+
3
7
  ### v0.18.0 (2021-12-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20211130
@@ -190,12 +190,10 @@ module Google
190
190
  class AzureCredentials
191
191
  include Google::Apis::Core::Hashable
192
192
 
193
- # Required. Azure shared access signature (SAS). *Note:*Copying data from Azure
194
- # Data Lake Storage (ADLS) Gen 2 is in [Preview](/products/#product-launch-
195
- # stages). During Preview, if you are copying data from ADLS Gen 2, you must use
196
- # an account SAS. For more information about SAS, see [Grant limited access to
197
- # Azure Storage resources using shared access signatures (SAS)](https://docs.
198
- # 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).
199
197
  # Corresponds to the JSON property `sasToken`
200
198
  # @return [String]
201
199
  attr_accessor :sas_token
@@ -532,26 +530,33 @@ module Google
532
530
  end
533
531
  end
534
532
 
535
- # Logging configuration.
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.
536
540
  class LoggingConfig
537
541
  include Google::Apis::Core::Hashable
538
542
 
539
- # Enables the Cloud Storage transfer logs for this transfer. This is only
540
- # supported for transfer jobs with PosixFilesystem sources. The default is that
541
- # 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.
542
545
  # Corresponds to the JSON property `enableOnpremGcsTransferLogs`
543
546
  # @return [Boolean]
544
547
  attr_accessor :enable_onprem_gcs_transfer_logs
545
548
  alias_method :enable_onprem_gcs_transfer_logs?, :enable_onprem_gcs_transfer_logs
546
549
 
547
- # States in which `log_actions` are logged. If empty, no logs are generated.
548
- # This is not yet supported for transfers with PosixFilesystem data sources.
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.
549
553
  # Corresponds to the JSON property `logActionStates`
550
554
  # @return [Array<String>]
551
555
  attr_accessor :log_action_states
552
556
 
553
- # Actions to be logged. If empty, no logs are generated. This is not yet
554
- # supported for transfers with PosixFilesystem data sources.
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.
555
560
  # Corresponds to the JSON property `logActions`
556
561
  # @return [Array<String>]
557
562
  attr_accessor :log_actions
@@ -568,6 +573,51 @@ module Google
568
573
  end
569
574
  end
570
575
 
576
+ # Specifies the metadata options for running a transfer.
577
+ class MetadataOptions
578
+ include Google::Apis::Core::Hashable
579
+
580
+ # Specifies how each file's GID attribute should be handled by the transfer. If
581
+ # unspecified, the default behavior is the same as GID_SKIP when the source is a
582
+ # POSIX file system.
583
+ # Corresponds to the JSON property `gid`
584
+ # @return [String]
585
+ attr_accessor :gid
586
+
587
+ # Specifies how each file's mode attribute should be handled by the transfer. If
588
+ # unspecified, the default behavior is the same as MODE_SKIP when the source is
589
+ # a POSIX file system.
590
+ # Corresponds to the JSON property `mode`
591
+ # @return [String]
592
+ attr_accessor :mode
593
+
594
+ # Specifies how symlinks should be handled by the transfer. If unspecified, the
595
+ # default behavior is the same as SYMLINK_SKIP when the source is a POSIX file
596
+ # system.
597
+ # Corresponds to the JSON property `symlink`
598
+ # @return [String]
599
+ attr_accessor :symlink
600
+
601
+ # Specifies how each file's UID attribute should be handled by the transfer. If
602
+ # unspecified, the default behavior is the same as UID_SKIP when the source is a
603
+ # POSIX file system.
604
+ # Corresponds to the JSON property `uid`
605
+ # @return [String]
606
+ attr_accessor :uid
607
+
608
+ def initialize(**args)
609
+ update!(**args)
610
+ end
611
+
612
+ # Update properties of this object
613
+ def update!(**args)
614
+ @gid = args[:gid] if args.key?(:gid)
615
+ @mode = args[:mode] if args.key?(:mode)
616
+ @symlink = args[:symlink] if args.key?(:symlink)
617
+ @uid = args[:uid] if args.key?(:uid)
618
+ end
619
+ end
620
+
571
621
  # Specification to configure notifications published to Pub/Sub. Notifications
572
622
  # are published to the customer-provided topic using the following `
573
623
  # PubsubMessage.attributes`: * `"eventType"`: one of the EventType values * `"
@@ -680,18 +730,24 @@ module Google
680
730
  # @return [String]
681
731
  attr_accessor :last_modified_since
682
732
 
683
- # If specified, only objects with a "last modification time" on or after `NOW` -
684
- # `max_time_elapsed_since_last_modification` and objects that don't have a "last
685
- # modification time" are transferred. For each TransferOperation started by this
686
- # TransferJob, `NOW` refers to the start_time of the `TransferOperation`.
733
+ # Ensures that objects are not transferred if a specific maximum time has
734
+ # elapsed since the "last modification time". When a TransferOperation begins,
735
+ # objects with a "last modification time" are transferred only if the elapsed
736
+ # time between the start_time of the `TransferOperation`and the "last
737
+ # modification time" of the object is less than the value of
738
+ # max_time_elapsed_since_last_modification`. Objects that do not have a "last
739
+ # modification time" are also transferred.
687
740
  # Corresponds to the JSON property `maxTimeElapsedSinceLastModification`
688
741
  # @return [String]
689
742
  attr_accessor :max_time_elapsed_since_last_modification
690
743
 
691
- # If specified, only objects with a "last modification time" before `NOW` - `
692
- # min_time_elapsed_since_last_modification` and objects that don't have a "last
693
- # modification time" are transferred. For each TransferOperation started by this
694
- # TransferJob, `NOW` refers to the start_time of the `TransferOperation`.
744
+ # Ensures that objects are not transferred until a specific minimum time has
745
+ # elapsed after the "last modification time". When a TransferOperation begins,
746
+ # objects with a "last modification time" are transferred only if the elapsed
747
+ # time between the start_time of the `TransferOperation` and the "last
748
+ # modification time" of the object is equal to or greater than the value of
749
+ # min_time_elapsed_since_last_modification`. Objects that do not have a "last
750
+ # modification time" are also transferred.
695
751
  # Corresponds to the JSON property `minTimeElapsedSinceLastModification`
696
752
  # @return [String]
697
753
  attr_accessor :min_time_elapsed_since_last_modification
@@ -1161,7 +1217,13 @@ module Google
1161
1217
  # @return [String]
1162
1218
  attr_accessor :latest_operation_name
1163
1219
 
1164
- # Logging configuration.
1220
+ # Specifies the logging behavior for transfer operations. For cloud-to-cloud
1221
+ # transfers, logs are sent to Cloud Logging. See [Read transfer logs](https://
1222
+ # cloud.google.com/storage-transfer/docs/read-transfer-logs) for details. For
1223
+ # transfers to or from a POSIX file system, logs are stored in the Cloud Storage
1224
+ # bucket that is the source or sink of the transfer. See [Managing Transfer for
1225
+ # on-premises jobs] (https://cloud.google.com/storage-transfer/docs/managing-on-
1226
+ # prem-jobs#viewing-logs) for details.
1165
1227
  # Corresponds to the JSON property `loggingConfig`
1166
1228
  # @return [Google::Apis::StoragetransferV1::LoggingConfig]
1167
1229
  attr_accessor :logging_config
@@ -1362,6 +1424,11 @@ module Google
1362
1424
  attr_accessor :delete_objects_unique_in_sink
1363
1425
  alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink
1364
1426
 
1427
+ # Specifies the metadata options for running a transfer.
1428
+ # Corresponds to the JSON property `metadataOptions`
1429
+ # @return [Google::Apis::StoragetransferV1::MetadataOptions]
1430
+ attr_accessor :metadata_options
1431
+
1365
1432
  # When to overwrite objects that already exist in the sink. The default is that
1366
1433
  # only objects that are different from the source are ovewritten. If true, all
1367
1434
  # objects in the sink whose name matches an object in the source are overwritten
@@ -1379,6 +1446,7 @@ module Google
1379
1446
  def update!(**args)
1380
1447
  @delete_objects_from_source_after_transfer = args[:delete_objects_from_source_after_transfer] if args.key?(:delete_objects_from_source_after_transfer)
1381
1448
  @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink)
1449
+ @metadata_options = args[:metadata_options] if args.key?(:metadata_options)
1382
1450
  @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_in_sink)
1383
1451
  end
1384
1452
  end
@@ -1420,6 +1488,14 @@ module Google
1420
1488
  # @return [Google::Apis::StoragetransferV1::GcsData]
1421
1489
  attr_accessor :gcs_data_source
1422
1490
 
1491
+ # In a GcsData resource, an object's name is the Cloud Storage object's name and
1492
+ # its "last modification time" refers to the object's `updated` property of
1493
+ # Cloud Storage objects, which changes when the content or the metadata of the
1494
+ # object is updated.
1495
+ # Corresponds to the JSON property `gcsIntermediateDataLocation`
1496
+ # @return [Google::Apis::StoragetransferV1::GcsData]
1497
+ attr_accessor :gcs_intermediate_data_location
1498
+
1423
1499
  # An HttpData resource specifies a list of objects on the web to be transferred
1424
1500
  # over HTTP. The information of the objects to be transferred is contained in a
1425
1501
  # file referenced by a URL. The first line in the file must be `"TsvHttpData-1.0"
@@ -1498,6 +1574,7 @@ module Google
1498
1574
  @azure_blob_storage_data_source = args[:azure_blob_storage_data_source] if args.key?(:azure_blob_storage_data_source)
1499
1575
  @gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
1500
1576
  @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
1577
+ @gcs_intermediate_data_location = args[:gcs_intermediate_data_location] if args.key?(:gcs_intermediate_data_location)
1501
1578
  @http_data_source = args[:http_data_source] if args.key?(:http_data_source)
1502
1579
  @object_conditions = args[:object_conditions] if args.key?(:object_conditions)
1503
1580
  @posix_data_sink = args[:posix_data_sink] if args.key?(:posix_data_sink)
@@ -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.18.0"
19
+ GEM_VERSION = "0.19.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 = "20211130"
25
+ REVISION = "20211210"
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
 
@@ -385,6 +391,16 @@ module Google
385
391
  end
386
392
  end
387
393
 
394
+ class MetadataOptions
395
+ # @private
396
+ class Representation < Google::Apis::Core::JsonRepresentation
397
+ property :gid, as: 'gid'
398
+ property :mode, as: 'mode'
399
+ property :symlink, as: 'symlink'
400
+ property :uid, as: 'uid'
401
+ end
402
+ end
403
+
388
404
  class NotificationConfig
389
405
  # @private
390
406
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -559,6 +575,8 @@ module Google
559
575
  class Representation < Google::Apis::Core::JsonRepresentation
560
576
  property :delete_objects_from_source_after_transfer, as: 'deleteObjectsFromSourceAfterTransfer'
561
577
  property :delete_objects_unique_in_sink, as: 'deleteObjectsUniqueInSink'
578
+ property :metadata_options, as: 'metadataOptions', class: Google::Apis::StoragetransferV1::MetadataOptions, decorator: Google::Apis::StoragetransferV1::MetadataOptions::Representation
579
+
562
580
  property :overwrite_objects_already_existing_in_sink, as: 'overwriteObjectsAlreadyExistingInSink'
563
581
  end
564
582
  end
@@ -574,6 +592,8 @@ module Google
574
592
 
575
593
  property :gcs_data_source, as: 'gcsDataSource', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
576
594
 
595
+ property :gcs_intermediate_data_location, as: 'gcsIntermediateDataLocation', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
596
+
577
597
  property :http_data_source, as: 'httpDataSource', class: Google::Apis::StoragetransferV1::HttpData, decorator: Google::Apis::StoragetransferV1::HttpData::Representation
578
598
 
579
599
  property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
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.18.0
4
+ version: 0.19.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-12-06 00:00:00.000000000 Z
11
+ date: 2021-12-13 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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.19.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: []