Documentation
¶
Overview ¶
Module clustermgmt.v4.ahv.config of Nutanix Cluster Management APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDetail ¶
func NewFileDetail ¶
func NewFileDetail() *FileDetail
type ListPcieDevicesApiResponse ¶
type ListPcieDevicesApiResponse struct {
ObjectType_ *string `json:"$objectType,omitempty"`
Reserved_ map[string]interface{} `json:"$reserved,omitempty"`
UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
/*
*/
DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"`
Data *OneOfListPcieDevicesApiResponseData `json:"data,omitempty"`
Metadata *import2.ApiResponseMetadata `json:"metadata,omitempty"`
}
REST response for all response codes in API path /clustermgmt/v4.1/ahv/config/pcie-devices Get operation
func NewListPcieDevicesApiResponse ¶
func NewListPcieDevicesApiResponse() *ListPcieDevicesApiResponse
func (*ListPcieDevicesApiResponse) GetData ¶
func (p *ListPcieDevicesApiResponse) GetData() interface{}
func (*ListPcieDevicesApiResponse) MarshalJSON ¶ added in v4.1.1
func (p *ListPcieDevicesApiResponse) MarshalJSON() ([]byte, error)
func (*ListPcieDevicesApiResponse) SetData ¶
func (p *ListPcieDevicesApiResponse) SetData(v interface{}) error
func (*ListPcieDevicesApiResponse) UnmarshalJSON ¶ added in v4.1.1
func (p *ListPcieDevicesApiResponse) UnmarshalJSON(b []byte) error
type OneOfListPcieDevicesApiResponseData ¶
type OneOfListPcieDevicesApiResponseData struct {
Discriminator *string `json:"-"`
ObjectType_ *string `json:"-"`
// contains filtered or unexported fields
}
func NewOneOfListPcieDevicesApiResponseData ¶
func NewOneOfListPcieDevicesApiResponseData() *OneOfListPcieDevicesApiResponseData
func (*OneOfListPcieDevicesApiResponseData) GetValue ¶
func (p *OneOfListPcieDevicesApiResponseData) GetValue() interface{}
func (*OneOfListPcieDevicesApiResponseData) MarshalJSON ¶
func (p *OneOfListPcieDevicesApiResponseData) MarshalJSON() ([]byte, error)
func (*OneOfListPcieDevicesApiResponseData) SetValue ¶
func (p *OneOfListPcieDevicesApiResponseData) SetValue(v interface{}) error
func (*OneOfListPcieDevicesApiResponseData) UnmarshalJSON ¶
func (p *OneOfListPcieDevicesApiResponseData) UnmarshalJSON(b []byte) error
type PcieDevice ¶
type PcieDevice struct {
ObjectType_ *string `json:"$objectType,omitempty"`
Reserved_ map[string]interface{} `json:"$reserved,omitempty"`
UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
/*
UUID of the cluster.
*/
ClusterExtId *string `json:"clusterExtId,omitempty"`
Configuration *PcieDeviceConfiguration `json:"configuration,omitempty"`
/*
Human readable device description
*/
Description *string `json:"description,omitempty"`
/*
A globally unique identifier of an instance that is suitable for external consumption.
*/
ExtId *string `json:"extId,omitempty"`
/*
UUID of the host connected to the device
*/
HostExtId *string `json:"hostExtId,omitempty"`
/*
A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
*/
Links []import2.ApiLink `json:"links,omitempty"`
/*
UUID of the VM attached to that device when state is UVM_ASSIGNED or UVM_RESERVED
*/
OwnerVmExtId *string `json:"ownerVmExtId,omitempty"`
State *PcieDeviceState `json:"state,omitempty"`
/*
A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
*/
TenantId *string `json:"tenantId,omitempty"`
Type *PcieDeviceType `json:"type,omitempty"`
}
PCI Device entity description
func NewPcieDevice ¶
func NewPcieDevice() *PcieDevice
func (*PcieDevice) MarshalJSON ¶ added in v4.1.1
func (p *PcieDevice) MarshalJSON() ([]byte, error)
func (*PcieDevice) UnmarshalJSON ¶ added in v4.1.1
func (p *PcieDevice) UnmarshalJSON(b []byte) error
type PcieDeviceConfiguration ¶
type PcieDeviceConfiguration struct {
ObjectType_ *string `json:"$objectType,omitempty"`
Reserved_ map[string]interface{} `json:"$reserved,omitempty"`
UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
/*
Class code
*/
ClassId *int64 `json:"classId,omitempty"`
/*
Device ID
*/
DeviceId *int64 `json:"deviceId,omitempty"`
/*
Programming interface ID
*/
ProgIFace *int64 `json:"progIFace,omitempty"`
/*
Subsystem class ID
*/
SubClassId *int64 `json:"subClassId,omitempty"`
/*
Subsystem (device) ID
*/
SubSystemId *int64 `json:"subSystemId,omitempty"`
/*
Subsystem vendor ID
*/
SubSystemVendorId *int64 `json:"subSystemVendorId,omitempty"`
/*
Vendor ID
*/
VendorId *int64 `json:"vendorId,omitempty"`
}
PCIe device configuration
func NewPcieDeviceConfiguration ¶
func NewPcieDeviceConfiguration() *PcieDeviceConfiguration
func (*PcieDeviceConfiguration) MarshalJSON ¶ added in v4.1.1
func (p *PcieDeviceConfiguration) MarshalJSON() ([]byte, error)
func (*PcieDeviceConfiguration) UnmarshalJSON ¶ added in v4.1.1
func (p *PcieDeviceConfiguration) UnmarshalJSON(b []byte) error
type PcieDeviceState ¶
type PcieDeviceState int
Device state
const ( PCIEDEVICESTATE_UNKNOWN PcieDeviceState = 0 PCIEDEVICESTATE_REDACTED PcieDeviceState = 1 PCIEDEVICESTATE_UVM_AVAILABLE PcieDeviceState = 2 PCIEDEVICESTATE_UVM_RESERVED PcieDeviceState = 3 PCIEDEVICESTATE_UVM_ASSIGNED PcieDeviceState = 4 PCIEDEVICESTATE_HOST_BROKEN PcieDeviceState = 5 PCIEDEVICESTATE_HOST_UNUSED PcieDeviceState = 6 PCIEDEVICESTATE_HOST_USED PcieDeviceState = 7 PCIEDEVICESTATE_HOST_PARTITIONED PcieDeviceState = 8 )
func (PcieDeviceState) GetName ¶
func (e PcieDeviceState) GetName() string
Returns the name of the enum
func (*PcieDeviceState) MarshalJSON ¶
func (e *PcieDeviceState) MarshalJSON() ([]byte, error)
func (PcieDeviceState) Ref ¶
func (e PcieDeviceState) Ref() *PcieDeviceState
func (*PcieDeviceState) UnmarshalJSON ¶
func (e *PcieDeviceState) UnmarshalJSON(b []byte) error
type PcieDeviceType ¶ added in v4.1.1
type PcieDeviceType int
Device type according to the PCI code and ID assignment specification
const ( PCIEDEVICETYPE_UNKNOWN PcieDeviceType = 0 PCIEDEVICETYPE_REDACTED PcieDeviceType = 1 PCIEDEVICETYPE_MASS_STORAGE_CONTROLLER PcieDeviceType = 2 PCIEDEVICETYPE_NETWORK_CONTROLLER PcieDeviceType = 3 PCIEDEVICETYPE_DISPLAY_CONTROLLER PcieDeviceType = 4 PCIEDEVICETYPE_MULTIMEDIA_DEVICE PcieDeviceType = 5 PCIEDEVICETYPE_MEMORY_CONTROLLER PcieDeviceType = 6 PCIEDEVICETYPE_BRIDGE_DEVICE PcieDeviceType = 7 PCIEDEVICETYPE_SIMPLE_COMMUNICATION_CONTROLLER PcieDeviceType = 8 PCIEDEVICETYPE_BASE_SYSTEM_PERIPHERAL PcieDeviceType = 9 PCIEDEVICETYPE_INPUT_DEVICE PcieDeviceType = 10 PCIEDEVICETYPE_DOCKING_STATION PcieDeviceType = 11 PCIEDEVICETYPE_PROCESSOR PcieDeviceType = 12 PCIEDEVICETYPE_SERIAL_BUS_CONTROLLER PcieDeviceType = 13 PCIEDEVICETYPE_WIRELESS_CONTROLLER PcieDeviceType = 14 PCIEDEVICETYPE_INTELLIGENT_IO_CONTROLLER PcieDeviceType = 15 PCIEDEVICETYPE_SATELLITE_COMMUNICATION_CONTROLLER PcieDeviceType = 16 PCIEDEVICETYPE_ENCRYPTION_DECRYPTION_CONTROLLER PcieDeviceType = 17 PCIEDEVICETYPE_DATA_ACQUISITION_AND_SIGNAL_PROCESSING_CONTROLLER PcieDeviceType = 18 PCIEDEVICETYPE_PROCESSING_ACCELERATOR PcieDeviceType = 19 PCIEDEVICETYPE_NON_ESSENTIAL_INSTRUMENTATION PcieDeviceType = 20 )
func (PcieDeviceType) GetName ¶ added in v4.1.1
func (e PcieDeviceType) GetName() string
Returns the name of the enum
func (*PcieDeviceType) MarshalJSON ¶ added in v4.1.1
func (e *PcieDeviceType) MarshalJSON() ([]byte, error)
func (PcieDeviceType) Ref ¶ added in v4.1.1
func (e PcieDeviceType) Ref() *PcieDeviceType
func (*PcieDeviceType) UnmarshalJSON ¶ added in v4.1.1
func (e *PcieDeviceType) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.