Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.95 KB

File metadata and controls

42 lines (36 loc) · 1.95 KB

NetworkStorageApi::Volume

Properties

Name Type Description Notes
id String Volume ID. [optional]
name String Volume friendly name. [optional]
description String Volume description. [optional]
path String Volume's full path. It is in form of `/{volumeId}/pathSuffix`'. [optional]
path_suffix String Last part of volume's path. [optional]
capacity_in_gb Integer Maximum capacity in GB. [optional]
used_capacity_in_gb Integer Used capacity in GB, updated periodically. [optional]
protocol String File system protocol. Currently this field should be set to `NFS`. [optional]
status Status [optional]
created_on Time [optional]
delete_requested_on Time Date and time of the initial request for volume deletion. [optional]
permissions Permissions [optional]
tags Array<TagAssignment> The tags assigned if any. [optional]

Example

require 'pnap_network_storage_api'

instance = NetworkStorageApi::Volume.new(
  id: 50dc434c-9bba-427b-bcd6-0bdba45c4dd2,
  name: My volume name,
  description: My volume description,
  path: /qjul77ahf5fplr2ba484/shared-docs,
  path_suffix: /shared-docs,
  capacity_in_gb: 2000,
  used_capacity_in_gb: 1000,
  protocol: NFS,
  status: null,
  created_on: 2021-03-13T20:24:32.491Z,
  delete_requested_on: 2022-04-07T08:50:20.359Z,
  permissions: null,
  tags: [{&quot;id&quot;:&quot;60ffafcdffb8b074c7968dad&quot;,&quot;name&quot;:&quot;stage&quot;,&quot;value&quot;:&quot;beta&quot;,&quot;isBillingTag&quot;:false},{&quot;id&quot;:&quot;60ffafcdffb8b074c7968dae&quot;,&quot;name&quot;:&quot;group&quot;,&quot;value&quot;:&quot;discounted&quot;,&quot;isBillingTag&quot;:true}]
)