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.



742
743
744
# File 'lib/google/apis/looker_v1/classes.rb', line 742

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)


718
719
720
# File 'lib/google/apis/looker_v1/classes.rb', line 718

def create_time
  @create_time
end

#encryption_configGoogle::Apis::LookerV1::EncryptionConfig

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



723
724
725
# File 'lib/google/apis/looker_v1/classes.rb', line 723

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)


728
729
730
# File 'lib/google/apis/looker_v1/classes.rb', line 728

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)


735
736
737
# File 'lib/google/apis/looker_v1/classes.rb', line 735

def name
  @name
end

#stateString

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

Returns:

  • (String)


740
741
742
# File 'lib/google/apis/looker_v1/classes.rb', line 740

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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