Class: Google::Apis::LookerV1::InstanceBackup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/looker_v1/classes.rb,
lib/google/apis/looker_v1/representations.rb,
lib/google/apis/looker_v1/representations.rb

Overview

The details of a backup resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceBackup

Returns a new instance of InstanceBackup.



774
775
776
# File 'lib/google/apis/looker_v1/classes.rb', line 774

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when the backup was started. Corresponds to the JSON property createTime

Returns:

  • (String)


750
751
752
# File 'lib/google/apis/looker_v1/classes.rb', line 750

def create_time
  @create_time
end

#encryption_configGoogle::Apis::LookerV1::EncryptionConfig

Encryption configuration (i.e. CMEK). Corresponds to the JSON property encryptionConfig



755
756
757
# File 'lib/google/apis/looker_v1/classes.rb', line 755

def encryption_config
  @encryption_config
end

#expire_timeString

Output only. The time when the backup will be deleted. Corresponds to the JSON property expireTime

Returns:

  • (String)


760
761
762
# File 'lib/google/apis/looker_v1/classes.rb', line 760

def expire_time
  @expire_time
end

#nameString

Immutable. The relative resource name of the backup, in the following form: projects/project_number/locations/location_id/instances/instance_id/ backups/backup` Corresponds to the JSON propertyname`

Returns:

  • (String)


767
768
769
# File 'lib/google/apis/looker_v1/classes.rb', line 767

def name
  @name
end

#stateString

Output only. The current state of the backup. Corresponds to the JSON property state

Returns:

  • (String)


772
773
774
# File 'lib/google/apis/looker_v1/classes.rb', line 772

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



779
780
781
782
783
784
785
# File 'lib/google/apis/looker_v1/classes.rb', line 779

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end