v1

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-govmomi-bridge. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	PropertyChangeOp_name = map[int32]string{
		0: "PropertyChangeOp_UNSPECIFIED",
		1: "PropertyChangeOpAdd",
		2: "PropertyChangeOpRemove",
		3: "PropertyChangeOpAssign",
		4: "PropertyChangeOpIndirectRemove",
	}
	PropertyChangeOp_value = map[string]int32{
		"PropertyChangeOp_UNSPECIFIED":   0,
		"PropertyChangeOpAdd":            1,
		"PropertyChangeOpRemove":         2,
		"PropertyChangeOpAssign":         3,
		"PropertyChangeOpIndirectRemove": 4,
	}
)

Enum value maps for PropertyChangeOp.

View Source
var (
	// optional string govmomi = 999999;
	E_Govmomi = &file_proto_v1_tag_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional string govmomi_alias = 999999;
	E_GovmomiAlias = &file_proto_v1_tag_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var ErrEnumUndefined = errors.New("enum undefined or unspecified")
View Source
var File_proto_v1_enum_proto protoreflect.FileDescriptor
View Source
var File_proto_v1_tag_proto protoreflect.FileDescriptor
View Source
var File_proto_v1_types_proto protoreflect.FileDescriptor

Functions

func FromGovmomi

func FromGovmomi(src any, dst any) error

FromGovmomi copies the value of src govmomi struct to dst proto message

func NewPointer

func NewPointer[T any](v T) *T

NewPointer returns a pointer to the given value.

Types

type Any

type Any struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Any) Descriptor deprecated

func (*Any) Descriptor() ([]byte, []int)

Deprecated: Use Any.ProtoReflect.Descriptor instead.

func (*Any) GetValue

func (x *Any) GetValue() []byte

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) ProtoReflect

func (x *Any) ProtoReflect() protoreflect.Message

func (*Any) Reset

func (x *Any) Reset()

func (*Any) String

func (x *Any) String() string

type Enum

type Enum interface {
	FromGovmomi(string)
}

Enum is the interface that all enums must implement.

type KeyAnyValue

type KeyAnyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *Any   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyAnyValue) Descriptor deprecated

func (*KeyAnyValue) Descriptor() ([]byte, []int)

Deprecated: Use KeyAnyValue.ProtoReflect.Descriptor instead.

func (*KeyAnyValue) GetKey

func (x *KeyAnyValue) GetKey() string

func (*KeyAnyValue) GetValue

func (x *KeyAnyValue) GetValue() *Any

func (*KeyAnyValue) ProtoMessage

func (*KeyAnyValue) ProtoMessage()

func (*KeyAnyValue) ProtoReflect

func (x *KeyAnyValue) ProtoReflect() protoreflect.Message

func (*KeyAnyValue) Reset

func (x *KeyAnyValue) Reset()

func (*KeyAnyValue) String

func (x *KeyAnyValue) String() string

type LocalizableMessage

type LocalizableMessage struct {
	Key     string         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Arg     []*KeyAnyValue `protobuf:"bytes,2,rep,name=arg,proto3" json:"arg,omitempty"`
	Message *string        `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalizableMessage) Descriptor deprecated

func (*LocalizableMessage) Descriptor() ([]byte, []int)

Deprecated: Use LocalizableMessage.ProtoReflect.Descriptor instead.

func (*LocalizableMessage) GetArg

func (x *LocalizableMessage) GetArg() []*KeyAnyValue

func (*LocalizableMessage) GetKey

func (x *LocalizableMessage) GetKey() string

func (*LocalizableMessage) GetMessage

func (x *LocalizableMessage) GetMessage() string

func (*LocalizableMessage) ProtoMessage

func (*LocalizableMessage) ProtoMessage()

func (*LocalizableMessage) ProtoReflect

func (x *LocalizableMessage) ProtoReflect() protoreflect.Message

func (*LocalizableMessage) Reset

func (x *LocalizableMessage) Reset()

func (*LocalizableMessage) String

func (x *LocalizableMessage) String() string

type LocalizedMethodFault

type LocalizedMethodFault struct {
	Fault            *MethodFault `protobuf:"bytes,1,opt,name=fault,proto3" json:"fault,omitempty"`
	LocalizedMessage *string      `protobuf:"bytes,2,opt,name=localizedMessage,proto3,oneof" json:"localizedMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalizedMethodFault) Descriptor deprecated

func (*LocalizedMethodFault) Descriptor() ([]byte, []int)

Deprecated: Use LocalizedMethodFault.ProtoReflect.Descriptor instead.

func (*LocalizedMethodFault) GetFault

func (x *LocalizedMethodFault) GetFault() *MethodFault

func (*LocalizedMethodFault) GetLocalizedMessage

func (x *LocalizedMethodFault) GetLocalizedMessage() string

func (*LocalizedMethodFault) ProtoMessage

func (*LocalizedMethodFault) ProtoMessage()

func (*LocalizedMethodFault) ProtoReflect

func (x *LocalizedMethodFault) ProtoReflect() protoreflect.Message

func (*LocalizedMethodFault) Reset

func (x *LocalizedMethodFault) Reset()

func (*LocalizedMethodFault) String

func (x *LocalizedMethodFault) String() string

type ManagedObjectReference

type ManagedObjectReference struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ManagedObjectReference) Descriptor deprecated

