config

package
v4.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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

type FileDetail struct {
	Path        *string `json:"-"`
	ObjectType_ *string `json:"-"`
}

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.0/ahv/config/pcie-devices Get operation

func NewListPcieDevicesApiResponse

func NewListPcieDevicesApiResponse() *ListPcieDevicesApiResponse

func (*ListPcieDevicesApiResponse) GetData

func (p *ListPcieDevicesApiResponse) GetData() interface{}

func (*ListPcieDevicesApiResponse) SetData

func (p *ListPcieDevicesApiResponse) SetData(v interface{}) 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"`
	/*
	  Cluster UUID.
	*/
	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"`
}

PCI Device entity description

func NewPcieDevice

func NewPcieDevice() *PcieDevice

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

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
)

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 (*PcieDeviceState) UnmarshalJSON

func (e *PcieDeviceState) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL