Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSnapshotServiceServer(s grpc.ServiceRegistrar, srv SnapshotServiceServer)
- type ArchiveSnapshotRequest
- func (*ArchiveSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ArchiveSnapshotRequest) GetId() int64
- func (x *ArchiveSnapshotRequest) GetInjectedJobId() string
- func (x *ArchiveSnapshotRequest) GetResponseType() string
- func (x *ArchiveSnapshotRequest) GetStartEventId() int64
- func (*ArchiveSnapshotRequest) ProtoMessage()
- func (x *ArchiveSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *ArchiveSnapshotRequest) Reset()
- func (x *ArchiveSnapshotRequest) String() string
- type ArchiveSnapshotResponse
- func (*ArchiveSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArchiveSnapshotResponse) GetResult() *Result
- func (*ArchiveSnapshotResponse) ProtoMessage()
- func (x *ArchiveSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *ArchiveSnapshotResponse) Reset()
- func (x *ArchiveSnapshotResponse) String() string
- type CopySnapshotRequest
- func (*CopySnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CopySnapshotRequest) GetDestZoneId() int64
- func (x *CopySnapshotRequest) GetDestZoneIds() []string
- func (x *CopySnapshotRequest) GetId() int64
- func (x *CopySnapshotRequest) GetInjectedJobId() string
- func (x *CopySnapshotRequest) GetResponseType() string
- func (x *CopySnapshotRequest) GetSourceZoneId() int64
- func (x *CopySnapshotRequest) GetStartEventId() int64
- func (*CopySnapshotRequest) ProtoMessage()
- func (x *CopySnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *CopySnapshotRequest) Reset()
- func (x *CopySnapshotRequest) String() string
- type CopySnapshotResponse
- func (*CopySnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CopySnapshotResponse) GetResult() *Result
- func (*CopySnapshotResponse) ProtoMessage()
- func (x *CopySnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *CopySnapshotResponse) Reset()
- func (x *CopySnapshotResponse) String() string
- type CreateSnapshotFromVMSnapshotRequest
- func (*CreateSnapshotFromVMSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotFromVMSnapshotRequest) GetInjectedJobId() string
- func (x *CreateSnapshotFromVMSnapshotRequest) GetResponseType() string
- func (x *CreateSnapshotFromVMSnapshotRequest) GetSnapshotName() string
- func (x *CreateSnapshotFromVMSnapshotRequest) GetStartEventId() int64
- func (x *CreateSnapshotFromVMSnapshotRequest) GetVmSnapshotId() int64
- func (x *CreateSnapshotFromVMSnapshotRequest) GetVolumeId() int64
- func (*CreateSnapshotFromVMSnapshotRequest) ProtoMessage()
- func (x *CreateSnapshotFromVMSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotFromVMSnapshotRequest) Reset()
- func (x *CreateSnapshotFromVMSnapshotRequest) String() string
- type CreateSnapshotFromVMSnapshotResponse
- func (*CreateSnapshotFromVMSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotFromVMSnapshotResponse) GetResult() *Result
- func (*CreateSnapshotFromVMSnapshotResponse) ProtoMessage()
- func (x *CreateSnapshotFromVMSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotFromVMSnapshotResponse) Reset()
- func (x *CreateSnapshotFromVMSnapshotResponse) String() string
- type CreateSnapshotPolicyRequest
- func (*CreateSnapshotPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotPolicyRequest) GetDisplay() bool
- func (x *CreateSnapshotPolicyRequest) GetIntervalType() string
- func (x *CreateSnapshotPolicyRequest) GetMaxSnaps() int32
- func (x *CreateSnapshotPolicyRequest) GetResponseType() string
- func (x *CreateSnapshotPolicyRequest) GetSchedule() string
- func (x *CreateSnapshotPolicyRequest) GetTags() map[string]string
- func (x *CreateSnapshotPolicyRequest) GetTimezone() string
- func (x *CreateSnapshotPolicyRequest) GetVolumeId() int64
- func (x *CreateSnapshotPolicyRequest) GetZoneIds() []string
- func (*CreateSnapshotPolicyRequest) ProtoMessage()
- func (x *CreateSnapshotPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotPolicyRequest) Reset()
- func (x *CreateSnapshotPolicyRequest) String() string
- type CreateSnapshotPolicyResponse
- func (*CreateSnapshotPolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotPolicyResponse) GetResult() *Result
- func (*CreateSnapshotPolicyResponse) ProtoMessage()
- func (x *CreateSnapshotPolicyResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotPolicyResponse) Reset()
- func (x *CreateSnapshotPolicyResponse) String() string
- type CreateSnapshotRequest
- func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotRequest) GetAccountName() string
- func (x *CreateSnapshotRequest) GetAsyncBackup() bool
- func (x *CreateSnapshotRequest) GetDomainId() int64
- func (x *CreateSnapshotRequest) GetInjectedJobId() string
- func (x *CreateSnapshotRequest) GetLocationType() string
- func (x *CreateSnapshotRequest) GetPolicyId() int64
- func (x *CreateSnapshotRequest) GetQuiescevm() bool
- func (x *CreateSnapshotRequest) GetResponseType() string
- func (x *CreateSnapshotRequest) GetSnapshotName() string
- func (x *CreateSnapshotRequest) GetStartEventId() int64
- func (x *CreateSnapshotRequest) GetTags() map[string]string
- func (x *CreateSnapshotRequest) GetVolumeId() int64
- func (x *CreateSnapshotRequest) GetZoneIds() []string
- func (*CreateSnapshotRequest) ProtoMessage()
- func (x *CreateSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotRequest) Reset()
- func (x *CreateSnapshotRequest) String() string
- type CreateSnapshotResponse
- func (*CreateSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSnapshotResponse) GetResult() *Result
- func (*CreateSnapshotResponse) ProtoMessage()
- func (x *CreateSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSnapshotResponse) Reset()
- func (x *CreateSnapshotResponse) String() string
- type DeleteSnapshotPoliciesRequest
- func (*DeleteSnapshotPoliciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSnapshotPoliciesRequest) GetId() int64
- func (x *DeleteSnapshotPoliciesRequest) GetIds() []string
- func (x *DeleteSnapshotPoliciesRequest) GetResponseType() string
- func (*DeleteSnapshotPoliciesRequest) ProtoMessage()
- func (x *DeleteSnapshotPoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSnapshotPoliciesRequest) Reset()
- func (x *DeleteSnapshotPoliciesRequest) String() string
- type DeleteSnapshotPoliciesResponse
- func (*DeleteSnapshotPoliciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSnapshotPoliciesResponse) GetResult() *Result
- func (*DeleteSnapshotPoliciesResponse) ProtoMessage()
- func (x *DeleteSnapshotPoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteSnapshotPoliciesResponse) Reset()
- func (x *DeleteSnapshotPoliciesResponse) String() string
- type DeleteSnapshotRequest
- func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSnapshotRequest) GetId() int64
- func (x *DeleteSnapshotRequest) GetInjectedJobId() string
- func (x *DeleteSnapshotRequest) GetResponseType() string
- func (x *DeleteSnapshotRequest) GetStartEventId() int64
- func (x *DeleteSnapshotRequest) GetZoneId() int64
- func (*DeleteSnapshotRequest) ProtoMessage()
- func (x *DeleteSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSnapshotRequest) Reset()
- func (x *DeleteSnapshotRequest) String() string
- type DeleteSnapshotResponse
- func (*DeleteSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSnapshotResponse) GetResult() *Result
- func (*DeleteSnapshotResponse) ProtoMessage()
- func (x *DeleteSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteSnapshotResponse) Reset()
- func (x *DeleteSnapshotResponse) String() string
- type ExtractSnapshotRequest
- func (*ExtractSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExtractSnapshotRequest) GetId() int64
- func (x *ExtractSnapshotRequest) GetInjectedJobId() string
- func (x *ExtractSnapshotRequest) GetResponseType() string
- func (x *ExtractSnapshotRequest) GetStartEventId() int64
- func (x *ExtractSnapshotRequest) GetZoneId() int64
- func (*ExtractSnapshotRequest) ProtoMessage()
- func (x *ExtractSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *ExtractSnapshotRequest) Reset()
- func (x *ExtractSnapshotRequest) String() string
- type ExtractSnapshotResponse
- func (*ExtractSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExtractSnapshotResponse) GetResult() *Result
- func (*ExtractSnapshotResponse) ProtoMessage()
- func (x *ExtractSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *ExtractSnapshotResponse) Reset()
- func (x *ExtractSnapshotResponse) String() string
- type IntervalType
- func (IntervalType) Descriptor() protoreflect.EnumDescriptor
- func (x IntervalType) Enum() *IntervalType
- func (IntervalType) EnumDescriptor() ([]byte, []int)deprecated
- func (x IntervalType) Number() protoreflect.EnumNumber
- func (x IntervalType) String() string
- func (IntervalType) Type() protoreflect.EnumType
- type ListSnapshotPoliciesRequest
- func (*ListSnapshotPoliciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotPoliciesRequest) GetDisplay() bool
- func (x *ListSnapshotPoliciesRequest) GetId() int64
- func (x *ListSnapshotPoliciesRequest) GetKeyword() string
- func (x *ListSnapshotPoliciesRequest) GetPage() int32
- func (x *ListSnapshotPoliciesRequest) GetPageSize() int32
- func (x *ListSnapshotPoliciesRequest) GetResponseType() string
- func (x *ListSnapshotPoliciesRequest) GetVolumeId() int64
- func (*ListSnapshotPoliciesRequest) ProtoMessage()
- func (x *ListSnapshotPoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotPoliciesRequest) Reset()
- func (x *ListSnapshotPoliciesRequest) String() string
- type ListSnapshotPoliciesResponse
- func (*ListSnapshotPoliciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotPoliciesResponse) GetItems() []*SnapshotPolicy
- func (x *ListSnapshotPoliciesResponse) GetTotalCount() int32
- func (*ListSnapshotPoliciesResponse) ProtoMessage()
- func (x *ListSnapshotPoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotPoliciesResponse) Reset()
- func (x *ListSnapshotPoliciesResponse) String() string
- type ListSnapshotsCmdByAdminRequest
- func (*ListSnapshotsCmdByAdminRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotsCmdByAdminRequest) GetAccountName() string
- func (x *ListSnapshotsCmdByAdminRequest) GetDomainId() int64
- func (x *ListSnapshotsCmdByAdminRequest) GetId() int64
- func (x *ListSnapshotsCmdByAdminRequest) GetIds() []string
- func (x *ListSnapshotsCmdByAdminRequest) GetImageStoreId() int64
- func (x *ListSnapshotsCmdByAdminRequest) GetIntervalType() string
- func (x *ListSnapshotsCmdByAdminRequest) GetKeyword() string
- func (x *ListSnapshotsCmdByAdminRequest) GetListAll() bool
- func (x *ListSnapshotsCmdByAdminRequest) GetLocationType() string
- func (x *ListSnapshotsCmdByAdminRequest) GetPage() int32
- func (x *ListSnapshotsCmdByAdminRequest) GetPageSize() int32
- func (x *ListSnapshotsCmdByAdminRequest) GetProjectId() int64
- func (x *ListSnapshotsCmdByAdminRequest) GetRecursive() bool
- func (x *ListSnapshotsCmdByAdminRequest) GetResponseType() string
- func (x *ListSnapshotsCmdByAdminRequest) GetShowUnique() bool
- func (x *ListSnapshotsCmdByAdminRequest) GetSnapshotName() string
- func (x *ListSnapshotsCmdByAdminRequest) GetSnapshotType() string
- func (x *ListSnapshotsCmdByAdminRequest) GetStoragePoolId() int64
- func (x *ListSnapshotsCmdByAdminRequest) GetTags() map[string]string
- func (x *ListSnapshotsCmdByAdminRequest) GetVolumeId() int64
- func (x *ListSnapshotsCmdByAdminRequest) GetZoneId() int64
- func (*ListSnapshotsCmdByAdminRequest) ProtoMessage()
- func (x *ListSnapshotsCmdByAdminRequest) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsCmdByAdminRequest) Reset()
- func (x *ListSnapshotsCmdByAdminRequest) String() string
- type ListSnapshotsCmdByAdminResponse
- func (*ListSnapshotsCmdByAdminResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotsCmdByAdminResponse) GetItems() []*Snapshot
- func (x *ListSnapshotsCmdByAdminResponse) GetTotalCount() int32
- func (*ListSnapshotsCmdByAdminResponse) ProtoMessage()
- func (x *ListSnapshotsCmdByAdminResponse) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsCmdByAdminResponse) Reset()
- func (x *ListSnapshotsCmdByAdminResponse) String() string
- type ListSnapshotsRequest
- func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotsRequest) GetAccountName() string
- func (x *ListSnapshotsRequest) GetDomainId() int64
- func (x *ListSnapshotsRequest) GetId() int64
- func (x *ListSnapshotsRequest) GetIds() []string
- func (x *ListSnapshotsRequest) GetIntervalType() string
- func (x *ListSnapshotsRequest) GetKeyword() string
- func (x *ListSnapshotsRequest) GetListAll() bool
- func (x *ListSnapshotsRequest) GetLocationType() string
- func (x *ListSnapshotsRequest) GetPage() int32
- func (x *ListSnapshotsRequest) GetPageSize() int32
- func (x *ListSnapshotsRequest) GetProjectId() int64
- func (x *ListSnapshotsRequest) GetRecursive() bool
- func (x *ListSnapshotsRequest) GetResponseType() string
- func (x *ListSnapshotsRequest) GetRunAsAdmin() bool
- func (x *ListSnapshotsRequest) GetShowUnique() bool
- func (x *ListSnapshotsRequest) GetSnapshotName() string
- func (x *ListSnapshotsRequest) GetSnapshotType() string
- func (x *ListSnapshotsRequest) GetTags() map[string]string
- func (x *ListSnapshotsRequest) GetVolumeId() int64
- func (x *ListSnapshotsRequest) GetZoneId() int64
- func (*ListSnapshotsRequest) ProtoMessage()
- func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsRequest) Reset()
- func (x *ListSnapshotsRequest) String() string
- type ListSnapshotsResponse
- func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotsResponse) GetItems() []*Snapshot
- func (x *ListSnapshotsResponse) GetTotalCount() int32
- func (*ListSnapshotsResponse) ProtoMessage()
- func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsResponse) Reset()
- func (x *ListSnapshotsResponse) 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 RevertSnapshotRequest
- func (*RevertSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevertSnapshotRequest) GetId() int64
- func (x *RevertSnapshotRequest) GetInjectedJobId() string
- func (x *RevertSnapshotRequest) GetResponseType() string
- func (x *RevertSnapshotRequest) GetStartEventId() int64
- func (*RevertSnapshotRequest) ProtoMessage()
- func (x *RevertSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *RevertSnapshotRequest) Reset()
- func (x *RevertSnapshotRequest) String() string
- type RevertSnapshotResponse
- func (*RevertSnapshotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevertSnapshotResponse) GetResult() *Result
- func (*RevertSnapshotResponse) ProtoMessage()
- func (x *RevertSnapshotResponse) ProtoReflect() protoreflect.Message
- func (x *RevertSnapshotResponse) Reset()
- func (x *RevertSnapshotResponse) String() string
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot) GetCreated() string
- func (x *Snapshot) GetDescription() string
- func (x *Snapshot) GetDisplayName() string
- func (x *Snapshot) GetId() string
- func (x *Snapshot) GetName() string
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
- type SnapshotPolicy
- func (*SnapshotPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *SnapshotPolicy) GetCreated() string
- func (x *SnapshotPolicy) GetDescription() string
- func (x *SnapshotPolicy) GetDisplayName() string
- func (x *SnapshotPolicy) GetId() string
- func (x *SnapshotPolicy) GetName() string
- func (*SnapshotPolicy) ProtoMessage()
- func (x *SnapshotPolicy) ProtoReflect() protoreflect.Message
- func (x *SnapshotPolicy) Reset()
- func (x *SnapshotPolicy) String() string
- type SnapshotServiceClient
- type SnapshotServiceServer
- type SnapshotType
- func (SnapshotType) Descriptor() protoreflect.EnumDescriptor
- func (x SnapshotType) Enum() *SnapshotType
- func (SnapshotType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SnapshotType) Number() protoreflect.EnumNumber
- func (x SnapshotType) String() string
- func (SnapshotType) Type() protoreflect.EnumType
- type Success
- type UnimplementedSnapshotServiceServer
- func (UnimplementedSnapshotServiceServer) ArchiveSnapshot(context.Context, *ArchiveSnapshotRequest) (*ArchiveSnapshotResponse, error)
- func (UnimplementedSnapshotServiceServer) CopySnapshot(context.Context, *CopySnapshotRequest) (*CopySnapshotResponse, error)
- func (UnimplementedSnapshotServiceServer) CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
- func (UnimplementedSnapshotServiceServer) CreateSnapshotFromVMSnapshot(context.Context, *CreateSnapshotFromVMSnapshotRequest) (*CreateSnapshotFromVMSnapshotResponse, error)
- func (UnimplementedSnapshotServiceServer) CreateSnapshotPolicy(context.Context, *CreateSnapshotPolicyRequest) (*CreateSnapshotPolicyResponse, error)
- func (UnimplementedSnapshotServiceServer) DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*DeleteSnapshotResponse, error)
- func (UnimplementedSnapshotServiceServer) DeleteSnapshotPolicies(context.Context, *DeleteSnapshotPoliciesRequest) (*DeleteSnapshotPoliciesResponse, error)
- func (UnimplementedSnapshotServiceServer) ExtractSnapshot(context.Context, *ExtractSnapshotRequest) (*ExtractSnapshotResponse, error)
- func (UnimplementedSnapshotServiceServer) ListSnapshotPolicies(context.Context, *ListSnapshotPoliciesRequest) (*ListSnapshotPoliciesResponse, error)
- func (UnimplementedSnapshotServiceServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
- func (UnimplementedSnapshotServiceServer) ListSnapshotsCmdByAdmin(context.Context, *ListSnapshotsCmdByAdminRequest) (*ListSnapshotsCmdByAdminResponse, error)
- func (UnimplementedSnapshotServiceServer) RevertSnapshot(context.Context, *RevertSnapshotRequest) (*RevertSnapshotResponse, error)
- func (UnimplementedSnapshotServiceServer) UpdateSnapshotPolicy(context.Context, *UpdateSnapshotPolicyRequest) (*UpdateSnapshotPolicyResponse, error)
- type UnsafeSnapshotServiceServer
- type UpdateSnapshotPolicyRequest
- func (*UpdateSnapshotPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSnapshotPolicyRequest) GetCustomId() string
- func (x *UpdateSnapshotPolicyRequest) GetDisplay() bool
- func (x *UpdateSnapshotPolicyRequest) GetId() int64
- func (x *UpdateSnapshotPolicyRequest) GetInjectedJobId() string
- func (x *UpdateSnapshotPolicyRequest) GetResponseType() string
- func (x *UpdateSnapshotPolicyRequest) GetStartEventId() int64
- func (*UpdateSnapshotPolicyRequest) ProtoMessage()
- func (x *UpdateSnapshotPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSnapshotPolicyRequest) Reset()
- func (x *UpdateSnapshotPolicyRequest) String() string
- type UpdateSnapshotPolicyResponse
- func (*UpdateSnapshotPolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSnapshotPolicyResponse) GetResult() *Result
- func (*UpdateSnapshotPolicyResponse) ProtoMessage()
- func (x *UpdateSnapshotPolicyResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateSnapshotPolicyResponse) Reset()
- func (x *UpdateSnapshotPolicyResponse) String() string
Constants ¶
const ( SnapshotService_ArchiveSnapshot_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/ArchiveSnapshot" SnapshotService_CopySnapshot_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/CopySnapshot" SnapshotService_CreateSnapshot_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/CreateSnapshot" SnapshotService_CreateSnapshotFromVMSnapshot_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/CreateSnapshotFromVMSnapshot" SnapshotService_CreateSnapshotPolicy_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/CreateSnapshotPolicy" SnapshotService_DeleteSnapshot_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/DeleteSnapshot" SnapshotService_DeleteSnapshotPolicies_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/DeleteSnapshotPolicies" SnapshotService_ExtractSnapshot_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/ExtractSnapshot" SnapshotService_ListSnapshotPolicies_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/ListSnapshotPolicies" SnapshotService_ListSnapshots_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/ListSnapshots" SnapshotService_ListSnapshotsCmdByAdmin_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/ListSnapshotsCmdByAdmin" SnapshotService_RevertSnapshot_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/RevertSnapshot" SnapshotService_UpdateSnapshotPolicy_FullMethodName = "/cloudstack.management.snapshot.v1.SnapshotService/UpdateSnapshotPolicy" )
Variables ¶
var ( IntervalType_name = map[int32]string{ 0: "INTERVAL_TYPE_UNSPECIFIED", 1: "INTERVAL_TYPE_DAILY", 2: "INTERVAL_TYPE_HOURLY", 3: "INTERVAL_TYPE_WEEKLY", } IntervalType_value = map[string]int32{ "INTERVAL_TYPE_UNSPECIFIED": 0, "INTERVAL_TYPE_DAILY": 1, "INTERVAL_TYPE_HOURLY": 2, "INTERVAL_TYPE_WEEKLY": 3, } )
Enum value maps for IntervalType.
var ( SnapshotType_name = map[int32]string{ 0: "SNAPSHOT_TYPE_UNSPECIFIED", 1: "SNAPSHOT_TYPE_MANUAL", 2: "SNAPSHOT_TYPE_RECURRING", } SnapshotType_value = map[string]int32{ "SNAPSHOT_TYPE_UNSPECIFIED": 0, "SNAPSHOT_TYPE_MANUAL": 1, "SNAPSHOT_TYPE_RECURRING": 2, } )
Enum value maps for SnapshotType.
var File_cloudstack_management_snapshot_v1_snapshot_gen_proto protoreflect.FileDescriptor
var SnapshotService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudstack.management.snapshot.v1.SnapshotService", HandlerType: (*SnapshotServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ArchiveSnapshot", Handler: _SnapshotService_ArchiveSnapshot_Handler, }, { MethodName: "CopySnapshot", Handler: _SnapshotService_CopySnapshot_Handler, }, { MethodName: "CreateSnapshot", Handler: _SnapshotService_CreateSnapshot_Handler, }, { MethodName: "CreateSnapshotFromVMSnapshot", Handler: _SnapshotService_CreateSnapshotFromVMSnapshot_Handler, }, { MethodName: "CreateSnapshotPolicy", Handler: _SnapshotService_CreateSnapshotPolicy_Handler, }, { MethodName: "DeleteSnapshot", Handler: _SnapshotService_DeleteSnapshot_Handler, }, { MethodName: "DeleteSnapshotPolicies", Handler: _SnapshotService_DeleteSnapshotPolicies_Handler, }, { MethodName: "ExtractSnapshot", Handler: _SnapshotService_ExtractSnapshot_Handler, }, { MethodName: "ListSnapshotPolicies", Handler: _SnapshotService_ListSnapshotPolicies_Handler, }, { MethodName: "ListSnapshots", Handler: _SnapshotService_ListSnapshots_Handler, }, { MethodName: "ListSnapshotsCmdByAdmin", Handler: _SnapshotService_ListSnapshotsCmdByAdmin_Handler, }, { MethodName: "RevertSnapshot", Handler: _SnapshotService_RevertSnapshot_Handler, }, { MethodName: "UpdateSnapshotPolicy", Handler: _SnapshotService_UpdateSnapshotPolicy_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cloudstack/management/snapshot/v1/snapshot.gen.proto", }
SnapshotService_ServiceDesc is the grpc.ServiceDesc for SnapshotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSnapshotServiceServer ¶
func RegisterSnapshotServiceServer(s grpc.ServiceRegistrar, srv SnapshotServiceServer)
Types ¶
type ArchiveSnapshotRequest ¶
type ArchiveSnapshotRequest struct {
// The ID of the 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
}
ArchiveSnapshotRequest represents the parameters for archives (moves) a snapshot on primary storage to secondary storage
func (*ArchiveSnapshotRequest) Descriptor
deprecated
func (*ArchiveSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use ArchiveSnapshotRequest.ProtoReflect.Descriptor instead.
func (*ArchiveSnapshotRequest) GetId ¶
func (x *ArchiveSnapshotRequest) GetId() int64
func (*ArchiveSnapshotRequest) GetInjectedJobId ¶
func (x *ArchiveSnapshotRequest) GetInjectedJobId() string
func (*ArchiveSnapshotRequest) GetResponseType ¶
func (x *ArchiveSnapshotRequest) GetResponseType() string
func (*ArchiveSnapshotRequest) GetStartEventId ¶
func (x *ArchiveSnapshotRequest) GetStartEventId() int64
func (*ArchiveSnapshotRequest) ProtoMessage ¶
func (*ArchiveSnapshotRequest) ProtoMessage()
func (*ArchiveSnapshotRequest) ProtoReflect ¶
func (x *ArchiveSnapshotRequest) ProtoReflect() protoreflect.Message
func (*ArchiveSnapshotRequest) Reset ¶
func (x *ArchiveSnapshotRequest) Reset()
func (*ArchiveSnapshotRequest) String ¶
func (x *ArchiveSnapshotRequest) String() string
type ArchiveSnapshotResponse ¶
type ArchiveSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
ArchiveSnapshotResponse represents the response from archives (moves) a snapshot on primary storage to secondary storage
func (*ArchiveSnapshotResponse) Descriptor
deprecated
func (*ArchiveSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArchiveSnapshotResponse.ProtoReflect.Descriptor instead.
func (*ArchiveSnapshotResponse) GetResult ¶
func (x *ArchiveSnapshotResponse) GetResult() *Result
func (*ArchiveSnapshotResponse) ProtoMessage ¶
func (*ArchiveSnapshotResponse) ProtoMessage()
func (*ArchiveSnapshotResponse) ProtoReflect ¶
func (x *ArchiveSnapshotResponse) ProtoReflect() protoreflect.Message
func (*ArchiveSnapshotResponse) Reset ¶
func (x *ArchiveSnapshotResponse) Reset()
func (*ArchiveSnapshotResponse) String ¶
func (x *ArchiveSnapshotResponse) String() string
type CopySnapshotRequest ¶
type CopySnapshotRequest struct {
// the ID of the snapshot.
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// The ID of the zone in which the snapshot is currently present. If not specified then the zone of snapshot's volume will be used.
SourceZoneId *int64 `protobuf:"varint,2,opt,name=source_zone_id,json=sourceZoneId" json:"source_zone_id,omitempty"`
// The ID of the zone the snapshot is being copied to.
DestZoneId *int64 `protobuf:"varint,3,opt,name=dest_zone_id,json=destZoneId" json:"dest_zone_id,omitempty"`
// A comma-separated list of IDs of the zones that the snapshot needs to be copied to. Specify this list if the snapshot needs to copied to multiple zones in one go. Do not specify destzoneid and destzoneids together, however one of them is required.
DestZoneIds []string `protobuf:"bytes,4,rep,name=dest_zone_ids,json=destZoneIds" json:"dest_zone_ids,omitempty"`
StartEventId *int64 `protobuf:"varint,5,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,6,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,7,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
CopySnapshotRequest represents the parameters for copies a snapshot from one zone to another.
func (*CopySnapshotRequest) Descriptor
deprecated
func (*CopySnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CopySnapshotRequest.ProtoReflect.Descriptor instead.
func (*CopySnapshotRequest) GetDestZoneId ¶
func (x *CopySnapshotRequest) GetDestZoneId() int64
func (*CopySnapshotRequest) GetDestZoneIds ¶
func (x *CopySnapshotRequest) GetDestZoneIds() []string
func (*CopySnapshotRequest) GetId ¶
func (x *CopySnapshotRequest) GetId() int64
func (*CopySnapshotRequest) GetInjectedJobId ¶
func (x *CopySnapshotRequest) GetInjectedJobId() string
func (*CopySnapshotRequest) GetResponseType ¶
func (x *CopySnapshotRequest) GetResponseType() string
func (*CopySnapshotRequest) GetSourceZoneId ¶
func (x *CopySnapshotRequest) GetSourceZoneId() int64
func (*CopySnapshotRequest) GetStartEventId ¶
func (x *CopySnapshotRequest) GetStartEventId() int64
func (*CopySnapshotRequest) ProtoMessage ¶
func (*CopySnapshotRequest) ProtoMessage()
func (*CopySnapshotRequest) ProtoReflect ¶
func (x *CopySnapshotRequest) ProtoReflect() protoreflect.Message
func (*CopySnapshotRequest) Reset ¶
func (x *CopySnapshotRequest) Reset()
func (*CopySnapshotRequest) String ¶
func (x *CopySnapshotRequest) String() string
type CopySnapshotResponse ¶
type CopySnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
CopySnapshotResponse represents the response from copies a snapshot from one zone to another.
func (*CopySnapshotResponse) Descriptor
deprecated
func (*CopySnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use CopySnapshotResponse.ProtoReflect.Descriptor instead.
func (*CopySnapshotResponse) GetResult ¶
func (x *CopySnapshotResponse) GetResult() *Result
func (*CopySnapshotResponse) ProtoMessage ¶
func (*CopySnapshotResponse) ProtoMessage()
func (*CopySnapshotResponse) ProtoReflect ¶
func (x *CopySnapshotResponse) ProtoReflect() protoreflect.Message
func (*CopySnapshotResponse) Reset ¶
func (x *CopySnapshotResponse) Reset()
func (*CopySnapshotResponse) String ¶
func (x *CopySnapshotResponse) String() string
type CreateSnapshotFromVMSnapshotRequest ¶
type CreateSnapshotFromVMSnapshotRequest struct {
// The ID of the disk volume
VolumeId *int64 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
// The ID of the VM snapshot
VmSnapshotId *int64 `protobuf:"varint,2,opt,name=vm_snapshot_id,json=vmSnapshotId" json:"vm_snapshot_id,omitempty"`
// the name of the snapshot
SnapshotName *string `protobuf:"bytes,3,opt,name=snapshot_name,json=snapshotName" json:"snapshot_name,omitempty"`
StartEventId *int64 `protobuf:"varint,4,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,5,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
CreateSnapshotFromVMSnapshotRequest represents the parameters for creates an instant snapshot of a volume from existing vm snapshot.
func (*CreateSnapshotFromVMSnapshotRequest) Descriptor
deprecated
func (*CreateSnapshotFromVMSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotFromVMSnapshotRequest.ProtoReflect.Descriptor instead.
func (*CreateSnapshotFromVMSnapshotRequest) GetInjectedJobId ¶
func (x *CreateSnapshotFromVMSnapshotRequest) GetInjectedJobId() string
func (*CreateSnapshotFromVMSnapshotRequest) GetResponseType ¶
func (x *CreateSnapshotFromVMSnapshotRequest) GetResponseType() string
func (*CreateSnapshotFromVMSnapshotRequest) GetSnapshotName ¶
func (x *CreateSnapshotFromVMSnapshotRequest) GetSnapshotName() string
func (*CreateSnapshotFromVMSnapshotRequest) GetStartEventId ¶
func (x *CreateSnapshotFromVMSnapshotRequest) GetStartEventId() int64
func (*CreateSnapshotFromVMSnapshotRequest) GetVmSnapshotId ¶
func (x *CreateSnapshotFromVMSnapshotRequest) GetVmSnapshotId() int64
func (*CreateSnapshotFromVMSnapshotRequest) GetVolumeId ¶
func (x *CreateSnapshotFromVMSnapshotRequest) GetVolumeId() int64
func (*CreateSnapshotFromVMSnapshotRequest) ProtoMessage ¶
func (*CreateSnapshotFromVMSnapshotRequest) ProtoMessage()
func (*CreateSnapshotFromVMSnapshotRequest) ProtoReflect ¶
func (x *CreateSnapshotFromVMSnapshotRequest) ProtoReflect() protoreflect.Message
func (*CreateSnapshotFromVMSnapshotRequest) Reset ¶
func (x *CreateSnapshotFromVMSnapshotRequest) Reset()
func (*CreateSnapshotFromVMSnapshotRequest) String ¶
func (x *CreateSnapshotFromVMSnapshotRequest) String() string
type CreateSnapshotFromVMSnapshotResponse ¶
type CreateSnapshotFromVMSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
CreateSnapshotFromVMSnapshotResponse represents the response from creates an instant snapshot of a volume from existing vm snapshot.
func (*CreateSnapshotFromVMSnapshotResponse) Descriptor
deprecated
func (*CreateSnapshotFromVMSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotFromVMSnapshotResponse.ProtoReflect.Descriptor instead.
func (*CreateSnapshotFromVMSnapshotResponse) GetResult ¶
func (x *CreateSnapshotFromVMSnapshotResponse) GetResult() *Result
func (*CreateSnapshotFromVMSnapshotResponse) ProtoMessage ¶
func (*CreateSnapshotFromVMSnapshotResponse) ProtoMessage()
func (*CreateSnapshotFromVMSnapshotResponse) ProtoReflect ¶
func (x *CreateSnapshotFromVMSnapshotResponse) ProtoReflect() protoreflect.Message
func (*CreateSnapshotFromVMSnapshotResponse) Reset ¶
func (x *CreateSnapshotFromVMSnapshotResponse) Reset()
func (*CreateSnapshotFromVMSnapshotResponse) String ¶
func (x *CreateSnapshotFromVMSnapshotResponse) String() string
type CreateSnapshotPolicyRequest ¶
type CreateSnapshotPolicyRequest struct {
// valid values are HOURLY, DAILY, WEEKLY, and MONTHLY
IntervalType *string `protobuf:"bytes,1,opt,name=interval_type,json=intervalType" json:"interval_type,omitempty"`
// maximum number of snapshots to retain
MaxSnaps *int32 `protobuf:"varint,2,opt,name=max_snaps,json=maxSnaps" json:"max_snaps,omitempty"`
// time the snapshot is scheduled to be taken. Format is:* if HOURLY, MM* if DAILY, MM:HH* if WEEKLY, MM:HH:DD (1-7)* if MONTHLY, MM:HH:DD (1-28)
Schedule *string `protobuf:"bytes,3,opt,name=schedule" json:"schedule,omitempty"`
// Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.
Timezone *string `protobuf:"bytes,4,opt,name=timezone" json:"timezone,omitempty"`
// the ID of the disk volume
VolumeId *int64 `protobuf:"varint,5,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
// an optional field, whether to the display the policy to the end user or not
Display *bool `protobuf:"varint,6,opt,name=display" json:"display,omitempty"`
// Map of tags (key/value pairs)
Tags map[string]string `` /* 128-byte string literal not displayed */
// A list of IDs of the zones in which the snapshots will be made available.The snapshots will always be made available in the zone in which the volume is present.
ZoneIds []string `protobuf:"bytes,8,rep,name=zone_ids,json=zoneIds" json:"zone_ids,omitempty"`
ResponseType *string `protobuf:"bytes,9,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
CreateSnapshotPolicyRequest represents the parameters for creates a snapshot policy for the account.
func (*CreateSnapshotPolicyRequest) Descriptor
deprecated
func (*CreateSnapshotPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotPolicyRequest.ProtoReflect.Descriptor instead.
func (*CreateSnapshotPolicyRequest) GetDisplay ¶
func (x *CreateSnapshotPolicyRequest) GetDisplay() bool
func (*CreateSnapshotPolicyRequest) GetIntervalType ¶
func (x *CreateSnapshotPolicyRequest) GetIntervalType() string
func (*CreateSnapshotPolicyRequest) GetMaxSnaps ¶
func (x *CreateSnapshotPolicyRequest) GetMaxSnaps() int32
func (*CreateSnapshotPolicyRequest) GetResponseType ¶
func (x *CreateSnapshotPolicyRequest) GetResponseType() string
func (*CreateSnapshotPolicyRequest) GetSchedule ¶
func (x *CreateSnapshotPolicyRequest) GetSchedule() string
func (*CreateSnapshotPolicyRequest) GetTags ¶
func (x *CreateSnapshotPolicyRequest) GetTags() map[string]string
func (*CreateSnapshotPolicyRequest) GetTimezone ¶
func (x *CreateSnapshotPolicyRequest) GetTimezone() string
func (*CreateSnapshotPolicyRequest) GetVolumeId ¶
func (x *CreateSnapshotPolicyRequest) GetVolumeId() int64
func (*CreateSnapshotPolicyRequest) GetZoneIds ¶
func (x *CreateSnapshotPolicyRequest) GetZoneIds() []string
func (*CreateSnapshotPolicyRequest) ProtoMessage ¶
func (*CreateSnapshotPolicyRequest) ProtoMessage()
func (*CreateSnapshotPolicyRequest) ProtoReflect ¶
func (x *CreateSnapshotPolicyRequest) ProtoReflect() protoreflect.Message
func (*CreateSnapshotPolicyRequest) Reset ¶
func (x *CreateSnapshotPolicyRequest) Reset()
func (*CreateSnapshotPolicyRequest) String ¶
func (x *CreateSnapshotPolicyRequest) String() string
type CreateSnapshotPolicyResponse ¶
type CreateSnapshotPolicyResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
CreateSnapshotPolicyResponse represents the response from creates a snapshot policy for the account.
func (*CreateSnapshotPolicyResponse) Descriptor
deprecated
func (*CreateSnapshotPolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotPolicyResponse.ProtoReflect.Descriptor instead.
func (*CreateSnapshotPolicyResponse) GetResult ¶
func (x *CreateSnapshotPolicyResponse) GetResult() *Result
func (*CreateSnapshotPolicyResponse) ProtoMessage ¶
func (*CreateSnapshotPolicyResponse) ProtoMessage()
func (*CreateSnapshotPolicyResponse) ProtoReflect ¶
func (x *CreateSnapshotPolicyResponse) ProtoReflect() protoreflect.Message
func (*CreateSnapshotPolicyResponse) Reset ¶
func (x *CreateSnapshotPolicyResponse) Reset()
func (*CreateSnapshotPolicyResponse) String ¶
func (x *CreateSnapshotPolicyResponse) String() string
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct {
// The account of the snapshot. The account parameter must be used with the domainId parameter.
AccountName *string `protobuf:"bytes,1,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
// The domain ID of the snapshot. If used with the account parameter, specifies a domain for the account associated with the disk volume. If account is NOT provided then snapshot will be assigned to the caller account and domain.
DomainId *int64 `protobuf:"varint,2,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
// The ID of the disk volume
VolumeId *int64 `protobuf:"varint,3,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
// policy id of the snapshot, if this is null, then use MANUAL_POLICY.
PolicyId *int64 `protobuf:"varint,4,opt,name=policy_id,json=policyId" json:"policy_id,omitempty"`
// quiesce vm if true
Quiescevm *bool `protobuf:"varint,5,opt,name=quiescevm" json:"quiescevm,omitempty"`
// Currently applicable only for managed storage. Valid location types: 'primary', 'secondary'. Default = 'primary'.
LocationType *string `protobuf:"bytes,6,opt,name=location_type,json=locationType" json:"location_type,omitempty"`
// the name of the snapshot
SnapshotName *string `protobuf:"bytes,7,opt,name=snapshot_name,json=snapshotName" json:"snapshot_name,omitempty"`
// asynchronous backup if true
AsyncBackup *bool `protobuf:"varint,8,opt,name=async_backup,json=asyncBackup" json:"async_backup,omitempty"`
// Map of tags (key/value pairs)
Tags map[string]string `` /* 128-byte string literal not displayed */
// A comma-separated list of IDs of the zones in which the snapshot will be made available. The snapshot will always be made available in the zone in which the volume is present.
ZoneIds []string `protobuf:"bytes,10,rep,name=zone_ids,json=zoneIds" json:"zone_ids,omitempty"`
StartEventId *int64 `protobuf:"varint,11,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,12,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,13,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
CreateSnapshotRequest represents the parameters for creates an instant snapshot of a volume.
func (*CreateSnapshotRequest) Descriptor
deprecated
func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotRequest.ProtoReflect.Descriptor instead.
func (*CreateSnapshotRequest) GetAccountName ¶
func (x *CreateSnapshotRequest) GetAccountName() string
func (*CreateSnapshotRequest) GetAsyncBackup ¶
func (x *CreateSnapshotRequest) GetAsyncBackup() bool
func (*CreateSnapshotRequest) GetDomainId ¶
func (x *CreateSnapshotRequest) GetDomainId() int64
func (*CreateSnapshotRequest) GetInjectedJobId ¶
func (x *CreateSnapshotRequest) GetInjectedJobId() string
func (*CreateSnapshotRequest) GetLocationType ¶
func (x *CreateSnapshotRequest) GetLocationType() string
func (*CreateSnapshotRequest) GetPolicyId ¶
func (x *CreateSnapshotRequest) GetPolicyId() int64
func (*CreateSnapshotRequest) GetQuiescevm ¶
func (x *CreateSnapshotRequest) GetQuiescevm() bool
func (*CreateSnapshotRequest) GetResponseType ¶
func (x *CreateSnapshotRequest) GetResponseType() string
func (*CreateSnapshotRequest) GetSnapshotName ¶
func (x *CreateSnapshotRequest) GetSnapshotName() string
func (*CreateSnapshotRequest) GetStartEventId ¶
func (x *CreateSnapshotRequest) GetStartEventId() int64
func (*CreateSnapshotRequest) GetTags ¶
func (x *CreateSnapshotRequest) GetTags() map[string]string
func (*CreateSnapshotRequest) GetVolumeId ¶
func (x *CreateSnapshotRequest) GetVolumeId() int64
func (*CreateSnapshotRequest) GetZoneIds ¶
func (x *CreateSnapshotRequest) GetZoneIds() []string
func (*CreateSnapshotRequest) ProtoMessage ¶
func (*CreateSnapshotRequest) ProtoMessage()
func (*CreateSnapshotRequest) ProtoReflect ¶
func (x *CreateSnapshotRequest) ProtoReflect() protoreflect.Message
func (*CreateSnapshotRequest) Reset ¶
func (x *CreateSnapshotRequest) Reset()
func (*CreateSnapshotRequest) String ¶
func (x *CreateSnapshotRequest) String() string
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
CreateSnapshotResponse represents the response from creates an instant snapshot of a volume.
func (*CreateSnapshotResponse) Descriptor
deprecated
func (*CreateSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSnapshotResponse.ProtoReflect.Descriptor instead.
func (*CreateSnapshotResponse) GetResult ¶
func (x *CreateSnapshotResponse) GetResult() *Result
func (*CreateSnapshotResponse) ProtoMessage ¶
func (*CreateSnapshotResponse) ProtoMessage()
func (*CreateSnapshotResponse) ProtoReflect ¶
func (x *CreateSnapshotResponse) ProtoReflect() protoreflect.Message
func (*CreateSnapshotResponse) Reset ¶
func (x *CreateSnapshotResponse) Reset()
func (*CreateSnapshotResponse) String ¶
func (x *CreateSnapshotResponse) String() string
type DeleteSnapshotPoliciesRequest ¶
type DeleteSnapshotPoliciesRequest struct {
// the Id of the snapshot policy
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// list of snapshots policy IDs separated by comma
Ids []string `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"`
ResponseType *string `protobuf:"bytes,3,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
DeleteSnapshotPoliciesRequest represents the parameters for deletes snapshot policies for the account.
func (*DeleteSnapshotPoliciesRequest) Descriptor
deprecated
func (*DeleteSnapshotPoliciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSnapshotPoliciesRequest.ProtoReflect.Descriptor instead.
func (*DeleteSnapshotPoliciesRequest) GetId ¶
func (x *DeleteSnapshotPoliciesRequest) GetId() int64
func (*DeleteSnapshotPoliciesRequest) GetIds ¶
func (x *DeleteSnapshotPoliciesRequest) GetIds() []string
func (*DeleteSnapshotPoliciesRequest) GetResponseType ¶
func (x *DeleteSnapshotPoliciesRequest) GetResponseType() string
func (*DeleteSnapshotPoliciesRequest) ProtoMessage ¶
func (*DeleteSnapshotPoliciesRequest) ProtoMessage()
func (*DeleteSnapshotPoliciesRequest) ProtoReflect ¶
func (x *DeleteSnapshotPoliciesRequest) ProtoReflect() protoreflect.Message
func (*DeleteSnapshotPoliciesRequest) Reset ¶
func (x *DeleteSnapshotPoliciesRequest) Reset()
func (*DeleteSnapshotPoliciesRequest) String ¶
func (x *DeleteSnapshotPoliciesRequest) String() string
type DeleteSnapshotPoliciesResponse ¶
type DeleteSnapshotPoliciesResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
DeleteSnapshotPoliciesResponse represents the response from deletes snapshot policies for the account.
func (*DeleteSnapshotPoliciesResponse) Descriptor
deprecated
func (*DeleteSnapshotPoliciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSnapshotPoliciesResponse.ProtoReflect.Descriptor instead.
func (*DeleteSnapshotPoliciesResponse) GetResult ¶
func (x *DeleteSnapshotPoliciesResponse) GetResult() *Result
func (*DeleteSnapshotPoliciesResponse) ProtoMessage ¶
func (*DeleteSnapshotPoliciesResponse) ProtoMessage()
func (*DeleteSnapshotPoliciesResponse) ProtoReflect ¶
func (x *DeleteSnapshotPoliciesResponse) ProtoReflect() protoreflect.Message
func (*DeleteSnapshotPoliciesResponse) Reset ¶
func (x *DeleteSnapshotPoliciesResponse) Reset()
func (*DeleteSnapshotPoliciesResponse) String ¶
func (x *DeleteSnapshotPoliciesResponse) String() string
type DeleteSnapshotRequest ¶
type DeleteSnapshotRequest struct {
// The ID of the snapshot
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// The ID of the zone for the snapshot
ZoneId *int64 `protobuf:"varint,2,opt,name=zone_id,json=zoneId" json:"zone_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
}
DeleteSnapshotRequest represents the parameters for deletes a snapshot of a disk volume.
func (*DeleteSnapshotRequest) Descriptor
deprecated
func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSnapshotRequest.ProtoReflect.Descriptor instead.
func (*DeleteSnapshotRequest) GetId ¶
func (x *DeleteSnapshotRequest) GetId() int64
func (*DeleteSnapshotRequest) GetInjectedJobId ¶
func (x *DeleteSnapshotRequest) GetInjectedJobId() string
func (*DeleteSnapshotRequest) GetResponseType ¶
func (x *DeleteSnapshotRequest) GetResponseType() string
func (*DeleteSnapshotRequest) GetStartEventId ¶
func (x *DeleteSnapshotRequest) GetStartEventId() int64
func (*DeleteSnapshotRequest) GetZoneId ¶
func (x *DeleteSnapshotRequest) GetZoneId() int64
func (*DeleteSnapshotRequest) ProtoMessage ¶
func (*DeleteSnapshotRequest) ProtoMessage()
func (*DeleteSnapshotRequest) ProtoReflect ¶
func (x *DeleteSnapshotRequest) ProtoReflect() protoreflect.Message
func (*DeleteSnapshotRequest) Reset ¶
func (x *DeleteSnapshotRequest) Reset()
func (*DeleteSnapshotRequest) String ¶
func (x *DeleteSnapshotRequest) String() string
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
DeleteSnapshotResponse represents the response from deletes a snapshot of a disk volume.
func (*DeleteSnapshotResponse) Descriptor
deprecated
func (*DeleteSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSnapshotResponse.ProtoReflect.Descriptor instead.
func (*DeleteSnapshotResponse) GetResult ¶
func (x *DeleteSnapshotResponse) GetResult() *Result
func (*DeleteSnapshotResponse) ProtoMessage ¶
func (*DeleteSnapshotResponse) ProtoMessage()
func (*DeleteSnapshotResponse) ProtoReflect ¶
func (x *DeleteSnapshotResponse) ProtoReflect() protoreflect.Message
func (*DeleteSnapshotResponse) Reset ¶
func (x *DeleteSnapshotResponse) Reset()
func (*DeleteSnapshotResponse) String ¶
func (x *DeleteSnapshotResponse) String() string
type ExtractSnapshotRequest ¶
type ExtractSnapshotRequest struct {
// the ID of the snapshot
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// the ID of the zone where the snapshot is located
ZoneId *int64 `protobuf:"varint,2,opt,name=zone_id,json=zoneId" json:"zone_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
}
ExtractSnapshotRequest represents the parameters for returns a download url for extracting a snapshot. it must be in the backed up state.
func (*ExtractSnapshotRequest) Descriptor
deprecated
func (*ExtractSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExtractSnapshotRequest.ProtoReflect.Descriptor instead.
func (*ExtractSnapshotRequest) GetId ¶
func (x *ExtractSnapshotRequest) GetId() int64
func (*ExtractSnapshotRequest) GetInjectedJobId ¶
func (x *ExtractSnapshotRequest) GetInjectedJobId() string
func (*ExtractSnapshotRequest) GetResponseType ¶
func (x *ExtractSnapshotRequest) GetResponseType() string
func (*ExtractSnapshotRequest) GetStartEventId ¶
func (x *ExtractSnapshotRequest) GetStartEventId() int64
func (*ExtractSnapshotRequest) GetZoneId ¶
func (x *ExtractSnapshotRequest) GetZoneId() int64
func (*ExtractSnapshotRequest) ProtoMessage ¶
func (*ExtractSnapshotRequest) ProtoMessage()
func (*ExtractSnapshotRequest) ProtoReflect ¶
func (x *ExtractSnapshotRequest) ProtoReflect() protoreflect.Message
func (*ExtractSnapshotRequest) Reset ¶
func (x *ExtractSnapshotRequest) Reset()
func (*ExtractSnapshotRequest) String ¶
func (x *ExtractSnapshotRequest) String() string
type ExtractSnapshotResponse ¶
type ExtractSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
ExtractSnapshotResponse represents the response from returns a download url for extracting a snapshot. it must be in the backed up state.
func (*ExtractSnapshotResponse) Descriptor
deprecated
func (*ExtractSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExtractSnapshotResponse.ProtoReflect.Descriptor instead.
func (*ExtractSnapshotResponse) GetResult ¶
func (x *ExtractSnapshotResponse) GetResult() *Result
func (*ExtractSnapshotResponse) ProtoMessage ¶
func (*ExtractSnapshotResponse) ProtoMessage()
func (*ExtractSnapshotResponse) ProtoReflect ¶
func (x *ExtractSnapshotResponse) ProtoReflect() protoreflect.Message
func (*ExtractSnapshotResponse) Reset ¶
func (x *ExtractSnapshotResponse) Reset()
func (*ExtractSnapshotResponse) String ¶
func (x *ExtractSnapshotResponse) String() string
type IntervalType ¶
type IntervalType int32
IntervalType represents the possible values for valid values are HOURLY, DAILY, WEEKLY, and MONTHLY.
const ( // Default unspecified value IntervalType_INTERVAL_TYPE_UNSPECIFIED IntervalType = 0 // DAILY value IntervalType_INTERVAL_TYPE_DAILY IntervalType = 1 // HOURLY value IntervalType_INTERVAL_TYPE_HOURLY IntervalType = 2 // WEEKLY value IntervalType_INTERVAL_TYPE_WEEKLY IntervalType = 3 )
func (IntervalType) Descriptor ¶
func (IntervalType) Descriptor() protoreflect.EnumDescriptor
func (IntervalType) Enum ¶
func (x IntervalType) Enum() *IntervalType
func (IntervalType) EnumDescriptor
deprecated
func (IntervalType) EnumDescriptor() ([]byte, []int)
Deprecated: Use IntervalType.Descriptor instead.
func (IntervalType) Number ¶
func (x IntervalType) Number() protoreflect.EnumNumber
func (IntervalType) String ¶
func (x IntervalType) String() string
func (IntervalType) Type ¶
func (IntervalType) Type() protoreflect.EnumType
type ListSnapshotPoliciesRequest ¶
type ListSnapshotPoliciesRequest struct {
// the ID of the disk volume
VolumeId *int64 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
// the ID of the snapshot policy
Id *int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
// list resources by display flag; only ROOT admin is eligible to pass this parameter
Display *bool `protobuf:"varint,3,opt,name=display" json:"display,omitempty"`
// List by keyword
Keyword *string `protobuf:"bytes,4,opt,name=keyword" json:"keyword,omitempty"`
Page *int32 `protobuf:"varint,5,opt,name=page" json:"page,omitempty"`
PageSize *int32 `protobuf:"varint,6,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
ResponseType *string `protobuf:"bytes,7,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ListSnapshotPoliciesRequest represents the parameters for lists snapshot policies.
func (*ListSnapshotPoliciesRequest) Descriptor
deprecated
func (*ListSnapshotPoliciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListSnapshotPoliciesRequest) GetDisplay ¶
func (x *ListSnapshotPoliciesRequest) GetDisplay() bool
func (*ListSnapshotPoliciesRequest) GetId ¶
func (x *ListSnapshotPoliciesRequest) GetId() int64
func (*ListSnapshotPoliciesRequest) GetKeyword ¶
func (x *ListSnapshotPoliciesRequest) GetKeyword() string
func (*ListSnapshotPoliciesRequest) GetPage ¶
func (x *ListSnapshotPoliciesRequest) GetPage() int32
func (*ListSnapshotPoliciesRequest) GetPageSize ¶
func (x *ListSnapshotPoliciesRequest) GetPageSize() int32
func (*ListSnapshotPoliciesRequest) GetResponseType ¶
func (x *ListSnapshotPoliciesRequest) GetResponseType() string
func (*ListSnapshotPoliciesRequest) GetVolumeId ¶
func (x *ListSnapshotPoliciesRequest) GetVolumeId() int64
func (*ListSnapshotPoliciesRequest) ProtoMessage ¶
func (*ListSnapshotPoliciesRequest) ProtoMessage()
func (*ListSnapshotPoliciesRequest) ProtoReflect ¶
func (x *ListSnapshotPoliciesRequest) ProtoReflect() protoreflect.Message
func (*ListSnapshotPoliciesRequest) Reset ¶
func (x *ListSnapshotPoliciesRequest) Reset()
func (*ListSnapshotPoliciesRequest) String ¶
func (x *ListSnapshotPoliciesRequest) String() string
type ListSnapshotPoliciesResponse ¶
type ListSnapshotPoliciesResponse struct {
// The list of SnapshotPolicys
Items []*SnapshotPolicy `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
// The total count of SnapshotPolicys
TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
ListSnapshotPoliciesResponse represents the response from lists snapshot policies.
func (*ListSnapshotPoliciesResponse) Descriptor
deprecated
func (*ListSnapshotPoliciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListSnapshotPoliciesResponse) GetItems ¶
func (x *ListSnapshotPoliciesResponse) GetItems() []*SnapshotPolicy
func (*ListSnapshotPoliciesResponse) GetTotalCount ¶
func (x *ListSnapshotPoliciesResponse) GetTotalCount() int32
func (*ListSnapshotPoliciesResponse) ProtoMessage ¶
func (*ListSnapshotPoliciesResponse) ProtoMessage()
func (*ListSnapshotPoliciesResponse) ProtoReflect ¶
func (x *ListSnapshotPoliciesResponse) ProtoReflect() protoreflect.Message
func (*ListSnapshotPoliciesResponse) Reset ¶
func (x *ListSnapshotPoliciesResponse) Reset()
func (*ListSnapshotPoliciesResponse) String ¶
func (x *ListSnapshotPoliciesResponse) String() string
type ListSnapshotsCmdByAdminRequest ¶
type ListSnapshotsCmdByAdminRequest struct {
// ID of the image or image cache store
ImageStoreId *int64 `protobuf:"varint,1,opt,name=image_store_id,json=imageStoreId" json:"image_store_id,omitempty"`
// ID of the storage pool
StoragePoolId *int64 `protobuf:"varint,2,opt,name=storage_pool_id,json=storagePoolId" json:"storage_pool_id,omitempty"`
// lists snapshot by snapshot ID
Id *int64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
// the IDs of the snapshots, mutually exclusive with id
Ids []string `protobuf:"bytes,4,rep,name=ids" json:"ids,omitempty"`
// valid values are HOURLY, DAILY, WEEKLY, and MONTHLY.
IntervalType *string `protobuf:"bytes,5,opt,name=interval_type,json=intervalType" json:"interval_type,omitempty"`
// lists snapshot by snapshot name
SnapshotName *string `protobuf:"bytes,6,opt,name=snapshot_name,json=snapshotName" json:"snapshot_name,omitempty"`
// valid values are MANUAL or RECURRING.
SnapshotType *string `protobuf:"bytes,7,opt,name=snapshot_type,json=snapshotType" json:"snapshot_type,omitempty"`
// the ID of the disk volume
VolumeId *int64 `protobuf:"varint,8,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
// list snapshots by zone id
ZoneId *int64 `protobuf:"varint,9,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
// If set to false, list templates across zones and their storages
ShowUnique *bool `protobuf:"varint,10,opt,name=show_unique,json=showUnique" json:"show_unique,omitempty"`
// list snapshots by location type. Used only when showunique=false. Valid location types: 'primary', 'secondary'. Default is empty
LocationType *string `protobuf:"bytes,11,opt,name=location_type,json=locationType" json:"location_type,omitempty"`
// List resources by tags (key/value pairs)
Tags map[string]string `` /* 129-byte string literal not displayed */
// list objects by project; if projectid=-1 lists All VMs
ProjectId *int64 `protobuf:"varint,13,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,14,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,15,opt,name=list_all,json=listAll" json:"list_all,omitempty"`
// list only resources belonging to the domain specified
DomainId *int64 `protobuf:"varint,16,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,17,opt,name=recursive" json:"recursive,omitempty"`
// List by keyword
Keyword *string `protobuf:"bytes,18,opt,name=keyword" json:"keyword,omitempty"`
Page *int32 `protobuf:"varint,19,opt,name=page" json:"page,omitempty"`
PageSize *int32 `protobuf:"varint,20,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
ResponseType *string `protobuf:"bytes,21,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ListSnapshotsCmdByAdminRequest represents the parameters for lists all available snapshots for the account.
func (*ListSnapshotsCmdByAdminRequest) Descriptor
deprecated
func (*ListSnapshotsCmdByAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsCmdByAdminRequest.ProtoReflect.Descriptor instead.
func (*ListSnapshotsCmdByAdminRequest) GetAccountName ¶
func (x *ListSnapshotsCmdByAdminRequest) GetAccountName() string
func (*ListSnapshotsCmdByAdminRequest) GetDomainId ¶
func (x *ListSnapshotsCmdByAdminRequest) GetDomainId() int64
func (*ListSnapshotsCmdByAdminRequest) GetId ¶
func (x *ListSnapshotsCmdByAdminRequest) GetId() int64
func (*ListSnapshotsCmdByAdminRequest) GetIds ¶
func (x *ListSnapshotsCmdByAdminRequest) GetIds() []string
func (*ListSnapshotsCmdByAdminRequest) GetImageStoreId ¶
func (x *ListSnapshotsCmdByAdminRequest) GetImageStoreId() int64
func (*ListSnapshotsCmdByAdminRequest) GetIntervalType ¶
func (x *ListSnapshotsCmdByAdminRequest) GetIntervalType() string
func (*ListSnapshotsCmdByAdminRequest) GetKeyword ¶
func (x *ListSnapshotsCmdByAdminRequest) GetKeyword() string
func (*ListSnapshotsCmdByAdminRequest) GetListAll ¶
func (x *ListSnapshotsCmdByAdminRequest) GetListAll() bool
func (*ListSnapshotsCmdByAdminRequest) GetLocationType ¶
func (x *ListSnapshotsCmdByAdminRequest) GetLocationType() string
func (*ListSnapshotsCmdByAdminRequest) GetPage ¶
func (x *ListSnapshotsCmdByAdminRequest) GetPage() int32
func (*ListSnapshotsCmdByAdminRequest) GetPageSize ¶
func (x *ListSnapshotsCmdByAdminRequest) GetPageSize() int32
func (*ListSnapshotsCmdByAdminRequest) GetProjectId ¶
func (x *ListSnapshotsCmdByAdminRequest) GetProjectId() int64
func (*ListSnapshotsCmdByAdminRequest) GetRecursive ¶
func (x *ListSnapshotsCmdByAdminRequest) GetRecursive() bool
func (*ListSnapshotsCmdByAdminRequest) GetResponseType ¶
func (x *ListSnapshotsCmdByAdminRequest) GetResponseType() string
func (*ListSnapshotsCmdByAdminRequest) GetShowUnique ¶
func (x *ListSnapshotsCmdByAdminRequest) GetShowUnique() bool
func (*ListSnapshotsCmdByAdminRequest) GetSnapshotName ¶
func (x *ListSnapshotsCmdByAdminRequest) GetSnapshotName() string
func (*ListSnapshotsCmdByAdminRequest) GetSnapshotType ¶
func (x *ListSnapshotsCmdByAdminRequest) GetSnapshotType() string
func (*ListSnapshotsCmdByAdminRequest) GetStoragePoolId ¶
func (x *ListSnapshotsCmdByAdminRequest) GetStoragePoolId() int64
func (*ListSnapshotsCmdByAdminRequest) GetTags ¶
func (x *ListSnapshotsCmdByAdminRequest) GetTags() map[string]string
func (*ListSnapshotsCmdByAdminRequest) GetVolumeId ¶
func (x *ListSnapshotsCmdByAdminRequest) GetVolumeId() int64
func (*ListSnapshotsCmdByAdminRequest) GetZoneId ¶
func (x *ListSnapshotsCmdByAdminRequest) GetZoneId() int64
func (*ListSnapshotsCmdByAdminRequest) ProtoMessage ¶
func (*ListSnapshotsCmdByAdminRequest) ProtoMessage()
func (*ListSnapshotsCmdByAdminRequest) ProtoReflect ¶
func (x *ListSnapshotsCmdByAdminRequest) ProtoReflect() protoreflect.Message
func (*ListSnapshotsCmdByAdminRequest) Reset ¶
func (x *ListSnapshotsCmdByAdminRequest) Reset()
func (*ListSnapshotsCmdByAdminRequest) String ¶
func (x *ListSnapshotsCmdByAdminRequest) String() string
type ListSnapshotsCmdByAdminResponse ¶
type ListSnapshotsCmdByAdminResponse struct {
// The list of Snapshots
Items []*Snapshot `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
// The total count of Snapshots
TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
ListSnapshotsCmdByAdminResponse represents the response from lists all available snapshots for the account.
func (*ListSnapshotsCmdByAdminResponse) Descriptor
deprecated
func (*ListSnapshotsCmdByAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsCmdByAdminResponse.ProtoReflect.Descriptor instead.
func (*ListSnapshotsCmdByAdminResponse) GetItems ¶
func (x *ListSnapshotsCmdByAdminResponse) GetItems() []*Snapshot
func (*ListSnapshotsCmdByAdminResponse) GetTotalCount ¶
func (x *ListSnapshotsCmdByAdminResponse) GetTotalCount() int32
func (*ListSnapshotsCmdByAdminResponse) ProtoMessage ¶
func (*ListSnapshotsCmdByAdminResponse) ProtoMessage()
func (*ListSnapshotsCmdByAdminResponse) ProtoReflect ¶
func (x *ListSnapshotsCmdByAdminResponse) ProtoReflect() protoreflect.Message
func (*ListSnapshotsCmdByAdminResponse) Reset ¶
func (x *ListSnapshotsCmdByAdminResponse) Reset()
func (*ListSnapshotsCmdByAdminResponse) String ¶
func (x *ListSnapshotsCmdByAdminResponse) String() string
type ListSnapshotsRequest ¶
type ListSnapshotsRequest 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"`
// lists snapshot by snapshot ID
Id *int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
// the IDs of the snapshots, mutually exclusive with id
Ids []string `protobuf:"bytes,3,rep,name=ids" json:"ids,omitempty"`
// valid values are HOURLY, DAILY, WEEKLY, and MONTHLY.
IntervalType *string `protobuf:"bytes,4,opt,name=interval_type,json=intervalType" json:"interval_type,omitempty"`
// lists snapshot by snapshot name
SnapshotName *string `protobuf:"bytes,5,opt,name=snapshot_name,json=snapshotName" json:"snapshot_name,omitempty"`
// valid values are MANUAL or RECURRING.
SnapshotType *string `protobuf:"bytes,6,opt,name=snapshot_type,json=snapshotType" json:"snapshot_type,omitempty"`
// the ID of the disk volume
VolumeId *int64 `protobuf:"varint,7,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
// list snapshots by zone id
ZoneId *int64 `protobuf:"varint,8,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
// If set to false, list templates across zones and their storages
ShowUnique *bool `protobuf:"varint,9,opt,name=show_unique,json=showUnique" json:"show_unique,omitempty"`
// list snapshots by location type. Used only when showunique=false. Valid location types: 'primary', 'secondary'. Default is empty
LocationType *string `protobuf:"bytes,10,opt,name=location_type,json=locationType" json:"location_type,omitempty"`
// List resources by tags (key/value pairs)
Tags map[string]string `` /* 129-byte string literal not displayed */
// list objects by project; if projectid=-1 lists All VMs
ProjectId *int64 `protobuf:"varint,12,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,13,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,14,opt,name=list_all,json=listAll" json:"list_all,omitempty"`
// list only resources belonging to the domain specified
DomainId *int64 `protobuf:"varint,15,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,16,opt,name=recursive" json:"recursive,omitempty"`
// List by keyword
Keyword *string `protobuf:"bytes,17,opt,name=keyword" json:"keyword,omitempty"`
Page *int32 `protobuf:"varint,18,opt,name=page" json:"page,omitempty"`
PageSize *int32 `protobuf:"varint,19,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
ResponseType *string `protobuf:"bytes,20,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
ListSnapshotsRequest represents the parameters for lists all available snapshots for the account.
func (*ListSnapshotsRequest) Descriptor
deprecated
func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsRequest.ProtoReflect.Descriptor instead.
func (*ListSnapshotsRequest) GetAccountName ¶
func (x *ListSnapshotsRequest) GetAccountName() string
func (*ListSnapshotsRequest) GetDomainId ¶
func (x *ListSnapshotsRequest) GetDomainId() int64
func (*ListSnapshotsRequest) GetId ¶
func (x *ListSnapshotsRequest) GetId() int64
func (*ListSnapshotsRequest) GetIds ¶
func (x *ListSnapshotsRequest) GetIds() []string
func (*ListSnapshotsRequest) GetIntervalType ¶
func (x *ListSnapshotsRequest) GetIntervalType() string
func (*ListSnapshotsRequest) GetKeyword ¶
func (x *ListSnapshotsRequest) GetKeyword() string
func (*ListSnapshotsRequest) GetListAll ¶
func (x *ListSnapshotsRequest) GetListAll() bool
func (*ListSnapshotsRequest) GetLocationType ¶
func (x *ListSnapshotsRequest) GetLocationType() string
func (*ListSnapshotsRequest) GetPage ¶
func (x *ListSnapshotsRequest) GetPage() int32
func (*ListSnapshotsRequest) GetPageSize ¶
func (x *ListSnapshotsRequest) GetPageSize() int32
func (*ListSnapshotsRequest) GetProjectId ¶
func (x *ListSnapshotsRequest) GetProjectId() int64
func (*ListSnapshotsRequest) GetRecursive ¶
func (x *ListSnapshotsRequest) GetRecursive() bool
func (*ListSnapshotsRequest) GetResponseType ¶
func (x *ListSnapshotsRequest) GetResponseType() string
func (*ListSnapshotsRequest) GetRunAsAdmin ¶
func (x *ListSnapshotsRequest) GetRunAsAdmin() bool
func (*ListSnapshotsRequest) GetShowUnique ¶
func (x *ListSnapshotsRequest) GetShowUnique() bool
func (*ListSnapshotsRequest) GetSnapshotName ¶
func (x *ListSnapshotsRequest) GetSnapshotName() string
func (*ListSnapshotsRequest) GetSnapshotType ¶
func (x *ListSnapshotsRequest) GetSnapshotType() string
func (*ListSnapshotsRequest) GetTags ¶
func (x *ListSnapshotsRequest) GetTags() map[string]string
func (*ListSnapshotsRequest) GetVolumeId ¶
func (x *ListSnapshotsRequest) GetVolumeId() int64
func (*ListSnapshotsRequest) GetZoneId ¶
func (x *ListSnapshotsRequest) GetZoneId() int64
func (*ListSnapshotsRequest) ProtoMessage ¶
func (*ListSnapshotsRequest) ProtoMessage()
func (*ListSnapshotsRequest) ProtoReflect ¶
func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
func (*ListSnapshotsRequest) Reset ¶
func (x *ListSnapshotsRequest) Reset()
func (*ListSnapshotsRequest) String ¶
func (x *ListSnapshotsRequest) String() string
type ListSnapshotsResponse ¶
type ListSnapshotsResponse struct {
// The list of Snapshots
Items []*Snapshot `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
// The total count of Snapshots
TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
ListSnapshotsResponse represents the response from lists all available snapshots for the account.
func (*ListSnapshotsResponse) Descriptor
deprecated
func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsResponse.ProtoReflect.Descriptor instead.
func (*ListSnapshotsResponse) GetItems ¶
func (x *ListSnapshotsResponse) GetItems() []*Snapshot
func (*ListSnapshotsResponse) GetTotalCount ¶
func (x *ListSnapshotsResponse) GetTotalCount() int32
func (*ListSnapshotsResponse) ProtoMessage ¶
func (*ListSnapshotsResponse) ProtoMessage()
func (*ListSnapshotsResponse) ProtoReflect ¶
func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message
func (*ListSnapshotsResponse) Reset ¶
func (x *ListSnapshotsResponse) Reset()
func (*ListSnapshotsResponse) String ¶
func (x *ListSnapshotsResponse) 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 RevertSnapshotRequest ¶
type RevertSnapshotRequest struct {
// The ID of the 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
}
RevertSnapshotRequest represents the parameters for this is supposed to revert a volume snapshot. this command is only supported with kvm so far
func (*RevertSnapshotRequest) Descriptor
deprecated
func (*RevertSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevertSnapshotRequest.ProtoReflect.Descriptor instead.
func (*RevertSnapshotRequest) GetId ¶
func (x *RevertSnapshotRequest) GetId() int64
func (*RevertSnapshotRequest) GetInjectedJobId ¶
func (x *RevertSnapshotRequest) GetInjectedJobId() string
func (*RevertSnapshotRequest) GetResponseType ¶
func (x *RevertSnapshotRequest) GetResponseType() string
func (*RevertSnapshotRequest) GetStartEventId ¶
func (x *RevertSnapshotRequest) GetStartEventId() int64
func (*RevertSnapshotRequest) ProtoMessage ¶
func (*RevertSnapshotRequest) ProtoMessage()
func (*RevertSnapshotRequest) ProtoReflect ¶
func (x *RevertSnapshotRequest) ProtoReflect() protoreflect.Message
func (*RevertSnapshotRequest) Reset ¶
func (x *RevertSnapshotRequest) Reset()
func (*RevertSnapshotRequest) String ¶
func (x *RevertSnapshotRequest) String() string
type RevertSnapshotResponse ¶
type RevertSnapshotResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
RevertSnapshotResponse represents the response from this is supposed to revert a volume snapshot. this command is only supported with kvm so far
func (*RevertSnapshotResponse) Descriptor
deprecated
func (*RevertSnapshotResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevertSnapshotResponse.ProtoReflect.Descriptor instead.
func (*RevertSnapshotResponse) GetResult ¶
func (x *RevertSnapshotResponse) GetResult() *Result
func (*RevertSnapshotResponse) ProtoMessage ¶
func (*RevertSnapshotResponse) ProtoMessage()
func (*RevertSnapshotResponse) ProtoReflect ¶
func (x *RevertSnapshotResponse) ProtoReflect() protoreflect.Message
func (*RevertSnapshotResponse) Reset ¶
func (x *RevertSnapshotResponse) Reset()
func (*RevertSnapshotResponse) String ¶
func (x *RevertSnapshotResponse) String() string
type Snapshot ¶
type Snapshot struct {
// The ID of the Snapshot
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
// The name of the Snapshot
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// The display name of the Snapshot
DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// The description of the Snapshot
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
}
Snapshot represents a Snapshot Item
func (*Snapshot) Descriptor
deprecated
func (*Snapshot) GetCreated ¶
func (*Snapshot) GetDescription ¶
func (*Snapshot) GetDisplayName ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message
type SnapshotPolicy ¶
type SnapshotPolicy struct {
// The ID of the SnapshotPolicy
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
// The name of the SnapshotPolicy
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// The display name of the SnapshotPolicy
DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
// The description of the SnapshotPolicy
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
}
SnapshotPolicy represents a SnapshotPolicy Item
func (*SnapshotPolicy) Descriptor
deprecated
func (*SnapshotPolicy) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotPolicy.ProtoReflect.Descriptor instead.
func (*SnapshotPolicy) GetCreated ¶
func (x *SnapshotPolicy) GetCreated() string
func (*SnapshotPolicy) GetDescription ¶
func (x *SnapshotPolicy) GetDescription() string
func (*SnapshotPolicy) GetDisplayName ¶
func (x *SnapshotPolicy) GetDisplayName() string
func (*SnapshotPolicy) GetId ¶
func (x *SnapshotPolicy) GetId() string
func (*SnapshotPolicy) GetName ¶
func (x *SnapshotPolicy) GetName() string
func (*SnapshotPolicy) ProtoMessage ¶
func (*SnapshotPolicy) ProtoMessage()
func (*SnapshotPolicy) ProtoReflect ¶
func (x *SnapshotPolicy) ProtoReflect() protoreflect.Message
func (*SnapshotPolicy) Reset ¶
func (x *SnapshotPolicy) Reset()
func (*SnapshotPolicy) String ¶
func (x *SnapshotPolicy) String() string
type SnapshotServiceClient ¶
type SnapshotServiceClient interface {
// ArchiveSnapshot Archives (moves) a snapshot on primary storage to secondary storage
ArchiveSnapshot(ctx context.Context, in *ArchiveSnapshotRequest, opts ...grpc.CallOption) (*ArchiveSnapshotResponse, error)
// CopySnapshot Copies a snapshot from one zone to another.
CopySnapshot(ctx context.Context, in *CopySnapshotRequest, opts ...grpc.CallOption) (*CopySnapshotResponse, error)
// CreateSnapshot Creates an instant snapshot of a volume.
CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotResponse, error)
// CreateSnapshotFromVMSnapshot Creates an instant snapshot of a volume from existing vm snapshot.
CreateSnapshotFromVMSnapshot(ctx context.Context, in *CreateSnapshotFromVMSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotFromVMSnapshotResponse, error)
// CreateSnapshotPolicy Creates a snapshot policy for the account.
CreateSnapshotPolicy(ctx context.Context, in *CreateSnapshotPolicyRequest, opts ...grpc.CallOption) (*CreateSnapshotPolicyResponse, error)
// DeleteSnapshot Deletes a snapshot of a disk volume.
DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*DeleteSnapshotResponse, error)
// DeleteSnapshotPolicies Deletes snapshot policies for the account.
DeleteSnapshotPolicies(ctx context.Context, in *DeleteSnapshotPoliciesRequest, opts ...grpc.CallOption) (*DeleteSnapshotPoliciesResponse, error)
// ExtractSnapshot Returns a download URL for extracting a snapshot. It must be in the Backed Up state.
ExtractSnapshot(ctx context.Context, in *ExtractSnapshotRequest, opts ...grpc.CallOption) (*ExtractSnapshotResponse, error)
// ListSnapshotPolicies Lists snapshot policies.
ListSnapshotPolicies(ctx context.Context, in *ListSnapshotPoliciesRequest, opts ...grpc.CallOption) (*ListSnapshotPoliciesResponse, error)
// ListSnapshots Lists all available snapshots for the account.
ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ListSnapshotsResponse, error)
// ListSnapshotsCmdByAdmin Lists all available snapshots for the account.
ListSnapshotsCmdByAdmin(ctx context.Context, in *ListSnapshotsCmdByAdminRequest, opts ...grpc.CallOption) (*ListSnapshotsCmdByAdminResponse, error)
// RevertSnapshot This is supposed to revert a volume snapshot. This command is only supported with KVM so far
RevertSnapshot(ctx context.Context, in *RevertSnapshotRequest, opts ...grpc.CallOption) (*RevertSnapshotResponse, error)
// UpdateSnapshotPolicy Updates the snapshot policy.
UpdateSnapshotPolicy(ctx context.Context, in *UpdateSnapshotPolicyRequest, opts ...grpc.CallOption) (*UpdateSnapshotPolicyResponse, error)
}
SnapshotServiceClient is the client API for SnapshotService 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.
SnapshotService provides operations for managing Snapshots
func NewSnapshotServiceClient ¶
func NewSnapshotServiceClient(cc grpc.ClientConnInterface) SnapshotServiceClient
type SnapshotServiceServer ¶
type SnapshotServiceServer interface {
// ArchiveSnapshot Archives (moves) a snapshot on primary storage to secondary storage
ArchiveSnapshot(context.Context, *ArchiveSnapshotRequest) (*ArchiveSnapshotResponse, error)
// CopySnapshot Copies a snapshot from one zone to another.
CopySnapshot(context.Context, *CopySnapshotRequest) (*CopySnapshotResponse, error)
// CreateSnapshot Creates an instant snapshot of a volume.
CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
// CreateSnapshotFromVMSnapshot Creates an instant snapshot of a volume from existing vm snapshot.
CreateSnapshotFromVMSnapshot(context.Context, *CreateSnapshotFromVMSnapshotRequest) (*CreateSnapshotFromVMSnapshotResponse, error)
// CreateSnapshotPolicy Creates a snapshot policy for the account.
CreateSnapshotPolicy(context.Context, *CreateSnapshotPolicyRequest) (*CreateSnapshotPolicyResponse, error)
// DeleteSnapshot Deletes a snapshot of a disk volume.
DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*DeleteSnapshotResponse, error)
// DeleteSnapshotPolicies Deletes snapshot policies for the account.
DeleteSnapshotPolicies(context.Context, *DeleteSnapshotPoliciesRequest) (*DeleteSnapshotPoliciesResponse, error)
// ExtractSnapshot Returns a download URL for extracting a snapshot. It must be in the Backed Up state.
ExtractSnapshot(context.Context, *ExtractSnapshotRequest) (*ExtractSnapshotResponse, error)
// ListSnapshotPolicies Lists snapshot policies.
ListSnapshotPolicies(context.Context, *ListSnapshotPoliciesRequest) (*ListSnapshotPoliciesResponse, error)
// ListSnapshots Lists all available snapshots for the account.
ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
// ListSnapshotsCmdByAdmin Lists all available snapshots for the account.
ListSnapshotsCmdByAdmin(context.Context, *ListSnapshotsCmdByAdminRequest) (*ListSnapshotsCmdByAdminResponse, error)
// RevertSnapshot This is supposed to revert a volume snapshot. This command is only supported with KVM so far
RevertSnapshot(context.Context, *RevertSnapshotRequest) (*RevertSnapshotResponse, error)
// UpdateSnapshotPolicy Updates the snapshot policy.
UpdateSnapshotPolicy(context.Context, *UpdateSnapshotPolicyRequest) (*UpdateSnapshotPolicyResponse, error)
// contains filtered or unexported methods
}
SnapshotServiceServer is the server API for SnapshotService service. All implementations must embed UnimplementedSnapshotServiceServer for forward compatibility.
SnapshotService provides operations for managing Snapshots
type SnapshotType ¶
type SnapshotType int32
SnapshotType represents the possible values for valid values are MANUAL or RECURRING.
const ( // Default unspecified value SnapshotType_SNAPSHOT_TYPE_UNSPECIFIED SnapshotType = 0 // MANUAL value SnapshotType_SNAPSHOT_TYPE_MANUAL SnapshotType = 1 // RECURRING value SnapshotType_SNAPSHOT_TYPE_RECURRING SnapshotType = 2 )
func (SnapshotType) Descriptor ¶
func (SnapshotType) Descriptor() protoreflect.EnumDescriptor
func (SnapshotType) Enum ¶
func (x SnapshotType) Enum() *SnapshotType
func (SnapshotType) EnumDescriptor
deprecated
func (SnapshotType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SnapshotType.Descriptor instead.
func (SnapshotType) Number ¶
func (x SnapshotType) Number() protoreflect.EnumNumber
func (SnapshotType) String ¶
func (x SnapshotType) String() string
func (SnapshotType) Type ¶
func (SnapshotType) Type() protoreflect.EnumType
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 UnimplementedSnapshotServiceServer ¶
type UnimplementedSnapshotServiceServer struct{}
UnimplementedSnapshotServiceServer 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 (UnimplementedSnapshotServiceServer) ArchiveSnapshot ¶
func (UnimplementedSnapshotServiceServer) ArchiveSnapshot(context.Context, *ArchiveSnapshotRequest) (*ArchiveSnapshotResponse, error)
func (UnimplementedSnapshotServiceServer) CopySnapshot ¶
func (UnimplementedSnapshotServiceServer) CopySnapshot(context.Context, *CopySnapshotRequest) (*CopySnapshotResponse, error)
func (UnimplementedSnapshotServiceServer) CreateSnapshot ¶
func (UnimplementedSnapshotServiceServer) CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
func (UnimplementedSnapshotServiceServer) CreateSnapshotFromVMSnapshot ¶
func (UnimplementedSnapshotServiceServer) CreateSnapshotFromVMSnapshot(context.Context, *CreateSnapshotFromVMSnapshotRequest) (*CreateSnapshotFromVMSnapshotResponse, error)
func (UnimplementedSnapshotServiceServer) CreateSnapshotPolicy ¶
func (UnimplementedSnapshotServiceServer) CreateSnapshotPolicy(context.Context, *CreateSnapshotPolicyRequest) (*CreateSnapshotPolicyResponse, error)
func (UnimplementedSnapshotServiceServer) DeleteSnapshot ¶
func (UnimplementedSnapshotServiceServer) DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*DeleteSnapshotResponse, error)
func (UnimplementedSnapshotServiceServer) DeleteSnapshotPolicies ¶
func (UnimplementedSnapshotServiceServer) DeleteSnapshotPolicies(context.Context, *DeleteSnapshotPoliciesRequest) (*DeleteSnapshotPoliciesResponse, error)
func (UnimplementedSnapshotServiceServer) ExtractSnapshot ¶
func (UnimplementedSnapshotServiceServer) ExtractSnapshot(context.Context, *ExtractSnapshotRequest) (*ExtractSnapshotResponse, error)
func (UnimplementedSnapshotServiceServer) ListSnapshotPolicies ¶
func (UnimplementedSnapshotServiceServer) ListSnapshotPolicies(context.Context, *ListSnapshotPoliciesRequest) (*ListSnapshotPoliciesResponse, error)
func (UnimplementedSnapshotServiceServer) ListSnapshots ¶
func (UnimplementedSnapshotServiceServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ListSnapshotsResponse, error)
func (UnimplementedSnapshotServiceServer) ListSnapshotsCmdByAdmin ¶
func (UnimplementedSnapshotServiceServer) ListSnapshotsCmdByAdmin(context.Context, *ListSnapshotsCmdByAdminRequest) (*ListSnapshotsCmdByAdminResponse, error)
func (UnimplementedSnapshotServiceServer) RevertSnapshot ¶
func (UnimplementedSnapshotServiceServer) RevertSnapshot(context.Context, *RevertSnapshotRequest) (*RevertSnapshotResponse, error)
func (UnimplementedSnapshotServiceServer) UpdateSnapshotPolicy ¶
func (UnimplementedSnapshotServiceServer) UpdateSnapshotPolicy(context.Context, *UpdateSnapshotPolicyRequest) (*UpdateSnapshotPolicyResponse, error)
type UnsafeSnapshotServiceServer ¶
type UnsafeSnapshotServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSnapshotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SnapshotServiceServer will result in compilation errors.
type UpdateSnapshotPolicyRequest ¶
type UpdateSnapshotPolicyRequest struct {
// the ID of the snapshot policy
Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// an optional field, whether to the display the snapshot policy to the end user or not.
Display *bool `protobuf:"varint,2,opt,name=display" json:"display,omitempty"`
// an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only
CustomId *string `protobuf:"bytes,3,opt,name=custom_id,json=customId" json:"custom_id,omitempty"`
StartEventId *int64 `protobuf:"varint,4,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,5,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
UpdateSnapshotPolicyRequest represents the parameters for updates the snapshot policy.
func (*UpdateSnapshotPolicyRequest) Descriptor
deprecated
func (*UpdateSnapshotPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSnapshotPolicyRequest.ProtoReflect.Descriptor instead.
func (*UpdateSnapshotPolicyRequest) GetCustomId ¶
func (x *UpdateSnapshotPolicyRequest) GetCustomId() string
func (*UpdateSnapshotPolicyRequest) GetDisplay ¶
func (x *UpdateSnapshotPolicyRequest) GetDisplay() bool
func (*UpdateSnapshotPolicyRequest) GetId ¶
func (x *UpdateSnapshotPolicyRequest) GetId() int64
func (*UpdateSnapshotPolicyRequest) GetInjectedJobId ¶
func (x *UpdateSnapshotPolicyRequest) GetInjectedJobId() string
func (*UpdateSnapshotPolicyRequest) GetResponseType ¶
func (x *UpdateSnapshotPolicyRequest) GetResponseType() string
func (*UpdateSnapshotPolicyRequest) GetStartEventId ¶
func (x *UpdateSnapshotPolicyRequest) GetStartEventId() int64
func (*UpdateSnapshotPolicyRequest) ProtoMessage ¶
func (*UpdateSnapshotPolicyRequest) ProtoMessage()
func (*UpdateSnapshotPolicyRequest) ProtoReflect ¶
func (x *UpdateSnapshotPolicyRequest) ProtoReflect() protoreflect.Message
func (*UpdateSnapshotPolicyRequest) Reset ¶
func (x *UpdateSnapshotPolicyRequest) Reset()
func (*UpdateSnapshotPolicyRequest) String ¶
func (x *UpdateSnapshotPolicyRequest) String() string
type UpdateSnapshotPolicyResponse ¶
type UpdateSnapshotPolicyResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
UpdateSnapshotPolicyResponse represents the response from updates the snapshot policy.
func (*UpdateSnapshotPolicyResponse) Descriptor
deprecated
func (*UpdateSnapshotPolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSnapshotPolicyResponse.ProtoReflect.Descriptor instead.
func (*UpdateSnapshotPolicyResponse) GetResult ¶
func (x *UpdateSnapshotPolicyResponse) GetResult() *Result
func (*UpdateSnapshotPolicyResponse) ProtoMessage ¶
func (*UpdateSnapshotPolicyResponse) ProtoMessage()
func (*UpdateSnapshotPolicyResponse) ProtoReflect ¶
func (x *UpdateSnapshotPolicyResponse) ProtoReflect() protoreflect.Message
func (*UpdateSnapshotPolicyResponse) Reset ¶
func (x *UpdateSnapshotPolicyResponse) Reset()
func (*UpdateSnapshotPolicyResponse) String ¶
func (x *UpdateSnapshotPolicyResponse) String() string