google-apis-storagetransfer_v1 0.17.0 → 0.18.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 +4 -0
- data/lib/google/apis/storagetransfer_v1/classes.rb +51 -13
- data/lib/google/apis/storagetransfer_v1/gem_version.rb +2 -2
- data/lib/google/apis/storagetransfer_v1/representations.rb +17 -0
- data/lib/google/apis/storagetransfer_v1/service.rb +30 -29
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65b607b8f7d0e8a8b327553107169710f0d052c05241bc4ccacbc13632b69b26
|
4
|
+
data.tar.gz: 8e12775f35686fbad11c420670cc1d9961523e5cd6a57627db9f52f4f0d87b64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac42f9213be2551d265851a962243f25986667e638727f9648f5e559f8645399ff50c7b934623fefa873a40fc9b0223067a0be108b0ca7f84b8084f2c637d8b6
|
7
|
+
data.tar.gz: 20dc341becc0aa928e7e03b9b5318e42bf9c92197162b165264c144d2f21bb0566cf3731f84247e92d36f3bdbff0bcf12a1036a1d567fb73e247af8556898d8b
|
data/CHANGELOG.md
CHANGED
@@ -26,8 +26,7 @@ module Google
|
|
26
26
|
class AgentPool
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# Specifies
|
30
|
-
# mbps for the agent pool.
|
29
|
+
# Specifies a bandwidth limit for an agent pool.
|
31
30
|
# Corresponds to the JSON property `bandwidthLimit`
|
32
31
|
# @return [Google::Apis::StoragetransferV1::BandwidthLimit]
|
33
32
|
attr_accessor :bandwidth_limit
|
@@ -37,8 +36,8 @@ module Google
|
|
37
36
|
# @return [String]
|
38
37
|
attr_accessor :display_name
|
39
38
|
|
40
|
-
# Required. Specifies a unique string that identifies the agent pool. Format:
|
41
|
-
# projects/`project_id`/agentPools/`agent_pool_id
|
39
|
+
# Required. Specifies a unique string that identifies the agent pool. Format: `
|
40
|
+
# projects/`project_id`/agentPools/`agent_pool_id``
|
42
41
|
# Corresponds to the JSON property `name`
|
43
42
|
# @return [String]
|
44
43
|
attr_accessor :name
|
@@ -211,12 +210,12 @@ module Google
|
|
211
210
|
end
|
212
211
|
end
|
213
212
|
|
214
|
-
# Specifies
|
215
|
-
# mbps for the agent pool.
|
213
|
+
# Specifies a bandwidth limit for an agent pool.
|
216
214
|
class BandwidthLimit
|
217
215
|
include Google::Apis::Core::Hashable
|
218
216
|
|
219
|
-
#
|
217
|
+
# Bandwidth rate in megabytes per second, distributed across all the agents in
|
218
|
+
# the pool.
|
220
219
|
# Corresponds to the JSON property `limitMbps`
|
221
220
|
# @return [Fixnum]
|
222
221
|
attr_accessor :limit_mbps
|
@@ -545,6 +544,18 @@ module Google
|
|
545
544
|
attr_accessor :enable_onprem_gcs_transfer_logs
|
546
545
|
alias_method :enable_onprem_gcs_transfer_logs?, :enable_onprem_gcs_transfer_logs
|
547
546
|
|
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.
|
549
|
+
# Corresponds to the JSON property `logActionStates`
|
550
|
+
# @return [Array<String>]
|
551
|
+
attr_accessor :log_action_states
|
552
|
+
|
553
|
+
# Actions to be logged. If empty, no logs are generated. This is not yet
|
554
|
+
# supported for transfers with PosixFilesystem data sources.
|
555
|
+
# Corresponds to the JSON property `logActions`
|
556
|
+
# @return [Array<String>]
|
557
|
+
attr_accessor :log_actions
|
558
|
+
|
548
559
|
def initialize(**args)
|
549
560
|
update!(**args)
|
550
561
|
end
|
@@ -552,6 +563,8 @@ module Google
|
|
552
563
|
# Update properties of this object
|
553
564
|
def update!(**args)
|
554
565
|
@enable_onprem_gcs_transfer_logs = args[:enable_onprem_gcs_transfer_logs] if args.key?(:enable_onprem_gcs_transfer_logs)
|
566
|
+
@log_action_states = args[:log_action_states] if args.key?(:log_action_states)
|
567
|
+
@log_actions = args[:log_actions] if args.key?(:log_actions)
|
555
568
|
end
|
556
569
|
end
|
557
570
|
|
@@ -806,8 +819,7 @@ module Google
|
|
806
819
|
class RunTransferJobRequest
|
807
820
|
include Google::Apis::Core::Hashable
|
808
821
|
|
809
|
-
# Required. The ID of the Google Cloud
|
810
|
-
# transfer job.
|
822
|
+
# Required. The ID of the Google Cloud project that owns the transfer job.
|
811
823
|
# Corresponds to the JSON property `projectId`
|
812
824
|
# @return [String]
|
813
825
|
attr_accessor :project_id
|
@@ -1184,7 +1196,7 @@ module Google
|
|
1184
1196
|
# @return [Google::Apis::StoragetransferV1::NotificationConfig]
|
1185
1197
|
attr_accessor :notification_config
|
1186
1198
|
|
1187
|
-
# The ID of the Google Cloud
|
1199
|
+
# The ID of the Google Cloud project that owns the job.
|
1188
1200
|
# Corresponds to the JSON property `projectId`
|
1189
1201
|
# @return [String]
|
1190
1202
|
attr_accessor :project_id
|
@@ -1229,6 +1241,27 @@ module Google
|
|
1229
1241
|
end
|
1230
1242
|
end
|
1231
1243
|
|
1244
|
+
# Specifies where the manifest is located.
|
1245
|
+
class TransferManifest
|
1246
|
+
include Google::Apis::Core::Hashable
|
1247
|
+
|
1248
|
+
# Specifies the path to the manifest in Cloud Storage. The Google-managed
|
1249
|
+
# service account for the transfer must have `storage.objects.get` permission
|
1250
|
+
# for this object. An example path is `gs://bucket_name/path/manifest.csv`.
|
1251
|
+
# Corresponds to the JSON property `location`
|
1252
|
+
# @return [String]
|
1253
|
+
attr_accessor :location
|
1254
|
+
|
1255
|
+
def initialize(**args)
|
1256
|
+
update!(**args)
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
# Update properties of this object
|
1260
|
+
def update!(**args)
|
1261
|
+
@location = args[:location] if args.key?(:location)
|
1262
|
+
end
|
1263
|
+
end
|
1264
|
+
|
1232
1265
|
# A description of the execution of a transfer.
|
1233
1266
|
class TransferOperation
|
1234
1267
|
include Google::Apis::Core::Hashable
|
@@ -1266,7 +1299,7 @@ module Google
|
|
1266
1299
|
# @return [Google::Apis::StoragetransferV1::NotificationConfig]
|
1267
1300
|
attr_accessor :notification_config
|
1268
1301
|
|
1269
|
-
# The ID of the Google Cloud
|
1302
|
+
# The ID of the Google Cloud project that owns the operation.
|
1270
1303
|
# Corresponds to the JSON property `projectId`
|
1271
1304
|
# @return [String]
|
1272
1305
|
attr_accessor :project_id
|
@@ -1445,6 +1478,11 @@ module Google
|
|
1445
1478
|
# @return [String]
|
1446
1479
|
attr_accessor :source_agent_pool_name
|
1447
1480
|
|
1481
|
+
# Specifies where the manifest is located.
|
1482
|
+
# Corresponds to the JSON property `transferManifest`
|
1483
|
+
# @return [Google::Apis::StoragetransferV1::TransferManifest]
|
1484
|
+
attr_accessor :transfer_manifest
|
1485
|
+
|
1448
1486
|
# TransferOptions define the actions to be performed on objects in a transfer.
|
1449
1487
|
# Corresponds to the JSON property `transferOptions`
|
1450
1488
|
# @return [Google::Apis::StoragetransferV1::TransferOptions]
|
@@ -1466,6 +1504,7 @@ module Google
|
|
1466
1504
|
@posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
|
1467
1505
|
@sink_agent_pool_name = args[:sink_agent_pool_name] if args.key?(:sink_agent_pool_name)
|
1468
1506
|
@source_agent_pool_name = args[:source_agent_pool_name] if args.key?(:source_agent_pool_name)
|
1507
|
+
@transfer_manifest = args[:transfer_manifest] if args.key?(:transfer_manifest)
|
1469
1508
|
@transfer_options = args[:transfer_options] if args.key?(:transfer_options)
|
1470
1509
|
end
|
1471
1510
|
end
|
@@ -1474,8 +1513,7 @@ module Google
|
|
1474
1513
|
class UpdateTransferJobRequest
|
1475
1514
|
include Google::Apis::Core::Hashable
|
1476
1515
|
|
1477
|
-
# Required. The ID of the Google Cloud
|
1478
|
-
# job.
|
1516
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
1479
1517
|
# Corresponds to the JSON property `projectId`
|
1480
1518
|
# @return [String]
|
1481
1519
|
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.18.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 = "20211130"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -202,6 +202,12 @@ module Google
|
|
202
202
|
include Google::Apis::Core::JsonObjectSupport
|
203
203
|
end
|
204
204
|
|
205
|
+
class TransferManifest
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
205
211
|
class TransferOperation
|
206
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
213
|
|
@@ -374,6 +380,8 @@ module Google
|
|
374
380
|
# @private
|
375
381
|
class Representation < Google::Apis::Core::JsonRepresentation
|
376
382
|
property :enable_onprem_gcs_transfer_logs, as: 'enableOnpremGcsTransferLogs'
|
383
|
+
collection :log_action_states, as: 'logActionStates'
|
384
|
+
collection :log_actions, as: 'logActions'
|
377
385
|
end
|
378
386
|
end
|
379
387
|
|
@@ -519,6 +527,13 @@ module Google
|
|
519
527
|
end
|
520
528
|
end
|
521
529
|
|
530
|
+
class TransferManifest
|
531
|
+
# @private
|
532
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
533
|
+
property :location, as: 'location'
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
522
537
|
class TransferOperation
|
523
538
|
# @private
|
524
539
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -569,6 +584,8 @@ module Google
|
|
569
584
|
|
570
585
|
property :sink_agent_pool_name, as: 'sinkAgentPoolName'
|
571
586
|
property :source_agent_pool_name, as: 'sourceAgentPoolName'
|
587
|
+
property :transfer_manifest, as: 'transferManifest', class: Google::Apis::StoragetransferV1::TransferManifest, decorator: Google::Apis::StoragetransferV1::TransferManifest::Representation
|
588
|
+
|
572
589
|
property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
|
573
590
|
|
574
591
|
end
|
@@ -52,14 +52,14 @@ module Google
|
|
52
52
|
|
53
53
|
# Returns the Google service account that is used by Storage Transfer Service to
|
54
54
|
# access buckets in the project where transfers run or in other projects. Each
|
55
|
-
# Google service account is associated with one Google Cloud
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
55
|
+
# Google service account is associated with one Google Cloud project. Users
|
56
|
+
# should add this service account to the Google Cloud Storage bucket ACLs to
|
57
|
+
# grant access to Storage Transfer Service. This service account is created and
|
58
|
+
# owned by Storage Transfer Service and can only be used by Storage Transfer
|
59
|
+
# Service.
|
60
60
|
# @param [String] project_id
|
61
|
-
# Required. The ID of the Google Cloud
|
62
|
-
#
|
61
|
+
# Required. The ID of the Google Cloud project that the Google service account
|
62
|
+
# is associated with.
|
63
63
|
# @param [String] fields
|
64
64
|
# Selector specifying which fields to include in a partial response.
|
65
65
|
# @param [String] quota_user
|
@@ -89,14 +89,16 @@ module Google
|
|
89
89
|
|
90
90
|
# Creates an agent pool resource.
|
91
91
|
# @param [String] project_id
|
92
|
-
# Required. The ID of the Google Cloud
|
93
|
-
# agent pool.
|
92
|
+
# Required. The ID of the Google Cloud project that owns the agent pool.
|
94
93
|
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
95
94
|
# @param [String] agent_pool_id
|
96
|
-
# Required. The
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
95
|
+
# Required. The ID of the agent pool to create. The `agent_pool_id` must meet
|
96
|
+
# the following requirements: * Length of 128 characters or less. * Not start
|
97
|
+
# with the string `goog`. * Start with a lowercase ASCII character, followed by:
|
98
|
+
# * Zero or more: lowercase Latin alphabet characters, numerals, hyphens (`-`),
|
99
|
+
# periods (`.`), underscores (`_`), or tildes (`~`). * One or more numerals or
|
100
|
+
# lowercase ASCII characters. As expressed by the regular expression: `^(?!goog)[
|
101
|
+
# a-z]([a-z0-9-._~]*[a-z0-9])?$`.
|
100
102
|
# @param [String] fields
|
101
103
|
# Selector specifying which fields to include in a partial response.
|
102
104
|
# @param [String] quota_user
|
@@ -129,7 +131,7 @@ module Google
|
|
129
131
|
|
130
132
|
# Deletes an agent pool.
|
131
133
|
# @param [String] name
|
132
|
-
# Required. The agent pool
|
134
|
+
# Required. The name of the agent pool to delete.
|
133
135
|
# @param [String] fields
|
134
136
|
# Selector specifying which fields to include in a partial response.
|
135
137
|
# @param [String] quota_user
|
@@ -159,7 +161,7 @@ module Google
|
|
159
161
|
|
160
162
|
# Gets an agent pool.
|
161
163
|
# @param [String] name
|
162
|
-
# Required. The agent pool to get.
|
164
|
+
# Required. The name of the agent pool to get.
|
163
165
|
# @param [String] fields
|
164
166
|
# Selector specifying which fields to include in a partial response.
|
165
167
|
# @param [String] quota_user
|
@@ -189,16 +191,15 @@ module Google
|
|
189
191
|
|
190
192
|
# Lists agent pools.
|
191
193
|
# @param [String] project_id
|
192
|
-
# Required. The ID of the Google Cloud
|
193
|
-
# job.
|
194
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
194
195
|
# @param [String] filter
|
195
|
-
#
|
196
|
+
# An optional list of query parameters specified as JSON text in the form of: ``"
|
196
197
|
# agentPoolNames":["agentpool1","agentpool2",...]`` Since `agentPoolNames`
|
197
|
-
# support multiple values, its values must be specified with array notation.
|
198
|
-
#
|
199
|
-
#
|
198
|
+
# support multiple values, its values must be specified with array notation.
|
199
|
+
# When the filter is either empty or not provided, the list returns all agent
|
200
|
+
# pools for the project.
|
200
201
|
# @param [Fixnum] page_size
|
201
|
-
# The list page size. The max allowed value is 256
|
202
|
+
# The list page size. The max allowed value is `256`.
|
202
203
|
# @param [String] page_token
|
203
204
|
# The list page token.
|
204
205
|
# @param [String] fields
|
@@ -233,13 +234,14 @@ module Google
|
|
233
234
|
|
234
235
|
# Updates an existing agent pool resource.
|
235
236
|
# @param [String] name
|
236
|
-
# Required. Specifies a unique string that identifies the agent pool. Format:
|
237
|
-
# projects/`project_id`/agentPools/`agent_pool_id
|
237
|
+
# Required. Specifies a unique string that identifies the agent pool. Format: `
|
238
|
+
# projects/`project_id`/agentPools/`agent_pool_id``
|
238
239
|
# @param [Google::Apis::StoragetransferV1::AgentPool] agent_pool_object
|
239
240
|
# @param [String] update_mask
|
240
|
-
# The field mask
|
241
|
-
#
|
242
|
-
#
|
241
|
+
# The [field mask] (https://developers.google.com/protocol-buffers/docs/
|
242
|
+
# reference/google.protobuf) of the fields in `agentPool` to update in this
|
243
|
+
# request. The following `agentPool` fields can be updated: * display_name *
|
244
|
+
# bandwidth_limit
|
243
245
|
# @param [String] fields
|
244
246
|
# Selector specifying which fields to include in a partial response.
|
245
247
|
# @param [String] quota_user
|
@@ -304,8 +306,7 @@ module Google
|
|
304
306
|
# @param [String] job_name
|
305
307
|
# Required. The job to get.
|
306
308
|
# @param [String] project_id
|
307
|
-
# Required. The ID of the Google Cloud
|
308
|
-
# job.
|
309
|
+
# Required. The ID of the Google Cloud project that owns the job.
|
309
310
|
# @param [String] fields
|
310
311
|
# Selector specifying which fields to include in a partial response.
|
311
312
|
# @param [String] quota_user
|
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.18.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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storagetransfer_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.18.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: []
|