linkv1beta1

package
v0.0.0-...-d2cb316 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 29

Documentation

Index

Constants

View Source
const (
	LinkAPI_CreatePublicShare_FullMethodName     = "/cs3.sharing.link.v1beta1.LinkAPI/CreatePublicShare"
	LinkAPI_RemovePublicShare_FullMethodName     = "/cs3.sharing.link.v1beta1.LinkAPI/RemovePublicShare"
	LinkAPI_GetPublicShare_FullMethodName        = "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShare"
	LinkAPI_GetPublicShareByToken_FullMethodName = "/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShareByToken"
	LinkAPI_ListPublicShares_FullMethodName      = "/cs3.sharing.link.v1beta1.LinkAPI/ListPublicShares"
	LinkAPI_UpdatePublicShare_FullMethodName     = "/cs3.sharing.link.v1beta1.LinkAPI/UpdatePublicShare"
)

Variables

View Source
var (
	UpdatePublicShareRequest_Update_Type_name = map[int32]string{
		0: "TYPE_INVALID",
		1: "TYPE_PERMISSIONS",
		2: "TYPE_PASSWORD",
		3: "TYPE_EXPIRATION",
		4: "TYPE_DISPLAYNAME",
		5: "TYPE_DESCRIPTION",
		6: "TYPE_NOTIFYUPLOADS",
		7: "TYPE_NOTIFYUPLOADSEXTRARECIPIENTS",
	}
	UpdatePublicShareRequest_Update_Type_value = map[string]int32{
		"TYPE_INVALID":                      0,
		"TYPE_PERMISSIONS":                  1,
		"TYPE_PASSWORD":                     2,
		"TYPE_EXPIRATION":                   3,
		"TYPE_DISPLAYNAME":                  4,
		"TYPE_DESCRIPTION":                  5,
		"TYPE_NOTIFYUPLOADS":                6,
		"TYPE_NOTIFYUPLOADSEXTRARECIPIENTS": 7,
	}
)

Enum value maps for UpdatePublicShareRequest_Update_Type.

View Source
var (
	ListPublicSharesRequest_Filter_Type_name = map[int32]string{
		0: "TYPE_INVALID",
		1: "TYPE_RESOURCE_ID",
		2: "TYPE_OWNER",
		3: "TYPE_CREATOR",
	}
	ListPublicSharesRequest_Filter_Type_value = map[string]int32{
		"TYPE_INVALID":     0,
		"TYPE_RESOURCE_ID": 1,
		"TYPE_OWNER":       2,
		"TYPE_CREATOR":     3,
	}
)

Enum value maps for ListPublicSharesRequest_Filter_Type.

View Source
var File_cs3_sharing_link_v1beta1_link_api_proto protoreflect.FileDescriptor
View Source
var File_cs3_sharing_link_v1beta1_resources_proto protoreflect.FileDescriptor
View Source
var LinkAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cs3.sharing.link.v1beta1.LinkAPI",
	HandlerType: (*LinkAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePublicShare",
			Handler:    _LinkAPI_CreatePublicShare_Handler,
		},
		{
			MethodName: "RemovePublicShare",
			Handler:    _LinkAPI_RemovePublicShare_Handler,
		},
		{
			MethodName: "GetPublicShare",
			Handler:    _LinkAPI_GetPublicShare_Handler,
		},
		{
			MethodName: "GetPublicShareByToken",
			Handler:    _LinkAPI_GetPublicShareByToken_Handler,
		},
		{
			MethodName: "ListPublicShares",
			Handler:    _LinkAPI_ListPublicShares_Handler,
		},
		{
			MethodName: "UpdatePublicShare",
			Handler:    _LinkAPI_UpdatePublicShare_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cs3/sharing/link/v1beta1/link_api.proto",
}

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

Functions

func RegisterLinkAPIServer

func RegisterLinkAPIServer(s grpc.ServiceRegistrar, srv LinkAPIServer)

Types

type CreatePublicShareRequest

type CreatePublicShareRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The unique identifier for the shared storage resource.
	ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
	// REQUIRED.
	// The restrictions to apply to the share.
	Grant *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"`
	// OPTIONAL
	// The description to add to the share.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// OPTIONAL
	// Indicates a share used for internal usage,
	// not exposed by a ListPublicShares.
	Internal bool `protobuf:"varint,5,opt,name=internal,proto3" json:"internal,omitempty"`
	// OPTIONAL
	// Whether to notify the owner of a share when a file is uploaded to it.
	NotifyUploads bool `protobuf:"varint,6,opt,name=notify_uploads,json=notifyUploads,proto3" json:"notify_uploads,omitempty"`
	// OPTIONAL
	// Comma-separated list of extra email addresses to notify when a file is
	// uploaded to the share.
	NotifyUploadsExtraRecipients string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreatePublicShareRequest) Descriptor deprecated

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

Deprecated: Use CreatePublicShareRequest.ProtoReflect.Descriptor instead.

func (*CreatePublicShareRequest) GetDescription

func (x *CreatePublicShareRequest) GetDescription() string

func (*CreatePublicShareRequest) GetGrant

func (x *CreatePublicShareRequest) GetGrant() *Grant

