// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class RunCommandShrinkRequestResourceTag extends $dara.Model { /** * @remarks * The key of tag N of the instance. * * Take note of the following items: * * * This parameter and InstanceId.N are mutually exclusive. * * The tag key cannot be an empty string. * * The number of instances that have the specified tags cannot exceed 100. Otherwise, we recommend that you use batch tags, such as batch: b1, to group the instances into batches of up to 100 instances. * * The tag key can be up to 64 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun. * * @example * TestKey */ key?: string; /** * @remarks * The value of tag N of the instance. * * Take note of the following items: * * * 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 RunCommandShrinkRequestTag extends $dara.Model { /** * @remarks * The key of tag N to add to the command task. The tag key cannot be an empty string. * * If a tag is specified to query resources, up to 1,000 resources that have this tag can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all the tags can be displayed in the response. To query more than 1,000 resources that have the specified tags, call the [ListTagResources](https://help.aliyun.com/document_detail/110425.html) operation. * * The tag key can be up to 64 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`. * * @example * TestKey */ key?: string; /** * @remarks * The value of tag N to add to the command task. 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 RunCommandShrinkRequest extends $dara.Model { /** * @remarks * The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The **token** can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](https://help.aliyun.com/document_detail/25693.html). * * @example * 123e4567-e89b-12d3-a456-426655440000 */ clientToken?: string; /** * @remarks * The content of the command. The command content can be plaintext or Base64-encoded. Take note of the following items: * * * If you want to retain the command, make sure that the size of the Base64-encoded command content does not exceed 18 KB. If you do not want to retain the command, make sure that the size of the Base64-encoded command content does not exceed 24 KB. You can set `KeepCommand` to specify whether to retain the command. * * * If the command content is Base64-encoded, set `ContentEncoding` to Base64. * * * If you specify `EnableParameter` to true, the custom parameter feature is enable. You can configure custom parameters based on the following rules: * * * Specify custom parameters in the `{{}}` format. The spaces and line feeds before and after the parameter names within `{{}}` are ignored. * * You can specify up to 20 custom parameters. * * A custom parameter name can contain letters, digits, underscores (_), and hyphens (-). The name is case-insensitive. The ACS:: prefix cannot be used to specify non-built-in environment parameters. * * Each custom parameter name cannot exceed 64 bytes in length. * * * You can specify built-in environment parameters as custom parameters. When you run a command, the parameters are automatically specified by Cloud Assistant. You can specify the following built-in environment parameters: * * * `{{ACS::RegionId}}`: the region ID. * * * `{{ACS::AccountId}}`: the UID of the Alibaba Cloud account. * * * `{{ACS::InstanceId}}`: the instance ID. If you want to run the command on multiple instances and specify `{{ACS::InstanceId}}` as a built-in environment parameter, make sure that the Cloud Assistant Agent version is not earlier than the following versions: * * * Linux: 2.2.3.309 * * Windows: 2.1.3.309 * * * `{{ACS::InstanceName}}`: the instance name. If you want to run the command on multiple instances and specify `{{ACS::InstanceName}}` as a built-in environment parameter, make sure that the Cloud Assistant Agent version is not earlier than the following versions: * * * Linux: 2.2.3.344 * * Windows: 2.1.3.344 * * * `{{ACS::InvokeId}}`: the task ID. If you want to specify `{{ACS::InvokeId}}` as a built-in environment parameter, make sure that the Cloud Assistant Agent version is not earlier than the following versions: * * * Linux: 2.2.3.309 * * Windows: 2.1.3.309 * * * `{{ACS::CommandId}}`: the command ID. If you want to specify `{{ACS::CommandId}}` as a built-in environment parameter, make sure that the Cloud Assistant Agent version is not earlier than the following versions: * * * Linux: 2.2.3.309 * * Windows: 2.1.3.309 * * This parameter is required. * * @example * ZWNobyAxMjM= */ commandContent?: string; /** * @remarks * The container ID. Only 64-bit hexadecimal strings are supported. `docker://`, `containerd://`, or `cri-o://` can be used as the prefix of the container ID to specify the container runtime. * * Take note of the following items: * * * If you specify this parameter, Cloud Assistant runs the command in the specified container of the instances. * * If you specify this parameter, make sure that the Cloud Assistant Agent version installed on Linux instances is 2.2.3.344 or later. * * If you specify this parameter, `Username` and `WorkingDir` do not take effect. You can run the command in the default working directory of the container by using only the default user of the container. For more information, see [Use Cloud Assistant to run commands in containers](https://help.aliyun.com/document_detail/456641.html). * * > Only shell scripts can run in Linux containers. You cannot add a command whose format is similar to `#!/usr/bin/python` at the beginning of a script to specify a script interpreter. For more information, see [Use Cloud Assistant to run commands in containers](https://help.aliyun.com/document_detail/456641.html). * * @example * ab141ddfbacfe02d9dbc25966ed971536124527097398d419a6746873fea**** */ containerId?: string; /** * @remarks * The container name. * * Take note of the following items: * * * If you specify this parameter, Cloud Assistant runs the command in the specified container of the instances. * * If you specify this parameter, make sure that the Cloud Assistant Agent version installed on Linux instances is 2.2.3.344 or later. * * If you specify this parameter, `Username` and `WorkingDir` do not take effect. You can run the command in the default working directory of the container by using only the default user of the container. For more information, see [Use Cloud Assistant to run commands in containers](https://help.aliyun.com/document_detail/456641.html). * * > Only shell scripts can run in Linux containers. You cannot add a command whose format is similar to `#!/usr/bin/python` at the beginning of a script to specify a script interpreter. For more information, see [Use Cloud Assistant to run commands in containers](https://help.aliyun.com/document_detail/456641.html). * * @example * test-container */ containerName?: string; /** * @remarks * The encoding mode of command content (`CommandContent`). The valid values are case-insensitive. Valid values: * * * PlainText: The command content is not encoded. * * Base64: The command content is encoded in Base64. * * Default value: PlainText. If the specified value of this parameter is invalid, PlainText is used by default. * * @example * Base64 */ contentEncoding?: string; /** * @remarks * The description of the command. The description supports all character sets and can be up to 512 characters in length. * * @example * testDescription */ description?: string; /** * @remarks * Specifies whether to include custom parameters in the command. * * Default value: false. * * @example * false */ enableParameter?: boolean; /** * @remarks * The schedule on which to run the command. You can configure a command to run at a fixed interval based on a rate expression, run only once at a specified time, or run at designated times based on a cron expression. * * * To run a command at a fixed interval, use a rate expression to specify the interval. You can specify the interval in seconds, minutes, hours, or days. This option is suitable for scenarios in which tasks need to be executed at a fixed interval. Specify the interval in the following format: `rate( )`. For example, specify `rate(5m)` to run the command every 5 minutes. When you specify an interval, take note of the following limits: * * * The interval can be anywhere from 60 seconds to 7 days, but must be longer than the timeout period of the scheduled task. * * The interval is the amount of time that elapses between two consecutive executions. The interval is irrelevant to the amount of time that is required to run the command once. For example, assume that you set the interval to 5 minutes and that it takes 2 minutes to run the command each time. Each time the command is run, the system waits 3 minutes before the system runs the command again. * * A task is not immediately executed after the task is created. For example, assume that you set the interval to 5 minutes for a task. The task begins to be executed 5 minutes after it is created. * * * To run a command only once at a specific time, specify a point in time and a time zone. Specify the point in time in the `at(yyyy-MM-dd HH:mm:ss