func (*ManagedObjectReference) Descriptor() ([]byte, []int)

Deprecated: Use ManagedObjectReference.ProtoReflect.Descriptor instead.

func (*ManagedObjectReference) GetType

func (x *ManagedObjectReference) GetType() string

func (*ManagedObjectReference) GetValue

func (x *ManagedObjectReference) GetValue() string

func (*ManagedObjectReference) ProtoMessage

func (*ManagedObjectReference) ProtoMessage()

func (*ManagedObjectReference) ProtoReflect

func (x *ManagedObjectReference) ProtoReflect() protoreflect.Message

func (*ManagedObjectReference) Reset

func (x *ManagedObjectReference) Reset()

func (*ManagedObjectReference) String

func (x *ManagedObjectReference) String() string

type MethodFault

type MethodFault struct {
	FaultCause   *LocalizedMethodFault `protobuf:"bytes,1,opt,name=faultCause,proto3,oneof" json:"faultCause,omitempty"`
	FaultMessage []*LocalizableMessage `protobuf:"bytes,2,rep,name=faultMessage,proto3" json:"faultMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*MethodFault) Descriptor deprecated

func (*MethodFault) Descriptor() ([]byte, []int)

Deprecated: Use MethodFault.ProtoReflect.Descriptor instead.

func (*MethodFault) GetFaultCause

func (x *MethodFault) GetFaultCause() *LocalizedMethodFault

func (*MethodFault) GetFaultMessage

func (x *MethodFault) GetFaultMessage() []*LocalizableMessage

func (*MethodFault) ProtoMessage

func (*MethodFault) ProtoMessage()

func (*MethodFault) ProtoReflect

func (x *MethodFault) ProtoReflect() protoreflect.Message

func (*MethodFault) Reset

func (x *MethodFault) Reset()

func (*MethodFault) String

func (x *MethodFault) String() string

type NetworkProfile

type NetworkProfile struct {
	Enabled bool                    `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Vswitch []*VirtualSwitchProfile `protobuf:"bytes,2,rep,name=vswitch,proto3" json:"vswitch,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkProfile) Descriptor deprecated

func (*NetworkProfile) Descriptor() ([]byte, []int)

Deprecated: Use NetworkProfile.ProtoReflect.Descriptor instead.

func (*NetworkProfile) GetEnabled

func (x *NetworkProfile) GetEnabled() bool

func (*NetworkProfile) GetVswitch

func (x *NetworkProfile) GetVswitch() []*VirtualSwitchProfile

func (*NetworkProfile) ProtoMessage

func (*NetworkProfile) ProtoMessage()

func (*NetworkProfile) ProtoReflect

func (x *NetworkProfile) ProtoReflect() protoreflect.Message

func (*NetworkProfile) Reset

func (x *NetworkProfile) Reset()

func (*NetworkProfile) String

func (x *NetworkProfile) String() string

type PropertyChange

type PropertyChange struct {
	Name string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Op   PropertyChangeOp `protobuf:"varint,2,opt,name=op,proto3,enum=proto.v1.PropertyChangeOp" json:"op,omitempty"`
	Val  *Any             `protobuf:"bytes,3,opt,name=val,proto3,oneof" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*PropertyChange) Descriptor deprecated

func (*PropertyChange) Descriptor() ([]byte, []int)

