google-apis-storagetransfer_v1 0.1.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33beef39971f8bfc7a6fdb9fc3fd16da7e5df20f3632dee4f6d48e0f0251e1f2
4
- data.tar.gz: fd8b01675092c799fb65a831534c704cce9ab06b5beffa701a83cfd00251ab83
3
+ metadata.gz: 305479bdffb83be01832c4730e409749509632b8cbbc4f801be98e4ae35aa349
4
+ data.tar.gz: 9c4bf66c84fcd8e09d94058c3b50b23e0050df32c9e090de0cb98f9fb07b0bb2
5
5
  SHA512:
6
- metadata.gz: 85aed3dcfe580764d6acff07cbe14528a98a8eacfee85f684a32199101d6f0a31ed8611bf4939506de9e0ec72207cd6abf235e96ad7dcf4d475942167764402b
7
- data.tar.gz: 36ca333b5610ef6ae1c52ab1e96b891e448488a4fbed828e835f57b66952fc232b19402d33fe78e95165c3a552414771c9293ec59010c15b88fb054623b5b283
6
+ metadata.gz: 9df6a8e6c04f7da755789930968e8dcffe15d3538b05aaaacfbff5da8937dfab1465b45d73a804c87a236bdfbdbfb4000701f1cbe6205c0e2bbe98d05c190ba2
7
+ data.tar.gz: c4aa126f7a9ad156fadce7b3ca6f2737011a1a9ce8dbf0035310bf03a4ed9019b02a5dc0d9d06b861e15762f789edd9e882b0f48155c001192d9c596fb457900
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-storagetransfer_v1
2
2
 
3
+ ### v0.6.0 (2021-03-31)
4
+
5
+ * Regenerated from discovery document revision 20210325
6
+ * Regenerated using generator version 0.2.0
7
+
8
+ ### v0.5.0 (2021-03-04)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.4.0 (2021-02-24)
13
+
14
+ * Regenerated from discovery document revision 20210218
15
+
16
+ ### v0.3.0 (2021-02-17)
17
+
18
+ * Regenerated from discovery document revision 20210211
19
+
20
+ ### v0.2.0 (2021-02-03)
21
+
22
+ * Regenerated from discovery document revision 20210128
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
@@ -24,8 +24,8 @@ module Google
24
24
 
25
25
  # AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/
26
26
  # general/latest/gr/aws-security-credentials.html)). For information on our data
27
- # retention policy for user credentials, see [User credentials](data-retention#
28
- # user-credentials).
27
+ # retention policy for user credentials, see [User credentials](/storage-
28
+ # transfer/docs/data-retention#user-credentials).
29
29
  class AwsAccessKey
30
30
  include Google::Apis::Core::Hashable
31
31
 
@@ -57,8 +57,8 @@ module Google
57
57
 
58
58
  # AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/
59
59
  # general/latest/gr/aws-security-credentials.html)). For information on our data
60
- # retention policy for user credentials, see [User credentials](data-retention#
61
- # user-credentials).
60
+ # retention policy for user credentials, see [User credentials](/storage-
61
+ # transfer/docs/data-retention#user-credentials).
62
62
  # Corresponds to the JSON property `awsAccessKey`
63
63
  # @return [Google::Apis::StoragetransferV1::AwsAccessKey]
64
64
  attr_accessor :aws_access_key
@@ -99,7 +99,8 @@ module Google
99
99
  include Google::Apis::Core::Hashable
100
100
 
101
101
  # Azure credentials For information on our data retention policy for user
102
- # credentials, see [User credentials](data-retention#user-credentials).
102
+ # credentials, see [User credentials](/storage-transfer/docs/data-retention#user-
103
+ # credentials).
103
104
  # Corresponds to the JSON property `azureCredentials`
104
105
  # @return [Google::Apis::StoragetransferV1::AzureCredentials]
105
106
  attr_accessor :azure_credentials
@@ -135,7 +136,8 @@ module Google
135
136
  end
136
137
 
137
138
  # Azure credentials For information on our data retention policy for user
138
- # credentials, see [User credentials](data-retention#user-credentials).
139
+ # credentials, see [User credentials](/storage-transfer/docs/data-retention#user-
140
+ # credentials).
139
141
  class AzureCredentials
140
142
  include Google::Apis::Core::Hashable
141
143
 
@@ -479,31 +481,44 @@ module Google
479
481
  class ObjectConditions
480
482
  include Google::Apis::Core::Hashable
481
483
 
