config

package
v4.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: UNKNOWN not legal advice Imports: 4 Imported by: 0

Documentation

Overview

Nutanix Standard Configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

type Flag struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	Name *string `json:"name,omitempty"`

	Value *bool `json:"value,omitempty"`
}

* Many entities in the Nutanix APIs carry flags. This object captures all the flags associated with that entity through this object. The field that hosts this type of an object must have an attribute called x-bounded-map-keys that tells which flags are actually present for that entity.

func NewFlag

func NewFlag() *Flag

type KVPair

type KVPair struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  The key of this key value pair
	*/
	Name *string `json:"name,omitempty"`
	/**

	 */
	ValueItemDiscriminator_ *string `json:"$valueItemDiscriminator,omitempty"`
	/**
	  The value associated with the key for this key-value pair
	*/
	Value *OneOfKVPairValue `json:"value,omitempty"`
}

* A map describing a set of keys and their corresponding values.

func NewKVPair

func NewKVPair() *KVPair

func (*KVPair) GetValue

func (p *KVPair) GetValue() interface{}

func (*KVPair) SetValue

func (p *KVPair) SetValue(v interface{}) error

type Message

type Message struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  A code that uniquely identifies a message.
	*/
	Code *string `json:"code,omitempty"`
	/**
	  The locale for the message description.
	*/
	Locale *string `json:"locale,omitempty"`

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

	Severity *MessageSeverity `json:"severity,omitempty"`
}

func NewMessage

func NewMessage() *Message

type MessageSeverity

type MessageSeverity int

* The message severity.

const (
	MESSAGESEVERITY_UNKNOWN  MessageSeverity = 0
	MESSAGESEVERITY_REDACTED MessageSeverity = 1
	MESSAGESEVERITY_INFO     MessageSeverity = 2
	MESSAGESEVERITY_WARNING  MessageSeverity = 3
	MESSAGESEVERITY_ERROR    MessageSeverity = 4
)

func (*MessageSeverity) MarshalJSON

func (e *MessageSeverity) MarshalJSON() ([]byte, error)

func (MessageSeverity) Ref

func (*MessageSeverity) UnmarshalJSON

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

type OneOfKVPairValue

type OneOfKVPairValue struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfKVPairValue

func NewOneOfKVPairValue() *OneOfKVPairValue

func (*OneOfKVPairValue) GetValue

func (p *OneOfKVPairValue) GetValue() interface{}

func (*OneOfKVPairValue) MarshalJSON

func (p *OneOfKVPairValue) MarshalJSON() ([]byte, error)

func (*OneOfKVPairValue) SetValue

func (p *OneOfKVPairValue) SetValue(v interface{}) error

func (*OneOfKVPairValue) UnmarshalJSON

func (p *OneOfKVPairValue) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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