vmgroupv1

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 (
	VmgroupService_CreateVMGroup_FullMethodName = "/cloudstack.management.vmgroup.v1.VmgroupService/CreateVMGroup"
	VmgroupService_DeleteVMGroup_FullMethodName = "/cloudstack.management.vmgroup.v1.VmgroupService/DeleteVMGroup"
	VmgroupService_ListVMGroups_FullMethodName  = "/cloudstack.management.vmgroup.v1.VmgroupService/ListVMGroups"
	VmgroupService_UpdateVMGroup_FullMethodName = "/cloudstack.management.vmgroup.v1.VmgroupService/UpdateVMGroup"
)

Variables

View Source
var File_cloudstack_management_vmgroup_v1_vmgroup_gen_proto protoreflect.FileDescriptor
View Source
var VmgroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.vmgroup.v1.VmgroupService",
	HandlerType: (*VmgroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVMGroup",
			Handler:    _VmgroupService_CreateVMGroup_Handler,
		},
		{
			MethodName: "DeleteVMGroup",
			Handler:    _VmgroupService_DeleteVMGroup_Handler,
		},
		{
			MethodName: "ListVMGroups",
			Handler:    _VmgroupService_ListVMGroups_Handler,
		},
		{
			MethodName: "UpdateVMGroup",
			Handler:    _VmgroupService_UpdateVMGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/vmgroup/v1/vmgroup.gen.proto",
}

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

Functions

func RegisterVmgroupServiceServer

func RegisterVmgroupServiceServer(s grpc.ServiceRegistrar, srv VmgroupServiceServer)

Types

type CreateVMGroupRequest