func (*CreatePublicShareRequest) GetInternal

func (x *CreatePublicShareRequest) GetInternal() bool

func (*CreatePublicShareRequest) GetNotifyUploads

func (x *CreatePublicShareRequest) GetNotifyUploads() bool

func (*CreatePublicShareRequest) GetNotifyUploadsExtraRecipients

func (x *CreatePublicShareRequest) GetNotifyUploadsExtraRecipients() string

func (*CreatePublicShareRequest) GetOpaque

func (x *CreatePublicShareRequest) GetOpaque() *v1beta1.Opaque

func (*CreatePublicShareRequest) GetResourceInfo

func (x *CreatePublicShareRequest) GetResourceInfo() *v1beta11.ResourceInfo

func (*CreatePublicShareRequest) ProtoMessage

func (*CreatePublicShareRequest) ProtoMessage()

func (*CreatePublicShareRequest) ProtoReflect

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

func (*CreatePublicShareRequest) Reset

func (x *CreatePublicShareRequest) Reset()

func (*CreatePublicShareRequest) String

func (x *CreatePublicShareRequest) String() string

type CreatePublicShareResponse

type CreatePublicShareResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The created share.
	Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePublicShareResponse) Descriptor deprecated

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

Deprecated: Use CreatePublicShareResponse.ProtoReflect.Descriptor instead.

func (*CreatePublicShareResponse) GetOpaque

func (x *CreatePublicShareResponse) GetOpaque() *v1beta1.Opaque

func (*CreatePublicShareResponse) GetShare

func (x *CreatePublicShareResponse) GetShare() *PublicShare

func (*CreatePublicShareResponse) GetStatus

func (x *CreatePublicShareResponse) GetStatus() *v1beta12.Status

func (*CreatePublicShareResponse) ProtoMessage

func (*CreatePublicShareResponse) ProtoMessage()

func (*CreatePublicShareResponse) ProtoReflect

func (*CreatePublicShareResponse) Reset

func (x *CreatePublicShareResponse) Reset()

func (*CreatePublicShareResponse) String

func (x *CreatePublicShareResponse) String() string

type GetPublicShareByTokenRequest

type GetPublicShareByTokenRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The unlisted token to identify the public share.
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// OPTIONAL.
	// The public link can require authentication.
	Authentication *PublicShareAuthentication `protobuf:"bytes,3,opt,name=authentication,proto3" json:"authentication,omitempty"`
	// OPTIONAL.
	// If a signature should be included in the share.
	Sign bool `protobuf:"varint,4,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPublicShareByTokenRequest) Descriptor deprecated

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

Deprecated: Use GetPublicShareByTokenRequest.ProtoReflect.Descriptor instead.

func (*GetPublicShareByTokenRequest) GetAuthentication

func (*GetPublicShareByTokenRequest) GetOpaque

func (*GetPublicShareByTokenRequest) GetSign

func (x *GetPublicShareByTokenRequest) GetSign() bool

func (*GetPublicShareByTokenRequest) GetToken

func (x *GetPublicShareByTokenRequest) GetToken() string

func (*GetPublicShareByTokenRequest) ProtoMessage

func (*GetPublicShareByTokenRequest) ProtoMessage()

func (*GetPublicShareByTokenRequest) ProtoReflect

func (*GetPublicShareByTokenRequest) Reset

func (x *GetPublicShareByTokenRequest) Reset()

func (*GetPublicShareByTokenRequest) String

type GetPublicShareByTokenResponse

type GetPublicShareByTokenResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The share.
	Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"`
	// OPTIONAL.
	// The share password hash.
	//
	// Deprecated: Marked as deprecated in cs3/sharing/link/v1beta1/link_api.proto.
	PasswordHash string `protobuf:"bytes,4,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPublicShareByTokenResponse) Descriptor deprecated

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

Deprecated: Use GetPublicShareByTokenResponse.ProtoReflect.Descriptor instead.

func (*GetPublicShareByTokenResponse) GetOpaque

func (*GetPublicShareByTokenResponse) GetPasswordHash deprecated

func (x *GetPublicShareByTokenResponse) GetPasswordHash() string

Deprecated: Marked as deprecated in cs3/sharing/link/v1beta1/link_api.proto.

func (*GetPublicShareByTokenResponse) GetShare

func (*GetPublicShareByTokenResponse) GetStatus

func (*GetPublicShareByTokenResponse) ProtoMessage

func (*GetPublicShareByTokenResponse) ProtoMessage()

func (*GetPublicShareByTokenResponse) ProtoReflect

func (*GetPublicShareByTokenResponse) Reset

func (x *GetPublicShareByTokenResponse) Reset()

func (*GetPublicShareByTokenResponse) String

type GetPublicShareRequest

type GetPublicShareRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The reference to which the action should be performed.
	Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// OPTIONAL.
	// If a signature should be included in the share.
	Sign bool `protobuf:"varint,3,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPublicShareRequest) Descriptor deprecated

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

Deprecated: Use GetPublicShareRequest.ProtoReflect.Descriptor instead.

func (*GetPublicShareRequest) GetOpaque

func (x *GetPublicShareRequest) GetOpaque() *v1beta1.Opaque

