Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterClusterServiceServer(s grpc.ServiceRegistrar, srv ClusterServiceServer)
- type AddClusterRequest
- func (*AddClusterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddClusterRequest) GetAllocationState() string
- func (x *AddClusterRequest) GetArch() string
- func (x *AddClusterRequest) GetClusterName() string
- func (x *AddClusterRequest) GetClusterType() string
- func (x *AddClusterRequest) GetHypervisor() string
- func (x *AddClusterRequest) GetOvm3Cluster() string
- func (x *AddClusterRequest) GetOvm3Pool() string
- func (x *AddClusterRequest) GetOvm3Vip() string
- func (x *AddClusterRequest) GetPassword() string
- func (x *AddClusterRequest) GetPodId() int64
- func (x *AddClusterRequest) GetResponseType() string
- func (x *AddClusterRequest) GetUrl() string
- func (x *AddClusterRequest) GetUsername() string
- func (x *AddClusterRequest) GetVSwitchNameGuestTraffic() string
- func (x *AddClusterRequest) GetVSwitchNamePublicTraffic() string
- func (x *AddClusterRequest) GetVSwitchTypeGuestTraffic() string
- func (x *AddClusterRequest) GetVSwitchTypePublicTraffic() string
- func (x *AddClusterRequest) GetVsmipaddress() string
- func (x *AddClusterRequest) GetVsmpassword() string
- func (x *AddClusterRequest) GetVsmusername() string
- func (x *AddClusterRequest) GetZoneId() int64
- func (*AddClusterRequest) ProtoMessage()
- func (x *AddClusterRequest) ProtoReflect() protoreflect.Message
- func (x *AddClusterRequest) Reset()
- func (x *AddClusterRequest) String() string
- type AddClusterResponse
- func (*AddClusterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddClusterResponse) GetResult() *Result
- func (*AddClusterResponse) ProtoMessage()
- func (x *AddClusterResponse) ProtoReflect() protoreflect.Message
- func (x *AddClusterResponse) Reset()
- func (x *AddClusterResponse) String() string
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)deprecated
- func (x *Cluster) GetCreated() string
- func (x *Cluster) GetDescription() string
- func (x *Cluster) GetDisplayName() string
- func (x *Cluster) GetId() string
- func (x *Cluster) GetName() string
- func (*Cluster) ProtoMessage()
- func (x *Cluster) ProtoReflect() protoreflect.Message
- func (x *Cluster) Reset()
- func (x *Cluster) String() string
- type ClusterDrsPlan
- func (*ClusterDrsPlan) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterDrsPlan) GetCreated() string
- func (x *ClusterDrsPlan) GetDescription() string
- func (x *ClusterDrsPlan) GetDisplayName() string
- func (x *ClusterDrsPlan) GetId() string
- func (x *ClusterDrsPlan) GetName() string
- func (*ClusterDrsPlan) ProtoMessage()
- func (x *ClusterDrsPlan) ProtoReflect() protoreflect.Message
- func (x *ClusterDrsPlan) Reset()
- func (x *ClusterDrsPlan) String() string
- type ClusterServiceClient
- type ClusterServiceServer
- type DeleteClusterRequest
- func (*DeleteClusterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteClusterRequest) GetId() int64
- func (x *DeleteClusterRequest) GetResponseType() string
- func (*DeleteClusterRequest) ProtoMessage()
- func (x *DeleteClusterRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteClusterRequest) Reset()
- func (x *DeleteClusterRequest) String() string
- type DeleteClusterResponse
- func (*DeleteClusterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteClusterResponse) GetResult() *Result
- func (*DeleteClusterResponse) ProtoMessage()
- func (x *DeleteClusterResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteClusterResponse) Reset()
- func (x *DeleteClusterResponse) String() string
- type ExecuteClusterDrsPlanRequest
- func (*ExecuteClusterDrsPlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteClusterDrsPlanRequest) GetId() int64
- func (x *ExecuteClusterDrsPlanRequest) GetInjectedJobId() string
- func (x *ExecuteClusterDrsPlanRequest) GetMigrateVmTo() map[string]string
- func (x *ExecuteClusterDrsPlanRequest) GetResponseType() string
- func (x *ExecuteClusterDrsPlanRequest) GetStartEventId() int64
- func (*ExecuteClusterDrsPlanRequest) ProtoMessage()
- func (x *ExecuteClusterDrsPlanRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteClusterDrsPlanRequest) Reset()
- func (x *ExecuteClusterDrsPlanRequest) String() string
- type ExecuteClusterDrsPlanResponse
- func (*ExecuteClusterDrsPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteClusterDrsPlanResponse) GetResult() *Result
- func (*ExecuteClusterDrsPlanResponse) ProtoMessage()
- func (x *ExecuteClusterDrsPlanResponse) ProtoReflect() protoreflect.Message
- func (x *ExecuteClusterDrsPlanResponse) Reset()
- func (x *ExecuteClusterDrsPlanResponse) String() string
- type GenerateClusterDrsPlanRequest
- func (*GenerateClusterDrsPlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateClusterDrsPlanRequest) GetId() int64
- func (x *GenerateClusterDrsPlanRequest) GetMigrations() int32
- func (x *GenerateClusterDrsPlanRequest) GetResponseType() string
- func (*GenerateClusterDrsPlanRequest) ProtoMessage()
- func (x *GenerateClusterDrsPlanRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateClusterDrsPlanRequest) Reset()
- func (x *GenerateClusterDrsPlanRequest) String() string
- type GenerateClusterDrsPlanResponse
- func (*GenerateClusterDrsPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateClusterDrsPlanResponse) GetResult() *Result
- func (*GenerateClusterDrsPlanResponse) ProtoMessage()
- func (x *GenerateClusterDrsPlanResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateClusterDrsPlanResponse) Reset()
- func (x *GenerateClusterDrsPlanResponse) String() string
- type ListClusterDrsPlanRequest
- func (*ListClusterDrsPlanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListClusterDrsPlanRequest) GetClusterId() int64
- func (x *ListClusterDrsPlanRequest) GetId() int64
- func (x *ListClusterDrsPlanRequest) GetKeyword() string
- func (x *ListClusterDrsPlanRequest) GetPage() int32
- func (x *ListClusterDrsPlanRequest) GetPageSize() int32
- func (x *ListClusterDrsPlanRequest) GetResponseType() string
- func (*ListClusterDrsPlanRequest) ProtoMessage()
- func (x *ListClusterDrsPlanRequest) ProtoReflect() protoreflect.Message
- func (x *ListClusterDrsPlanRequest) Reset()
- func (x *ListClusterDrsPlanRequest) String() string
- type ListClusterDrsPlanResponse
- func (*ListClusterDrsPlanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListClusterDrsPlanResponse) GetItems() []*ClusterDrsPlan
- func (x *ListClusterDrsPlanResponse) GetTotalCount() int32
- func (*ListClusterDrsPlanResponse) ProtoMessage()
- func (x *ListClusterDrsPlanResponse) ProtoReflect() protoreflect.Message
- func (x *ListClusterDrsPlanResponse) Reset()
- func (x *ListClusterDrsPlanResponse) String() string
- type ListClustersRequest
- func (*ListClustersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListClustersRequest) GetAllocationState() string
- func (x *ListClustersRequest) GetClusterName() string
- func (x *ListClustersRequest) GetClusterType() string
- func (x *ListClustersRequest) GetHypervisorType() string
- func (x *ListClustersRequest) GetId() int64
- func (x *ListClustersRequest) GetKeyword() string
- func (x *ListClustersRequest) GetManagedState() string
- func (x *ListClustersRequest) GetPage() int32
- func (x *ListClustersRequest) GetPageSize() int32
- func (x *ListClustersRequest) GetPodId() int64
- func (x *ListClustersRequest) GetResponseType() string
- func (x *ListClustersRequest) GetShowCapacities() bool
- func (x *ListClustersRequest) GetZoneId() int64
- func (*ListClustersRequest) ProtoMessage()
- func (x *ListClustersRequest) ProtoReflect() protoreflect.Message
- func (x *ListClustersRequest) Reset()
- func (x *ListClustersRequest) String() string
- type ListClustersResponse
- func (*ListClustersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListClustersResponse) GetItems() []*Cluster
- func (x *ListClustersResponse) GetTotalCount() int32
- func (*ListClustersResponse) ProtoMessage()
- func (x *ListClustersResponse) ProtoReflect() protoreflect.Message
- func (x *ListClustersResponse) Reset()
- func (x *ListClustersResponse) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetDisplayText() string
- func (x *Result) GetId() string
- func (x *Result) GetJobId() string
- func (x *Result) GetJobStatus() string
- func (x *Result) GetSuccess() bool
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Success
- type UnimplementedClusterServiceServer
- func (UnimplementedClusterServiceServer) AddCluster(context.Context, *AddClusterRequest) (*AddClusterResponse, error)
- func (UnimplementedClusterServiceServer) DeleteCluster(context.Context, *DeleteClusterRequest) (*DeleteClusterResponse, error)
- func (UnimplementedClusterServiceServer) ExecuteClusterDrsPlan(context.Context, *ExecuteClusterDrsPlanRequest) (*ExecuteClusterDrsPlanResponse, error)
- func (UnimplementedClusterServiceServer) GenerateClusterDrsPlan(context.Context, *GenerateClusterDrsPlanRequest) (*GenerateClusterDrsPlanResponse, error)
- func (UnimplementedClusterServiceServer) ListClusterDrsPlan(context.Context, *ListClusterDrsPlanRequest) (*ListClusterDrsPlanResponse, error)
- func (UnimplementedClusterServiceServer) ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error)
- func (UnimplementedClusterServiceServer) UpdateCluster(context.Context, *UpdateClusterRequest) (*UpdateClusterResponse, error)
- type UnsafeClusterServiceServer
- type UpdateClusterRequest
- func (*UpdateClusterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateClusterRequest) GetAllocationState() string
- func (x *UpdateClusterRequest) GetArch() string
- func (x *UpdateClusterRequest) GetClusterName() string
- func (x *UpdateClusterRequest) GetClusterType() string
- func (x *UpdateClusterRequest) GetHypervisor() string
- func (x *UpdateClusterRequest) GetId() int64
- func (x *UpdateClusterRequest) GetManagedState() string
- func (x *UpdateClusterRequest) GetResponseType() string
- func (*UpdateClusterRequest) ProtoMessage()
- func (x *UpdateClusterRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateClusterRequest) Reset()
- func (x *UpdateClusterRequest) String() string
- type UpdateClusterResponse
- func (*UpdateClusterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateClusterResponse) GetResult() *Result
- func (*UpdateClusterResponse) ProtoMessage()
- func (x *UpdateClusterResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateClusterResponse) Reset()
- func (x *UpdateClusterResponse) String() string
Constants ¶
const ( ClusterService_AddCluster_FullMethodName = "/cloudstack.management.cluster.v1.ClusterService/AddCluster" ClusterService_DeleteCluster_FullMethodName = "/cloudstack.management.cluster.v1.ClusterService/DeleteCluster" ClusterService_ExecuteClusterDrsPlan_FullMethodName = "/cloudstack.management.cluster.v1.ClusterService/ExecuteClusterDrsPlan" ClusterService_GenerateClusterDrsPlan_FullMethodName = "/cloudstack.management.cluster.v1.ClusterService/GenerateClusterDrsPlan" ClusterService_ListClusterDrsPlan_FullMethodName = "/cloudstack.management.cluster.v1.ClusterService/ListClusterDrsPlan" ClusterService_ListClusters_FullMethodName = "/cloudstack.management.cluster.v1.ClusterService/ListClusters" ClusterService_UpdateCluster_FullMethodName = "/cloudstack.management.cluster.v1.ClusterService/UpdateCluster" )
Variables ¶
var ClusterService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudstack.management.cluster.v1.ClusterService", HandlerType: (*ClusterServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddCluster", Handler: _ClusterService_AddCluster_Handler, }, { MethodName: "DeleteCluster", Handler: _ClusterService_DeleteCluster_Handler, }, { MethodName: "ExecuteClusterDrsPlan", Handler: _ClusterService_ExecuteClusterDrsPlan_Handler, }, { MethodName: "GenerateClusterDrsPlan", Handler: _ClusterService_GenerateClusterDrsPlan_Handler, }, { MethodName: "ListClusterDrsPlan", Handler: _ClusterService_ListClusterDrsPlan_Handler, }, { MethodName: "ListClusters", Handler: _ClusterService_ListClusters_Handler, }, { MethodName: "UpdateCluster", Handler: _ClusterService_UpdateCluster_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cloudstack/management/cluster/v1/cluster.gen.proto", }
ClusterService_ServiceDesc is the grpc.ServiceDesc for ClusterService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cloudstack_management_cluster_v1_cluster_gen_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClusterServiceServer ¶
func RegisterClusterServiceServer(s grpc.ServiceRegistrar, srv ClusterServiceServer)
Types ¶
type AddClusterRequest ¶
type AddClusterRequest struct {
// the cluster name
ClusterName *string `protobuf:"bytes,1,opt,name=cluster_name,json=clusterName" json:"cluster_name,omitempty"`
// the password for the host
Password *string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
// the Pod ID for the host
PodId *int64 `protobuf:"varint,3,opt,name=pod_id,json=podId" json:"pod_id,omitempty"`
// the URL
Url *string `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"`
// the username for the cluster
Username *string `protobuf:"bytes,5,opt,name=username" json:"username,omitempty"`
// the Zone ID for the cluster
ZoneId *int64 `protobuf:"varint,6,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
// hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator,Ovm3
Hypervisor *string `protobuf:"bytes,7,opt,name=hypervisor" json:"hypervisor,omitempty"`
// the CPU arch of the cluster. Valid options are: x86_64, aarch64
Arch *string `protobuf:"bytes,8,opt,name=arch" json:"arch,omitempty"`
// type of the cluster: CloudManaged, ExternalManaged
ClusterType *string `protobuf:"bytes,9,opt,name=cluster_type,json=clusterType" json:"cluster_type,omitempty"`
// Allocation state of this cluster for allocation of new resources
AllocationState *string `protobuf:"bytes,10,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
// the username for the VSM associated with this cluster
Vsmusername *string `protobuf:"bytes,11,opt,name=vsmusername" json:"vsmusername,omitempty"`
// the password for the VSM associated with this cluster
Vsmpassword *string `protobuf:"bytes,12,opt,name=vsmpassword" json:"vsmpassword,omitempty"`
// the ipaddress of the VSM associated with this cluster
Vsmipaddress *string `protobuf:"bytes,13,opt,name=vsmipaddress" json:"vsmipaddress,omitempty"`
// Type of virtual switch used for guest traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)
VSwitchTypeGuestTraffic *string `` /* 130-byte string literal not displayed */
// Type of virtual switch used for public traffic in the cluster. Allowed values are, vmwaresvs (for VMware standard vSwitch) and vmwaredvs (for VMware distributed vSwitch)
VSwitchTypePublicTraffic *string `` /* 133-byte string literal not displayed */
// Name of virtual switch used for guest traffic in the cluster. This would override zone wide traffic label setting.
VSwitchNameGuestTraffic *string `` /* 130-byte string literal not displayed */
// Name of virtual switch used for public traffic in the cluster. This would override zone wide traffic label setting.
VSwitchNamePublicTraffic *string `` /* 133-byte string literal not displayed */
// Ovm3 native pooling enabled for cluster
Ovm3Pool *string `protobuf:"bytes,18,opt,name=ovm3pool" json:"ovm3pool,omitempty"`
// Ovm3 native OCFS2 clustering enabled for cluster
Ovm3Cluster *string `protobuf:"bytes,19,opt,name=ovm3cluster" json:"ovm3cluster,omitempty"`
// Ovm3 vip to use for pool (and cluster)
Ovm3Vip *string `protobuf:"bytes,20,opt,name=ovm3vip" json:"ovm3vip,omitempty"`
ResponseType *string `protobuf:"bytes,21,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
AddClusterRequest represents the parameters for adds a new cluster
func (*AddClusterRequest) Descriptor
deprecated
func (*AddClusterRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddClusterRequest.ProtoReflect.Descriptor instead.
func (*AddClusterRequest) GetAllocationState ¶
func (x *AddClusterRequest) GetAllocationState() string
func (*AddClusterRequest) GetArch ¶
func (x *AddClusterRequest) GetArch() string
func (*AddClusterRequest) GetClusterName ¶
func (x *AddClusterRequest) GetClusterName() string
func (*AddClusterRequest) GetClusterType ¶
func (x *AddClusterRequest) GetClusterType() string
func (*AddClusterRequest) GetHypervisor ¶
func (x *AddClusterRequest) GetHypervisor() string
func (*AddClusterRequest) GetOvm3Cluster ¶
func (x *AddClusterRequest) GetOvm3Cluster() string
func (*AddClusterRequest) GetOvm3Pool ¶
func (x *AddClusterRequest) GetOvm3Pool() string
func (*AddClusterRequest) GetOvm3Vip ¶
func (x *AddClusterRequest) GetOvm3Vip() string
func (*AddClusterRequest) GetPassword ¶
func (x *AddClusterRequest) GetPassword() string
func (*AddClusterRequest) GetPodId ¶
func (x *AddClusterRequest) GetPodId() int64
func (*AddClusterRequest) GetResponseType ¶
func (x *AddClusterRequest) GetResponseType() string
func (*AddClusterRequest) GetUrl ¶
func (x *AddClusterRequest) GetUrl() string
func (*AddClusterRequest) GetUsername ¶
func (x *AddClusterRequest) GetUsername() string
func (*AddClusterRequest) GetVSwitchNameGuestTraffic ¶
func (x *AddClusterRequest) GetVSwitchNameGuestTraffic() string
func (*AddClusterRequest) GetVSwitchNamePublicTraffic ¶
func (x *AddClusterRequest) GetVSwitchNamePublicTraffic() string
func (*AddClusterRequest) GetVSwitchTypeGuestTraffic ¶
func (x *AddClusterRequest) GetVSwitchTypeGuestTraffic() string
func (*AddClusterRequest) GetVSwitchTypePublicTraffic ¶
func (x *AddClusterRequest) GetVSwitchTypePublicTraffic() string
func (*AddClusterRequest) GetVsmipaddress ¶
func (x *AddClusterRequest) GetVsmipaddress() string
func (*AddClusterRequest) GetVsmpassword ¶
func (x *AddClusterRequest) GetVsmpassword() string
func (*AddClusterRequest) GetVsmusername ¶
func (x *AddClusterRequest) GetVsmusername() string
func (*AddClusterRequest) GetZoneId ¶
func (x *AddClusterRequest) GetZoneId() int64
func (*AddClusterRequest) ProtoMessage ¶
func (*AddClusterRequest) ProtoMessage()
func (*AddClusterRequest) ProtoReflect ¶
func (x *AddClusterRequest) ProtoReflect() protoreflect.Message
func (*AddClusterRequest) Reset ¶
func (x *AddClusterRequest) Reset()
func (*AddClusterRequest) String ¶
func (x *AddClusterRequest) String() string
type AddClusterResponse ¶
type AddClusterResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
AddClusterResponse represents the response from adds a new cluster
func (*AddClusterResponse) Descriptor
deprecated
func (*AddClusterResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddClusterResponse.ProtoReflect.Descriptor instead.
func (*AddClusterResponse) GetResult ¶
func (x *AddClusterResponse) GetResult() *Result
func (*AddClusterResponse) ProtoMessage ¶
func (*AddClusterResponse) ProtoMessage()
func (*AddClusterResponse) ProtoReflect ¶
func (x *AddClusterResponse) ProtoReflect() protoreflect.Message
func (*AddClusterResponse) Reset ¶
func (x *AddClusterResponse) Reset()
func (*AddClusterResponse) String ¶
func (x *AddClusterResponse) String() string
type Cluster ¶
type Cluster struct {
// The ID of the Cluster
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
// The name of the Cluster
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// The display name of the Cluster
DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// The description of the Cluster
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
}
Cluster represents a Cluster Item
func (*Cluster) Descriptor
deprecated
func (*Cluster) GetCreated ¶
func (*Cluster) GetDescription ¶
func (*Cluster) GetDisplayName ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) ProtoReflect ¶
func (x *Cluster) ProtoReflect() protoreflect.Message
type ClusterDrsPlan ¶
type ClusterDrsPlan struct {
// The ID of the ClusterDrsPlan
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
// The name of the ClusterDrsPlan
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// The display name of the ClusterDrsPlan
DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// The description of the ClusterDrsPlan
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
}
ClusterDrsPlan represents a ClusterDrsPlan Item
func (*ClusterDrsPlan) Descriptor
deprecated
func (*ClusterDrsPlan) Descriptor() ([]byte, []int)
Deprecated: Use ClusterDrsPlan.ProtoReflect.Descriptor instead.
func (*ClusterDrsPlan) GetCreated ¶
func (x *ClusterDrsPlan) GetCreated() string
func (*ClusterDrsPlan) GetDescription ¶
func (x *ClusterDrsPlan) GetDescription() string
func (*ClusterDrsPlan) GetDisplayName ¶
func (x *ClusterDrsPlan) GetDisplayName() string
func (*ClusterDrsPlan) GetId ¶
func (x *ClusterDrsPlan) GetId() string
func (*ClusterDrsPlan) GetName ¶
func (x *ClusterDrsPlan) GetName() string
func (*ClusterDrsPlan) ProtoMessage ¶
func (*ClusterDrsPlan) ProtoMessage()
func (*ClusterDrsPlan) ProtoReflect ¶
func (x *ClusterDrsPlan) ProtoReflect() protoreflect.Message
func (*ClusterDrsPlan) Reset ¶
func (x *ClusterDrsPlan) Reset()
func (*ClusterDrsPlan) String ¶
func (x *ClusterDrsPlan) String() string
type ClusterServiceClient ¶
type ClusterServiceClient interface {
// AddCluster Adds a new cluster
AddCluster(ctx context.Context, in *AddClusterRequest, opts ...grpc.CallOption) (*AddClusterResponse, error)
// DeleteCluster Deletes a cluster.
DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*DeleteClusterResponse, error)
// ExecuteClusterDrsPlan Execute DRS for a cluster. If there is another plan in progress for the same cluster, this command will fail.
ExecuteClusterDrsPlan(ctx context.Context, in *ExecuteClusterDrsPlanRequest, opts ...grpc.CallOption) (*ExecuteClusterDrsPlanResponse, error)
// GenerateClusterDrsPlan Generate DRS plan for a cluster
GenerateClusterDrsPlan(ctx context.Context, in *GenerateClusterDrsPlanRequest, opts ...grpc.CallOption) (*GenerateClusterDrsPlanResponse, error)
// ListClusterDrsPlan List DRS plans for a clusters
ListClusterDrsPlan(ctx context.Context, in *ListClusterDrsPlanRequest, opts ...grpc.CallOption) (*ListClusterDrsPlanResponse, error)
// ListClusters Lists clusters.
ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error)
// UpdateCluster Updates an existing cluster
UpdateCluster(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*UpdateClusterResponse, error)
}
ClusterServiceClient is the client API for ClusterService 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.
ClusterService provides operations for managing Clusters
func NewClusterServiceClient ¶
func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient
type ClusterServiceServer ¶
type ClusterServiceServer interface {
// AddCluster Adds a new cluster
AddCluster(context.Context, *AddClusterRequest) (*AddClusterResponse, error)
// DeleteCluster Deletes a cluster.
DeleteCluster(context.Context, *DeleteClusterRequest) (*DeleteClusterResponse, error)
// ExecuteClusterDrsPlan Execute DRS for a cluster. If there is another plan in progress for the same cluster, this command will fail.
ExecuteClusterDrsPlan(context.Context, *ExecuteClusterDrsPlanRequest) (*ExecuteClusterDrsPlanResponse, error)
// GenerateClusterDrsPlan Generate DRS plan for a cluster
GenerateClusterDrsPlan(context.Context, *GenerateClusterDrsPlanRequest) (*GenerateClusterDrsPlanResponse, error)
// ListClusterDrsPlan List DRS plans for a clusters
ListClusterDrsPlan(context.Context, *ListClusterDrsPlanRequest) (*ListClusterDrsPlanResponse, error)
// ListClusters Lists clusters.
ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error)
// UpdateCluster Updates an existing cluster
UpdateCluster(context.Context, *UpdateClusterRequest) (*UpdateClusterResponse, error)
// contains filtered or unexported methods
}
ClusterServiceServer is the server API for ClusterService service. All implementations must embed UnimplementedClusterServiceServer for forward compatibility.
ClusterService provides operations for managing Clusters
type DeleteClusterRequest ¶
type DeleteClusterRequest struct {
// the cluster ID
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
DeleteClusterRequest represents the parameters for deletes a cluster.
func (*DeleteClusterRequest) Descriptor
deprecated
func (*DeleteClusterRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteClusterRequest.ProtoReflect.Descriptor instead.
func (*DeleteClusterRequest) GetId ¶
func (x *DeleteClusterRequest) GetId() int64
func (*DeleteClusterRequest) GetResponseType ¶
func (x *DeleteClusterRequest) GetResponseType() string
func (*DeleteClusterRequest) ProtoMessage ¶
func (*DeleteClusterRequest) ProtoMessage()
func (*DeleteClusterRequest) ProtoReflect ¶
func (x *DeleteClusterRequest) ProtoReflect() protoreflect.Message
func (*DeleteClusterRequest) Reset ¶
func (x *DeleteClusterRequest) Reset()
func (*DeleteClusterRequest) String ¶
func (x *DeleteClusterRequest) String() string
type DeleteClusterResponse ¶
type DeleteClusterResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
DeleteClusterResponse represents the response from deletes a cluster.
func (*DeleteClusterResponse) Descriptor
deprecated
func (*DeleteClusterResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteClusterResponse.ProtoReflect.Descriptor instead.
func (*DeleteClusterResponse) GetResult ¶
func (x *DeleteClusterResponse) GetResult() *Result
func (*DeleteClusterResponse) ProtoMessage ¶
func (*DeleteClusterResponse) ProtoMessage()
func (*DeleteClusterResponse) ProtoReflect ¶
func (x *DeleteClusterResponse) ProtoReflect() protoreflect.Message
func (*DeleteClusterResponse) Reset ¶
func (x *DeleteClusterResponse) Reset()
func (*DeleteClusterResponse) String ¶
func (x *DeleteClusterResponse) String() string
type ExecuteClusterDrsPlanRequest ¶
type ExecuteClusterDrsPlanRequest struct {
// ID of cluster
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// Virtual Machine to destination host mapping. This parameter specifies the mapping between a vm and a host to migrate that VM. clusterid is required if this parameter is set.Format of this parameter: migrateto[vm-index].vm=<uuid>&migrateto[vm-index].host=<uuid> Where, [vm-index] indicates the index to identify the vm that you want to migrate, vm=<uuid> indicates the UUID of the vm that you want to migrate, and host=<uuid> indicates the UUID of the host where you want to migrate the vm. Example: migrateto[0].vm=<71f43cd6-69b0-4d3b-9fbc-67f50963d60b>&migrateto[0].host=<a382f181-3d2b-4413-b92d-b8931befa7e1>&migrateto[1].vm=<88de0173-55c0-4c1c-a269-83d0279eeedf>&migrateto[1].host=<95d6e97c-6766-4d67-9a30-c449c15011d1>&migrateto[2].vm=<1b331390-59f2-4796-9993-bf11c6e76225>&migrateto[2].host=<41fdb564-9d3b-447d-88ed-7628f7640cbc>
MigrateVmTo map[string]string `` /* 163-byte string literal not displayed */
StartEventId *int64 `protobuf:"varint,3,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,4,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ExecuteClusterDrsPlanRequest represents the parameters for execute drs for a cluster. if there is another plan in progress for the same cluster, this command will fail.
func (*ExecuteClusterDrsPlanRequest) Descriptor
deprecated
func (*ExecuteClusterDrsPlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteClusterDrsPlanRequest.ProtoReflect.Descriptor instead.
func (*ExecuteClusterDrsPlanRequest) GetId ¶
func (x *ExecuteClusterDrsPlanRequest) GetId() int64
func (*ExecuteClusterDrsPlanRequest) GetInjectedJobId ¶
func (x *ExecuteClusterDrsPlanRequest) GetInjectedJobId() string
func (*ExecuteClusterDrsPlanRequest) GetMigrateVmTo ¶
func (x *ExecuteClusterDrsPlanRequest) GetMigrateVmTo() map[string]string
func (*ExecuteClusterDrsPlanRequest) GetResponseType ¶
func (x *ExecuteClusterDrsPlanRequest) GetResponseType() string
func (*ExecuteClusterDrsPlanRequest) GetStartEventId ¶
func (x *ExecuteClusterDrsPlanRequest) GetStartEventId() int64
func (*ExecuteClusterDrsPlanRequest) ProtoMessage ¶
func (*ExecuteClusterDrsPlanRequest) ProtoMessage()
func (*ExecuteClusterDrsPlanRequest) ProtoReflect ¶
func (x *ExecuteClusterDrsPlanRequest) ProtoReflect() protoreflect.Message
func (*ExecuteClusterDrsPlanRequest) Reset ¶
func (x *ExecuteClusterDrsPlanRequest) Reset()
func (*ExecuteClusterDrsPlanRequest) String ¶
func (x *ExecuteClusterDrsPlanRequest) String() string
type ExecuteClusterDrsPlanResponse ¶
type ExecuteClusterDrsPlanResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
ExecuteClusterDrsPlanResponse represents the response from execute drs for a cluster. if there is another plan in progress for the same cluster, this command will fail.
func (*ExecuteClusterDrsPlanResponse) Descriptor
deprecated
func (*ExecuteClusterDrsPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteClusterDrsPlanResponse.ProtoReflect.Descriptor instead.
func (*ExecuteClusterDrsPlanResponse) GetResult ¶
func (x *ExecuteClusterDrsPlanResponse) GetResult() *Result
func (*ExecuteClusterDrsPlanResponse) ProtoMessage ¶
func (*ExecuteClusterDrsPlanResponse) ProtoMessage()
func (*ExecuteClusterDrsPlanResponse) ProtoReflect ¶
func (x *ExecuteClusterDrsPlanResponse) ProtoReflect() protoreflect.Message
func (*ExecuteClusterDrsPlanResponse) Reset ¶
func (x *ExecuteClusterDrsPlanResponse) Reset()
func (*ExecuteClusterDrsPlanResponse) String ¶
func (x *ExecuteClusterDrsPlanResponse) String() string
type GenerateClusterDrsPlanRequest ¶
type GenerateClusterDrsPlanRequest struct {
// the ID of the Cluster
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// Maximum number of VMs to migrate for a DRS execution. Defaults to value of cluster's drs.vm.migrations setting
Migrations *int32 `protobuf:"varint,2,opt,name=migrations" json:"migrations,omitempty"`
ResponseType *string `protobuf:"bytes,3,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
GenerateClusterDrsPlanRequest represents the parameters for generate drs plan for a cluster
func (*GenerateClusterDrsPlanRequest) Descriptor
deprecated
func (*GenerateClusterDrsPlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateClusterDrsPlanRequest.ProtoReflect.Descriptor instead.
func (*GenerateClusterDrsPlanRequest) GetId ¶
func (x *GenerateClusterDrsPlanRequest) GetId() int64
func (*GenerateClusterDrsPlanRequest) GetMigrations ¶
func (x *GenerateClusterDrsPlanRequest) GetMigrations() int32
func (*GenerateClusterDrsPlanRequest) GetResponseType ¶
func (x *GenerateClusterDrsPlanRequest) GetResponseType() string
func (*GenerateClusterDrsPlanRequest) ProtoMessage ¶
func (*GenerateClusterDrsPlanRequest) ProtoMessage()
func (*GenerateClusterDrsPlanRequest) ProtoReflect ¶
func (x *GenerateClusterDrsPlanRequest) ProtoReflect() protoreflect.Message
func (*GenerateClusterDrsPlanRequest) Reset ¶
func (x *GenerateClusterDrsPlanRequest) Reset()
func (*GenerateClusterDrsPlanRequest) String ¶
func (x *GenerateClusterDrsPlanRequest) String() string
type GenerateClusterDrsPlanResponse ¶
type GenerateClusterDrsPlanResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
GenerateClusterDrsPlanResponse represents the response from generate drs plan for a cluster
func (*GenerateClusterDrsPlanResponse) Descriptor
deprecated
func (*GenerateClusterDrsPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateClusterDrsPlanResponse.ProtoReflect.Descriptor instead.
func (*GenerateClusterDrsPlanResponse) GetResult ¶
func (x *GenerateClusterDrsPlanResponse) GetResult() *Result
func (*GenerateClusterDrsPlanResponse) ProtoMessage ¶
func (*GenerateClusterDrsPlanResponse) ProtoMessage()
func (*GenerateClusterDrsPlanResponse) ProtoReflect ¶
func (x *GenerateClusterDrsPlanResponse) ProtoReflect() protoreflect.Message
func (*GenerateClusterDrsPlanResponse) Reset ¶
func (x *GenerateClusterDrsPlanResponse) Reset()
func (*GenerateClusterDrsPlanResponse) String ¶
func (x *GenerateClusterDrsPlanResponse) String() string
type ListClusterDrsPlanRequest ¶
type ListClusterDrsPlanRequest struct {
// ID of the drs plan
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// ID of the cluster
ClusterId *int64 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId" json:"cluster_id,omitempty"`
// List by keyword
Keyword *string `protobuf:"bytes,3,opt,name=keyword" json:"keyword,omitempty"`
Page *int32 `protobuf:"varint,4,opt,name=page" json:"page,omitempty"`
PageSize *int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ListClusterDrsPlanRequest represents the parameters for list drs plans for a clusters
func (*ListClusterDrsPlanRequest) Descriptor
deprecated
func (*ListClusterDrsPlanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListClusterDrsPlanRequest.ProtoReflect.Descriptor instead.
func (*ListClusterDrsPlanRequest) GetClusterId ¶
func (x *ListClusterDrsPlanRequest) GetClusterId() int64
func (*ListClusterDrsPlanRequest) GetId ¶
func (x *ListClusterDrsPlanRequest) GetId() int64
func (*ListClusterDrsPlanRequest) GetKeyword ¶
func (x *ListClusterDrsPlanRequest) GetKeyword() string
func (*ListClusterDrsPlanRequest) GetPage ¶
func (x *ListClusterDrsPlanRequest) GetPage() int32
func (*ListClusterDrsPlanRequest) GetPageSize ¶
func (x *ListClusterDrsPlanRequest) GetPageSize() int32
func (*ListClusterDrsPlanRequest) GetResponseType ¶
func (x *ListClusterDrsPlanRequest) GetResponseType() string
func (*ListClusterDrsPlanRequest) ProtoMessage ¶
func (*ListClusterDrsPlanRequest) ProtoMessage()
func (*ListClusterDrsPlanRequest) ProtoReflect ¶
func (x *ListClusterDrsPlanRequest) ProtoReflect() protoreflect.Message
func (*ListClusterDrsPlanRequest) Reset ¶
func (x *ListClusterDrsPlanRequest) Reset()
func (*ListClusterDrsPlanRequest) String ¶
func (x *ListClusterDrsPlanRequest) String() string
type ListClusterDrsPlanResponse ¶
type ListClusterDrsPlanResponse struct {
// The list of ClusterDrsPlans
Items []*ClusterDrsPlan `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
// The total count of ClusterDrsPlans
TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
ListClusterDrsPlanResponse represents the response from list drs plans for a clusters
func (*ListClusterDrsPlanResponse) Descriptor
deprecated
func (*ListClusterDrsPlanResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListClusterDrsPlanResponse.ProtoReflect.Descriptor instead.
func (*ListClusterDrsPlanResponse) GetItems ¶
func (x *ListClusterDrsPlanResponse) GetItems() []*ClusterDrsPlan
func (*ListClusterDrsPlanResponse) GetTotalCount ¶
func (x *ListClusterDrsPlanResponse) GetTotalCount() int32
func (*ListClusterDrsPlanResponse) ProtoMessage ¶
func (*ListClusterDrsPlanResponse) ProtoMessage()
func (*ListClusterDrsPlanResponse) ProtoReflect ¶
func (x *ListClusterDrsPlanResponse) ProtoReflect() protoreflect.Message
func (*ListClusterDrsPlanResponse) Reset ¶
func (x *ListClusterDrsPlanResponse) Reset()
func (*ListClusterDrsPlanResponse) String ¶
func (x *ListClusterDrsPlanResponse) String() string
type ListClustersRequest ¶
type ListClustersRequest struct {
// lists clusters by the cluster ID
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// lists clusters by the cluster name
ClusterName *string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName" json:"cluster_name,omitempty"`
// lists clusters by Pod ID
PodId *int64 `protobuf:"varint,3,opt,name=pod_id,json=podId" json:"pod_id,omitempty"`
// lists clusters by Zone ID
ZoneId *int64 `protobuf:"varint,4,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
// lists clusters by hypervisor type
HypervisorType *string `protobuf:"bytes,5,opt,name=hypervisor_type,json=hypervisorType" json:"hypervisor_type,omitempty"`
// lists clusters by cluster type
ClusterType *string `protobuf:"bytes,6,opt,name=cluster_type,json=clusterType" json:"cluster_type,omitempty"`
// lists clusters by allocation state
AllocationState *string `protobuf:"bytes,7,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
// whether this cluster is managed by cloudstack
ManagedState *string `protobuf:"bytes,8,opt,name=managed_state,json=managedState" json:"managed_state,omitempty"`
// flag to display the capacity of the clusters
ShowCapacities *bool `protobuf:"varint,9,opt,name=show_capacities,json=showCapacities" json:"show_capacities,omitempty"`
// List by keyword
Keyword *string `protobuf:"bytes,10,opt,name=keyword" json:"keyword,omitempty"`
Page *int32 `protobuf:"varint,11,opt,name=page" json:"page,omitempty"`
PageSize *int32 `protobuf:"varint,12,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
ResponseType *string `protobuf:"bytes,13,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ListClustersRequest represents the parameters for lists clusters.
func (*ListClustersRequest) Descriptor
deprecated
func (*ListClustersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListClustersRequest.ProtoReflect.Descriptor instead.
func (*ListClustersRequest) GetAllocationState ¶
func (x *ListClustersRequest) GetAllocationState() string
func (*ListClustersRequest) GetClusterName ¶
func (x *ListClustersRequest) GetClusterName() string
func (*ListClustersRequest) GetClusterType ¶
func (x *ListClustersRequest) GetClusterType() string
func (*ListClustersRequest) GetHypervisorType ¶
func (x *ListClustersRequest) GetHypervisorType() string
func (*ListClustersRequest) GetId ¶
func (x *ListClustersRequest) GetId() int64
func (*ListClustersRequest) GetKeyword ¶
func (x *ListClustersRequest) GetKeyword() string
func (*ListClustersRequest) GetManagedState ¶
func (x *ListClustersRequest) GetManagedState() string
func (*ListClustersRequest) GetPage ¶
func (x *ListClustersRequest) GetPage() int32
func (*ListClustersRequest) GetPageSize ¶
func (x *ListClustersRequest) GetPageSize() int32
func (*ListClustersRequest) GetPodId ¶
func (x *ListClustersRequest) GetPodId() int64
func (*ListClustersRequest) GetResponseType ¶
func (x *ListClustersRequest) GetResponseType() string
func (*ListClustersRequest) GetShowCapacities ¶
func (x *ListClustersRequest) GetShowCapacities() bool
func (*ListClustersRequest) GetZoneId ¶
func (x *ListClustersRequest) GetZoneId() int64
func (*ListClustersRequest) ProtoMessage ¶
func (*ListClustersRequest) ProtoMessage()
func (*ListClustersRequest) ProtoReflect ¶
func (x *ListClustersRequest) ProtoReflect() protoreflect.Message
func (*ListClustersRequest) Reset ¶
func (x *ListClustersRequest) Reset()
func (*ListClustersRequest) String ¶
func (x *ListClustersRequest) String() string
type ListClustersResponse ¶
type ListClustersResponse struct {
// The list of Clusters
Items []*Cluster `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
// The total count of Clusters
TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
ListClustersResponse represents the response from lists clusters.
func (*ListClustersResponse) Descriptor
deprecated
func (*ListClustersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListClustersResponse.ProtoReflect.Descriptor instead.
func (*ListClustersResponse) GetItems ¶
func (x *ListClustersResponse) GetItems() []*Cluster
func (*ListClustersResponse) GetTotalCount ¶
func (x *ListClustersResponse) GetTotalCount() int32
func (*ListClustersResponse) ProtoMessage ¶
func (*ListClustersResponse) ProtoMessage()
func (*ListClustersResponse) ProtoReflect ¶
func (x *ListClustersResponse) ProtoReflect() protoreflect.Message
func (*ListClustersResponse) Reset ¶
func (x *ListClustersResponse) Reset()
func (*ListClustersResponse) String ¶
func (x *ListClustersResponse) String() 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) GetDisplayText ¶
func (*Result) GetJobStatus ¶
func (*Result) GetSuccess ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
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) GetDisplayText ¶
func (*Success) GetSuccess ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) ProtoReflect ¶
func (x *Success) ProtoReflect() protoreflect.Message
type UnimplementedClusterServiceServer ¶
type UnimplementedClusterServiceServer struct{}
UnimplementedClusterServiceServer 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 (UnimplementedClusterServiceServer) AddCluster ¶
func (UnimplementedClusterServiceServer) AddCluster(context.Context, *AddClusterRequest) (*AddClusterResponse, error)
func (UnimplementedClusterServiceServer) DeleteCluster ¶
func (UnimplementedClusterServiceServer) DeleteCluster(context.Context, *DeleteClusterRequest) (*DeleteClusterResponse, error)
func (UnimplementedClusterServiceServer) ExecuteClusterDrsPlan ¶
func (UnimplementedClusterServiceServer) ExecuteClusterDrsPlan(context.Context, *ExecuteClusterDrsPlanRequest) (*ExecuteClusterDrsPlanResponse, error)
func (UnimplementedClusterServiceServer) GenerateClusterDrsPlan ¶
func (UnimplementedClusterServiceServer) GenerateClusterDrsPlan(context.Context, *GenerateClusterDrsPlanRequest) (*GenerateClusterDrsPlanResponse, error)
func (UnimplementedClusterServiceServer) ListClusterDrsPlan ¶
func (UnimplementedClusterServiceServer) ListClusterDrsPlan(context.Context, *ListClusterDrsPlanRequest) (*ListClusterDrsPlanResponse, error)
func (UnimplementedClusterServiceServer) ListClusters ¶
func (UnimplementedClusterServiceServer) ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error)
func (UnimplementedClusterServiceServer) UpdateCluster ¶
func (UnimplementedClusterServiceServer) UpdateCluster(context.Context, *UpdateClusterRequest) (*UpdateClusterResponse, error)
type UnsafeClusterServiceServer ¶
type UnsafeClusterServiceServer interface {
// contains filtered or unexported methods
}
UnsafeClusterServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClusterServiceServer will result in compilation errors.
type UpdateClusterRequest ¶
type UpdateClusterRequest struct {
// the ID of the Cluster
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// the cluster name
ClusterName *string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName" json:"cluster_name,omitempty"`
// hypervisor type of the cluster
Hypervisor *string `protobuf:"bytes,3,opt,name=hypervisor" json:"hypervisor,omitempty"`
// hypervisor type of the cluster
ClusterType *string `protobuf:"bytes,4,opt,name=cluster_type,json=clusterType" json:"cluster_type,omitempty"`
// Allocation state of this cluster for allocation of new resources
AllocationState *string `protobuf:"bytes,5,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
// whether this cluster is managed by cloudstack
ManagedState *string `protobuf:"bytes,6,opt,name=managed_state,json=managedState" json:"managed_state,omitempty"`
// the CPU arch of the cluster. Valid options are: x86_64, aarch64
Arch *string `protobuf:"bytes,7,opt,name=arch" json:"arch,omitempty"`
ResponseType *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
UpdateClusterRequest represents the parameters for updates an existing cluster
func (*UpdateClusterRequest) Descriptor
deprecated
func (*UpdateClusterRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateClusterRequest.ProtoReflect.Descriptor instead.
func (*UpdateClusterRequest) GetAllocationState ¶
func (x *UpdateClusterRequest) GetAllocationState() string
func (*UpdateClusterRequest) GetArch ¶
func (x *UpdateClusterRequest) GetArch() string
func (*UpdateClusterRequest) GetClusterName ¶
func (x *UpdateClusterRequest) GetClusterName() string
func (*UpdateClusterRequest) GetClusterType ¶
func (x *UpdateClusterRequest) GetClusterType() string
func (*UpdateClusterRequest) GetHypervisor ¶
func (x *UpdateClusterRequest) GetHypervisor() string
func (*UpdateClusterRequest) GetId ¶
func (x *UpdateClusterRequest) GetId() int64
func (*UpdateClusterRequest) GetManagedState ¶
func (x *UpdateClusterRequest) GetManagedState() string
func (*UpdateClusterRequest) GetResponseType ¶
func (x *UpdateClusterRequest) GetResponseType() string
func (*UpdateClusterRequest) ProtoMessage ¶
func (*UpdateClusterRequest) ProtoMessage()
func (*UpdateClusterRequest) ProtoReflect ¶
func (x *UpdateClusterRequest) ProtoReflect() protoreflect.Message
func (*UpdateClusterRequest) Reset ¶
func (x *UpdateClusterRequest) Reset()
func (*UpdateClusterRequest) String ¶
func (x *UpdateClusterRequest) String() string
type UpdateClusterResponse ¶
type UpdateClusterResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
UpdateClusterResponse represents the response from updates an existing cluster
func (*UpdateClusterResponse) Descriptor
deprecated
func (*UpdateClusterResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateClusterResponse.ProtoReflect.Descriptor instead.
func (*UpdateClusterResponse) GetResult ¶
func (x *UpdateClusterResponse) GetResult() *Result
func (*UpdateClusterResponse) ProtoMessage ¶
func (*UpdateClusterResponse) ProtoMessage()
func (*UpdateClusterResponse) ProtoReflect ¶
func (x *UpdateClusterResponse) ProtoReflect() protoreflect.Message
func (*UpdateClusterResponse) Reset ¶
func (x *UpdateClusterResponse) Reset()
func (*UpdateClusterResponse) String ¶
func (x *UpdateClusterResponse) String() string