Class: Google::Apis::BaremetalsolutionV2::VolumeConfig

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

Overview

Configuration parameters for a new volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeConfig

Returns a new instance of VolumeConfig.



1694
1695
1696
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1694

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

Instance Attribute Details

#idString

A transient unique identifier to identify a volume within an ProvisioningConfig request. Corresponds to the JSON property id

Returns:

  • (String)


1645
1646
1647
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1645

def id
  @id
end

#lun_rangesArray<Google::Apis::BaremetalsolutionV2::LunRange>

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC. Corresponds to the JSON property lunRanges



1650
1651
1652
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1650

def lun_ranges
  @lun_ranges
end

#machine_idsArray<String>

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC. Corresponds to the JSON property machineIds

Returns:

  • (Array<String>)


1655
1656
1657
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1655

def machine_ids
  @machine_ids
end

#nameString

Output only. The name of the volume config. Corresponds to the JSON property name

Returns:

  • (String)


1660
1661
1662
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1660

def name
  @name
end

#nfs_exportsArray<Google::Apis::BaremetalsolutionV2::NfsExport>

NFS exports. Set only when protocol is PROTOCOL_NFS. Corresponds to the JSON property nfsExports



1665
1666
1667
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1665

def nfs_exports
  @nfs_exports
end

#protocolString

Volume protocol. Corresponds to the JSON property protocol

Returns:

  • (String)


1670
1671
1672
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1670

def protocol
  @protocol
end

#size_gbFixnum

The requested size of this volume, in GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


1675
1676
1677
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1675

def size_gb
  @size_gb
end

#snapshots_enabledBoolean Also known as: snapshots_enabled?

Whether snapshots should be enabled. Corresponds to the JSON property snapshotsEnabled

Returns:

  • (Boolean)


1680
1681
1682
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1680

def snapshots_enabled
  @snapshots_enabled
end

#typeString

The type of this Volume. Corresponds to the JSON property type

Returns:

  • (String)


1686
1687
1688
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1686

def type
  @type
end

#user_noteString

User note field, it can be used by customers to add additional information for the BMS Ops team (b/194021617). Corresponds to the JSON property userNote

Returns:

  • (String)


1692
1693
1694
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1692

def user_note
  @user_note
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1699

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @lun_ranges = args[:lun_ranges] if args.key?(:lun_ranges)
  @machine_ids = args[:machine_ids] if args.key?(:machine_ids)
  @name = args[:name] if args.key?(:name)
  @nfs_exports = args[:nfs_exports] if args.key?(:nfs_exports)
  @protocol = args[:protocol] if args.key?(:protocol)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @snapshots_enabled = args[:snapshots_enabled] if args.key?(:snapshots_enabled)
  @type = args[:type] if args.key?(:type)
  @user_note = args[:user_note] if args.key?(:user_note)
end