func (*GetPublicShareRequest) GetRef

func (*GetPublicShareRequest) GetSign

func (x *GetPublicShareRequest) GetSign() bool

func (*GetPublicShareRequest) ProtoMessage

func (*GetPublicShareRequest) ProtoMessage()

func (*GetPublicShareRequest) ProtoReflect

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

func (*GetPublicShareRequest) Reset

func (x *GetPublicShareRequest) Reset()

func (*GetPublicShareRequest) String

func (x *GetPublicShareRequest) String() string

type GetPublicShareResponse

type GetPublicShareResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The share.
	Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPublicShareResponse) Descriptor deprecated

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

Deprecated: Use GetPublicShareResponse.ProtoReflect.Descriptor instead.

func (*GetPublicShareResponse) GetOpaque

func (x *GetPublicShareResponse) GetOpaque() *v1beta1.Opaque

func (*GetPublicShareResponse) GetShare

func (x *GetPublicShareResponse) GetShare() *PublicShare

func (*GetPublicShareResponse) GetStatus

func (x *GetPublicShareResponse) GetStatus() *v1beta12.Status

func (*GetPublicShareResponse) ProtoMessage

func (*GetPublicShareResponse) ProtoMessage()

func (*GetPublicShareResponse) ProtoReflect

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

func (*GetPublicShareResponse) Reset

func (x *GetPublicShareResponse) Reset()

func (*GetPublicShareResponse) String

func (x *GetPublicShareResponse) String() string

type Grant

