1
0
Fork 0

returns user defined key decoded key

pull/1935/head
Prajjwal 2024-06-02 10:57:43 +05:30
parent cea490e16b
commit 0fbee79606
64 changed files with 1255 additions and 139 deletions

View File

@ -1,6 +1,6 @@
{
"name": "github-actions.warp-cache",
"version": "1.1.11",
"version": "1.1.12",
"preview": true,
"description": "Github action to use WarpBuild's in-house cache offering",
"keywords": [

View File

@ -173,29 +173,6 @@ export async function restoreCache(
const archiveLocation = `gs://${cacheEntry.gcs?.bucket_name}/${cacheEntry.gcs?.cache_key}`
/*
* Alternate, Multipart download method for GCS
await cacheHttpClient.downloadCache(
cacheEntry.provider,
archiveLocation,
archivePath,
cacheEntry.gcs?.short_lived_token?.access_token ?? ''
)
if (core.isDebug()) {
await listTar(archivePath, compressionMethod)
}
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath)
core.info(
`Cache Size: ~${Math.round(
archiveFileSize / (1024 * 1024)
)} MB (${archiveFileSize} B)`
)
await extractTar(archivePath, compressionMethod)
*/
// For GCS, we do a streaming download which means that we extract the archive while we are downloading it.
let readStream: NodeJS.ReadableStream | undefined
@ -278,7 +255,7 @@ export async function restoreCache(
}
}
return cacheKey
return cacheEntry?.cache_entry?.cache_user_given_key ?? cacheKey
} catch (error) {
const typedError = error as Error
if (typedError.name === ValidationError.name) {

View File

@ -434,7 +434,10 @@ export async function saveCache(
core.debug('Committing cache')
commitCacheResponse = await commitCache(cacheKey, cacheVersion)
cacheKeyResponse = commitCacheResponse.result?.gcs?.cache_key ?? ''
cacheKeyResponse =
commitCacheResponse.result?.cache_entry?.cache_user_given_key ??
commitCacheResponse.result?.gcs?.cache_key ??
''
break
}
}

View File

@ -10,9 +10,11 @@ configuration.ts
git_push.sh
index.ts
models/commons-append-operation-input.ts
models/commons-cache-entry-with-stat.ts
models/commons-cache-entry.ts
models/commons-commit-cache-request.ts
models/commons-commit-cache-response.ts
models/commons-daily-operations-breakdown.ts
models/commons-delete-cache-request.ts
models/commons-delete-cache-response.ts
models/commons-gcscommit-cache-response.ts
@ -21,6 +23,11 @@ models/commons-gcsget-cache-reponse.ts
models/commons-gcsreserve-cache-response.ts
models/commons-get-cache-request.ts
models/commons-get-cache-response.ts
models/commons-get-cache-stats-request.ts
models/commons-get-cache-stats-response.ts
models/commons-list-cache-repos-response.ts
models/commons-list-cache-request.ts
models/commons-list-cache-response.ts
models/commons-operation.ts
models/commons-reserve-cache-request.ts
models/commons-reserve-cache-response.ts

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, ope
// @ts-ignore
import { CommonsAppendOperationInput } from '../models';
// @ts-ignore
import { CommonsCacheEntry } from '../models';
// @ts-ignore
import { CommonsCommitCacheRequest } from '../models';
// @ts-ignore
import { CommonsCommitCacheResponse } from '../models';
@ -36,6 +38,16 @@ import { CommonsGetCacheRequest } from '../models';
// @ts-ignore
import { CommonsGetCacheResponse } from '../models';
// @ts-ignore
import { CommonsGetCacheStatsRequest } from '../models';
// @ts-ignore
import { CommonsGetCacheStatsResponse } from '../models';
// @ts-ignore
import { CommonsListCacheReposResponse } from '../models';
// @ts-ignore
import { CommonsListCacheRequest } from '../models';
// @ts-ignore
import { CommonsListCacheResponse } from '../models';
// @ts-ignore
import { CommonsOperation } from '../models';
// @ts-ignore
import { CommonsReserveCacheRequest } from '../models';
@ -115,6 +127,43 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
options: localVarRequestOptions,
};
},
/**
* delete cache by id
* @summary delete cache by id
* @param {string} cacheId Cache ID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheDeleteCacheIdDelete: async (cacheId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'cacheId' is not null or undefined
assertParamExists('v1CacheDeleteCacheIdDelete', 'cacheId', cacheId)
const localVarPath = `/v1/cache/delete/{cacheId}`
.replace(`{${"cacheId"}}`, encodeURIComponent(String(cacheId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWTKeyAuth required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* delete cache
* @summary delete cache
@ -187,6 +236,117 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
options: localVarRequestOptions,
};
},
/**
* get cache stats
* @summary get cache stats
* @param {CommonsGetCacheStatsRequest} body Get Cache Stats Request Body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheGetStatsPost: async (body: CommonsGetCacheStatsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'body' is not null or undefined
assertParamExists('v1CacheGetStatsPost', 'body', body)
const localVarPath = `/v1/cache/get-stats`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWTKeyAuth required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* list cache
* @summary list cache
* @param {CommonsListCacheRequest} body List Cache Request Body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheListPost: async (body: CommonsListCacheRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'body' is not null or undefined
assertParamExists('v1CacheListPost', 'body', body)
const localVarPath = `/v1/cache/list`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWTKeyAuth required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* list cache repos
* @summary list cache repos
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheListReposGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/v1/cache/list-repos`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWTKeyAuth required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* reserve cache
* @summary reserve cache
@ -294,6 +454,19 @@ export const DefaultApiFp = function(configuration?: Configuration) {
const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheCommitPost']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* delete cache by id
* @summary delete cache by id
* @param {string} cacheId Cache ID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async v1CacheDeleteCacheIdDelete(cacheId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonsCacheEntry>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheDeleteCacheIdDelete(cacheId, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheDeleteCacheIdDelete']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* delete cache
* @summary delete cache
@ -320,6 +493,44 @@ export const DefaultApiFp = function(configuration?: Configuration) {
const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheGetPost']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* get cache stats
* @summary get cache stats
* @param {CommonsGetCacheStatsRequest} body Get Cache Stats Request Body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async v1CacheGetStatsPost(body: CommonsGetCacheStatsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonsGetCacheStatsResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheGetStatsPost(body, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheGetStatsPost']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* list cache
* @summary list cache
* @param {CommonsListCacheRequest} body List Cache Request Body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async v1CacheListPost(body: CommonsListCacheRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonsListCacheResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheListPost(body, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheListPost']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* list cache repos
* @summary list cache repos
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async v1CacheListReposGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonsListCacheReposResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheListReposGet(options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheListReposGet']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* reserve cache
* @summary reserve cache
@ -375,6 +586,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
v1CacheCommitPost(requestParameters: DefaultApiV1CacheCommitPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonsCommitCacheResponse> {
return localVarFp.v1CacheCommitPost(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* delete cache by id
* @summary delete cache by id
* @param {DefaultApiV1CacheDeleteCacheIdDeleteRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheDeleteCacheIdDelete(requestParameters: DefaultApiV1CacheDeleteCacheIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonsCacheEntry> {
return localVarFp.v1CacheDeleteCacheIdDelete(requestParameters.cacheId, options).then((request) => request(axios, basePath));
},
/**
* delete cache
* @summary delete cache
@ -395,6 +616,35 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
v1CacheGetPost(requestParameters: DefaultApiV1CacheGetPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonsGetCacheResponse> {
return localVarFp.v1CacheGetPost(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* get cache stats
* @summary get cache stats
* @param {DefaultApiV1CacheGetStatsPostRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheGetStatsPost(requestParameters: DefaultApiV1CacheGetStatsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonsGetCacheStatsResponse> {
return localVarFp.v1CacheGetStatsPost(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* list cache
* @summary list cache
* @param {DefaultApiV1CacheListPostRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheListPost(requestParameters: DefaultApiV1CacheListPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonsListCacheResponse> {
return localVarFp.v1CacheListPost(requestParameters.body, options).then((request) => request(axios, basePath));
},
/**
* list cache repos
* @summary list cache repos
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
v1CacheListReposGet(options?: RawAxiosRequestConfig): AxiosPromise<CommonsListCacheReposResponse> {
return localVarFp.v1CacheListReposGet(options).then((request) => request(axios, basePath));
},
/**
* reserve cache
* @summary reserve cache
@ -432,6 +682,20 @@ export interface DefaultApiV1CacheCommitPostRequest {
readonly body: CommonsCommitCacheRequest
}
/**
* Request parameters for v1CacheDeleteCacheIdDelete operation in DefaultApi.
* @export
* @interface DefaultApiV1CacheDeleteCacheIdDeleteRequest
*/
export interface DefaultApiV1CacheDeleteCacheIdDeleteRequest {
/**
* Cache ID
* @type {string}
* @memberof DefaultApiV1CacheDeleteCacheIdDelete
*/
readonly cacheId: string
}
/**
* Request parameters for v1CacheDeletePost operation in DefaultApi.
* @export
@ -460,6 +724,34 @@ export interface DefaultApiV1CacheGetPostRequest {
readonly body: CommonsGetCacheRequest
}
/**
* Request parameters for v1CacheGetStatsPost operation in DefaultApi.
* @export
* @interface DefaultApiV1CacheGetStatsPostRequest
*/
export interface DefaultApiV1CacheGetStatsPostRequest {
/**
* Get Cache Stats Request Body
* @type {CommonsGetCacheStatsRequest}
* @memberof DefaultApiV1CacheGetStatsPost
*/
readonly body: CommonsGetCacheStatsRequest
}
/**
* Request parameters for v1CacheListPost operation in DefaultApi.
* @export
* @interface DefaultApiV1CacheListPostRequest
*/
export interface DefaultApiV1CacheListPostRequest {
/**
* List Cache Request Body
* @type {CommonsListCacheRequest}
* @memberof DefaultApiV1CacheListPost
*/
readonly body: CommonsListCacheRequest
}
/**
* Request parameters for v1CacheReservePost operation in DefaultApi.
* @export
@ -518,6 +810,18 @@ export class DefaultApi extends BaseAPI {
return DefaultApiFp(this.configuration).v1CacheCommitPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
}
/**
* delete cache by id
* @summary delete cache by id
* @param {DefaultApiV1CacheDeleteCacheIdDeleteRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public v1CacheDeleteCacheIdDelete(requestParameters: DefaultApiV1CacheDeleteCacheIdDeleteRequest, options?: RawAxiosRequestConfig) {
return DefaultApiFp(this.configuration).v1CacheDeleteCacheIdDelete(requestParameters.cacheId, options).then((request) => request(this.axios, this.basePath));
}
/**
* delete cache
* @summary delete cache
@ -542,6 +846,41 @@ export class DefaultApi extends BaseAPI {
return DefaultApiFp(this.configuration).v1CacheGetPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
}
/**
* get cache stats
* @summary get cache stats
* @param {DefaultApiV1CacheGetStatsPostRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public v1CacheGetStatsPost(requestParameters: DefaultApiV1CacheGetStatsPostRequest, options?: RawAxiosRequestConfig) {
return DefaultApiFp(this.configuration).v1CacheGetStatsPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
}
/**
* list cache
* @summary list cache
* @param {DefaultApiV1CacheListPostRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public v1CacheListPost(requestParameters: DefaultApiV1CacheListPostRequest, options?: RawAxiosRequestConfig) {
return DefaultApiFp(this.configuration).v1CacheListPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
}
/**
* list cache repos
* @summary list cache repos
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public v1CacheListReposGet(options?: RawAxiosRequestConfig) {
return DefaultApiFp(this.configuration).v1CacheListReposGet(options).then((request) => request(this.axios, this.basePath));
}
/**
* reserve cache
* @summary reserve cache

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@ -19,7 +19,7 @@ import type { Configuration } from './configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
export const BASE_PATH = "https://api.warpbuild.com/api/v1/backend-cache".replace(/\/+$/, "");
/**
*

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -0,0 +1,108 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface CommonsCacheEntryWithStat
*/
export interface CommonsCacheEntryWithStat {
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'cache_key'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'cache_user_given_key'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'cache_version'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'created_at'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'id'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'last_used_at'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'organization_id'?: string;
/**
*
* @type {number}
* @memberof CommonsCacheEntryWithStat
*/
'size'?: number;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'storage_backend_id'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'storage_backend_location'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'updated_at'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'vcs_organization_name'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'vcs_ref'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntryWithStat
*/
'vcs_repository_name'?: string;
}

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@ -26,6 +26,12 @@ export interface CommonsCacheEntry {
* @memberof CommonsCacheEntry
*/
'cache_key'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntry
*/
'cache_user_given_key'?: string;
/**
*
* @type {string}
@ -56,6 +62,12 @@ export interface CommonsCacheEntry {
* @memberof CommonsCacheEntry
*/
'storage_backend_id'?: string;
/**
*
* @type {string}
* @memberof CommonsCacheEntry
*/
'storage_backend_location'?: string;
/**
*
* @type {string}

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -0,0 +1,54 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface CommonsDailyOperationsBreakdown
*/
export interface CommonsDailyOperationsBreakdown {
/**
*
* @type {number}
* @memberof CommonsDailyOperationsBreakdown
*/
'count'?: number;
/**
*
* @type {number}
* @memberof CommonsDailyOperationsBreakdown
*/
'cumulative_count'?: number;
/**
*
* @type {number}
* @memberof CommonsDailyOperationsBreakdown
*/
'cumulative_size'?: number;
/**
*
* @type {string}
* @memberof CommonsDailyOperationsBreakdown
*/
'date'?: string;
/**
*
* @type {number}
* @memberof CommonsDailyOperationsBreakdown
*/
'size'?: number;
}

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -0,0 +1,54 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface CommonsGetCacheStatsRequest
*/
export interface CommonsGetCacheStatsRequest {
/**
*
* @type {string}
* @memberof CommonsGetCacheStatsRequest
*/
'search_text'?: string;
/**
*
* @type {string}
* @memberof CommonsGetCacheStatsRequest
*/
'stats_from_time'?: string;
/**
*
* @type {string}
* @memberof CommonsGetCacheStatsRequest
*/
'stats_to_time'?: string;
/**
*
* @type {Array<string>}
* @memberof CommonsGetCacheStatsRequest
*/
'vcs_refs'?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof CommonsGetCacheStatsRequest
*/
'vcs_repositories'?: Array<string>;
}

View File

@ -0,0 +1,63 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { CommonsDailyOperationsBreakdown } from './commons-daily-operations-breakdown';
/**
*
* @export
* @interface CommonsGetCacheStatsResponse
*/
export interface CommonsGetCacheStatsResponse {
/**
*
* @type {number}
* @memberof CommonsGetCacheStatsResponse
*/
'average_cache_operations'?: number;
/**
*
* @type {number}
* @memberof CommonsGetCacheStatsResponse
*/
'average_cache_usage'?: number;
/**
*
* @type {number}
* @memberof CommonsGetCacheStatsResponse
*/
'current_total_cache_size'?: number;
/**
*
* @type {Array<CommonsDailyOperationsBreakdown>}
* @memberof CommonsGetCacheStatsResponse
*/
'daily_breakdown'?: Array<CommonsDailyOperationsBreakdown>;
/**
*
* @type {number}
* @memberof CommonsGetCacheStatsResponse
*/
'total_cache_operations'?: number;
/**
*
* @type {Array<string>}
* @memberof CommonsGetCacheStatsResponse
*/
'unique_vcs_refs'?: Array<string>;
}

View File

@ -0,0 +1,30 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface CommonsListCacheReposResponse
*/
export interface CommonsListCacheReposResponse {
/**
*
* @type {Array<string>}
* @memberof CommonsListCacheReposResponse
*/
'vcs_repositories'?: Array<string>;
}

View File

@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface CommonsListCacheRequest
*/
export interface CommonsListCacheRequest {
/**
*
* @type {number}
* @memberof CommonsListCacheRequest
*/
'page'?: number;
/**
*
* @type {number}
* @memberof CommonsListCacheRequest
*/
'per_page'?: number;
/**
*
* @type {string}
* @memberof CommonsListCacheRequest
*/
'search_text'?: string;
/**
*
* @type {string}
* @memberof CommonsListCacheRequest
*/
'sort_by_field'?: string;
/**
*
* @type {string}
* @memberof CommonsListCacheRequest
*/
'sort_order'?: string;
/**
*
* @type {Array<string>}
* @memberof CommonsListCacheRequest
*/
'vcs_refs'?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof CommonsListCacheRequest
*/
'vcs_repositories'?: Array<string>;
}

View File

@ -0,0 +1,57 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { CommonsCacheEntryWithStat } from './commons-cache-entry-with-stat';
/**
*
* @export
* @interface CommonsListCacheResponse
*/
export interface CommonsListCacheResponse {
/**
*
* @type {Array<CommonsCacheEntryWithStat>}
* @memberof CommonsListCacheResponse
*/
'cache_entries_with_stat'?: Array<CommonsCacheEntryWithStat>;
/**
*
* @type {{ [key: string]: string; }}
* @memberof CommonsListCacheResponse
*/
'sortable_fields'?: { [key: string]: string; };
/**
*
* @type {number}
* @memberof CommonsListCacheResponse
*/
'total_entries'?: number;
/**
*
* @type {number}
* @memberof CommonsListCacheResponse
*/
'total_pages'?: number;
/**
*
* @type {Array<string>}
* @memberof CommonsListCacheResponse
*/
'unique_vcs_refs'?: Array<string>;
}

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@ -56,6 +56,18 @@ export interface CommonsOperation {
* @memberof CommonsOperation
*/
'organization_id'?: string;
/**
*
* @type {number}
* @memberof CommonsOperation
*/
'size'?: number;
/**
*
* @type {string}
* @memberof CommonsOperation
*/
'time'?: string;
/**
*
* @type {string}

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,7 +1,9 @@
export * from './commons-append-operation-input';
export * from './commons-cache-entry';
export * from './commons-cache-entry-with-stat';
export * from './commons-commit-cache-request';
export * from './commons-commit-cache-response';
export * from './commons-daily-operations-breakdown';
export * from './commons-delete-cache-request';
export * from './commons-delete-cache-response';
export * from './commons-gcscommit-cache-response';
@ -10,6 +12,11 @@ export * from './commons-gcsget-cache-reponse';
export * from './commons-gcsreserve-cache-response';
export * from './commons-get-cache-request';
export * from './commons-get-cache-response';
export * from './commons-get-cache-stats-request';
export * from './commons-get-cache-stats-response';
export * from './commons-list-cache-repos-response';
export * from './commons-list-cache-request';
export * from './commons-list-cache-response';
export * from './commons-operation';
export * from './commons-reserve-cache-request';
export * from './commons-reserve-cache-response';

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,11 @@
/* tslint:disable */
/* eslint-disable */
/**
* WarpCache
* Caching server for WarpBuild
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* The version of the OpenAPI document: 0.1.0
* Contact: suppport@warpbuild.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech

View File

@ -1,11 +1,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export { $commons_AppendOperationInput } from './schemas/$commons_AppendOperationInput';
export { $commons_CacheAnnotationsMap } from './schemas/$commons_CacheAnnotationsMap';
export { $commons_CacheEntry } from './schemas/$commons_CacheEntry';
export { $commons_CacheEntryWithStat } from './schemas/$commons_CacheEntryWithStat';
export { $commons_CommitCacheRequest } from './schemas/$commons_CommitCacheRequest';
export { $commons_CommitCacheResponse } from './schemas/$commons_CommitCacheResponse';
export { $commons_DailyOperationsBreakdown } from './schemas/$commons_DailyOperationsBreakdown';
export { $commons_DeleteCacheRequest } from './schemas/$commons_DeleteCacheRequest';
export { $commons_DeleteCacheResponse } from './schemas/$commons_DeleteCacheResponse';
export { $commons_GCSCommitCacheResponse } from './schemas/$commons_GCSCommitCacheResponse';
@ -14,6 +17,11 @@ export { $commons_GCSGetCacheReponse } from './schemas/$commons_GCSGetCacheRepon
export { $commons_GCSReserveCacheResponse } from './schemas/$commons_GCSReserveCacheResponse';
export { $commons_GetCacheRequest } from './schemas/$commons_GetCacheRequest';
export { $commons_GetCacheResponse } from './schemas/$commons_GetCacheResponse';
export { $commons_GetCacheStatsRequest } from './schemas/$commons_GetCacheStatsRequest';
export { $commons_GetCacheStatsResponse } from './schemas/$commons_GetCacheStatsResponse';
export { $commons_ListCacheReposResponse } from './schemas/$commons_ListCacheReposResponse';
export { $commons_ListCacheRequest } from './schemas/$commons_ListCacheRequest';
export { $commons_ListCacheResponse } from './schemas/$commons_ListCacheResponse';
export { $commons_Operation } from './schemas/$commons_Operation';
export { $commons_ReserveCacheRequest } from './schemas/$commons_ReserveCacheRequest';
export { $commons_ReserveCacheResponse } from './schemas/$commons_ReserveCacheResponse';

View File

@ -6,6 +6,9 @@ export const $commons_CacheEntry = {
cache_key: {
type: 'string',
},
cache_user_given_key: {
type: 'string',
},
cache_version: {
type: 'string',
},
@ -21,6 +24,9 @@ export const $commons_CacheEntry = {
storage_backend_id: {
type: 'string',
},
storage_backend_location: {
type: 'string',
},
updated_at: {
type: 'string',
},

View File

@ -0,0 +1,49 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $commons_CacheEntryWithStat = {
properties: {
cache_key: {
type: 'string',
},
cache_user_given_key: {
type: 'string',
},
cache_version: {
type: 'string',
},
created_at: {
type: 'string',
},
id: {
type: 'string',
},
last_used_at: {
type: 'string',
},
organization_id: {
type: 'string',
},
size: {
type: 'number',
},
storage_backend_id: {
type: 'string',
},
storage_backend_location: {
type: 'string',
},
updated_at: {
type: 'string',
},
vcs_organization_name: {
type: 'string',
},
vcs_ref: {
type: 'string',
},
vcs_repository_name: {
type: 'string',
},
},
} as const;

View File

@ -5,6 +5,9 @@ export const $commons_CommitCacheRequest = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_key: {
type: 'string',
@ -23,15 +26,26 @@ export const $commons_CommitCacheRequest = {
},
upload_id: {
type: 'string',
description: `UploadID
* This is not supported for GCS cache. When passed this will be ignored. *`,
},
upload_key: {
type: 'string',
description: `UploadKey
* This is not supported for GCS cache. When passed this will be ignored. *`,
},
vcs_ref: {
type: 'string',
description: `VCSRef is the ref of the repository in vcs for which cache is being used.
This can be a branch, git tag, or pull request ref.`,
},
vcs_repository: {
type: 'string',
description: `VCSRepository is the repository name in vcs.
It can be of the format <organization>/<repository> or <repository>.
While saving the entry, <organization>/ will be trimmed if passed.`,
},
vcs_type: {
type: 'string',

View File

@ -5,6 +5,9 @@ export const $commons_CommitCacheResponse = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_entry: {
type: 'commons_CacheEntry',
@ -20,6 +23,9 @@ export const $commons_CommitCacheResponse = {
},
vcs_repository: {
type: 'string',
description: `VCSRepository is the repository name in vcs.
It can be of the format <organization>/<repository> or <repository>.
While saving the entry, <organization>/ will be trimmed if passed.`,
},
},
} as const;

View File

@ -0,0 +1,22 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $commons_DailyOperationsBreakdown = {
properties: {
count: {
type: 'number',
},
cumulative_count: {
type: 'number',
},
cumulative_size: {
type: 'number',
},
date: {
type: 'string',
},
size: {
type: 'number',
},
},
} as const;

View File

@ -5,6 +5,9 @@ export const $commons_DeleteCacheRequest = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_key: {
type: 'string',
@ -16,9 +19,14 @@ export const $commons_DeleteCacheRequest = {
},
vcs_ref: {
type: 'string',
description: `VCSRef is the ref of the repository in vcs for which cache is being used.
This can be a branch, git tag, or pull request ref.`,
},
vcs_repository: {
type: 'string',
description: `VCSRepository is the repository name in vcs.
It can be of the format <organization>/<repository> or <repository>.
While saving the entry, <organization>/ will be trimmed if passed.`,
},
},
} as const;

View File

@ -5,6 +5,9 @@ export const $commons_DeleteCacheResponse = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_entry: {
type: 'commons_CacheEntry',

View File

@ -8,10 +8,14 @@ export const $commons_GCSCommitCacheResponse = {
},
cache_key: {
type: 'string',
description: `CacheKey is the resolved cache key which might contain some prefix or suffix
in addition to the cache key provided by the user. This is the actual storage
location in gcs.`,
isRequired: true,
},
method: {
type: 'string',
description: `Method contains the auth method to be used to connect to the GCP storage backend`,
},
project_id: {
type: 'string',

View File

@ -14,6 +14,7 @@ export const $commons_GCSGetCacheReponse = {
},
method: {
type: 'string',
description: `Method contains the auth method to be used to connect to the GCP storage backend`,
},
pre_signed_url: {
type: 'string',

View File

@ -8,10 +8,14 @@ export const $commons_GCSReserveCacheResponse = {
},
cache_key: {
type: 'string',
description: `CacheKey is the resolved cache key which might contain some prefix or suffix
in addition to the cache key provided by the user. This is the actual storage
location in gcs.`,
isRequired: true,
},
method: {
type: 'string',
description: `Method contains the auth method to be used to connect to the GCP storage backend`,
},
project_id: {
type: 'string',

View File

@ -5,6 +5,9 @@ export const $commons_GetCacheRequest = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_key: {
type: 'string',
@ -22,9 +25,14 @@ export const $commons_GetCacheRequest = {
},
vcs_ref: {
type: 'string',
description: `VCSRef is the ref of the repository in vcs for which cache is being used.
This can be a branch, git tag, or pull request ref.`,
},
vcs_repository: {
type: 'string',
description: `VCSRepository is the repository name in vcs.
It can be of the format <organization>/<repository> or <repository>.
While saving the entry, <organization>/ will be trimmed if passed.`,
},
},
} as const;

View File

@ -5,6 +5,9 @@ export const $commons_GetCacheResponse = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_entry: {
type: 'commons_CacheEntry',

View File

@ -0,0 +1,28 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $commons_GetCacheStatsRequest = {
properties: {
search_text: {
type: 'string',
},
stats_from_time: {
type: 'string',
},
stats_to_time: {
type: 'string',
},
vcs_refs: {
type: 'array',
contains: {
type: 'string',
},
},
vcs_repositories: {
type: 'array',
contains: {
type: 'string',
},
},
},
} as const;

View File

@ -0,0 +1,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $commons_GetCacheStatsResponse = {
properties: {
average_cache_operations: {
type: 'number',
},
average_cache_usage: {
type: 'number',
},
current_total_cache_size: {
type: 'number',
},
daily_breakdown: {
type: 'array',
contains: {
type: 'commons_DailyOperationsBreakdown',
},
},
total_cache_operations: {
type: 'number',
},
unique_vcs_refs: {
type: 'array',
contains: {
type: 'string',
},
},
},
} as const;

View File

@ -0,0 +1,13 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $commons_ListCacheReposResponse = {
properties: {
vcs_repositories: {
type: 'array',
contains: {
type: 'string',
},
},
},
} as const;

View File

@ -0,0 +1,34 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $commons_ListCacheRequest = {
properties: {
page: {
type: 'number',
},
per_page: {
type: 'number',
},
search_text: {
type: 'string',
},
sort_by_field: {
type: 'string',
},
sort_order: {
type: 'string',
},
vcs_refs: {
type: 'array',
contains: {
type: 'string',
},
},
vcs_repositories: {
type: 'array',
contains: {
type: 'string',
},
},
},
} as const;

View File

@ -0,0 +1,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $commons_ListCacheResponse = {
properties: {
cache_entries_with_stat: {
type: 'array',
contains: {
type: 'commons_CacheEntryWithStat',
},
},
sortable_fields: {
type: 'dictionary',
contains: {
type: 'string',
},
},
total_entries: {
type: 'number',
},
total_pages: {
type: 'number',
},
unique_vcs_refs: {
type: 'array',
contains: {
type: 'string',
},
},
},
} as const;

View File

@ -22,6 +22,12 @@ export const $commons_Operation = {
organization_id: {
type: 'string',
},
size: {
type: 'number',
},
time: {
type: 'string',
},
updated_at: {
type: 'string',
},

View File

@ -5,6 +5,9 @@ export const $commons_ReserveCacheRequest = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_key: {
type: 'string',
@ -16,15 +19,28 @@ export const $commons_ReserveCacheRequest = {
},
content_type: {
type: 'string',
description: `ContentType contains the content type of the cache.
* This is not supported for GCS cache. When passed this will be ignored. *`,
},
number_of_chunks: {
type: 'number',
description: `NumberOfChunks contains the number of chunks the cache will be split into.
Minimum value: 1.
Maximum value: 10000.
* This is not supported for GCS cache. When passed this will be ignored. *`,
},
vcs_ref: {
type: 'string',
description: `VCSRef is the ref of the repository in vcs for which cache is being used.
This can be a branch, git tag, or pull request ref.`,
},
vcs_repository: {
type: 'string',
description: `VCSRepository is the repository name in vcs.
It can be of the format <organization>/<repository> or <repository>.
While saving the entry, <organization>/ will be trimmed if passed.`,
},
},
} as const;

View File

@ -5,6 +5,9 @@ export const $commons_ReserveCacheResponse = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
gcs: {
type: 'commons_GCSReserveCacheResponse',

View File

@ -5,6 +5,9 @@ export const $commons_S3GetCacheResponse = {
properties: {
annotations: {
type: 'commons_CacheAnnotationsMap',
description: `Annotations is a map of annotations that can be passed as additional
context to the cache service. This is not stored in the cache but is published
in events for tracking purposes.`,
},
cache_key: {
type: 'string',

View File

@ -5,9 +5,12 @@ export const $commons_ShortLivedToken = {
properties: {
access_token: {
type: 'string',
description: `AccessToken contains the short lived access token to be used to connect to the GCP storage backend`,
},
expires_at: {
type: 'string',
description: `ExpiresAt contains the expiry time of the short lived access token
format: date-time`,
},
},
} as const;

View File

@ -5,21 +5,44 @@ export const $types_CompletedPart = {
properties: {
ChecksumCRC32: {
type: 'string',
description: `The base64-encoded, 32-bit CRC32 checksum of the object. This will only be
present if it was uploaded with the object. With multipart uploads, this may not
be a checksum value of the object. For more information about how checksums are
calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
in the Amazon S3 User Guide.`,
},
ChecksumCRC32C: {
type: 'string',
description: `The base64-encoded, 32-bit CRC32C checksum of the object. This will only be
present if it was uploaded with the object. With multipart uploads, this may not
be a checksum value of the object. For more information about how checksums are
calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
in the Amazon S3 User Guide.`,
},
ChecksumSHA1: {
type: 'string',
description: `The base64-encoded, 160-bit SHA-1 digest of the object. This will only be
present if it was uploaded with the object. With multipart uploads, this may not
be a checksum value of the object. For more information about how checksums are
calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
in the Amazon S3 User Guide.`,
},
ChecksumSHA256: {
type: 'string',
description: `The base64-encoded, 256-bit SHA-256 digest of the object. This will only be
present if it was uploaded with the object. With multipart uploads, this may not
be a checksum value of the object. For more information about how checksums are
calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
in the Amazon S3 User Guide.`,
},
ETag: {
type: 'string',
description: `Entity tag returned when the part was uploaded.`,
},
PartNumber: {
type: 'number',
description: `Part number that identifies the part. This is a positive integer between 1 and
10,000.`,
},
},
} as const;