google-apis-storagetransfer_v1 0.12.0 → 0.16.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 +190 -16
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +2 -2
- data/lib/google/apis/storagetransfer_v1/representations.rb +80 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +184 -1
- data/lib/google/apis/storagetransfer_v1.rb +1 -1
- 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: 80c18683fdb4d192b9f9da51763453689ca91566cea49854332720c3ce6872a2
|
4
|
+
data.tar.gz: 9899dedceed7cbeb390be891a7f7b8bb601d92a2f0d2683feac9bce502d5679e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ecf86953bf9293d6e0fc819226d7fc9886806ecfafe19c692c5570837663c7c11236753a8980b76a9881cb36e9ab30180c62efb392b892dda7943274925e150
|
7
|
+
data.tar.gz: 584341983ca62e5e337c7961ee57cd7fa1c59c876b7e04e0f5d7789cbe52d86dfcb59c9c0aee3c9afadb81f2a55fec5a06002c57e380babfc11d3a77bd26d429
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-storagetransfer_v1
|
2
2
|
|
3
|
+
### v0.16.0 (2021-10-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211018
|
6
|
+
|
7
|
+
### v0.15.0 (2021-09-21)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210918
|
10
|
+
|
11
|
+
### v0.14.0 (2021-08-20)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210812
|
14
|
+
|
15
|
+
### v0.13.0 (2021-07-31)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210726
|
18
|
+
|
3
19
|
### v0.12.0 (2021-07-14)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210708
|
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,45 @@ 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 the BandwidthLimit to describe the non-negative bandwidth rate in
|
30
|
+
# mbps for the agent pool.
|
31
|
+
# Corresponds to the JSON property `bandwidthLimit`
|
32
|
+
# @return [Google::Apis::StoragetransferV1::BandwidthLimit]
|
33
|
+
attr_accessor :bandwidth_limit
|
34
|
+
|
35
|
+
# Specifies the client-specified AgentPool description.
|
36
|
+
# Corresponds to the JSON property `displayName`
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :display_name
|
39
|
+
|
40
|
+
# Required. Specifies a unique string that identifies the agent pool. Format:
|
41
|
+
# projects/`project_id`/agentPools/`agent_pool_id`
|
42
|
+
# Corresponds to the JSON property `name`
|
43
|
+
# @return [String]
|
44
|
+
attr_accessor :name
|
45
|
+
|
46
|
+
# Output only. Specifies the state of the AgentPool.
|
47
|
+
# Corresponds to the JSON property `state`
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :state
|
50
|
+
|
51
|
+
def initialize(**args)
|
52
|
+
update!(**args)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Update properties of this object
|
56
|
+
def update!(**args)
|
57
|
+
@bandwidth_limit = args[:bandwidth_limit] if args.key?(:bandwidth_limit)
|
58
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
59
|
+
@name = args[:name] if args.key?(:name)
|
60
|
+
@state = args[:state] if args.key?(:state)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
25
64
|
# AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/
|
26
65
|
# general/latest/gr/aws-security-credentials.html)). For information on our data
|
27
66
|
# retention policy for user credentials, see [User credentials](/storage-
|
@@ -76,13 +115,12 @@ module Google
|
|
76
115
|
# @return [String]
|
77
116
|
attr_accessor :path
|
78
117
|
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
85
|
-
# GoogleServiceAccount for this project.
|
118
|
+
# The Amazon Resource Name (ARN) of the role to support temporary credentials
|
119
|
+
# via `AssumeRoleWithWebIdentity`. For more information about ARNs, see [IAM
|
120
|
+
# ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.
|
121
|
+
# html#identifiers-arns). When a role ARN is provided, Transfer Service fetches
|
122
|
+
# temporary credentials for the session using a `AssumeRoleWithWebIdentity` call
|
123
|
+
# for the provided role using the GoogleServiceAccount for this project.
|
86
124
|
# Corresponds to the JSON property `roleArn`
|
87
125
|
# @return [String]
|
88
126
|
attr_accessor :role_arn
|
@@ -173,6 +211,26 @@ module Google
|
|
173
211
|
end
|
174
212
|
end
|
175
213
|
|
214
|
+
# Specifies the BandwidthLimit to describe the non-negative bandwidth rate in
|
215
|
+
# mbps for the agent pool.
|
216
|
+
class BandwidthLimit
|
217
|
+
include Google::Apis::Core::Hashable
|
218
|
+
|
219
|
+
# Specifies bandwidth rate in mbps distributed across all the agents in the pool.
|
220
|
+
# Corresponds to the JSON property `limitMbps`
|
221
|
+
# @return [Fixnum]
|
222
|
+
attr_accessor :limit_mbps
|
223
|
+
|
224
|
+
def initialize(**args)
|
225
|
+
update!(**args)
|
226
|
+
end
|
227
|
+
|
228
|
+
# Update properties of this object
|
229
|
+
def update!(**args)
|
230
|
+
@limit_mbps = args[:limit_mbps] if args.key?(:limit_mbps)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
176
234
|
# The request message for Operations.CancelOperation.
|
177
235
|
class CancelOperationRequest
|
178
236
|
include Google::Apis::Core::Hashable
|
@@ -400,6 +458,31 @@ module Google
|
|
400
458
|
end
|
401
459
|
end
|
402
460
|
|
461
|
+
# Response from ListAgentPools.
|
462
|
+
class ListAgentPoolsResponse
|
463
|
+
include Google::Apis::Core::Hashable
|
464
|
+
|
465
|
+
# A list of agent pools.
|
466
|
+
# Corresponds to the JSON property `agentPools`
|
467
|
+
# @return [Array<Google::Apis::StoragetransferV1::AgentPool>]
|
468
|
+
attr_accessor :agent_pools
|
469
|
+
|
470
|
+
# The list next page token.
|
471
|
+
# Corresponds to the JSON property `nextPageToken`
|
472
|
+
# @return [String]
|
473
|
+
attr_accessor :next_page_token
|
474
|
+
|
475
|
+
def initialize(**args)
|
476
|
+
update!(**args)
|
477
|
+
end
|
478
|
+
|
479
|
+
# Update properties of this object
|
480
|
+
def update!(**args)
|
481
|
+
@agent_pools = args[:agent_pools] if args.key?(:agent_pools)
|
482
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
483
|
+
end
|
484
|
+
end
|
485
|
+
|
403
486
|
# The response message for Operations.ListOperations.
|
404
487
|
class ListOperationsResponse
|
405
488
|
include Google::Apis::Core::Hashable
|
@@ -450,6 +533,28 @@ module Google
|
|
450
533
|
end
|
451
534
|
end
|
452
535
|
|
536
|
+
# Logging configuration.
|
537
|
+
class LoggingConfig
|
538
|
+
include Google::Apis::Core::Hashable
|
539
|
+
|
540
|
+
# Enables the Cloud Storage transfer logs for this transfer. This is only
|
541
|
+
# supported for transfer jobs with PosixFilesystem sources. The default is that
|
542
|
+
# logs are not generated for this transfer.
|
543
|
+
# Corresponds to the JSON property `enableOnpremGcsTransferLogs`
|
544
|
+
# @return [Boolean]
|
545
|
+
attr_accessor :enable_onprem_gcs_transfer_logs
|
546
|
+
alias_method :enable_onprem_gcs_transfer_logs?, :enable_onprem_gcs_transfer_logs
|
547
|
+
|
548
|
+
def initialize(**args)
|
549
|
+
update!(**args)
|
550
|
+
end
|
551
|
+
|
552
|
+
# Update properties of this object
|
553
|
+
def update!(**args)
|
554
|
+
@enable_onprem_gcs_transfer_logs = args[:enable_onprem_gcs_transfer_logs] if args.key?(:enable_onprem_gcs_transfer_logs)
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
453
558
|
# Specification to configure notifications published to Pub/Sub. Notifications
|
454
559
|
# are published to the customer-provided topic using the following `
|
455
560
|
# PubsubMessage.attributes`: * `"eventType"`: one of the EventType values * `"
|
@@ -497,7 +602,8 @@ module Google
|
|
497
602
|
# refers to the time of the last change to the object's content or metadata —
|
498
603
|
# specifically, this is the `updated` property of Cloud Storage objects, the `
|
499
604
|
# LastModified` field of S3 objects, and the `Last-Modified` header of Azure
|
500
|
-
# blobs.
|
605
|
+
# blobs. Transfers that use PosixFilesystem and have a Cloud Storage source don'
|
606
|
+
# t support `ObjectConditions`.
|
501
607
|
class ObjectConditions
|
502
608
|
include Google::Apis::Core::Hashable
|
503
609
|
|
@@ -664,6 +770,25 @@ module Google
|
|
664
770
|
end
|
665
771
|
end
|
666
772
|
|
773
|
+
# A POSIX filesystem resource.
|
774
|
+
class PosixFilesystem
|
775
|
+
include Google::Apis::Core::Hashable
|
776
|
+
|
777
|
+
# Root directory path to the filesystem.
|
778
|
+
# Corresponds to the JSON property `rootDirectory`
|
779
|
+
# @return [String]
|
780
|
+
attr_accessor :root_directory
|
781
|
+
|
782
|
+
def initialize(**args)
|
783
|
+
update!(**args)
|
784
|
+
end
|
785
|
+
|
786
|
+
# Update properties of this object
|
787
|
+
def update!(**args)
|
788
|
+
@root_directory = args[:root_directory] if args.key?(:root_directory)
|
789
|
+
end
|
790
|
+
end
|
791
|
+
|
667
792
|
# Request passed to ResumeTransferOperation.
|
668
793
|
class ResumeTransferOperationRequest
|
669
794
|
include Google::Apis::Core::Hashable
|
@@ -886,6 +1011,38 @@ module Google
|
|
886
1011
|
# @return [Fixnum]
|
887
1012
|
attr_accessor :bytes_from_source_skipped_by_sync
|
888
1013
|
|
1014
|
+
# For transfers involving PosixFilesystem only. Number of listing failures for
|
1015
|
+
# each directory found at the source. Potential failures when listing a
|
1016
|
+
# directory include permission failure or block failure. If listing a directory
|
1017
|
+
# fails, no files in the directory are transferred.
|
1018
|
+
# Corresponds to the JSON property `directoriesFailedToListFromSource`
|
1019
|
+
# @return [Fixnum]
|
1020
|
+
attr_accessor :directories_failed_to_list_from_source
|
1021
|
+
|
1022
|
+
# For transfers involving PosixFilesystem only. Number of directories found
|
1023
|
+
# while listing. For example, if the root directory of the transfer is `base/`
|
1024
|
+
# and there are two other directories, `a/` and `b/` under this directory, the
|
1025
|
+
# count after listing `base/`, `base/a/` and `base/b/` is 3.
|
1026
|
+
# Corresponds to the JSON property `directoriesFoundFromSource`
|
1027
|
+
# @return [Fixnum]
|
1028
|
+
attr_accessor :directories_found_from_source
|
1029
|
+
|
1030
|
+
# For transfers involving PosixFilesystem only. Number of successful listings
|
1031
|
+
# for each directory found at the source.
|
1032
|
+
# Corresponds to the JSON property `directoriesSuccessfullyListedFromSource`
|
1033
|
+
# @return [Fixnum]
|
1034
|
+
attr_accessor :directories_successfully_listed_from_source
|
1035
|
+
|
1036
|
+
# Number of successfully cleaned up intermediate objects.
|
1037
|
+
# Corresponds to the JSON property `intermediateObjectsCleanedUp`
|
1038
|
+
# @return [Fixnum]
|
1039
|
+
attr_accessor :intermediate_objects_cleaned_up
|
1040
|
+
|
1041
|
+
# Number of intermediate objects failed cleaned up.
|
1042
|
+
# Corresponds to the JSON property `intermediateObjectsFailedCleanedUp`
|
1043
|
+
# @return [Fixnum]
|
1044
|
+
attr_accessor :intermediate_objects_failed_cleaned_up
|
1045
|
+
|
889
1046
|
# Objects that are copied to the data sink.
|
890
1047
|
# Corresponds to the JSON property `objectsCopiedToSink`
|
891
1048
|
# @return [Fixnum]
|
@@ -944,6 +1101,11 @@ module Google
|
|
944
1101
|
@bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink)
|
945
1102
|
@bytes_from_source_failed = args[:bytes_from_source_failed] if args.key?(:bytes_from_source_failed)
|
946
1103
|
@bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
|
1104
|
+
@directories_failed_to_list_from_source = args[:directories_failed_to_list_from_source] if args.key?(:directories_failed_to_list_from_source)
|
1105
|
+
@directories_found_from_source = args[:directories_found_from_source] if args.key?(:directories_found_from_source)
|
1106
|
+
@directories_successfully_listed_from_source = args[:directories_successfully_listed_from_source] if args.key?(:directories_successfully_listed_from_source)
|
1107
|
+
@intermediate_objects_cleaned_up = args[:intermediate_objects_cleaned_up] if args.key?(:intermediate_objects_cleaned_up)
|
1108
|
+
@intermediate_objects_failed_cleaned_up = args[:intermediate_objects_failed_cleaned_up] if args.key?(:intermediate_objects_failed_cleaned_up)
|
947
1109
|
@objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
|
948
1110
|
@objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
|
949
1111
|
@objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
|
@@ -987,6 +1149,11 @@ module Google
|
|
987
1149
|
# @return [String]
|
988
1150
|
attr_accessor :latest_operation_name
|
989
1151
|
|
1152
|
+
# Logging configuration.
|
1153
|
+
# Corresponds to the JSON property `loggingConfig`
|
1154
|
+
# @return [Google::Apis::StoragetransferV1::LoggingConfig]
|
1155
|
+
attr_accessor :logging_config
|
1156
|
+
|
990
1157
|
# A unique name (within the transfer project) assigned when the job is created.
|
991
1158
|
# If this field is empty in a CreateTransferJobRequest, Storage Transfer Service
|
992
1159
|
# assigns a unique name. Otherwise, the specified name is used as the unique
|
@@ -994,13 +1161,12 @@ module Google
|
|
994
1161
|
# request fails with an ALREADY_EXISTS error. This name must start with `"
|
995
1162
|
# transferJobs/"` prefix and end with a letter or a number, and should be no
|
996
1163
|
# more than 128 characters. For transfers involving PosixFilesystem, this name
|
997
|
-
# must start with
|
998
|
-
# this name must not start with
|
999
|
-
#
|
1000
|
-
# transferJobs
|
1001
|
-
#
|
1002
|
-
#
|
1003
|
-
# with an INVALID_ARGUMENT error.
|
1164
|
+
# must start with `transferJobs/OPI` specifically. For all other transfer types,
|
1165
|
+
# this name must not start with `transferJobs/OPI`. Non-PosixFilesystem example:
|
1166
|
+
# `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` PosixFilesystem example:
|
1167
|
+
# `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` Applications must not rely
|
1168
|
+
# on the enforcement of naming requirements involving OPI. Invalid job names
|
1169
|
+
# fail with an INVALID_ARGUMENT error.
|
1004
1170
|
# Corresponds to the JSON property `name`
|
1005
1171
|
# @return [String]
|
1006
1172
|
attr_accessor :name
|
@@ -1053,6 +1219,7 @@ module Google
|
|
1053
1219
|
@description = args[:description] if args.key?(:description)
|
1054
1220
|
@last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time)
|
1055
1221
|
@latest_operation_name = args[:latest_operation_name] if args.key?(:latest_operation_name)
|
1222
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
1056
1223
|
@name = args[:name] if args.key?(:name)
|
1057
1224
|
@notification_config = args[:notification_config] if args.key?(:notification_config)
|
1058
1225
|
@project_id = args[:project_id] if args.key?(:project_id)
|
@@ -1250,11 +1417,17 @@ module Google
|
|
1250
1417
|
# refers to the time of the last change to the object's content or metadata —
|
1251
1418
|
# specifically, this is the `updated` property of Cloud Storage objects, the `
|
1252
1419
|
# LastModified` field of S3 objects, and the `Last-Modified` header of Azure
|
1253
|
-
# blobs.
|
1420
|
+
# blobs. Transfers that use PosixFilesystem and have a Cloud Storage source don'
|
1421
|
+
# t support `ObjectConditions`.
|
1254
1422
|
# Corresponds to the JSON property `objectConditions`
|
1255
1423
|
# @return [Google::Apis::StoragetransferV1::ObjectConditions]
|
1256
1424
|
attr_accessor :object_conditions
|
1257
1425
|
|
1426
|
+
# A POSIX filesystem resource.
|
1427
|
+
# Corresponds to the JSON property `posixDataSource`
|
1428
|
+
# @return [Google::Apis::StoragetransferV1::PosixFilesystem]
|
1429
|
+
attr_accessor :posix_data_source
|
1430
|
+
|
1258
1431
|
# TransferOptions define the actions to be performed on objects in a transfer.
|
1259
1432
|
# Corresponds to the JSON property `transferOptions`
|
1260
1433
|
# @return [Google::Apis::StoragetransferV1::TransferOptions]
|
@@ -1272,6 +1445,7 @@ module Google
|
|
1272
1445
|
@gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
|
1273
1446
|
@http_data_source = args[:http_data_source] if args.key?(:http_data_source)
|
1274
1447
|
@object_conditions = args[:object_conditions] if args.key?(:object_conditions)
|
1448
|
+
@posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
|
1275
1449
|
@transfer_options = args[:transfer_options] if args.key?(:transfer_options)
|
1276
1450
|
end
|
1277
1451
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module StoragetransferV1
|
18
18
|
# Version of the google-apis-storagetransfer_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.16.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 = "20211018"
|
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
|
|
@@ -106,6 +124,12 @@ module Google
|
|
106
124
|
include Google::Apis::Core::JsonObjectSupport
|
107
125
|
end
|
108
126
|
|
127
|
+
class LoggingConfig
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
109
133
|
class NotificationConfig
|
110
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
135
|
|
@@ -130,6 +154,12 @@ module Google
|
|
130
154
|
include Google::Apis::Core::JsonObjectSupport
|
131
155
|
end
|
132
156
|
|
157
|
+
class PosixFilesystem
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
133
163
|
class ResumeTransferOperationRequest
|
134
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
165
|
|
@@ -196,6 +226,17 @@ module Google
|
|
196
226
|
include Google::Apis::Core::JsonObjectSupport
|
197
227
|
end
|
198
228
|
|
229
|
+
class AgentPool
|
230
|
+
# @private
|
231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
232
|
+
property :bandwidth_limit, as: 'bandwidthLimit', class: Google::Apis::StoragetransferV1::BandwidthLimit, decorator: Google::Apis::StoragetransferV1::BandwidthLimit::Representation
|
233
|
+
|
234
|
+
property :display_name, as: 'displayName'
|
235
|
+
property :name, as: 'name'
|
236
|
+
property :state, as: 'state'
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
199
240
|
class AwsAccessKey
|
200
241
|
# @private
|
201
242
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -233,6 +274,13 @@ module Google
|
|
233
274
|
end
|
234
275
|
end
|
235
276
|
|
277
|
+
class BandwidthLimit
|
278
|
+
# @private
|
279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
+
property :limit_mbps, :numeric_string => true, as: 'limitMbps'
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
236
284
|
class CancelOperationRequest
|
237
285
|
# @private
|
238
286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -295,6 +343,15 @@ module Google
|
|
295
343
|
end
|
296
344
|
end
|
297
345
|
|
346
|
+
class ListAgentPoolsResponse
|
347
|
+
# @private
|
348
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
349
|
+
collection :agent_pools, as: 'agentPools', class: Google::Apis::StoragetransferV1::AgentPool, decorator: Google::Apis::StoragetransferV1::AgentPool::Representation
|
350
|
+
|
351
|
+
property :next_page_token, as: 'nextPageToken'
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
298
355
|
class ListOperationsResponse
|
299
356
|
# @private
|
300
357
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -313,6 +370,13 @@ module Google
|
|
313
370
|
end
|
314
371
|
end
|
315
372
|
|
373
|
+
class LoggingConfig
|
374
|
+
# @private
|
375
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
376
|
+
property :enable_onprem_gcs_transfer_logs, as: 'enableOnpremGcsTransferLogs'
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
316
380
|
class NotificationConfig
|
317
381
|
# @private
|
318
382
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -352,6 +416,13 @@ module Google
|
|
352
416
|
end
|
353
417
|
end
|
354
418
|
|
419
|
+
class PosixFilesystem
|
420
|
+
# @private
|
421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
422
|
+
property :root_directory, as: 'rootDirectory'
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
355
426
|
class ResumeTransferOperationRequest
|
356
427
|
# @private
|
357
428
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -410,6 +481,11 @@ module Google
|
|
410
481
|
property :bytes_found_only_from_sink, :numeric_string => true, as: 'bytesFoundOnlyFromSink'
|
411
482
|
property :bytes_from_source_failed, :numeric_string => true, as: 'bytesFromSourceFailed'
|
412
483
|
property :bytes_from_source_skipped_by_sync, :numeric_string => true, as: 'bytesFromSourceSkippedBySync'
|
484
|
+
property :directories_failed_to_list_from_source, :numeric_string => true, as: 'directoriesFailedToListFromSource'
|
485
|
+
property :directories_found_from_source, :numeric_string => true, as: 'directoriesFoundFromSource'
|
486
|
+
property :directories_successfully_listed_from_source, :numeric_string => true, as: 'directoriesSuccessfullyListedFromSource'
|
487
|
+
property :intermediate_objects_cleaned_up, :numeric_string => true, as: 'intermediateObjectsCleanedUp'
|
488
|
+
property :intermediate_objects_failed_cleaned_up, :numeric_string => true, as: 'intermediateObjectsFailedCleanedUp'
|
413
489
|
property :objects_copied_to_sink, :numeric_string => true, as: 'objectsCopiedToSink'
|
414
490
|
property :objects_deleted_from_sink, :numeric_string => true, as: 'objectsDeletedFromSink'
|
415
491
|
property :objects_deleted_from_source, :numeric_string => true, as: 'objectsDeletedFromSource'
|
@@ -429,6 +505,8 @@ module Google
|
|
429
505
|
property :description, as: 'description'
|
430
506
|
property :last_modification_time, as: 'lastModificationTime'
|
431
507
|
property :latest_operation_name, as: 'latestOperationName'
|
508
|
+
property :logging_config, as: 'loggingConfig', class: Google::Apis::StoragetransferV1::LoggingConfig, decorator: Google::Apis::StoragetransferV1::LoggingConfig::Representation
|
509
|
+
|
432
510
|
property :name, as: 'name'
|
433
511
|
property :notification_config, as: 'notificationConfig', class: Google::Apis::StoragetransferV1::NotificationConfig, decorator: Google::Apis::StoragetransferV1::NotificationConfig::Representation
|
434
512
|
|
@@ -485,6 +563,8 @@ module Google
|
|
485
563
|
|
486
564
|
property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
|
487
565
|
|
566
|
+
property :posix_data_source, as: 'posixDataSource', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
|
567
|
+
|
488
568
|
property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
|
489
569
|
|
490
570
|
end
|
@@ -87,6 +87,189 @@ 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 Platform Console project that owns the
|
93
|
+
# agent pool.
|
94
|
+
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
95
|
+
# @param [String] agent_pool_id
|
96
|
+
# Required. The id of the agent pool to create. The agent_pool_id must be non-
|
97
|
+
# empty, less than or equal to 128 characters, and satisfy the following regex: "
|
98
|
+
# ^[a-z]([a-z0-9-._~]*[a-z0-9])?$". Also, agent pool names cannot start with the
|
99
|
+
# string "goog".
|
100
|
+
# @param [String] fields
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
102
|
+
# @param [String] quota_user
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
105
|
+
# @param [Google::Apis::RequestOptions] options
|
106
|
+
# Request-specific options
|
107
|
+
#
|
108
|
+
# @yield [result, err] Result & error if block supplied
|
109
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::AgentPool] parsed result object
|
110
|
+
# @yieldparam err [StandardError] error object if request failed
|
111
|
+
#
|
112
|
+
# @return [Google::Apis::StoragetransferV1::AgentPool]
|
113
|
+
#
|
114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
+
def create_project_agent_pool(project_id, agent_pool_object = nil, agent_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
118
|
+
command = make_simple_command(:post, 'v1/projects/{+projectId}/agentPools', options)
|
119
|
+
command.request_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
120
|
+
command.request_object = agent_pool_object
|
121
|
+
command.response_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
122
|
+
command.response_class = Google::Apis::StoragetransferV1::AgentPool
|
123
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
124
|
+
command.query['agentPoolId'] = agent_pool_id unless agent_pool_id.nil?
|
125
|
+
command.query['fields'] = fields unless fields.nil?
|
126
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
127
|
+
execute_or_queue_command(command, &block)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deletes an agent pool.
|
131
|
+
# @param [String] name
|
132
|
+
# Required. The agent pool name to delete.
|
133
|
+
# @param [String] fields
|
134
|
+
# Selector specifying which fields to include in a partial response.
|
135
|
+
# @param [String] quota_user
|
136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
+
# @param [Google::Apis::RequestOptions] options
|
139
|
+
# Request-specific options
|
140
|
+
#
|
141
|
+
# @yield [result, err] Result & error if block supplied
|
142
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object
|
143
|
+
# @yieldparam err [StandardError] error object if request failed
|
144
|
+
#
|
145
|
+
# @return [Google::Apis::StoragetransferV1::Empty]
|
146
|
+
#
|
147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
+
def delete_project_agent_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
152
|
+
command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
|
153
|
+
command.response_class = Google::Apis::StoragetransferV1::Empty
|
154
|
+
command.params['name'] = name unless name.nil?
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
+
execute_or_queue_command(command, &block)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Gets an agent pool.
|
161
|
+
# @param [String] name
|
162
|
+
# Required. The agent pool to get.
|
163
|
+
# @param [String] fields
|
164
|
+
# Selector specifying which fields to include in a partial response.
|
165
|
+
# @param [String] quota_user
|
166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
168
|
+
# @param [Google::Apis::RequestOptions] options
|
169
|
+
# Request-specific options
|
170
|
+
#
|
171
|
+
# @yield [result, err] Result & error if block supplied
|
172
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::AgentPool] parsed result object
|
173
|
+
# @yieldparam err [StandardError] error object if request failed
|
174
|
+
#
|
175
|
+
# @return [Google::Apis::StoragetransferV1::AgentPool]
|
176
|
+
#
|
177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
180
|
+
def get_project_agent_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
181
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
182
|
+
command.response_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
183
|
+
command.response_class = Google::Apis::StoragetransferV1::AgentPool
|
184
|
+
command.params['name'] = name unless name.nil?
|
185
|
+
command.query['fields'] = fields unless fields.nil?
|
186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
187
|
+
execute_or_queue_command(command, &block)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Lists agent pools.
|
191
|
+
# @param [String] project_id
|
192
|
+
# Required. The ID of the Google Cloud Platform Console project that owns the
|
193
|
+
# job.
|
194
|
+
# @param [String] filter
|
195
|
+
# A list of optional query parameters specified as JSON text in the form of: ``"
|
196
|
+
# agentPoolNames":["agentpool1","agentpool2",...]`` Since `agentPoolNames`
|
197
|
+
# support multiple values, its values must be specified with array notation. `
|
198
|
+
# agentPoolNames` is an optional field. The list returns all agent pools for the
|
199
|
+
# project when the filter is not provided or empty.
|
200
|
+
# @param [Fixnum] page_size
|
201
|
+
# The list page size. The max allowed value is 256.
|
202
|
+
# @param [String] page_token
|
203
|
+
# The list page token.
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
206
|
+
# @param [String] quota_user
|
207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
209
|
+
# @param [Google::Apis::RequestOptions] options
|
210
|
+
# Request-specific options
|
211
|
+
#
|
212
|
+
# @yield [result, err] Result & error if block supplied
|
213
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::ListAgentPoolsResponse] parsed result object
|
214
|
+
# @yieldparam err [StandardError] error object if request failed
|
215
|
+
#
|
216
|
+
# @return [Google::Apis::StoragetransferV1::ListAgentPoolsResponse]
|
217
|
+
#
|
218
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
+
def list_project_agent_pools(project_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:get, 'v1/projects/{+projectId}/agentPools', options)
|
223
|
+
command.response_representation = Google::Apis::StoragetransferV1::ListAgentPoolsResponse::Representation
|
224
|
+
command.response_class = Google::Apis::StoragetransferV1::ListAgentPoolsResponse
|
225
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
226
|
+
command.query['filter'] = filter unless filter.nil?
|
227
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
228
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
229
|
+
command.query['fields'] = fields unless fields.nil?
|
230
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
231
|
+
execute_or_queue_command(command, &block)
|
232
|
+
end
|
233
|
+
|
234
|
+
# Updates an existing agent pool resource.
|
235
|
+
# @param [String] name
|
236
|
+
# Required. Specifies a unique string that identifies the agent pool. Format:
|
237
|
+
# projects/`project_id`/agentPools/`agent_pool_id`
|
238
|
+
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
239
|
+
# @param [String] update_mask
|
240
|
+
# The field mask of the fields in `agentPool` that are to be updated in this
|
241
|
+
# request. Fields in `agentPool` that can be updated are: display_name,
|
242
|
+
# bandwidth_limit,
|
243
|
+
# @param [String] fields
|
244
|
+
# Selector specifying which fields to include in a partial response.
|
245
|
+
# @param [String] quota_user
|
246
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
247
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
248
|
+
# @param [Google::Apis::RequestOptions] options
|
249
|
+
# Request-specific options
|
250
|
+
#
|
251
|
+
# @yield [result, err] Result & error if block supplied
|
252
|
+
# @yieldparam result [Google::Apis::StoragetransferV1::AgentPool] parsed result object
|
253
|
+
# @yieldparam err [StandardError] error object if request failed
|
254
|
+
#
|
255
|
+
# @return [Google::Apis::StoragetransferV1::AgentPool]
|
256
|
+
#
|
257
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
258
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
259
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
260
|
+
def patch_project_agent_pool(name, agent_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
261
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
262
|
+
command.request_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
263
|
+
command.request_object = agent_pool_object
|
264
|
+
command.response_representation = Google::Apis::StoragetransferV1::AgentPool::Representation
|
265
|
+
command.response_class = Google::Apis::StoragetransferV1::AgentPool
|
266
|
+
command.params['name'] = name unless name.nil?
|
267
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
268
|
+
command.query['fields'] = fields unless fields.nil?
|
269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
270
|
+
execute_or_queue_command(command, &block)
|
271
|
+
end
|
272
|
+
|
90
273
|
# Creates a transfer job that runs periodically.
|
91
274
|
# @param [Google::Apis::StoragetransferV1::TransferJob] transfer_job_object
|
92
275
|
# @param [String] fields
|
@@ -119,7 +302,7 @@ module Google
|
|
119
302
|
|
120
303
|
# Gets a transfer job.
|
121
304
|
# @param [String] job_name
|
122
|
-
# Required.
|
305
|
+
# Required. The job to get.
|
123
306
|
# @param [String] project_id
|
124
307
|
# Required. The ID of the Google Cloud Platform Console project that owns the
|
125
308
|
# job.
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-storagetransfer_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.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-10-27 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.16.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:
|