Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterVmsnapshotServiceServer(s grpc.ServiceRegistrar, srv VmsnapshotServiceServer)
- type CreateVMSnapshotRequest
- func (*CreateVMSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVMSnapshotRequest) GetDescription() string
- func (x *CreateVMSnapshotRequest) GetDisplayName() string
- func (x *CreateVMSnapshotRequest) GetInjectedJobId() string
- func (x *CreateVMSnapshotRequest) GetQuiescevm() bool
- func (x *CreateVMSnapshotRequest) GetResponseType() string
- func (x *CreateVMSnapshotRequest) GetSnapshotMemory() bool
- func (x *CreateVMSnapshotRequest) GetStartEventId() int64
- func (x *CreateVMSnapshotRequest) GetVmId() int64
- func (*CreateVMSnapshotRequest) ProtoMessage()
- func (x *CreateVMSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVMSnapshotRequest) Reset()
- func (x *CreateVMSnapshotRequest) String() string
- type CreateVMSnapshotResponse
- func (*CreateVMSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVMSnapshotResponse) GetResult() *Result
- func (*CreateVMSnapshotResponse) ProtoMessage()
- func (x *CreateVMSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *CreateVMSnapshotResponse) Reset()
- func (x *CreateVMSnapshotResponse) String() string
- type DeleteVMSnapshotRequest
- func (*DeleteVMSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteVMSnapshotRequest) GetId() int64
- func (x *DeleteVMSnapshotRequest) GetInjectedJobId() string
- func (x *DeleteVMSnapshotRequest) GetResponseType() string
- func (x *DeleteVMSnapshotRequest) GetStartEventId() int64
- func (*DeleteVMSnapshotRequest) ProtoMessage()
- func (x *DeleteVMSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteVMSnapshotRequest) Reset()
- func (x *DeleteVMSnapshotRequest) String() string
- type DeleteVMSnapshotResponse
- func (*DeleteVMSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteVMSnapshotResponse) GetResult() *Result
- func (*DeleteVMSnapshotResponse) ProtoMessage()
- func (x *DeleteVMSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteVMSnapshotResponse) Reset()
- func (x *DeleteVMSnapshotResponse) String() string
- type ListVMSnapshotRequest
- func (*ListVMSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListVMSnapshotRequest) GetAccountName() string
- func (x *ListVMSnapshotRequest) GetDomainId() int64
- func (x *ListVMSnapshotRequest) GetId() int64
- func (x *ListVMSnapshotRequest) GetIds() []string
- func (x *ListVMSnapshotRequest) GetKeyword() string
- func (x *ListVMSnapshotRequest) GetListAll() bool
- func (x *ListVMSnapshotRequest) GetPage() int32
- func (x *ListVMSnapshotRequest) GetPageSize() int32
- func (x *ListVMSnapshotRequest) GetProjectId() int64
- func (x *ListVMSnapshotRequest) GetRecursive() bool
- func (x *ListVMSnapshotRequest) GetResponseType() string
- func (x *ListVMSnapshotRequest) GetState() string
- func (x *ListVMSnapshotRequest) GetTags() map[string]string
- func (x *ListVMSnapshotRequest) GetVmId() int64
- func (x *ListVMSnapshotRequest) GetVmSnapshotName() string
- func (*ListVMSnapshotRequest) ProtoMessage()
- func (x *ListVMSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *ListVMSnapshotRequest) Reset()
- func (x *ListVMSnapshotRequest) String() string
- type ListVMSnapshotResponse
- func (*ListVMSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListVMSnapshotResponse) GetItems() []*VMSnapshot
- func (x *ListVMSnapshotResponse) GetTotalCount() int32
- func (*ListVMSnapshotResponse) ProtoMessage()
- func (x *ListVMSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *ListVMSnapshotResponse) Reset()
- func (x *ListVMSnapshotResponse) 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 RevertToVMSnapshotCmdByAdminRequest
- func (*RevertToVMSnapshotCmdByAdminRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevertToVMSnapshotCmdByAdminRequest) GetInjectedJobId() string
- func (x *RevertToVMSnapshotCmdByAdminRequest) GetResponseType() string
- func (x *RevertToVMSnapshotCmdByAdminRequest) GetStartEventId() int64
- func (x *RevertToVMSnapshotCmdByAdminRequest) GetVmSnapShotId() int64
- func (*RevertToVMSnapshotCmdByAdminRequest) ProtoMessage()
- func (x *RevertToVMSnapshotCmdByAdminRequest) ProtoReflect() protoreflect.Message
- func (x *RevertToVMSnapshotCmdByAdminRequest) Reset()
- func (x *RevertToVMSnapshotCmdByAdminRequest) String() string
- type RevertToVMSnapshotCmdByAdminResponse
- func (*RevertToVMSnapshotCmdByAdminResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevertToVMSnapshotCmdByAdminResponse) GetResult() *Result
- func (*RevertToVMSnapshotCmdByAdminResponse) ProtoMessage()
- func (x *RevertToVMSnapshotCmdByAdminResponse) ProtoReflect() protoreflect.Message
- func (x *RevertToVMSnapshotCmdByAdminResponse) Reset()
- func (x *RevertToVMSnapshotCmdByAdminResponse) String() string
- type RevertToVMSnapshotRequest
- func (*RevertToVMSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevertToVMSnapshotRequest) GetInjectedJobId() string
- func (x *RevertToVMSnapshotRequest) GetResponseType() string
- func (x *RevertToVMSnapshotRequest) GetRunAsAdmin() bool
- func (x *RevertToVMSnapshotRequest) GetStartEventId() int64
- func (x *RevertToVMSnapshotRequest) GetVmSnapShotId() int64
- func (*RevertToVMSnapshotRequest) ProtoMessage()
- func (x *RevertToVMSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *RevertToVMSnapshotRequest) Reset()
- func (x *RevertToVMSnapshotRequest) String() string
- type RevertToVMSnapshotResponse
- func (*RevertToVMSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevertToVMSnapshotResponse) GetResult() *Result
- func (*RevertToVMSnapshotResponse) ProtoMessage()
- func (x *RevertToVMSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *RevertToVMSnapshotResponse) Reset()
- func (x *RevertToVMSnapshotResponse) String() string
- type Success
- type UnimplementedVmsnapshotServiceServer
- func (UnimplementedVmsnapshotServiceServer) CreateVMSnapshot(context.Context, *CreateVMSnapshotRequest) (*CreateVMSnapshotResponse, error)
- func (UnimplementedVmsnapshotServiceServer) DeleteVMSnapshot(context.Context, *DeleteVMSnapshotRequest) (*DeleteVMSnapshotResponse, error)
- func (UnimplementedVmsnapshotServiceServer) ListVMSnapshot(context.Context, *ListVMSnapshotRequest) (*ListVMSnapshotResponse, error)
- func (UnimplementedVmsnapshotServiceServer) RevertToVMSnapshot(context.Context, *RevertToVMSnapshotRequest) (*RevertToVMSnapshotResponse, error)
- func (UnimplementedVmsnapshotServiceServer) RevertToVMSnapshotCmdByAdmin(context.Context, *RevertToVMSnapshotCmdByAdminRequest) (*RevertToVMSnapshotCmdByAdminResponse, error)
- type UnsafeVmsnapshotServiceServer
- type VMSnapshot
- func (*VMSnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *VMSnapshot) GetCreated() string
- func (x *VMSnapshot) GetDescription() string
- func (x *VMSnapshot) GetDisplayName() string
- func (x *VMSnapshot) GetId() string
- func (x *VMSnapshot) GetName() string
- func (*VMSnapshot) ProtoMessage()
- func (x *VMSnapshot) ProtoReflect() protoreflect.Message
- func (x *VMSnapshot) Reset()
- func (x *VMSnapshot) String() string
- type VmsnapshotServiceClient
- type VmsnapshotServiceServer
Constants ¶
const ( VmsnapshotService_CreateVMSnapshot_FullMethodName = "/cloudstack.management.vmsnapshot.v1.VmsnapshotService/CreateVMSnapshot" VmsnapshotService_DeleteVMSnapshot_FullMethodName = "/cloudstack.management.vmsnapshot.v1.VmsnapshotService/DeleteVMSnapshot" VmsnapshotService_ListVMSnapshot_FullMethodName = "/cloudstack.management.vmsnapshot.v1.VmsnapshotService/ListVMSnapshot" VmsnapshotService_RevertToVMSnapshot_FullMethodName = "/cloudstack.management.vmsnapshot.v1.VmsnapshotService/RevertToVMSnapshot" VmsnapshotService_RevertToVMSnapshotCmdByAdmin_FullMethodName = "/cloudstack.management.vmsnapshot.v1.VmsnapshotService/RevertToVMSnapshotCmdByAdmin" )
Variables ¶
var File_cloudstack_management_vmsnapshot_v1_vmsnapshot_gen_proto protoreflect.FileDescriptor
var VmsnapshotService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudstack.management.vmsnapshot.v1.VmsnapshotService", HandlerType: (*VmsnapshotServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateVMSnapshot", Handler: _VmsnapshotService_CreateVMSnapshot_Handler, }, { MethodName: "DeleteVMSnapshot", Handler: _VmsnapshotService_DeleteVMSnapshot_Handler, }, { MethodName: "ListVMSnapshot", Handler: _VmsnapshotService_ListVMSnapshot_Handler, }, { MethodName: "RevertToVMSnapshot", Handler: _VmsnapshotService_RevertToVMSnapshot_Handler, }, { MethodName: "RevertToVMSnapshotCmdByAdmin", Handler: _VmsnapshotService_RevertToVMSnapshotCmdByAdmin_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cloudstack/management/vmsnapshot/v1/vmsnapshot.gen.proto", }
VmsnapshotService_ServiceDesc is the grpc.ServiceDesc for VmsnapshotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVmsnapshotServiceServer ¶
func RegisterVmsnapshotServiceServer(s grpc.ServiceRegistrar, srv VmsnapshotServiceServer)
Types ¶
type CreateVMSnapshotRequest ¶
type CreateVMSnapshotRequest struct {
// The ID of the vm
VmId *int64 `protobuf:"varint,1,opt,name=vm_id,json=vmId" json:"vm_id,omitempty"`
// The description of the snapshot
Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
// The display name of the snapshot
DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// snapshot memory if true
SnapshotMemory *bool `protobuf:"varint,4,opt,name=snapshot_memory,json=snapshotMemory" json:"snapshot_memory,omitempty"`
// quiesce vm if true
Quiescevm *bool `protobuf:"varint,5,opt,name=quiescevm" json:"quiescevm,omitempty"`
StartEventId *int64 `protobuf:"varint,6,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,7,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
CreateVMSnapshotRequest represents the parameters for creates snapshot for a vm.
func (*CreateVMSnapshotRequest) Descriptor
deprecated
func (*CreateVMSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVMSnapshotRequest.ProtoReflect.Descriptor instead.
func (*CreateVMSnapshotRequest) GetDescription ¶
func (x *CreateVMSnapshotRequest) GetDescription() string
func (*CreateVMSnapshotRequest) GetDisplayName ¶
func (x *CreateVMSnapshotRequest) GetDisplayName() string
func (*CreateVMSnapshotRequest) GetInjectedJobId ¶
func (x *CreateVMSnapshotRequest) GetInjectedJobId() string
func (*CreateVMSnapshotRequest) GetQuiescevm ¶
func (x *CreateVMSnapshotRequest) GetQuiescevm() bool
func (*CreateVMSnapshotRequest) GetResponseType ¶
func (x *CreateVMSnapshotRequest) GetResponseType() string
func (*CreateVMSnapshotRequest) GetSnapshotMemory ¶
func (x *CreateVMSnapshotRequest) GetSnapshotMemory() bool
func (*CreateVMSnapshotRequest) GetStartEventId ¶
func (x *CreateVMSnapshotRequest) GetStartEventId() int64
func (*CreateVMSnapshotRequest) GetVmId ¶
func (x *CreateVMSnapshotRequest) GetVmId() int64
func (*CreateVMSnapshotRequest) ProtoMessage ¶
func (*CreateVMSnapshotRequest) ProtoMessage()
func (*CreateVMSnapshotRequest) ProtoReflect ¶
func (x *CreateVMSnapshotRequest) ProtoReflect() protoreflect.Message
func (*CreateVMSnapshotRequest) Reset ¶
func (x *CreateVMSnapshotRequest) Reset()
func (*CreateVMSnapshotRequest) String ¶
func (x *CreateVMSnapshotRequest) String() string
type CreateVMSnapshotResponse ¶
type CreateVMSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
CreateVMSnapshotResponse represents the response from creates snapshot for a vm.
func (*CreateVMSnapshotResponse) Descriptor
deprecated
func (*CreateVMSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateVMSnapshotResponse.ProtoReflect.Descriptor instead.
func (*CreateVMSnapshotResponse) GetResult ¶
func (x *CreateVMSnapshotResponse) GetResult() *Result
func (*CreateVMSnapshotResponse) ProtoMessage ¶
func (*CreateVMSnapshotResponse) ProtoMessage()
func (*CreateVMSnapshotResponse) ProtoReflect ¶
func (x *CreateVMSnapshotResponse) ProtoReflect() protoreflect.Message
func (*CreateVMSnapshotResponse) Reset ¶
func (x *CreateVMSnapshotResponse) Reset()
func (*CreateVMSnapshotResponse) String ¶
func (x *CreateVMSnapshotResponse) String() string
type DeleteVMSnapshotRequest ¶
type DeleteVMSnapshotRequest struct {
// The ID of the VM snapshot
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
}
DeleteVMSnapshotRequest represents the parameters for deletes a vmsnapshot.
func (*DeleteVMSnapshotRequest) Descriptor
deprecated
func (*DeleteVMSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVMSnapshotRequest.ProtoReflect.Descriptor instead.
func (*DeleteVMSnapshotRequest) GetId ¶
func (x *DeleteVMSnapshotRequest) GetId() int64
func (*DeleteVMSnapshotRequest) GetInjectedJobId ¶
func (x *DeleteVMSnapshotRequest) GetInjectedJobId() string
func (*DeleteVMSnapshotRequest) GetResponseType ¶
func (x *DeleteVMSnapshotRequest) GetResponseType() string
func (*DeleteVMSnapshotRequest) GetStartEventId ¶
func (x *DeleteVMSnapshotRequest) GetStartEventId() int64
func (*DeleteVMSnapshotRequest) ProtoMessage ¶
func (*DeleteVMSnapshotRequest) ProtoMessage()
func (*DeleteVMSnapshotRequest) ProtoReflect ¶
func (x *DeleteVMSnapshotRequest) ProtoReflect() protoreflect.Message
func (*DeleteVMSnapshotRequest) Reset ¶
func (x *DeleteVMSnapshotRequest) Reset()
func (*DeleteVMSnapshotRequest) String ¶
func (x *DeleteVMSnapshotRequest) String() string
type DeleteVMSnapshotResponse ¶
type DeleteVMSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
DeleteVMSnapshotResponse represents the response from deletes a vmsnapshot.
func (*DeleteVMSnapshotResponse) Descriptor
deprecated
func (*DeleteVMSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVMSnapshotResponse.ProtoReflect.Descriptor instead.
func (*DeleteVMSnapshotResponse) GetResult ¶
func (x *DeleteVMSnapshotResponse) GetResult() *Result
func (*DeleteVMSnapshotResponse) ProtoMessage ¶
func (*DeleteVMSnapshotResponse) ProtoMessage()
func (*DeleteVMSnapshotResponse) ProtoReflect ¶
func (x *DeleteVMSnapshotResponse) ProtoReflect() protoreflect.Message
func (*DeleteVMSnapshotResponse) Reset ¶
func (x *DeleteVMSnapshotResponse) Reset()
func (*DeleteVMSnapshotResponse) String ¶
func (x *DeleteVMSnapshotResponse) String() string
type ListVMSnapshotRequest ¶
type ListVMSnapshotRequest struct {
// The ID of the VM snapshot
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// the IDs of the vm snapshots, mutually exclusive with vmsnapshotid
Ids []string `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"`
// state of the virtual machine snapshot
State *string `protobuf:"bytes,3,opt,name=state" json:"state,omitempty"`
// the ID of the vm
VmId *int64 `protobuf:"varint,4,opt,name=vm_id,json=vmId" json:"vm_id,omitempty"`
// lists snapshot by snapshot name or display name
VmSnapshotName *string `protobuf:"bytes,5,opt,name=vm_snapshot_name,json=vmSnapshotName" json:"vm_snapshot_name,omitempty"`
// List resources by tags (key/value pairs)
Tags map[string]string `` /* 128-byte string literal not displayed */
// list objects by project; if projectid=-1 lists All VMs
ProjectId *int64 `protobuf:"varint,7,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,8,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,9,opt,name=list_all,json=listAll" json:"list_all,omitempty"`
// list only resources belonging to the domain specified
DomainId *int64 `protobuf:"varint,10,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,11,opt,name=recursive" json:"recursive,omitempty"`
// List by keyword
Keyword *string `protobuf:"bytes,12,opt,name=keyword" json:"keyword,omitempty"`
Page *int32 `protobuf:"varint,13,opt,name=page" json:"page,omitempty"`
PageSize *int32 `protobuf:"varint,14,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
ResponseType *string `protobuf:"bytes,15,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ListVMSnapshotRequest represents the parameters for list virtual machine snapshot by conditions
func (*ListVMSnapshotRequest) Descriptor
deprecated
func (*ListVMSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListVMSnapshotRequest.ProtoReflect.Descriptor instead.
func (*ListVMSnapshotRequest) GetAccountName ¶
func (x *ListVMSnapshotRequest) GetAccountName() string
func (*ListVMSnapshotRequest) GetDomainId ¶
func (x *ListVMSnapshotRequest) GetDomainId() int64
func (*ListVMSnapshotRequest) GetId ¶
func (x *ListVMSnapshotRequest) GetId() int64
func (*ListVMSnapshotRequest) GetIds ¶
func (x *ListVMSnapshotRequest) GetIds() []string
func (*ListVMSnapshotRequest) GetKeyword ¶
func (x *ListVMSnapshotRequest) GetKeyword() string
func (*ListVMSnapshotRequest) GetListAll ¶
func (x *ListVMSnapshotRequest) GetListAll() bool
func (*ListVMSnapshotRequest) GetPage ¶
func (x *ListVMSnapshotRequest) GetPage() int32
func (*ListVMSnapshotRequest) GetPageSize ¶
func (x *ListVMSnapshotRequest) GetPageSize() int32
func (*ListVMSnapshotRequest) GetProjectId ¶
func (x *ListVMSnapshotRequest) GetProjectId() int64
func (*ListVMSnapshotRequest) GetRecursive ¶
func (x *ListVMSnapshotRequest) GetRecursive() bool
func (*ListVMSnapshotRequest) GetResponseType ¶
func (x *ListVMSnapshotRequest) GetResponseType() string
func (*ListVMSnapshotRequest) GetState ¶
func (x *ListVMSnapshotRequest) GetState() string
func (*ListVMSnapshotRequest) GetTags ¶
func (x *ListVMSnapshotRequest) GetTags() map[string]string
func (*ListVMSnapshotRequest) GetVmId ¶
func (x *ListVMSnapshotRequest) GetVmId() int64
func (*ListVMSnapshotRequest) GetVmSnapshotName ¶
func (x *ListVMSnapshotRequest) GetVmSnapshotName() string
func (*ListVMSnapshotRequest) ProtoMessage ¶
func (*ListVMSnapshotRequest) ProtoMessage()
func (*ListVMSnapshotRequest) ProtoReflect ¶
func (x *ListVMSnapshotRequest) ProtoReflect() protoreflect.Message
func (*ListVMSnapshotRequest) Reset ¶
func (x *ListVMSnapshotRequest) Reset()
func (*ListVMSnapshotRequest) String ¶
func (x *ListVMSnapshotRequest) String() string
type ListVMSnapshotResponse ¶
type ListVMSnapshotResponse struct {
// The list of VMSnapshots
Items []*VMSnapshot `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
// The total count of VMSnapshots
TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
ListVMSnapshotResponse represents the response from list virtual machine snapshot by conditions
func (*ListVMSnapshotResponse) Descriptor
deprecated
func (*ListVMSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListVMSnapshotResponse.ProtoReflect.Descriptor instead.
func (*ListVMSnapshotResponse) GetItems ¶
func (x *ListVMSnapshotResponse) GetItems() []*VMSnapshot
func (*ListVMSnapshotResponse) GetTotalCount ¶
func (x *ListVMSnapshotResponse) GetTotalCount() int32
func (*ListVMSnapshotResponse) ProtoMessage ¶
func (*ListVMSnapshotResponse) ProtoMessage()
func (*ListVMSnapshotResponse) ProtoReflect ¶
func (x *ListVMSnapshotResponse) ProtoReflect() protoreflect.Message
func (*ListVMSnapshotResponse) Reset ¶
func (x *ListVMSnapshotResponse) Reset()
func (*ListVMSnapshotResponse) String ¶
func (x *ListVMSnapshotResponse) 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 RevertToVMSnapshotCmdByAdminRequest ¶
type RevertToVMSnapshotCmdByAdminRequest struct {
// The ID of the vm snapshot
VmSnapShotId *int64 `protobuf:"varint,1,opt,name=vm_snap_shot_id,json=vmSnapShotId" json:"vm_snap_shot_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
}
RevertToVMSnapshotCmdByAdminRequest represents the parameters for revert vm from a vmsnapshot.
func (*RevertToVMSnapshotCmdByAdminRequest) Descriptor
deprecated
func (*RevertToVMSnapshotCmdByAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevertToVMSnapshotCmdByAdminRequest.ProtoReflect.Descriptor instead.
func (*RevertToVMSnapshotCmdByAdminRequest) GetInjectedJobId ¶
func (x *RevertToVMSnapshotCmdByAdminRequest) GetInjectedJobId() string
func (*RevertToVMSnapshotCmdByAdminRequest) GetResponseType ¶
func (x *RevertToVMSnapshotCmdByAdminRequest) GetResponseType() string
func (*RevertToVMSnapshotCmdByAdminRequest) GetStartEventId ¶
func (x *RevertToVMSnapshotCmdByAdminRequest) GetStartEventId() int64
func (*RevertToVMSnapshotCmdByAdminRequest) GetVmSnapShotId ¶
func (x *RevertToVMSnapshotCmdByAdminRequest) GetVmSnapShotId() int64
func (*RevertToVMSnapshotCmdByAdminRequest) ProtoMessage ¶
func (*RevertToVMSnapshotCmdByAdminRequest) ProtoMessage()
func (*RevertToVMSnapshotCmdByAdminRequest) ProtoReflect ¶
func (x *RevertToVMSnapshotCmdByAdminRequest) ProtoReflect() protoreflect.Message
func (*RevertToVMSnapshotCmdByAdminRequest) Reset ¶
func (x *RevertToVMSnapshotCmdByAdminRequest) Reset()
func (*RevertToVMSnapshotCmdByAdminRequest) String ¶
func (x *RevertToVMSnapshotCmdByAdminRequest) String() string
type RevertToVMSnapshotCmdByAdminResponse ¶
type RevertToVMSnapshotCmdByAdminResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
RevertToVMSnapshotCmdByAdminResponse represents the response from revert vm from a vmsnapshot.
func (*RevertToVMSnapshotCmdByAdminResponse) Descriptor
deprecated
func (*RevertToVMSnapshotCmdByAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevertToVMSnapshotCmdByAdminResponse.ProtoReflect.Descriptor instead.
func (*RevertToVMSnapshotCmdByAdminResponse) GetResult ¶
func (x *RevertToVMSnapshotCmdByAdminResponse) GetResult() *Result
func (*RevertToVMSnapshotCmdByAdminResponse) ProtoMessage ¶
func (*RevertToVMSnapshotCmdByAdminResponse) ProtoMessage()
func (*RevertToVMSnapshotCmdByAdminResponse) ProtoReflect ¶
func (x *RevertToVMSnapshotCmdByAdminResponse) ProtoReflect() protoreflect.Message
func (*RevertToVMSnapshotCmdByAdminResponse) Reset ¶
func (x *RevertToVMSnapshotCmdByAdminResponse) Reset()
func (*RevertToVMSnapshotCmdByAdminResponse) String ¶
func (x *RevertToVMSnapshotCmdByAdminResponse) String() string
type RevertToVMSnapshotRequest ¶
type RevertToVMSnapshotRequest struct {
// Whether to run this operation as an administrator
RunAsAdmin *bool `protobuf:"varint,1,opt,name=run_as_admin,json=runAsAdmin" json:"run_as_admin,omitempty"`
// The ID of the vm snapshot
VmSnapShotId *int64 `protobuf:"varint,2,opt,name=vm_snap_shot_id,json=vmSnapShotId" json:"vm_snap_shot_id,omitempty"`
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
}
RevertToVMSnapshotRequest represents the parameters for revert vm from a vmsnapshot.
func (*RevertToVMSnapshotRequest) Descriptor
deprecated
func (*RevertToVMSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevertToVMSnapshotRequest.ProtoReflect.Descriptor instead.
func (*RevertToVMSnapshotRequest) GetInjectedJobId ¶
func (x *RevertToVMSnapshotRequest) GetInjectedJobId() string
func (*RevertToVMSnapshotRequest) GetResponseType ¶
func (x *RevertToVMSnapshotRequest) GetResponseType() string
func (*RevertToVMSnapshotRequest) GetRunAsAdmin ¶
func (x *RevertToVMSnapshotRequest) GetRunAsAdmin() bool
func (*RevertToVMSnapshotRequest) GetStartEventId ¶
func (x *RevertToVMSnapshotRequest) GetStartEventId() int64
func (*RevertToVMSnapshotRequest) GetVmSnapShotId ¶
func (x *RevertToVMSnapshotRequest) GetVmSnapShotId() int64
func (*RevertToVMSnapshotRequest) ProtoMessage ¶
func (*RevertToVMSnapshotRequest) ProtoMessage()
func (*RevertToVMSnapshotRequest) ProtoReflect ¶
func (x *RevertToVMSnapshotRequest) ProtoReflect() protoreflect.Message
func (*RevertToVMSnapshotRequest) Reset ¶
func (x *RevertToVMSnapshotRequest) Reset()
func (*RevertToVMSnapshotRequest) String ¶
func (x *RevertToVMSnapshotRequest) String() string
type RevertToVMSnapshotResponse ¶
type RevertToVMSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
RevertToVMSnapshotResponse represents the response from revert vm from a vmsnapshot.
func (*RevertToVMSnapshotResponse) Descriptor
deprecated
func (*RevertToVMSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevertToVMSnapshotResponse.ProtoReflect.Descriptor instead.
func (*RevertToVMSnapshotResponse) GetResult ¶
func (x *RevertToVMSnapshotResponse) GetResult() *Result
func (*RevertToVMSnapshotResponse) ProtoMessage ¶
func (*RevertToVMSnapshotResponse) ProtoMessage()
func (*RevertToVMSnapshotResponse) ProtoReflect ¶
func (x *RevertToVMSnapshotResponse) ProtoReflect() protoreflect.Message
func (*RevertToVMSnapshotResponse) Reset ¶
func (x *RevertToVMSnapshotResponse) Reset()
func (*RevertToVMSnapshotResponse) String ¶
func (x *RevertToVMSnapshotResponse) 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) GetDisplayText ¶
func (*Success) GetSuccess ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) ProtoReflect ¶
func (x *Success) ProtoReflect() protoreflect.Message
type UnimplementedVmsnapshotServiceServer ¶
type UnimplementedVmsnapshotServiceServer struct{}
UnimplementedVmsnapshotServiceServer 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 (UnimplementedVmsnapshotServiceServer) CreateVMSnapshot ¶
func (UnimplementedVmsnapshotServiceServer) CreateVMSnapshot(context.Context, *CreateVMSnapshotRequest) (*CreateVMSnapshotResponse, error)
func (UnimplementedVmsnapshotServiceServer) DeleteVMSnapshot ¶
func (UnimplementedVmsnapshotServiceServer) DeleteVMSnapshot(context.Context, *DeleteVMSnapshotRequest) (*DeleteVMSnapshotResponse, error)
func (UnimplementedVmsnapshotServiceServer) ListVMSnapshot ¶
func (UnimplementedVmsnapshotServiceServer) ListVMSnapshot(context.Context, *ListVMSnapshotRequest) (*ListVMSnapshotResponse, error)
func (UnimplementedVmsnapshotServiceServer) RevertToVMSnapshot ¶
func (UnimplementedVmsnapshotServiceServer) RevertToVMSnapshot(context.Context, *RevertToVMSnapshotRequest) (*RevertToVMSnapshotResponse, error)
func (UnimplementedVmsnapshotServiceServer) RevertToVMSnapshotCmdByAdmin ¶
func (UnimplementedVmsnapshotServiceServer) RevertToVMSnapshotCmdByAdmin(context.Context, *RevertToVMSnapshotCmdByAdminRequest) (*RevertToVMSnapshotCmdByAdminResponse, error)
type UnsafeVmsnapshotServiceServer ¶
type UnsafeVmsnapshotServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVmsnapshotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VmsnapshotServiceServer will result in compilation errors.
type VMSnapshot ¶
type VMSnapshot struct {
// The ID of the VMSnapshot
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
// The name of the VMSnapshot
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// The display name of the VMSnapshot
DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// The description of the VMSnapshot
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
}
VMSnapshot represents a VMSnapshot Item
func (*VMSnapshot) Descriptor
deprecated
func (*VMSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use VMSnapshot.ProtoReflect.Descriptor instead.
func (*VMSnapshot) GetCreated ¶
func (x *VMSnapshot) GetCreated() string
func (*VMSnapshot) GetDescription ¶
func (x *VMSnapshot) GetDescription() string
func (*VMSnapshot) GetDisplayName ¶
func (x *VMSnapshot) GetDisplayName() string
func (*VMSnapshot) GetId ¶
func (x *VMSnapshot) GetId() string
func (*VMSnapshot) GetName ¶
func (x *VMSnapshot) GetName() string
func (*VMSnapshot) ProtoMessage ¶
func (*VMSnapshot) ProtoMessage()
func (*VMSnapshot) ProtoReflect ¶
func (x *VMSnapshot) ProtoReflect() protoreflect.Message
func (*VMSnapshot) Reset ¶
func (x *VMSnapshot) Reset()
func (*VMSnapshot) String ¶
func (x *VMSnapshot) String() string
type VmsnapshotServiceClient ¶
type VmsnapshotServiceClient interface {
// CreateVMSnapshot Creates snapshot for a vm.
CreateVMSnapshot(ctx context.Context, in *CreateVMSnapshotRequest, opts ...grpc.CallOption) (*CreateVMSnapshotResponse, error)
// DeleteVMSnapshot Deletes a vmsnapshot.
DeleteVMSnapshot(ctx context.Context, in *DeleteVMSnapshotRequest, opts ...grpc.CallOption) (*DeleteVMSnapshotResponse, error)
// ListVMSnapshot List virtual machine snapshot by conditions
ListVMSnapshot(ctx context.Context, in *ListVMSnapshotRequest, opts ...grpc.CallOption) (*ListVMSnapshotResponse, error)
// RevertToVMSnapshot Revert VM from a vmsnapshot.
RevertToVMSnapshot(ctx context.Context, in *RevertToVMSnapshotRequest, opts ...grpc.CallOption) (*RevertToVMSnapshotResponse, error)
// RevertToVMSnapshotCmdByAdmin Revert VM from a vmsnapshot.
RevertToVMSnapshotCmdByAdmin(ctx context.Context, in *RevertToVMSnapshotCmdByAdminRequest, opts ...grpc.CallOption) (*RevertToVMSnapshotCmdByAdminResponse, error)
}
VmsnapshotServiceClient is the client API for VmsnapshotService 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.
VmsnapshotService provides operations for managing Vmsnapshots
func NewVmsnapshotServiceClient ¶
func NewVmsnapshotServiceClient(cc grpc.ClientConnInterface) VmsnapshotServiceClient
type VmsnapshotServiceServer ¶
type VmsnapshotServiceServer interface {
// CreateVMSnapshot Creates snapshot for a vm.
CreateVMSnapshot(context.Context, *CreateVMSnapshotRequest) (*CreateVMSnapshotResponse, error)
// DeleteVMSnapshot Deletes a vmsnapshot.
DeleteVMSnapshot(context.Context, *DeleteVMSnapshotRequest) (*DeleteVMSnapshotResponse, error)
// ListVMSnapshot List virtual machine snapshot by conditions
ListVMSnapshot(context.Context, *ListVMSnapshotRequest) (*ListVMSnapshotResponse, error)
// RevertToVMSnapshot Revert VM from a vmsnapshot.
RevertToVMSnapshot(context.Context, *RevertToVMSnapshotRequest) (*RevertToVMSnapshotResponse, error)
// RevertToVMSnapshotCmdByAdmin Revert VM from a vmsnapshot.
RevertToVMSnapshotCmdByAdmin(context.Context, *RevertToVMSnapshotCmdByAdminRequest) (*RevertToVMSnapshotCmdByAdminResponse, error)
// contains filtered or unexported methods
}
VmsnapshotServiceServer is the server API for VmsnapshotService service. All implementations must embed UnimplementedVmsnapshotServiceServer for forward compatibility.
VmsnapshotService provides operations for managing Vmsnapshots