apiv1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package apiv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var PowerState_Type_name = map[int32]string{
	0: "TYPE_INVALID",
	1: "TYPE_POWERED_ON",
	2: "TYPE_POWERED_OFF",
	3: "TYPE_SUSPENDED",
}
View Source
var PowerState_Type_value = map[string]int32{
	"TYPE_INVALID":     0,
	"TYPE_POWERED_ON":  1,
	"TYPE_POWERED_OFF": 2,
	"TYPE_SUSPENDED":   3,
}
View Source
var VMDeployRequest_ComputerResources_Type_name = map[int32]string{
	0: "TYPE_INVALID",
	1: "TYPE_HOST",
	2: "TYPE_CLUSTER",
	3: "TYPE_RP",
}
View Source
var VMDeployRequest_ComputerResources_Type_value = map[string]int32{
	"TYPE_INVALID": 0,
	"TYPE_HOST":    1,
	"TYPE_CLUSTER": 2,
	"TYPE_RP":      3,
}
View Source
var VMDeployRequest_Datastore_Type_name = map[int32]string{
	0: "TYPE_INVALID",
	1: "TYPE_CLUSTER",
	2: "TYPE_DATASTORE",
}
View Source
var VMDeployRequest_Datastore_Type_value = map[string]int32{
	"TYPE_INVALID":   0,
	"TYPE_CLUSTER":   1,
	"TYPE_DATASTORE": 2,
}

Functions

func RegisterJannaAPIHandler

func RegisterJannaAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterJannaAPIHandler registers the http handlers for service JannaAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterJannaAPIHandlerClient

func RegisterJannaAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client JannaAPIClient) error

RegisterJannaAPIHandlerClient registers the http handlers for service JannaAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "JannaAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "JannaAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "JannaAPIClient" to call the correct interceptors.

func RegisterJannaAPIHandlerFromEndpoint

func RegisterJannaAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterJannaAPIHandlerFromEndpoint is same as RegisterJannaAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterJannaAPIServer

func RegisterJannaAPIServer(s *grpc.Server, srv JannaAPIServer)

Types

type AppInfoRequest

type AppInfoRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AppInfoRequest) Descriptor

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

func (*AppInfoRequest) ProtoMessage

func (*AppInfoRequest) ProtoMessage()

func (*AppInfoRequest) Reset

func (m *AppInfoRequest) Reset()

func (*AppInfoRequest) String

func (m *AppInfoRequest) String() string

func (*AppInfoRequest) XXX_DiscardUnknown

func (m *AppInfoRequest) XXX_DiscardUnknown()

func (*AppInfoRequest) XXX_Marshal

func (m *AppInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AppInfoRequest) XXX_Merge

func (m *AppInfoRequest) XXX_Merge(src proto.Message)

func (*AppInfoRequest) XXX_Size

func (m *AppInfoRequest) XXX_Size() int

func (*AppInfoRequest) XXX_Unmarshal

func (m *AppInfoRequest) XXX_Unmarshal(b []byte) error

type AppInfoResponse

