Class: Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot

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

Overview

VolumeSnapshot registered for given Volume

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeSnapshot

Returns a new instance of VolumeSnapshot.



1109
1110
1111
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1109

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

Instance Attribute Details

#descriptionString

The description of this Snapshot. Corresponds to the JSON property description

Returns:

  • (String)


1092
1093
1094
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1092

def description
  @description
end

#nameString

Output only. The name of this Snapshot. Corresponds to the JSON property name

Returns:

  • (String)


1097
1098
1099
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1097

def name
  @name
end

#size_bytesFixnum

The real size of this Snapshot, in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


1102
1103
1104
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1102

def size_bytes
  @size_bytes
end

#stateString

The state of this Snapshot. Corresponds to the JSON property state

Returns:

  • (String)


1107
1108
1109
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1107

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1114
1115
1116
1117
1118
1119
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1114

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