google-apis-storagetransfer_v1 0.13.0 → 0.17.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: 4c5579a3481033c95dceaf818a90ba1fc685e7922486c383282b3868c6f0e0ae
4
- data.tar.gz: b2eb0bee508ffdbd3765763249d47aadf78cb8131b4682f812a0fe90d5ef0e16
3
+ metadata.gz: 11d0beac2252f6016628b07b40734be8dcf4a4e9161f3b776aa792d1b3dd198e
4
+ data.tar.gz: 7a367a0ed39c7fe7d93c575ec2544f3c6e06d75a553b710e5919a6a577513c09
5
5
  SHA512:
6
- metadata.gz: fb9d9c31631bcb647287b1ded7331b8ee13162ac77fae0b7a4d239240587145ab62f7298beb4cea7f830d330b6ec9196ed191db43187dbc8ec19a0e5adc9d7f2
7
- data.tar.gz: 3e04e2e7dd2925621912153c0595d7f6e7a10851fdc9ea7732c0cb834f08d9784425916eb4579feb6663e68667f6d1874f6956890c2ec542c992b6e7fedcabdb
6
+ metadata.gz: 15eb1c22b2c6627bdfe0f474d7a5e633b90e891425d4d06f9cfe356a0f1e9aab89c33512e7681262d7200e7d4647ff5a329f3d4483dfd856971e7b2c9b733bf6
7
+ data.tar.gz: 10fbada5a99ae9bb2f1a9b368cf0a24306fffa1cea0825f1b399342eda7270a7c3c0efa8490073b269be9e1ee7de9ca00a23ba9fd5d9989ca0c0ef1da3661680
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-storagetransfer_v1
2
2
 
3
+ ### v0.17.0 (2021-11-06)
4
+
5
+ * Regenerated from discovery document revision 20211105
6
+
7
+ ### v0.16.0 (2021-10-20)
8
+
9
+ * Regenerated from discovery document revision 20211018
10
+
11
+ ### v0.15.0 (2021-09-21)
12
+
13
+ * Regenerated from discovery document revision 20210918
14
+
15
+ ### v0.14.0 (2021-08-20)
16
+
17
+ * Regenerated from discovery document revision 20210812
18
+
3
19
  ### v0.13.0 (2021-07-31)
4
20
 
5
21
  * Regenerated from discovery document revision 20210726
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,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-
@@ -172,6 +211,26 @@ module Google
172
211
  end
173
212
  end
174
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
+
175
234
  # The request message for Operations.CancelOperation.
176
235
  class CancelOperationRequest
177
236
  include Google::Apis::Core::Hashable
@@ -399,6 +458,31 @@ module Google
399
458
  end
400
459
  end
401
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
+
402
486
  # The response message for Operations.ListOperations.
403
487
  class ListOperationsResponse
404
488
  include Google::Apis::Core::Hashable
@@ -449,7 +533,7 @@ module Google
449
533
  end
450
534
  end
451
535
 
452
- # Logging configure.
536
+ # Logging configuration.
453
537
  class LoggingConfig
454
538
  include Google::Apis::Core::Hashable
455
539
 
@@ -518,7 +602,8 @@ module Google
518
602
  # refers to the time of the last change to the object's content or metadata —
519
603
  # specifically, this is the `updated` property of Cloud Storage objects, the `
520
604
  # LastModified` field of S3 objects, and the `Last-Modified` header of Azure
521
- # blobs. This is not supported for transfers involving PosixFilesystem.
605
+ # blobs. Transfers with a PosixFilesystem source or destination don't support `
606
+ # ObjectConditions`.
522
607
  class ObjectConditions
523
608
  include Google::Apis::Core::Hashable
524
609
 
@@ -685,7 +770,7 @@ module Google
685
770
  end
686
771
  end
687
772
 
688
- # A POSIX filesystem data source or sink.
773
+ # A POSIX filesystem resource.
689
774
  class PosixFilesystem
690
775
  include Google::Apis::Core::Hashable
691
776
 
@@ -948,6 +1033,16 @@ module Google
948
1033
  # @return [Fixnum]
949
1034
  attr_accessor :directories_successfully_listed_from_source
950
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
+
951
1046
  # Objects that are copied to the data sink.
952
1047
  # Corresponds to the JSON property `objectsCopiedToSink`
953
1048
  # @return [Fixnum]
@@ -1009,6 +1104,8 @@ module Google
1009
1104
  @directories_failed_to_list_from_source = args[:directories_failed_to_list_from_source] if args.key?(:directories_failed_to_list_from_source)
1010
1105
  @directories_found_from_source = args[:directories_found_from_source] if args.key?(:directories_found_from_source)
1011
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)
1012
1109
  @objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
1013
1110
  @objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
1014
1111
  @objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
@@ -1052,7 +1149,7 @@ module Google
1052
1149
  # @return [String]
1053
1150
  attr_accessor :latest_operation_name
1054
1151
 
1055
- # Logging configure.
1152
+ # Logging configuration.
1056
1153
  # Corresponds to the JSON property `loggingConfig`
1057
1154
  # @return [Google::Apis::StoragetransferV1::LoggingConfig]
1058
1155
  attr_accessor :logging_config
@@ -1064,13 +1161,12 @@ module Google
1064
1161
  # request fails with an ALREADY_EXISTS error. This name must start with `"
1065
1162
  # transferJobs/"` prefix and end with a letter or a number, and should be no
1066
1163
  # 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.
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.
1074
1170
  # Corresponds to the JSON property `name`
1075
1171
  # @return [String]
1076
1172
  attr_accessor :name
@@ -1321,16 +1417,34 @@ module Google
1321
1417
  # refers to the time of the last change to the object's content or metadata —
1322
1418
  # specifically, this is the `updated` property of Cloud Storage objects, the `
1323
1419
  # LastModified` field of S3 objects, and the `Last-Modified` header of Azure
1324
- # blobs. This is not supported for transfers involving PosixFilesystem.
1420
+ # blobs. Transfers with a PosixFilesystem source or destination don't support `
1421
+ # ObjectConditions`.
1325
1422
  # Corresponds to the JSON property `objectConditions`
1326
1423
  # @return [Google::Apis::StoragetransferV1::ObjectConditions]
1327
1424
  attr_accessor :object_conditions
1328
1425
 
1329
- # A POSIX filesystem data source or sink.
1426
+ # A POSIX filesystem resource.
1427
+ # Corresponds to the JSON property `posixDataSink`
1428
+ # @return [Google::Apis::StoragetransferV1::PosixFilesystem]
1429
+ attr_accessor :posix_data_sink
1430
+
1431
+ # A POSIX filesystem resource.
1330
1432
  # Corresponds to the JSON property `posixDataSource`
1331
1433
  # @return [Google::Apis::StoragetransferV1::PosixFilesystem]
1332
1434
  attr_accessor :posix_data_source
1333
1435
 
1436
+ # Specifies the agent pool name associated with the posix data sink. When
1437
+ # unspecified, the default name is used.
1438
+ # Corresponds to the JSON property `sinkAgentPoolName`
1439
+ # @return [String]
1440
+ attr_accessor :sink_agent_pool_name
1441
+
1442
+ # Specifies the agent pool name associated with the posix data source. When
1443
+ # unspecified, the default name is used.
1444
+ # Corresponds to the JSON property `sourceAgentPoolName`
1445
+ # @return [String]
1446
+ attr_accessor :source_agent_pool_name
1447
+
1334
1448
  # TransferOptions define the actions to be performed on objects in a transfer.
1335
1449
  # Corresponds to the JSON property `transferOptions`
1336
1450
  # @return [Google::Apis::StoragetransferV1::TransferOptions]
@@ -1348,7 +1462,10 @@ module Google
1348
1462
  @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source)
1349
1463
  @http_data_source = args[:http_data_source] if args.key?(:http_data_source)
1350
1464
  @object_conditions = args[:object_conditions] if args.key?(:object_conditions)
1465
+ @posix_data_sink = args[:posix_data_sink] if args.key?(:posix_data_sink)
1351
1466
  @posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
1467
+ @sink_agent_pool_name = args[:sink_agent_pool_name] if args.key?(:sink_agent_pool_name)
1468
+ @source_agent_pool_name = args[:source_agent_pool_name] if args.key?(:source_agent_pool_name)
1352
1469
  @transfer_options = args[:transfer_options] if args.key?(:transfer_options)
1353
1470
  end
1354
1471
  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.13.0"
19
+ GEM_VERSION = "0.17.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 = "20210726"
25
+ REVISION = "20211105"
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
 
@@ -208,6 +226,17 @@ module Google
208
226
  include Google::Apis::Core::JsonObjectSupport
209
227
  end
210
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
+
211
240
  class AwsAccessKey
212
241
  # @private
213
242
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -245,6 +274,13 @@ module Google
245
274
  end
246
275
  end
247
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
+
248
284
  class CancelOperationRequest
249
285
  # @private
250
286
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -307,6 +343,15 @@ module Google
307
343
  end
308
344
  end
309
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
+
310
355
  class ListOperationsResponse
311
356
  # @private
312
357
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -439,6 +484,8 @@ module Google
439
484
  property :directories_failed_to_list_from_source, :numeric_string => true, as: 'directoriesFailedToListFromSource'
440
485
  property :directories_found_from_source, :numeric_string => true, as: 'directoriesFoundFromSource'
441
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'
442
489
  property :objects_copied_to_sink, :numeric_string => true, as: 'objectsCopiedToSink'
443
490
  property :objects_deleted_from_sink, :numeric_string => true, as: 'objectsDeletedFromSink'
444
491
  property :objects_deleted_from_source, :numeric_string => true, as: 'objectsDeletedFromSource'
@@ -516,8 +563,12 @@ module Google
516
563
 
517
564
  property :object_conditions, as: 'objectConditions', class: Google::Apis::StoragetransferV1::ObjectConditions, decorator: Google::Apis::StoragetransferV1::ObjectConditions::Representation
518
565
 
566
+ property :posix_data_sink, as: 'posixDataSink', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
567
+
519
568
  property :posix_data_source, as: 'posixDataSource', class: Google::Apis::StoragetransferV1::PosixFilesystem, decorator: Google::Apis::StoragetransferV1::PosixFilesystem::Representation
520
569
 
570
+ property :sink_agent_pool_name, as: 'sinkAgentPoolName'
571
+ property :source_agent_pool_name, as: 'sourceAgentPoolName'
521
572
  property :transfer_options, as: 'transferOptions', class: Google::Apis::StoragetransferV1::TransferOptions, decorator: Google::Apis::StoragetransferV1::TransferOptions::Representation
522
573
 
523
574
  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
@@ -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 Platform data
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.13.0
4
+ version: 0.17.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-02 00:00:00.000000000 Z
11
+ date: 2021-11-08 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.13.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.17.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: