models

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// Error message
	// Example: Failed to validate credentials.
	Message string `json:"message,omitempty"`

	// status code
	StatusCode int32 `json:"statusCode,omitempty"`
}

Error Error

Specification for a vRA API error.

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type GetCMDClassSchema added in v0.1.5

type GetCMDClassSchema struct {
	Result struct {
		Name       string `json:"name"`
		Attributes []struct {
			IsMandatory  string `json:"is_mandatory"`
			DefaultValue string `json:"default_value"`
			Label        string `json:"label"`
			Type         string `json:"type"`
			IsDisplay    string `json:"is_display"`
			Element      string `json:"element"`
		} `json:"attributes"`
	} `json:"result"`
}

type GetTableItem added in v0.1.1

type GetTableItem struct {
	Result []map[string]interface{} `json:"result"`
}

type GetTableLin added in v0.1.5

type GetTableLin struct {
	FirewallStatus    string `json:"firewall_status"`
	OsAddressWidth    string `json:"os_address_width"`
	AttestedDate      string `json:"attested_date"`
	OperationalStatus string `json:"operational_status"`

	OsServicePack string `json:"os_service_pack"`

	CPUCoreThread      string `json:"cpu_core_thread"`
	CPUManufacturer    string `json:"cpu_manufacturer"`
	SysUpdatedOn       string `json:"sys_updated_on"`
	DiscoverySource    string `json:"discovery_source"`
	FirstDiscovered    string `json:"first_discovered"`
	DueIn              string `json:"due_in"`
	UsedFor            string `json:"used_for"`
	GlAccount          string `json:"gl_account"`
	InvoiceNumber      string `json:"invoice_number"`
	SysCreatedBy       string `json:"sys_created_by"`
	RAM                string `json:"ram"`
	WarrantyExpiration string `json:"warranty_expiration"`
	CPUName            string `json:"cpu_name"`
	CPUSpeed           string `json:"cpu_speed"`
	OwnedBy            string `json:"owned_by"`
	CheckedOut         string `json:"checked_out"`
	//
	KernelRelease string `json:"kernel_release"`
	//
	Classification      string `json:"classification"`
	DiskSpace           string `json:"disk_space"`
	SysDomainPath       string `json:"sys_domain_path"`
	BusinessUnit        string `json:"business_unit"`
	ObjectID            string `json:"object_id"`
	MaintenanceSchedule string `json:"maintenance_schedule"`
	CostCenter          string `json:"cost_center"`
	AttestedBy          string `json:"attested_by"`
	DNSDomain           string `json:"dns_domain"`
	Assigned            string `json:"assigned"`
	LifeCycleStage      string `json:"life_cycle_stage"`
	PurchaseDate        string `json:"purchase_date"`
	CdSpeed             string `json:"cd_speed"`
	ShortDescription    string `json:"short_description"`
	Floppy              string `json:"floppy"`
	ManagedBy           struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"managed_by"`
	OsDomain       string `json:"os_domain"`
	CanPrint       string `json:"can_print"`
	LastDiscovered string `json:"last_discovered"`
	SysClassName   string `json:"sys_class_name"`
	CPUCount       string `json:"cpu_count"`
	Manufacturer   struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"manufacturer"`
	LifeCycleStageStatus string `json:"life_cycle_stage_status"`
	Vendor               struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"vendor"`
	ModelNumber   string `json:"model_number"`
	AssignedTo    string `json:"assigned_to"`
	StartDate     string `json:"start_date"`
	OsVersion     string `json:"os_version"`
	SerialNumber  string `json:"serial_number"`
	CdRom         string `json:"cd_rom"`
	SupportGroup  string `json:"support_group"`
	CorrelationID string `json:"correlation_id"`
	Unverified    string `json:"unverified"`
	Attributes    string `json:"attributes"`
	Asset         struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"asset"`
	CPUCoreCount     string `json:"cpu_core_count"`
	FormFactor       string `json:"form_factor"`
	SkipSync         string `json:"skip_sync"`
	MostFrequentUser string `json:"most_frequent_user"`
	AttestationScore string `json:"attestation_score"`
	SysUpdatedBy     string `json:"sys_updated_by"`
	SysCreatedOn     string `json:"sys_created_on"`
	CPUType          string `json:"cpu_type"`
	SysDomain        struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"sys_domain"`
	InstallDate       string `json:"install_date"`
	AssetTag          string `json:"asset_tag"`
	DrBackup          string `json:"dr_backup"`
	HardwareSubstatus string `json:"hardware_substatus"`
	Fqdn              string `json:"fqdn"`
	ChangeControl     string `json:"change_control"`
	InternetFacing    string `json:"internet_facing"`
	DeliveryDate      string `json:"delivery_date"`
	HardwareStatus    string `json:"hardware_status"`
	InstallStatus     string `json:"install_status"`
	SupportedBy       string `json:"supported_by"`
	Name              string `json:"name"`
	Subcategory       string `json:"subcategory"`
	DefaultGateway    string `json:"default_gateway"`
	ChassisType       string `json:"chassis_type"`
	Virtual           string `json:"virtual"`
	AssignmentGroup   string `json:"assignment_group"`
	ManagedByGroup    string `json:"managed_by_group"`
	SysID             string `json:"sys_id"`
	PoNumber          string `json:"po_number"`
	CheckedIn         string `json:"checked_in"`
	SysClassPath      string `json:"sys_class_path"`
	MacAddress        string `json:"mac_address"`
	Company           struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"company"`
	Justification string `json:"justification"`
	Department    string `json:"department"`
	Comments      string `json:"comments"`
	Cost          string `json:"cost"`
	Os            string `json:"os"`
	SysModCount   string `json:"sys_mod_count"`
	Monitor       string `json:"monitor"`
	IPAddress     string `json:"ip_address"`
	ModelID       struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"model_id"`
	DuplicateOf string `json:"duplicate_of"`
	SysTags     string `json:"sys_tags"`
	CostCc      string `json:"cost_cc"`
	OrderDate   string `json:"order_date"`
	Schedule    string `json:"schedule"`
	Environment string `json:"environment"`
	Due         string `json:"due"`
	Attested    string `json:"attested"`
	Location    struct {
		Link  string `json:"link"`
		Value string `json:"value"`
	} `json:"location"`
	Category   string `json:"category"`
	FaultCount string `json:"fault_count"`
	HostName   string `json:"host_name"`
	LeaseID    string `json:"lease_id"`
}
type LinkValue struct {
	Link  string `json:"link"`
	Value string `json:"value"`
}
type TableIface interface {
	GetSysClassName() string
}
func (t *GetTableWin) GetSysClassName() string {
	return t.SysClassName
}
func (t *GetTableLin) GetSysClassName() string {
	return t.SysClassName
}
type GetTableWin struct {
	SysClassName     string    `json:"sys_class_name"`
	Name             string    `json:"name,omitempty"`
	CPUManufacturer  string    `json:"cpu_manufacturer"`
	SysUpdatedOn     string    `json:"sys_updated_on"`
	SysCreatedBy     string    `json:"sys_created_by"`
	RAM              string    `json:"ram"`
	CPUSpeed         string    `json:"cpu_speed"`
	OwnedBy          string    `json:"owned_by"`
	DiskSpace        string    `json:"disk_space"`
	ObjectID         string    `json:"object_id"`
	DNSDomain        string    `json:"dns_domain"`
	ShortDescription string    `json:"short_description"`
	OsDomain         string    `json:"os_domain"`
	CPUCount         string    `json:"cpu_count"`
	Manufacturer     LinkValue `json:"manufacturer"`
	StartDate        string    `json:"start_date"`
	SerialNumber     string    `json:"serial_number"`
	Asset            LinkValue `json:"asset"`
	CPUCoreCount     string    `json:"cpu_core_count"`
	SysUpdatedBy     string    `json:"sys_updated_by"`
	SysCreatedOn     string    `json:"sys_created_on"`
	CPUType          string    `json:"cpu_type"`
	AssetTag         string    `json:"asset_tag"`
	ChassisType      string    `json:"chassis_type"`
	// Probably Unique Identifier.
	SysID     string    `json:"sys_id"`
	Company   LinkValue `json:"company"`
	Os        string    `json:"os"`
	IPAddress string    `json:"ip_address"`
	ModelID   LinkValue `json:"model_id"`
	Category  string    `json:"category"`
	HostName  string    `json:"host_name"`
	LeaseID   string    `json:"lease_id"`
}

type IdentifyReconcileItem

type IdentifyReconcileItem struct {
	ClassName           string               `json:"className"`
	InternalId          string               `json:"internal_id,omitempty"`
	Lookup              []*Lookup            `json:"lookup,omitempty"`
	Related             []string             `json:"related,omitempty"`
	Settings            *Settings            `json:"settings,omitempty"`
	SysObjectSourceInfo *SysObjectSourceInfo `json:"sys_object_source_info,omitempty"`
	Values              map[string]string    `json:"values"`
	Result              *Result              `json:"result"`
}

type IdentifyReconcileItemList

type IdentifyReconcileItemList struct {
	Items []*IdentifyReconcileItem `json:"items"`
}

type Items added in v0.1.2

type Items struct {
	ClassName string `json:"className"`
	Operation string `json:"operation,omitempty"`
	SysId     string `json:"sysId,omitempty"`
}

For response

type Lookup

type Lookup struct {
	ClassName           string               `json:"className"`
	InternalId          string               `json:"internal_id,omitempty"`
	SysObjectSourceInfo *SysObjectSourceInfo `json:"sys_object_source_info,omitempty"`
	Values              string               `json:"values"`
}

type Result added in v0.1.2

type Result struct {
	Items *[]Items `json:"items"`
}

type ServiceErrorResponse

type ServiceErrorResponse struct {

	// details
	Details []string `json:"details"`

	// document kind
	DocumentKind string `json:"documentKind,omitempty"`

	// error code
	ErrorCode int32 `json:"errorCode,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// message Id
	MessageID string `json:"messageId,omitempty"`

	// server error Id
	ServerErrorID string `json:"serverErrorId,omitempty"`

	// stack trace
	StackTrace []string `json:"stackTrace"`

	// status code
	StatusCode int32 `json:"statusCode,omitempty"`
}

ServiceErrorResponse service error response

swagger:model ServiceErrorResponse

func (*ServiceErrorResponse) ContextValidate

func (m *ServiceErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this service error response based on context it is used

func (*ServiceErrorResponse) MarshalBinary

func (m *ServiceErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceErrorResponse) UnmarshalBinary

func (m *ServiceErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceErrorResponse) Validate

func (m *ServiceErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this service error response

type Settings

type Settings struct {
	SkipReclassificationRestrictionRules bool `json:"skipReclassificationRestrictionRules,omitempty"`
	UpdateWithoutDowngrade               bool `json:"updateWithoutDowngrade,omitempty"`
	UpdateWithoutSwitch                  bool `json:"updateWithoutSwitch,omitempty"`
	UpdateWithoutUpgrade                 bool `json:"updateWithoutUpgrade,omitempty"`
}

type SysObjectSourceInfo

type SysObjectSourceInfo struct {
	SourceFeed             string `json:"source_feed"`
	SourceName             string `json:"source_name"`
	SourceNativeKey        string `json:"source_native_key"`
	SourceRecencyTimestamp string `json:"source_recency_timestamp"`
}

Jump to

Keyboard shortcuts

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