Deprecated: Use PropertyChange.ProtoReflect.Descriptor instead.

func (*PropertyChange) GetName

func (x *PropertyChange) GetName() string

func (*PropertyChange) GetOp

func (x *PropertyChange) GetOp() PropertyChangeOp

func (*PropertyChange) GetVal

func (x *PropertyChange) GetVal() *Any

func (*PropertyChange) ProtoMessage

func (*PropertyChange) ProtoMessage()

func (*PropertyChange) ProtoReflect

func (x *PropertyChange) ProtoReflect() protoreflect.Message

func (*PropertyChange) Reset

func (x *PropertyChange) Reset()

func (*PropertyChange) String

func (x *PropertyChange) String() string

type PropertyChangeOp

type PropertyChangeOp int32
const (
	PropertyChangeOp_PropertyChangeOp_UNSPECIFIED   PropertyChangeOp = 0
	PropertyChangeOp_PropertyChangeOpAdd            PropertyChangeOp = 1
	PropertyChangeOp_PropertyChangeOpRemove         PropertyChangeOp = 2
	PropertyChangeOp_PropertyChangeOpAssign         PropertyChangeOp = 3
	PropertyChangeOp_PropertyChangeOpIndirectRemove PropertyChangeOp = 4
)

func (PropertyChangeOp) Descriptor

func (PropertyChangeOp) Enum

func (PropertyChangeOp) EnumDescriptor deprecated

func (PropertyChangeOp) EnumDescriptor() ([]byte, []int)

Deprecated: Use PropertyChangeOp.Descriptor instead.

func (*PropertyChangeOp) FromGovmomi

func (x *PropertyChangeOp) FromGovmomi(v string)

FromGovmomi converts the govmomi type to the enum,

func (*PropertyChangeOp) MustToGovmomi

func (x *PropertyChangeOp) MustToGovmomi() *vmomiTypes.PropertyChangeOp

MustToGovmomi converts the enum to the govmomi type, panic if the conversion fails

func (PropertyChangeOp) Number

func (PropertyChangeOp) String

func (x PropertyChangeOp) String() string

func (*PropertyChangeOp) ToGovmomi

ToGovmomi converts the enum to the govmomi type, return ErrEnumUndefined if the conversion fails

func (PropertyChangeOp) ToPointer

func (x PropertyChangeOp) ToPointer() *PropertyChangeOp

func (PropertyChangeOp) Type

type ScheduledTaskInfo

type ScheduledTaskInfo struct {
	LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=lastModifiedTime,proto3" json:"lastModifiedTime,omitempty"`
	// contains filtered or unexported fields
}

func (*ScheduledTaskInfo) Descriptor deprecated

func (*ScheduledTaskInfo) Descriptor() ([]byte, []int)

Deprecated: Use ScheduledTaskInfo.ProtoReflect.Descriptor instead.

func (*ScheduledTaskInfo) GetLastModifiedTime

func (x *ScheduledTaskInfo) GetLastModifiedTime() *timestamppb.Timestamp

func (*ScheduledTaskInfo) ProtoMessage

func (*ScheduledTaskInfo) ProtoMessage()

func (*ScheduledTaskInfo) ProtoReflect

func (x *ScheduledTaskInfo) ProtoReflect() protoreflect.Message

func (*ScheduledTaskInfo) Reset

func (x *ScheduledTaskInfo) Reset()

func (*ScheduledTaskInfo) String

func (x *ScheduledTaskInfo) String() string

type VirtualSwitchProfile

type VirtualSwitchProfile struct {
	Enabled bool   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Key     string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Name    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*VirtualSwitchProfile) Descriptor deprecated

func (*VirtualSwitchProfile) Descriptor() ([]byte, []int)

Deprecated: Use VirtualSwitchProfile.ProtoReflect.Descriptor instead.

func (*VirtualSwitchProfile) GetEnabled

func (x *VirtualSwitchProfile) GetEnabled() bool

func (*VirtualSwitchProfile) GetKey

func (x *VirtualSwitchProfile) GetKey() string

func (*VirtualSwitchProfile) GetName

func (x *VirtualSwitchProfile) GetName() string

func (*VirtualSwitchProfile) ProtoMessage

func (*VirtualSwitchProfile) ProtoMessage()

func (*VirtualSwitchProfile) ProtoReflect

