repositoryv1

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

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

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

Documentation

Index

Constants

View Source
const (
	RepositoryService_AddBackupRepository_FullMethodName    = "/cloudstack.management.backup.repository.v1.RepositoryService/AddBackupRepository"
	RepositoryService_DeleteBackupRepository_FullMethodName = "/cloudstack.management.backup.repository.v1.RepositoryService/DeleteBackupRepository"
	RepositoryService_ListBackupRepositories_FullMethodName = "/cloudstack.management.backup.repository.v1.RepositoryService/ListBackupRepositories"
)

Variables

View Source
var File_cloudstack_management_backup_repository_v1_repository_gen_proto protoreflect.FileDescriptor
View Source
var RepositoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.backup.repository.v1.RepositoryService",
	HandlerType: (*RepositoryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddBackupRepository",
			Handler:    _RepositoryService_AddBackupRepository_Handler,
		},
		{
			MethodName: "DeleteBackupRepository",
			Handler:    _RepositoryService_DeleteBackupRepository_Handler,
		},
		{
			MethodName: "ListBackupRepositories",
			Handler:    _RepositoryService_ListBackupRepositories_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/backup/repository/v1/repository.gen.proto",
}

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

Functions

func RegisterRepositoryServiceServer

func RegisterRepositoryServiceServer(s grpc.ServiceRegistrar, srv RepositoryServiceServer)

Types

type AddBackupRepositoryRequest

