Class: Google::Apis::BaremetalsolutionV2::VolumeSnapshot

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

Overview

Snapshot registered for a given storage volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeSnapshot

Returns a new instance of VolumeSnapshot.



1993
1994
1995
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1993

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

Instance Attribute Details

#create_timeString

Output only. The creation time of the storage volume snapshot. Corresponds to the JSON property createTime

Returns:

  • (String)


1966
1967
1968
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1966

def create_time
  @create_time
end

#descriptionString

The description of the storage volume snapshot. Corresponds to the JSON property description

Returns:

  • (String)


1971
1972
1973
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1971

def description
  @description
end

#idString

An identifier for the snapshot, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


1976
1977
1978
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1976

def id
  @id
end

#nameString

Output only. The name of the storage volume snapshot. Corresponds to the JSON property name

Returns:

  • (String)


1981
1982
1983
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1981

def name
  @name
end

#size_bytesFixnum

The size of the storage volume snapshot, in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


1986
1987
1988
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1986

def size_bytes
  @size_bytes
end

#storage_volumeString

The storage volume this snapshot belongs to. Corresponds to the JSON property storageVolume

Returns:

  • (String)


1991
1992
1993
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1991

def storage_volume
  @storage_volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1998
1999
2000
2001
2002
2003
2004
2005
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1998

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
  @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
end