482
- # `exclude_prefixes` must follow the requirements described for include_prefixes.
483
- # The max size of `exclude_prefixes` is 1000.
484
+ # If you specify `exclude_prefixes`, Storage Transfer Service uses the items in
485
+ # the `exclude_prefixes` array to determine which objects to exclude from a
486
+ # transfer. Objects must not start with one of the matching `exclude_prefixes`
487
+ # for inclusion in a transfer. The following are requirements of `
488
+ # exclude_prefixes`: * Each exclude-prefix can contain any sequence of Unicode
489
+ # characters, to a max length of 1024 bytes when UTF8-encoded, and must not
490
+ # contain Carriage Return or Line Feed characters. Wildcard matching and regular
491
+ # expression matching are not supported. * Each exclude-prefix must omit the
492
+ # leading slash. For example, to exclude the object `s3://my-aws-bucket/logs/y=
493
+ # 2015/requests.gz`, specify the exclude-prefix as `logs/y=2015/requests.gz`. *
494
+ # None of the exclude-prefix values can be empty, if specified. * Each exclude-
495
+ # prefix must exclude a distinct portion of the object namespace. No exclude-
496
+ # prefix may be a prefix of another exclude-prefix. * If include_prefixes is
497
+ # specified, then each exclude-prefix must start with the value of a path
498
+ # explicitly included by `include_prefixes`. The max size of `exclude_prefixes`
499
+ # is 1000. For more information, see [Filtering objects from transfers](/storage-
500
+ # transfer/docs/filtering-objects-from-transfers).
484
501
  # Corresponds to the JSON property `excludePrefixes`
485
502
  # @return [Array<String>]
486
503
  attr_accessor :exclude_prefixes
487
504
 
488
- # If `include_prefixes` is specified, objects that satisfy the object conditions
489
- # must have names that start with one of the `include_prefixes` and that do not
490
- # start with any of the exclude_prefixes. If `include_prefixes` is not specified,
491
- # all objects except those that have names starting with one of the `
492
- # exclude_prefixes` must satisfy the object conditions. Requirements: * Each
493
- # include-prefix and exclude-prefix can contain any sequence of Unicode
494
- # characters, to a max length of 1024 bytes when UTF8-encoded, and must not
495
- # contain Carriage Return or Line Feed characters. Wildcard matching and regular
496
- # expression matching are not supported. * Each include-prefix and exclude-
497
- # prefix must omit the leading slash. For example, to include the `requests.gz`
498
- # object in a transfer from `s3://my-aws-bucket/logs/y=2015/requests.gz`,
499
- # specify the include prefix as `logs/y=2015/requests.gz`. * None of the include-
500
- # prefix or the exclude-prefix values can be empty, if specified. * Each include-
501
- # prefix must include a distinct portion of the object namespace. No include-
502
- # prefix may be a prefix of another include-prefix. * Each exclude-prefix must
503
- # exclude a distinct portion of the object namespace. No exclude-prefix may be a
504
- # prefix of another exclude-prefix. * If `include_prefixes` is specified, then
505
- # each exclude-prefix must start with the value of a path explicitly included by
506
- # `include_prefixes`. The max size of `include_prefixes` is 1000.
505
+ # If you specify `include_prefixes`, Storage Transfer Service uses the items in
506
+ # the `include_prefixes` array to determine which objects to include in a
507
+ # transfer. Objects must start with one of the matching `include_prefixes` for
508
+ # inclusion in the transfer. If exclude_prefixes is specified, objects must not
509
+ # start with any of the `exclude_prefixes` specified for inclusion in the
510
+ # transfer. The following are requirements of `include_prefixes`: * Each include-
511
+ # prefix can contain any sequence of Unicode characters, to a max length of 1024
512
+ # bytes when UTF8-encoded, and must not contain Carriage Return or Line Feed
513
+ # characters. Wildcard matching and regular expression matching are not
514
+ # supported. * Each include-prefix must omit the leading slash. For example, to
515
+ # include the object `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the
516
+ # include-prefix as `logs/y=2015/requests.gz`. * None of the include-prefix
517
+ # values can be empty, if specified. * Each include-prefix must include a
518
+ # distinct portion of the object namespace. No include-prefix may be a prefix of
519
+ # another include-prefix. The max size of `include_prefixes` is 1000. For more
520
+ # information, see [Filtering objects from transfers](/storage-transfer/docs/
521
+ # filtering-objects-from-transfers).
507
522
  # Corresponds to the JSON property `includePrefixes`
508
523
  # @return [Array<String>]
509
524
  attr_accessor :include_prefixes
@@ -585,9 +600,8 @@ module Google
585
600
  # @return [Hash<String,Object>]
586
601
  attr_accessor :metadata
587
602
 
