Class: Google::Apis::NetappV1::Snapshot

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

Overview

Snapshot is a point-in-time version of a Volume's content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Snapshot

Returns a new instance of Snapshot.



1846
1847
1848
# File 'lib/google/apis/netapp_v1/classes.rb', line 1846

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

Instance Attribute Details

#create_timeString

Output only. The time when the snapshot was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1812
1813
1814
# File 'lib/google/apis/netapp_v1/classes.rb', line 1812

def create_time
  @create_time
end

#descriptionString

A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected. Corresponds to the JSON property description

Returns:

  • (String)


1818
1819
1820
# File 'lib/google/apis/netapp_v1/classes.rb', line 1818

def description
  @description
end

#labelsHash<String,String>

Resource labels to represent user provided metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1823
1824
1825
# File 'lib/google/apis/netapp_v1/classes.rb', line 1823

def labels
  @labels
end

#nameString

Identifier. The resource name of the snapshot. Format: projects/project_id/ locations/location/volumes/volume_id/snapshots/snapshot_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1829
1830
1831
# File 'lib/google/apis/netapp_v1/classes.rb', line 1829

def name
  @name
end

#stateString

Output only. The snapshot state. Corresponds to the JSON property state

Returns:

  • (String)


1834
1835
1836
# File 'lib/google/apis/netapp_v1/classes.rb', line 1834

def state
  @state
end

#state_detailsString

Output only. State details of the storage pool Corresponds to the JSON property stateDetails

Returns:

  • (String)


1839
1840
1841
# File 'lib/google/apis/netapp_v1/classes.rb', line 1839

def state_details
  @state_details
end

#used_bytesFloat

Output only. Current storage usage for the snapshot in bytes. Corresponds to the JSON property usedBytes

Returns:

  • (Float)


1844
1845
1846
# File 'lib/google/apis/netapp_v1/classes.rb', line 1844

def used_bytes
  @used_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1851
1852
1853
1854
1855
1856
1857
1858
1859
# File 'lib/google/apis/netapp_v1/classes.rb', line 1851

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