swiftv1

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 (
	SwiftService_AddSwift_FullMethodName   = "/cloudstack.management.swift.v1.SwiftService/AddSwift"
	SwiftService_ListSwifts_FullMethodName = "/cloudstack.management.swift.v1.SwiftService/ListSwifts"
)

Variables

View Source
var File_cloudstack_management_swift_v1_swift_gen_proto protoreflect.FileDescriptor
View Source
var SwiftService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.swift.v1.SwiftService",
	HandlerType: (*SwiftServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddSwift",
			Handler:    _SwiftService_AddSwift_Handler,
		},
		{
			MethodName: "ListSwifts",
			Handler:    _SwiftService_ListSwifts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/swift/v1/swift.gen.proto",
}

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

Functions

func RegisterSwiftServiceServer

func RegisterSwiftServiceServer(s grpc.ServiceRegistrar, srv SwiftServiceServer)

Types

type AddSwiftRequest

type AddSwiftRequest struct {

	// the URL for swift
	Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	// the account for swift
	Account *string `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"`
	// the username for swift
	Username *string `protobuf:"bytes,3,opt,name=username" json:"username,omitempty"`
	// key for the user for swift
	Key          *string `protobuf:"bytes,4,opt,name=key" json:"key,omitempty"`
	ResponseType *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

AddSwiftRequest represents the parameters for adds swift.

func (*AddSwiftRequest) Descriptor deprecated

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

Deprecated: Use AddSwiftRequest.ProtoReflect.Descriptor instead.

func (*AddSwiftRequest) GetAccount

func (x *AddSwiftRequest) GetAccount() string

func (*AddSwiftRequest) GetKey

func (x *AddSwiftRequest) GetKey() string

func (*AddSwiftRequest) GetResponseType

func (x *AddSwiftRequest) GetResponseType() string

func (*AddSwiftRequest) GetUrl

func (x *AddSwiftRequest) GetUrl() string

func (*AddSwiftRequest) GetUsername

func (x *AddSwiftRequest) GetUsername() string

func (*AddSwiftRequest) ProtoMessage

func (*AddSwiftRequest) ProtoMessage()

func (*AddSwiftRequest) ProtoReflect

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

func (*AddSwiftRequest) Reset

func (x *AddSwiftRequest) Reset()

func (*AddSwiftRequest) String

func (x *AddSwiftRequest) String() string

type AddSwiftResponse

type AddSwiftResponse struct {

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

AddSwiftResponse represents the response from adds swift.

func (*AddSwiftResponse) Descriptor deprecated

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

Deprecated: Use AddSwiftResponse.ProtoReflect.Descriptor instead.

func (*AddSwiftResponse) GetResult

func (x *AddSwiftResponse) GetResult() *Result

func (*AddSwiftResponse) ProtoMessage

func (*AddSwiftResponse) ProtoMessage()

func (*AddSwiftResponse) ProtoReflect

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

func (*AddSwiftResponse) Reset

func (x *AddSwiftResponse) Reset()

func (*AddSwiftResponse) String

func (x *AddSwiftResponse) String() string

type ImageStore

type ImageStore struct {

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

ImageStore represents a ImageStore Item

func (*ImageStore) Descriptor deprecated

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

Deprecated: Use ImageStore.ProtoReflect.Descriptor instead.

func (*ImageStore) GetCreated

func (x *ImageStore) GetCreated() string

func (*ImageStore) GetDescription

func (x *ImageStore) GetDescription() string

func (*ImageStore) GetDisplayName

func (x *ImageStore) GetDisplayName() string

func (*ImageStore) GetId

func (x *ImageStore) GetId() string

func (*ImageStore) GetName

func (x *ImageStore) GetName() string

func (*ImageStore) ProtoMessage

func (*ImageStore) ProtoMessage()

func (*ImageStore) ProtoReflect

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

func (*ImageStore) Reset

func (x *ImageStore) Reset()

func (*ImageStore) String

func (x *ImageStore) String() string

type ListSwiftsRequest

type ListSwiftsRequest struct {

	// the id of the swift
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,2,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,3,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,4,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListSwiftsRequest represents the parameters for list swift.

func (*ListSwiftsRequest) Descriptor deprecated

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

Deprecated: Use ListSwiftsRequest.ProtoReflect.Descriptor instead.

func (*ListSwiftsRequest) GetId

func (x *ListSwiftsRequest) GetId() int64

func (*ListSwiftsRequest) GetKeyword

func (x *ListSwiftsRequest) GetKeyword() string

func (*ListSwiftsRequest) GetPage

func (x *ListSwiftsRequest) GetPage() int32

func (*ListSwiftsRequest) GetPageSize

func (x *ListSwiftsRequest) GetPageSize() int32

func (*ListSwiftsRequest) GetResponseType

func (x *ListSwiftsRequest) GetResponseType() string

func (*ListSwiftsRequest) ProtoMessage

func (*ListSwiftsRequest) ProtoMessage()

func (*ListSwiftsRequest) ProtoReflect

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

func (*ListSwiftsRequest) Reset

func (x *ListSwiftsRequest) Reset()

func (*ListSwiftsRequest) String

func (x *ListSwiftsRequest) String() string

type ListSwiftsResponse

type ListSwiftsResponse struct {

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

ListSwiftsResponse represents the response from list swift.

func (*ListSwiftsResponse) Descriptor deprecated

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

Deprecated: Use ListSwiftsResponse.ProtoReflect.Descriptor instead.

func (*ListSwiftsResponse) GetItems

func (x *ListSwiftsResponse) GetItems() []*ImageStore

func (*ListSwiftsResponse) GetTotalCount

func (x *ListSwiftsResponse) GetTotalCount() int32

func (*ListSwiftsResponse) ProtoMessage

func (*ListSwiftsResponse) ProtoMessage()

func (*ListSwiftsResponse) ProtoReflect

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

func (*ListSwiftsResponse) Reset

func (x *ListSwiftsResponse) Reset()

func (*ListSwiftsResponse) String

func (x *ListSwiftsResponse) String() string

type Result

type Result struct {

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

Result represents a generic operation result

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetDisplayText

func (x *Result) GetDisplayText() string

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) GetJobId

func (x *Result) GetJobId() string

func (*Result) GetJobStatus

func (x *Result) GetJobStatus() string

func (*Result) GetSuccess

func (x *Result) GetSuccess() bool

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Success

type Success struct {

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

Success represents a Success Operation Response

func (*Success) Descriptor deprecated

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

Deprecated: Use Success.ProtoReflect.Descriptor instead.

func (*Success) GetDisplayText

func (x *Success) GetDisplayText() string

func (*Success) GetSuccess

func (x *Success) GetSuccess() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) ProtoReflect

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

func (*Success) Reset

func (x *Success) Reset()

func (*Success) String

func (x *Success) String() string

type SwiftServiceClient

type SwiftServiceClient interface {
	// AddSwift Adds Swift.
	AddSwift(ctx context.Context, in *AddSwiftRequest, opts ...grpc.CallOption) (*AddSwiftResponse, error)
	// ListSwifts List Swift.
	ListSwifts(ctx context.Context, in *ListSwiftsRequest, opts ...grpc.CallOption) (*ListSwiftsResponse, error)
}

SwiftServiceClient is the client API for SwiftService 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.

SwiftService provides operations for managing Swifts

type SwiftServiceServer

type SwiftServiceServer interface {
	// AddSwift Adds Swift.
	AddSwift(context.Context, *AddSwiftRequest) (*AddSwiftResponse, error)
	// ListSwifts List Swift.
	ListSwifts(context.Context, *ListSwiftsRequest) (*ListSwiftsResponse, error)
	// contains filtered or unexported methods
}

SwiftServiceServer is the server API for SwiftService service. All implementations must embed UnimplementedSwiftServiceServer for forward compatibility.

SwiftService provides operations for managing Swifts

type UnimplementedSwiftServiceServer

type UnimplementedSwiftServiceServer struct{}

UnimplementedSwiftServiceServer 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 (UnimplementedSwiftServiceServer) AddSwift

func (UnimplementedSwiftServiceServer) ListSwifts

type UnsafeSwiftServiceServer

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

UnsafeSwiftServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SwiftServiceServer 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