Class: Google::Apis::StorageV1::AdvanceRelocateBucketOperationRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeDateTime

Specifies the time when the relocation will revert to the sync stage if the relocation hasn't succeeded. Corresponds to the JSON property expireTime

Returns:

  • (DateTime)


33
34
35
# File 'lib/google/apis/storage_v1/classes.rb', line 33

def expire_time
  @expire_time
end

#ttlString

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

Returns:

  • (String)


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