Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::DB::Result::HardwareProduct

SOURCE

https://github.com/joyent/conch-api/blob/master/lib/Conch/DB/Result/HardwareProduct.pm

BASE CLASS: Conch::DB::Result

TABLE: hardware_product

ACCESSORS

id

data_type: 'uuid'
default_value: gen_random_uuid()
is_nullable: 0
size: 16

name

data_type: 'text'
is_nullable: 0

alias

data_type: 'text'
is_nullable: 0

prefix

data_type: 'text'
is_nullable: 1

hardware_vendor_id

data_type: 'uuid'
is_foreign_key: 1
is_nullable: 0
size: 16

deactivated

data_type: 'timestamp with time zone'
is_nullable: 1

created

data_type: 'timestamp with time zone'
default_value: current_timestamp
is_nullable: 0
original: {default_value => \"now()"}

updated

data_type: 'timestamp with time zone'
default_value: current_timestamp
is_nullable: 0
original: {default_value => \"now()"}

specification

data_type: 'jsonb'
default_value: '{}'
is_nullable: 0

sku

data_type: 'text'
is_nullable: 0

generation_name

data_type: 'text'
is_nullable: 1

legacy_product_name

data_type: 'text'
is_nullable: 1

rack_unit_size

data_type: 'integer'
is_nullable: 0

legacy_validation_plan_id

data_type: 'uuid'
is_foreign_key: 1
is_nullable: 0
size: 16

purpose

data_type: 'text'
is_nullable: 0

bios_firmware

data_type: 'text'
is_nullable: 0

hba_firmware

data_type: 'text'
is_nullable: 1

cpu_num

data_type: 'integer'
default_value: 0
is_nullable: 0

cpu_type

data_type: 'text'
is_nullable: 1

dimms_num

data_type: 'integer'
default_value: 0
is_nullable: 0

ram_total

data_type: 'integer'
default_value: 0
is_nullable: 0

nics_num

data_type: 'integer'
default_value: 0
is_nullable: 0

sata_hdd_num

data_type: 'integer'
default_value: 0
is_nullable: 0

sata_hdd_size

data_type: 'integer'
is_nullable: 1

sata_hdd_slots

data_type: 'text'
is_nullable: 1

sas_hdd_num

data_type: 'integer'
default_value: 0
is_nullable: 0

sas_hdd_size

data_type: 'integer'
is_nullable: 1

sas_hdd_slots

data_type: 'text'
is_nullable: 1

sata_ssd_num

data_type: 'integer'
default_value: 0
is_nullable: 0

sata_ssd_size

data_type: 'integer'
is_nullable: 1

sata_ssd_slots

data_type: 'text'
is_nullable: 1

psu_total

data_type: 'integer'
default_value: 0
is_nullable: 0

usb_num

data_type: 'integer'
default_value: 0
is_nullable: 0

sas_ssd_num

data_type: 'integer'
default_value: 0
is_nullable: 0

sas_ssd_size

data_type: 'integer'
is_nullable: 1

sas_ssd_slots

data_type: 'text'
is_nullable: 1

nvme_ssd_num

data_type: 'integer'
default_value: 0
is_nullable: 0

nvme_ssd_size

data_type: 'integer'
is_nullable: 1

nvme_ssd_slots

data_type: 'text'
is_nullable: 1

raid_lun_num

data_type: 'integer'
default_value: 0
is_nullable: 0

PRIMARY KEY

RELATIONS

devices

Type: has_many

Related object: Conch::DB::Result::Device

hardware_product_json_schemas

Type: has_many

Related object: Conch::DB::Result::HardwareProductJSONSchema

hardware_vendor

Type: belongs_to

Related object: Conch::DB::Result::HardwareVendor

legacy_validation_plan

Type: belongs_to

Related object: Conch::DB::Result::LegacyValidationPlan

rack_layouts

Type: has_many

Related object: Conch::DB::Result::RackLayout

validation_states

Type: has_many

Related object: Conch::DB::Result::ValidationState

TO_JSON

Decode the json-encoded specification field for rendering in responses.

LICENSING

Copyright Joyent, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.