588
- # The server-assigned name, which is only unique within the same service that
589
- # originally returns it. If you use the default HTTP mapping, the `name` should
590
- # have the format of `transferOperations/some/unique/name`.
603
+ # The server-assigned unique name. The format of `name` is `transferOperations/
604
+ # some/unique/name`.
591
605
  # Corresponds to the JSON property `name`
592
606
  # @return [String]
593
607
  attr_accessor :name
@@ -643,6 +657,26 @@ module Google
643
657
  end
644
658
  end
645
659
 
660
+ # Request passed to RunTransferJob.
661
+ class RunTransferJobRequest
662
+ include Google::Apis::Core::Hashable
663
+
664
+ # Required. The ID of the Google Cloud Platform Console project that owns the
665
+ # transfer job.
666
+ # Corresponds to the JSON property `projectId`
667
+ # @return [String]
668
+ attr_accessor :project_id
669
+
670
+ def initialize(**args)
671
+ update!(**args)
672
+ end
673
+
674
+ # Update properties of this object
675
+ def update!(**args)
676
+ @project_id = args[:project_id] if args.key?(:project_id)
677
+ end
678
+ end
679
+
646
680
  # Transfers can be scheduled to recur or to run just once.
647
681
  class Schedule
648
682
  include Google::Apis::Core::Hashable
@@ -1238,7 +1272,7 @@ module Google
1238
1272
  # request. Fields in `transferJob` that can be updated are: description,
1239
1273
  # transfer_spec, notification_config, and status. To update the `transfer_spec`
1240
1274
  # of the job, a complete transfer specification must be provided. An incomplete
1241
- # specification missing any required fields will be rejected with the error
1275
+ # specification missing any required fields is rejected with the error
1242
1276
  # INVALID_ARGUMENT.
1243
1277
  # Corresponds to the JSON property `updateTransferJobFieldMask`
1244
1278
  # @return [String]
@@ -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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201210"
25
+ REVISION = "20210325"
26
26
  end
27
27
  end
28
28
  end
@@ -136,6 +136,12 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
+ class RunTransferJobRequest
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
139
145
  class Schedule
140
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
147
 
@@ -350,6 +356,13 @@ module Google
350
356
  end
351
357
  end
352
358
 
359
+ class RunTransferJobRequest
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ property :project_id, as: 'projectId'
363
+ end
364
+ end
365
+
353
366
  class Schedule
354
367
  # @private
355
368
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -228,6 +228,41 @@ module Google
228
228
  execute_or_queue_command(command, &block)
229
229
  end
230
230
 
231
+ # Attempts to start a new TransferOperation for the current TransferJob. A
232
+ # TransferJob has a maximum of one active TransferOperation. If this method is
233
+ # called while a TransferOperation is active, an error wil be returned.
234
+ # @param [String] job_name
235
+ # Required. The name of the transfer job.
236
+ # @param [Google::Apis::StoragetransferV1::RunTransferJobRequest] run_transfer_job_request_object
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::StoragetransferV1::Operation] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::StoragetransferV1::Operation]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def run_transfer_job(job_name, run_transfer_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
255
+ command = make_simple_command(:post, 'v1/{+jobName}:run', options)
256
+ command.request_representation = Google::Apis::StoragetransferV1::RunTransferJobRequest::Representation
257
+ command.request_object = run_transfer_job_request_object
258
+ command.response_representation = Google::Apis::StoragetransferV1::Operation::Representation
259
+ command.response_class = Google::Apis::StoragetransferV1::Operation
260
+ command.params['jobName'] = job_name unless job_name.nil?
261
+ command.query['fields'] = fields unless fields.nil?
262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
263
+ execute_or_queue_command(command, &block)
264
+ end
265
+
231
266
  # Cancels a transfer. Use the transferOperations.get method to check if the
232
267
  # cancellation succeeded or if the operation completed despite the `cancel`
233
268
  # request. When you cancel an operation, the currently running transfer is
@@ -308,9 +343,10 @@ module Google
308
343
  execute_or_queue_command(command, &block)
309
344
  end
310
345
 
311
- # Lists transfer operations.
346
+ # Lists transfer operations. Operations are ordered by their creation time in
347
+ # reverse chronological order.
312
348
  # @param [String] name
313
- # Required. The value `transferOperations`.
349
+ # Not used.
314
350
  # @param [String] filter
315
351
  # Required. A list of query parameters specified as JSON text in the form of: ``"
316
352
  # projectId":"my_project_id", "jobNames":["jobid1","jobid2",...], "
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.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storagetransfer_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storagetransfer_v1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-storagetransfer_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Storage Transfer API V1