hostv1

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HostService_AddHost_FullMethodName                   = "/cloudstack.management.host.v1.HostService/AddHost"
	HostService_AddSecondaryStorage_FullMethodName       = "/cloudstack.management.host.v1.HostService/AddSecondaryStorage"
	HostService_CancelHostAsDegraded_FullMethodName      = "/cloudstack.management.host.v1.HostService/CancelHostAsDegraded"
	HostService_CancelHostMaintenance_FullMethodName     = "/cloudstack.management.host.v1.HostService/CancelHostMaintenance"
	HostService_DeclareHostAsDegraded_FullMethodName     = "/cloudstack.management.host.v1.HostService/DeclareHostAsDegraded"
	HostService_DeleteHost_FullMethodName                = "/cloudstack.management.host.v1.HostService/DeleteHost"
	HostService_FindHostsForMigration_FullMethodName     = "/cloudstack.management.host.v1.HostService/FindHostsForMigration"
	HostService_ListHostTags_FullMethodName              = "/cloudstack.management.host.v1.HostService/ListHostTags"
	HostService_ListHosts_FullMethodName                 = "/cloudstack.management.host.v1.HostService/ListHosts"
	HostService_PrepareForHostMaintenance_FullMethodName = "/cloudstack.management.host.v1.HostService/PrepareForHostMaintenance"
	HostService_ReconnectHost_FullMethodName             = "/cloudstack.management.host.v1.HostService/ReconnectHost"
	HostService_ReleaseHostReservation_FullMethodName    = "/cloudstack.management.host.v1.HostService/ReleaseHostReservation"
	HostService_UpdateHost_FullMethodName                = "/cloudstack.management.host.v1.HostService/UpdateHost"
	HostService_UpdateHostPassword_FullMethodName        = "/cloudstack.management.host.v1.HostService/UpdateHostPassword"
)

Variables

View Source
var (
	AllocationStateType_name = map[int32]string{
		0: "ALLOCATION_STATE_TYPE_UNSPECIFIED",
		1: "ALLOCATION_STATE_TYPE_V__ENABLE",
	}
	AllocationStateType_value = map[string]int32{
		"ALLOCATION_STATE_TYPE_UNSPECIFIED": 0,
		"ALLOCATION_STATE_TYPE_V__ENABLE":   1,
	}
)

Enum value maps for AllocationStateType.

View Source
var File_cloudstack_management_host_v1_host_gen_proto protoreflect.FileDescriptor
View Source
var HostService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.host.v1.HostService",
	HandlerType: (*HostServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddHost",
			Handler:    _HostService_AddHost_Handler,
		},
		{
			MethodName: "AddSecondaryStorage",
			Handler:    _HostService_AddSecondaryStorage_Handler,
		},
		{
			MethodName: "CancelHostAsDegraded",
			Handler:    _HostService_CancelHostAsDegraded_Handler,
		},
		{
			MethodName: "CancelHostMaintenance",
			Handler:    _HostService_CancelHostMaintenance_Handler,
		},
		{
			MethodName: "DeclareHostAsDegraded",
			Handler:    _HostService_DeclareHostAsDegraded_Handler,
		},
		{
			MethodName: "DeleteHost",
			Handler:    _HostService_DeleteHost_Handler,
		},
		{
			MethodName: "FindHostsForMigration",
			Handler:    _HostService_FindHostsForMigration_Handler,
		},
		{
			MethodName: "ListHostTags",
			Handler:    _HostService_ListHostTags_Handler,
		},
		{
			MethodName: "ListHosts",
			Handler:    _HostService_ListHosts_Handler,
		},
		{
			MethodName: "PrepareForHostMaintenance",
			Handler:    _HostService_PrepareForHostMaintenance_Handler,
		},
		{
			MethodName: "ReconnectHost",
			Handler:    _HostService_ReconnectHost_Handler,
		},
		{
			MethodName: "ReleaseHostReservation",
			Handler:    _HostService_ReleaseHostReservation_Handler,
		},
		{
			MethodName: "UpdateHost",
			Handler:    _HostService_UpdateHost_Handler,
		},
		{
			MethodName: "UpdateHostPassword",
			Handler:    _HostService_UpdateHostPassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/host/v1/host.gen.proto",
}

HostService_ServiceDesc is the grpc.ServiceDesc for HostService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterHostServiceServer

func RegisterHostServiceServer(s grpc.ServiceRegistrar, srv HostServiceServer)

Types

type AddHostRequest