func (x *VirtualSwitchProfile) ProtoReflect() protoreflect.Message

func (*VirtualSwitchProfile) Reset

func (x *VirtualSwitchProfile) Reset()

func (*VirtualSwitchProfile) String

func (x *VirtualSwitchProfile) String() string

type VmLimitLicenseFault

type VmLimitLicenseFault struct {
	FaultCause   *LocalizedMethodFault `protobuf:"bytes,1,opt,name=faultCause,proto3,oneof" json:"faultCause,omitempty"`
	FaultMessage []*LocalizableMessage `protobuf:"bytes,2,rep,name=faultMessage,proto3" json:"faultMessage,omitempty"`
	Limit        int32                 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*VmLimitLicenseFault) Descriptor deprecated

func (*VmLimitLicenseFault) Descriptor() ([]byte, []int)

Deprecated: Use VmLimitLicenseFault.ProtoReflect.Descriptor instead.

func (*VmLimitLicenseFault) GetFaultCause

func (x *VmLimitLicenseFault) GetFaultCause() *LocalizedMethodFault

func (*VmLimitLicenseFault) GetFaultMessage

func (x *VmLimitLicenseFault) GetFaultMessage() []*LocalizableMessage

func (*VmLimitLicenseFault) GetLimit

func (x *VmLimitLicenseFault) GetLimit() int32

func (*VmLimitLicenseFault) ProtoMessage

func (*VmLimitLicenseFault) ProtoMessage()

func (*VmLimitLicenseFault) ProtoReflect

func (x *VmLimitLicenseFault) ProtoReflect() protoreflect.Message

func (*VmLimitLicenseFault) Reset

func (x *VmLimitLicenseFault) Reset()

func (*VmLimitLicenseFault) String

func (x *VmLimitLicenseFault) String() string

type VstorageObjectVCenterQueryChangedDiskAreas added in v0.2.0

type VstorageObjectVCenterQueryChangedDiskAreas struct {
	This *ManagedObjectReference `protobuf:"bytes,1,opt,name=this,proto3" json:"this,omitempty"`
	// contains filtered or unexported fields
}

func (*VstorageObjectVCenterQueryChangedDiskAreas) Descriptor deprecated added in v0.2.0

Deprecated: Use VstorageObjectVCenterQueryChangedDiskAreas.ProtoReflect.Descriptor instead.

func (*VstorageObjectVCenterQueryChangedDiskAreas) GetThis added in v0.2.0

func (*VstorageObjectVCenterQueryChangedDiskAreas) ProtoMessage added in v0.2.0

func (*VstorageObjectVCenterQueryChangedDiskAreas) ProtoReflect added in v0.2.0

func (*VstorageObjectVCenterQueryChangedDiskAreas) Reset added in v0.2.0

func (*VstorageObjectVCenterQueryChangedDiskAreas) String added in v0.2.0

type VstorageObjectVCenterQueryChangedDiskAreasRequestType

type VstorageObjectVCenterQueryChangedDiskAreasRequestType = VstorageObjectVCenterQueryChangedDiskAreas

type WaitOptions

type WaitOptions struct {
	MaxWaitSeconds   int32  `protobuf:"varint,1,opt,name=maxWaitSeconds,proto3" json:"maxWaitSeconds,omitempty"`
	MaxObjectUpdates *int32 `protobuf:"varint,2,opt,name=maxObjectUpdates,proto3,oneof" json:"maxObjectUpdates,omitempty"`
	// contains filtered or unexported fields
}

func (*WaitOptions) Descriptor deprecated

func (*WaitOptions) Descriptor() ([]byte, []int)

Deprecated: Use WaitOptions.ProtoReflect.Descriptor instead.

func (*WaitOptions) GetMaxObjectUpdates

func (x *WaitOptions) GetMaxObjectUpdates() int32

func (*WaitOptions) GetMaxWaitSeconds

func (x *WaitOptions) GetMaxWaitSeconds() int32

func (*WaitOptions) ProtoMessage

func (*WaitOptions) ProtoMessage()

func (*WaitOptions) ProtoReflect

func (x *WaitOptions) ProtoReflect() protoreflect.Message

func (*WaitOptions) Reset

func (x *WaitOptions) Reset()

func (*WaitOptions) String

func (x *WaitOptions) String() string

Jump to

Keyboard shortcuts

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