// This is Generated Source.
import GetTimezoneInfoResponse from "../definitions/GetTimezoneInfoResponse";
import GetTimezoneListResponse from "../definitions/GetTimezoneListResponse";
import PathSegment from "../PathSegment";
export default class Timezone extends PathSegment {
constructor(prv: PathSegment, id?: string, service?) {
super("timezone", id, prv, service);
}
/**
*
Since 1.0.10 (Release 6.2)
Returns all available timezones.
Usage Plan Group
Light
*/
list(query?: ListQuery): Promise {
return this._send({
body: undefined,
ignoreId: false,
method: "get",
query: query,
}).then((res) => {
return res.json();
});
}
/**
* Since 1.0.10 (Release 6.2)
Returns all available timezones.
Usage Plan Group
Light
* return {ApiResponse}
*/
listRaw(query?: ListQuery): Promise {
return this._send({
body: undefined,
ignoreId: false,
method: "get",
query: query,
});
}
/**
* Since 1.0.10 (Release 6.2)
Returns the information on a certain timezone.
Usage Plan Group
Light
*/
get(query?: GetQuery): Promise {
return this._send({
body: undefined,
ignoreId: true,
method: "get",
query: query,
}).then((res) => {
return res.json();
});
}
/**
* Since 1.0.10 (Release 6.2)
Returns the information on a certain timezone.
Usage Plan Group
Light
* return {ApiResponse}
*/
getRaw(query?: GetQuery): Promise {
return this._send({
body: undefined,
ignoreId: true,
method: "get",
query: query,
});
}
}
export interface ListQuery {
/**
* Indicates the page number to retrieve. Only positive number values are allowed. Default value is '1'
*/
page?: string;
/**
* Indicates the page size (number of items). If not specified, the value is '100' by default
*/
perPage?: string;
}
export interface GetQuery {
/**
* Indicates the page number to retrieve. Only positive number values are allowed. Default value is '1'
*/
page?: number;
/**
* Indicates the page size (number of items). If not specified, the value is '100' by default
*/
perPage?: number;
}