type AddHostRequest struct {

	// the cluster ID for the host
	ClusterId *int64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId" json:"cluster_id,omitempty"`
	// the cluster name for the host
	ClusterName *string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName" json:"cluster_name,omitempty"`
	// the username for the host; required to be passed for hypervisors other than VMWare
	Username *string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
	// the password for the host; required to be passed for hypervisors other than VMWare
	Password *string `protobuf:"bytes,4,opt,name=password" json:"password,omitempty"`
	// the Pod ID for the host
	PodId *int64 `protobuf:"varint,5,opt,name=pod_id,json=podId" json:"pod_id,omitempty"`
	// the host URL
	Url *string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
	// the Zone ID for the host
	ZoneId *int64 `protobuf:"varint,7,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// hypervisor type of the host
	Hypervisor *string `protobuf:"bytes,8,opt,name=hypervisor" json:"hypervisor,omitempty"`
	// Allocation state of this Host for allocation of new resources
	AllocationState *string `protobuf:"bytes,9,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
	// list of tags to be added to the host
	HostTags     []string `protobuf:"bytes,10,rep,name=host_tags,json=hostTags" json:"host_tags,omitempty"`
	ResponseType *string  `protobuf:"bytes,11,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

AddHostRequest represents the parameters for adds a new host.

func (*AddHostRequest) Descriptor deprecated

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

Deprecated: Use AddHostRequest.ProtoReflect.Descriptor instead.

func (*AddHostRequest) GetAllocationState

func (x *AddHostRequest) GetAllocationState() string

func (*AddHostRequest) GetClusterId

func (x *AddHostRequest) GetClusterId() int64

func (*AddHostRequest) GetClusterName

func (x *AddHostRequest) GetClusterName() string

func (*AddHostRequest) GetHostTags

func (x *AddHostRequest) GetHostTags() []string

func (*AddHostRequest) GetHypervisor

func (x *AddHostRequest) GetHypervisor() string

func (*AddHostRequest) GetPassword

func (x *AddHostRequest) GetPassword() string

func (*AddHostRequest) GetPodId

func (x *AddHostRequest) GetPodId() int64

func (*AddHostRequest) GetResponseType

func (x *AddHostRequest) GetResponseType() string

func (*AddHostRequest) GetUrl

func (x *AddHostRequest) GetUrl() string

func (*AddHostRequest) GetUsername

func (x *AddHostRequest) GetUsername() string

func (*AddHostRequest) GetZoneId

func (x *AddHostRequest) GetZoneId() int64

func (*AddHostRequest) ProtoMessage

func (*AddHostRequest) ProtoMessage()

func (*AddHostRequest) ProtoReflect

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

func (*AddHostRequest) Reset

func (x *AddHostRequest) Reset()

func (*AddHostRequest) String

func (x *AddHostRequest) String() string

type AddHostResponse

type AddHostResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

AddHostResponse represents the response from adds a new host.

func (*AddHostResponse) Descriptor deprecated

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

Deprecated: Use AddHostResponse.ProtoReflect.Descriptor instead.

func (*AddHostResponse) GetResult

func (x *AddHostResponse) GetResult() *Result

func (*AddHostResponse) ProtoMessage

func (*AddHostResponse) ProtoMessage()

func (*AddHostResponse) ProtoReflect

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

func (*AddHostResponse) Reset

func (x *AddHostResponse) Reset()

func (*AddHostResponse) String

func (x *AddHostResponse) String() string

type AddSecondaryStorageRequest

type AddSecondaryStorageRequest struct {

	// the URL for the secondary storage
	Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	// the Zone ID for the secondary storage
	ZoneId       *int64  `protobuf:"varint,2,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	ResponseType *string `protobuf:"bytes,3,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

AddSecondaryStorageRequest represents the parameters for adds secondary storage.

func (*AddSecondaryStorageRequest) Descriptor deprecated

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

Deprecated: Use AddSecondaryStorageRequest.ProtoReflect.Descriptor instead.

func (*AddSecondaryStorageRequest) GetResponseType

func (x *AddSecondaryStorageRequest) GetResponseType() string

func (*AddSecondaryStorageRequest) GetUrl

func (x *AddSecondaryStorageRequest) GetUrl() string

func (*AddSecondaryStorageRequest) GetZoneId

func (x *AddSecondaryStorageRequest) GetZoneId() int64

func (*AddSecondaryStorageRequest) ProtoMessage

func (*AddSecondaryStorageRequest) ProtoMessage()

func (*AddSecondaryStorageRequest) ProtoReflect

func (*AddSecondaryStorageRequest) Reset

func (x *AddSecondaryStorageRequest) Reset()

func (*AddSecondaryStorageRequest) String

func (x *AddSecondaryStorageRequest) String() string

type AddSecondaryStorageResponse

type AddSecondaryStorageResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

AddSecondaryStorageResponse represents the response from adds secondary storage.

func (*AddSecondaryStorageResponse) Descriptor deprecated

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

Deprecated: Use AddSecondaryStorageResponse.ProtoReflect.Descriptor instead.

func (*AddSecondaryStorageResponse) GetResult

func (x *AddSecondaryStorageResponse) GetResult() *Result

func (*AddSecondaryStorageResponse) ProtoMessage

func (*AddSecondaryStorageResponse) ProtoMessage()

func (*AddSecondaryStorageResponse) ProtoReflect

func (*AddSecondaryStorageResponse) Reset

func (x *AddSecondaryStorageResponse) Reset()

func (*AddSecondaryStorageResponse) String

func (x *AddSecondaryStorageResponse) String() string

type AllocationStateType

type AllocationStateType int32

AllocationStateType represents the possible values for Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable

const (
	// Default unspecified value
	AllocationStateType_ALLOCATION_STATE_TYPE_UNSPECIFIED AllocationStateType = 0
	// V__ENABLE value
	AllocationStateType_ALLOCATION_STATE_TYPE_V__ENABLE AllocationStateType = 1
)

func (AllocationStateType) Descriptor

func (AllocationStateType) Enum

func (AllocationStateType) EnumDescriptor deprecated

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

Deprecated: Use AllocationStateType.Descriptor instead.

func (AllocationStateType) Number

func (AllocationStateType) String

func (x AllocationStateType) String() string

func (AllocationStateType) Type

type CancelHostAsDegradedRequest

type CancelHostAsDegradedRequest struct {

	// host ID
	Id            *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

CancelHostAsDegradedRequest represents the parameters for cancel host status from 'degraded'. host will transit back to status 'enabled'.

func (*CancelHostAsDegradedRequest) Descriptor deprecated

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

Deprecated: Use CancelHostAsDegradedRequest.ProtoReflect.Descriptor instead.

func (*CancelHostAsDegradedRequest) GetId

func (*CancelHostAsDegradedRequest) GetInjectedJobId

func (x *CancelHostAsDegradedRequest) GetInjectedJobId() string

func (*CancelHostAsDegradedRequest) GetResponseType

func (x *CancelHostAsDegradedRequest) GetResponseType() string

func (*CancelHostAsDegradedRequest) GetStartEventId

func (x *CancelHostAsDegradedRequest) GetStartEventId() int64

func (*CancelHostAsDegradedRequest) ProtoMessage

func (*CancelHostAsDegradedRequest) ProtoMessage()

func (*CancelHostAsDegradedRequest) ProtoReflect

func (*CancelHostAsDegradedRequest) Reset

func (x *CancelHostAsDegradedRequest) Reset()

func (*CancelHostAsDegradedRequest) String

func (x *CancelHostAsDegradedRequest) String() string

type CancelHostAsDegradedResponse

type CancelHostAsDegradedResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

CancelHostAsDegradedResponse represents the response from cancel host status from 'degraded'. host will transit back to status 'enabled'.

func (*CancelHostAsDegradedResponse) Descriptor deprecated

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

Deprecated: Use CancelHostAsDegradedResponse.ProtoReflect.Descriptor instead.

func (*CancelHostAsDegradedResponse) GetResult

func (x *CancelHostAsDegradedResponse) GetResult() *Result

func (*CancelHostAsDegradedResponse) ProtoMessage

func (*CancelHostAsDegradedResponse) ProtoMessage()

func (*CancelHostAsDegradedResponse) ProtoReflect

func (*CancelHostAsDegradedResponse) Reset

func (x *CancelHostAsDegradedResponse) Reset()

func (*CancelHostAsDegradedResponse) String

type CancelHostMaintenanceRequest

type CancelHostMaintenanceRequest struct {

	// the host ID
	Id            *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

CancelHostMaintenanceRequest represents the parameters for cancels host maintenance.

func (*CancelHostMaintenanceRequest) Descriptor deprecated

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

Deprecated: Use CancelHostMaintenanceRequest.ProtoReflect.Descriptor instead.

func (*CancelHostMaintenanceRequest) GetId

func (*CancelHostMaintenanceRequest) GetInjectedJobId

func (x *CancelHostMaintenanceRequest) GetInjectedJobId() string

func (*CancelHostMaintenanceRequest) GetResponseType

func (x *CancelHostMaintenanceRequest) GetResponseType() string

func (*CancelHostMaintenanceRequest) GetStartEventId

func (x *CancelHostMaintenanceRequest) GetStartEventId() int64

func (*CancelHostMaintenanceRequest) ProtoMessage

func (*CancelHostMaintenanceRequest) ProtoMessage()

func (*CancelHostMaintenanceRequest) ProtoReflect

func (*CancelHostMaintenanceRequest) Reset

func (x *CancelHostMaintenanceRequest) Reset()

func (*CancelHostMaintenanceRequest) String

type CancelHostMaintenanceResponse

type CancelHostMaintenanceResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

CancelHostMaintenanceResponse represents the response from cancels host maintenance.

func (*CancelHostMaintenanceResponse) Descriptor deprecated

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

Deprecated: Use CancelHostMaintenanceResponse.ProtoReflect.Descriptor instead.

func (*CancelHostMaintenanceResponse) GetResult

func (x *CancelHostMaintenanceResponse) GetResult() *Result

func (*CancelHostMaintenanceResponse) ProtoMessage

func (*CancelHostMaintenanceResponse) ProtoMessage()

func (*CancelHostMaintenanceResponse) ProtoReflect

func (*CancelHostMaintenanceResponse) Reset

func (x *CancelHostMaintenanceResponse) Reset()

func (*CancelHostMaintenanceResponse) String

type DeclareHostAsDegradedRequest

type DeclareHostAsDegradedRequest struct {

	// host ID
	Id            *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

DeclareHostAsDegradedRequest represents the parameters for declare host as 'degraded'. host must be on 'disconnected' or 'alert' state. the admin must be sure that there are no vms running on the respective host otherwise this command might corrupted vms that were running on the 'degraded' host.

func (*DeclareHostAsDegradedRequest) Descriptor deprecated

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

Deprecated: Use DeclareHostAsDegradedRequest.ProtoReflect.Descriptor instead.

func (*DeclareHostAsDegradedRequest) GetId

func (*DeclareHostAsDegradedRequest) GetInjectedJobId

func (x *DeclareHostAsDegradedRequest) GetInjectedJobId() string

func (*DeclareHostAsDegradedRequest) GetResponseType

func (x *DeclareHostAsDegradedRequest) GetResponseType() string

func (*DeclareHostAsDegradedRequest) GetStartEventId

func (x *DeclareHostAsDegradedRequest) GetStartEventId() int64

func (*DeclareHostAsDegradedRequest) ProtoMessage

func (*DeclareHostAsDegradedRequest) ProtoMessage()

func (*DeclareHostAsDegradedRequest) ProtoReflect

func (*DeclareHostAsDegradedRequest) Reset

func (x *DeclareHostAsDegradedRequest) Reset()

func (*DeclareHostAsDegradedRequest) String

type DeclareHostAsDegradedResponse

type DeclareHostAsDegradedResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

DeclareHostAsDegradedResponse represents the response from declare host as 'degraded'. host must be on 'disconnected' or 'alert' state. the admin must be sure that there are no vms running on the respective host otherwise this command might corrupted vms that were running on the 'degraded' host.

func (*DeclareHostAsDegradedResponse) Descriptor deprecated

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

Deprecated: Use DeclareHostAsDegradedResponse.ProtoReflect.Descriptor instead.

func (*DeclareHostAsDegradedResponse) GetResult

func (x *DeclareHostAsDegradedResponse) GetResult() *Result

func (*DeclareHostAsDegradedResponse) ProtoMessage

func (*DeclareHostAsDegradedResponse) ProtoMessage()

func (*DeclareHostAsDegradedResponse) ProtoReflect

func (*DeclareHostAsDegradedResponse) Reset

func (x *DeclareHostAsDegradedResponse) Reset()

func (*DeclareHostAsDegradedResponse) String

type DeleteHostRequest

type DeleteHostRequest struct {

	// the host ID
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// Force delete the host. All HA enabled vms running on the host will be put to HA; HA disabled ones will be stopped
	Forced *bool `protobuf:"varint,2,opt,name=forced" json:"forced,omitempty"`
	// Force destroy local storage on this host. All VMs created on this local storage will be destroyed
	ForceDestroyLocalStorage *bool   `` /* 131-byte string literal not displayed */
	ResponseType             *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

DeleteHostRequest represents the parameters for deletes a host.

func (*DeleteHostRequest) Descriptor deprecated

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

Deprecated: Use DeleteHostRequest.ProtoReflect.Descriptor instead.

func (*DeleteHostRequest) GetForceDestroyLocalStorage

func (x *DeleteHostRequest) GetForceDestroyLocalStorage() bool

func (*DeleteHostRequest) GetForced

func (x *DeleteHostRequest) GetForced() bool

func (*DeleteHostRequest) GetId

func (x *DeleteHostRequest) GetId() int64

func (*DeleteHostRequest) GetResponseType

func (x *DeleteHostRequest) GetResponseType() string

func (*DeleteHostRequest) ProtoMessage

func (*DeleteHostRequest) ProtoMessage()

func (*DeleteHostRequest) ProtoReflect

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

func (*DeleteHostRequest) Reset

func (x *DeleteHostRequest) Reset()

func (*DeleteHostRequest) String

func (x *DeleteHostRequest) String() string

type DeleteHostResponse

type DeleteHostResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

DeleteHostResponse represents the response from deletes a host.

func (*DeleteHostResponse) Descriptor deprecated

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

Deprecated: Use DeleteHostResponse.ProtoReflect.Descriptor instead.

func (*DeleteHostResponse) GetResult

func (x *DeleteHostResponse) GetResult() *Result

func (*DeleteHostResponse) ProtoMessage

func (*DeleteHostResponse) ProtoMessage()

func (*DeleteHostResponse) ProtoReflect

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

func (*DeleteHostResponse) Reset

func (x *DeleteHostResponse) Reset()

func (*DeleteHostResponse) String

func (x *DeleteHostResponse) String() string

type FindHostsForMigrationRequest

type FindHostsForMigrationRequest struct {

	// find hosts to which this VM can be migrated and flag the hosts with enough CPU/RAM to host the VM
	VirtualMachineId *int64 `protobuf:"varint,1,opt,name=virtual_machine_id,json=virtualMachineId" json:"virtual_machine_id,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,2,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,3,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,4,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

FindHostsForMigrationRequest represents the parameters for find hosts suitable for migrating a virtual machine.

func (*FindHostsForMigrationRequest) Descriptor deprecated

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

Deprecated: Use FindHostsForMigrationRequest.ProtoReflect.Descriptor instead.

func (*FindHostsForMigrationRequest) GetKeyword

func (x *FindHostsForMigrationRequest) GetKeyword() string

func (*FindHostsForMigrationRequest) GetPage

func (x *FindHostsForMigrationRequest) GetPage() int32

func (*FindHostsForMigrationRequest) GetPageSize

func (x *FindHostsForMigrationRequest) GetPageSize() int32

func (*FindHostsForMigrationRequest) GetResponseType

func (x *FindHostsForMigrationRequest) GetResponseType() string

func (*FindHostsForMigrationRequest) GetVirtualMachineId

func (x *FindHostsForMigrationRequest) GetVirtualMachineId() int64

func (*FindHostsForMigrationRequest) ProtoMessage

func (*FindHostsForMigrationRequest) ProtoMessage()

func (*FindHostsForMigrationRequest) ProtoReflect

func (*FindHostsForMigrationRequest) Reset

func (x *FindHostsForMigrationRequest) Reset()

func (*FindHostsForMigrationRequest) String

type FindHostsForMigrationResponse

type FindHostsForMigrationResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

FindHostsForMigrationResponse represents the response from find hosts suitable for migrating a virtual machine.

func (*FindHostsForMigrationResponse) Descriptor deprecated

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

Deprecated: Use FindHostsForMigrationResponse.ProtoReflect.Descriptor instead.

func (*FindHostsForMigrationResponse) GetResult

func (x *FindHostsForMigrationResponse) GetResult() *Result

func (*FindHostsForMigrationResponse) ProtoMessage

func (*FindHostsForMigrationResponse) ProtoMessage()

func (*FindHostsForMigrationResponse) ProtoReflect

func (*FindHostsForMigrationResponse) Reset

func (x *FindHostsForMigrationResponse) Reset()

func (*FindHostsForMigrationResponse) String

type Host

type Host struct {

	// The ID of the Host
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the Host
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the Host
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the Host
	Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// The date this entity was created
	Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"`
	// contains filtered or unexported fields
}

Host represents a Host Item

func (*Host) Descriptor deprecated

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

Deprecated: Use Host.ProtoReflect.Descriptor instead.

func (*Host) GetCreated

func (x *Host) GetCreated() string

func (*Host) GetDescription

func (x *Host) GetDescription() string

func (*Host) GetDisplayName

func (x *Host) GetDisplayName() string

func (*Host) GetId

func (x *Host) GetId() string

func (*Host) GetName

func (x *Host) GetName() string

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) ProtoReflect

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

func (*Host) Reset

func (x *Host) Reset()

func (*Host) String

func (x *Host) String() string

type HostServiceClient

type HostServiceClient interface {
	// AddHost Adds a new host.
	AddHost(ctx context.Context, in *AddHostRequest, opts ...grpc.CallOption) (*AddHostResponse, error)
	// AddSecondaryStorage Adds secondary storage.
	AddSecondaryStorage(ctx context.Context, in *AddSecondaryStorageRequest, opts ...grpc.CallOption) (*AddSecondaryStorageResponse, error)
	// CancelHostAsDegraded Cancel host status from 'Degraded'. Host will transit back to status 'Enabled'.
	CancelHostAsDegraded(ctx context.Context, in *CancelHostAsDegradedRequest, opts ...grpc.CallOption) (*CancelHostAsDegradedResponse, error)
	// CancelHostMaintenance Cancels host maintenance.
	CancelHostMaintenance(ctx context.Context, in *CancelHostMaintenanceRequest, opts ...grpc.CallOption) (*CancelHostMaintenanceResponse, error)
	// DeclareHostAsDegraded Declare host as 'Degraded'. Host must be on 'Disconnected' or 'Alert' state. The ADMIN must be sure that there are no VMs running on the respective host otherwise this command might corrupted VMs that were running on the 'Degraded' host.
	DeclareHostAsDegraded(ctx context.Context, in *DeclareHostAsDegradedRequest, opts ...grpc.CallOption) (*DeclareHostAsDegradedResponse, error)
	// DeleteHost Deletes a host.
	DeleteHost(ctx context.Context, in *DeleteHostRequest, opts ...grpc.CallOption) (*DeleteHostResponse, error)
	// FindHostsForMigration Find hosts suitable for migrating a virtual machine.
	FindHostsForMigration(ctx context.Context, in *FindHostsForMigrationRequest, opts ...grpc.CallOption) (*FindHostsForMigrationResponse, error)
	// ListHostTags Lists host tags
	ListHostTags(ctx context.Context, in *ListHostTagsRequest, opts ...grpc.CallOption) (*ListHostTagsResponse, error)
	// ListHosts Lists hosts.
	ListHosts(ctx context.Context, in *ListHostsRequest, opts ...grpc.CallOption) (*ListHostsResponse, error)
	// PrepareForHostMaintenance Prepares a host for maintenance.
	PrepareForHostMaintenance(ctx context.Context, in *PrepareForHostMaintenanceRequest, opts ...grpc.CallOption) (*PrepareForHostMaintenanceResponse, error)
	// ReconnectHost Reconnects a host.
	ReconnectHost(ctx context.Context, in *ReconnectHostRequest, opts ...grpc.CallOption) (*ReconnectHostResponse, error)
	// ReleaseHostReservation Releases host reservation.
	ReleaseHostReservation(ctx context.Context, in *ReleaseHostReservationRequest, opts ...grpc.CallOption) (*ReleaseHostReservationResponse, error)
	// UpdateHost Updates a host.
	UpdateHost(ctx context.Context, in *UpdateHostRequest, opts ...grpc.CallOption) (*UpdateHostResponse, error)
	// UpdateHostPassword Update password of a host/pool on management server.
	UpdateHostPassword(ctx context.Context, in *UpdateHostPasswordRequest, opts ...grpc.CallOption) (*UpdateHostPasswordResponse, error)
}

HostServiceClient is the client API for HostService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

HostService provides operations for managing Hosts

type HostServiceServer

type HostServiceServer interface {
	// AddHost Adds a new host.
	AddHost(context.Context, *AddHostRequest) (*AddHostResponse, error)
	// AddSecondaryStorage Adds secondary storage.
	AddSecondaryStorage(context.Context, *AddSecondaryStorageRequest) (*AddSecondaryStorageResponse, error)
	// CancelHostAsDegraded Cancel host status from 'Degraded'. Host will transit back to status 'Enabled'.
	CancelHostAsDegraded(context.Context, *CancelHostAsDegradedRequest) (*CancelHostAsDegradedResponse, error)
	// CancelHostMaintenance Cancels host maintenance.
	CancelHostMaintenance(context.Context, *CancelHostMaintenanceRequest) (*CancelHostMaintenanceResponse, error)
	// DeclareHostAsDegraded Declare host as 'Degraded'. Host must be on 'Disconnected' or 'Alert' state. The ADMIN must be sure that there are no VMs running on the respective host otherwise this command might corrupted VMs that were running on the 'Degraded' host.
	DeclareHostAsDegraded(context.Context, *DeclareHostAsDegradedRequest) (*DeclareHostAsDegradedResponse, error)
	// DeleteHost Deletes a host.
	DeleteHost(context.Context, *DeleteHostRequest) (*DeleteHostResponse, error)
	// FindHostsForMigration Find hosts suitable for migrating a virtual machine.
	FindHostsForMigration(context.Context, *FindHostsForMigrationRequest) (*FindHostsForMigrationResponse, error)
	// ListHostTags Lists host tags
	ListHostTags(context.Context, *ListHostTagsRequest) (*ListHostTagsResponse, error)
	// ListHosts Lists hosts.
	ListHosts(context.Context, *ListHostsRequest) (*ListHostsResponse, error)
	// PrepareForHostMaintenance Prepares a host for maintenance.
	PrepareForHostMaintenance(context.Context, *PrepareForHostMaintenanceRequest) (*PrepareForHostMaintenanceResponse, error)
	// ReconnectHost Reconnects a host.
	ReconnectHost(context.Context, *ReconnectHostRequest) (*ReconnectHostResponse, error)
	// ReleaseHostReservation Releases host reservation.
	ReleaseHostReservation(context.Context, *ReleaseHostReservationRequest) (*ReleaseHostReservationResponse, error)
	// UpdateHost Updates a host.
	UpdateHost(context.Context, *UpdateHostRequest) (*UpdateHostResponse, error)
	// UpdateHostPassword Update password of a host/pool on management server.
	UpdateHostPassword(context.Context, *UpdateHostPasswordRequest) (*UpdateHostPasswordResponse, error)
	// contains filtered or unexported methods
}

HostServiceServer is the server API for HostService service. All implementations must embed UnimplementedHostServiceServer for forward compatibility.

HostService provides operations for managing Hosts

type HostTag

type HostTag struct {

	// The ID of the HostTag
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the HostTag
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the HostTag
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the HostTag
	Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// The date this entity was created
	Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"`
	// contains filtered or unexported fields
}

HostTag represents a HostTag Item

func (*HostTag) Descriptor deprecated

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

Deprecated: Use HostTag.ProtoReflect.Descriptor instead.

func (*HostTag) GetCreated

func (x *HostTag) GetCreated() string

func (*HostTag) GetDescription

func (x *HostTag) GetDescription() string

func (*HostTag) GetDisplayName

func (x *HostTag) GetDisplayName() string

func (*HostTag) GetId

func (x *HostTag) GetId() string

func (*HostTag) GetName

func (x *HostTag) GetName() string

func (*HostTag) ProtoMessage

func (*HostTag) ProtoMessage()

func (*HostTag) ProtoReflect

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

func (*HostTag) Reset

func (x *HostTag) Reset()

func (*HostTag) String

func (x *HostTag) String() string

type ListHostTagsRequest

type ListHostTagsRequest struct {

	// List by keyword
	Keyword      *string `protobuf:"bytes,1,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,2,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListHostTagsRequest represents the parameters for lists host tags

func (*ListHostTagsRequest) Descriptor deprecated

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

Deprecated: Use ListHostTagsRequest.ProtoReflect.Descriptor instead.

func (*ListHostTagsRequest) GetKeyword

func (x *ListHostTagsRequest) GetKeyword() string

func (*ListHostTagsRequest) GetPage

func (x *ListHostTagsRequest) GetPage() int32

func (*ListHostTagsRequest) GetPageSize

func (x *ListHostTagsRequest) GetPageSize() int32

func (*ListHostTagsRequest) GetResponseType

func (x *ListHostTagsRequest) GetResponseType() string

func (*ListHostTagsRequest) ProtoMessage

func (*ListHostTagsRequest) ProtoMessage()

func (*ListHostTagsRequest) ProtoReflect

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

func (*ListHostTagsRequest) Reset

func (x *ListHostTagsRequest) Reset()

func (*ListHostTagsRequest) String

func (x *ListHostTagsRequest) String() string

type ListHostTagsResponse

type ListHostTagsResponse struct {

	// The list of HostTags
	Items []*HostTag `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
	// The total count of HostTags
	TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

ListHostTagsResponse represents the response from lists host tags

func (*ListHostTagsResponse) Descriptor deprecated

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

Deprecated: Use ListHostTagsResponse.ProtoReflect.Descriptor instead.

func (*ListHostTagsResponse) GetItems

func (x *ListHostTagsResponse) GetItems() []*HostTag

func (*ListHostTagsResponse) GetTotalCount

func (x *ListHostTagsResponse) GetTotalCount() int32

func (*ListHostTagsResponse) ProtoMessage

func (*ListHostTagsResponse) ProtoMessage()

func (*ListHostTagsResponse) ProtoReflect

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

func (*ListHostTagsResponse) Reset

func (x *ListHostTagsResponse) Reset()

func (*ListHostTagsResponse) String

func (x *ListHostTagsResponse) String() string

type ListHostsRequest

type ListHostsRequest struct {

	// lists hosts existing in particular cluster
	ClusterId *int64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId" json:"cluster_id,omitempty"`
	// the id of the host
	Id *int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
	// the name of the host
	HostName *string `protobuf:"bytes,3,opt,name=host_name,json=hostName" json:"host_name,omitempty"`
	// the Pod ID for the host
	PodId *int64 `protobuf:"varint,4,opt,name=pod_id,json=podId" json:"pod_id,omitempty"`
	// the state of the host
	State *string `protobuf:"bytes,5,opt,name=state" json:"state,omitempty"`
	// the host type
	Type *string `protobuf:"bytes,6,opt,name=type" json:"type,omitempty"`
	// the Zone ID for the host
	ZoneId *int64 `protobuf:"varint,7,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// lists hosts in the same cluster as this VM and flag hosts with enough CPU/RAm to host this VM
	VirtualMachineId *int64 `protobuf:"varint,8,opt,name=virtual_machine_id,json=virtualMachineId" json:"virtual_machine_id,omitempty"`
	// list hosts for which out-of-band management is enabled
	OutOfBandManagementEnabled *bool `` /* 139-byte string literal not displayed */
	// list hosts by its out-of-band management interface's power state. Its value can be one of [On, Off, Unknown]
	OutOfBandManagementPowerState *string `` /* 150-byte string literal not displayed */
	// list hosts by resource state. Resource state represents current state determined by admin of host, value can be one of [Enabled, Disabled, Unmanaged, PrepareForMaintenance, ErrorInMaintenance, Maintenance, Error]
	ResourceState *string `protobuf:"bytes,11,opt,name=resource_state,json=resourceState" json:"resource_state,omitempty"`
	// comma separated list of host details requested, value can be a list of [ min, all, capacity, events, stats]
	ViewDetails []string `protobuf:"bytes,12,rep,name=view_details,json=viewDetails" json:"view_details,omitempty"`
	// if true, list only hosts dedicated to HA
	HaHost *bool `protobuf:"varint,13,opt,name=ha_host,json=haHost" json:"ha_host,omitempty"`
	// hypervisor type of host: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator
	Hypervisor *string `protobuf:"bytes,14,opt,name=hypervisor" json:"hypervisor,omitempty"`
	// the id of the management server
	ManagementServerId *int64 `protobuf:"varint,15,opt,name=management_server_id,json=managementServerId" json:"management_server_id,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,16,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,17,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,18,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,19,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListHostsRequest represents the parameters for lists hosts.

func (*ListHostsRequest) Descriptor deprecated

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

Deprecated: Use ListHostsRequest.ProtoReflect.Descriptor instead.

func (*ListHostsRequest) GetClusterId

func (x *ListHostsRequest) GetClusterId() int64

func (*ListHostsRequest) GetHaHost

func (x *ListHostsRequest) GetHaHost() bool

func (*ListHostsRequest) GetHostName

func (x *ListHostsRequest) GetHostName() string

func (*ListHostsRequest) GetHypervisor

func (x *ListHostsRequest) GetHypervisor() string

func (*ListHostsRequest) GetId

func (x *ListHostsRequest) GetId() int64

func (*ListHostsRequest) GetKeyword

func (x *ListHostsRequest) GetKeyword() string

func (*ListHostsRequest) GetManagementServerId

func (x *ListHostsRequest) GetManagementServerId() int64

func (*ListHostsRequest) GetOutOfBandManagementEnabled

func (x *ListHostsRequest) GetOutOfBandManagementEnabled() bool

func (*ListHostsRequest) GetOutOfBandManagementPowerState

func (x *ListHostsRequest) GetOutOfBandManagementPowerState() string

func (*ListHostsRequest) GetPage

func (x *ListHostsRequest) GetPage() int32

func (*ListHostsRequest) GetPageSize

func (x *ListHostsRequest) GetPageSize() int32

func (*ListHostsRequest) GetPodId

func (x *ListHostsRequest) GetPodId() int64

func (*ListHostsRequest) GetResourceState

func (x *ListHostsRequest) GetResourceState() string

func (*ListHostsRequest) GetResponseType

func (x *ListHostsRequest) GetResponseType() string

func (*ListHostsRequest) GetState

func (x *ListHostsRequest) GetState() string

func (*ListHostsRequest) GetType

func (x *ListHostsRequest) GetType() string

func (*ListHostsRequest) GetViewDetails

func (x *ListHostsRequest) GetViewDetails() []string

func (*ListHostsRequest) GetVirtualMachineId

func (x *ListHostsRequest) GetVirtualMachineId() int64

func (*ListHostsRequest) GetZoneId

func (x *ListHostsRequest) GetZoneId() int64

func (*ListHostsRequest) ProtoMessage

func (*ListHostsRequest) ProtoMessage()

func (*ListHostsRequest) ProtoReflect

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

func (*ListHostsRequest) Reset

func (x *ListHostsRequest) Reset()

func (*ListHostsRequest) String

func (x *ListHostsRequest) String() string

type ListHostsResponse

type ListHostsResponse struct {

	// The list of Hosts
	Items []*Host `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
	// The total count of Hosts
	TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

ListHostsResponse represents the response from lists hosts.

func (*ListHostsResponse) Descriptor deprecated

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

Deprecated: Use ListHostsResponse.ProtoReflect.Descriptor instead.

func (*ListHostsResponse) GetItems

func (x *ListHostsResponse) GetItems() []*Host

func (*ListHostsResponse) GetTotalCount

func (x *ListHostsResponse) GetTotalCount() int32

func (*ListHostsResponse) ProtoMessage

func (*ListHostsResponse) ProtoMessage()

func (*ListHostsResponse) ProtoReflect

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

func (*ListHostsResponse) Reset

func (x *ListHostsResponse) Reset()

func (*ListHostsResponse) String

func (x *ListHostsResponse) String() string

type PrepareForHostMaintenanceRequest

type PrepareForHostMaintenanceRequest struct {

	// the host ID
	Id            *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

PrepareForHostMaintenanceRequest represents the parameters for prepares a host for maintenance.

func (*PrepareForHostMaintenanceRequest) Descriptor deprecated

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

Deprecated: Use PrepareForHostMaintenanceRequest.ProtoReflect.Descriptor instead.

func (*PrepareForHostMaintenanceRequest) GetId

func (*PrepareForHostMaintenanceRequest) GetInjectedJobId

func (x *PrepareForHostMaintenanceRequest) GetInjectedJobId() string

func (*PrepareForHostMaintenanceRequest) GetResponseType

func (x *PrepareForHostMaintenanceRequest) GetResponseType() string

func (*PrepareForHostMaintenanceRequest) GetStartEventId

func (x *PrepareForHostMaintenanceRequest) GetStartEventId() int64

func (*PrepareForHostMaintenanceRequest) ProtoMessage

func (*PrepareForHostMaintenanceRequest) ProtoMessage()

func (*PrepareForHostMaintenanceRequest) ProtoReflect

func (*PrepareForHostMaintenanceRequest) Reset

func (*PrepareForHostMaintenanceRequest) String

type PrepareForHostMaintenanceResponse

type PrepareForHostMaintenanceResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

PrepareForHostMaintenanceResponse represents the response from prepares a host for maintenance.

func (*PrepareForHostMaintenanceResponse) Descriptor deprecated

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

Deprecated: Use PrepareForHostMaintenanceResponse.ProtoReflect.Descriptor instead.

func (*PrepareForHostMaintenanceResponse) GetResult

func (x *PrepareForHostMaintenanceResponse) GetResult() *Result

func (*PrepareForHostMaintenanceResponse) ProtoMessage

func (*PrepareForHostMaintenanceResponse) ProtoMessage()

func (*PrepareForHostMaintenanceResponse) ProtoReflect

func (*PrepareForHostMaintenanceResponse) Reset

func (*PrepareForHostMaintenanceResponse) String

type ReconnectHostRequest

type ReconnectHostRequest struct {

	// the host ID
	Id            *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ReconnectHostRequest represents the parameters for reconnects a host.

func (*ReconnectHostRequest) Descriptor deprecated

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

Deprecated: Use ReconnectHostRequest.ProtoReflect.Descriptor instead.

func (*ReconnectHostRequest) GetId

func (x *ReconnectHostRequest) GetId() int64

func (*ReconnectHostRequest) GetInjectedJobId

func (x *ReconnectHostRequest) GetInjectedJobId() string

func (*ReconnectHostRequest) GetResponseType

func (x *ReconnectHostRequest) GetResponseType() string

func (*ReconnectHostRequest) GetStartEventId

func (x *ReconnectHostRequest) GetStartEventId() int64

func (*ReconnectHostRequest) ProtoMessage

func (*ReconnectHostRequest) ProtoMessage()

func (*ReconnectHostRequest) ProtoReflect

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

func (*ReconnectHostRequest) Reset

func (x *ReconnectHostRequest) Reset()

func (*ReconnectHostRequest) String

func (x *ReconnectHostRequest) String() string

type ReconnectHostResponse

type ReconnectHostResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

ReconnectHostResponse represents the response from reconnects a host.

func (*ReconnectHostResponse) Descriptor deprecated

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

Deprecated: Use ReconnectHostResponse.ProtoReflect.Descriptor instead.

func (*ReconnectHostResponse) GetResult

func (x *ReconnectHostResponse) GetResult() *Result

func (*ReconnectHostResponse) ProtoMessage

func (*ReconnectHostResponse) ProtoMessage()

func (*ReconnectHostResponse) ProtoReflect

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

func (*ReconnectHostResponse) Reset

func (x *ReconnectHostResponse) Reset()

func (*ReconnectHostResponse) String

func (x *ReconnectHostResponse) String() string

type ReleaseHostReservationRequest

type ReleaseHostReservationRequest struct {

	// the host ID
	Id            *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ReleaseHostReservationRequest represents the parameters for releases host reservation.

func (*ReleaseHostReservationRequest) Descriptor deprecated

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

Deprecated: Use ReleaseHostReservationRequest.ProtoReflect.Descriptor instead.

func (*ReleaseHostReservationRequest) GetId

func (*ReleaseHostReservationRequest) GetInjectedJobId

func (x *ReleaseHostReservationRequest) GetInjectedJobId() string

func (*ReleaseHostReservationRequest) GetResponseType

func (x *ReleaseHostReservationRequest) GetResponseType() string

func (*ReleaseHostReservationRequest) GetStartEventId

func (x *ReleaseHostReservationRequest) GetStartEventId() int64

func (*ReleaseHostReservationRequest) ProtoMessage

func (*ReleaseHostReservationRequest) ProtoMessage()

func (*ReleaseHostReservationRequest) ProtoReflect

func (*ReleaseHostReservationRequest) Reset

func (x *ReleaseHostReservationRequest) Reset()

func (*ReleaseHostReservationRequest) String

type ReleaseHostReservationResponse

type ReleaseHostReservationResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

ReleaseHostReservationResponse represents the response from releases host reservation.

func (*ReleaseHostReservationResponse) Descriptor deprecated

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

Deprecated: Use ReleaseHostReservationResponse.ProtoReflect.Descriptor instead.

func (*ReleaseHostReservationResponse) GetResult

func (x *ReleaseHostReservationResponse) GetResult() *Result

func (*ReleaseHostReservationResponse) ProtoMessage

func (*ReleaseHostReservationResponse) ProtoMessage()

func (*ReleaseHostReservationResponse) ProtoReflect

func (*ReleaseHostReservationResponse) Reset

func (x *ReleaseHostReservationResponse) Reset()

func (*ReleaseHostReservationResponse) String

type Result

type Result struct {

	// Whether the operation was successful
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// Any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// The ID of the resource affected by the operation
	Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
	// The job ID for an async operation
	JobId *string `protobuf:"bytes,4,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
	// The status of the job
	JobStatus *string `protobuf:"bytes,5,opt,name=job_status,json=jobStatus" json:"job_status,omitempty"`
	// contains filtered or unexported fields
}

Result represents a generic operation result

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetDisplayText

func (x *Result) GetDisplayText() string

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) GetJobId

func (x *Result) GetJobId() string

func (*Result) GetJobStatus

func (x *Result) GetJobStatus() string

func (*Result) GetSuccess

func (x *Result) GetSuccess() bool

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Success

type Success struct {

	// true if operation is executed successfully
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// contains filtered or unexported fields
}

Success represents a Success Operation Response

func (*Success) Descriptor deprecated

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

Deprecated: Use Success.ProtoReflect.Descriptor instead.

func (*Success) GetDisplayText

func (x *Success) GetDisplayText() string

func (*Success) GetSuccess

func (x *Success) GetSuccess() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) ProtoReflect

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

func (*Success) Reset

func (x *Success) Reset()

func (*Success) String

func (x *Success) String() string

type UnimplementedHostServiceServer

type UnimplementedHostServiceServer struct{}

UnimplementedHostServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedHostServiceServer) AddHost

func (UnimplementedHostServiceServer) DeleteHost

func (UnimplementedHostServiceServer) ListHostTags

func (UnimplementedHostServiceServer) ListHosts

func (UnimplementedHostServiceServer) ReconnectHost

func (UnimplementedHostServiceServer) UpdateHost

func (UnimplementedHostServiceServer) UpdateHostPassword

type UnsafeHostServiceServer

type UnsafeHostServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeHostServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HostServiceServer will result in compilation errors.

type UpdateHostPasswordRequest

type UpdateHostPasswordRequest struct {

	// the host ID
	HostId *int64 `protobuf:"varint,1,opt,name=host_id,json=hostId" json:"host_id,omitempty"`
	// the cluster ID
	ClusterId *int64 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId" json:"cluster_id,omitempty"`
	// if the password should also be updated on the hosts
	UpdatePasswdOnHost *bool `protobuf:"varint,3,opt,name=update_passwd_on_host,json=updatePasswdOnHost" json:"update_passwd_on_host,omitempty"`
	// the username for the host/cluster
	Username *string `protobuf:"bytes,4,opt,name=username" json:"username,omitempty"`
	// the new password for the host/cluster
	Password     *string `protobuf:"bytes,5,opt,name=password" json:"password,omitempty"`
	ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

UpdateHostPasswordRequest represents the parameters for update password of a host/pool on management server.

func (*UpdateHostPasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdateHostPasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdateHostPasswordRequest) GetClusterId

func (x *UpdateHostPasswordRequest) GetClusterId() int64

func (*UpdateHostPasswordRequest) GetHostId

func (x *UpdateHostPasswordRequest) GetHostId() int64

func (*UpdateHostPasswordRequest) GetPassword

func (x *UpdateHostPasswordRequest) GetPassword() string

func (*UpdateHostPasswordRequest) GetResponseType

func (x *UpdateHostPasswordRequest) GetResponseType() string

func (*UpdateHostPasswordRequest) GetUpdatePasswdOnHost

func (x *UpdateHostPasswordRequest) GetUpdatePasswdOnHost() bool

func (*UpdateHostPasswordRequest) GetUsername

func (x *UpdateHostPasswordRequest) GetUsername() string

func (*UpdateHostPasswordRequest) ProtoMessage

func (*UpdateHostPasswordRequest) ProtoMessage()

func (*UpdateHostPasswordRequest) ProtoReflect

func (*UpdateHostPasswordRequest) Reset

func (x *UpdateHostPasswordRequest) Reset()

func (*UpdateHostPasswordRequest) String

func (x *UpdateHostPasswordRequest) String() string

type UpdateHostPasswordResponse

type UpdateHostPasswordResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

UpdateHostPasswordResponse represents the response from update password of a host/pool on management server.

func (*UpdateHostPasswordResponse) Descriptor deprecated

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

Deprecated: Use UpdateHostPasswordResponse.ProtoReflect.Descriptor instead.

func (*UpdateHostPasswordResponse) GetResult

func (x *UpdateHostPasswordResponse) GetResult() *Result

func (*UpdateHostPasswordResponse) ProtoMessage

func (*UpdateHostPasswordResponse) ProtoMessage()

func (*UpdateHostPasswordResponse) ProtoReflect

func (*UpdateHostPasswordResponse) Reset

func (x *UpdateHostPasswordResponse) Reset()

func (*UpdateHostPasswordResponse) String

func (x *UpdateHostPasswordResponse) String() string

type UpdateHostRequest

type UpdateHostRequest struct {

	// the ID of the host to update
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// Change the name of host
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// the id of Os category to update the host with
	OsCategoryId *int64 `protobuf:"varint,3,opt,name=os_category_id,json=osCategoryId" json:"os_category_id,omitempty"`
	// Change resource state of host, valid values are [Enable, Disable]. Operation may failed if host in states not allowing Enable/Disable
	AllocationState *string `protobuf:"bytes,4,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
	// list of tags to be added to the host
	HostTags []string `protobuf:"bytes,5,rep,name=host_tags,json=hostTags" json:"host_tags,omitempty"`
	// Whether the informed tag is a JS interpretable rule or not.
	IsTagARule *bool `protobuf:"varint,6,opt,name=is_tag_a_rule,json=isTagARule" json:"is_tag_a_rule,omitempty"`
	// the new uri for the secondary storage: nfs://host/path
	Url *string `protobuf:"bytes,7,opt,name=url" json:"url,omitempty"`
	// Add an annotation to this host
	Annotation   *string `protobuf:"bytes,8,opt,name=annotation" json:"annotation,omitempty"`
	ResponseType *string `protobuf:"bytes,9,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

UpdateHostRequest represents the parameters for updates a host.

func (*UpdateHostRequest) Descriptor deprecated

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

Deprecated: Use UpdateHostRequest.ProtoReflect.Descriptor instead.

func (*UpdateHostRequest) GetAllocationState

func (x *UpdateHostRequest) GetAllocationState() string

func (*UpdateHostRequest) GetAnnotation

func (x *UpdateHostRequest) GetAnnotation() string

func (*UpdateHostRequest) GetHostTags

func (x *UpdateHostRequest) GetHostTags() []string

func (*UpdateHostRequest) GetId

func (x *UpdateHostRequest) GetId() int64

func (*UpdateHostRequest) GetIsTagARule

func (x *UpdateHostRequest) GetIsTagARule() bool

func (*UpdateHostRequest) GetName

func (x *UpdateHostRequest) GetName() string

func (*UpdateHostRequest) GetOsCategoryId

func (x *UpdateHostRequest) GetOsCategoryId() int64

func (*UpdateHostRequest) GetResponseType

func (x *UpdateHostRequest) GetResponseType() string

func (*UpdateHostRequest) GetUrl

func (x *UpdateHostRequest) GetUrl() string

func (*UpdateHostRequest) ProtoMessage

func (*UpdateHostRequest) ProtoMessage()

func (*UpdateHostRequest) ProtoReflect

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

func (*UpdateHostRequest) Reset

func (x *UpdateHostRequest) Reset()

func (*UpdateHostRequest) String

func (x *UpdateHostRequest) String() string

type UpdateHostResponse

type UpdateHostResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

UpdateHostResponse represents the response from updates a host.

func (*UpdateHostResponse) Descriptor deprecated

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

Deprecated: Use UpdateHostResponse.ProtoReflect.Descriptor instead.

func (*UpdateHostResponse) GetResult

func (x *UpdateHostResponse) GetResult() *Result

func (*UpdateHostResponse) ProtoMessage

func (*UpdateHostResponse) ProtoMessage()

func (*UpdateHostResponse) ProtoReflect

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

func (*UpdateHostResponse) Reset

func (x *UpdateHostResponse) Reset()

func (*UpdateHostResponse) String

func (x *UpdateHostResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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