@@ -9994,6 +9994,90 @@ export class ListCasesResponse extends $tea.Model {
99949994 }
99959995}
99969996
9997+ export class ListCategoriesRequest extends $tea.Model {
9998+ categoryId?: string;
9999+ instanceId?: string;
10000+ type?: string;
10001+ static names(): { [key: string]: string } {
10002+ return {
10003+ categoryId: 'CategoryId',
10004+ instanceId: 'InstanceId',
10005+ type: 'Type',
10006+ };
10007+ }
10008+
10009+ static types(): { [key: string]: any } {
10010+ return {
10011+ categoryId: 'string',
10012+ instanceId: 'string',
10013+ type: 'string',
10014+ };
10015+ }
10016+
10017+ constructor(map?: { [key: string]: any }) {
10018+ super(map);
10019+ }
10020+ }
10021+
10022+ export class ListCategoriesResponseBody extends $tea.Model {
10023+ code?: string;
10024+ data?: string;
10025+ httpStatusCode?: number;
10026+ message?: string;
10027+ params?: string[];
10028+ requestId?: string;
10029+ static names(): { [key: string]: string } {
10030+ return {
10031+ code: 'Code',
10032+ data: 'Data',
10033+ httpStatusCode: 'HttpStatusCode',
10034+ message: 'Message',
10035+ params: 'Params',
10036+ requestId: 'RequestId',
10037+ };
10038+ }
10039+
10040+ static types(): { [key: string]: any } {
10041+ return {
10042+ code: 'string',
10043+ data: 'string',
10044+ httpStatusCode: 'number',
10045+ message: 'string',
10046+ params: { 'type': 'array', 'itemType': 'string' },
10047+ requestId: 'string',
10048+ };
10049+ }
10050+
10051+ constructor(map?: { [key: string]: any }) {
10052+ super(map);
10053+ }
10054+ }
10055+
10056+ export class ListCategoriesResponse extends $tea.Model {
10057+ headers?: { [key: string]: string };
10058+ statusCode?: number;
10059+ body?: ListCategoriesResponseBody;
10060+ static names(): { [key: string]: string } {
10061+ return {
10062+ headers: 'headers',
10063+ statusCode: 'statusCode',
10064+ body: 'body',
10065+ };
10066+ }
10067+
10068+ static types(): { [key: string]: any } {
10069+ return {
10070+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
10071+ statusCode: 'number',
10072+ body: ListCategoriesResponseBody,
10073+ };
10074+ }
10075+
10076+ constructor(map?: { [key: string]: any }) {
10077+ super(map);
10078+ }
10079+ }
10080+
999710081export class ListCommonTicketFieldsRequest extends $tea.Model {
999810082 instanceId?: string;
999910083 static names(): { [key: string]: string } {
@@ -40748,6 +40832,52 @@ export default class Client extends OpenApi {
4074840832 return await this.listCasesWithOptions(request, runtime);
4074940833 }
4075040834
40835+ /**
40836+ * @param request ListCategoriesRequest
40837+ * @param runtime runtime options for this request RuntimeOptions
40838+ * @return ListCategoriesResponse
40839+ */
40840+ async listCategoriesWithOptions(request: ListCategoriesRequest, runtime: $Util.RuntimeOptions): Promise<ListCategoriesResponse> {
40841+ Util.validateModel(request);
40842+ let query = { };
40843+ if (!Util.isUnset(request.categoryId)) {
40844+ query["CategoryId"] = request.categoryId;
40845+ }
40846+
40847+ if (!Util.isUnset(request.instanceId)) {
40848+ query["InstanceId"] = request.instanceId;
40849+ }
40850+
40851+ if (!Util.isUnset(request.type)) {
40852+ query["Type"] = request.type;
40853+ }
40854+
40855+ let req = new $OpenApi.OpenApiRequest({
40856+ query: OpenApiUtil.query(query),
40857+ });
40858+ let params = new $OpenApi.Params({
40859+ action: "ListCategories",
40860+ version: "2020-07-01",
40861+ protocol: "HTTPS",
40862+ pathname: "/",
40863+ method: "POST",
40864+ authType: "AK",
40865+ style: "RPC",
40866+ reqBodyType: "formData",
40867+ bodyType: "json",
40868+ });
40869+ return $tea.cast<ListCategoriesResponse>(await this.callApi(params, req, runtime), new ListCategoriesResponse({}));
40870+ }
40871+
40872+ /**
40873+ * @param request ListCategoriesRequest
40874+ * @return ListCategoriesResponse
40875+ */
40876+ async listCategories(request: ListCategoriesRequest): Promise<ListCategoriesResponse> {
40877+ let runtime = new $Util.RuntimeOptions({ });
40878+ return await this.listCategoriesWithOptions(request, runtime);
40879+ }
40880+
4075140881 /**
4075240882 * @param request ListCommonTicketFieldsRequest
4075340883 * @param runtime runtime options for this request RuntimeOptions
0 commit comments