Skip to content

Commit

Permalink
Remove unused "condition" fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Jan 2, 2024
1 parent 25a623b commit 14a47e7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 199 deletions.
4 changes: 2 additions & 2 deletions src/public/shared/generated/apis/FileApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class FileApi extends runtime.BaseAPI {
}

/**
* Deletes a file synchronously.
* Deletes a file synchronously. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
*/
async deleteFile(params: DeleteFileParams): Promise<void> {
const query: any = {};
Expand Down Expand Up @@ -291,7 +291,7 @@ export class FileApi extends runtime.BaseAPI {
}

/**
* Deletes multiple files asynchronously.
* Deletes multiple files asynchronously. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
*/
async deleteFileBatch(params: DeleteFileBatchOperationParams): Promise<AsyncResponse> {
const query: any = {};
Expand Down
14 changes: 7 additions & 7 deletions src/public/shared/generated/apis/FolderApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export interface PutFolderOperationParams {

export class FolderApi extends runtime.BaseAPI {
/**
* Copies a folder asynchronously. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles```, ```includeOverriddenStorage``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
* Copies a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter.
*/
async copyFolder(params: CopyFolderOperationParams): Promise<AsyncResponse> {
const query: any = {};
Expand Down Expand Up @@ -123,7 +123,7 @@ export class FolderApi extends runtime.BaseAPI {
}

/**
* Copies multiple folders asynchronously. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles```, ```includeOverriddenStorage``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
* Copies multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter.
*/
async copyFolderBatch(params: CopyFolderBatchOperationParams): Promise<AsyncResponse> {
const query: any = {};
Expand Down Expand Up @@ -151,7 +151,7 @@ export class FolderApi extends runtime.BaseAPI {
}

/**
* Deletes a folder asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
* Deletes a folder asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation using the `dryRun` parameter. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
*/
async deleteFolder(params: DeleteFolderOperationParams): Promise<AsyncResponse> {
const query: any = {};
Expand Down Expand Up @@ -179,7 +179,7 @@ export class FolderApi extends runtime.BaseAPI {
}

/**
* Deletes multiple folders asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
* Deletes multiple folders asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation using the `dryRun` parameter. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
*/
async deleteFolderBatch(params: DeleteFolderBatchOperationParams): Promise<AsyncResponse> {
const query: any = {};
Expand Down Expand Up @@ -207,7 +207,7 @@ export class FolderApi extends runtime.BaseAPI {
}

/**
* Gets the full details (e.g. permission, storage layer, etc.) for a folder. Returns an empty object if no settings have been configured for this folder.
* Gets the full details (e.g. permission, storage layer, etc.) for a folder. Returns an empty object if no settings have been configured for this folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
*/
async getFolderDetails(params: GetFolderDetailsParams): Promise<FolderDetails> {
const query: any = {};
Expand Down Expand Up @@ -236,7 +236,7 @@ export class FolderApi extends runtime.BaseAPI {
}

/**
* Lists the folder\'s contents. The result may be paginated: subsequent pages can be requested by passing the ```cursor``` from the response into the ```cursor``` request parameter. Pagination is complete when the response includes `isPaginationComplete=true`.
* Lists the folder\'s contents. The result may be paginated: subsequent pages can be requested by passing the ```cursor``` from the response into the next request. Pagination is complete when the response includes `isPaginationComplete=true`.
*/
async listFolder(params: ListFolderParams): Promise<ListFolderResponse> {
const query: any = {};
Expand Down Expand Up @@ -297,7 +297,7 @@ export class FolderApi extends runtime.BaseAPI {
}

/**
* Creates or updates the folder specified by the `folderPath`. If the folder\'s ancestors do not exist, they will be created automatically (with empty FolderSettings). Note: you don\'t need to create folders before uploading files to them.
* Creates or updates the folder specified by the `folderPath`. If the folder\'s ancestors do not exist, they will be created automatically (with empty FolderSettings). Note: you don\'t need to create folders before uploading files to them. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
*/
async putFolder(params: PutFolderOperationParams): Promise<FolderDetails> {
const query: any = {};
Expand Down
202 changes: 12 additions & 190 deletions src/public/shared/generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export type AccountJobStatus =
* @export
*/
export type AccountJobType =
| "ProcessFileJob"
| "ProcessVideoJob"
| "ProcessAudioJob"
| "AntivirusJob"
| "DeleteFolderBatchJob"
| "DeleteFileBatchJob"
| "CopyFolderBatchJob"
Expand Down Expand Up @@ -249,12 +251,6 @@ export interface CopyFileBatchRequest {
* @interface CopyFileRequest
*/
export interface CopyFileRequest {
/**
*
* @type {TagCondition}
* @memberof CopyFileRequest
*/
condition?: TagCondition;
/**
* Absolute path to a file. Begins with a `/`.
* @type {string}
Expand Down Expand Up @@ -300,12 +296,6 @@ export interface CopyFolderBatchRequest {
* @interface CopyFolderRequest
*/
export interface CopyFolderRequest {
/**
*
* @type {TagCondition}
* @memberof CopyFolderRequest
*/
condition?: TagCondition;
/**
* If `true` then copies files.
*
Expand All @@ -315,7 +305,13 @@ export interface CopyFolderRequest {
*/
copyFiles?: boolean;
/**
* If `true` then copies files from folders that have overridden storage settings, else skips them. The current folder is treated the same: if it has overridden storage settings, then its files will only be copied if this flag is `true`, else they will be skipped.
* If `true` then copies files from folders that have overridden storage settings, else skips them.
*
* If the `source` folder overrides its storage settings, then its files will only be copied if this flag is `true`.
*
* If the `source` folder inherits its storage settings, then its files will be copied regardless of this flag.
*
* In all cases, files will only be copied if `copyFiles` is also set to `true`.
*
* You can ignore this setting if your account does not use folders with overridden storage settings, such as custom AWS S3 buckets.
*
Expand Down Expand Up @@ -452,7 +448,7 @@ export interface DeleteFolderBatchRequest {
*
* If the folder has overridden storage settings, then no files will be deleted.
*
* You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles``` and ```includeVirtualFolders``` set to match the values you're using here. Leave all other flags unset.
* You can use ListFolder to preview the operation using the `dryRun` parameter.
* @export
* @interface DeleteFolderRequest
*/
Expand Down Expand Up @@ -616,7 +612,7 @@ export interface DynamicFilePath {
folderPathVariablesEnabled?: boolean;
}
/**
* Response body for all error responses.
* Response body for client-side and server-side errors.
* @export
* @interface ErrorResponse
*/
Expand Down Expand Up @@ -1959,180 +1955,6 @@ export type StorageLayerUpdate =
| R2Storage
| S3Storage
| WebStorage;
/**
* @type TagCondition
* Expresses a condition that matches files by their tags.
* @export
*/
export type TagCondition =
| TagConditionAll
| TagConditionAnd
| TagConditionAny
| TagConditionEquals
| TagConditionNot
| TagConditionOr;
/**
*
* @export
* @interface TagConditionAll
*/
export interface TagConditionAll {
/**
*
* @type {Array<string>}
* @memberof TagConditionAll
*/
all: Array<string>;
/**
*
* @type {string}
* @memberof TagConditionAll
*/
type: TagConditionAllTypeEnum;
}

/**
* @export
*/
export type TagConditionAllTypeEnum = "All";

/**
*
* @export
* @interface TagConditionAnd
*/
export interface TagConditionAnd {
/**
*
* @type {TagCondition}
* @memberof TagConditionAnd
*/
left: TagCondition;
/**
*
* @type {TagCondition}
* @memberof TagConditionAnd
*/
right: TagCondition;
/**
*
* @type {string}
* @memberof TagConditionAnd
*/
type: TagConditionAndTypeEnum;
}

/**
* @export
*/
export type TagConditionAndTypeEnum = "And";

/**
*
* @export
* @interface TagConditionAny
*/
export interface TagConditionAny {
/**
*
* @type {Array<string>}
* @memberof TagConditionAny
*/
any: Array<string>;
/**
*
* @type {string}
* @memberof TagConditionAny
*/
type: TagConditionAnyTypeEnum;
}

/**
* @export
*/
export type TagConditionAnyTypeEnum = "Any";

/**
*
* @export
* @interface TagConditionEquals
*/
export interface TagConditionEquals {
/**
* File tag scope, e.g. for a transformation definition, a CDN download access token, or an API key's tag whitelist.
* @type {string}
* @memberof TagConditionEquals
*/
equals: string;
/**
*
* @type {string}
* @memberof TagConditionEquals
*/
type: TagConditionEqualsTypeEnum;
}

/**
* @export
*/
export type TagConditionEqualsTypeEnum = "Equals";

/**
*
* @export
* @interface TagConditionNot
*/
export interface TagConditionNot {
/**
*
* @type {TagCondition}
* @memberof TagConditionNot
*/
condition: TagCondition;
/**
*
* @type {string}
* @memberof TagConditionNot
*/
type: TagConditionNotTypeEnum;
}

/**
* @export
*/
export type TagConditionNotTypeEnum = "Not";

/**
*
* @export
* @interface TagConditionOr
*/
export interface TagConditionOr {
/**
*
* @type {TagCondition}
* @memberof TagConditionOr
*/
left: TagCondition;
/**
*
* @type {TagCondition}
* @memberof TagConditionOr
*/
right: TagCondition;
/**
*
* @type {string}
* @memberof TagConditionOr
*/
type: TagConditionOrTypeEnum;
}

/**
* @export
*/
export type TagConditionOrTypeEnum = "Or";

/**
* This data type specifies no update is to be performed.
* @export
Expand Down

0 comments on commit 14a47e7

Please sign in to comment.