@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
218 lines (217 loc) • 11.8 kB
TypeScript
import CloudRegion from '../../models/CloudRegion';
import EncodingMode from '../../models/EncodingMode';
export interface EncodingListQueryParams {
/**
* Index of the first item to return, starting at 0. Default is 0
* @type {number}
* @memberof EncodingListQueryParams
*/
offset?: number | undefined;
/**
* Maximum number of items to return. Default is 25, maximum is 100
* @type {number}
* @memberof EncodingListQueryParams
*/
limit?: number | undefined;
/**
* A boolean indicating whether the total count should be returned as well. Default is false. Setting this flag to true is discouraged.
* @type {boolean}
* @memberof EncodingListQueryParams
*/
includeTotalCount?: boolean | undefined;
/**
* Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
* @type {string}
* @memberof EncodingListQueryParams
*/
sort?: string | undefined;
/**
* Filter encodings to only show the ones with the type specified.
* @type {string}
* @memberof EncodingListQueryParams
*/
type?: string | undefined;
/**
* Filter encodings to only show the ones with the status specified.
* @type {string}
* @memberof EncodingListQueryParams
*/
status?: string | undefined;
/**
* Filter encodings to only show the ones with the cloudRegion specified.
* @type {CloudRegion}
* @memberof EncodingListQueryParams
*/
cloudRegion?: CloudRegion | undefined;
/**
* Filter encodings to only show the ones with the selectedCloudRegion specified which was selected when cloudregion:AUTO was set
* @type {CloudRegion}
* @memberof EncodingListQueryParams
*/
selectedCloudRegion?: CloudRegion | undefined;
/**
* Filter encodings to only show the ones with the encoderVersion specified.
* @type {string}
* @memberof EncodingListQueryParams
*/
encoderVersion?: string | undefined;
/**
* Filter encodings to only show the ones with the encoderVersion specified that was actually used for the encoding.
* @type {string}
* @memberof EncodingListQueryParams
*/
selectedEncoderVersion?: string | undefined;
/**
* Filter encodings to only show the ones with the encodingMode specified that was actually used for the encoding.
* @type {EncodingMode}
* @memberof EncodingListQueryParams
*/
selectedEncodingMode?: EncodingMode | undefined;
/**
* Filter encodings to only show the ones with this exact name.
* @type {string}
* @memberof EncodingListQueryParams
*/
name?: string | undefined;
/**
* The search query string for advanced filtering. We are using the [Apache Lucene](https://lucene.apache.org/) query syntax here. Only lucene queries equivalent to exact matching and startsWith are supported. Also only AND conjunctions supported at the moment. Please be aware that our filters are **case-insensitive** Examples of supported lucene queries: + `name:MyEncoding1` - This searches for encodings with names that are equal to `myencoding1` + `name:\"My Encoding\"` - This searches for encodings with names that are equal to `my encoding` + `name:MyEncoding\\*` - This searches for encodings with names that are equal to `myencoding*` Please have a look at the [Lucene Documentation - Escaping Special Characters](https://lucene.apache.org/core/8_1_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters) section to see what characters have to be escaped. + `name:test*` - This searches for encodings with names that start with `test` + `name:test* AND labels:Customer1` - This searches for encodings with names starting with `test` and labels containing an entry that is equal to `customer1` Available search fields: + `name` + `labels` Please be aware to send these queries url encoded. If you provide fields or lucene queries that are not supported, it will result in an error response.
* @type {string}
* @memberof EncodingListQueryParams
*/
search?: string | undefined;
/**
* Filter encodings to only return those created after this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof EncodingListQueryParams
*/
createdAtNewerThan?: Date | undefined;
/**
* Filter encodings to only return those created before this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof EncodingListQueryParams
*/
createdAtOlderThan?: Date | undefined;
/**
* Filter encodings to only return those started after this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof EncodingListQueryParams
*/
startedAtNewerThan?: Date | undefined;
/**
* Filter encodings to only return those started before this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
* @type {Date}
* @memberof EncodingListQueryParams
*/
startedAtOlderThan?: Date | undefined;
/**
* Filter encodings to only return those finished at newer than this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ Available for all encodings started after REST API Service release v1.50.0 (Changelogs for more information https://bitmovin.com/docs/encoding/changelogs/rest)
* @type {Date}
* @memberof EncodingListQueryParams
*/
finishedAtNewerThan?: Date | undefined;
/**
* Filter encodings to only return those finished at older than this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ Available for all encodings started after REST API Service release v1.50.0 (Changelogs for more information https://bitmovin.com/docs/encoding/changelogs/rest)
* @type {Date}
* @memberof EncodingListQueryParams
*/
finishedAtOlderThan?: Date | undefined;
}
export declare class EncodingListQueryParamsBuilder {
private internalParams;
/**
*
* @param offset Index of the first item to return, starting at 0. Default is 0
*/
offset(offset: number): this;
/**
*
* @param limit Maximum number of items to return. Default is 25, maximum is 100
*/
limit(limit: number): this;
/**
*
* @param includeTotalCount A boolean indicating whether the total count should be returned as well. Default is false. Setting this flag to true is discouraged.
*/
includeTotalCount(includeTotalCount: boolean): this;
/**
*
* @param sort Order list result according an encoding resource attribute. The fields that can be used for sorting are: + `id` + `startedAt` + `createdAt` + `modifiedAt` + `finishedAt` + `type` + `name` + `status` + `cloudRegion` + `encoderVersion`
*/
sort(sort: string): this;
/**
*
* @param type Filter encodings to only show the ones with the type specified.
*/
type(type: string): this;
/**
*
* @param status Filter encodings to only show the ones with the status specified.
*/
status(status: string): this;
/**
*
* @param cloudRegion Filter encodings to only show the ones with the cloudRegion specified.
*/
cloudRegion(cloudRegion: CloudRegion): this;
/**
*
* @param selectedCloudRegion Filter encodings to only show the ones with the selectedCloudRegion specified which was selected when cloudregion:AUTO was set
*/
selectedCloudRegion(selectedCloudRegion: CloudRegion): this;
/**
*
* @param encoderVersion Filter encodings to only show the ones with the encoderVersion specified.
*/
encoderVersion(encoderVersion: string): this;
/**
*
* @param selectedEncoderVersion Filter encodings to only show the ones with the encoderVersion specified that was actually used for the encoding.
*/
selectedEncoderVersion(selectedEncoderVersion: string): this;
/**
*
* @param selectedEncodingMode Filter encodings to only show the ones with the encodingMode specified that was actually used for the encoding.
*/
selectedEncodingMode(selectedEncodingMode: EncodingMode): this;
/**
*
* @param name Filter encodings to only show the ones with this exact name.
*/
name(name: string): this;
/**
*
* @param search The search query string for advanced filtering. We are using the [Apache Lucene](https://lucene.apache.org/) query syntax here. Only lucene queries equivalent to exact matching and startsWith are supported. Also only AND conjunctions supported at the moment. Please be aware that our filters are **case-insensitive** Examples of supported lucene queries: + `name:MyEncoding1` - This searches for encodings with names that are equal to `myencoding1` + `name:\"My Encoding\"` - This searches for encodings with names that are equal to `my encoding` + `name:MyEncoding\\*` - This searches for encodings with names that are equal to `myencoding*` Please have a look at the [Lucene Documentation - Escaping Special Characters](https://lucene.apache.org/core/8_1_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters) section to see what characters have to be escaped. + `name:test*` - This searches for encodings with names that start with `test` + `name:test* AND labels:Customer1` - This searches for encodings with names starting with `test` and labels containing an entry that is equal to `customer1` Available search fields: + `name` + `labels` Please be aware to send these queries url encoded. If you provide fields or lucene queries that are not supported, it will result in an error response.
*/
search(search: string): this;
/**
*
* @param createdAtNewerThan Filter encodings to only return those created after this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
*/
createdAtNewerThan(createdAtNewerThan: Date): this;
/**
*
* @param createdAtOlderThan Filter encodings to only return those created before this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
*/
createdAtOlderThan(createdAtOlderThan: Date): this;
/**
*
* @param startedAtNewerThan Filter encodings to only return those started after this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
*/
startedAtNewerThan(startedAtNewerThan: Date): this;
/**
*
* @param startedAtOlderThan Filter encodings to only return those started before this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
*/
startedAtOlderThan(startedAtOlderThan: Date): this;
/**
*
* @param finishedAtNewerThan Filter encodings to only return those finished at newer than this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ Available for all encodings started after REST API Service release v1.50.0 (Changelogs for more information https://bitmovin.com/docs/encoding/changelogs/rest)
*/
finishedAtNewerThan(finishedAtNewerThan: Date): this;
/**
*
* @param finishedAtOlderThan Filter encodings to only return those finished at older than this exact time, provided in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ Available for all encodings started after REST API Service release v1.50.0 (Changelogs for more information https://bitmovin.com/docs/encoding/changelogs/rest)
*/
finishedAtOlderThan(finishedAtOlderThan: Date): this;
buildQueryParams(): EncodingListQueryParams;
}