| // This file is auto-generated, don't edit it |
| import Util, * as $Util from '@alicloud/tea-util'; |
| import OpenApi, * as $OpenApi from '@alicloud/openapi-client'; |
| import * as $tea from '@alicloud/tea-typescript'; |
| |
| /** |
| * @remarks |
| * EventBus Controller apis: |
| * createEventBus * |
| * getEventBus * |
| * deleteEventBus * |
| * listEventBuses * |
| */ |
| export class CreateEventBusRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The description of the event bus. |
| * |
| * @example |
| * demo |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The name of the event bus. This parameter is required. |
| * |
| * @example |
| * MyEventBus |
| */ |
| eventBusName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| description: 'description', |
| eventBusName: 'eventBusName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| description: 'string', |
| eventBusName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateEventBusResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. Other values indicate that the request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The name of the event bus. This parameter is required. |
| * |
| * @example |
| * MyEventBus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * The event bus [xxxx] not existed! |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * A995F07C-E503-5881-9962-9CECA8566876 |
| */ |
| requestId?: string; |
| /** |
| * @remarks |
| * Indicates whether the request is successful. The value true indicates that the request is successful. |
| * |
| * @example |
| * true |
| */ |
| success?: boolean; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| eventBusName: 'eventBusName', |
| message: 'message', |
| requestId: 'requestId', |
| success: 'success', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| eventBusName: 'string', |
| message: 'string', |
| requestId: 'string', |
| success: 'boolean', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateEventBusResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: CreateEventBusResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: CreateEventBusResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventBusRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus. This parameter is required. |
| * |
| * @example |
| * MyEventBus |
| */ |
| eventBusName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventBusResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The timestamp that indicates when the event bus was created. |
| * |
| * @example |
| * 1641781825000 |
| */ |
| createTimestamp?: number; |
| /** |
| * @remarks |
| * The description of the event bus. |
| * |
| * @example |
| * demo |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The name of the event bus. |
| * |
| * @example |
| * MyEventBus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The error message that is returned if the request failed. |
| * |
| * @example |
| * EventBusNotExist |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * d5bfc188-4452-4ba7-b73a-a9005e522439 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| createTimestamp: 'createTimestamp', |
| description: 'description', |
| eventBusName: 'eventBusName', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| createTimestamp: 'number', |
| description: 'string', |
| eventBusName: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventBusResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: GetEventBusResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: GetEventBusResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListEventBusesRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The maximum number of entries to be returned in a call. You can use this parameter and NextToken to implement paging. Note: Up to 100 entries can be returned in a call. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| /** |
| * @remarks |
| * If you set Limit and excess return values exist, this parameter is returned. |
| * |
| * @example |
| * 10 |
| */ |
| nextToken?: string; |
| static names(): { [key: string]: string } { |
| return { |
| maxResults: 'maxResults', |
| nextToken: 'nextToken', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| maxResults: 'number', |
| nextToken: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListEventBusesResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned HTTP status code. The HTTP status code 200 indicates that the request is successful. |
| * |
| * @example |
| * 200 |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The timestamp that indicates when the event bus was created. |
| */ |
| eventBuses?: ListEventBusesResponseBodyEventBuses[]; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * InvalidArgument |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * D1DCF64A-3F2C-5323-ADCB-3F4DF30FAD2D |
| */ |
| requestId?: string; |
| /** |
| * @remarks |
| * If excess return values exist, this parameter is returned. |
| * |
| * @example |
| * 10 |
| */ |
| nextToken?: string; |
| /** |
| * @remarks |
| * The total number of entries. |
| * |
| * @example |
| * 2 |
| */ |
| total?: number; |
| /** |
| * @remarks |
| * If you set Limit and excess return values exist, this parameter is returned. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| eventBuses: 'eventBuses', |
| message: 'message', |
| requestId: 'requestId', |
| nextToken: 'nextToken', |
| total: 'total', |
| maxResults: 'maxResults', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| eventBuses: { 'type': 'array', 'itemType': ListEventBusesResponseBodyEventBuses }, |
| message: 'string', |
| requestId: 'string', |
| nextToken: 'string', |
| total: 'number', |
| maxResults: 'number', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListEventBusesResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: ListEventBusesResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: ListEventBusesResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventBusRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus. This parameter is required. |
| * |
| * @example |
| * MyEventBus |
| */ |
| eventBusName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventBusResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned HTTP status code. The HTTP status code 200 indicates that the request is successful. |
| * |
| * @example |
| * 200 |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * EventBusNotExist |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * C229E140-1A5C-5D55-8904-CFC5BA4CAA98 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventBusResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: DeleteEventBusResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: DeleteEventBusResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| /** |
| * @remarks |
| * ApiDestination Controller apis: |
| * createApiDestination * |
| * updateApiDestination * |
| * getApiDestination * |
| * deleteApiDestination * |
| * listApiDestinations * |
| */ |
| export class CreateApiDestinationRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the API destination. The name must be 2 to 127 characters in length. This parameter is required. |
| * |
| * @example |
| * api-destination-name |
| */ |
| apiDestinationName?: string; |
| /** |
| * @remarks |
| * The name of the connection. The name must be 2 to 127 characters in length. Before you configure this parameter, you must call the CreateConnection operation to create a connection. Then, set this parameter to the name of the connection that you created. This parameter is required. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| /** |
| * @remarks |
| * The description of the API destination. The description can be up to 255 characters in length. |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The parameters that are configured for the API destination. This parameter is required. |
| */ |
| httpApiParameters?: CreateApiDestinationRequestHttpApiParameters; |
| /** |
| * @remarks |
| * TODO |
| */ |
| invocationRateLimitPerSecond?: number; |
| static names(): { [key: string]: string } { |
| return { |
| apiDestinationName: 'apiDestinationName', |
| connectionName: 'connectionName', |
| description: 'description', |
| httpApiParameters: 'httpApiParameters', |
| invocationRateLimitPerSecond: 'invocationRateLimitPerSecond', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| apiDestinationName: 'string', |
| connectionName: 'string', |
| description: 'string', |
| httpApiParameters: CreateApiDestinationRequestHttpApiParameters, |
| invocationRateLimitPerSecond: 'number', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateApiDestinationResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The name of the API destination. |
| * |
| * @example |
| * ApiDestinationName |
| */ |
| apiDestinationName?: string; |
| /** |
| * @remarks |
| * The returned message. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 5DAF96FB-A4B6-548C-B999-0BFDCB2261B9 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| apiDestinationName: 'apiDestinationName', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| apiDestinationName: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateApiDestinationResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: CreateApiDestinationResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: CreateApiDestinationResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateApiDestinationRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the API destination. The name must be 2 to 127 characters in length. This parameter is required. |
| * |
| * @example |
| * api-destination-name |
| */ |
| apiDestinationName?: string; |
| /** |
| * @remarks |
| * The name of the connection. The name must be 2 to 127 characters in length. Before you configure this parameter, you must call the CreateConnection operation to create a connection. Then, set this parameter to the name of the connection that you created. This parameter is required. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| /** |
| * @remarks |
| * The description of the API destination. The description can be up to 255 characters in length. |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The parameters that are configured for the API destination. This parameter is required. |
| */ |
| httpApiParameters?: UpdateApiDestinationRequestHttpApiParameters; |
| /** |
| * @remarks |
| * TODO |
| */ |
| invocationRateLimitPerSecond?: number; |
| static names(): { [key: string]: string } { |
| return { |
| apiDestinationName: 'apiDestinationName', |
| connectionName: 'connectionName', |
| description: 'description', |
| httpApiParameters: 'httpApiParameters', |
| invocationRateLimitPerSecond: 'invocationRateLimitPerSecond', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| apiDestinationName: 'string', |
| connectionName: 'string', |
| description: 'string', |
| httpApiParameters: UpdateApiDestinationRequestHttpApiParameters, |
| invocationRateLimitPerSecond: 'number', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateApiDestinationResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned message. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 5DAF96FB-A4B6-548C-B999-0BFDCB2261B9 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateApiDestinationResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: UpdateApiDestinationResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: UpdateApiDestinationResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetApiDestinationRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the API destination. This parameter is required. |
| * |
| * @example |
| * api-destination-name |
| */ |
| apiDestinationName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| apiDestinationName: 'apiDestinationName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| apiDestinationName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetApiDestinationResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The name of the API destination. |
| * |
| * @example |
| * api-destination-2 |
| */ |
| apiDestinationName?: string; |
| /** |
| * @remarks |
| * The connection name. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| /** |
| * @remarks |
| * The description of the connection. |
| * |
| * @example |
| * demo |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The time when the API destination was created. |
| * |
| * @example |
| * 1665223213000 |
| */ |
| gmtCreate?: number; |
| /** |
| * @remarks |
| * The request parameters that are configured for the API destination. |
| */ |
| httpApiParameters?: GetApiDestinationResponseBodyHttpApiParameters; |
| /** |
| * @remarks |
| * TODO |
| */ |
| invocationRateLimitPerSecond?: number; |
| /** |
| * @remarks |
| * The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * B896B484-F16D-59DE-9E23-DD0E5C361108 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| apiDestinationName: 'apiDestinationName', |
| connectionName: 'connectionName', |
| description: 'description', |
| gmtCreate: 'gmtCreate', |
| httpApiParameters: 'httpApiParameters', |
| invocationRateLimitPerSecond: 'invocationRateLimitPerSecond', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| apiDestinationName: 'string', |
| connectionName: 'string', |
| description: 'string', |
| gmtCreate: 'number', |
| httpApiParameters: GetApiDestinationResponseBodyHttpApiParameters, |
| invocationRateLimitPerSecond: 'number', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetApiDestinationResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: GetApiDestinationResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: GetApiDestinationResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteApiDestinationRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the API destination. This parameter is required. |
| * |
| * @example |
| * ApiDestinationName |
| */ |
| apiDestinationName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| apiDestinationName: 'apiDestinationName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| apiDestinationName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteApiDestinationResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 382E6272-8E9C-5681-AC96-A8AF0BFAC1A5 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteApiDestinationResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: DeleteApiDestinationResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: DeleteApiDestinationResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListApiDestinationsRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The prefix of the API destination name. |
| * |
| * @example |
| * api-demo |
| */ |
| apiDestinationNamePrefix?: string; |
| /** |
| * @remarks |
| * The connection name. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| /** |
| * @remarks |
| * The maximum number of entries to be returned in a call. You can use this parameter and NextToken to implement paging. |
| * |
| * * Default value: 10. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| /** |
| * @remarks |
| * If you set Limit and excess return values exist, this parameter is returned. |
| * |
| * * Default value: 0. |
| * |
| * @example |
| * 0 |
| */ |
| nextToken?: string; |
| static names(): { [key: string]: string } { |
| return { |
| apiDestinationNamePrefix: 'apiDestinationNamePrefix', |
| connectionName: 'connectionName', |
| maxResults: 'maxResults', |
| nextToken: 'nextToken', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| apiDestinationNamePrefix: 'string', |
| connectionName: 'string', |
| maxResults: 'number', |
| nextToken: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListApiDestinationsResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The API destinations. |
| */ |
| apiDestinations?: ListApiDestinationsResponseBodyApiDestinations[]; |
| /** |
| * @remarks |
| * The maximum number of entries returned per page. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| /** |
| * @remarks |
| * If excess return values exist, this parameter is returned. |
| * |
| * @example |
| * 1 |
| */ |
| nextToken?: string; |
| /** |
| * @remarks |
| * The total number of entries returned. |
| * |
| * @example |
| * 2 |
| */ |
| total?: number; |
| /** |
| * @remarks |
| * The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 96D7C0AB-DCE5-5E82-96B8-4725E1706BB1 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| apiDestinations: 'apiDestinations', |
| maxResults: 'maxResults', |
| nextToken: 'nextToken', |
| total: 'total', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| apiDestinations: { 'type': 'array', 'itemType': ListApiDestinationsResponseBodyApiDestinations }, |
| maxResults: 'number', |
| nextToken: 'string', |
| total: 'number', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListApiDestinationsResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: ListApiDestinationsResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: ListApiDestinationsResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| /** |
| * @remarks |
| * Connection Controller apis: |
| * createConnection * |
| * deleteConnection * |
| * updateConnection * |
| * getConnection * |
| * selectOneConnection * |
| * listConnections * |
| * listEnumsResponse * |
| */ |
| export class CreateConnectionRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The parameters that are configured for authentication. |
| */ |
| authParameters?: CreateConnectionRequestAuthParameters; |
| /** |
| * @remarks |
| * The name of the connection. The name must be 2 to 127 characters in length. |
| * |
| * This parameter is required. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| /** |
| * @remarks |
| * The description of the connection. The description can be up to 255 characters in length. |
| * |
| * @example |
| * demo |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The parameters that are configured for the network. This parameter is required. |
| */ |
| networkParameters?: CreateConnectionRequestNetworkParameters; |
| static names(): { [key: string]: string } { |
| return { |
| authParameters: 'authParameters', |
| connectionName: 'connectionName', |
| description: 'description', |
| networkParameters: 'networkParameters', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| authParameters: CreateConnectionRequestAuthParameters, |
| connectionName: 'string', |
| description: 'string', |
| networkParameters: CreateConnectionRequestNetworkParameters, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateConnectionResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The connection name. |
| * |
| * @example |
| * connection-demo |
| */ |
| connectionName?: string; |
| /** |
| * @remarks |
| * The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 7DA60DED-CD36-5837-B848-C01A23D2**** |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| connectionName: 'connectionName', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| connectionName: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateConnectionResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: CreateConnectionResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: CreateConnectionResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteConnectionRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the connection that you want to delete. This parameter is required. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| connectionName: 'connectionName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| connectionName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteConnectionResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 8EF25E37-1750-5D7A-BA56-F8AE081A69C8 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteConnectionResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: DeleteConnectionResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: DeleteConnectionResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateConnectionRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The parameters that are configured for authentication. |
| */ |
| authParameters?: UpdateConnectionRequestAuthParameters; |
| /** |
| * @remarks |
| * The name of the connection. The name must be 2 to 127 characters in length. |
| * |
| * This parameter is required. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| /** |
| * @remarks |
| * The description of the connection. The description can be up to 255 characters in length. |
| * |
| * @example |
| * demo |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The parameters that are configured for the network. This parameter is required. |
| */ |
| networkParameters?: UpdateConnectionRequestNetworkParameters; |
| static names(): { [key: string]: string } { |
| return { |
| authParameters: 'authParameters', |
| connectionName: 'connectionName', |
| description: 'description', |
| networkParameters: 'networkParameters', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| authParameters: UpdateConnectionRequestAuthParameters, |
| connectionName: 'string', |
| description: 'string', |
| networkParameters: UpdateConnectionRequestNetworkParameters, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateConnectionResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned message. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 8346BE8F-40F3-533D-A0B8-1359C31BD5BA |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateConnectionResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: UpdateConnectionResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: UpdateConnectionResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetConnectionRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The connection name. This parameter is required. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| connectionName: 'connectionName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| connectionName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetConnectionResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The value of the key in the request path. |
| */ |
| connections?: GetConnectionResponseBodyConnections[]; |
| /** |
| * @remarks |
| * The returned message. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The returned request ID. |
| * |
| * @example |
| * 34AD682D-5B91-5773-8132-AA38C130**** |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| connections: 'connections', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| connections: { 'type': 'array', 'itemType': GetConnectionResponseBodyConnections }, |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetConnectionResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: GetConnectionResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: GetConnectionResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListConnectionsRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The key word that you specify to query connections. Connections can be queried by prefixes. |
| * |
| * @example |
| * connection-name |
| */ |
| connectionNamePrefix?: string; |
| /** |
| * @remarks |
| * The maximum number of entries to be returned in a single call. You can use this parameter and the NextToken parameter to implement paging. |
| * |
| * * Default value: 10. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| /** |
| * @remarks |
| * If you set the Limit parameter and excess return values exist, this parameter is returned. |
| * |
| * * Default value: 0. |
| * |
| * @example |
| * 0 |
| */ |
| nextToken?: string; |
| static names(): { [key: string]: string } { |
| return { |
| connectionNamePrefix: 'connectionNamePrefix', |
| maxResults: 'maxResults', |
| nextToken: 'nextToken', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| connectionNamePrefix: 'string', |
| maxResults: 'number', |
| nextToken: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListConnectionsResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The HTTP status code. The value Success indicates that the request is successful. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The value of the key in the request path. |
| */ |
| connections?: ListConnectionsResponseBodyConnections[]; |
| /** |
| * @remarks |
| * The number of entries returned per page. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| /** |
| * @remarks |
| * If excess return values exist, this parameter is returned. |
| * |
| * @example |
| * 0 |
| */ |
| nextToken?: string; |
| /** |
| * @remarks |
| * The total number of entries returned. |
| * |
| * @example |
| * 1 |
| */ |
| total?: number; |
| /** |
| * @remarks |
| * The message returned. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use the ID to troubleshoot issues. |
| * |
| * @example |
| * E3619976-8714-5D88-BBA2-6983D798A8BB |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| connections: 'connections', |
| maxResults: 'maxResults', |
| nextToken: 'nextToken', |
| total: 'total', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| connections: { 'type': 'array', 'itemType': ListConnectionsResponseBodyConnections }, |
| maxResults: 'number', |
| nextToken: 'string', |
| total: 'number', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListConnectionsResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: ListConnectionsResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: ListConnectionsResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| // enum AuthorizationTypeEnums : string { |
| // API_KEY_AUTH(name="API_KEY_AUTH", value="API_KEY_AUTH"), |
| // BASIC_AUTH(name="BASIC_AUTH", value="BASIC_AUTH"), |
| // OAUTH_AUTH(name="OAUTH_AUTH", value="OAUTH_AUTH"), |
| // } |
| // enum NetworkTypeEnum : string { |
| // PUBLIC_NETWORK(name="PUBLIC_NETWORK", value="PublicNetwork"), |
| // PRIVATE_NETWORK(name="PRIVATE_NETWORK", value="PrivateNetwork") |
| // } |
| export class ListEnumsResponseResponseBody extends $tea.Model { |
| authorizationTypeEnums?: string; |
| networkTypeEnums?: string; |
| /** |
| * @remarks |
| * The returned response code. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned message. |
| * |
| * @example |
| * success |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 8346BE8F-40F3-533D-A0B8-1359C31BD5BA |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| authorizationTypeEnums: 'authorizationTypeEnums', |
| networkTypeEnums: 'networkTypeEnums', |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| authorizationTypeEnums: 'string', |
| networkTypeEnums: 'string', |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListEnumsResponseResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: UpdateConnectionResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: UpdateConnectionResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| /** |
| * @remarks |
| * EventData Controller apis: |
| * putEvents |
| */ |
| export class PutEventsRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus. |
| * This parameter is required. |
| * |
| * @example |
| * demo |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The content of the event. |
| * |
| * @example |
| * The description of the event. |
| */ |
| event?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| event: 'event', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| event: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class PutEventsResponseBody extends $tea.Model { |
| failedEntryCount?: number; |
| entryList?: PutEventsResponseBodyEntryList[]; |
| /** |
| * @remarks |
| * The status code returned. The status code 200 indicates that the request was successful. |
| * |
| * @example |
| * 200 |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The error message that is returned if the request failed. |
| * |
| * @example |
| * EventBusNotExist |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 580A938B-6107-586C-8EC7-F22EEBEDA9E6 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| failedEntryCount: 'failedEntryCount', |
| entryList: 'entryList', |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| failedEntryCount: 'number', |
| entryList: { 'type': 'array', 'itemType': PutEventsResponseBodyEntryList }, |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class PutEventsResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: PutEventsResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: PutEventsResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| /** |
| * @remarks |
| * EventRule Controller apis: |
| * createEventRule * |
| * getEventRule * |
| * deleteEventRule * |
| * updateEventRule * |
| * listEventRules * |
| * enableEventRule * |
| * disableEventRule * |
| */ |
| export class CreateEventRuleRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| description?: string; |
| /** |
| * @remarks |
| * The event pattern, in JSON format. Valid values: stringEqual and stringExpression. You can specify up to five expressions in the map data structure in each field. |
| * |
| * You can specify up to five expressions in the map data structure in each field. |
| * |
| * @example |
| * {\"source\": [{\"prefix\": \"acs.\"}],\"type\": [{\"prefix\":\"oss:ObjectReplication\"}],\"subject\":[{\"prefix\":\"acs:oss:cn-hangzhou:123456789098****:my-movie-bucket/\", \"suffix\":\".txt\"}]} |
| */ |
| filterPattern?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventRuleName: 'eventRuleName', |
| description: 'description', |
| filterPattern: 'filterPattern', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventRuleName: 'string', |
| description: 'string', |
| filterPattern: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateEventRuleResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| eventRuleName: 'eventRuleName', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| eventRuleName: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateEventRuleResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: CreateEventRuleResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: CreateEventRuleResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventRuleRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventRuleName: 'eventRuleName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventRuleName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventRuleResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| description?: string; |
| /** |
| * @remarks |
| * The event pattern, in JSON format. Valid values: stringEqual and stringExpression. You can specify up to five expressions in the map data structure in each field. |
| * |
| * You can specify up to five expressions in the map data structure in each field. |
| * |
| * @example |
| * {\"source\": [{\"prefix\": \"acs.\"}],\"type\": [{\"prefix\":\"oss:ObjectReplication\"}],\"subject\":[{\"prefix\":\"acs:oss:cn-hangzhou:123456789098****:my-movie-bucket/\", \"suffix\":\".txt\"}]} |
| */ |
| filterPattern?: string; |
| /** |
| * @remarks |
| * The status of the event rule. Valid values: ENABLE (default): The event rule is enabled. DISABLE: The event rule is disabled. |
| * |
| * @example |
| * ENABLE |
| */ |
| status?: string; |
| gmtCreate?: string; |
| gmtModify?: string; |
| eventTargets?: GetEventRuleResponseBodyEventTargets[]; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| eventBusName: 'eventBusName', |
| eventRuleName: 'eventRuleName', |
| description: 'description', |
| filterPattern: 'filterPattern', |
| status: 'status', |
| gmtCreate: 'gmtCreate', |
| gmtModify: 'gmtModify', |
| eventTargets: 'eventTargets', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| eventBusName: 'string', |
| eventRuleName: 'string', |
| description: 'string', |
| filterPattern: 'string', |
| status: 'string', |
| gmtCreate: 'string', |
| gmtModify: 'string', |
| eventTargets: { 'type': 'array', 'itemType': GetEventRuleResponseBodyEventTargets }, |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventRuleResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: GetEventRuleResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: GetEventRuleResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventRuleRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventRuleName: 'eventRuleName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventRuleName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventRuleResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventRuleResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: DeleteEventRuleResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: DeleteEventRuleResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateEventRuleRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| description?: string; |
| /** |
| * @remarks |
| * The event pattern, in JSON format. Valid values: stringEqual and stringExpression. You can specify up to five expressions in the map data structure in each field. |
| * |
| * You can specify up to five expressions in the map data structure in each field. |
| * This parameter is required. |
| * |
| * @example |
| * {\"source\": [{\"prefix\": \"acs.\"}],\"type\": [{\"prefix\":\"oss:ObjectReplication\"}],\"subject\":[{\"prefix\":\"acs:oss:cn-hangzhou:123456789098****:my-movie-bucket/\", \"suffix\":\".txt\"}]} |
| */ |
| filterPattern?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventRuleName: 'eventRuleName', |
| description: 'description', |
| filterPattern: 'filterPattern', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventRuleName: 'string', |
| description: 'string', |
| filterPattern: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateEventRuleResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateEventRuleResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: UpdateEventRuleResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: UpdateEventRuleResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListEventRulesRequest extends $tea.Model { |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The number of entries returned per page. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| /** |
| * @remarks |
| * If excess return values exist, this parameter is returned. |
| * |
| * @example |
| * 0 |
| */ |
| nextToken?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| maxResults: 'maxResults', |
| nextToken: 'nextToken', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| maxResults: 'number', |
| nextToken: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListEventRulesResponseBody extends $tea.Model { |
| eventRules?: ListEventRulesResponseBodyEventRules[]; |
| /** |
| * @remarks |
| * The total number of entries. |
| * |
| * @example |
| * 2 |
| */ |
| total?: number; |
| /** |
| * @remarks |
| * The number of entries returned per page. |
| * |
| * @example |
| * 10 |
| */ |
| maxResults?: number; |
| /** |
| * @remarks |
| * If excess return values exist, this parameter is returned. |
| * |
| * @example |
| * 0 |
| */ |
| nextToken?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventRules: 'eventRules', |
| total: 'total', |
| maxResults: 'maxResults', |
| nextToken: 'nextToken', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventRules: { 'type': 'array', 'itemType': ListEventRulesResponseBodyEventRules }, |
| total: 'number', |
| maxResults: 'number', |
| nextToken: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class ListEventRulesResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: ListEventRulesResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: ListEventRulesResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class EnableEventRuleRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventRuleName: 'eventRuleName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventRuleName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class EnableEventRuleResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class EnableEventRuleResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: EnableEventRuleResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: EnableEventRuleResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DisableEventRuleRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event rule. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventRuleName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventRuleName: 'eventRuleName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventRuleName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DisableEventRuleResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DisableEventRuleResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: DisableEventRuleResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: DisableEventRuleResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| /** |
| * @remarks |
| * EventSource Controller apis: |
| * createEventSource * |
| * updateEventSource * |
| * deleteEventSource * |
| * getEventSource * |
| * listEventSources * |
| */ |
| export class CreateEventSourceRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The description of the event source. |
| */ |
| description?: string; |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event source. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventSourceName?: string; |
| className?: string; |
| config?: { [key: string]: any }; |
| static names(): { [key: string]: string } { |
| return { |
| description: 'description', |
| eventBusName: 'eventBusName', |
| eventSourceName: 'eventSourceName', |
| className: 'className', |
| config: 'config', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| description: 'string', |
| eventBusName: 'string', |
| eventSourceName: 'string', |
| className: 'string', |
| config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateEventSourceResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The name of the event source. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventSourceName?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| eventSourceName: 'eventSourceName', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| eventSourceName: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class CreateEventSourceResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: CreateEventSourceResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: CreateEventSourceResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateEventSourceRequest extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event source. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventSourceName?: string; |
| /** |
| * @remarks |
| * The description of the event source. |
| */ |
| description?: string; |
| className?: string; |
| status?: number; |
| config?: { [key: string]: any }; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventSourceName: 'eventSourceName', |
| description: 'description', |
| className: 'className', |
| status: 'status', |
| config: 'config', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventSourceName: 'string', |
| description: 'string', |
| className: 'string', |
| status: 'number', |
| config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateEventSourceResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. Valid values: |
| * |
| * * Success: The request is successful. |
| * |
| * * Other codes: The request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [A8EFABD2-95B9-1C46-9E01-xxxx], error code: [CreateRelatedResourceFailed], message: [Create related resource failed, EntityNotExist.Role : The role not exists: xxxx. \\r\\nRequestId : xxxx-168C-54ED-8FEB-BF11CB70AEB7] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 2922208e-e1c6-43ee-bfd1-aca50263bc8a |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class UpdateEventSourceResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: UpdateEventSourceResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: UpdateEventSourceResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventSourceRequest extends $tea.Model { |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event source. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.source |
| */ |
| eventSourceName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventSourceName: 'eventSourceName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventSourceName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventSourceResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The returned response code. The value Success indicates that the request is successful. Other values indicate that the request failed. For more information about error codes, see Error codes. |
| * |
| * @example |
| * Success |
| */ |
| code?: string; |
| /** |
| * @remarks |
| * The returned error message. |
| * |
| * @example |
| * Remote error. requestId: [78B66E68-E778-1F33-84BD-xxxx], error code: [EventSourceNotExist], message: [The event source in request is not exist! ] |
| */ |
| message?: string; |
| /** |
| * @remarks |
| * The request ID. |
| * |
| * @example |
| * 5f80e9b3-98d5-4f51-8412-c758818a03e4 |
| */ |
| requestId?: string; |
| static names(): { [key: string]: string } { |
| return { |
| code: 'code', |
| message: 'message', |
| requestId: 'requestId', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| code: 'string', |
| message: 'string', |
| requestId: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class DeleteEventSourceResponse extends $tea.Model { |
| headers?: { [key: string]: string }; |
| statusCode?: number; |
| body?: DeleteEventSourceResponseBody; |
| static names(): { [key: string]: string } { |
| return { |
| headers: 'headers', |
| statusCode: 'statusCode', |
| body: 'body', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, |
| statusCode: 'number', |
| body: DeleteEventSourceResponseBody, |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventSourceRequest extends $tea.Model { |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event source. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.source |
| */ |
| eventSourceName?: string; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventSourceName: 'eventSourceName', |
| }; |
| } |
| |
| static types(): { [key: string]: any } { |
| return { |
| eventBusName: 'string', |
| eventSourceName: 'string', |
| }; |
| } |
| |
| constructor(map?: { [key: string]: any }) { |
| super(map); |
| } |
| } |
| |
| export class GetEventSourceResponseBody extends $tea.Model { |
| /** |
| * @remarks |
| * The name of the event bus with which the event source is associated. |
| * This parameter is required. |
| * |
| * @example |
| * my-event-bus |
| */ |
| eventBusName?: string; |
| /** |
| * @remarks |
| * The name of the event source. |
| * This parameter is required. |
| * |
| * @example |
| * myrabbitmq.sourc |
| */ |
| eventSourceName?: string; |
| /** |
| * @remarks |
| * The description of the event source. |
| */ |
| description?: string; |
| className?: string; |
| config?: { [key: string]: any }; |
| static names(): { [key: string]: string } { |
| return { |
| eventBusName: 'eventBusName', |
| eventSourceName: 'eventSourceName', |
| description: 'description', |
| className: 'className', |
| config: 'config', |