google-apis-storage_v1 0.46.0 → 0.48.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef128b5b190cf30e4d73c1b86960ecd7be4802418c4a80443cfbedad7492f2cc
|
4
|
+
data.tar.gz: d4f03ab58c78d8906cbbc4aaf3f9222750c211c7ebedfa5498213f90f0710b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 549e12c344f800bcc8515fd723f52e612d3e68a67e6a34c00b3f8a21372487101aa2e46ac2556f1fc7c370ddfa6f7cbc95cc7677fa4d7f92be041af493f2a771
|
7
|
+
data.tar.gz: b3c7ae8297e1d88b1605634927c30e13ec4c92b69ad90309299b748fb2340ce2c06960f4e4c8050516a2dc37d241c3b49905601d54ac52da61c975173cb7eec5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.48.0 (2024-11-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241113
|
6
|
+
|
7
|
+
### v0.47.0 (2024-10-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241008
|
10
|
+
|
3
11
|
### v0.46.0 (2024-09-29)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240924
|
@@ -22,6 +22,34 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module StorageV1
|
24
24
|
|
25
|
+
# An AdvanceRelocateBucketOperation request.
|
26
|
+
class AdvanceRelocateBucketOperationRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Specifies the time when the relocation will revert to the sync stage if the
|
30
|
+
# relocation hasn't succeeded.
|
31
|
+
# Corresponds to the JSON property `expireTime`
|
32
|
+
# @return [DateTime]
|
33
|
+
attr_accessor :expire_time
|
34
|
+
|
35
|
+
# Specifies the duration after which the relocation will revert to the sync
|
36
|
+
# stage if the relocation hasn't succeeded. Optional, if not supplied, a default
|
37
|
+
# value of 12h will be used.
|
38
|
+
# Corresponds to the JSON property `ttl`
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :ttl
|
41
|
+
|
42
|
+
def initialize(**args)
|
43
|
+
update!(**args)
|
44
|
+
end
|
45
|
+
|
46
|
+
# Update properties of this object
|
47
|
+
def update!(**args)
|
48
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
49
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
25
53
|
# An Anywhere Cache instance.
|
26
54
|
class AnywhereCache
|
27
55
|
include Google::Apis::Core::Hashable
|
@@ -2475,6 +2503,11 @@ module Google
|
|
2475
2503
|
# @return [DateTime]
|
2476
2504
|
attr_accessor :time_deleted
|
2477
2505
|
|
2506
|
+
# The time when the object was finalized.
|
2507
|
+
# Corresponds to the JSON property `timeFinalized`
|
2508
|
+
# @return [DateTime]
|
2509
|
+
attr_accessor :time_finalized
|
2510
|
+
|
2478
2511
|
# The time at which the object's storage class was last changed. When the object
|
2479
2512
|
# is initially created, it will be set to timeCreated.
|
2480
2513
|
# Corresponds to the JSON property `timeStorageClassUpdated`
|
@@ -2530,6 +2563,7 @@ module Google
|
|
2530
2563
|
@temporary_hold = args[:temporary_hold] if args.key?(:temporary_hold)
|
2531
2564
|
@time_created = args[:time_created] if args.key?(:time_created)
|
2532
2565
|
@time_deleted = args[:time_deleted] if args.key?(:time_deleted)
|
2566
|
+
@time_finalized = args[:time_finalized] if args.key?(:time_finalized)
|
2533
2567
|
@time_storage_class_updated = args[:time_storage_class_updated] if args.key?(:time_storage_class_updated)
|
2534
2568
|
@updated = args[:updated] if args.key?(:updated)
|
2535
2569
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module StorageV1
|
18
18
|
# Version of the google-apis-storage_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.48.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241113"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module StorageV1
|
24
24
|
|
25
|
+
class AdvanceRelocateBucketOperationRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class AnywhereCache
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -424,6 +430,15 @@ module Google
|
|
424
430
|
include Google::Apis::Core::JsonObjectSupport
|
425
431
|
end
|
426
432
|
|
433
|
+
class AdvanceRelocateBucketOperationRequest
|
434
|
+
# @private
|
435
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
436
|
+
property :expire_time, as: 'expireTime', type: DateTime
|
437
|
+
|
438
|
+
property :ttl, as: 'ttl'
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
427
442
|
class AnywhereCache
|
428
443
|
# @private
|
429
444
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1072,6 +1087,8 @@ module Google
|
|
1072
1087
|
|
1073
1088
|
property :time_deleted, as: 'timeDeleted', type: DateTime
|
1074
1089
|
|
1090
|
+
property :time_finalized, as: 'timeFinalized', type: DateTime
|
1091
|
+
|
1075
1092
|
property :time_storage_class_updated, as: 'timeStorageClassUpdated', type: DateTime
|
1076
1093
|
|
1077
1094
|
property :updated, as: 'updated', type: DateTime
|
@@ -976,6 +976,8 @@ module Google
|
|
976
976
|
# Name of a bucket.
|
977
977
|
# @param [Fixnum] generation
|
978
978
|
# Generation of a bucket.
|
979
|
+
# @param [String] projection
|
980
|
+
# Set of properties to return. Defaults to full.
|
979
981
|
# @param [String] user_project
|
980
982
|
# The project to be billed for this request. Required for Requester Pays buckets.
|
981
983
|
# @param [String] fields
|
@@ -989,18 +991,21 @@ module Google
|
|
989
991
|
# Request-specific options
|
990
992
|
#
|
991
993
|
# @yield [result, err] Result & error if block supplied
|
992
|
-
# @yieldparam result [
|
994
|
+
# @yieldparam result [Google::Apis::StorageV1::Bucket] parsed result object
|
993
995
|
# @yieldparam err [StandardError] error object if request failed
|
994
996
|
#
|
995
|
-
# @return [
|
997
|
+
# @return [Google::Apis::StorageV1::Bucket]
|
996
998
|
#
|
997
999
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
998
1000
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
999
1001
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1000
|
-
def restore_bucket(bucket, generation, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1002
|
+
def restore_bucket(bucket, generation, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1001
1003
|
command = make_simple_command(:post, 'b/{bucket}/restore', options)
|
1004
|
+
command.response_representation = Google::Apis::StorageV1::Bucket::Representation
|
1005
|
+
command.response_class = Google::Apis::StorageV1::Bucket
|
1002
1006
|
command.params['bucket'] = bucket unless bucket.nil?
|
1003
1007
|
command.query['generation'] = generation unless generation.nil?
|
1008
|
+
command.query['projection'] = projection unless projection.nil?
|
1004
1009
|
command.query['userProject'] = user_project unless user_project.nil?
|
1005
1010
|
command.query['fields'] = fields unless fields.nil?
|
1006
1011
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -3514,6 +3519,46 @@ module Google
|
|
3514
3519
|
execute_or_queue_command(command, &block)
|
3515
3520
|
end
|
3516
3521
|
|
3522
|
+
# Starts asynchronous advancement of the relocate bucket operation in the case
|
3523
|
+
# of required write downtime, to allow it to lock the bucket at the source
|
3524
|
+
# location, and proceed with the bucket location swap. The server makes a best
|
3525
|
+
# effort to advance the relocate bucket operation, but success is not guaranteed.
|
3526
|
+
# @param [String] bucket
|
3527
|
+
# Name of the bucket to advance the relocate for.
|
3528
|
+
# @param [String] operation_id
|
3529
|
+
# ID of the operation resource.
|
3530
|
+
# @param [Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest] advance_relocate_bucket_operation_request_object
|
3531
|
+
# @param [String] fields
|
3532
|
+
# Selector specifying which fields to include in a partial response.
|
3533
|
+
# @param [String] quota_user
|
3534
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3535
|
+
# characters.
|
3536
|
+
# @param [String] user_ip
|
3537
|
+
# Deprecated. Please use quotaUser instead.
|
3538
|
+
# @param [Google::Apis::RequestOptions] options
|
3539
|
+
# Request-specific options
|
3540
|
+
#
|
3541
|
+
# @yield [result, err] Result & error if block supplied
|
3542
|
+
# @yieldparam result [NilClass] No result returned for this method
|
3543
|
+
# @yieldparam err [StandardError] error object if request failed
|
3544
|
+
#
|
3545
|
+
# @return [void]
|
3546
|
+
#
|
3547
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3548
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3549
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3550
|
+
def advance_relocate_bucket_operation(bucket, operation_id, advance_relocate_bucket_operation_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3551
|
+
command = make_simple_command(:post, 'b/{bucket}/operations/{operationId}/advanceRelocateBucket', options)
|
3552
|
+
command.request_representation = Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest::Representation
|
3553
|
+
command.request_object = advance_relocate_bucket_operation_request_object
|
3554
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
3555
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
3556
|
+
command.query['fields'] = fields unless fields.nil?
|
3557
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3558
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3559
|
+
execute_or_queue_command(command, &block)
|
3560
|
+
end
|
3561
|
+
|
3517
3562
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
3518
3563
|
# a best effort to cancel the operation, but success is not guaranteed.
|
3519
3564
|
# @param [String] bucket
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-storage_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.48.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: 2024-
|
11
|
+
date: 2024-12-04 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-storage_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.48.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.22
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Storage JSON API V1
|