class Morpheus::Cli::StorageVolumeTypes

Protected Instance Methods

build_list_options(opts, options, params) click to toggle source

register_interfaces :storage_volume_types

# File lib/morpheus/cli/commands/storage_volume_types.rb, line 15
def build_list_options(opts, options, params)
  opts.on('--name VALUE', String, "Filter by name") do |val|
    params['name'] = val
  end
  opts.on('--category VALUE', String, "Filter by category") do |val|
    params['category'] = val
  end
  # build_standard_list_options(opts, options)
  super
end
storage_volume_type_column_definitions(options) click to toggle source
# File lib/morpheus/cli/commands/storage_volume_types.rb, line 35
def storage_volume_type_column_definitions(options)
  {
    "ID" => 'id',
    "Name" => 'name',
    "Code" => 'code',
    "Description" => 'description',
  }
end
storage_volume_type_list_column_definitions(options) click to toggle source
# File lib/morpheus/cli/commands/storage_volume_types.rb, line 26
def storage_volume_type_list_column_definitions(options)
  {
    "ID" => 'id',
    "Name" => 'name',
    "Code" => 'code',
    "Description" => 'description',
  }
end