Module pachyderm_sdk.api.storage
Expand source code
# Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: api/storage/fileset.proto
# plugin: python-betterproto
# This file has been @generated
from dataclasses import dataclass
from typing import (
TYPE_CHECKING,
AsyncIterable,
AsyncIterator,
Dict,
Iterable,
Iterator,
List,
Optional,
Union,
)
import betterproto
import betterproto.lib.google.protobuf as betterproto_lib_google_protobuf
import grpc
from .. import cdr as _cdr__
if TYPE_CHECKING:
import grpc
@dataclass(eq=False, repr=False)
class AppendFile(betterproto.Message):
"""
AppendFile will append the provided data to the file with the specified
path. If a file with the specified path doesn't exist, it will be created.
"""
path: str = betterproto.string_field(1)
data: Optional[bytes] = betterproto.message_field(2, wraps=betterproto.TYPE_BYTES)
@dataclass(eq=False, repr=False)
class DeleteFile(betterproto.Message):
"""
DeleteFile will delete the file with the specified path. If a file with the
specified path doesn't exist, the delete will be a no-op.
"""
path: str = betterproto.string_field(1)
@dataclass(eq=False, repr=False)
class CopyFile(betterproto.Message):
"""
CopyFile copies a file or directory from the specified fileset with the
specified path. If a file or directory with the specified path doesn't
exist in the specified fileset, the copy will be a no-op. TODO: Append?
"""
fileset_id: str = betterproto.string_field(1)
src: str = betterproto.string_field(2)
"""Src is the source path of the file or directory."""
dst: str = betterproto.string_field(3)
"""
Dst is the destination path of the file or directory. If dst is unset, src
will be used as the destination path.
"""
@dataclass(eq=False, repr=False)
class CreateFilesetRequest(betterproto.Message):
"""
A CreateFilesetRequest corresponds to a single file modification. Supported
file modifications are append and delete. A put / overwrite file
modification can be performed by a delete followed by an append. TODO:
Decide how to handle datums.
"""
append_file: "AppendFile" = betterproto.message_field(1, group="modification")
delete_file: "DeleteFile" = betterproto.message_field(2, group="modification")
copy_file: "CopyFile" = betterproto.message_field(3, group="modification")
@dataclass(eq=False, repr=False)
class CreateFilesetResponse(betterproto.Message):
fileset_id: str = betterproto.string_field(1)
@dataclass(eq=False, repr=False)
class FileFilter(betterproto.Message):
path_range: "PathRange" = betterproto.message_field(1, group="filter")
"""Only emit files with paths in the provided path range."""
path_regex: str = betterproto.string_field(2, group="filter")
"""
Only emit files with paths that match the provided regular expression.
"""
@dataclass(eq=False, repr=False)
class ReadFilesetRequest(betterproto.Message):
fileset_id: str = betterproto.string_field(1)
filters: List["FileFilter"] = betterproto.message_field(2)
"""
Filters constrain which files are emitted. A file is only emitted if it
makes it through all of the filters sequentially.
"""
empty_files: bool = betterproto.bool_field(3)
"""If true, then the file data will be omitted from the stream."""
@dataclass(eq=False, repr=False)
class ReadFilesetResponse(betterproto.Message):
"""
A ReadFilesetResponse corresponds to a single chunk of data in a file.
Small or empty files will be contained within a single message, while large
files may be spread across multiple messages. For files spread across
multiple messages, each message will have the same path and the content
will be returned in append order.
"""
path: str = betterproto.string_field(1)
data: Optional[bytes] = betterproto.message_field(2, wraps=betterproto.TYPE_BYTES)
@dataclass(eq=False, repr=False)
class ReadFilesetCdrResponse(betterproto.Message):
path: str = betterproto.string_field(1)
ref: "_cdr__.Ref" = betterproto.message_field(2)
@dataclass(eq=False, repr=False)
class RenewFilesetRequest(betterproto.Message):
fileset_id: str = betterproto.string_field(1)
ttl_seconds: int = betterproto.int64_field(2)
"""The TTL, in seconds, for the fileset after renewal."""
@dataclass(eq=False, repr=False)
class ComposeFilesetRequest(betterproto.Message):
fileset_ids: List[str] = betterproto.string_field(1)
ttl_seconds: int = betterproto.int64_field(2)
"""The TTL, in seconds, for the composite fileset that is created."""
@dataclass(eq=False, repr=False)
class ComposeFilesetResponse(betterproto.Message):
fileset_id: str = betterproto.string_field(1)
@dataclass(eq=False, repr=False)
class ShardFilesetRequest(betterproto.Message):
"""
If both num_files and size_bytes are set, shards are created based on
whichever threshold is surpassed first. If a shard configuration field
(num_files, size_bytes) is unset, the storage's default value is used.
"""
fileset_id: str = betterproto.string_field(1)
num_files: int = betterproto.int64_field(2)
"""Number of files targeted in each shard."""
size_bytes: int = betterproto.int64_field(3)
"""Size (in bytes) targeted for each shard."""
@dataclass(eq=False, repr=False)
class PathRange(betterproto.Message):
"""
PathRange is a range of paths. The range is inclusive, exclusive: [Lower,
Upper).
"""
lower: str = betterproto.string_field(1)
upper: str = betterproto.string_field(2)
@dataclass(eq=False, repr=False)
class ShardFilesetResponse(betterproto.Message):
shards: List["PathRange"] = betterproto.message_field(1)
class FilesetStub:
def __init__(self, channel: "grpc.Channel"):
self.__rpc_create_fileset = channel.stream_unary(
"/storage.Fileset/CreateFileset",
request_serializer=CreateFilesetRequest.SerializeToString,
response_deserializer=CreateFilesetResponse.FromString,
)
self.__rpc_read_fileset = channel.unary_stream(
"/storage.Fileset/ReadFileset",
request_serializer=ReadFilesetRequest.SerializeToString,
response_deserializer=ReadFilesetResponse.FromString,
)
self.__rpc_read_fileset_cdr = channel.unary_stream(
"/storage.Fileset/ReadFilesetCDR",
request_serializer=ReadFilesetRequest.SerializeToString,
response_deserializer=ReadFilesetCdrResponse.FromString,
)
self.__rpc_renew_fileset = channel.unary_unary(
"/storage.Fileset/RenewFileset",
request_serializer=RenewFilesetRequest.SerializeToString,
response_deserializer=betterproto_lib_google_protobuf.Empty.FromString,
)
self.__rpc_compose_fileset = channel.unary_unary(
"/storage.Fileset/ComposeFileset",
request_serializer=ComposeFilesetRequest.SerializeToString,
response_deserializer=ComposeFilesetResponse.FromString,
)
self.__rpc_shard_fileset = channel.unary_unary(
"/storage.Fileset/ShardFileset",
request_serializer=ShardFilesetRequest.SerializeToString,
response_deserializer=ShardFilesetResponse.FromString,
)
def create_fileset(
self,
request_iterator: Union[
AsyncIterable["CreateFilesetRequest"], Iterable["CreateFilesetRequest"]
],
) -> "CreateFilesetResponse":
return self.__rpc_create_fileset(request_iterator)
def read_fileset(
self,
*,
fileset_id: str = "",
filters: Optional[List["FileFilter"]] = None,
empty_files: bool = False
) -> Iterator["ReadFilesetResponse"]:
filters = filters or []
request = ReadFilesetRequest()
request.fileset_id = fileset_id
if filters is not None:
request.filters = filters
request.empty_files = empty_files
for response in self.__rpc_read_fileset(request):
yield response
def read_fileset_cdr(
self,
*,
fileset_id: str = "",
filters: Optional[List["FileFilter"]] = None,
empty_files: bool = False
) -> Iterator["ReadFilesetCdrResponse"]:
filters = filters or []
request = ReadFilesetRequest()
request.fileset_id = fileset_id
if filters is not None:
request.filters = filters
request.empty_files = empty_files
for response in self.__rpc_read_fileset_cdr(request):
yield response
def renew_fileset(
self, *, fileset_id: str = "", ttl_seconds: int = 0
) -> "betterproto_lib_google_protobuf.Empty":
request = RenewFilesetRequest()
request.fileset_id = fileset_id
request.ttl_seconds = ttl_seconds
return self.__rpc_renew_fileset(request)
def compose_fileset(
self, *, fileset_ids: Optional[List[str]] = None, ttl_seconds: int = 0
) -> "ComposeFilesetResponse":
fileset_ids = fileset_ids or []
request = ComposeFilesetRequest()
request.fileset_ids = fileset_ids
request.ttl_seconds = ttl_seconds
return self.__rpc_compose_fileset(request)
def shard_fileset(
self, *, fileset_id: str = "", num_files: int = 0, size_bytes: int = 0
) -> "ShardFilesetResponse":
request = ShardFilesetRequest()
request.fileset_id = fileset_id
request.num_files = num_files
request.size_bytes = size_bytes
return self.__rpc_shard_fileset(request)
Sub-modules
pachyderm_sdk.api.storage.extension
-
Handwritten classes/methods that augment the existing Storage API.
Classes
class AppendFile (path: str = None, data: Optional[bytes] = None)
-
AppendFile will append the provided data to the file with the specified path. If a file with the specified path doesn't exist, it will be created.
Expand source code
@dataclass(eq=False, repr=False) class AppendFile(betterproto.Message): """ AppendFile will append the provided data to the file with the specified path. If a file with the specified path doesn't exist, it will be created. """ path: str = betterproto.string_field(1) data: Optional[bytes] = betterproto.message_field(2, wraps=betterproto.TYPE_BYTES)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var path : str
var data : Optional[bytes]
class DeleteFile (path: str = None)
-
DeleteFile will delete the file with the specified path. If a file with the specified path doesn't exist, the delete will be a no-op.
Expand source code
@dataclass(eq=False, repr=False) class DeleteFile(betterproto.Message): """ DeleteFile will delete the file with the specified path. If a file with the specified path doesn't exist, the delete will be a no-op. """ path: str = betterproto.string_field(1)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var path : str
class CopyFile (fileset_id: str = None, src: str = None, dst: str = None)
-
CopyFile copies a file or directory from the specified fileset with the specified path. If a file or directory with the specified path doesn't exist in the specified fileset, the copy will be a no-op. TODO: Append?
Expand source code
@dataclass(eq=False, repr=False) class CopyFile(betterproto.Message): """ CopyFile copies a file or directory from the specified fileset with the specified path. If a file or directory with the specified path doesn't exist in the specified fileset, the copy will be a no-op. TODO: Append? """ fileset_id: str = betterproto.string_field(1) src: str = betterproto.string_field(2) """Src is the source path of the file or directory.""" dst: str = betterproto.string_field(3) """ Dst is the destination path of the file or directory. If dst is unset, src will be used as the destination path. """
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var fileset_id : str
var src : str
-
Src is the source path of the file or directory.
var dst : str
-
Dst is the destination path of the file or directory. If dst is unset, src will be used as the destination path.
class CreateFilesetRequest (append_file: AppendFile = None, delete_file: DeleteFile = None, copy_file: CopyFile = None)
-
A CreateFilesetRequest corresponds to a single file modification. Supported file modifications are append and delete. A put / overwrite file modification can be performed by a delete followed by an append. TODO: Decide how to handle datums.
Expand source code
@dataclass(eq=False, repr=False) class CreateFilesetRequest(betterproto.Message): """ A CreateFilesetRequest corresponds to a single file modification. Supported file modifications are append and delete. A put / overwrite file modification can be performed by a delete followed by an append. TODO: Decide how to handle datums. """ append_file: "AppendFile" = betterproto.message_field(1, group="modification") delete_file: "DeleteFile" = betterproto.message_field(2, group="modification") copy_file: "CopyFile" = betterproto.message_field(3, group="modification")
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var append_file : AppendFile
var delete_file : DeleteFile
var copy_file : CopyFile
class CreateFilesetResponse (fileset_id: str = None)
-
CreateFilesetResponse(fileset_id: str = None)
Expand source code
@dataclass(eq=False, repr=False) class CreateFilesetResponse(betterproto.Message): fileset_id: str = betterproto.string_field(1)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var fileset_id : str
class FileFilter (path_range: PathRange = None, path_regex: str = None)
-
FileFilter(path_range: 'PathRange' = None, path_regex: str = None)
Expand source code
@dataclass(eq=False, repr=False) class FileFilter(betterproto.Message): path_range: "PathRange" = betterproto.message_field(1, group="filter") """Only emit files with paths in the provided path range.""" path_regex: str = betterproto.string_field(2, group="filter") """ Only emit files with paths that match the provided regular expression. """
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var path_range : PathRange
-
Only emit files with paths in the provided path range.
var path_regex : str
-
Only emit files with paths that match the provided regular expression.
class ReadFilesetRequest (fileset_id: str = None, filters: List[ForwardRef('FileFilter')] = None, empty_files: bool = None)
-
ReadFilesetRequest(fileset_id: str = None, filters: List[ForwardRef('FileFilter')] = None, empty_files: bool = None)
Expand source code
@dataclass(eq=False, repr=False) class ReadFilesetRequest(betterproto.Message): fileset_id: str = betterproto.string_field(1) filters: List["FileFilter"] = betterproto.message_field(2) """ Filters constrain which files are emitted. A file is only emitted if it makes it through all of the filters sequentially. """ empty_files: bool = betterproto.bool_field(3) """If true, then the file data will be omitted from the stream."""
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var fileset_id : str
var filters : List[FileFilter]
-
Filters constrain which files are emitted. A file is only emitted if it makes it through all of the filters sequentially.
var empty_files : bool
-
If true, then the file data will be omitted from the stream.
class ReadFilesetResponse (path: str = None, data: Optional[bytes] = None)
-
A ReadFilesetResponse corresponds to a single chunk of data in a file. Small or empty files will be contained within a single message, while large files may be spread across multiple messages. For files spread across multiple messages, each message will have the same path and the content will be returned in append order.
Expand source code
@dataclass(eq=False, repr=False) class ReadFilesetResponse(betterproto.Message): """ A ReadFilesetResponse corresponds to a single chunk of data in a file. Small or empty files will be contained within a single message, while large files may be spread across multiple messages. For files spread across multiple messages, each message will have the same path and the content will be returned in append order. """ path: str = betterproto.string_field(1) data: Optional[bytes] = betterproto.message_field(2, wraps=betterproto.TYPE_BYTES)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var path : str
var data : Optional[bytes]
class ReadFilesetCdrResponse (path: str = None, ref: _cdr__.Ref = None)
-
ReadFilesetCdrResponse(path: str = None, ref: '_cdr__.Ref' = None)
Expand source code
@dataclass(eq=False, repr=False) class ReadFilesetCdrResponse(betterproto.Message): path: str = betterproto.string_field(1) ref: "_cdr__.Ref" = betterproto.message_field(2)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var path : str
var ref : Ref
class RenewFilesetRequest (fileset_id: str = None, ttl_seconds: int = None)
-
RenewFilesetRequest(fileset_id: str = None, ttl_seconds: int = None)
Expand source code
@dataclass(eq=False, repr=False) class RenewFilesetRequest(betterproto.Message): fileset_id: str = betterproto.string_field(1) ttl_seconds: int = betterproto.int64_field(2) """The TTL, in seconds, for the fileset after renewal."""
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var fileset_id : str
var ttl_seconds : int
-
The TTL, in seconds, for the fileset after renewal.
class ComposeFilesetRequest (fileset_ids: List[str] = None, ttl_seconds: int = None)
-
ComposeFilesetRequest(fileset_ids: List[str] = None, ttl_seconds: int = None)
Expand source code
@dataclass(eq=False, repr=False) class ComposeFilesetRequest(betterproto.Message): fileset_ids: List[str] = betterproto.string_field(1) ttl_seconds: int = betterproto.int64_field(2) """The TTL, in seconds, for the composite fileset that is created."""
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var fileset_ids : List[str]
var ttl_seconds : int
-
The TTL, in seconds, for the composite fileset that is created.
class ComposeFilesetResponse (fileset_id: str = None)
-
ComposeFilesetResponse(fileset_id: str = None)
Expand source code
@dataclass(eq=False, repr=False) class ComposeFilesetResponse(betterproto.Message): fileset_id: str = betterproto.string_field(1)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var fileset_id : str
class ShardFilesetRequest (fileset_id: str = None, num_files: int = None, size_bytes: int = None)
-
If both num_files and size_bytes are set, shards are created based on whichever threshold is surpassed first. If a shard configuration field (num_files, size_bytes) is unset, the storage's default value is used.
Expand source code
@dataclass(eq=False, repr=False) class ShardFilesetRequest(betterproto.Message): """ If both num_files and size_bytes are set, shards are created based on whichever threshold is surpassed first. If a shard configuration field (num_files, size_bytes) is unset, the storage's default value is used. """ fileset_id: str = betterproto.string_field(1) num_files: int = betterproto.int64_field(2) """Number of files targeted in each shard.""" size_bytes: int = betterproto.int64_field(3) """Size (in bytes) targeted for each shard."""
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var fileset_id : str
var num_files : int
-
Number of files targeted in each shard.
var size_bytes : int
-
Size (in bytes) targeted for each shard.
class PathRange (lower: str = None, upper: str = None)
-
PathRange is a range of paths. The range is inclusive, exclusive: [Lower, Upper).
Expand source code
@dataclass(eq=False, repr=False) class PathRange(betterproto.Message): """ PathRange is a range of paths. The range is inclusive, exclusive: [Lower, Upper). """ lower: str = betterproto.string_field(1) upper: str = betterproto.string_field(2)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var lower : str
var upper : str
class ShardFilesetResponse (shards: List[ForwardRef('PathRange')] = None)
-
ShardFilesetResponse(shards: List[ForwardRef('PathRange')] = None)
Expand source code
@dataclass(eq=False, repr=False) class ShardFilesetResponse(betterproto.Message): shards: List["PathRange"] = betterproto.message_field(1)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var shards : List[PathRange]
class FilesetStub (channel: grpc.Channel)
-
Expand source code
class FilesetStub: def __init__(self, channel: "grpc.Channel"): self.__rpc_create_fileset = channel.stream_unary( "/storage.Fileset/CreateFileset", request_serializer=CreateFilesetRequest.SerializeToString, response_deserializer=CreateFilesetResponse.FromString, ) self.__rpc_read_fileset = channel.unary_stream( "/storage.Fileset/ReadFileset", request_serializer=ReadFilesetRequest.SerializeToString, response_deserializer=ReadFilesetResponse.FromString, ) self.__rpc_read_fileset_cdr = channel.unary_stream( "/storage.Fileset/ReadFilesetCDR", request_serializer=ReadFilesetRequest.SerializeToString, response_deserializer=ReadFilesetCdrResponse.FromString, ) self.__rpc_renew_fileset = channel.unary_unary( "/storage.Fileset/RenewFileset", request_serializer=RenewFilesetRequest.SerializeToString, response_deserializer=betterproto_lib_google_protobuf.Empty.FromString, ) self.__rpc_compose_fileset = channel.unary_unary( "/storage.Fileset/ComposeFileset", request_serializer=ComposeFilesetRequest.SerializeToString, response_deserializer=ComposeFilesetResponse.FromString, ) self.__rpc_shard_fileset = channel.unary_unary( "/storage.Fileset/ShardFileset", request_serializer=ShardFilesetRequest.SerializeToString, response_deserializer=ShardFilesetResponse.FromString, ) def create_fileset( self, request_iterator: Union[ AsyncIterable["CreateFilesetRequest"], Iterable["CreateFilesetRequest"] ], ) -> "CreateFilesetResponse": return self.__rpc_create_fileset(request_iterator) def read_fileset( self, *, fileset_id: str = "", filters: Optional[List["FileFilter"]] = None, empty_files: bool = False ) -> Iterator["ReadFilesetResponse"]: filters = filters or [] request = ReadFilesetRequest() request.fileset_id = fileset_id if filters is not None: request.filters = filters request.empty_files = empty_files for response in self.__rpc_read_fileset(request): yield response def read_fileset_cdr( self, *, fileset_id: str = "", filters: Optional[List["FileFilter"]] = None, empty_files: bool = False ) -> Iterator["ReadFilesetCdrResponse"]: filters = filters or [] request = ReadFilesetRequest() request.fileset_id = fileset_id if filters is not None: request.filters = filters request.empty_files = empty_files for response in self.__rpc_read_fileset_cdr(request): yield response def renew_fileset( self, *, fileset_id: str = "", ttl_seconds: int = 0 ) -> "betterproto_lib_google_protobuf.Empty": request = RenewFilesetRequest() request.fileset_id = fileset_id request.ttl_seconds = ttl_seconds return self.__rpc_renew_fileset(request) def compose_fileset( self, *, fileset_ids: Optional[List[str]] = None, ttl_seconds: int = 0 ) -> "ComposeFilesetResponse": fileset_ids = fileset_ids or [] request = ComposeFilesetRequest() request.fileset_ids = fileset_ids request.ttl_seconds = ttl_seconds return self.__rpc_compose_fileset(request) def shard_fileset( self, *, fileset_id: str = "", num_files: int = 0, size_bytes: int = 0 ) -> "ShardFilesetResponse": request = ShardFilesetRequest() request.fileset_id = fileset_id request.num_files = num_files request.size_bytes = size_bytes return self.__rpc_shard_fileset(request)
Subclasses
Methods
def create_fileset(self, request_iterator: Union[AsyncIterable[ForwardRef('CreateFilesetRequest')], Iterable[ForwardRef('CreateFilesetRequest')]]) ‑> CreateFilesetResponse
-
Expand source code
def create_fileset( self, request_iterator: Union[ AsyncIterable["CreateFilesetRequest"], Iterable["CreateFilesetRequest"] ], ) -> "CreateFilesetResponse": return self.__rpc_create_fileset(request_iterator)
def read_fileset(self, *, fileset_id: str = '', filters: Optional[List[ForwardRef('FileFilter')]] = None, empty_files: bool = False) ‑> Iterator[ReadFilesetResponse]
-
Expand source code
def read_fileset( self, *, fileset_id: str = "", filters: Optional[List["FileFilter"]] = None, empty_files: bool = False ) -> Iterator["ReadFilesetResponse"]: filters = filters or [] request = ReadFilesetRequest() request.fileset_id = fileset_id if filters is not None: request.filters = filters request.empty_files = empty_files for response in self.__rpc_read_fileset(request): yield response
def read_fileset_cdr(self, *, fileset_id: str = '', filters: Optional[List[ForwardRef('FileFilter')]] = None, empty_files: bool = False) ‑> Iterator[ReadFilesetCdrResponse]
-
Expand source code
def read_fileset_cdr( self, *, fileset_id: str = "", filters: Optional[List["FileFilter"]] = None, empty_files: bool = False ) -> Iterator["ReadFilesetCdrResponse"]: filters = filters or [] request = ReadFilesetRequest() request.fileset_id = fileset_id if filters is not None: request.filters = filters request.empty_files = empty_files for response in self.__rpc_read_fileset_cdr(request): yield response
def renew_fileset(self, *, fileset_id: str = '', ttl_seconds: int = 0) ‑> betterproto.lib.google.protobuf.Empty
-
Expand source code
def renew_fileset( self, *, fileset_id: str = "", ttl_seconds: int = 0 ) -> "betterproto_lib_google_protobuf.Empty": request = RenewFilesetRequest() request.fileset_id = fileset_id request.ttl_seconds = ttl_seconds return self.__rpc_renew_fileset(request)
def compose_fileset(self, *, fileset_ids: Optional[List[str]] = None, ttl_seconds: int = 0) ‑> ComposeFilesetResponse
-
Expand source code
def compose_fileset( self, *, fileset_ids: Optional[List[str]] = None, ttl_seconds: int = 0 ) -> "ComposeFilesetResponse": fileset_ids = fileset_ids or [] request = ComposeFilesetRequest() request.fileset_ids = fileset_ids request.ttl_seconds = ttl_seconds return self.__rpc_compose_fileset(request)
def shard_fileset(self, *, fileset_id: str = '', num_files: int = 0, size_bytes: int = 0) ‑> ShardFilesetResponse
-
Expand source code
def shard_fileset( self, *, fileset_id: str = "", num_files: int = 0, size_bytes: int = 0 ) -> "ShardFilesetResponse": request = ShardFilesetRequest() request.fileset_id = fileset_id request.num_files = num_files request.size_bytes = size_bytes return self.__rpc_shard_fileset(request)