123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- export interface ModelOptionsBase {
- displayName?: string;
- tags?: string[];
- }
- export interface GcsTfliteModelOptions extends ModelOptionsBase {
- tfliteModel: {
- gcsTfliteUri: string;
- };
- }
- export type ModelOptions = ModelOptionsBase | GcsTfliteModelOptions;
- export interface ListModelsOptions {
-
- filter?: string;
-
- pageSize?: number;
-
- pageToken?: string;
- }
- export interface StatusErrorResponse {
- readonly code: number;
- readonly message: string;
- }
- export type ModelUpdateOptions = ModelOptions & {
- state?: {
- published?: boolean;
- };
- };
- export declare function isGcsTfliteModelOptions(options: ModelOptions): options is GcsTfliteModelOptions;
- export interface ModelContent {
- readonly displayName?: string;
- readonly tags?: string[];
- readonly state?: {
- readonly validationError?: StatusErrorResponse;
- readonly published?: boolean;
- };
- readonly tfliteModel?: {
- readonly gcsTfliteUri?: string;
- readonly sizeBytes: number;
- };
- }
- export interface ModelResponse extends ModelContent {
- readonly name: string;
- readonly createTime: string;
- readonly updateTime: string;
- readonly etag: string;
- readonly modelHash?: string;
- readonly activeOperations?: OperationResponse[];
- }
- export interface ListModelsResponse {
- readonly models?: ModelResponse[];
- readonly nextPageToken?: string;
- }
- export interface OperationResponse {
- readonly name?: string;
- readonly metadata?: {
- [key: string]: any;
- };
- readonly done: boolean;
- readonly error?: StatusErrorResponse;
- readonly response?: ModelResponse;
- }
|