Class: Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb
Overview
An AdvanceRelocateBucketOperation request.
Instance Attribute Summary collapse
-
#expire_time ⇒ DateTime
Specifies the time when the relocation will revert to the sync stage if the relocation hasn't succeeded.
-
#ttl ⇒ String
Specifies the duration after which the relocation will revert to the sync stage if the relocation hasn't succeeded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdvanceRelocateBucketOperationRequest
constructor
A new instance of AdvanceRelocateBucketOperationRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdvanceRelocateBucketOperationRequest
Returns a new instance of AdvanceRelocateBucketOperationRequest.
42 43 44 |
# File 'lib/google/apis/storage_v1/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expire_time ⇒ DateTime
Specifies the time when the relocation will revert to the sync stage if the
relocation hasn't succeeded.
Corresponds to the JSON property expireTime
33 34 35 |
# File 'lib/google/apis/storage_v1/classes.rb', line 33 def expire_time @expire_time end |
#ttl ⇒ String
Specifies the duration after which the relocation will revert to the sync
stage if the relocation hasn't succeeded. Optional, if not supplied, a default
value of 12h will be used.
Corresponds to the JSON property ttl
40 41 42 |
# File 'lib/google/apis/storage_v1/classes.rb', line 40 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'lib/google/apis/storage_v1/classes.rb', line 47 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @ttl = args[:ttl] if args.key?(:ttl) end |