// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class DescribeSendFileResultsRequestTag extends $dara.Model { /** * @remarks * The tag key for the file sending task. Valid values of N: 1 to 20. The tag key cannot be an empty string. * * If you use a single tag to filter resources, the resource count with the specified tag cannot exceed 1,000. If you use multiple tags to filter resources, the resource count of resources that have all specified tags attached cannot exceed 1,000. If the resource count exceeds 1,000, call the [ListTagResources](https://help.aliyun.com/document_detail/110425.html) operation to query resources. * * The tag key can be up to 64 characters in length and cannot start with `aliyun` or `acs:`. It cannot contain `http://` or `https://`. * * @example * TestKey */ key?: string; /** * @remarks * The tag value for the file sending task. Valid values of N: 1 to 20. The tag value can be an empty string. * * The tag value can be up to 128 characters in length and cannot contain `http://` or `https://`. * * @example * TestValue */ value?: string; static names(): { [key: string]: string } { return { key: 'Key', value: 'Value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class DescribeSendFileResultsRequest extends $dara.Model { /** * @remarks * The instance ID. If you specify this parameter, all file sending records of the specified instance are queried. * * @example * i-hz0jdfwd9f**** */ instanceId?: string; /** * @remarks * The overall sending status of the file. The overall status depends on the combined execution status of all target instances. Valid values: * * - Pending: The system is validating or sending the file. The overall status is Pending if the file sending status of at least one instance is Pending. * - Running: The file is being sent to the instance. The overall status is Running if the file sending status of at least one instance is Running. * - Success: The file is sent successfully. The overall status is Success if the file sending status of all instances is Success. * - Failed: The file failed to be sent. The overall status is Failed if the file sending status of all instances is Failed. * - PartialFailed: The file is sent to some instances but fails on others. The overall status is PartialFailed if the file sending status of all instances is Success or Failed. * * @example * Success */ invocationStatus?: string; /** * @remarks * The execution ID. * * @example * f-hz0jdfwd9f**** */ invokeId?: string; /** * @remarks * The maximum number of entries per page in a paging query. * * Maximum value: 50. * * Default value: 10. * * @example * 10 */ maxResults?: number; /** * @remarks * The file name. If you specify this parameter, all sending records of the file with the specified name are queried. * * @example * test.txt */ name?: string; /** * @remarks * The pagination token. Set this parameter to the NextToken value returned in the previous API call. * * @example * AAAAAdDWBF2 */ nextToken?: string; ownerAccount?: string; ownerId?: number; /** * @remarks * > This parameter is about to go offline. Use NextToken and MaxResults to complete paging query operations. * * @example * 1 */ pageNumber?: number; /** * @remarks * > This parameter is about to go offline. Use NextToken and MaxResults to complete paging query operations. * * @example * 10 */ pageSize?: number; /** * @remarks * The region ID of the ECS instance. You can call [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) to query the most recent region list. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; /** * @remarks * The ID of the resource group to which the file sending task belongs. After you specify this parameter, you must also specify ResourceGroupId when sending a file. This parameter allows you to filter file sending results by resource group. * * @example * rg-bp67acfmxazb4p**** */ resourceGroupId?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; /** * @remarks * The tags. */ tag?: DescribeSendFileResultsRequestTag[]; static names(): { [key: string]: string } { return { instanceId: 'InstanceId', invocationStatus: 'InvocationStatus', invokeId: 'InvokeId', maxResults: 'MaxResults', name: 'Name', nextToken: 'NextToken', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', pageNumber: 'PageNumber', pageSize: 'PageSize', regionId: 'RegionId', resourceGroupId: 'ResourceGroupId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', tag: 'Tag', }; } static types(): { [key: string]: any } { return { instanceId: 'string', invocationStatus: 'string', invokeId: 'string', maxResults: 'number', name: 'string', nextToken: 'string', ownerAccount: 'string', ownerId: 'number', pageNumber: 'number', pageSize: 'number', regionId: 'string', resourceGroupId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', tag: { 'type': 'array', 'itemType': DescribeSendFileResultsRequestTag }, }; } validate() { if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }