Class: Google::Apis::NetappV1::OntapSource

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

Represents ONTAP source details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OntapSource

Returns a new instance of OntapSource.



2155
2156
2157
# File 'lib/google/apis/netapp_v1/classes.rb', line 2155

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

Instance Attribute Details

#snapshot_uuidString

Optional. The UUID of the ONTAP source snapshot. Corresponds to the JSON property snapshotUuid

Returns:

  • (String)


2141
2142
2143
# File 'lib/google/apis/netapp_v1/classes.rb', line 2141

def snapshot_uuid
  @snapshot_uuid
end

#storage_poolString

Required. Name of the storage pool. This must be specified for creating backups for ONTAP mode volumes. Format: projects/projects_id/locations/ location/storagePools/storage_pool_id` Corresponds to the JSON propertystoragePool`

Returns:

  • (String)


2148
2149
2150
# File 'lib/google/apis/netapp_v1/classes.rb', line 2148

def storage_pool
  @storage_pool
end

#volume_uuidString

Required. The UUID of the ONTAP source volume. Corresponds to the JSON property volumeUuid

Returns:

  • (String)


2153
2154
2155
# File 'lib/google/apis/netapp_v1/classes.rb', line 2153

def volume_uuid
  @volume_uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2160
2161
2162
2163
2164
# File 'lib/google/apis/netapp_v1/classes.rb', line 2160

def update!(**args)
  @snapshot_uuid = args[:snapshot_uuid] if args.key?(:snapshot_uuid)
  @storage_pool = args[:storage_pool] if args.key?(:storage_pool)
  @volume_uuid = args[:volume_uuid] if args.key?(:volume_uuid)
end