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.



1153
1154
1155
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1153

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

Instance Attribute Details

#creation_timeString

The creation time of this Snapshot. Corresponds to the JSON property creationTime

Returns:

  • (String)


1131
1132
1133
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1131

def creation_time
  @creation_time
end

#descriptionString

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

Returns:

  • (String)


1136
1137
1138
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1136

def description
  @description
end

#nameString

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

Returns:

  • (String)


1141
1142
1143
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1141

def name
  @name
end

#size_bytesFixnum

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

Returns:

  • (Fixnum)


1146
1147
1148
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1146

def size_bytes
  @size_bytes
end

#stateString

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

Returns:

  • (String)


1151
1152
1153
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1151

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1158
1159
1160
1161
1162
1163
1164
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1158

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @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