google-apis-storagetransfer_v1 0.14.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afb5910367ba17053411ea0d1979549041043a63fcad7f11e91595d83b647e38
4
- data.tar.gz: ee8f8f610f94005b468f9bf5513063e105171a935435237fb5c8ca1208cf8629
3
+ metadata.gz: 65b607b8f7d0e8a8b327553107169710f0d052c05241bc4ccacbc13632b69b26
4
+ data.tar.gz: 8e12775f35686fbad11c420670cc1d9961523e5cd6a57627db9f52f4f0d87b64
5
5
  SHA512:
6
- metadata.gz: 9cc0297804c1e61f376ef84d446dce5d7d37ab70649858e7e4dcbcf1576886788b0f8b7660af9983fef21aaad1ca049b42ccf04ec725db9cbea188a47af95198
7
- data.tar.gz: cdf849955bc0d656ef0ffc55c604f309d1cd9dc3b34bc8a91819f2a0071a835d493556615c79c1556b4b1d0f0eab708ca7310fed7cda72feca14fe318e64daf8
6
+ metadata.gz: ac42f9213be2551d265851a962243f25986667e638727f9648f5e559f8645399ff50c7b934623fefa873a40fc9b0223067a0be108b0ca7f84b8084f2c637d8b6
7
+ data.tar.gz: 20dc341becc0aa928e7e03b9b5318e42bf9c92197162b165264c144d2f21bb0566cf3731f84247e92d36f3bdbff0bcf12a1036a1d567fb73e247af8556898d8b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-storagetransfer_v1
2
2
 
3
+ ### v0.18.0 (2021-12-02)
4
+
5
+ * Regenerated from discovery document revision 20211130
6
+
7
+ ### v0.17.0 (2021-11-06)
8
+
9
+ * Regenerated from discovery document revision 20211105
10
+
11
+ ### v0.16.0 (2021-10-20)
12
+
13
+ * Regenerated from discovery document revision 20211018
14
+
15
+ ### v0.15.0 (2021-09-21)
16
+
17
+ * Regenerated from discovery document revision 20210918
18
+
3
19
  ### v0.14.0 (2021-08-20)
4
20
 
5
21
  * Regenerated from discovery document revision 20210812
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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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-
@@ -172,6 +210,26 @@ module Google
172
210
  end
173
211
  end
174
212
 
213
+ # Specifies a bandwidth limit for an agent pool.
214
+ class BandwidthLimit
215
+ include Google::Apis::Core::Hashable
216
+
217
+ # Bandwidth rate in megabytes per second, distributed across all the agents in
218
+ # the pool.
219
+ # Corresponds to the JSON property `limitMbps`
220
+ # @return [Fixnum]
221
+ attr_accessor :limit_mbps
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @limit_mbps = args[:limit_mbps] if args.key?(:limit_mbps)
230
+ end
231
+ end
232
+
175
233
  # The request message for Operations.CancelOperation.
176
234
  class CancelOperationRequest
177
235
  include Google::Apis::Core::Hashable
@@ -399,6 +457,31 @@ module Google
399
457
  end
400
458
  end
401
459
 
460
+ # Response from ListAgentPools.
461
+ class ListAgentPoolsResponse
462
+ include Google::Apis::Core::Hashable
463
+
464
+ # A list of agent pools.
465
+ # Corresponds to the JSON property `agentPools`
466
+ # @return [Array<Google::Apis::StoragetransferV1::AgentPool>]
467
+ attr_accessor :agent_pools
468
+
469
+ # The list next page token.
470
+ # Corresponds to the JSON property `nextPageToken`
471
+ # @return [String]
472
+ attr_accessor :next_page_token
473
+
474
+ def initialize(**args)
475
+ update!(**args)
476
+ end
477
+
478
+ # Update properties of this object
479
+ def update!(**args)
480
+ @agent_pools = args[:agent_pools] if args.key?(:agent_pools)
481
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
482
+ end
483
+ end
484
+
402
485
  # The response message for Operations.ListOperations.
403
486
  class ListOperationsResponse
404
487
  include Google::Apis::Core::Hashable
@@ -449,7 +532,7 @@ module Google
449
532
  end
450
533
  end
451
534
 
452
- # Logging configure.
535
+ # Logging configuration.
453
536
  class LoggingConfig
454
537
  include Google::Apis::Core::Hashable
455
538
 
@@ -461,6 +544,18 @@ module Google
461
544
  attr_accessor :enable_onprem_gcs_transfer_logs
462
545
  alias_method :enable_onprem_gcs_transfer_logs?, :enable_onprem_gcs_transfer_logs
463
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
+
464
559
  def initialize(**args)
465
560
  update!(**args)
466
561
  end
@@ -468,6 +563,8 @@ module Google
468
563
  # Update properties of this object
