google-apis-storagetransfer_v1 0.15.0 → 0.19.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/OVERVIEW.md +2 -2
- data/lib/google/apis/storagetransfer_v1/classes.rb +260 -29
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +2 -2
- data/lib/google/apis/storagetransfer_v1/representations.rb +88 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +193 -9
- 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: 62a3e076f2a4f7e850ab3c1540cc4d37f1c431aab1e16cb49b1822256b9a770e
|
4
|
+
data.tar.gz: 24ea9d15dae7a9da467922ef3d63e58aff37f7933c0459425ef8c838f4aa738a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 820b951951ee2a7be4c5dedb005ab47dc25d2e91c48dbbefa0a7520b7a3c1a127cddbfa7284abf20d5a3fc18c840e546b3cdf6ea9b713267e88d7dfe830d7d4e
|
7
|
+
data.tar.gz: 46813972c1c50fa0c429a9811567b1f0b0c55788793642e4632911b8a24b91e4dc00f6c83571505bbcece29ea54b088110e07ac6ed8789d2cfbed87ceb577f1f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
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
|
+
|
7
|
+
### v0.18.0 (2021-12-02)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211130
|
10
|
+
|
11
|
+
### v0.17.0 (2021-11-06)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211105
|
14
|
+
|
15
|
+
### v0.16.0 (2021-10-20)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211018
|
18
|
+
|
3
19
|
### v0.15.0 (2021-09-21)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210918
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Storagetransfer service in particular.)
|
67
67
|
|
@@ -22,6 +22,44 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module StoragetransferV1
|
24
24
|
|
25
|
+
# Represents an On-Premises Agent pool.
|
26
|
+
class AgentPool
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Specifies a bandwidth limit for an agent pool.
|
30
|
+
# Corresponds to the JSON property `bandwidthLimit`
|
31
|
+
# @return [Google::Apis::StoragetransferV1::BandwidthLimit]
|
32
|
+
attr_accessor :bandwidth_limit
|
33
|
+
|
34
|
+
# Specifies the client-specified AgentPool description.
|
35
|
+
# Corresponds to the JSON property `displayName`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :display_name
|
38
|
+
|
39
|
+
# Required. Specifies a unique string that identifies the agent pool. Format: `
|
40
|
+
# projects/`project_id`/agentPools/`agent_pool_id``
|
41
|
+
# Corresponds to the JSON property `name`
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :name
|
44
|
+
|
45
|
+
# Output only. Specifies the state of the AgentPool.
|
46
|
+
# Corresponds to the JSON property `state`
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :state
|
49
|
+
|
50
|
+
def initialize(**args)
|
51
|
+
update!(**args)
|
52
|
+
end
|
53
|
+
|
54
|
+
# Update properties of this object
|
55
|
+
def update!(**args)
|
56
|
+
@bandwidth_limit = args[:bandwidth_limit] if args.key?(:bandwidth_limit)
|
57
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
58
|
+
@name = args[:name] if args.key?(:name)
|
59
|
+
@state = args[:state] if args.key?(:state)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
25
63
|
# AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/
|
26
64
|
# general/latest/gr/aws-security-credentials.html)). For information on our data
|
27
65
|
# retention policy for user credentials, see [User credentials](/storage-
|
@@ -152,12 +190,10 @@ module Google
|
|
152
190
|
class AzureCredentials
|
153
191
|
include Google::Apis::Core::Hashable
|
154
192
|
|
155
|
-
# Required. Azure shared access signature (SAS).
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
# Azure Storage resources using shared access signatures (SAS)](https://docs.
|
160
|
-
# 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).
|
161
197
|
# Corresponds to the JSON property `sasToken`
|
162
198
|
# @return [String]
|
163
199
|
attr_accessor :sas_token
|
@@ -172,6 +208,26 @@ module Google
|
|
172
208
|
end
|
173
209
|
end
|
174
210
|
|
211
|
+
# Specifies a bandwidth limit for an agent pool.
|
212
|
+
class BandwidthLimit
|
213
|
+
include Google::Apis::Core::Hashable
|
214
|
+
|
215
|
+
# Bandwidth rate in megabytes per second, distributed across all the agents in
|
216
|
+
# the pool.
|
217
|
+
# Corresponds to the JSON property `limitMbps`
|
218
|
+
# @return [Fixnum]
|
219
|
+
attr_accessor :limit_mbps
|
220
|
+
|
221
|
+
def initialize(**args)
|
222
|
+
update!(**args)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Update properties of this object
|
226
|
+
def update!(**args)
|
227
|
+
@limit_mbps = args[:limit_mbps] if args.key?(:limit_mbps)
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
175
231
|
# The request message for Operations.CancelOperation.
|
176
232
|
class CancelOperationRequest
|
177
233
|
include Google::Apis::Core::Hashable
|
@@ -399,6 +455,31 @@ module Google
|
|
399
455
|
end
|
400
456
|
end
|
401
457
|
|
458
|
+
# Response from ListAgentPools.
|
459
|
+
class ListAgentPoolsResponse
|
460
|
+
include Google::Apis::Core::Hashable
|
461
|
+
|
462
|
+
# A list of agent pools.
|
463
|
+
# Corresponds to the JSON property `agentPools`
|
464
|
+
# @return [Array<Google::Apis::StoragetransferV1::AgentPool>]
|
465
|
+
attr_accessor :agent_pools
|
466
|
+
|
467
|
+
# The list next page token.
|
468
|
+
# Corresponds to the JSON property `nextPageToken`
|
469
|
+
# @return [String]
|
470
|
+
attr_accessor :next_page_token
|
471
|
+
|
472
|
+
def initialize(**args)
|
473
|
+
update!(**args)
|
474
|
+
end
|
475
|
+
|
476
|
+
# Update properties of this object
|
477
|
+
def update!(**args)
|
478
|
+
@agent_pools = args[:agent_pools] if args.key?(:agent_pools)
|
479
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
480
|
+
end
|
481
|
+
end
|
482
|
+
|
402
483
|
# The response message for Operations.ListOperations.
|
403
484
|
class ListOperationsResponse
|
404
485
|
include Google::Apis::Core::Hashable
|
@@ -449,18 +530,37 @@ module Google
|
|
449
530
|
end
|
450
531
|
end
|
451
532
|
|
452
|
-
#
|
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.
|
453
540
|
class LoggingConfig
|
454
541
|
include Google::Apis::Core::Hashable
|
455
542
|
|
456
|
-
#
|
457
|
-
#
|
458
|
-
# 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.
|
459
545
|
# Corresponds to the JSON property `enableOnpremGcsTransferLogs`
|
460
546
|
# @return [Boolean]
|
461
547
|
attr_accessor :enable_onprem_gcs_transfer_logs
|
462
548
|
alias_method :enable_onprem_gcs_transfer_logs?, :enable_onprem_gcs_transfer_logs
|
463
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
|
+
|
464
564
|
def initialize(**args)
|
465
565
|
update!(**args)
|
466
566
|
end
|
@@ -468,6 +568,53 @@ module Google
|
|
468
568
|
# Update properties of this object
|
469
569
|
def update!(**args)
|
470
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 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)
|
471
618
|
end
|
472
619
|
end
|
473
620
|
|
@@ -518,8 +665,8 @@ module Google
|
|
518
665
|
# refers to the time of the last change to the object's content or metadata —
|
519
666
|
# specifically, this is the `updated` property of Cloud Storage objects, the `
|
520
667
|
# LastModified` field of S3 objects, and the `Last-Modified` header of Azure
|
521
|
-
# blobs. Transfers
|
522
|
-
#
|
668
|
+
# blobs. Transfers with a PosixFilesystem source or destination don't support `
|
669
|
+
# ObjectConditions`.
|
523
670
|
class ObjectConditions
|
524
671
|
include Google::Apis::Core::Hashable
|
525
672
|
|
@@ -583,18 +730,24 @@ module Google
|
|
583
730
|
# @return [String]
|
584
731
|
attr_accessor :last_modified_since
|
585
732
|
|
586
|
-
#
|
587
|
-
#
|
588
|
-
# modification time" are transferred
|
589
|
-
#
|
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.
|
590
740
|
# Corresponds to the JSON property `maxTimeElapsedSinceLastModification`
|
591
741
|
# @return [String]
|
592
742
|
attr_accessor :max_time_elapsed_since_last_modification
|
593
743
|
|
594
|
-
#
|
595
|
-
#
|
596
|
-
# modification time" are transferred
|
597
|
-
#
|
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.
|
598
751
|
# Corresponds to the JSON property `minTimeElapsedSinceLastModification`
|
599
752
|
# @return [String]
|
600
753
|
attr_accessor :min_time_elapsed_since_last_modification
|
@@ -722,8 +875,7 @@ module Google
|
|
722
875
|
class RunTransferJobRequest
|
723
876
|
include Google::Apis::Core::Hashable
|
724
877
|
|
725
|
-
# Required. The ID of the Google Cloud
|
726
|
-
# transfer job.
|
878
|
+
# Required. The ID of the Google Cloud project that owns the transfer job.
|
727
879
|
# Corresponds to the JSON property `projectId`
|
728
880
|
# @return [String]
|
729
881
|
attr_accessor :project_id
|
@@ -949,6 +1101,16 @@ module Google
|
|
949
1101
|
# @return [Fixnum]
|
950
1102
|
attr_accessor :directories_successfully_listed_from_source
|
951
1103
|
|
1104
|
+
# Number of successfully cleaned up intermediate objects.
|
1105
|
+
# Corresponds to the JSON property `intermediateObjectsCleanedUp`
|
1106
|
+
# @return [Fixnum]
|
1107
|
+
attr_accessor :intermediate_objects_cleaned_up
|
1108
|
+
|
1109
|
+
# Number of intermediate objects failed cleaned up.
|
1110
|
+
# Corresponds to the JSON property `intermediateObjectsFailedCleanedUp`
|
1111
|
+
# @return [Fixnum]
|
1112
|
+
attr_accessor :intermediate_objects_failed_cleaned_up
|
1113
|
+
|
952
1114
|
# Objects that are copied to the data sink.
|
953
1115
|
# Corresponds to the JSON property `objectsCopiedToSink`
|
954
1116
|
# @return [Fixnum]
|
@@ -1010,6 +1172,8 @@ module Google
|
|
1010
1172
|
@directories_failed_to_list_from_source = args[:directories_failed_to_list_from_source] if args.key?(:directories_failed_to_list_from_source)
|
1011
1173
|
@directories_found_from_source = args[:directories_found_from_source] if args.key?(:directories_found_from_source)
|
1012
1174
|
@directories_successfully_listed_from_source = args[:directories_successfully_listed_from_source] if args.key?(:directories_successfully_listed_from_source)
|
1175
|
+
@intermediate_objects_cleaned_up = args[:intermediate_objects_cleaned_up] if args.key?(:intermediate_objects_cleaned_up)
|
1176
|
+
@intermediate_objects_failed_cleaned_up = args[:intermediate_objects_failed_cleaned_up] if args.key?(:intermediate_objects_failed_cleaned_up)
|
1013
1177
|
@objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
|
1014
1178
|
@objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
|
1015
1179
|
@objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
|
@@ -1053,7 +1217,13 @@ module Google
|
|
1053
1217
|
# @return [String]
|
1054
1218
|
attr_accessor :latest_operation_name
|
1055
1219
|
|
1056
|
-
#
|
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.
|
1057
1227
|
# Corresponds to the JSON property `loggingConfig`
|
1058
1228
|
# @return [Google::Apis::StoragetransferV1::LoggingConfig]
|
1059
1229
|
attr_accessor :logging_config
|
@@ -1088,7 +1258,7 @@ module Google
|
|
1088
1258
|
# @return [Google::Apis::StoragetransferV1::NotificationConfig]
|
1089
1259
|
attr_accessor :notification_config
|
1090
1260
|
|
1091
|
-
# The ID of the Google Cloud
|
1261
|
+
# The ID of the Google Cloud project that owns the job.
|
1092
1262
|
# Corresponds to the JSON property `projectId`
|
1093
1263
|
# @return [String]
|
1094
1264
|
attr_accessor :project_id
|
@@ -1133,6 +1303,27 @@ module Google
|
|
1133
1303
|
end
|
1134
1304
|
end
|
1135
1305
|
|
1306
|
+
# Specifies where the manifest is located.
|
1307
|
+
class TransferManifest
|
1308
|
+
include Google::Apis::Core::Hashable
|
1309
|
+
|
1310
|
+
# Specifies the path to the manifest in Cloud Storage. The Google-managed
|
1311
|
+
# service account for the transfer must have `storage.objects.get` permission
|
1312
|
+
# for this object. An example path is `gs://bucket_name/path/manifest.csv`.
|
1313
|
+
# Corresponds to the JSON property `location`
|
1314
|
+
# @return [String]
|
1315
|
+
attr_accessor :location
|
1316
|
+
|
1317
|
+
def initialize(**args)
|
1318
|
+
update!(**args)
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# Update properties of this object
|
1322
|
+
def update!(**args)
|
1323
|
+
@location = args[:location] if args.key?(:location)
|
1324
|
+
end
|
1325
|
+
end
|
1326
|
+
|
1136
1327
|
# A description of the execution of a transfer.
|
1137
1328
|
class TransferOperation
|
1138
1329
|
include Google::Apis::Core::Hashable
|
@@ -1170,7 +1361,7 @@ module Google
|
|
1170
1361
|
# @return [Google::Apis::StoragetransferV1::NotificationConfig]
|
1171
1362
|
attr_accessor :notification_config
|
1172
1363
|
|
1173
|
-
# The ID of the Google Cloud
|
1364
|
+
# The ID of the Google Cloud project that owns the operation.
|
1174
1365
|
# Corresponds to the JSON property `projectId`
|
1175
1366
|
# @return [String]
|
1176
1367
|
attr_accessor :project_id
|
@@ -1233,6 +1424,11 @@ module Google
|
|
1233
1424
|
attr_accessor :delete_objects_unique_in_sink
|
1234
1425
|
alias_method :delete_objects_unique_in_sink?, :delete_objects_unique_in_sink
|
1235
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
|
+
|
1236
1432
|
# When to overwrite objects that already exist in the sink. The default is that
|
1237
1433
|
# only objects that are different from the source are ovewritten. If true, all
|
1238
1434
|
# objects in the sink whose name matches an object in the source are overwritten
|
@@ -1250,6 +1446,7 @@ module Google
|
|
1250
1446
|
def update!(**args)
|
1251
1447
|
@delete_objects_from_source_after_transfer = args[:delete_objects_from_source_after_transfer] if args.key?(:delete_objects_from_source_after_transfer)
|
1252
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)
|
1253
1450
|
@overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_in_sink)
|
1254
1451
|
end
|
1255
1452
|
end
|
@@ -1291,6 +1488,14 @@ module Google
|
|
1291
1488
|
# @return [Google::Apis::StoragetransferV1::GcsData]
|
1292
1489
|
attr_accessor :gcs_data_source
|
1293
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
|
+
|
1294
1499
|
# An HttpData resource specifies a list of objects on the web to be transferred
|
1295
1500
|
# over HTTP. The information of the objects to be transferred is contained in a
|
1296
1501
|
# file referenced by a URL. The first line in the file must be `"TsvHttpData-1.0"
|
@@ -1321,17 +1526,39 @@ module Google
|
|
1321
1526
|
# refers to the time of the last change to the object's content or metadata —
|
1322
1527
|
# specifically, this is the `updated` property of Cloud Storage objects, the `
|
1323
1528
|
# LastModified` field of S3 objects, and the `Last-Modified` header of Azure
|
1324
|
-
# blobs. Transfers
|
1325
|
-
#
|
1529
|
+
# blobs. Transfers with a PosixFilesystem source or destination don't support `
|
1530
|
+
# ObjectConditions`.
|
1326
1531
|
# Corresponds to the JSON property `objectConditions`
|
1327
1532
|
# @return [Google::Apis::StoragetransferV1::ObjectConditions]
|
1328
1533
|
attr_accessor :object_conditions
|
1329
1534
|
|
1535
|
+
# A POSIX filesystem resource.
|
1536
|
+
# Corresponds to the JSON property `posixDataSink`
|
1537
|
+
# @return [Google::Apis::StoragetransferV1::PosixFilesystem]
|
1538
|
+
attr_accessor :posix_data_sink
|
1539
|
+
|
1330
1540
|
# A POSIX filesystem resource.
|
1331
1541
|
# Corresponds to the JSON property `posixDataSource`
|
1332
1542
|
# @return [Google::Apis::StoragetransferV1::PosixFilesystem]
|
1333
1543
|
attr_accessor :posix_data_source
|
1334
1544
|
|
1545
|
+
# Specifies the agent pool name associated with the posix data sink. When
|
1546
|
+
# unspecified, the default name is used.
|
1547
|
+
# Corresponds to the JSON property `sinkAgentPoolName`
|
1548
|
+
# @return [String]
|
1549
|
+
attr_accessor :sink_agent_pool_name
|
1550
|
+
|
1551
|
+
# Specifies the agent pool name associated with the posix data source. When
|
1552
|
+
# unspecified, the default name is used.
|
1553
|
+
# Corresponds to the JSON property `sourceAgentPoolName`
|
1554
|
+
# @return [String]
|
1555
|
+
attr_accessor :source_agent_pool_name
|
1556
|
+
|
1557
|
+
# Specifies where the manifest is located.
|
1558
|
+
# Corresponds to the JSON property `transferManifest`
|
1559
|
+
# @return [Google::Apis::StoragetransferV1::TransferManifest]
|
1560
|
+
attr_accessor :transfer_manifest
|
1561
|
+
|
1335
1562
|
# TransferOptions define the actions to be performed on objects in a transfer.
|
1336
1563
|
# Corresponds to the JSON property `transferOptions`
|
1337
1564
|
# @return [Google::Apis::StoragetransferV1::TransferOptions]
|
@@ -1347,9 +1574,14 @@ module Google
|
|
1347
1574
|
@azure_blob_storage_data_source = args[:azure_blob_storage_data_source] if args.key?(:azure_blob_storage_data_source)
|
1348
1575
|
@gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink)
|
1349
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)
|
1350
1578
|
@http_data_source = args[:http_data_source] if args.key?(:http_data_source)
|
1351
1579
|
@object_conditions = args[:object_conditions] if args.key?(:object_conditions)
|
1580
|
+
@posix_data_sink = args[:posix_data_sink] if args.key?(:posix_data_sink)
|
1352
1581
|
@posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
|
1582
|
+
@sink_agent_pool_name = args[:sink_agent_pool_name] if args.key?(:sink_agent_pool_name)
|
1583
|
+
@source_agent_pool_name = args[:source_agent_pool_name] if args.key?(:source_agent_pool_name)
|
1584
|
+
@transfer_manifest = args[:transfer_manifest] if args.key?(:transfer_manifest)
|
1353
1585
|
@transfer_options = args[:transfer_options] if args.key?(:transfer_options)
|
1354
1586
|
end
|
1355
1587
|
end
|
@@ -1358,8 +1590,7 @@ module Google
|
|
1358
1590
|
class UpdateTransferJobRequest
|
1359
1591
|
include Google::Apis::Core::Hashable
|
1360
1592
|
|
1361
|
-
# Required. The ID of the Google Cloud
|
1362
|
-
# job.
|
1593
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
1363
1594
|
# Corresponds to the JSON property `projectId`
|
1364
1595
|
# @return [String]
|
1365
1596
|
attr_accessor :project_id
|
@@ -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.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 = "
|
25
|
+
REVISION = "20211210"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module StoragetransferV1
|
24
24
|
|
25
|
+
class AgentPool
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class AwsAccessKey
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -46,6 +52,12 @@ module Google
|
|
46
52
|
include Google::Apis::Core::JsonObjectSupport
|
47
53
|
end
|
48
54
|
|
55
|
+
class BandwidthLimit
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
49
61
|
class CancelOperationRequest
|
50
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
63
|
|
@@ -94,6 +106,12 @@ module Google
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class ListAgentPoolsResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
97
115
|
class ListOperationsResponse
|
98
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
117
|
|
@@ -112,6 +130,12 @@ module Google
|
|
112
130
|
include Google::Apis::Core::JsonObjectSupport
|
113
131
|
end
|
114
132
|
|
133
|
+
class MetadataOptions
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
115
139
|
class NotificationConfig
|
116
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
141
|
|
@@ -184,6 +208,12 @@ module Google
|
|
184
208
|
include Google::Apis::Core::JsonObjectSupport
|
185
209
|
end
|
186
210
|
|
211
|
+
class TransferManifest
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
187
217
|
class TransferOperation
|
188
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
219
|
|
@@ -208,6 +238,17 @@ module Google
|
|
208
238
|
include Google::Apis::Core::JsonObjectSupport
|
209
239
|
end
|
210
240
|
|
241
|
+
class AgentPool
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
property :bandwidth_limit, as: 'bandwidthLimit', class: Google::Apis::StoragetransferV1::BandwidthLimit, decorator: Google::Apis::StoragetransferV1::BandwidthLimit::Representation
|
245
|
+
|
246
|
+
property :display_name, as: 'displayName'
|
247
|
+
property :name, as: 'name'
|
248
|
+
property :state, as: 'state'
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
211
252
|
class AwsAccessKey
|
212
253
|
# @private
|
213
254
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -245,6 +286,13 @@ module Google
|
|
245
286
|
end
|
246
287
|
end
|
247
288
|
|
289
|
+
class BandwidthLimit
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
property :limit_mbps, :numeric_string => true, as: 'limitMbps'
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
248
296
|
class CancelOperationRequest
|
249
297
|
# @private
|
250
298
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -307,6 +355,15 @@ module Google
|
|
307
355
|
end
|
308
356
|
end
|
309
357
|
|
358
|
+
class ListAgentPoolsResponse
|
359
|
+
# @private
|
360
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
361
|
+
collection :agent_pools, as: 'agentPools', class: Google::Apis::StoragetransferV1::AgentPool, decorator: Google::Apis::StoragetransferV1::AgentPool::Representation
|
362
|
+
|
363
|
+
property :next_page_token, as: 'nextPageToken'
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
310
367
|
class ListOperationsResponse
|
311
368
|
# @private
|
312
369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -329,6 +386,18 @@ module Google
|
|
329
386
|
# @private
|
330
387
|
class Representation < Google::Apis::Core::JsonRepresentation
|
331
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 :gid, as: 'gid'
|
398
|
+
property :mode, as: 'mode'
|
399
|
+
property :symlink, as: 'symlink'
|
400
|
+
property :uid, as: 'uid'
|
332
401
|
end
|
333
402
|
end
|
334
403
|
|
@@ -439,6 +508,8 @@ module Google
|
|
439
508
|
property :directories_failed_to_list_from_source, :numeric_string => true, as: 'directoriesFailedToListFromSource'
|
440
509
|
property :directories_found_from_source, :numeric_string => true, as: 'directoriesFoundFromSource'
|
441
510
|
property :directories_successfully_listed_from_source, :numeric_string => true, as: 'directoriesSuccessfullyListedFromSource'
|
511
|
+
property :intermediate_objects_cleaned_up, :numeric_string => true, as: 'intermediateObjectsCleanedUp'
|
512
|
+
property :intermediate_objects_failed_cleaned_up, :numeric_string => true, as: 'intermediateObjectsFailedCleanedUp'
|
442
513
|
property :objects_copied_to_sink, :numeric_string => true, as: 'objectsCopiedToSink'
|
443
514
|
property :objects_deleted_from_sink, :numeric_string => true, as: 'objectsDeletedFromSink'
|
444
515
|
property :objects_deleted_from_source, :numeric_string => true, as: 'objectsDeletedFromSource'
|
@@ -472,6 +543,13 @@ module Google
|
|
472
543
|
end
|
473
544
|
end
|
474
545
|
|
546
|
+
class TransferManifest
|
547
|
+
# @private
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
549
|
+
property :location, as: 'location'
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
475
553
|
class TransferOperation
|
476
554
|
# @private
|
477
555
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -497,6 +575,8 @@ module Google
|
|
497
575
|
class Representation < Google::Apis::Core::JsonRepresentation
|
498
576
|
property :delete_objects_from_source_after_transfer, as: 'deleteObjectsFromSourceAfterTransfer'
|
499
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
|
+
|
500
580
|
property :overwrite_objects_already_existing_in_sink, as: 'overwriteObjectsAlreadyExistingInSink'
|
501
581
|
end
|
502
582
|
end
|
@@ -512,12 +592,20 @@ module Google
|
|
512
592
|
|
513
593
|
property :gcs_data_source, as: 'gcsDataSource', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
|
514
594
|
|
595
|
+
property :gcs_intermediate_data_location, as: 'gcsIntermediateDataLocation', class: Google::Apis::StoragetransferV1::GcsData, decorator: Google::Apis::StoragetransferV1::GcsData::Representation
|
596
|
+
|
515
597
|
property :http_data_source, as: 'httpDataSource', class: Google::Apis::StoragetransferV1::HttpData, decorator: Google::Apis::StoragetransferV1::HttpData::Representation
|
516
598
|
|
517
599
|
property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
|
518
600
|
|
601
|
+
property :posix_data_sink, as: 'posixDataSink', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
|
602
|
+
|
519
603
|
property :posix_data_source, as: 'posixDataSource', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
|
520
604
|
|
605
|
+
property :sink_agent_pool_name, as: 'sinkAgentPoolName'
|
606
|
+
property :source_agent_pool_name, as: 'sourceAgentPoolName'
|
607
|
+
property :transfer_manifest, as: 'transferManifest', class: Google::Apis::StoragetransferV1::TransferManifest, decorator: Google::Apis::StoragetransferV1::TransferManifest::Representation
|
608
|
+
|
521
609
|
property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
|
522
610
|
|
523
611
|
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
|
@@ -87,6 +87,191 @@ module Google
|
|
87
87
|
execute_or_queue_command(command, &block)
|
88
88
|
end
|
89
89
|
|
90
|
+
# Creates an agent pool resource.
|
91
|
+
# @param [String] project_id
|
92
|
+
# Required. The ID of the Google Cloud project that owns the agent pool.
|
93
|
+
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
94
|
+
# @param [String] agent_pool_id
|
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])?$`.
|
102
|
+
# @param [String] fields
|
103
|
+
# Selector specifying which fields to include in a partial response.
|
104
|
+
# @param [String] quota_user
|
105
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
106
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
107
|
+
# @param [Google::Apis::RequestOptions] options
|
108
|
+
# Request-specific options
|
109
|
+
#
|
110
|
+
# @yield [result, err] Result & error if block supplied
|
111
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::AgentPool] parsed result object
|
112
|
+
# @yieldparam err [StandardError] error object if request failed
|
113
|
+
#
|
114
|
+
# @return [Google::Apis::StoragetransferV1::AgentPool]
|
115
|
+
#
|
116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
119
|
+
def create_project_agent_pool(project_id, agent_pool_object = nil, agent_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
120
|
+
command = make_simple_command(:post, 'v1/projects/{+projectId}/agentPools', options)
|
121
|
+
command.request_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
122
|
+
command.request_object = agent_pool_object
|
123
|
+
command.response_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
124
|
+
command.response_class = Google::Apis::StoragetransferV1::AgentPool
|
125
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
126
|
+
command.query['agentPoolId'] = agent_pool_id unless agent_pool_id.nil?
|
127
|
+
command.query['fields'] = fields unless fields.nil?
|
128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
129
|
+
execute_or_queue_command(command, &block)
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deletes an agent pool.
|
133
|
+
# @param [String] name
|
134
|
+
# Required. The name of the agent pool to delete.
|
135
|
+
# @param [String] fields
|
136
|
+
# Selector specifying which fields to include in a partial response.
|
137
|
+
# @param [String] quota_user
|
138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
140
|
+
# @param [Google::Apis::RequestOptions] options
|
141
|
+
# Request-specific options
|
142
|
+
#
|
143
|
+
# @yield [result, err] Result & error if block supplied
|
144
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object
|
145
|
+
# @yieldparam err [StandardError] error object if request failed
|
146
|
+
#
|
147
|
+
# @return [Google::Apis::StoragetransferV1::Empty]
|
148
|
+
#
|
149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
+
def delete_project_agent_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
153
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
154
|
+
command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
|
155
|
+
command.response_class = Google::Apis::StoragetransferV1::Empty
|
156
|
+
command.params['name'] = name unless name.nil?
|
157
|
+
command.query['fields'] = fields unless fields.nil?
|
158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
159
|
+
execute_or_queue_command(command, &block)
|
160
|
+
end
|
161
|
+
|
162
|
+
# Gets an agent pool.
|
163
|
+
# @param [String] name
|
164
|
+
# Required. The name of the agent pool to get.
|
165
|
+
# @param [String] fields
|
166
|
+
# Selector specifying which fields to include in a partial response.
|
167
|
+
# @param [String] quota_user
|
168
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
169
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
170
|
+
# @param [Google::Apis::RequestOptions] options
|
171
|
+
# Request-specific options
|
172
|
+
#
|
173
|
+
# @yield [result, err] Result & error if block supplied
|
174
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::AgentPool] parsed result object
|
175
|
+
# @yieldparam err [StandardError] error object if request failed
|
176
|
+
#
|
177
|
+
# @return [Google::Apis::StoragetransferV1::AgentPool]
|
178
|
+
#
|
179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
182
|
+
def get_project_agent_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
183
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
184
|
+
command.response_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
185
|
+
command.response_class = Google::Apis::StoragetransferV1::AgentPool
|
186
|
+
command.params['name'] = name unless name.nil?
|
187
|
+
command.query['fields'] = fields unless fields.nil?
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
|
+
execute_or_queue_command(command, &block)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Lists agent pools.
|
193
|
+
# @param [String] project_id
|
194
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
195
|
+
# @param [String] filter
|
196
|
+
# An optional list of query parameters specified as JSON text in the form of: ``"
|
197
|
+
# agentPoolNames":["agentpool1","agentpool2",...]`` Since `agentPoolNames`
|
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.
|
201
|
+
# @param [Fixnum] page_size
|
202
|
+
# The list page size. The max allowed value is `256`.
|
203
|
+
# @param [String] page_token
|
204
|
+
# The list page token.
|
205
|
+
# @param [String] fields
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
207
|
+
# @param [String] quota_user
|
208
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
209
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
210
|
+
# @param [Google::Apis::RequestOptions] options
|
211
|
+
# Request-specific options
|
212
|
+
#
|
213
|
+
# @yield [result, err] Result & error if block supplied
|
214
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::ListAgentPoolsResponse] parsed result object
|
215
|
+
# @yieldparam err [StandardError] error object if request failed
|
216
|
+
#
|
217
|
+
# @return [Google::Apis::StoragetransferV1::ListAgentPoolsResponse]
|
218
|
+
#
|
219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
+
def list_project_agent_pools(project_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:get, 'v1/projects/{+projectId}/agentPools', options)
|
224
|
+
command.response_representation = Google::Apis::StoragetransferV1::ListAgentPoolsResponse::Representation
|
225
|
+
command.response_class = Google::Apis::StoragetransferV1::ListAgentPoolsResponse
|
226
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
227
|
+
command.query['filter'] = filter unless filter.nil?
|
228
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
229
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
232
|
+
execute_or_queue_command(command, &block)
|
233
|
+
end
|
234
|
+
|
235
|
+
# Updates an existing agent pool resource.
|
236
|
+
# @param [String] name
|
237
|
+
# Required. Specifies a unique string that identifies the agent pool. Format: `
|
238
|
+
# projects/`project_id`/agentPools/`agent_pool_id``
|
239
|
+
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
240
|
+
# @param [String] update_mask
|
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
|
245
|
+
# @param [String] fields
|
246
|
+
# Selector specifying which fields to include in a partial response.
|
247
|
+
# @param [String] quota_user
|
248
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
249
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
250
|
+
# @param [Google::Apis::RequestOptions] options
|
251
|
+
# Request-specific options
|
252
|
+
#
|
253
|
+
# @yield [result, err] Result & error if block supplied
|
254
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::AgentPool] parsed result object
|
255
|
+
# @yieldparam err [StandardError] error object if request failed
|
256
|
+
#
|
257
|
+
# @return [Google::Apis::StoragetransferV1::AgentPool]
|
258
|
+
#
|
259
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
260
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
261
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
262
|
+
def patch_project_agent_pool(name, agent_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
263
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
264
|
+
command.request_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
265
|
+
command.request_object = agent_pool_object
|
266
|
+
command.response_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
267
|
+
command.response_class = Google::Apis::StoragetransferV1::AgentPool
|
268
|
+
command.params['name'] = name unless name.nil?
|
269
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
270
|
+
command.query['fields'] = fields unless fields.nil?
|
271
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
272
|
+
execute_or_queue_command(command, &block)
|
273
|
+
end
|
274
|
+
|
90
275
|
# Creates a transfer job that runs periodically.
|
91
276
|
# @param [Google::Apis::StoragetransferV1::TransferJob] transfer_job_object
|
92
277
|
# @param [String] fields
|
@@ -121,8 +306,7 @@ module Google
|
|
121
306
|
# @param [String] job_name
|
122
307
|
# Required. The job to get.
|
123
308
|
# @param [String] project_id
|
124
|
-
# Required. The ID of the Google Cloud
|
125
|
-
# job.
|
309
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
126
310
|
# @param [String] fields
|
127
311
|
# Selector specifying which fields to include in a partial response.
|
128
312
|
# @param [String] quota_user
|
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.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-
|
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
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.19.0
|
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: []
|
65
65
|
require_paths:
|