type CreateVMGroupRequest struct {

	// the name of the instance group
	GroupName *string `protobuf:"bytes,1,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
	// the account of the instance group. The account parameter must be used with the domainId parameter.
	AccountName *string `protobuf:"bytes,2,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
	// the domain ID of account owning the instance group
	DomainId *int64 `protobuf:"varint,3,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
	// The project of the instance group
	ProjectId    *int64  `protobuf:"varint,4,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	ResponseType *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

CreateVMGroupRequest represents the parameters for creates a vm group

func (*CreateVMGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateVMGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateVMGroupRequest) GetAccountName

func (x *CreateVMGroupRequest) GetAccountName() string

func (*CreateVMGroupRequest) GetDomainId

func (x *CreateVMGroupRequest) GetDomainId() int64

func (*CreateVMGroupRequest) GetGroupName

func (x *CreateVMGroupRequest) GetGroupName() string

func (*CreateVMGroupRequest) GetProjectId

func (x *CreateVMGroupRequest) GetProjectId() int64

func (*CreateVMGroupRequest) GetResponseType

func (x *CreateVMGroupRequest) GetResponseType() string

func (*CreateVMGroupRequest) ProtoMessage

func (*CreateVMGroupRequest) ProtoMessage()

func (*CreateVMGroupRequest) ProtoReflect

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

func (*CreateVMGroupRequest) Reset

func (x *CreateVMGroupRequest) Reset()

func (*CreateVMGroupRequest) String

func (x *CreateVMGroupRequest) String() string

type CreateVMGroupResponse

type CreateVMGroupResponse struct {

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

CreateVMGroupResponse represents the response from creates a vm group

func (*CreateVMGroupResponse) Descriptor deprecated

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

Deprecated: Use CreateVMGroupResponse.ProtoReflect.Descriptor instead.

func (*CreateVMGroupResponse) GetResult

func (x *CreateVMGroupResponse) GetResult() *Result

func (*CreateVMGroupResponse) ProtoMessage

func (*CreateVMGroupResponse) ProtoMessage()

func (*CreateVMGroupResponse) ProtoReflect

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

func (*CreateVMGroupResponse) Reset

func (x *CreateVMGroupResponse) Reset()

func (*CreateVMGroupResponse) String

func (x *CreateVMGroupResponse) String() string

type DeleteVMGroupRequest

type DeleteVMGroupRequest struct {

	// the ID of the instance group
	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
}

DeleteVMGroupRequest represents the parameters for deletes a vm group

func (*DeleteVMGroupRequest) Descriptor deprecated

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

Deprecated: Use DeleteVMGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteVMGroupRequest) GetId

func (x *DeleteVMGroupRequest) GetId() int64

func (*DeleteVMGroupRequest) GetResponseType

func (x *DeleteVMGroupRequest) GetResponseType() string

func (*DeleteVMGroupRequest) ProtoMessage

func (*DeleteVMGroupRequest) ProtoMessage()

func (*DeleteVMGroupRequest) ProtoReflect

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

func (*DeleteVMGroupRequest) Reset

func (x *DeleteVMGroupRequest) Reset()

func (*DeleteVMGroupRequest) String

func (x *DeleteVMGroupRequest) String() string

type DeleteVMGroupResponse

type DeleteVMGroupResponse struct {

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

DeleteVMGroupResponse represents the response from deletes a vm group

func (*DeleteVMGroupResponse) Descriptor deprecated

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

Deprecated: Use DeleteVMGroupResponse.ProtoReflect.Descriptor instead.

func (*DeleteVMGroupResponse) GetResult

func (x *DeleteVMGroupResponse) GetResult() *Result

func (*DeleteVMGroupResponse) ProtoMessage

func (*DeleteVMGroupResponse) ProtoMessage()

func (*DeleteVMGroupResponse) ProtoReflect

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

func (*DeleteVMGroupResponse) Reset

func (x *DeleteVMGroupResponse) Reset()

func (*DeleteVMGroupResponse) String

func (x *DeleteVMGroupResponse) String() string

type InstanceGroup

type InstanceGroup struct {

	// The ID of the InstanceGroup
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the InstanceGroup
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the InstanceGroup
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the InstanceGroup
	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
}

InstanceGroup represents a InstanceGroup Item

func (*InstanceGroup) Descriptor deprecated

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

Deprecated: Use InstanceGroup.ProtoReflect.Descriptor instead.

func (*InstanceGroup) GetCreated

func (x *InstanceGroup) GetCreated() string

func (*InstanceGroup) GetDescription

func (x *InstanceGroup) GetDescription() string

func (*InstanceGroup) GetDisplayName

func (x *InstanceGroup) GetDisplayName() string

func (*InstanceGroup) GetId

func (x *InstanceGroup) GetId() string

func (*InstanceGroup) GetName

func (x *InstanceGroup) GetName() string

func (*InstanceGroup) ProtoMessage

func (*InstanceGroup) ProtoMessage()

func (*InstanceGroup) ProtoReflect

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

func (*InstanceGroup) Reset

func (x *InstanceGroup) Reset()

func (*InstanceGroup) String

func (x *InstanceGroup) String() string

type ListVMGroupsRequest

type ListVMGroupsRequest struct {

	// list instance groups by ID
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// list instance groups by name
	GroupName *string `protobuf:"bytes,2,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
	// list objects by project; if projectid=-1 lists All VMs
	ProjectId *int64 `protobuf:"varint,3,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// list resources by account. Must be used with the domainId parameter.
	AccountName *string `protobuf:"bytes,4,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
	// If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false. Resources dedicated to a project are listed only if using the projectid parameter.
	ListAll *bool `protobuf:"varint,5,opt,name=list_all,json=listAll" json:"list_all,omitempty"`
	// list only resources belonging to the domain specified
	DomainId *int64 `protobuf:"varint,6,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
	// defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.
	Recursive *bool `protobuf:"varint,7,opt,name=recursive" json:"recursive,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,8,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,9,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,10,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,11,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListVMGroupsRequest represents the parameters for lists vm groups

func (*ListVMGroupsRequest) Descriptor deprecated

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

Deprecated: Use ListVMGroupsRequest.ProtoReflect.Descriptor instead.

func (*ListVMGroupsRequest) GetAccountName

func (x *ListVMGroupsRequest) GetAccountName() string

func (*ListVMGroupsRequest) GetDomainId

func (x *ListVMGroupsRequest) GetDomainId() int64

func (*ListVMGroupsRequest) GetGroupName

func (x *ListVMGroupsRequest) GetGroupName() string

func (*ListVMGroupsRequest) GetId

func (x *ListVMGroupsRequest) GetId() int64

func (*ListVMGroupsRequest) GetKeyword

func (x *ListVMGroupsRequest) GetKeyword() string

func (*ListVMGroupsRequest) GetListAll

func (x *ListVMGroupsRequest) GetListAll() bool

func (*ListVMGroupsRequest) GetPage

func (x *ListVMGroupsRequest) GetPage() int32

func (*ListVMGroupsRequest) GetPageSize

func (x *ListVMGroupsRequest) GetPageSize() int32

func (*ListVMGroupsRequest) GetProjectId

func (x *ListVMGroupsRequest) GetProjectId() int64

func (*ListVMGroupsRequest) GetRecursive

func (x *ListVMGroupsRequest) GetRecursive() bool

func (*ListVMGroupsRequest) GetResponseType

func (x *ListVMGroupsRequest) GetResponseType() string

func (*ListVMGroupsRequest) ProtoMessage

func (*ListVMGroupsRequest) ProtoMessage()

func (*ListVMGroupsRequest) ProtoReflect

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

func (*ListVMGroupsRequest) Reset

func (x *ListVMGroupsRequest) Reset()

func (*ListVMGroupsRequest) String

func (x *ListVMGroupsRequest) String() string

type ListVMGroupsResponse

type ListVMGroupsResponse struct {

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

ListVMGroupsResponse represents the response from lists vm groups

func (*ListVMGroupsResponse) Descriptor deprecated

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

Deprecated: Use ListVMGroupsResponse.ProtoReflect.Descriptor instead.

func (*ListVMGroupsResponse) GetItems

func (x *ListVMGroupsResponse) GetItems() []*InstanceGroup

func (*ListVMGroupsResponse) GetTotalCount

func (x *ListVMGroupsResponse) GetTotalCount() int32

func (*ListVMGroupsResponse) ProtoMessage

func (*ListVMGroupsResponse) ProtoMessage()

func (*ListVMGroupsResponse) ProtoReflect

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

func (*ListVMGroupsResponse) Reset

func (x *ListVMGroupsResponse) Reset()

func (*ListVMGroupsResponse) String

func (x *ListVMGroupsResponse) 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) 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 UnimplementedVmgroupServiceServer

type UnimplementedVmgroupServiceServer struct{}

UnimplementedVmgroupServiceServer 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 (UnimplementedVmgroupServiceServer) CreateVMGroup

func (UnimplementedVmgroupServiceServer) DeleteVMGroup

func (UnimplementedVmgroupServiceServer) ListVMGroups

func (UnimplementedVmgroupServiceServer) UpdateVMGroup

type UnsafeVmgroupServiceServer

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

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

type UpdateVMGroupRequest

type UpdateVMGroupRequest struct {

	// Instance group ID
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// new instance group name
	GroupName    *string `protobuf:"bytes,2,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
	ResponseType *string `protobuf:"bytes,3,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

UpdateVMGroupRequest represents the parameters for updates a vm group

func (*UpdateVMGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateVMGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateVMGroupRequest) GetGroupName

func (x *UpdateVMGroupRequest) GetGroupName() string

func (*UpdateVMGroupRequest) GetId

func (x *UpdateVMGroupRequest) GetId() int64

func (*UpdateVMGroupRequest) GetResponseType

func (x *UpdateVMGroupRequest) GetResponseType() string

func (*UpdateVMGroupRequest) ProtoMessage

func (*UpdateVMGroupRequest) ProtoMessage()

func (*UpdateVMGroupRequest) ProtoReflect

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

func (*UpdateVMGroupRequest) Reset

func (x *UpdateVMGroupRequest) Reset()

func (*UpdateVMGroupRequest) String

func (x *UpdateVMGroupRequest) String() string

type UpdateVMGroupResponse

type UpdateVMGroupResponse struct {

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

UpdateVMGroupResponse represents the response from updates a vm group

func (*UpdateVMGroupResponse) Descriptor deprecated

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

Deprecated: Use UpdateVMGroupResponse.ProtoReflect.Descriptor instead.

func (*UpdateVMGroupResponse) GetResult

func (x *UpdateVMGroupResponse) GetResult() *Result

func (*UpdateVMGroupResponse) ProtoMessage

func (*UpdateVMGroupResponse) ProtoMessage()

func (*UpdateVMGroupResponse) ProtoReflect

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

func (*UpdateVMGroupResponse) Reset

func (x *UpdateVMGroupResponse) Reset()

func (*UpdateVMGroupResponse) String

func (x *UpdateVMGroupResponse) String() string

type VmgroupServiceClient

type VmgroupServiceClient interface {
	// CreateVMGroup Creates a vm group
	CreateVMGroup(ctx context.Context, in *CreateVMGroupRequest, opts ...grpc.CallOption) (*CreateVMGroupResponse, error)
	// DeleteVMGroup Deletes a vm group
	DeleteVMGroup(ctx context.Context, in *DeleteVMGroupRequest, opts ...grpc.CallOption) (*DeleteVMGroupResponse, error)
	// ListVMGroups Lists vm groups
	ListVMGroups(ctx context.Context, in *ListVMGroupsRequest, opts ...grpc.CallOption) (*ListVMGroupsResponse, error)
	// UpdateVMGroup Updates a vm group
	UpdateVMGroup(ctx context.Context, in *UpdateVMGroupRequest, opts ...grpc.CallOption) (*UpdateVMGroupResponse, error)
}

VmgroupServiceClient is the client API for VmgroupService 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.

VmgroupService provides operations for managing Vmgroups

type VmgroupServiceServer

type VmgroupServiceServer interface {
	// CreateVMGroup Creates a vm group
	CreateVMGroup(context.Context, *CreateVMGroupRequest) (*CreateVMGroupResponse, error)
	// DeleteVMGroup Deletes a vm group
	DeleteVMGroup(context.Context, *DeleteVMGroupRequest) (*DeleteVMGroupResponse, error)
	// ListVMGroups Lists vm groups
	ListVMGroups(context.Context, *ListVMGroupsRequest) (*ListVMGroupsResponse, error)
	// UpdateVMGroup Updates a vm group
	UpdateVMGroup(context.Context, *UpdateVMGroupRequest) (*UpdateVMGroupResponse, error)
	// contains filtered or unexported methods
}

VmgroupServiceServer is the server API for VmgroupService service. All implementations must embed UnimplementedVmgroupServiceServer for forward compatibility.

VmgroupService provides operations for managing Vmgroups

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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