469
564
  def update!(**args)
470
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)
471
568
  end
472
569
  end
473
570
 
@@ -518,7 +615,8 @@ module Google
518
615
  # refers to the time of the last change to the object's content or metadata —
519
616
  # specifically, this is the `updated` property of Cloud Storage objects, the `
520
617
  # LastModified` field of S3 objects, and the `Last-Modified` header of Azure
521
- # blobs. This is not supported for transfers involving PosixFilesystem.
618
+ # blobs. Transfers with a PosixFilesystem source or destination don't support `
619
+ # ObjectConditions`.
522
620
  class ObjectConditions
523
621
  include Google::Apis::Core::Hashable
524
622
 
@@ -685,7 +783,7 @@ module Google
685
783
  end
686
784
  end
687
785
 
688
- # A POSIX filesystem data source or sink.
786
+ # A POSIX filesystem resource.
689
787
  class PosixFilesystem
690
788
  include Google::Apis::Core::Hashable
691
789
 
@@ -721,8 +819,7 @@ module Google
721
819
  class RunTransferJobRequest
722
820
  include Google::Apis::Core::Hashable
723
821
 
724
- # Required. The ID of the Google Cloud Platform Console project that owns the
725
- # transfer job.
822
+ # Required. The ID of the Google Cloud project that owns the transfer job.
726
823
  # Corresponds to the JSON property `projectId`
727
824
  # @return [String]
728
825
  attr_accessor :project_id
@@ -948,6 +1045,16 @@ module Google
948
1045
  # @return [Fixnum]
949
1046
  attr_accessor :directories_successfully_listed_from_source
950
1047
 
1048
+ # Number of successfully cleaned up intermediate objects.
1049
+ # Corresponds to the JSON property `intermediateObjectsCleanedUp`
1050
+ # @return [Fixnum]
1051
+ attr_accessor :intermediate_objects_cleaned_up
1052
+
1053
+ # Number of intermediate objects failed cleaned up.
1054
+ # Corresponds to the JSON property `intermediateObjectsFailedCleanedUp`
1055
+ # @return [Fixnum]
1056
+ attr_accessor :intermediate_objects_failed_cleaned_up
1057
+
951
1058
  # Objects that are copied to the data sink.
952
1059
  # Corresponds to the JSON property `objectsCopiedToSink`
953
1060
  # @return [Fixnum]
@@ -1009,6 +1116,8 @@ module Google
1009
1116
  @directories_failed_to_list_from_source = args[:directories_failed_to_list_from_source] if args.key?(:directories_failed_to_list_from_source)
1010
1117
  @directories_found_from_source = args[:directories_found_from_source] if args.key?(:directories_found_from_source)
1011
1118
  @directories_successfully_listed_from_source = args[:directories_successfully_listed_from_source] if args.key?(:directories_successfully_listed_from_source)
1119
+ @intermediate_objects_cleaned_up = args[:intermediate_objects_cleaned_up] if args.key?(:intermediate_objects_cleaned_up)
1120
+ @intermediate_objects_failed_cleaned_up = args[:intermediate_objects_failed_cleaned_up] if args.key?(:intermediate_objects_failed_cleaned_up)
1012
1121
  @objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
1013
1122
  @objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
1014
1123
  @objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
@@ -1052,7 +1161,7 @@ module Google
1052
1161
  # @return [String]
1053
1162
  attr_accessor :latest_operation_name
1054
1163
 
1055
- # Logging configure.
1164
+ # Logging configuration.
1056
1165
  # Corresponds to the JSON property `loggingConfig`
1057
1166
  # @return [Google::Apis::StoragetransferV1::LoggingConfig]
1058
1167
  attr_accessor :logging_config
@@ -1064,13 +1173,12 @@ module Google
1064
1173
  # request fails with an ALREADY_EXISTS error. This name must start with `"
1065
1174
  # transferJobs/"` prefix and end with a letter or a number, and should be no
1066
1175
  # more than 128 characters. For transfers involving PosixFilesystem, this name
1067
- # must start with 'transferJobs/OPI' specifically. For all other transfer types,
1068
- # this name must not start with 'transferJobs/OPI'. 'transferJobs/OPI' is a
1069
- # reserved prefix for PosixFilesystem transfers. Non-PosixFilesystem example: `"
1070
- # transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` PosixFilesystem example: `"
1071
- # transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` Applications must not rely on
1072
- # the enforcement of naming requirements involving OPI. Invalid job names fail
1073
- # with an INVALID_ARGUMENT error.
1176
+ # must start with `transferJobs/OPI` specifically. For all other transfer types,
1177
+ # this name must not start with `transferJobs/OPI`. Non-PosixFilesystem example:
1178
+ # `"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$"` PosixFilesystem example:
1179
+ # `"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$"` Applications must not rely
1180
+ # on the enforcement of naming requirements involving OPI. Invalid job names
1181
+ # fail with an INVALID_ARGUMENT error.
1074
1182
  # Corresponds to the JSON property `name`