type AppInfoResponse struct {
	Commit               string   `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	BuildTime            string   `protobuf:"bytes,2,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AppInfoResponse) Descriptor

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

func (*AppInfoResponse) GetBuildTime

func (m *AppInfoResponse) GetBuildTime() string

func (*AppInfoResponse) GetCommit

func (m *AppInfoResponse) GetCommit() string

func (*AppInfoResponse) ProtoMessage

func (*AppInfoResponse) ProtoMessage()

func (*AppInfoResponse) Reset

func (m *AppInfoResponse) Reset()

func (*AppInfoResponse) String

func (m *AppInfoResponse) String() string

func (*AppInfoResponse) XXX_DiscardUnknown

func (m *AppInfoResponse) XXX_DiscardUnknown()

func (*AppInfoResponse) XXX_Marshal

func (m *AppInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AppInfoResponse) XXX_Merge

func (m *AppInfoResponse) XXX_Merge(src proto.Message)

func (*AppInfoResponse) XXX_Size

func (m *AppInfoResponse) XXX_Size() int

func (*AppInfoResponse) XXX_Unmarshal

func (m *AppInfoResponse) XXX_Unmarshal(b []byte) error

type IPAddresses

type IPAddresses struct {
	IpAddresses          []string `protobuf:"bytes,1,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IPAddresses a list of Virtual Machine IP addresses.

func (*IPAddresses) Descriptor

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

func (*IPAddresses) GetIpAddresses

func (m *IPAddresses) GetIpAddresses() []string

func (*IPAddresses) ProtoMessage

func (*IPAddresses) ProtoMessage()

func (*IPAddresses) Reset

func (m *IPAddresses) Reset()

func (*IPAddresses) String

func (m *IPAddresses) String() string

func (*IPAddresses) XXX_DiscardUnknown

func (m *IPAddresses) XXX_DiscardUnknown()

func (*IPAddresses) XXX_Marshal

func (m *IPAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPAddresses) XXX_Merge

func (m *IPAddresses) XXX_Merge(src proto.Message)

func (*IPAddresses) XXX_Size

func (m *IPAddresses) XXX_Size() int

func (*IPAddresses) XXX_Unmarshal

func (m *IPAddresses) XXX_Unmarshal(b []byte) error

type JannaAPIClient

type JannaAPIClient interface {
	// Get the application build information.
	AppInfo(ctx context.Context, in *AppInfoRequest, opts ...grpc.CallOption) (*AppInfoResponse, error)
	// Get the application API in OpenAPI format.
	OpenApi(ctx context.Context, in *OpenApiRequest, opts ...grpc.CallOption) (*OpenApiResponse, error)
	// Get a task status.
	TaskStatus(ctx context.Context, in *TaskStatusRequest, opts ...grpc.CallOption) (*TaskStatusResponse, error)
	// Virtual Machines list.
	VMList(ctx context.Context, in *VMListRequest, opts ...grpc.CallOption) (*VMListResponse, error)
	// Deploy Virtual Machine.
	VMDeploy(ctx context.Context, in *VMDeployRequest, opts ...grpc.CallOption) (*VMDeployResponse, error)
	// Get a Virtual Machine information by its UUID.
	VMInfo(ctx context.Context, in *VMInfoRequest, opts ...grpc.CallOption) (*VMInfoResponse, error)
	// Change Virtual Machine power state.
	VMPower(ctx context.Context, in *VMPowerRequest, opts ...grpc.CallOption) (*VMPowerResponse, error)
}

JannaAPIClient is the client API for JannaAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewJannaAPIClient

func NewJannaAPIClient(cc *grpc.ClientConn) JannaAPIClient

type JannaAPIServer

type JannaAPIServer interface {
	// Get the application build information.
	AppInfo(context.Context, *AppInfoRequest) (*AppInfoResponse, error)
	// Get the application API in OpenAPI format.
	OpenApi(context.Context, *OpenApiRequest) (*OpenApiResponse, error)
	// Get a task status.
	TaskStatus(context.Context, *TaskStatusRequest) (*TaskStatusResponse, error)
	// Virtual Machines list.
	VMList(context.Context, *VMListRequest) (*VMListResponse, error)
	// Deploy Virtual Machine.
	VMDeploy(context.Context, *VMDeployRequest) (*VMDeployResponse, error)
	// Get a Virtual Machine information by its UUID.
	VMInfo(context.Context, *VMInfoRequest) (*VMInfoResponse, error)
	// Change Virtual Machine power state.
	VMPower(context.Context, *VMPowerRequest) (*VMPowerResponse, error)
}

JannaAPIServer is the server API for JannaAPI service.

type OpenApiRequest

type OpenApiRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OpenApiRequest) Descriptor

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

func (*OpenApiRequest) ProtoMessage

func (*OpenApiRequest) ProtoMessage()

func (*OpenApiRequest) Reset

func (m *OpenApiRequest) Reset()

func (*OpenApiRequest) String

func (m *OpenApiRequest) String() string

func (*OpenApiRequest) XXX_DiscardUnknown

func (m *OpenApiRequest) XXX_DiscardUnknown()

func (*OpenApiRequest) XXX_Marshal

func (m *OpenApiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OpenApiRequest) XXX_Merge

func (m *OpenApiRequest) XXX_Merge(src proto.Message)

func (*OpenApiRequest) XXX_Size

func (m *OpenApiRequest) XXX_Size() int

func (*OpenApiRequest) XXX_Unmarshal

func (m *OpenApiRequest) XXX_Unmarshal(b []byte) error

type OpenApiResponse

type OpenApiResponse struct {
	Response             []byte   `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OpenApiResponse) Descriptor

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

func (*OpenApiResponse) GetResponse

func (m *OpenApiResponse) GetResponse() []byte

func (*OpenApiResponse) ProtoMessage

func (*OpenApiResponse) ProtoMessage()

func (*OpenApiResponse) Reset

func (m *OpenApiResponse) Reset()

func (*OpenApiResponse) String

func (m *OpenApiResponse) String() string

func (*OpenApiResponse) XXX_DiscardUnknown

func (m *OpenApiResponse) XXX_DiscardUnknown()

func (*OpenApiResponse) XXX_Marshal

func (m *OpenApiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OpenApiResponse) XXX_Merge

func (m *OpenApiResponse) XXX_Merge(src proto.Message)

func (*OpenApiResponse) XXX_Size

func (m *OpenApiResponse) XXX_Size() int

func (*OpenApiResponse) XXX_Unmarshal

func (m *OpenApiResponse) XXX_Unmarshal(b []byte) error

type PowerState

type PowerState struct {
	Type                 PowerState_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api.v1.PowerState_Type" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

PowerState describes a Virtual Machine power state.

func (*PowerState) Descriptor

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

func (*PowerState) GetType

func (m *PowerState) GetType() PowerState_Type

func (*PowerState) ProtoMessage

func (*PowerState) ProtoMessage()

func (*PowerState) Reset

func (m *PowerState) Reset()

func (*PowerState) String

func (m *PowerState) String() string

func (*PowerState) XXX_DiscardUnknown

func (m *PowerState) XXX_DiscardUnknown()

func (*PowerState) XXX_Marshal

func (m *PowerState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PowerState) XXX_Merge

func (m *PowerState) XXX_Merge(src proto.Message)

func (*PowerState) XXX_Size

func (m *PowerState) XXX_Size() int

func (*PowerState) XXX_Unmarshal

func (m *PowerState) XXX_Unmarshal(b []byte) error

type PowerState_Type

type PowerState_Type int32

Storage type. If 'cluster' type was chosen then Janna try to get DRS recommendation to choose proper 'datastore'.

const (
	// zero value
	PowerState_TYPE_INVALID PowerState_Type = 0
	// powered on
	PowerState_TYPE_POWERED_ON PowerState_Type = 1
	// powered off
	PowerState_TYPE_POWERED_OFF PowerState_Type = 2
	// suspended
	PowerState_TYPE_SUSPENDED PowerState_Type = 3
)

func (PowerState_Type) EnumDescriptor

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

func (PowerState_Type) String

func (x PowerState_Type) String() string

type TaskStatusRequest

type TaskStatusRequest struct {
	TaskId               string   `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TaskStatusRequest) Descriptor

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

func (*TaskStatusRequest) GetTaskId

func (m *TaskStatusRequest) GetTaskId() string

func (*TaskStatusRequest) ProtoMessage

func (*TaskStatusRequest) ProtoMessage()

func (*TaskStatusRequest) Reset

func (m *TaskStatusRequest) Reset()

func (*TaskStatusRequest) String

func (m *TaskStatusRequest) String() string

func (*TaskStatusRequest) XXX_DiscardUnknown

func (m *TaskStatusRequest) XXX_DiscardUnknown()

func (*TaskStatusRequest) XXX_Marshal

func (m *TaskStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskStatusRequest) XXX_Merge

func (m *TaskStatusRequest) XXX_Merge(src proto.Message)

func (*TaskStatusRequest) XXX_Size

func (m *TaskStatusRequest) XXX_Size() int

func (*TaskStatusRequest) XXX_Unmarshal

func (m *TaskStatusRequest) XXX_Unmarshal(b []byte) error

type TaskStatusResponse

type TaskStatusResponse struct {
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// Types that are valid to be assigned to Result:
	//	*TaskStatusResponse_Error
	//	*TaskStatusResponse_IpAddresses
	//	*TaskStatusResponse_VmShortInfo
	//	*TaskStatusResponse_VmInfo
	Result               isTaskStatusResponse_Result `protobuf_oneof:"result"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

TaskStatusResponse returns on of the following structured responses.

func (*TaskStatusResponse) Descriptor

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

func (*TaskStatusResponse) GetError

func (m *TaskStatusResponse) GetError() string

func (*TaskStatusResponse) GetIpAddresses

func (m *TaskStatusResponse) GetIpAddresses() *IPAddresses

func (*TaskStatusResponse) GetResult

func (m *TaskStatusResponse) GetResult() isTaskStatusResponse_Result

func (*TaskStatusResponse) GetState

func (m *TaskStatusResponse) GetState() string

func (*TaskStatusResponse) GetVmInfo

func (m *TaskStatusResponse) GetVmInfo() *VMInfo

func (*TaskStatusResponse) GetVmShortInfo

func (m *TaskStatusResponse) GetVmShortInfo() *VMShortInfo

func (*TaskStatusResponse) ProtoMessage

func (*TaskStatusResponse) ProtoMessage()

func (*TaskStatusResponse) Reset

func (m *TaskStatusResponse) Reset()

func (*TaskStatusResponse) String

func (m *TaskStatusResponse) String() string

func (*TaskStatusResponse) XXX_DiscardUnknown

func (m *TaskStatusResponse) XXX_DiscardUnknown()

func (*TaskStatusResponse) XXX_Marshal

func (m *TaskStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskStatusResponse) XXX_Merge

func (m *TaskStatusResponse) XXX_Merge(src proto.Message)

func (*TaskStatusResponse) XXX_OneofWrappers

func (*TaskStatusResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*TaskStatusResponse) XXX_Size

func (m *TaskStatusResponse) XXX_Size() int

func (*TaskStatusResponse) XXX_Unmarshal

func (m *TaskStatusResponse) XXX_Unmarshal(b []byte) error

type TaskStatusResponse_Error

type TaskStatusResponse_Error struct {
	Error string `protobuf:"bytes,10,opt,name=error,proto3,oneof"`
}

type TaskStatusResponse_IpAddresses

type TaskStatusResponse_IpAddresses struct {
	IpAddresses *IPAddresses `protobuf:"bytes,11,opt,name=ip_addresses,json=ipAddresses,proto3,oneof"`
}

type TaskStatusResponse_VmInfo

type TaskStatusResponse_VmInfo struct {
	VmInfo *VMInfo `protobuf:"bytes,13,opt,name=vm_info,json=vmInfo,proto3,oneof"`
}

type TaskStatusResponse_VmShortInfo

type TaskStatusResponse_VmShortInfo struct {
	VmShortInfo *VMShortInfo `protobuf:"bytes,12,opt,name=vm_short_info,json=vmShortInfo,proto3,oneof"`
}

type VMDeployRequest

type VMDeployRequest struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	OvaUrl     string `protobuf:"bytes,2,opt,name=ova_url,json=ovaUrl,proto3" json:"ova_url,omitempty"`
	Datacenter string `protobuf:"bytes,3,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	Folder     string `protobuf:"bytes,4,opt,name=folder,proto3" json:"folder,omitempty"`
	Annotation string `protobuf:"bytes,5,opt,name=annotation,proto3" json:"annotation,omitempty"`
	// "OVF network": "ESXi network"
	Networks             map[string]string                  `` /* 158-byte string literal not displayed */
	Datastores           *VMDeployRequest_Datastore         `protobuf:"bytes,11,opt,name=datastores,proto3" json:"datastores,omitempty"`
	ComputerResources    *VMDeployRequest_ComputerResources `protobuf:"bytes,12,opt,name=computer_resources,json=computerResources,proto3" json:"computer_resources,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

func (*VMDeployRequest) Descriptor

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

func (*VMDeployRequest) GetAnnotation

func (m *VMDeployRequest) GetAnnotation() string

func (*VMDeployRequest) GetComputerResources

func (m *VMDeployRequest) GetComputerResources() *VMDeployRequest_ComputerResources

func (*VMDeployRequest) GetDatacenter

func (m *VMDeployRequest) GetDatacenter() string

func (*VMDeployRequest) GetDatastores

func (m *VMDeployRequest) GetDatastores() *VMDeployRequest_Datastore

func (*VMDeployRequest) GetFolder

func (m *VMDeployRequest) GetFolder() string

func (*VMDeployRequest) GetName

func (m *VMDeployRequest) GetName() string

func (*VMDeployRequest) GetNetworks

func (m *VMDeployRequest) GetNetworks() map[string]string

func (*VMDeployRequest) GetOvaUrl

func (m *VMDeployRequest) GetOvaUrl() string

func (*VMDeployRequest) ProtoMessage

func (*VMDeployRequest) ProtoMessage()

func (*VMDeployRequest) Reset

func (m *VMDeployRequest) Reset()

func (*VMDeployRequest) String

func (m *VMDeployRequest) String() string

func (*VMDeployRequest) XXX_DiscardUnknown

func (m *VMDeployRequest) XXX_DiscardUnknown()

func (*VMDeployRequest) XXX_Marshal

func (m *VMDeployRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMDeployRequest) XXX_Merge

func (m *VMDeployRequest) XXX_Merge(src proto.Message)

func (*VMDeployRequest) XXX_Size

func (m *VMDeployRequest) XXX_Size() int

func (*VMDeployRequest) XXX_Unmarshal

func (m *VMDeployRequest) XXX_Unmarshal(b []byte) error

type VMDeployRequest_ComputerResources

type VMDeployRequest_ComputerResources struct {
	Type                 VMDeployRequest_ComputerResources_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api.v1.VMDeployRequest_ComputerResources_Type" json:"type,omitempty"`
	Path                 string                                 `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
	XXX_unrecognized     []byte                                 `json:"-"`
	XXX_sizecache        int32                                  `json:"-"`
}

Describes a computer resource. Such as single host or cluster.

func (*VMDeployRequest_ComputerResources) Descriptor

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

func (*VMDeployRequest_ComputerResources) GetPath

func (*VMDeployRequest_ComputerResources) GetType

func (*VMDeployRequest_ComputerResources) ProtoMessage

func (*VMDeployRequest_ComputerResources) ProtoMessage()

func (*VMDeployRequest_ComputerResources) Reset

func (*VMDeployRequest_ComputerResources) String

func (*VMDeployRequest_ComputerResources) XXX_DiscardUnknown

func (m *VMDeployRequest_ComputerResources) XXX_DiscardUnknown()

func (*VMDeployRequest_ComputerResources) XXX_Marshal

func (m *VMDeployRequest_ComputerResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMDeployRequest_ComputerResources) XXX_Merge

func (*VMDeployRequest_ComputerResources) XXX_Size

func (m *VMDeployRequest_ComputerResources) XXX_Size() int

func (*VMDeployRequest_ComputerResources) XXX_Unmarshal

func (m *VMDeployRequest_ComputerResources) XXX_Unmarshal(b []byte) error

type VMDeployRequest_ComputerResources_Type

type VMDeployRequest_ComputerResources_Type int32

Computer Resource Type.

const (
	// zero value
	VMDeployRequest_ComputerResources_TYPE_INVALID VMDeployRequest_ComputerResources_Type = 0
	// host
	VMDeployRequest_ComputerResources_TYPE_HOST VMDeployRequest_ComputerResources_Type = 1
	// cluster
	VMDeployRequest_ComputerResources_TYPE_CLUSTER VMDeployRequest_ComputerResources_Type = 2
	// resource pool
	VMDeployRequest_ComputerResources_TYPE_RP VMDeployRequest_ComputerResources_Type = 3
)

func (VMDeployRequest_ComputerResources_Type) EnumDescriptor

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

func (VMDeployRequest_ComputerResources_Type) String

type VMDeployRequest_Datastore

type VMDeployRequest_Datastore struct {
	Type                 VMDeployRequest_Datastore_Type `protobuf:"varint,1,opt,name=type,proto3,enum=api.v1.VMDeployRequest_Datastore_Type" json:"type,omitempty"`
	Names                []string                       `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

Describe a datastore.

func (*VMDeployRequest_Datastore) Descriptor

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

func (*VMDeployRequest_Datastore) GetNames

func (m *VMDeployRequest_Datastore) GetNames() []string

func (*VMDeployRequest_Datastore) GetType

func (*VMDeployRequest_Datastore) ProtoMessage

func (*VMDeployRequest_Datastore) ProtoMessage()

func (*VMDeployRequest_Datastore) Reset

func (m *VMDeployRequest_Datastore) Reset()

func (*VMDeployRequest_Datastore) String

func (m *VMDeployRequest_Datastore) String() string

func (*VMDeployRequest_Datastore) XXX_DiscardUnknown

func (m *VMDeployRequest_Datastore) XXX_DiscardUnknown()

func (*VMDeployRequest_Datastore) XXX_Marshal

func (m *VMDeployRequest_Datastore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMDeployRequest_Datastore) XXX_Merge

func (m *VMDeployRequest_Datastore) XXX_Merge(src proto.Message)

func (*VMDeployRequest_Datastore) XXX_Size

func (m *VMDeployRequest_Datastore) XXX_Size() int

func (*VMDeployRequest_Datastore) XXX_Unmarshal

func (m *VMDeployRequest_Datastore) XXX_Unmarshal(b []byte) error

type VMDeployRequest_Datastore_Type

type VMDeployRequest_Datastore_Type int32

Storage type. If 'cluster' type was chosen then Janna try to get DRS recommendation to choose proper 'datastore'.

const (
	// zero value
	VMDeployRequest_Datastore_TYPE_INVALID VMDeployRequest_Datastore_Type = 0
	// cluster. DRS will be applied.
	VMDeployRequest_Datastore_TYPE_CLUSTER VMDeployRequest_Datastore_Type = 1
	// single datastore.
	VMDeployRequest_Datastore_TYPE_DATASTORE VMDeployRequest_Datastore_Type = 2
)

func (VMDeployRequest_Datastore_Type) EnumDescriptor

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

func (VMDeployRequest_Datastore_Type) String

type VMDeployResponse

type VMDeployResponse struct {
	TaskId               string   `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VMDeployResponse) Descriptor

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

func (*VMDeployResponse) GetTaskId

func (m *VMDeployResponse) GetTaskId() string

func (*VMDeployResponse) ProtoMessage

func (*VMDeployResponse) ProtoMessage()

func (*VMDeployResponse) Reset

func (m *VMDeployResponse) Reset()

func (*VMDeployResponse) String

func (m *VMDeployResponse) String() string

func (*VMDeployResponse) XXX_DiscardUnknown

func (m *VMDeployResponse) XXX_DiscardUnknown()

func (*VMDeployResponse) XXX_Marshal

func (m *VMDeployResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMDeployResponse) XXX_Merge

func (m *VMDeployResponse) XXX_Merge(src proto.Message)

func (*VMDeployResponse) XXX_Size

func (m *VMDeployResponse) XXX_Size() int

func (*VMDeployResponse) XXX_Unmarshal

func (m *VMDeployResponse) XXX_Unmarshal(b []byte) error

type VMInfo

type VMInfo struct {
	Name                 string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Config               *VMInfo_Config  `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Runtime              *VMInfo_Runtime `protobuf:"bytes,3,opt,name=runtime,proto3" json:"runtime,omitempty"`
	Guest                *VMInfo_Guest   `protobuf:"bytes,4,opt,name=guest,proto3" json:"guest,omitempty"`
	Summary              *VMInfo_Summary `protobuf:"bytes,5,opt,name=summary,proto3" json:"summary,omitempty"`
	Datastore            string          `protobuf:"bytes,16,opt,name=datastore,proto3" json:"datastore,omitempty"`
	Network              string          `protobuf:"bytes,17,opt,name=network,proto3" json:"network,omitempty"`
	GuestHeartbeatStatus string          `protobuf:"bytes,18,opt,name=guest_heartbeat_status,json=guestHeartbeatStatus,proto3" json:"guest_heartbeat_status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

VMInfo keeps data about a Virtual Machine.

func (*VMInfo) Descriptor

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

func (*VMInfo) GetConfig

func (m *VMInfo) GetConfig() *VMInfo_Config

func (*VMInfo) GetDatastore

func (m *VMInfo) GetDatastore() string

func (*VMInfo) GetGuest

func (m *VMInfo) GetGuest() *VMInfo_Guest

func (*VMInfo) GetGuestHeartbeatStatus

func (m *VMInfo) GetGuestHeartbeatStatus() string

func (*VMInfo) GetName

func (m *VMInfo) GetName() string

func (*VMInfo) GetNetwork

func (m *VMInfo) GetNetwork() string

func (*VMInfo) GetRuntime

func (m *VMInfo) GetRuntime() *VMInfo_Runtime

func (*VMInfo) GetSummary

func (m *VMInfo) GetSummary() *VMInfo_Summary

func (*VMInfo) ProtoMessage

func (*VMInfo) ProtoMessage()

func (*VMInfo) Reset

func (m *VMInfo) Reset()

func (*VMInfo) String

func (m *VMInfo) String() string

func (*VMInfo) XXX_DiscardUnknown

func (m *VMInfo) XXX_DiscardUnknown()

func (*VMInfo) XXX_Marshal

func (m *VMInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfo) XXX_Merge

func (m *VMInfo) XXX_Merge(src proto.Message)

func (*VMInfo) XXX_Size

func (m *VMInfo) XXX_Size() int

func (*VMInfo) XXX_Unmarshal

func (m *VMInfo) XXX_Unmarshal(b []byte) error

type VMInfoRequest

type VMInfoRequest struct {
	VmUuid               string   `protobuf:"bytes,1,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
	Datacenter           string   `protobuf:"bytes,2,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VMInfoRequest) Descriptor

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

func (*VMInfoRequest) GetDatacenter

func (m *VMInfoRequest) GetDatacenter() string

func (*VMInfoRequest) GetVmUuid

func (m *VMInfoRequest) GetVmUuid() string

func (*VMInfoRequest) ProtoMessage

func (*VMInfoRequest) ProtoMessage()

func (*VMInfoRequest) Reset

func (m *VMInfoRequest) Reset()

func (*VMInfoRequest) String

func (m *VMInfoRequest) String() string

func (*VMInfoRequest) XXX_DiscardUnknown

func (m *VMInfoRequest) XXX_DiscardUnknown()

func (*VMInfoRequest) XXX_Marshal

func (m *VMInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfoRequest) XXX_Merge

func (m *VMInfoRequest) XXX_Merge(src proto.Message)

func (*VMInfoRequest) XXX_Size

func (m *VMInfoRequest) XXX_Size() int

func (*VMInfoRequest) XXX_Unmarshal

func (m *VMInfoRequest) XXX_Unmarshal(b []byte) error

type VMInfoResponse

type VMInfoResponse struct {
	TaskId               string   `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VMInfoResponse) Descriptor

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

func (*VMInfoResponse) GetTaskId

func (m *VMInfoResponse) GetTaskId() string

func (*VMInfoResponse) ProtoMessage

func (*VMInfoResponse) ProtoMessage()

func (*VMInfoResponse) Reset

func (m *VMInfoResponse) Reset()

func (*VMInfoResponse) String

func (m *VMInfoResponse) String() string

func (*VMInfoResponse) XXX_DiscardUnknown

func (m *VMInfoResponse) XXX_DiscardUnknown()

func (*VMInfoResponse) XXX_Marshal

func (m *VMInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfoResponse) XXX_Merge

func (m *VMInfoResponse) XXX_Merge(src proto.Message)

func (*VMInfoResponse) XXX_Size

func (m *VMInfoResponse) XXX_Size() int

func (*VMInfoResponse) XXX_Unmarshal

func (m *VMInfoResponse) XXX_Unmarshal(b []byte) error

type VMInfo_Config

type VMInfo_Config struct {
	ChangeVersion        string   `protobuf:"bytes,1,opt,name=change_version,json=changeVersion,proto3" json:"change_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Config.

func (*VMInfo_Config) Descriptor

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

func (*VMInfo_Config) GetChangeVersion

func (m *VMInfo_Config) GetChangeVersion() string

func (*VMInfo_Config) ProtoMessage

func (*VMInfo_Config) ProtoMessage()

func (*VMInfo_Config) Reset

func (m *VMInfo_Config) Reset()

func (*VMInfo_Config) String

func (m *VMInfo_Config) String() string

func (*VMInfo_Config) XXX_DiscardUnknown

func (m *VMInfo_Config) XXX_DiscardUnknown()

func (*VMInfo_Config) XXX_Marshal

func (m *VMInfo_Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfo_Config) XXX_Merge

func (m *VMInfo_Config) XXX_Merge(src proto.Message)

func (*VMInfo_Config) XXX_Size

func (m *VMInfo_Config) XXX_Size() int

func (*VMInfo_Config) XXX_Unmarshal

func (m *VMInfo_Config) XXX_Unmarshal(b []byte) error

type VMInfo_Guest

type VMInfo_Guest struct {
	ToolsStatus          string   `protobuf:"bytes,1,opt,name=tools_status,json=toolsStatus,proto3" json:"tools_status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Guest.

func (*VMInfo_Guest) Descriptor

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

func (*VMInfo_Guest) GetToolsStatus

func (m *VMInfo_Guest) GetToolsStatus() string

func (*VMInfo_Guest) ProtoMessage

func (*VMInfo_Guest) ProtoMessage()

func (*VMInfo_Guest) Reset

func (m *VMInfo_Guest) Reset()

func (*VMInfo_Guest) String

func (m *VMInfo_Guest) String() string

func (*VMInfo_Guest) XXX_DiscardUnknown

func (m *VMInfo_Guest) XXX_DiscardUnknown()

func (*VMInfo_Guest) XXX_Marshal

func (m *VMInfo_Guest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfo_Guest) XXX_Merge

func (m *VMInfo_Guest) XXX_Merge(src proto.Message)

func (*VMInfo_Guest) XXX_Size

func (m *VMInfo_Guest) XXX_Size() int

func (*VMInfo_Guest) XXX_Unmarshal

func (m *VMInfo_Guest) XXX_Unmarshal(b []byte) error

type VMInfo_Runtime

type VMInfo_Runtime struct {
	Host                 string   `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Runtime.

func (*VMInfo_Runtime) Descriptor

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

func (*VMInfo_Runtime) GetHost

func (m *VMInfo_Runtime) GetHost() string

func (*VMInfo_Runtime) ProtoMessage

func (*VMInfo_Runtime) ProtoMessage()

func (*VMInfo_Runtime) Reset

func (m *VMInfo_Runtime) Reset()

func (*VMInfo_Runtime) String

func (m *VMInfo_Runtime) String() string

func (*VMInfo_Runtime) XXX_DiscardUnknown

func (m *VMInfo_Runtime) XXX_DiscardUnknown()

func (*VMInfo_Runtime) XXX_Marshal

func (m *VMInfo_Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfo_Runtime) XXX_Merge

func (m *VMInfo_Runtime) XXX_Merge(src proto.Message)

func (*VMInfo_Runtime) XXX_Size

func (m *VMInfo_Runtime) XXX_Size() int

func (*VMInfo_Runtime) XXX_Unmarshal

func (m *VMInfo_Runtime) XXX_Unmarshal(b []byte) error

type VMInfo_Summary

type VMInfo_Summary struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Summary.

func (*VMInfo_Summary) Descriptor

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

func (*VMInfo_Summary) ProtoMessage

func (*VMInfo_Summary) ProtoMessage()

func (*VMInfo_Summary) Reset

func (m *VMInfo_Summary) Reset()

func (*VMInfo_Summary) String

func (m *VMInfo_Summary) String() string

func (*VMInfo_Summary) XXX_DiscardUnknown

func (m *VMInfo_Summary) XXX_DiscardUnknown()

func (*VMInfo_Summary) XXX_Marshal

func (m *VMInfo_Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfo_Summary) XXX_Merge

func (m *VMInfo_Summary) XXX_Merge(src proto.Message)

func (*VMInfo_Summary) XXX_Size

func (m *VMInfo_Summary) XXX_Size() int

func (*VMInfo_Summary) XXX_Unmarshal

func (m *VMInfo_Summary) XXX_Unmarshal(b []byte) error

type VMInfo_Summary_Config

type VMInfo_Summary_Config struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Template             bool     `protobuf:"varint,2,opt,name=template,proto3" json:"template,omitempty"`
	VmPathName           string   `protobuf:"bytes,3,opt,name=vm_path_name,json=vmPathName,proto3" json:"vm_path_name,omitempty"`
	MwmorySizeMb         int32    `protobuf:"varint,4,opt,name=mwmory_size_mb,json=mwmorySizeMb,proto3" json:"mwmory_size_mb,omitempty"`
	CpuReservation       int32    `protobuf:"varint,5,opt,name=cpu_reservation,json=cpuReservation,proto3" json:"cpu_reservation,omitempty"`
	MemoryReservation    int32    `protobuf:"varint,6,opt,name=memory_reservation,json=memoryReservation,proto3" json:"memory_reservation,omitempty"`
	NumCpu               int32    `protobuf:"varint,7,opt,name=num_cpu,json=numCpu,proto3" json:"num_cpu,omitempty"`
	NumEthernetCards     int32    `protobuf:"varint,8,opt,name=num_ethernet_cards,json=numEthernetCards,proto3" json:"num_ethernet_cards,omitempty"`
	NumVirtualDisks      int32    `protobuf:"varint,9,opt,name=num_virtual_disks,json=numVirtualDisks,proto3" json:"num_virtual_disks,omitempty"`
	Uuid                 string   `protobuf:"bytes,10,opt,name=uuid,proto3" json:"uuid,omitempty"`
	InstanceUuid         string   `protobuf:"bytes,11,opt,name=instance_uuid,json=instanceUuid,proto3" json:"instance_uuid,omitempty"`
	GuestId              string   `protobuf:"bytes,12,opt,name=guest_id,json=guestId,proto3" json:"guest_id,omitempty"`
	GuestFullName        string   `protobuf:"bytes,13,opt,name=guest_full_name,json=guestFullName,proto3" json:"guest_full_name,omitempty"`
	Annotation           string   `protobuf:"bytes,14,opt,name=annotation,proto3" json:"annotation,omitempty"`
	InstallBootRequired  bool     `protobuf:"varint,16,opt,name=install_boot_required,json=installBootRequired,proto3" json:"install_boot_required,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Config.

func (*VMInfo_Summary_Config) Descriptor

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

func (*VMInfo_Summary_Config) GetAnnotation

func (m *VMInfo_Summary_Config) GetAnnotation() string

func (*VMInfo_Summary_Config) GetCpuReservation

func (m *VMInfo_Summary_Config) GetCpuReservation() int32

func (*VMInfo_Summary_Config) GetGuestFullName

func (m *VMInfo_Summary_Config) GetGuestFullName() string

func (*VMInfo_Summary_Config) GetGuestId

func (m *VMInfo_Summary_Config) GetGuestId() string

func (*VMInfo_Summary_Config) GetInstallBootRequired

func (m *VMInfo_Summary_Config) GetInstallBootRequired() bool

func (*VMInfo_Summary_Config) GetInstanceUuid

func (m *VMInfo_Summary_Config) GetInstanceUuid() string

func (*VMInfo_Summary_Config) GetMemoryReservation

func (m *VMInfo_Summary_Config) GetMemoryReservation() int32

func (*VMInfo_Summary_Config) GetMwmorySizeMb

func (m *VMInfo_Summary_Config) GetMwmorySizeMb() int32

func (*VMInfo_Summary_Config) GetName

func (m *VMInfo_Summary_Config) GetName() string

func (*VMInfo_Summary_Config) GetNumCpu

func (m *VMInfo_Summary_Config) GetNumCpu() int32

func (*VMInfo_Summary_Config) GetNumEthernetCards

func (m *VMInfo_Summary_Config) GetNumEthernetCards() int32

func (*VMInfo_Summary_Config) GetNumVirtualDisks

func (m *VMInfo_Summary_Config) GetNumVirtualDisks() int32

func (*VMInfo_Summary_Config) GetTemplate

func (m *VMInfo_Summary_Config) GetTemplate() bool

func (*VMInfo_Summary_Config) GetUuid

func (m *VMInfo_Summary_Config) GetUuid() string

func (*VMInfo_Summary_Config) GetVmPathName

func (m *VMInfo_Summary_Config) GetVmPathName() string

func (*VMInfo_Summary_Config) ProtoMessage

func (*VMInfo_Summary_Config) ProtoMessage()

func (*VMInfo_Summary_Config) Reset

func (m *VMInfo_Summary_Config) Reset()

func (*VMInfo_Summary_Config) String

func (m *VMInfo_Summary_Config) String() string

func (*VMInfo_Summary_Config) XXX_DiscardUnknown

func (m *VMInfo_Summary_Config) XXX_DiscardUnknown()

func (*VMInfo_Summary_Config) XXX_Marshal

func (m *VMInfo_Summary_Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfo_Summary_Config) XXX_Merge

func (m *VMInfo_Summary_Config) XXX_Merge(src proto.Message)

func (*VMInfo_Summary_Config) XXX_Size

func (m *VMInfo_Summary_Config) XXX_Size() int

func (*VMInfo_Summary_Config) XXX_Unmarshal

func (m *VMInfo_Summary_Config) XXX_Unmarshal(b []byte) error

type VMInfo_Summary_Storage

type VMInfo_Summary_Storage struct {
	Committed            int64    `protobuf:"varint,1,opt,name=committed,proto3" json:"committed,omitempty"`
	Uncommitted          int64    `protobuf:"varint,2,opt,name=uncommitted,proto3" json:"uncommitted,omitempty"`
	Unshared             int64    `protobuf:"varint,3,opt,name=unshared,proto3" json:"unshared,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Storage.

func (*VMInfo_Summary_Storage) Descriptor

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

func (*VMInfo_Summary_Storage) GetCommitted

func (m *VMInfo_Summary_Storage) GetCommitted() int64

func (*VMInfo_Summary_Storage) GetUncommitted

func (m *VMInfo_Summary_Storage) GetUncommitted() int64

func (*VMInfo_Summary_Storage) GetUnshared

func (m *VMInfo_Summary_Storage) GetUnshared() int64

func (*VMInfo_Summary_Storage) ProtoMessage

func (*VMInfo_Summary_Storage) ProtoMessage()

func (*VMInfo_Summary_Storage) Reset

func (m *VMInfo_Summary_Storage) Reset()

func (*VMInfo_Summary_Storage) String

func (m *VMInfo_Summary_Storage) String() string

func (*VMInfo_Summary_Storage) XXX_DiscardUnknown

func (m *VMInfo_Summary_Storage) XXX_DiscardUnknown()

func (*VMInfo_Summary_Storage) XXX_Marshal

func (m *VMInfo_Summary_Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMInfo_Summary_Storage) XXX_Merge

func (m *VMInfo_Summary_Storage) XXX_Merge(src proto.Message)

func (*VMInfo_Summary_Storage) XXX_Size

func (m *VMInfo_Summary_Storage) XXX_Size() int

func (*VMInfo_Summary_Storage) XXX_Unmarshal

func (m *VMInfo_Summary_Storage) XXX_Unmarshal(b []byte) error

type VMListRequest

type VMListRequest struct {
	Datacenter           string   `protobuf:"bytes,1,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	Folder               string   `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
	ResourcePool         string   `protobuf:"bytes,3,opt,name=resource_pool,json=resourcePool,proto3" json:"resource_pool,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VMListRequest) Descriptor

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

func (*VMListRequest) GetDatacenter

func (m *VMListRequest) GetDatacenter() string

func (*VMListRequest) GetFolder

func (m *VMListRequest) GetFolder() string

func (*VMListRequest) GetResourcePool

func (m *VMListRequest) GetResourcePool() string

func (*VMListRequest) ProtoMessage

func (*VMListRequest) ProtoMessage()

func (*VMListRequest) Reset

func (m *VMListRequest) Reset()

func (*VMListRequest) String

func (m *VMListRequest) String() string

func (*VMListRequest) XXX_DiscardUnknown

func (m *VMListRequest) XXX_DiscardUnknown()

func (*VMListRequest) XXX_Marshal

func (m *VMListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMListRequest) XXX_Merge

func (m *VMListRequest) XXX_Merge(src proto.Message)

func (*VMListRequest) XXX_Size

func (m *VMListRequest) XXX_Size() int

func (*VMListRequest) XXX_Unmarshal

func (m *VMListRequest) XXX_Unmarshal(b []byte) error

type VMListResponse

type VMListResponse struct {
	TaskId               string   `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VMListResponse) Descriptor

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

func (*VMListResponse) GetTaskId

func (m *VMListResponse) GetTaskId() string

func (*VMListResponse) ProtoMessage

func (*VMListResponse) ProtoMessage()

func (*VMListResponse) Reset

func (m *VMListResponse) Reset()

func (*VMListResponse) String

func (m *VMListResponse) String() string

func (*VMListResponse) XXX_DiscardUnknown

func (m *VMListResponse) XXX_DiscardUnknown()

func (*VMListResponse) XXX_Marshal

func (m *VMListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMListResponse) XXX_Merge

func (m *VMListResponse) XXX_Merge(src proto.Message)

func (*VMListResponse) XXX_Size

func (m *VMListResponse) XXX_Size() int

func (*VMListResponse) XXX_Unmarshal

func (m *VMListResponse) XXX_Unmarshal(b []byte) error

type VMPowerRequest

type VMPowerRequest struct {
	VmUuid               string                             `protobuf:"bytes,1,opt,name=vm_uuid,json=vmUuid,proto3" json:"vm_uuid,omitempty"`
	VmPowerRequestBody   *VMPowerRequest_VMPowerRequestBody `protobuf:"bytes,2,opt,name=vm_power_request_body,json=vmPowerRequestBody,proto3" json:"vm_power_request_body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

func (*VMPowerRequest) Descriptor

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

func (*VMPowerRequest) GetVmPowerRequestBody

func (m *VMPowerRequest) GetVmPowerRequestBody() *VMPowerRequest_VMPowerRequestBody

func (*VMPowerRequest) GetVmUuid

func (m *VMPowerRequest) GetVmUuid() string

func (*VMPowerRequest) ProtoMessage

func (*VMPowerRequest) ProtoMessage()

func (*VMPowerRequest) Reset

func (m *VMPowerRequest) Reset()

func (*VMPowerRequest) String

func (m *VMPowerRequest) String() string

func (*VMPowerRequest) XXX_DiscardUnknown

func (m *VMPowerRequest) XXX_DiscardUnknown()

func (*VMPowerRequest) XXX_Marshal

func (m *VMPowerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMPowerRequest) XXX_Merge

func (m *VMPowerRequest) XXX_Merge(src proto.Message)

func (*VMPowerRequest) XXX_Size

func (m *VMPowerRequest) XXX_Size() int

func (*VMPowerRequest) XXX_Unmarshal

func (m *VMPowerRequest) XXX_Unmarshal(b []byte) error

type VMPowerRequest_VMPowerRequestBody

type VMPowerRequest_VMPowerRequestBody struct {
	State                string   `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	Datacenter           string   `protobuf:"bytes,2,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

VMPowerRequestBody is a body of the request.

func (*VMPowerRequest_VMPowerRequestBody) Descriptor

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

func (*VMPowerRequest_VMPowerRequestBody) GetDatacenter

func (m *VMPowerRequest_VMPowerRequestBody) GetDatacenter() string

func (*VMPowerRequest_VMPowerRequestBody) GetState

func (*VMPowerRequest_VMPowerRequestBody) ProtoMessage

func (*VMPowerRequest_VMPowerRequestBody) ProtoMessage()

func (*VMPowerRequest_VMPowerRequestBody) Reset

func (*VMPowerRequest_VMPowerRequestBody) String

func (*VMPowerRequest_VMPowerRequestBody) XXX_DiscardUnknown

func (m *VMPowerRequest_VMPowerRequestBody) XXX_DiscardUnknown()

func (*VMPowerRequest_VMPowerRequestBody) XXX_Marshal

func (m *VMPowerRequest_VMPowerRequestBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMPowerRequest_VMPowerRequestBody) XXX_Merge

func (*VMPowerRequest_VMPowerRequestBody) XXX_Size

func (m *VMPowerRequest_VMPowerRequestBody) XXX_Size() int

func (*VMPowerRequest_VMPowerRequestBody) XXX_Unmarshal

func (m *VMPowerRequest_VMPowerRequestBody) XXX_Unmarshal(b []byte) error

type VMPowerResponse

type VMPowerResponse struct {
	TaskId               string   `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VMPowerResponse) Descriptor

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

func (*VMPowerResponse) GetTaskId

func (m *VMPowerResponse) GetTaskId() string

func (*VMPowerResponse) ProtoMessage

func (*VMPowerResponse) ProtoMessage()

func (*VMPowerResponse) Reset

func (m *VMPowerResponse) Reset()

func (*VMPowerResponse) String

func (m *VMPowerResponse) String() string

func (*VMPowerResponse) XXX_DiscardUnknown

func (m *VMPowerResponse) XXX_DiscardUnknown()

func (*VMPowerResponse) XXX_Marshal

func (m *VMPowerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMPowerResponse) XXX_Merge

func (m *VMPowerResponse) XXX_Merge(src proto.Message)

func (*VMPowerResponse) XXX_Size

func (m *VMPowerResponse) XXX_Size() int

func (*VMPowerResponse) XXX_Unmarshal

func (m *VMPowerResponse) XXX_Unmarshal(b []byte) error

type VMShortInfo

type VMShortInfo struct {
	Name                 string       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PowerState           *PowerState  `protobuf:"bytes,2,opt,name=power_state,json=powerState,proto3" json:"power_state,omitempty"`
	IpAddresses          *IPAddresses `protobuf:"bytes,3,opt,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"`
	CpuCount             int32        `protobuf:"varint,4,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
	MemorySizeMib        int32        `protobuf:"varint,5,opt,name=memory_size_mib,json=memorySizeMib,proto3" json:"memory_size_mib,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

VMShortInfo keeps commonly used information about a Virtual Machine.

func (*VMShortInfo) Descriptor

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

func (*VMShortInfo) GetCpuCount

func (m *VMShortInfo) GetCpuCount() int32

func (*VMShortInfo) GetIpAddresses

func (m *VMShortInfo) GetIpAddresses() *IPAddresses

func (*VMShortInfo) GetMemorySizeMib

func (m *VMShortInfo) GetMemorySizeMib() int32

func (*VMShortInfo) GetName

func (m *VMShortInfo) GetName() string

func (*VMShortInfo) GetPowerState

func (m *VMShortInfo) GetPowerState() *PowerState

func (*VMShortInfo) ProtoMessage

func (*VMShortInfo) ProtoMessage()

func (*VMShortInfo) Reset

func (m *VMShortInfo) Reset()

func (*VMShortInfo) String

func (m *VMShortInfo) String() string

func (*VMShortInfo) XXX_DiscardUnknown

func (m *VMShortInfo) XXX_DiscardUnknown()

func (*VMShortInfo) XXX_Marshal

func (m *VMShortInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMShortInfo) XXX_Merge

func (m *VMShortInfo) XXX_Merge(src proto.Message)

func (*VMShortInfo) XXX_Size

func (m *VMShortInfo) XXX_Size() int

func (*VMShortInfo) XXX_Unmarshal

func (m *VMShortInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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