type AddBackupRepositoryRequest struct {

	// name of the backup repository
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// address of the backup repository
	Address *string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	// type of the backup repository storage. Supported values: nfs, cephfs, cifs
	Type *string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	// backup repository provider
	Provider *string `protobuf:"bytes,4,opt,name=provider" json:"provider,omitempty"`
	// shared storage mount options
	MountOptions_ *string `protobuf:"bytes,5,opt,name=mount_options_,json=mountOptions" json:"mount_options_,omitempty"`
	// ID of the zone where the backup repository is to be added
	ZoneId *int64 `protobuf:"varint,6,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// capacity of this backup repository
	CapacityBytes *int64  `protobuf:"varint,7,opt,name=capacity_bytes,json=capacityBytes" json:"capacity_bytes,omitempty"`
	ResponseType  *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

AddBackupRepositoryRequest represents the parameters for adds a backup repository to store nas backups

func (*AddBackupRepositoryRequest) Descriptor deprecated

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

Deprecated: Use AddBackupRepositoryRequest.ProtoReflect.Descriptor instead.

func (*AddBackupRepositoryRequest) GetAddress

func (x *AddBackupRepositoryRequest) GetAddress() string

func (*AddBackupRepositoryRequest) GetCapacityBytes

func (x *AddBackupRepositoryRequest) GetCapacityBytes() int64

func (*AddBackupRepositoryRequest) GetMountOptions_

func (x *AddBackupRepositoryRequest) GetMountOptions_() string

func (*AddBackupRepositoryRequest) GetName

func (x *AddBackupRepositoryRequest) GetName() string

func (*AddBackupRepositoryRequest) GetProvider

func (x *AddBackupRepositoryRequest) GetProvider() string

func (*AddBackupRepositoryRequest) GetResponseType

func (x *AddBackupRepositoryRequest) GetResponseType() string

func (*AddBackupRepositoryRequest) GetType

func (x *AddBackupRepositoryRequest) GetType() string

func (*AddBackupRepositoryRequest) GetZoneId

func (x *AddBackupRepositoryRequest) GetZoneId() int64

func (*AddBackupRepositoryRequest) ProtoMessage

func (*AddBackupRepositoryRequest) ProtoMessage()

func (*AddBackupRepositoryRequest) ProtoReflect

func (*AddBackupRepositoryRequest) Reset

func (x *AddBackupRepositoryRequest) Reset()

func (*AddBackupRepositoryRequest) String

func (x *AddBackupRepositoryRequest) String() string

type AddBackupRepositoryResponse

type AddBackupRepositoryResponse struct {

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

AddBackupRepositoryResponse represents the response from adds a backup repository to store nas backups

func (*AddBackupRepositoryResponse) Descriptor deprecated

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

Deprecated: Use AddBackupRepositoryResponse.ProtoReflect.Descriptor instead.

func (*AddBackupRepositoryResponse) GetResult

func (x *AddBackupRepositoryResponse) GetResult() *Result

func (*AddBackupRepositoryResponse) ProtoMessage

func (*AddBackupRepositoryResponse) ProtoMessage()

func (*AddBackupRepositoryResponse) ProtoReflect

func (*AddBackupRepositoryResponse) Reset

func (x *AddBackupRepositoryResponse) Reset()

func (*AddBackupRepositoryResponse) String

func (x *AddBackupRepositoryResponse) String() string

type BackupRepository

type BackupRepository struct {

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

BackupRepository represents a BackupRepository Item

func (*BackupRepository) Descriptor deprecated

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

Deprecated: Use BackupRepository.ProtoReflect.Descriptor instead.

func (*BackupRepository) GetCreated

func (x *BackupRepository) GetCreated() string

func (*BackupRepository) GetDescription

func (x *BackupRepository) GetDescription() string

func (*BackupRepository) GetDisplayName

func (x *BackupRepository) GetDisplayName() string

func (*BackupRepository) GetId

func (x *BackupRepository) GetId() string

func (*BackupRepository) GetName

func (x *BackupRepository) GetName() string

func (*BackupRepository) ProtoMessage

func (*BackupRepository) ProtoMessage()

func (*BackupRepository) ProtoReflect

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

func (*BackupRepository) Reset

func (x *BackupRepository) Reset()

func (*BackupRepository) String

func (x *BackupRepository) String() string

type DeleteBackupRepositoryRequest

type DeleteBackupRepositoryRequest struct {

	// ID of the backup repository to be deleted
	Id           *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

DeleteBackupRepositoryRequest represents the parameters for delete a backup repository

func (*DeleteBackupRepositoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteBackupRepositoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteBackupRepositoryRequest) GetId

func (*DeleteBackupRepositoryRequest) GetResponseType

func (x *DeleteBackupRepositoryRequest) GetResponseType() string

func (*DeleteBackupRepositoryRequest) ProtoMessage

func (*DeleteBackupRepositoryRequest) ProtoMessage()

func (*DeleteBackupRepositoryRequest) ProtoReflect

func (*DeleteBackupRepositoryRequest) Reset

func (x *DeleteBackupRepositoryRequest) Reset()

func (*DeleteBackupRepositoryRequest) String

type DeleteBackupRepositoryResponse

type DeleteBackupRepositoryResponse struct {

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

DeleteBackupRepositoryResponse represents the response from delete a backup repository

func (*DeleteBackupRepositoryResponse) Descriptor deprecated

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

Deprecated: Use DeleteBackupRepositoryResponse.ProtoReflect.Descriptor instead.

func (*DeleteBackupRepositoryResponse) GetResult

func (x *DeleteBackupRepositoryResponse) GetResult() *Result

func (*DeleteBackupRepositoryResponse) ProtoMessage

func (*DeleteBackupRepositoryResponse) ProtoMessage()

func (*DeleteBackupRepositoryResponse) ProtoReflect

func (*DeleteBackupRepositoryResponse) Reset

func (x *DeleteBackupRepositoryResponse) Reset()

func (*DeleteBackupRepositoryResponse) String

type ListBackupRepositoriesRequest

type ListBackupRepositoriesRequest struct {

	// name of the backup repository
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// ID of the zone where the backup repository is to be added
	ZoneId *int64 `protobuf:"varint,2,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// the backup repository provider
	Provider *string `protobuf:"bytes,3,opt,name=provider" json:"provider,omitempty"`
	// ID of the backup repository
	Id *int64 `protobuf:"varint,4,opt,name=id" json:"id,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,5,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,6,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,7,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListBackupRepositoriesRequest represents the parameters for lists all backup repositories

func (*ListBackupRepositoriesRequest) Descriptor deprecated

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

Deprecated: Use ListBackupRepositoriesRequest.ProtoReflect.Descriptor instead.

func (*ListBackupRepositoriesRequest) GetId

func (*ListBackupRepositoriesRequest) GetKeyword

func (x *ListBackupRepositoriesRequest) GetKeyword() string

func (*ListBackupRepositoriesRequest) GetName

func (*ListBackupRepositoriesRequest) GetPage

func (x *ListBackupRepositoriesRequest) GetPage() int32

func (*ListBackupRepositoriesRequest) GetPageSize

func (x *ListBackupRepositoriesRequest) GetPageSize() int32

func (*ListBackupRepositoriesRequest) GetProvider

func (x *ListBackupRepositoriesRequest) GetProvider() string

func (*ListBackupRepositoriesRequest) GetResponseType

func (x *ListBackupRepositoriesRequest) GetResponseType() string

func (*ListBackupRepositoriesRequest) GetZoneId

func (x *ListBackupRepositoriesRequest) GetZoneId() int64

func (*ListBackupRepositoriesRequest) ProtoMessage

func (*ListBackupRepositoriesRequest) ProtoMessage()

func (*ListBackupRepositoriesRequest) ProtoReflect

func (*ListBackupRepositoriesRequest) Reset

func (x *ListBackupRepositoriesRequest) Reset()

func (*ListBackupRepositoriesRequest) String

type ListBackupRepositoriesResponse

type ListBackupRepositoriesResponse struct {

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

ListBackupRepositoriesResponse represents the response from lists all backup repositories

func (*ListBackupRepositoriesResponse) Descriptor deprecated

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

Deprecated: Use ListBackupRepositoriesResponse.ProtoReflect.Descriptor instead.

func (*ListBackupRepositoriesResponse) GetItems

func (*ListBackupRepositoriesResponse) GetTotalCount

func (x *ListBackupRepositoriesResponse) GetTotalCount() int32

func (*ListBackupRepositoriesResponse) ProtoMessage

func (*ListBackupRepositoriesResponse) ProtoMessage()

func (*ListBackupRepositoriesResponse) ProtoReflect

func (*ListBackupRepositoriesResponse) Reset

func (x *ListBackupRepositoriesResponse) Reset()

func (*ListBackupRepositoriesResponse) String

type RepositoryServiceClient

type RepositoryServiceClient interface {
	// AddBackupRepository Adds a backup repository to store NAS backups
	AddBackupRepository(ctx context.Context, in *AddBackupRepositoryRequest, opts ...grpc.CallOption) (*AddBackupRepositoryResponse, error)
	// DeleteBackupRepository delete a backup repository
	DeleteBackupRepository(ctx context.Context, in *DeleteBackupRepositoryRequest, opts ...grpc.CallOption) (*DeleteBackupRepositoryResponse, error)
	// ListBackupRepositories Lists all backup repositories
	ListBackupRepositories(ctx context.Context, in *ListBackupRepositoriesRequest, opts ...grpc.CallOption) (*ListBackupRepositoriesResponse, error)
}

RepositoryServiceClient is the client API for RepositoryService 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.

RepositoryService provides operations for managing Backup.Repositorys

type RepositoryServiceServer

type RepositoryServiceServer interface {
	// AddBackupRepository Adds a backup repository to store NAS backups
	AddBackupRepository(context.Context, *AddBackupRepositoryRequest) (*AddBackupRepositoryResponse, error)
	// DeleteBackupRepository delete a backup repository
	DeleteBackupRepository(context.Context, *DeleteBackupRepositoryRequest) (*DeleteBackupRepositoryResponse, error)
	// ListBackupRepositories Lists all backup repositories
	ListBackupRepositories(context.Context, *ListBackupRepositoriesRequest) (*ListBackupRepositoriesResponse, error)
	// contains filtered or unexported methods
}

RepositoryServiceServer is the server API for RepositoryService service. All implementations must embed UnimplementedRepositoryServiceServer for forward compatibility.

RepositoryService provides operations for managing Backup.Repositorys

type Result

type Result struct {

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

Result represents a generic operation result

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetDisplayText

func (x *Result) GetDisplayText() string

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) GetJobId

func (x *Result) GetJobId() string

func (*Result) GetJobStatus

func (x *Result) GetJobStatus() string

func (*Result) GetSuccess

func (x *Result) GetSuccess() bool

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Success

type Success struct {

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

Success represents a Success Operation Response

func (*Success) Descriptor deprecated

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

Deprecated: Use Success.ProtoReflect.Descriptor instead.

func (*Success) GetDisplayText

func (x *Success) GetDisplayText() string

func (*Success) GetSuccess

func (x *Success) GetSuccess() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) ProtoReflect

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

func (*Success) Reset

func (x *Success) Reset()

func (*Success) String

func (x *Success) String() string

type UnimplementedRepositoryServiceServer

type UnimplementedRepositoryServiceServer struct{}

UnimplementedRepositoryServiceServer 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 (UnimplementedRepositoryServiceServer) AddBackupRepository

type UnsafeRepositoryServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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