1075
1183
  # @return [String]
1076
1184
  attr_accessor :name
@@ -1088,7 +1196,7 @@ module Google
1088
1196
  # @return [Google::Apis::StoragetransferV1::NotificationConfig]
1089
1197
  attr_accessor :notification_config
1090
1198
 
1091
- # The ID of the Google Cloud Platform Project that owns the job.
1199
+ # The ID of the Google Cloud project that owns the job.
1092
1200
  # Corresponds to the JSON property `projectId`
1093
1201
  # @return [String]
1094
1202
  attr_accessor :project_id
@@ -1133,6 +1241,27 @@ module Google
1133
1241
  end
1134
1242
  end
1135
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
+
1136
1265
  # A description of the execution of a transfer.
1137
1266
  class TransferOperation
1138
1267
  include Google::Apis::Core::Hashable
@@ -1170,7 +1299,7 @@ module Google
1170
1299
  # @return [Google::Apis::StoragetransferV1::NotificationConfig]
1171
1300
  attr_accessor :notification_config
1172
1301
 
1173
- # The ID of the Google Cloud Platform Project that owns the operation.
1302
+ # The ID of the Google Cloud project that owns the operation.
1174
1303
  # Corresponds to the JSON property `projectId`
1175
1304
  # @return [String]
1176
1305
  attr_accessor :project_id
@@ -1321,16 +1450,39 @@ module Google
1321
1450
  # refers to the time of the last change to the object's content or metadata —
1322
1451
  # specifically, this is the `updated` property of Cloud Storage objects, the `
1323
1452
  # LastModified` field of S3 objects, and the `Last-Modified` header of Azure
1324
- # blobs. This is not supported for transfers involving PosixFilesystem.
1453
+ # blobs. Transfers with a PosixFilesystem source or destination don't support `
1454
+ # ObjectConditions`.
1325
1455
  # Corresponds to the JSON property `objectConditions`
1326
1456
  # @return [Google::Apis::StoragetransferV1::ObjectConditions]
1327
1457
  attr_accessor :object_conditions
1328
1458
 
1329
- # A POSIX filesystem data source or sink.
1459
+ # A POSIX filesystem resource.
1460
+ # Corresponds to the JSON property `posixDataSink`
1461
+ # @return [Google::Apis::StoragetransferV1::PosixFilesystem]
1462
+ attr_accessor :posix_data_sink
1463
+
1464
+ # A POSIX filesystem resource.
1330
1465
  # Corresponds to the JSON property `posixDataSource`
1331
1466
  # @return [Google::Apis::StoragetransferV1::PosixFilesystem]
1332
1467
  attr_accessor :posix_data_source
1333
1468
 
1469
+ # Specifies the agent pool name associated with the posix data sink. When
1470
+ # unspecified, the default name is used.
1471
+ # Corresponds to the JSON property `sinkAgentPoolName`
1472
+ # @return [String]
1473
+ attr_accessor :sink_agent_pool_name
1474
+
1475
+ # Specifies the agent pool name associated with the posix data source. When
1476
+ # unspecified, the default name is used.
1477
+ # Corresponds to the JSON property `sourceAgentPoolName`
1478
+ # @return [String]
1479
+ attr_accessor :source_agent_pool_name
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
+
1334
1486
  # TransferOptions define the actions to be performed on objects in a transfer.
1335
1487
  # Corresponds to the JSON property `transferOptions`
1336
1488
  # @return [Google::Apis::StoragetransferV1::TransferOptions]
@@ -1348,7 +1500,11 @@ module Google
1348
1500
  @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
1349
1501
  @http_data_source = args[:http_data_source] if args.key?(:http_data_source)
1350
1502
  @object_conditions = args[:object_conditions] if args.key?(:object_conditions)
1503
+ @posix_data_sink = args[:posix_data_sink] if args.key?(:posix_data_sink)
1351
1504
  @posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
1505
+ @sink_agent_pool_name = args[:sink_agent_pool_name] if args.key?(:sink_agent_pool_name)
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)
1352
1508
  @transfer_options = args[:transfer_options] if args.key?(:transfer_options)
1353
1509
  end
1354
1510
  end
@@ -1357,8 +1513,7 @@ module Google
1357
1513
  class UpdateTransferJobRequest
1358
1514
  include Google::Apis::Core::Hashable
1359
1515
 
1360
- # Required. The ID of the Google Cloud Platform Console project that owns the
1361
- # job.
1516
+ # Required. The ID of the Google Cloud project that owns the job.
1362
1517
  # Corresponds to the JSON property `projectId`
