Class: Google::Apis::NetappV1::DestinationVolumeParameters
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::DestinationVolumeParameters
- 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
DestinationVolumeParameters specify input parameters used for creating destination volume.
Instance Attribute Summary collapse
-
#description ⇒ String
Description for the destination volume.
-
#share_name ⇒ String
Destination volume's share name.
-
#storage_pool ⇒ String
Required.
-
#volume_id ⇒ String
Desired destination volume resource id.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DestinationVolumeParameters
constructor
A new instance of DestinationVolumeParameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DestinationVolumeParameters
Returns a new instance of DestinationVolumeParameters.
504 505 506 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 504 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description for the destination volume.
Corresponds to the JSON property description
483 484 485 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 483 def description @description end |
#share_name ⇒ String
Destination volume's share name. If not specified, source volume's share name
will be used.
Corresponds to the JSON property shareName
489 490 491 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 489 def share_name @share_name end |
#storage_pool ⇒ String
Required. Existing destination StoragePool name.
Corresponds to the JSON property storagePool
494 495 496 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 494 def storage_pool @storage_pool end |
#volume_id ⇒ String
Desired destination volume resource id. If not specified, source volume's
resource id will be used. This value must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end
with a hyphen.
Corresponds to the JSON property volumeId
502 503 504 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 502 def volume_id @volume_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
509 510 511 512 513 514 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 509 def update!(**args) @description = args[:description] if args.key?(:description) @share_name = args[:share_name] if args.key?(:share_name) @storage_pool = args[:storage_pool] if args.key?(:storage_pool) @volume_id = args[:volume_id] if args.key?(:volume_id) end |