type Grant struct {

	// REQUIRED.
	// The permissions for the share.
	Permissions *PublicSharePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// OPTIONAL.
	// A password to protect the access to the public share.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// OPTIONAL.
	// An expiration date to protect the access to the public share.
	Expiration *v1beta12.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

Defines the restrictions for the public share.

func (*Grant) Descriptor deprecated

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

Deprecated: Use Grant.ProtoReflect.Descriptor instead.

func (*Grant) GetExpiration

func (x *Grant) GetExpiration() *v1beta12.Timestamp

func (*Grant) GetPassword

func (x *Grant) GetPassword() string

func (*Grant) GetPermissions

func (x *Grant) GetPermissions() *PublicSharePermissions

func (*Grant) ProtoMessage

func (*Grant) ProtoMessage()

func (*Grant) ProtoReflect

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

func (*Grant) Reset

func (x *Grant) Reset()

func (*Grant) String

func (x *Grant) String() string

type LinkAPIClient

type LinkAPIClient interface {
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreatePublicShare(ctx context.Context, in *CreatePublicShareRequest, opts ...grpc.CallOption) (*CreatePublicShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemovePublicShare(ctx context.Context, in *RemovePublicShareRequest, opts ...grpc.CallOption) (*RemovePublicShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetPublicShare(ctx context.Context, in *GetPublicShareRequest, opts ...grpc.CallOption) (*GetPublicShareResponse, error)
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetPublicShareByToken(ctx context.Context, in *GetPublicShareByTokenRequest, opts ...grpc.CallOption) (*GetPublicShareByTokenResponse, error)
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListPublicShares(ctx context.Context, in *ListPublicSharesRequest, opts ...grpc.CallOption) (*ListPublicSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdatePublicShare(ctx context.Context, in *UpdatePublicShareRequest, opts ...grpc.CallOption) (*UpdatePublicShareResponse, error)
}

LinkAPIClient is the client API for LinkAPI 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.

func NewLinkAPIClient

func NewLinkAPIClient(cc grpc.ClientConnInterface) LinkAPIClient

type LinkAPIServer

type LinkAPIServer interface {
	// Creates a new share.
	// MUST return CODE_NOT_FOUND if the resource reference does not exist.
	// MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of
	// (owner, shared_resource, grantee).
	// New shares MUST be created in the state SHARE_STATE_PENDING.
	CreatePublicShare(context.Context, *CreatePublicShareRequest) (*CreatePublicShareResponse, error)
	// Removes a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	RemovePublicShare(context.Context, *RemovePublicShareRequest) (*RemovePublicShareResponse, error)
	// Gets share information for a single share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	GetPublicShare(context.Context, *GetPublicShareRequest) (*GetPublicShareResponse, error)
	// Gets share information for a single share by its unlisted token.
	// MUST return CODE_NOT_FOUND if the share does not exist.
	GetPublicShareByToken(context.Context, *GetPublicShareByTokenRequest) (*GetPublicShareByTokenResponse, error)
	// List the shares the authenticated principal has created,
	// both as owner and creator. If a filter is specified, only
	// shares satisfying the filter MUST be returned.
	ListPublicShares(context.Context, *ListPublicSharesRequest) (*ListPublicSharesResponse, error)
	// Updates a share.
	// MUST return CODE_NOT_FOUND if the share reference does not exist.
	UpdatePublicShare(context.Context, *UpdatePublicShareRequest) (*UpdatePublicShareResponse, error)
}

LinkAPIServer is the server API for LinkAPI service. All implementations should embed UnimplementedLinkAPIServer for forward compatibility

type ListPublicSharesRequest

type ListPublicSharesRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// OPTIONAL.
	// The list of filters to apply if any.
	Filters []*ListPublicSharesRequest_Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
	// OPTIONAL.
	// If a signature should be included in the share.
	Sign bool `protobuf:"varint,3,opt,name=sign,proto3" json:"sign,omitempty"`
	// OPTIONAL.
	// Clients use this field to specify the maximum number of results to be returned by the server.
	// The server may further constrain the maximum number of results returned in a single page.
	// If the page_size is 0, the server will decide the number of results to be returned.
	// see https://cloud.google.com/apis/design/design_patterns#list_pagination
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// OPTIONAL.
	// The client uses this field to request a specific page of the list results.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPublicSharesRequest) Descriptor deprecated

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

Deprecated: Use ListPublicSharesRequest.ProtoReflect.Descriptor instead.

func (*ListPublicSharesRequest) GetFilters

func (*ListPublicSharesRequest) GetOpaque

func (x *ListPublicSharesRequest) GetOpaque() *v1beta1.Opaque

func (*ListPublicSharesRequest) GetPageSize

func (x *ListPublicSharesRequest) GetPageSize() int32

func (*ListPublicSharesRequest) GetPageToken

func (x *ListPublicSharesRequest) GetPageToken() string

func (*ListPublicSharesRequest) GetSign

func (x *ListPublicSharesRequest) GetSign() bool

func (*ListPublicSharesRequest) ProtoMessage

func (*ListPublicSharesRequest) ProtoMessage()

func (*ListPublicSharesRequest) ProtoReflect

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

func (*ListPublicSharesRequest) Reset

func (x *ListPublicSharesRequest) Reset()

func (*ListPublicSharesRequest) String

func (x *ListPublicSharesRequest) String() string

type ListPublicSharesRequest_Filter

type ListPublicSharesRequest_Filter struct {
	Type ListPublicSharesRequest_Filter_Type `` /* 128-byte string literal not displayed */
	// Types that are assignable to Term:
	//
	//	*ListPublicSharesRequest_Filter_ResourceId
	//	*ListPublicSharesRequest_Filter_Owner
	//	*ListPublicSharesRequest_Filter_Creator
	Term isListPublicSharesRequest_Filter_Term `protobuf_oneof:"term"`
	// contains filtered or unexported fields
}

REQUIRED. represents a filter to apply to the request.

func (*ListPublicSharesRequest_Filter) Descriptor deprecated

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

Deprecated: Use ListPublicSharesRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListPublicSharesRequest_Filter) GetCreator

func (*ListPublicSharesRequest_Filter) GetOwner

func (*ListPublicSharesRequest_Filter) GetResourceId

func (*ListPublicSharesRequest_Filter) GetTerm

func (m *ListPublicSharesRequest_Filter) GetTerm() isListPublicSharesRequest_Filter_Term

func (*ListPublicSharesRequest_Filter) GetType

func (*ListPublicSharesRequest_Filter) ProtoMessage

func (*ListPublicSharesRequest_Filter) ProtoMessage()

func (*ListPublicSharesRequest_Filter) ProtoReflect

func (*ListPublicSharesRequest_Filter) Reset

func (x *ListPublicSharesRequest_Filter) Reset()

func (*ListPublicSharesRequest_Filter) String

type ListPublicSharesRequest_Filter_Creator

type ListPublicSharesRequest_Filter_Creator struct {
	Creator *v1beta13.UserId `protobuf:"bytes,5,opt,name=creator,proto3,oneof"`
}

type ListPublicSharesRequest_Filter_Owner

type ListPublicSharesRequest_Filter_Owner struct {
	Owner *v1beta13.UserId `protobuf:"bytes,4,opt,name=owner,proto3,oneof"`
}

type ListPublicSharesRequest_Filter_ResourceId

type ListPublicSharesRequest_Filter_ResourceId struct {
	ResourceId *v1beta11.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"`
}

type ListPublicSharesRequest_Filter_Type

type ListPublicSharesRequest_Filter_Type int32

REQUIRED.

const (
	ListPublicSharesRequest_Filter_TYPE_INVALID     ListPublicSharesRequest_Filter_Type = 0
	ListPublicSharesRequest_Filter_TYPE_RESOURCE_ID ListPublicSharesRequest_Filter_Type = 1
	ListPublicSharesRequest_Filter_TYPE_OWNER       ListPublicSharesRequest_Filter_Type = 2
	ListPublicSharesRequest_Filter_TYPE_CREATOR     ListPublicSharesRequest_Filter_Type = 3
)

func (ListPublicSharesRequest_Filter_Type) Descriptor

func (ListPublicSharesRequest_Filter_Type) Enum

func (ListPublicSharesRequest_Filter_Type) EnumDescriptor deprecated

func (ListPublicSharesRequest_Filter_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListPublicSharesRequest_Filter_Type.Descriptor instead.

func (ListPublicSharesRequest_Filter_Type) Number

func (ListPublicSharesRequest_Filter_Type) String

func (ListPublicSharesRequest_Filter_Type) Type

type ListPublicSharesResponse

type ListPublicSharesResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The list of shares.
	Share []*PublicShare `protobuf:"bytes,3,rep,name=share,proto3" json:"share,omitempty"`
	// OPTIONAL.
	// This field represents the pagination token to retrieve the next page of results.
	// If the value is "", it means no further results for the request.
	// see https://cloud.google.com/apis/design/design_patterns#list_pagination
	NextPageToken string `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPublicSharesResponse) Descriptor deprecated

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

Deprecated: Use ListPublicSharesResponse.ProtoReflect.Descriptor instead.

func (*ListPublicSharesResponse) GetNextPageToken

func (x *ListPublicSharesResponse) GetNextPageToken() string

func (*ListPublicSharesResponse) GetOpaque

func (x *ListPublicSharesResponse) GetOpaque() *v1beta1.Opaque

func (*ListPublicSharesResponse) GetShare

func (x *ListPublicSharesResponse) GetShare() []*PublicShare

func (*ListPublicSharesResponse) GetStatus

func (x *ListPublicSharesResponse) GetStatus() *v1beta12.Status

func (*ListPublicSharesResponse) ProtoMessage

func (*ListPublicSharesResponse) ProtoMessage()

func (*ListPublicSharesResponse) ProtoReflect

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

func (*ListPublicSharesResponse) Reset

func (x *ListPublicSharesResponse) Reset()

func (*ListPublicSharesResponse) String

func (x *ListPublicSharesResponse) String() string

type PublicShare

type PublicShare struct {

	// REQUIRED.
	// Opaque unique identifier of the share.
	Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// REQUIRED.
	// The unlisted token to give public access
	// to the public share.
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// REQUIRED.
	// Unique identifier of the shared resource.
	ResourceId *v1beta1.ResourceId `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// REQUIRED.
	// Permissions for the grantee to use
	// the resource.
	Permissions *PublicSharePermissions `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
	// REQUIRED.
	// Uniquely identifies the owner of the share
	// (the resource owner at the time of creating the share).
	// In case the ownership of the underlying resource changes
	// the share owner field MAY change to reflect the change of ownsership.
	Owner *v1beta11.UserId `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	// REQUIRED.
	// Uniquely identifies a principal who initiates the share creation.
	// A creator can create shares on behalf of the owner (because of re-sharing,
	// because belonging to special groups, ...).
	// Creator and owner often result in being the same principal.
	Creator *v1beta11.UserId `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"`
	// REQUIRED.
	// Creation time of the share.
	Ctime *v1beta12.Timestamp `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime,omitempty"`
	// REQUIRED.
	// Last modification time of the share.
	Mtime *v1beta12.Timestamp `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"`
	// REQUIRED.
	// Determines if the public share is password protected or not.
	PasswordProtected bool `protobuf:"varint,9,opt,name=password_protected,json=passwordProtected,proto3" json:"password_protected,omitempty"`
	// OPTIONAL.
	// The expiration time for the public share.
	Expiration *v1beta12.Timestamp `protobuf:"bytes,10,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// OPTIONAL.
	// Display name for the shared resource (such as file, directory basename or any
	// user defined name).
	// The display name MAY be different than the actual resource basename.
	// This field is only useful for informational purposes, like for example,
	// setting the window title in a public share HTML page.
	DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// OPTIONAL.
	// A time constrained token with which
	// GetPublicSharebyToken requests can be
	// authenticated.
	Signature *ShareSignature `protobuf:"bytes,12,opt,name=signature,proto3" json:"signature,omitempty"`
	// OPTIONAL
	// A bool value indicating if the link is the quicklink
	// the server will enforce a maximum of 1 quicklink per resource
	Quicklink bool `protobuf:"varint,13,opt,name=quicklink,proto3" json:"quicklink,omitempty"`
	// OPTIONAL
	// Description of the share.
	Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
	// OPTIONAL
	// Whether to notify the owner of a share when a file is uploaded to it.
	NotifyUploads bool `protobuf:"varint,15,opt,name=notify_uploads,json=notifyUploads,proto3" json:"notify_uploads,omitempty"`
	// OPTIONAL
	// Comma-separated list of extra email addresses to notify when a file is
	// uploaded to the share.
	NotifyUploadsExtraRecipients string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

Public share are relationships between a resource owner (usually the authenticated user) who grants permissions to a recipient (grantee) on a specified resource (resource_id). UserShares represents both user and groups. TODO(labkode): do we need to have resource_type stored on the share? This is not needed if when getting the shares a stat operation is launched against the the storage provider.

func (*PublicShare) Descriptor deprecated

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

Deprecated: Use PublicShare.ProtoReflect.Descriptor instead.

func (*PublicShare) GetCreator

func (x *PublicShare) GetCreator() *v1beta11.UserId

func (*PublicShare) GetCtime

func (x *PublicShare) GetCtime() *v1beta12.Timestamp

func (*PublicShare) GetDescription

func (x *PublicShare) GetDescription() string

func (*PublicShare) GetDisplayName

func (x *PublicShare) GetDisplayName() string

func (*PublicShare) GetExpiration

func (x *PublicShare) GetExpiration() *v1beta12.Timestamp

func (*PublicShare) GetId

func (x *PublicShare) GetId() *PublicShareId

func (*PublicShare) GetMtime

func (x *PublicShare) GetMtime() *v1beta12.Timestamp

func (*PublicShare) GetNotifyUploads

func (x *PublicShare) GetNotifyUploads() bool

func (*PublicShare) GetNotifyUploadsExtraRecipients

func (x *PublicShare) GetNotifyUploadsExtraRecipients() string

func (*PublicShare) GetOwner

func (x *PublicShare) GetOwner() *v1beta11.UserId

func (*PublicShare) GetPasswordProtected

func (x *PublicShare) GetPasswordProtected() bool

func (*PublicShare) GetPermissions

func (x *PublicShare) GetPermissions() *PublicSharePermissions
func (x *PublicShare) GetQuicklink() bool

func (*PublicShare) GetResourceId

func (x *PublicShare) GetResourceId() *v1beta1.ResourceId

func (*PublicShare) GetSignature

func (x *PublicShare) GetSignature() *ShareSignature

func (*PublicShare) GetToken

func (x *PublicShare) GetToken() string

func (*PublicShare) ProtoMessage

func (*PublicShare) ProtoMessage()

func (*PublicShare) ProtoReflect

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

func (*PublicShare) Reset

func (x *PublicShare) Reset()

func (*PublicShare) String

func (x *PublicShare) String() string

type PublicShareAuthentication

type PublicShareAuthentication struct {

	// Types that are assignable to Spec:
	//
	//	*PublicShareAuthentication_Password
	//	*PublicShareAuthentication_Signature
	Spec isPublicShareAuthentication_Spec `protobuf_oneof:"spec"`
	// contains filtered or unexported fields
}

The mechanism to authenticate a request to GetPublicShareByToken.

func (*PublicShareAuthentication) Descriptor deprecated

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

Deprecated: Use PublicShareAuthentication.ProtoReflect.Descriptor instead.

func (*PublicShareAuthentication) GetPassword

func (x *PublicShareAuthentication) GetPassword() string

func (*PublicShareAuthentication) GetSignature

func (x *PublicShareAuthentication) GetSignature() *ShareSignature

func (*PublicShareAuthentication) GetSpec

func (m *PublicShareAuthentication) GetSpec() isPublicShareAuthentication_Spec

func (*PublicShareAuthentication) ProtoMessage

func (*PublicShareAuthentication) ProtoMessage()

func (*PublicShareAuthentication) ProtoReflect

func (*PublicShareAuthentication) Reset

func (x *PublicShareAuthentication) Reset()

func (*PublicShareAuthentication) String

func (x *PublicShareAuthentication) String() string

type PublicShareAuthentication_Password

type PublicShareAuthentication_Password struct {
	// The password of the share.
	Password string `protobuf:"bytes,1,opt,name=password,proto3,oneof"`
}

type PublicShareAuthentication_Signature

type PublicShareAuthentication_Signature struct {
	// The signature issued by GetPublicShareByToken.
	Signature *ShareSignature `protobuf:"bytes,2,opt,name=signature,proto3,oneof"`
}

type PublicShareId

type PublicShareId struct {

	// REQUIRED.
	// The internal id used by service implementor to
	// uniquely identity the share in the internal
	// implementation of the service.
	OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"`
	// contains filtered or unexported fields
}

A share id identifies uniquely a // share in the share provider namespace. A ShareId MUST be unique inside the share provider.

func (*PublicShareId) Descriptor deprecated

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

Deprecated: Use PublicShareId.ProtoReflect.Descriptor instead.

func (*PublicShareId) GetOpaqueId

func (x *PublicShareId) GetOpaqueId() string

func (*PublicShareId) ProtoMessage

func (*PublicShareId) ProtoMessage()

func (*PublicShareId) ProtoReflect

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

func (*PublicShareId) Reset

func (x *PublicShareId) Reset()

func (*PublicShareId) String

func (x *PublicShareId) String() string

type PublicSharePermissions

type PublicSharePermissions struct {
	Permissions *v1beta1.ResourcePermissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` // TODO(labkode): additional permissions for shares like re-sharing
	// contains filtered or unexported fields
}

The permissions for a share.

func (*PublicSharePermissions) Descriptor deprecated

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

Deprecated: Use PublicSharePermissions.ProtoReflect.Descriptor instead.

func (*PublicSharePermissions) GetPermissions

func (x *PublicSharePermissions) GetPermissions() *v1beta1.ResourcePermissions

func (*PublicSharePermissions) ProtoMessage

func (*PublicSharePermissions) ProtoMessage()

func (*PublicSharePermissions) ProtoReflect

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

func (*PublicSharePermissions) Reset

func (x *PublicSharePermissions) Reset()

func (*PublicSharePermissions) String

func (x *PublicSharePermissions) String() string

type PublicShareReference

type PublicShareReference struct {

	// REQUIRED.
	// One of the specifications MUST be specified.
	//
	// Types that are assignable to Spec:
	//
	//	*PublicShareReference_Id
	//	*PublicShareReference_Token
	Spec isPublicShareReference_Spec `protobuf_oneof:"spec"`
	// contains filtered or unexported fields
}

The mechanism to identify a share in the share provider namespace.

func (*PublicShareReference) Descriptor deprecated

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

Deprecated: Use PublicShareReference.ProtoReflect.Descriptor instead.

func (*PublicShareReference) GetId

func (x *PublicShareReference) GetId() *PublicShareId

func (*PublicShareReference) GetSpec

func (m *PublicShareReference) GetSpec() isPublicShareReference_Spec

func (*PublicShareReference) GetToken

func (x *PublicShareReference) GetToken() string

func (*PublicShareReference) ProtoMessage

func (*PublicShareReference) ProtoMessage()

func (*PublicShareReference) ProtoReflect

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

func (*PublicShareReference) Reset

func (x *PublicShareReference) Reset()

func (*PublicShareReference) String

func (x *PublicShareReference) String() string

type PublicShareReference_Id

type PublicShareReference_Id struct {
	// The id of the share.
	Id *PublicShareId `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}

type PublicShareReference_Token

type PublicShareReference_Token struct {
	// The token to identify the public share.
	Token string `protobuf:"bytes,2,opt,name=token,proto3,oneof"`
}

type RemovePublicShareRequest

type RemovePublicShareRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The reference to which the action should be performed.
	Ref *PublicShareReference `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePublicShareRequest) Descriptor deprecated

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

Deprecated: Use RemovePublicShareRequest.ProtoReflect.Descriptor instead.

func (*RemovePublicShareRequest) GetOpaque

func (x *RemovePublicShareRequest) GetOpaque() *v1beta1.Opaque

func (*RemovePublicShareRequest) GetRef

func (*RemovePublicShareRequest) ProtoMessage

func (*RemovePublicShareRequest) ProtoMessage()

func (*RemovePublicShareRequest) ProtoReflect

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

func (*RemovePublicShareRequest) Reset

func (x *RemovePublicShareRequest) Reset()

func (*RemovePublicShareRequest) String

func (x *RemovePublicShareRequest) String() string

type RemovePublicShareResponse

type RemovePublicShareResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePublicShareResponse) Descriptor deprecated

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

Deprecated: Use RemovePublicShareResponse.ProtoReflect.Descriptor instead.

func (*RemovePublicShareResponse) GetOpaque

func (x *RemovePublicShareResponse) GetOpaque() *v1beta1.Opaque

func (*RemovePublicShareResponse) GetStatus

func (x *RemovePublicShareResponse) GetStatus() *v1beta12.Status

func (*RemovePublicShareResponse) ProtoMessage

func (*RemovePublicShareResponse) ProtoMessage()

func (*RemovePublicShareResponse) ProtoReflect

func (*RemovePublicShareResponse) Reset

func (x *RemovePublicShareResponse) Reset()

func (*RemovePublicShareResponse) String

func (x *RemovePublicShareResponse) String() string

type ShareSignature

type ShareSignature struct {

	// REQUIRED.
	// The signature value.
	Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// REQUIRED.
	// The time until the signature becomes invalid.
	SignatureExpiration *v1beta12.Timestamp `protobuf:"bytes,2,opt,name=signature_expiration,json=signatureExpiration,proto3" json:"signature_expiration,omitempty"`
	// contains filtered or unexported fields
}

A time constrained token which can be used to authenticate link share requests.

func (*ShareSignature) Descriptor deprecated

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

Deprecated: Use ShareSignature.ProtoReflect.Descriptor instead.

func (*ShareSignature) GetSignature

func (x *ShareSignature) GetSignature() string

func (*ShareSignature) GetSignatureExpiration

func (x *ShareSignature) GetSignatureExpiration() *v1beta12.Timestamp

func (*ShareSignature) ProtoMessage

func (*ShareSignature) ProtoMessage()

func (*ShareSignature) ProtoReflect

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

func (*ShareSignature) Reset

func (x *ShareSignature) Reset()

func (*ShareSignature) String

func (x *ShareSignature) String() string

type UnimplementedLinkAPIServer

type UnimplementedLinkAPIServer struct {
}

UnimplementedLinkAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedLinkAPIServer) GetPublicShare

func (UnimplementedLinkAPIServer) ListPublicShares

type UnsafeLinkAPIServer

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

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

type UpdatePublicShareRequest

type UpdatePublicShareRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED.
	// REQUIRED.
	// The reference to the public share.
	Ref    *PublicShareReference            `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // Available fields to update.
	Update *UpdatePublicShareRequest_Update `protobuf:"bytes,3,opt,name=update,proto3" json:"update,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePublicShareRequest) Descriptor deprecated

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

Deprecated: Use UpdatePublicShareRequest.ProtoReflect.Descriptor instead.

func (*UpdatePublicShareRequest) GetOpaque

func (x *UpdatePublicShareRequest) GetOpaque() *v1beta1.Opaque

func (*UpdatePublicShareRequest) GetRef

func (*UpdatePublicShareRequest) GetUpdate

func (*UpdatePublicShareRequest) ProtoMessage

func (*UpdatePublicShareRequest) ProtoMessage()

func (*UpdatePublicShareRequest) ProtoReflect

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

func (*UpdatePublicShareRequest) Reset

func (x *UpdatePublicShareRequest) Reset()

func (*UpdatePublicShareRequest) String

func (x *UpdatePublicShareRequest) String() string

type UpdatePublicShareRequest_Update

type UpdatePublicShareRequest_Update struct {

	// REQUIRED.
	// Defines the field to update.
	Type UpdatePublicShareRequest_Update_Type `` /* 129-byte string literal not displayed */
	// REQUIRED.
	// Contains the field that will be updated.
	Grant *Grant `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"`
	// OPTIONAL
	// Defines the public link display name.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// OPTIONAL
	// Defines the public link description.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// OPTIONAL
	// Whether to notify the owner of a share when a file is uploaded to it.
	NotifyUploads bool `protobuf:"varint,7,opt,name=notify_uploads,json=notifyUploads,proto3" json:"notify_uploads,omitempty"`
	// OPTIONAL
	// Comma-separated list of extra email addresses to notify when a file is
	// uploaded to the share.
	NotifyUploadsExtraRecipients string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

REQUIRED.

func (*UpdatePublicShareRequest_Update) Descriptor deprecated

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

Deprecated: Use UpdatePublicShareRequest_Update.ProtoReflect.Descriptor instead.

func (*UpdatePublicShareRequest_Update) GetDescription

func (x *UpdatePublicShareRequest_Update) GetDescription() string

func (*UpdatePublicShareRequest_Update) GetDisplayName

func (x *UpdatePublicShareRequest_Update) GetDisplayName() string

func (*UpdatePublicShareRequest_Update) GetGrant

func (x *UpdatePublicShareRequest_Update) GetGrant() *Grant

func (*UpdatePublicShareRequest_Update) GetNotifyUploads

func (x *UpdatePublicShareRequest_Update) GetNotifyUploads() bool

func (*UpdatePublicShareRequest_Update) GetNotifyUploadsExtraRecipients

func (x *UpdatePublicShareRequest_Update) GetNotifyUploadsExtraRecipients() string

func (*UpdatePublicShareRequest_Update) GetType

func (*UpdatePublicShareRequest_Update) ProtoMessage

func (*UpdatePublicShareRequest_Update) ProtoMessage()

func (*UpdatePublicShareRequest_Update) ProtoReflect

func (*UpdatePublicShareRequest_Update) Reset

func (*UpdatePublicShareRequest_Update) String

type UpdatePublicShareRequest_Update_Type

type UpdatePublicShareRequest_Update_Type int32

REQUIRED.

const (
	UpdatePublicShareRequest_Update_TYPE_INVALID                      UpdatePublicShareRequest_Update_Type = 0
	UpdatePublicShareRequest_Update_TYPE_PERMISSIONS                  UpdatePublicShareRequest_Update_Type = 1
	UpdatePublicShareRequest_Update_TYPE_PASSWORD                     UpdatePublicShareRequest_Update_Type = 2
	UpdatePublicShareRequest_Update_TYPE_EXPIRATION                   UpdatePublicShareRequest_Update_Type = 3
	UpdatePublicShareRequest_Update_TYPE_DISPLAYNAME                  UpdatePublicShareRequest_Update_Type = 4
	UpdatePublicShareRequest_Update_TYPE_DESCRIPTION                  UpdatePublicShareRequest_Update_Type = 5
	UpdatePublicShareRequest_Update_TYPE_NOTIFYUPLOADS                UpdatePublicShareRequest_Update_Type = 6
	UpdatePublicShareRequest_Update_TYPE_NOTIFYUPLOADSEXTRARECIPIENTS UpdatePublicShareRequest_Update_Type = 7
)

func (UpdatePublicShareRequest_Update_Type) Descriptor

func (UpdatePublicShareRequest_Update_Type) Enum

func (UpdatePublicShareRequest_Update_Type) EnumDescriptor deprecated

func (UpdatePublicShareRequest_Update_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdatePublicShareRequest_Update_Type.Descriptor instead.

func (UpdatePublicShareRequest_Update_Type) Number

func (UpdatePublicShareRequest_Update_Type) String

func (UpdatePublicShareRequest_Update_Type) Type

type UpdatePublicShareResponse

type UpdatePublicShareResponse struct {

	// REQUIRED.
	// The response status.
	Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The updated public share.
	Share *PublicShare `protobuf:"bytes,3,opt,name=share,proto3" json:"share,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePublicShareResponse) Descriptor deprecated

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

Deprecated: Use UpdatePublicShareResponse.ProtoReflect.Descriptor instead.

func (*UpdatePublicShareResponse) GetOpaque

func (x *UpdatePublicShareResponse) GetOpaque() *v1beta1.Opaque

func (*UpdatePublicShareResponse) GetShare

func (x *UpdatePublicShareResponse) GetShare() *PublicShare

func (*UpdatePublicShareResponse) GetStatus

func (x *UpdatePublicShareResponse) GetStatus() *v1beta12.Status

func (*UpdatePublicShareResponse) ProtoMessage

func (*UpdatePublicShareResponse) ProtoMessage()

func (*UpdatePublicShareResponse) ProtoReflect

func (*UpdatePublicShareResponse) Reset

func (x *UpdatePublicShareResponse) Reset()

func (*UpdatePublicShareResponse) String

func (x *UpdatePublicShareResponse) String() string

Jump to

Keyboard shortcuts

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