1363
1518
  # @return [String]
1364
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.14.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 = "20210812"
25
+ REVISION = "20211130"
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
 
@@ -184,6 +202,12 @@ module Google
184
202
  include Google::Apis::Core::JsonObjectSupport
185
203
  end
186
204
 
205
+ class TransferManifest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
187
211
  class TransferOperation
188
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
213
 
@@ -208,6 +232,17 @@ module Google
208
232
  include Google::Apis::Core::JsonObjectSupport
209
233
  end
210
234
 
235
+ class AgentPool
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :bandwidth_limit, as: 'bandwidthLimit', class: Google::Apis::StoragetransferV1::BandwidthLimit, decorator: Google::Apis::StoragetransferV1::BandwidthLimit::Representation
239
+
240
+ property :display_name, as: 'displayName'
241
+ property :name, as: 'name'
242
+ property :state, as: 'state'
243
+ end
244
+ end
245
+
211
246
  class AwsAccessKey
212
247
  # @private
213
248
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -245,6 +280,13 @@ module Google
245
280
  end
246
281
  end
247
282
 
283
+ class BandwidthLimit
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :limit_mbps, :numeric_string => true, as: 'limitMbps'
287
+ end
288
+ end
289
+
248
290
  class CancelOperationRequest
249
291
  # @private
250
292
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -307,6 +349,15 @@ module Google
307
349
  end
308
350
  end
309
351
 
352
+ class ListAgentPoolsResponse
353
+ # @private
354
+ class Representation < Google::Apis::Core::JsonRepresentation
355
+ collection :agent_pools, as: 'agentPools', class: Google::Apis::StoragetransferV1::AgentPool, decorator: Google::Apis::StoragetransferV1::AgentPool::Representation
356
+
357
+ property :next_page_token, as: 'nextPageToken'
358
+ end
359
+ end
360
+
310
361
  class ListOperationsResponse
311
362
  # @private
312
363
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -329,6 +380,8 @@ module Google
329
380
  # @private
330
381
  class Representation < Google::Apis::Core::JsonRepresentation
331
382
  property :enable_onprem_gcs_transfer_logs, as: 'enableOnpremGcsTransferLogs'
383
+ collection :log_action_states, as: 'logActionStates'
384
+ collection :log_actions, as: 'logActions'
332
385
  end
333
386
  end
334
387
 
@@ -439,6 +492,8 @@ module Google
439
492
  property :directories_failed_to_list_from_source, :numeric_string => true, as: 'directoriesFailedToListFromSource'
440
493
  property :directories_found_from_source, :numeric_string => true, as: 'directoriesFoundFromSource'
441
494
  property :directories_successfully_listed_from_source, :numeric_string => true, as: 'directoriesSuccessfullyListedFromSource'
495
+ property :intermediate_objects_cleaned_up, :numeric_string => true, as: 'intermediateObjectsCleanedUp'
496
+ property :intermediate_objects_failed_cleaned_up, :numeric_string => true, as: 'intermediateObjectsFailedCleanedUp'
442
497
  property :objects_copied_to_sink, :numeric_string => true, as: 'objectsCopiedToSink'
443
498
  property :objects_deleted_from_sink, :numeric_string => true, as: 'objectsDeletedFromSink'
444
499
  property :objects_deleted_from_source, :numeric_string => true, as: 'objectsDeletedFromSource'
@@ -472,6 +527,13 @@ module Google
472
527
  end
473
528
  end
474
529
 
530
+ class TransferManifest
531
+ # @private
532
+ class Representation < Google::Apis::Core::JsonRepresentation
533
+ property :location, as: 'location'
534
+ end
535
+ end
536
+
475
537
  class TransferOperation
476
538
  # @private
477
539
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -516,8 +578,14 @@ module Google
516
578
 
517
579
  property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
518
580
 
581
+ property :posix_data_sink, as: 'posixDataSink', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
582
+
519
583
  property :posix_data_source, as: 'posixDataSource', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
520
584
 
585
+ property :sink_agent_pool_name, as: 'sinkAgentPoolName'
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
+
521
589
  property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
522
590
 
523
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 Platform Console
56
- # project. Users should add this service account to the Google Cloud Storage
57
- # bucket ACLs to grant access to Storage Transfer Service. This service account
58
- # is created and owned by Storage Transfer Service and can only be used by
59
- # Storage Transfer Service.
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 Platform Console project that the Google
62
- # service account is associated with.
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 Platform Console project that owns the
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.14.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-08-23 00:00:00.000000000 Z
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
@@ -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/master/generated/google-apis-storagetransfer_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storagetransfer_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storagetransfer_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.18.0
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: