// This file is auto-generated, don't edit it. Thanks. /** * */ package client import ( openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client" endpointutil "github.com/alibabacloud-go/endpoint-util/service" openapiutil "github.com/alibabacloud-go/openapi-util/service" util "github.com/alibabacloud-go/tea-utils/v2/service" "github.com/alibabacloud-go/tea/tea" ) type AcceptInquiredSystemEventRequest struct { // > This parameter is in invitational preview and is unavailable to general users. Choice *string `json:"Choice,omitempty" xml:"Choice,omitempty"` // The ID of the system event. EventId *string `json:"EventId,omitempty" xml:"EventId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the system event. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AcceptInquiredSystemEventRequest) String() string { return tea.Prettify(s) } func (s AcceptInquiredSystemEventRequest) GoString() string { return s.String() } func (s *AcceptInquiredSystemEventRequest) SetChoice(v string) *AcceptInquiredSystemEventRequest { s.Choice = &v return s } func (s *AcceptInquiredSystemEventRequest) SetEventId(v string) *AcceptInquiredSystemEventRequest { s.EventId = &v return s } func (s *AcceptInquiredSystemEventRequest) SetOwnerAccount(v string) *AcceptInquiredSystemEventRequest { s.OwnerAccount = &v return s } func (s *AcceptInquiredSystemEventRequest) SetOwnerId(v int64) *AcceptInquiredSystemEventRequest { s.OwnerId = &v return s } func (s *AcceptInquiredSystemEventRequest) SetRegionId(v string) *AcceptInquiredSystemEventRequest { s.RegionId = &v return s } func (s *AcceptInquiredSystemEventRequest) SetResourceOwnerAccount(v string) *AcceptInquiredSystemEventRequest { s.ResourceOwnerAccount = &v return s } func (s *AcceptInquiredSystemEventRequest) SetResourceOwnerId(v int64) *AcceptInquiredSystemEventRequest { s.ResourceOwnerId = &v return s } type AcceptInquiredSystemEventResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AcceptInquiredSystemEventResponseBody) String() string { return tea.Prettify(s) } func (s AcceptInquiredSystemEventResponseBody) GoString() string { return s.String() } func (s *AcceptInquiredSystemEventResponseBody) SetRequestId(v string) *AcceptInquiredSystemEventResponseBody { s.RequestId = &v return s } type AcceptInquiredSystemEventResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AcceptInquiredSystemEventResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AcceptInquiredSystemEventResponse) String() string { return tea.Prettify(s) } func (s AcceptInquiredSystemEventResponse) GoString() string { return s.String() } func (s *AcceptInquiredSystemEventResponse) SetHeaders(v map[string]*string) *AcceptInquiredSystemEventResponse { s.Headers = v return s } func (s *AcceptInquiredSystemEventResponse) SetStatusCode(v int32) *AcceptInquiredSystemEventResponse { s.StatusCode = &v return s } func (s *AcceptInquiredSystemEventResponse) SetBody(v *AcceptInquiredSystemEventResponseBody) *AcceptInquiredSystemEventResponse { s.Body = v return s } type ActivateRouterInterfaceRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RouterInterfaceId *string `json:"RouterInterfaceId,omitempty" xml:"RouterInterfaceId,omitempty"` } func (s ActivateRouterInterfaceRequest) String() string { return tea.Prettify(s) } func (s ActivateRouterInterfaceRequest) GoString() string { return s.String() } func (s *ActivateRouterInterfaceRequest) SetOwnerId(v int64) *ActivateRouterInterfaceRequest { s.OwnerId = &v return s } func (s *ActivateRouterInterfaceRequest) SetRegionId(v string) *ActivateRouterInterfaceRequest { s.RegionId = &v return s } func (s *ActivateRouterInterfaceRequest) SetResourceOwnerAccount(v string) *ActivateRouterInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *ActivateRouterInterfaceRequest) SetResourceOwnerId(v int64) *ActivateRouterInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *ActivateRouterInterfaceRequest) SetRouterInterfaceId(v string) *ActivateRouterInterfaceRequest { s.RouterInterfaceId = &v return s } type ActivateRouterInterfaceResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s ActivateRouterInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s ActivateRouterInterfaceResponseBody) GoString() string { return s.String() } func (s *ActivateRouterInterfaceResponseBody) SetRequestId(v string) *ActivateRouterInterfaceResponseBody { s.RequestId = &v return s } type ActivateRouterInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ActivateRouterInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ActivateRouterInterfaceResponse) String() string { return tea.Prettify(s) } func (s ActivateRouterInterfaceResponse) GoString() string { return s.String() } func (s *ActivateRouterInterfaceResponse) SetHeaders(v map[string]*string) *ActivateRouterInterfaceResponse { s.Headers = v return s } func (s *ActivateRouterInterfaceResponse) SetStatusCode(v int32) *ActivateRouterInterfaceResponse { s.StatusCode = &v return s } func (s *ActivateRouterInterfaceResponse) SetBody(v *ActivateRouterInterfaceResponseBody) *ActivateRouterInterfaceResponse { s.Body = v return s } type AddBandwidthPackageIpsRequest struct { BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" xml:"BandwidthPackageId,omitempty"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` IpCount *string `json:"IpCount,omitempty" xml:"IpCount,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AddBandwidthPackageIpsRequest) String() string { return tea.Prettify(s) } func (s AddBandwidthPackageIpsRequest) GoString() string { return s.String() } func (s *AddBandwidthPackageIpsRequest) SetBandwidthPackageId(v string) *AddBandwidthPackageIpsRequest { s.BandwidthPackageId = &v return s } func (s *AddBandwidthPackageIpsRequest) SetClientToken(v string) *AddBandwidthPackageIpsRequest { s.ClientToken = &v return s } func (s *AddBandwidthPackageIpsRequest) SetIpCount(v string) *AddBandwidthPackageIpsRequest { s.IpCount = &v return s } func (s *AddBandwidthPackageIpsRequest) SetOwnerAccount(v string) *AddBandwidthPackageIpsRequest { s.OwnerAccount = &v return s } func (s *AddBandwidthPackageIpsRequest) SetOwnerId(v int64) *AddBandwidthPackageIpsRequest { s.OwnerId = &v return s } func (s *AddBandwidthPackageIpsRequest) SetRegionId(v string) *AddBandwidthPackageIpsRequest { s.RegionId = &v return s } func (s *AddBandwidthPackageIpsRequest) SetResourceOwnerAccount(v string) *AddBandwidthPackageIpsRequest { s.ResourceOwnerAccount = &v return s } func (s *AddBandwidthPackageIpsRequest) SetResourceOwnerId(v int64) *AddBandwidthPackageIpsRequest { s.ResourceOwnerId = &v return s } type AddBandwidthPackageIpsResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AddBandwidthPackageIpsResponseBody) String() string { return tea.Prettify(s) } func (s AddBandwidthPackageIpsResponseBody) GoString() string { return s.String() } func (s *AddBandwidthPackageIpsResponseBody) SetRequestId(v string) *AddBandwidthPackageIpsResponseBody { s.RequestId = &v return s } type AddBandwidthPackageIpsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AddBandwidthPackageIpsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AddBandwidthPackageIpsResponse) String() string { return tea.Prettify(s) } func (s AddBandwidthPackageIpsResponse) GoString() string { return s.String() } func (s *AddBandwidthPackageIpsResponse) SetHeaders(v map[string]*string) *AddBandwidthPackageIpsResponse { s.Headers = v return s } func (s *AddBandwidthPackageIpsResponse) SetStatusCode(v int32) *AddBandwidthPackageIpsResponse { s.StatusCode = &v return s } func (s *AddBandwidthPackageIpsResponse) SetBody(v *AddBandwidthPackageIpsResponseBody) *AddBandwidthPackageIpsResponse { s.Body = v return s } type AddTagsRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the resource. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource. When the resources are instances, this parameter can be interpreted as InstanceId. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The type of the resource. Valid values: // // * instance: ECS instance // * disk: disk // * snapshot: snapshot // * image: image // * securitygroup: security group // * volume: storage volume // * eni: elastic network interface (ENI) // * ddh: dedicated host // * keypair: SSH key pair // * launchtemplate: launch template // * reservedinstance: reserved instance // * snapshotpolicy: automatic snapshot policy // // All values must be lowercase. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The tags. Tag []*AddTagsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s AddTagsRequest) String() string { return tea.Prettify(s) } func (s AddTagsRequest) GoString() string { return s.String() } func (s *AddTagsRequest) SetOwnerId(v int64) *AddTagsRequest { s.OwnerId = &v return s } func (s *AddTagsRequest) SetRegionId(v string) *AddTagsRequest { s.RegionId = &v return s } func (s *AddTagsRequest) SetResourceId(v string) *AddTagsRequest { s.ResourceId = &v return s } func (s *AddTagsRequest) SetResourceOwnerAccount(v string) *AddTagsRequest { s.ResourceOwnerAccount = &v return s } func (s *AddTagsRequest) SetResourceOwnerId(v int64) *AddTagsRequest { s.ResourceOwnerId = &v return s } func (s *AddTagsRequest) SetResourceType(v string) *AddTagsRequest { s.ResourceType = &v return s } func (s *AddTagsRequest) SetTag(v []*AddTagsRequestTag) *AddTagsRequest { s.Tag = v return s } type AddTagsRequestTag struct { // The key of tag N of the resource. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain [http:// or https://](http://https://). Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the resource. 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 start with acs: or aliyun. It cannot contain [http:// or https://](http://https://). Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s AddTagsRequestTag) String() string { return tea.Prettify(s) } func (s AddTagsRequestTag) GoString() string { return s.String() } func (s *AddTagsRequestTag) SetKey(v string) *AddTagsRequestTag { s.Key = &v return s } func (s *AddTagsRequestTag) SetValue(v string) *AddTagsRequestTag { s.Value = &v return s } type AddTagsResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AddTagsResponseBody) String() string { return tea.Prettify(s) } func (s AddTagsResponseBody) GoString() string { return s.String() } func (s *AddTagsResponseBody) SetRequestId(v string) *AddTagsResponseBody { s.RequestId = &v return s } type AddTagsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AddTagsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AddTagsResponse) String() string { return tea.Prettify(s) } func (s AddTagsResponse) GoString() string { return s.String() } func (s *AddTagsResponse) SetHeaders(v map[string]*string) *AddTagsResponse { s.Headers = v return s } func (s *AddTagsResponse) SetStatusCode(v int32) *AddTagsResponse { s.StatusCode = &v return s } func (s *AddTagsResponse) SetBody(v *AddTagsResponseBody) *AddTagsResponse { s.Body = v return s } type AllocateDedicatedHostsRequest struct { NetworkAttributes *AllocateDedicatedHostsRequestNetworkAttributes `json:"NetworkAttributes,omitempty" xml:"NetworkAttributes,omitempty" type:"Struct"` // The policy used to migrate the instances deployed on the dedicated host when the dedicated host fails or needs to be repaired online. Valid values: // // * Migrate: The instances are migrated to another physical server and restarted. // // If cloud disks are attached to the dedicated host, the default value is Migrate. // // * Stop: The instances are stopped. If the dedicated host cannot be repaired, the instances are migrated to another physical machine and then restarted. // // If local disks are attached to the dedicated host, the default value is Stop. ActionOnMaintenance *string `json:"ActionOnMaintenance,omitempty" xml:"ActionOnMaintenance,omitempty"` // Specifies whether to add the dedicated host to the resource pool for automatic deployment. If you create an ECS instance on a dedicated host without specifying the **DedicatedHostId** parameter, Alibaba Cloud selects a dedicated host from the resource pool to host the instance. For more information, see [Automatic deployment](~~118938~~). Valid values: // // * on: adds the dedicated host to the resource pool for automatic deployment. // * off: does not add the dedicated host to the resource pool for automatic deployment. // // Default value: on. // // > If you do not want to add the dedicated host to the resource pool for automatic deployment, set this parameter to off. AutoPlacement *string `json:"AutoPlacement,omitempty" xml:"AutoPlacement,omitempty"` // The time when to automatically release the dedicated host. Specify the time in the `ISO 8601` standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. // // > // // * It must be at least half an hour later than the current time. // // * It must be at most three years later than the current time. // // * If the value of seconds (ss) is not 00, it is automatically set to 00. AutoReleaseTime *string `json:"AutoReleaseTime,omitempty" xml:"AutoReleaseTime,omitempty"` // Specifies whether to automatically renew the subscription dedicated host. // // > The **AutoRenew** parameter takes effect only when the **ChargeType** parameter is set to PrePaid. // // Default value: false AutoRenew *bool `json:"AutoRenew,omitempty" xml:"AutoRenew,omitempty"` // The auto-renewal duration of the dedicated host. The **AutoRenewPeriod** parameter takes effect and is required only when the **AutoRenew** parameter is set to true. Valid values: // // Valid values when PeriodUnit is set to Month: 1, 2, 3, 6, and 12. AutoRenewPeriod *int32 `json:"AutoRenewPeriod,omitempty" xml:"AutoRenewPeriod,omitempty"` // The billing method of the dedicated host. Valid values: // // * PrePaid: subscription. If you set this parameter to PrePaid, make sure that you have sufficient account balance or credits. Otherwise, `InvalidPayMethod` is returned. // * PostPaid: pay-as-you-go. // // Default value: PostPaid. ChargeType *string `json:"ChargeType,omitempty" xml:"ChargeType,omitempty"` // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The CPU overcommit ratio. You can configure CPU overcommit ratios only for the following dedicated host types: g6s, c6s, and r6s. Valid values: 1 to 5. // // The CPU overcommit ratio affects the number of available vCPUs on a dedicated host. You can use the following formula to calculate the number of available vCPUs on a dedicated host: Number of available vCPUs = Number of physical CPU cores × 2 × CPU overcommit ratio. For example, the number of physical CPU cores on each g6s dedicated host is 52. If you set the CPU overcommit ratio of a g6s dedicated host to 4, the number of available vCPUs on the dedicated host is 416. For scenarios that have minimal requirements on CPU stability or where CPU load is not heavy, such as development and test environments, you can increase the number of available vCPUs on a dedicated host by increasing the CPU overcommit ratio. This way, you can deploy more ECS instances of the same specifications on the dedicated host and reduce the unit deployment cost. CpuOverCommitRatio *float32 `json:"CpuOverCommitRatio,omitempty" xml:"CpuOverCommitRatio,omitempty"` // The ID of the dedicated host cluster in which to create the dedicated host. DedicatedHostClusterId *string `json:"DedicatedHostClusterId,omitempty" xml:"DedicatedHostClusterId,omitempty"` // The name of the dedicated host. The name must be 2 to 128 characters in length, It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). DedicatedHostName *string `json:"DedicatedHostName,omitempty" xml:"DedicatedHostName,omitempty"` // The dedicated host type. You can call the [DescribeDedicatedHostTypes](~~134240~~) operation to query the most recent list of dedicated host types. DedicatedHostType *string `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty"` // The description of the dedicated host. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The minimum number of dedicated hosts to create. Valid values: 1 to 100. // // > If the number of available dedicated hosts is less than the minimum number of dedicated hosts to create, the dedicated hosts fail to be created. MinQuantity *int32 `json:"MinQuantity,omitempty" xml:"MinQuantity,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The subscription duration of the dedicated host. The `Period` parameter is required and takes effect only when the `ChargeType` parameter is set to `PrePaid`. Valid values: // // * Valid values when the PeriodUnit parameter is set to Month: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60. // * Valid values when the PeriodUnit parameter is set to Year: 1, 2, 3, 4, and 5. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The unit of the subscription duration of the dedicated host. Valid values: // // * Month // * Year // // Default value: Month. PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // The number of dedicated hosts that you want to create. Valid values: 1 to 100. // // Default value: 1. Quantity *int32 `json:"Quantity,omitempty" xml:"Quantity,omitempty"` // The ID of the region in which to create the dedicated host. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the dedicated host. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags to add to the dedicated host. Tag []*AllocateDedicatedHostsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the zone in which to create the dedicated host. // // This parameter is empty by default. If you do not specify a zone, the system selects a zone. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s AllocateDedicatedHostsRequest) String() string { return tea.Prettify(s) } func (s AllocateDedicatedHostsRequest) GoString() string { return s.String() } func (s *AllocateDedicatedHostsRequest) SetNetworkAttributes(v *AllocateDedicatedHostsRequestNetworkAttributes) *AllocateDedicatedHostsRequest { s.NetworkAttributes = v return s } func (s *AllocateDedicatedHostsRequest) SetActionOnMaintenance(v string) *AllocateDedicatedHostsRequest { s.ActionOnMaintenance = &v return s } func (s *AllocateDedicatedHostsRequest) SetAutoPlacement(v string) *AllocateDedicatedHostsRequest { s.AutoPlacement = &v return s } func (s *AllocateDedicatedHostsRequest) SetAutoReleaseTime(v string) *AllocateDedicatedHostsRequest { s.AutoReleaseTime = &v return s } func (s *AllocateDedicatedHostsRequest) SetAutoRenew(v bool) *AllocateDedicatedHostsRequest { s.AutoRenew = &v return s } func (s *AllocateDedicatedHostsRequest) SetAutoRenewPeriod(v int32) *AllocateDedicatedHostsRequest { s.AutoRenewPeriod = &v return s } func (s *AllocateDedicatedHostsRequest) SetChargeType(v string) *AllocateDedicatedHostsRequest { s.ChargeType = &v return s } func (s *AllocateDedicatedHostsRequest) SetClientToken(v string) *AllocateDedicatedHostsRequest { s.ClientToken = &v return s } func (s *AllocateDedicatedHostsRequest) SetCpuOverCommitRatio(v float32) *AllocateDedicatedHostsRequest { s.CpuOverCommitRatio = &v return s } func (s *AllocateDedicatedHostsRequest) SetDedicatedHostClusterId(v string) *AllocateDedicatedHostsRequest { s.DedicatedHostClusterId = &v return s } func (s *AllocateDedicatedHostsRequest) SetDedicatedHostName(v string) *AllocateDedicatedHostsRequest { s.DedicatedHostName = &v return s } func (s *AllocateDedicatedHostsRequest) SetDedicatedHostType(v string) *AllocateDedicatedHostsRequest { s.DedicatedHostType = &v return s } func (s *AllocateDedicatedHostsRequest) SetDescription(v string) *AllocateDedicatedHostsRequest { s.Description = &v return s } func (s *AllocateDedicatedHostsRequest) SetMinQuantity(v int32) *AllocateDedicatedHostsRequest { s.MinQuantity = &v return s } func (s *AllocateDedicatedHostsRequest) SetOwnerAccount(v string) *AllocateDedicatedHostsRequest { s.OwnerAccount = &v return s } func (s *AllocateDedicatedHostsRequest) SetOwnerId(v int64) *AllocateDedicatedHostsRequest { s.OwnerId = &v return s } func (s *AllocateDedicatedHostsRequest) SetPeriod(v int32) *AllocateDedicatedHostsRequest { s.Period = &v return s } func (s *AllocateDedicatedHostsRequest) SetPeriodUnit(v string) *AllocateDedicatedHostsRequest { s.PeriodUnit = &v return s } func (s *AllocateDedicatedHostsRequest) SetQuantity(v int32) *AllocateDedicatedHostsRequest { s.Quantity = &v return s } func (s *AllocateDedicatedHostsRequest) SetRegionId(v string) *AllocateDedicatedHostsRequest { s.RegionId = &v return s } func (s *AllocateDedicatedHostsRequest) SetResourceGroupId(v string) *AllocateDedicatedHostsRequest { s.ResourceGroupId = &v return s } func (s *AllocateDedicatedHostsRequest) SetResourceOwnerAccount(v string) *AllocateDedicatedHostsRequest { s.ResourceOwnerAccount = &v return s } func (s *AllocateDedicatedHostsRequest) SetResourceOwnerId(v int64) *AllocateDedicatedHostsRequest { s.ResourceOwnerId = &v return s } func (s *AllocateDedicatedHostsRequest) SetTag(v []*AllocateDedicatedHostsRequestTag) *AllocateDedicatedHostsRequest { s.Tag = v return s } func (s *AllocateDedicatedHostsRequest) SetZoneId(v string) *AllocateDedicatedHostsRequest { s.ZoneId = &v return s } type AllocateDedicatedHostsRequestNetworkAttributes struct { // The timeout period for a UDP session between a Server Load Balancer (SLB) instance and the dedicated host. Unit: seconds. Valid values: 15 to 310. SlbUdpTimeout *int32 `json:"SlbUdpTimeout,omitempty" xml:"SlbUdpTimeout,omitempty"` // The timeout period for a UDP session between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds. Valid values: 15 to 310. UdpTimeout *int32 `json:"UdpTimeout,omitempty" xml:"UdpTimeout,omitempty"` } func (s AllocateDedicatedHostsRequestNetworkAttributes) String() string { return tea.Prettify(s) } func (s AllocateDedicatedHostsRequestNetworkAttributes) GoString() string { return s.String() } func (s *AllocateDedicatedHostsRequestNetworkAttributes) SetSlbUdpTimeout(v int32) *AllocateDedicatedHostsRequestNetworkAttributes { s.SlbUdpTimeout = &v return s } func (s *AllocateDedicatedHostsRequestNetworkAttributes) SetUdpTimeout(v int32) *AllocateDedicatedHostsRequestNetworkAttributes { s.UdpTimeout = &v return s } type AllocateDedicatedHostsRequestTag struct { // The key of tag N to add to the dedicated host. Valid values of N: 1 to 20. // // The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the dedicated host. Valid values of N: 1 to 20. // // The tag value can be an empty string. It can be up to 128 characters in length and cannot start with acs: or contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s AllocateDedicatedHostsRequestTag) String() string { return tea.Prettify(s) } func (s AllocateDedicatedHostsRequestTag) GoString() string { return s.String() } func (s *AllocateDedicatedHostsRequestTag) SetKey(v string) *AllocateDedicatedHostsRequestTag { s.Key = &v return s } func (s *AllocateDedicatedHostsRequestTag) SetValue(v string) *AllocateDedicatedHostsRequestTag { s.Value = &v return s } type AllocateDedicatedHostsResponseBody struct { // The IDs of the dedicated hosts. DedicatedHostIdSets *AllocateDedicatedHostsResponseBodyDedicatedHostIdSets `json:"DedicatedHostIdSets,omitempty" xml:"DedicatedHostIdSets,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AllocateDedicatedHostsResponseBody) String() string { return tea.Prettify(s) } func (s AllocateDedicatedHostsResponseBody) GoString() string { return s.String() } func (s *AllocateDedicatedHostsResponseBody) SetDedicatedHostIdSets(v *AllocateDedicatedHostsResponseBodyDedicatedHostIdSets) *AllocateDedicatedHostsResponseBody { s.DedicatedHostIdSets = v return s } func (s *AllocateDedicatedHostsResponseBody) SetRequestId(v string) *AllocateDedicatedHostsResponseBody { s.RequestId = &v return s } type AllocateDedicatedHostsResponseBodyDedicatedHostIdSets struct { DedicatedHostId []*string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty" type:"Repeated"` } func (s AllocateDedicatedHostsResponseBodyDedicatedHostIdSets) String() string { return tea.Prettify(s) } func (s AllocateDedicatedHostsResponseBodyDedicatedHostIdSets) GoString() string { return s.String() } func (s *AllocateDedicatedHostsResponseBodyDedicatedHostIdSets) SetDedicatedHostId(v []*string) *AllocateDedicatedHostsResponseBodyDedicatedHostIdSets { s.DedicatedHostId = v return s } type AllocateDedicatedHostsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AllocateDedicatedHostsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AllocateDedicatedHostsResponse) String() string { return tea.Prettify(s) } func (s AllocateDedicatedHostsResponse) GoString() string { return s.String() } func (s *AllocateDedicatedHostsResponse) SetHeaders(v map[string]*string) *AllocateDedicatedHostsResponse { s.Headers = v return s } func (s *AllocateDedicatedHostsResponse) SetStatusCode(v int32) *AllocateDedicatedHostsResponse { s.StatusCode = &v return s } func (s *AllocateDedicatedHostsResponse) SetBody(v *AllocateDedicatedHostsResponseBody) *AllocateDedicatedHostsResponse { s.Body = v return s } type AllocateEipAddressRequest struct { ActivityId *int64 `json:"ActivityId,omitempty" xml:"ActivityId,omitempty"` Bandwidth *string `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` ISP *string `json:"ISP,omitempty" xml:"ISP,omitempty"` InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AllocateEipAddressRequest) String() string { return tea.Prettify(s) } func (s AllocateEipAddressRequest) GoString() string { return s.String() } func (s *AllocateEipAddressRequest) SetActivityId(v int64) *AllocateEipAddressRequest { s.ActivityId = &v return s } func (s *AllocateEipAddressRequest) SetBandwidth(v string) *AllocateEipAddressRequest { s.Bandwidth = &v return s } func (s *AllocateEipAddressRequest) SetClientToken(v string) *AllocateEipAddressRequest { s.ClientToken = &v return s } func (s *AllocateEipAddressRequest) SetISP(v string) *AllocateEipAddressRequest { s.ISP = &v return s } func (s *AllocateEipAddressRequest) SetInternetChargeType(v string) *AllocateEipAddressRequest { s.InternetChargeType = &v return s } func (s *AllocateEipAddressRequest) SetOwnerAccount(v string) *AllocateEipAddressRequest { s.OwnerAccount = &v return s } func (s *AllocateEipAddressRequest) SetOwnerId(v int64) *AllocateEipAddressRequest { s.OwnerId = &v return s } func (s *AllocateEipAddressRequest) SetRegionId(v string) *AllocateEipAddressRequest { s.RegionId = &v return s } func (s *AllocateEipAddressRequest) SetResourceOwnerAccount(v string) *AllocateEipAddressRequest { s.ResourceOwnerAccount = &v return s } func (s *AllocateEipAddressRequest) SetResourceOwnerId(v int64) *AllocateEipAddressRequest { s.ResourceOwnerId = &v return s } type AllocateEipAddressResponseBody struct { AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` EipAddress *string `json:"EipAddress,omitempty" xml:"EipAddress,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AllocateEipAddressResponseBody) String() string { return tea.Prettify(s) } func (s AllocateEipAddressResponseBody) GoString() string { return s.String() } func (s *AllocateEipAddressResponseBody) SetAllocationId(v string) *AllocateEipAddressResponseBody { s.AllocationId = &v return s } func (s *AllocateEipAddressResponseBody) SetEipAddress(v string) *AllocateEipAddressResponseBody { s.EipAddress = &v return s } func (s *AllocateEipAddressResponseBody) SetRequestId(v string) *AllocateEipAddressResponseBody { s.RequestId = &v return s } type AllocateEipAddressResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AllocateEipAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AllocateEipAddressResponse) String() string { return tea.Prettify(s) } func (s AllocateEipAddressResponse) GoString() string { return s.String() } func (s *AllocateEipAddressResponse) SetHeaders(v map[string]*string) *AllocateEipAddressResponse { s.Headers = v return s } func (s *AllocateEipAddressResponse) SetStatusCode(v int32) *AllocateEipAddressResponse { s.StatusCode = &v return s } func (s *AllocateEipAddressResponse) SetBody(v *AllocateEipAddressResponseBody) *AllocateEipAddressResponse { s.Body = v return s } type AllocatePublicIpAddressRequest struct { // The ID of the instance to which you want to assign a public IP address. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The public IP address. If you leave this parameter empty, the system randomly assigns a public IP address to the instance. IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The virtual LAN (VLAN) ID of the instance. // // > This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters. VlanId *string `json:"VlanId,omitempty" xml:"VlanId,omitempty"` } func (s AllocatePublicIpAddressRequest) String() string { return tea.Prettify(s) } func (s AllocatePublicIpAddressRequest) GoString() string { return s.String() } func (s *AllocatePublicIpAddressRequest) SetInstanceId(v string) *AllocatePublicIpAddressRequest { s.InstanceId = &v return s } func (s *AllocatePublicIpAddressRequest) SetIpAddress(v string) *AllocatePublicIpAddressRequest { s.IpAddress = &v return s } func (s *AllocatePublicIpAddressRequest) SetOwnerAccount(v string) *AllocatePublicIpAddressRequest { s.OwnerAccount = &v return s } func (s *AllocatePublicIpAddressRequest) SetOwnerId(v int64) *AllocatePublicIpAddressRequest { s.OwnerId = &v return s } func (s *AllocatePublicIpAddressRequest) SetResourceOwnerAccount(v string) *AllocatePublicIpAddressRequest { s.ResourceOwnerAccount = &v return s } func (s *AllocatePublicIpAddressRequest) SetResourceOwnerId(v int64) *AllocatePublicIpAddressRequest { s.ResourceOwnerId = &v return s } func (s *AllocatePublicIpAddressRequest) SetVlanId(v string) *AllocatePublicIpAddressRequest { s.VlanId = &v return s } type AllocatePublicIpAddressResponseBody struct { // The public IP address. IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AllocatePublicIpAddressResponseBody) String() string { return tea.Prettify(s) } func (s AllocatePublicIpAddressResponseBody) GoString() string { return s.String() } func (s *AllocatePublicIpAddressResponseBody) SetIpAddress(v string) *AllocatePublicIpAddressResponseBody { s.IpAddress = &v return s } func (s *AllocatePublicIpAddressResponseBody) SetRequestId(v string) *AllocatePublicIpAddressResponseBody { s.RequestId = &v return s } type AllocatePublicIpAddressResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AllocatePublicIpAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AllocatePublicIpAddressResponse) String() string { return tea.Prettify(s) } func (s AllocatePublicIpAddressResponse) GoString() string { return s.String() } func (s *AllocatePublicIpAddressResponse) SetHeaders(v map[string]*string) *AllocatePublicIpAddressResponse { s.Headers = v return s } func (s *AllocatePublicIpAddressResponse) SetStatusCode(v int32) *AllocatePublicIpAddressResponse { s.StatusCode = &v return s } func (s *AllocatePublicIpAddressResponse) SetBody(v *AllocatePublicIpAddressResponseBody) *AllocatePublicIpAddressResponse { s.Body = v return s } type ApplyAutoSnapshotPolicyRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the automatic snapshot policy. AutoSnapshotPolicyId *string `json:"autoSnapshotPolicyId,omitempty" xml:"autoSnapshotPolicyId,omitempty"` // The IDs of disks. The value is a JSON array that consists of disk IDs. Separate the disk IDs with commas (,). DiskIds *string `json:"diskIds,omitempty" xml:"diskIds,omitempty"` // The region ID of the automatic snapshot policy and the disks. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"` } func (s ApplyAutoSnapshotPolicyRequest) String() string { return tea.Prettify(s) } func (s ApplyAutoSnapshotPolicyRequest) GoString() string { return s.String() } func (s *ApplyAutoSnapshotPolicyRequest) SetOwnerId(v int64) *ApplyAutoSnapshotPolicyRequest { s.OwnerId = &v return s } func (s *ApplyAutoSnapshotPolicyRequest) SetResourceOwnerAccount(v string) *ApplyAutoSnapshotPolicyRequest { s.ResourceOwnerAccount = &v return s } func (s *ApplyAutoSnapshotPolicyRequest) SetResourceOwnerId(v int64) *ApplyAutoSnapshotPolicyRequest { s.ResourceOwnerId = &v return s } func (s *ApplyAutoSnapshotPolicyRequest) SetAutoSnapshotPolicyId(v string) *ApplyAutoSnapshotPolicyRequest { s.AutoSnapshotPolicyId = &v return s } func (s *ApplyAutoSnapshotPolicyRequest) SetDiskIds(v string) *ApplyAutoSnapshotPolicyRequest { s.DiskIds = &v return s } func (s *ApplyAutoSnapshotPolicyRequest) SetRegionId(v string) *ApplyAutoSnapshotPolicyRequest { s.RegionId = &v return s } type ApplyAutoSnapshotPolicyResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s ApplyAutoSnapshotPolicyResponseBody) String() string { return tea.Prettify(s) } func (s ApplyAutoSnapshotPolicyResponseBody) GoString() string { return s.String() } func (s *ApplyAutoSnapshotPolicyResponseBody) SetRequestId(v string) *ApplyAutoSnapshotPolicyResponseBody { s.RequestId = &v return s } type ApplyAutoSnapshotPolicyResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ApplyAutoSnapshotPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ApplyAutoSnapshotPolicyResponse) String() string { return tea.Prettify(s) } func (s ApplyAutoSnapshotPolicyResponse) GoString() string { return s.String() } func (s *ApplyAutoSnapshotPolicyResponse) SetHeaders(v map[string]*string) *ApplyAutoSnapshotPolicyResponse { s.Headers = v return s } func (s *ApplyAutoSnapshotPolicyResponse) SetStatusCode(v int32) *ApplyAutoSnapshotPolicyResponse { s.StatusCode = &v return s } func (s *ApplyAutoSnapshotPolicyResponse) SetBody(v *ApplyAutoSnapshotPolicyResponseBody) *ApplyAutoSnapshotPolicyResponse { s.Body = v return s } type AssignIpv6AddressesRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The IPv6 addresses that you want to assign to the ENI. You can specify up to 10 IPv6 addresses. // // Example: Ipv6Address.1=2001:db8:1234:1a00::\*\*\*\* // // > You must specify `Ipv6Addresses.N` or `Ipv6AddressCount` but cannot specify both. Ipv6Address []*string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty" type:"Repeated"` // The number of IPv6 addresses that you want to generate at random for the ENI. Valid values: 1 to 10. // // > You must specify `Ipv6Addresses.N` or `Ipv6AddressCount` but cannot specify both. Ipv6AddressCount *int32 `json:"Ipv6AddressCount,omitempty" xml:"Ipv6AddressCount,omitempty"` // > This parameter is in invitational preview and is unavailable for general users. Ipv6Prefix []*string `json:"Ipv6Prefix,omitempty" xml:"Ipv6Prefix,omitempty" type:"Repeated"` // > This parameter is in invitational preview and is unavailable for general users. Ipv6PrefixCount *int32 `json:"Ipv6PrefixCount,omitempty" xml:"Ipv6PrefixCount,omitempty"` // The ENI ID. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AssignIpv6AddressesRequest) String() string { return tea.Prettify(s) } func (s AssignIpv6AddressesRequest) GoString() string { return s.String() } func (s *AssignIpv6AddressesRequest) SetClientToken(v string) *AssignIpv6AddressesRequest { s.ClientToken = &v return s } func (s *AssignIpv6AddressesRequest) SetIpv6Address(v []*string) *AssignIpv6AddressesRequest { s.Ipv6Address = v return s } func (s *AssignIpv6AddressesRequest) SetIpv6AddressCount(v int32) *AssignIpv6AddressesRequest { s.Ipv6AddressCount = &v return s } func (s *AssignIpv6AddressesRequest) SetIpv6Prefix(v []*string) *AssignIpv6AddressesRequest { s.Ipv6Prefix = v return s } func (s *AssignIpv6AddressesRequest) SetIpv6PrefixCount(v int32) *AssignIpv6AddressesRequest { s.Ipv6PrefixCount = &v return s } func (s *AssignIpv6AddressesRequest) SetNetworkInterfaceId(v string) *AssignIpv6AddressesRequest { s.NetworkInterfaceId = &v return s } func (s *AssignIpv6AddressesRequest) SetOwnerAccount(v string) *AssignIpv6AddressesRequest { s.OwnerAccount = &v return s } func (s *AssignIpv6AddressesRequest) SetOwnerId(v int64) *AssignIpv6AddressesRequest { s.OwnerId = &v return s } func (s *AssignIpv6AddressesRequest) SetRegionId(v string) *AssignIpv6AddressesRequest { s.RegionId = &v return s } func (s *AssignIpv6AddressesRequest) SetResourceOwnerAccount(v string) *AssignIpv6AddressesRequest { s.ResourceOwnerAccount = &v return s } func (s *AssignIpv6AddressesRequest) SetResourceOwnerId(v int64) *AssignIpv6AddressesRequest { s.ResourceOwnerId = &v return s } type AssignIpv6AddressesResponseBody struct { // > This parameter is in invitational preview and is unavailable for general users. Ipv6PrefixSets *AssignIpv6AddressesResponseBodyIpv6PrefixSets `json:"Ipv6PrefixSets,omitempty" xml:"Ipv6PrefixSets,omitempty" type:"Struct"` // The IPv6 addresses assigned to the ENI. Ipv6Sets *AssignIpv6AddressesResponseBodyIpv6Sets `json:"Ipv6Sets,omitempty" xml:"Ipv6Sets,omitempty" type:"Struct"` // The ENI ID. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AssignIpv6AddressesResponseBody) String() string { return tea.Prettify(s) } func (s AssignIpv6AddressesResponseBody) GoString() string { return s.String() } func (s *AssignIpv6AddressesResponseBody) SetIpv6PrefixSets(v *AssignIpv6AddressesResponseBodyIpv6PrefixSets) *AssignIpv6AddressesResponseBody { s.Ipv6PrefixSets = v return s } func (s *AssignIpv6AddressesResponseBody) SetIpv6Sets(v *AssignIpv6AddressesResponseBodyIpv6Sets) *AssignIpv6AddressesResponseBody { s.Ipv6Sets = v return s } func (s *AssignIpv6AddressesResponseBody) SetNetworkInterfaceId(v string) *AssignIpv6AddressesResponseBody { s.NetworkInterfaceId = &v return s } func (s *AssignIpv6AddressesResponseBody) SetRequestId(v string) *AssignIpv6AddressesResponseBody { s.RequestId = &v return s } type AssignIpv6AddressesResponseBodyIpv6PrefixSets struct { Ipv6Prefix []*string `json:"Ipv6Prefix,omitempty" xml:"Ipv6Prefix,omitempty" type:"Repeated"` } func (s AssignIpv6AddressesResponseBodyIpv6PrefixSets) String() string { return tea.Prettify(s) } func (s AssignIpv6AddressesResponseBodyIpv6PrefixSets) GoString() string { return s.String() } func (s *AssignIpv6AddressesResponseBodyIpv6PrefixSets) SetIpv6Prefix(v []*string) *AssignIpv6AddressesResponseBodyIpv6PrefixSets { s.Ipv6Prefix = v return s } type AssignIpv6AddressesResponseBodyIpv6Sets struct { Ipv6Address []*string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty" type:"Repeated"` } func (s AssignIpv6AddressesResponseBodyIpv6Sets) String() string { return tea.Prettify(s) } func (s AssignIpv6AddressesResponseBodyIpv6Sets) GoString() string { return s.String() } func (s *AssignIpv6AddressesResponseBodyIpv6Sets) SetIpv6Address(v []*string) *AssignIpv6AddressesResponseBodyIpv6Sets { s.Ipv6Address = v return s } type AssignIpv6AddressesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AssignIpv6AddressesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AssignIpv6AddressesResponse) String() string { return tea.Prettify(s) } func (s AssignIpv6AddressesResponse) GoString() string { return s.String() } func (s *AssignIpv6AddressesResponse) SetHeaders(v map[string]*string) *AssignIpv6AddressesResponse { s.Headers = v return s } func (s *AssignIpv6AddressesResponse) SetStatusCode(v int32) *AssignIpv6AddressesResponse { s.StatusCode = &v return s } func (s *AssignIpv6AddressesResponse) SetBody(v *AssignIpv6AddressesResponseBody) *AssignIpv6AddressesResponse { s.Body = v return s } type AssignPrivateIpAddressesRequest struct { // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // > 该参数正在邀测中,暂未开放使用。 Ipv4Prefix []*string `json:"Ipv4Prefix,omitempty" xml:"Ipv4Prefix,omitempty" type:"Repeated"` // > 该参数正在邀测中,暂未开放使用。 Ipv4PrefixCount *int32 `json:"Ipv4PrefixCount,omitempty" xml:"Ipv4PrefixCount,omitempty"` // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // Secondary private IP address N to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI. Valid values of N: // // * When the ENI is in the Available (`Available`) state, the valid values of N are 1 to 50. // * When the ENI is in the InUse (`InUse`) state, the valid values of N are subject to the instance type. For more information, see [Overview of instance families](~~25378~~). // // To assign secondary private IP addresses to the ENI, you must specify `PrivateIpAddress.N` or `SecondaryPrivateIpAddressCount` but not both. PrivateIpAddress []*string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty" type:"Repeated"` // The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The number of private IP addresses to be automatically assigned from the CIDR block of the vSwitch that is connected to the ENI. // // To assign secondary private IP addresses to the ENI, you must specify `PrivateIpAddress.N` or `SecondaryPrivateIpAddressCount` but not both. SecondaryPrivateIpAddressCount *int32 `json:"SecondaryPrivateIpAddressCount,omitempty" xml:"SecondaryPrivateIpAddressCount,omitempty"` } func (s AssignPrivateIpAddressesRequest) String() string { return tea.Prettify(s) } func (s AssignPrivateIpAddressesRequest) GoString() string { return s.String() } func (s *AssignPrivateIpAddressesRequest) SetClientToken(v string) *AssignPrivateIpAddressesRequest { s.ClientToken = &v return s } func (s *AssignPrivateIpAddressesRequest) SetIpv4Prefix(v []*string) *AssignPrivateIpAddressesRequest { s.Ipv4Prefix = v return s } func (s *AssignPrivateIpAddressesRequest) SetIpv4PrefixCount(v int32) *AssignPrivateIpAddressesRequest { s.Ipv4PrefixCount = &v return s } func (s *AssignPrivateIpAddressesRequest) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesRequest { s.NetworkInterfaceId = &v return s } func (s *AssignPrivateIpAddressesRequest) SetOwnerAccount(v string) *AssignPrivateIpAddressesRequest { s.OwnerAccount = &v return s } func (s *AssignPrivateIpAddressesRequest) SetOwnerId(v int64) *AssignPrivateIpAddressesRequest { s.OwnerId = &v return s } func (s *AssignPrivateIpAddressesRequest) SetPrivateIpAddress(v []*string) *AssignPrivateIpAddressesRequest { s.PrivateIpAddress = v return s } func (s *AssignPrivateIpAddressesRequest) SetRegionId(v string) *AssignPrivateIpAddressesRequest { s.RegionId = &v return s } func (s *AssignPrivateIpAddressesRequest) SetResourceOwnerAccount(v string) *AssignPrivateIpAddressesRequest { s.ResourceOwnerAccount = &v return s } func (s *AssignPrivateIpAddressesRequest) SetResourceOwnerId(v int64) *AssignPrivateIpAddressesRequest { s.ResourceOwnerId = &v return s } func (s *AssignPrivateIpAddressesRequest) SetSecondaryPrivateIpAddressCount(v int32) *AssignPrivateIpAddressesRequest { s.SecondaryPrivateIpAddressCount = &v return s } type AssignPrivateIpAddressesResponseBody struct { // Details about the ENI and the secondary private IP addresses that are assigned to the ENI. AssignedPrivateIpAddressesSet *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet `json:"AssignedPrivateIpAddressesSet,omitempty" xml:"AssignedPrivateIpAddressesSet,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AssignPrivateIpAddressesResponseBody) String() string { return tea.Prettify(s) } func (s AssignPrivateIpAddressesResponseBody) GoString() string { return s.String() } func (s *AssignPrivateIpAddressesResponseBody) SetAssignedPrivateIpAddressesSet(v *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet) *AssignPrivateIpAddressesResponseBody { s.AssignedPrivateIpAddressesSet = v return s } func (s *AssignPrivateIpAddressesResponseBody) SetRequestId(v string) *AssignPrivateIpAddressesResponseBody { s.RequestId = &v return s } type AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet struct { // > 该参数正在邀测中,暂未开放使用。 Ipv4PrefixSet *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetIpv4PrefixSet `json:"Ipv4PrefixSet,omitempty" xml:"Ipv4PrefixSet,omitempty" type:"Struct"` // The ENI ID. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The secondary private IP addresses that are assigned to the ENI. PrivateIpSet *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetPrivateIpSet `json:"PrivateIpSet,omitempty" xml:"PrivateIpSet,omitempty" type:"Struct"` } func (s AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet) String() string { return tea.Prettify(s) } func (s AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet) GoString() string { return s.String() } func (s *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet) SetIpv4PrefixSet(v *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetIpv4PrefixSet) *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet { s.Ipv4PrefixSet = v return s } func (s *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet { s.NetworkInterfaceId = &v return s } func (s *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet) SetPrivateIpSet(v *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetPrivateIpSet) *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSet { s.PrivateIpSet = v return s } type AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetIpv4PrefixSet struct { Ipv4Prefixes []*string `json:"Ipv4Prefixes,omitempty" xml:"Ipv4Prefixes,omitempty" type:"Repeated"` } func (s AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetIpv4PrefixSet) String() string { return tea.Prettify(s) } func (s AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetIpv4PrefixSet) GoString() string { return s.String() } func (s *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetIpv4PrefixSet) SetIpv4Prefixes(v []*string) *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetIpv4PrefixSet { s.Ipv4Prefixes = v return s } type AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetPrivateIpSet struct { PrivateIpAddress []*string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty" type:"Repeated"` } func (s AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetPrivateIpSet) String() string { return tea.Prettify(s) } func (s AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetPrivateIpSet) GoString() string { return s.String() } func (s *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetPrivateIpSet) SetPrivateIpAddress(v []*string) *AssignPrivateIpAddressesResponseBodyAssignedPrivateIpAddressesSetPrivateIpSet { s.PrivateIpAddress = v return s } type AssignPrivateIpAddressesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AssignPrivateIpAddressesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AssignPrivateIpAddressesResponse) String() string { return tea.Prettify(s) } func (s AssignPrivateIpAddressesResponse) GoString() string { return s.String() } func (s *AssignPrivateIpAddressesResponse) SetHeaders(v map[string]*string) *AssignPrivateIpAddressesResponse { s.Headers = v return s } func (s *AssignPrivateIpAddressesResponse) SetStatusCode(v int32) *AssignPrivateIpAddressesResponse { s.StatusCode = &v return s } func (s *AssignPrivateIpAddressesResponse) SetBody(v *AssignPrivateIpAddressesResponseBody) *AssignPrivateIpAddressesResponse { s.Body = v return s } type AssociateEipAddressRequest struct { AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AssociateEipAddressRequest) String() string { return tea.Prettify(s) } func (s AssociateEipAddressRequest) GoString() string { return s.String() } func (s *AssociateEipAddressRequest) SetAllocationId(v string) *AssociateEipAddressRequest { s.AllocationId = &v return s } func (s *AssociateEipAddressRequest) SetInstanceId(v string) *AssociateEipAddressRequest { s.InstanceId = &v return s } func (s *AssociateEipAddressRequest) SetInstanceType(v string) *AssociateEipAddressRequest { s.InstanceType = &v return s } func (s *AssociateEipAddressRequest) SetOwnerAccount(v string) *AssociateEipAddressRequest { s.OwnerAccount = &v return s } func (s *AssociateEipAddressRequest) SetOwnerId(v int64) *AssociateEipAddressRequest { s.OwnerId = &v return s } func (s *AssociateEipAddressRequest) SetRegionId(v string) *AssociateEipAddressRequest { s.RegionId = &v return s } func (s *AssociateEipAddressRequest) SetResourceOwnerAccount(v string) *AssociateEipAddressRequest { s.ResourceOwnerAccount = &v return s } func (s *AssociateEipAddressRequest) SetResourceOwnerId(v int64) *AssociateEipAddressRequest { s.ResourceOwnerId = &v return s } type AssociateEipAddressResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AssociateEipAddressResponseBody) String() string { return tea.Prettify(s) } func (s AssociateEipAddressResponseBody) GoString() string { return s.String() } func (s *AssociateEipAddressResponseBody) SetRequestId(v string) *AssociateEipAddressResponseBody { s.RequestId = &v return s } type AssociateEipAddressResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AssociateEipAddressResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AssociateEipAddressResponse) String() string { return tea.Prettify(s) } func (s AssociateEipAddressResponse) GoString() string { return s.String() } func (s *AssociateEipAddressResponse) SetHeaders(v map[string]*string) *AssociateEipAddressResponse { s.Headers = v return s } func (s *AssociateEipAddressResponse) SetStatusCode(v int32) *AssociateEipAddressResponse { s.StatusCode = &v return s } func (s *AssociateEipAddressResponse) SetBody(v *AssociateEipAddressResponseBody) *AssociateEipAddressResponse { s.Body = v return s } type AssociateHaVipRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` HaVipId *string `json:"HaVipId,omitempty" xml:"HaVipId,omitempty"` InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AssociateHaVipRequest) String() string { return tea.Prettify(s) } func (s AssociateHaVipRequest) GoString() string { return s.String() } func (s *AssociateHaVipRequest) SetClientToken(v string) *AssociateHaVipRequest { s.ClientToken = &v return s } func (s *AssociateHaVipRequest) SetHaVipId(v string) *AssociateHaVipRequest { s.HaVipId = &v return s } func (s *AssociateHaVipRequest) SetInstanceId(v string) *AssociateHaVipRequest { s.InstanceId = &v return s } func (s *AssociateHaVipRequest) SetOwnerAccount(v string) *AssociateHaVipRequest { s.OwnerAccount = &v return s } func (s *AssociateHaVipRequest) SetOwnerId(v int64) *AssociateHaVipRequest { s.OwnerId = &v return s } func (s *AssociateHaVipRequest) SetRegionId(v string) *AssociateHaVipRequest { s.RegionId = &v return s } func (s *AssociateHaVipRequest) SetResourceOwnerAccount(v string) *AssociateHaVipRequest { s.ResourceOwnerAccount = &v return s } func (s *AssociateHaVipRequest) SetResourceOwnerId(v int64) *AssociateHaVipRequest { s.ResourceOwnerId = &v return s } type AssociateHaVipResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AssociateHaVipResponseBody) String() string { return tea.Prettify(s) } func (s AssociateHaVipResponseBody) GoString() string { return s.String() } func (s *AssociateHaVipResponseBody) SetRequestId(v string) *AssociateHaVipResponseBody { s.RequestId = &v return s } type AssociateHaVipResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AssociateHaVipResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AssociateHaVipResponse) String() string { return tea.Prettify(s) } func (s AssociateHaVipResponse) GoString() string { return s.String() } func (s *AssociateHaVipResponse) SetHeaders(v map[string]*string) *AssociateHaVipResponse { s.Headers = v return s } func (s *AssociateHaVipResponse) SetStatusCode(v int32) *AssociateHaVipResponse { s.StatusCode = &v return s } func (s *AssociateHaVipResponse) SetBody(v *AssociateHaVipResponseBody) *AssociateHaVipResponse { s.Body = v return s } type AttachClassicLinkVpcRequest struct { // The ID of the instance that is deployed in the classic network. You can call the [DescribeInstances](~~25506~~) operation to query available instances. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the VPC for which the ClassicLink feature is enabled. You can call the [DescribeVpcs](~~35739~~) operation to query available VPCs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s AttachClassicLinkVpcRequest) String() string { return tea.Prettify(s) } func (s AttachClassicLinkVpcRequest) GoString() string { return s.String() } func (s *AttachClassicLinkVpcRequest) SetInstanceId(v string) *AttachClassicLinkVpcRequest { s.InstanceId = &v return s } func (s *AttachClassicLinkVpcRequest) SetOwnerId(v int64) *AttachClassicLinkVpcRequest { s.OwnerId = &v return s } func (s *AttachClassicLinkVpcRequest) SetRegionId(v string) *AttachClassicLinkVpcRequest { s.RegionId = &v return s } func (s *AttachClassicLinkVpcRequest) SetResourceOwnerAccount(v string) *AttachClassicLinkVpcRequest { s.ResourceOwnerAccount = &v return s } func (s *AttachClassicLinkVpcRequest) SetResourceOwnerId(v int64) *AttachClassicLinkVpcRequest { s.ResourceOwnerId = &v return s } func (s *AttachClassicLinkVpcRequest) SetVpcId(v string) *AttachClassicLinkVpcRequest { s.VpcId = &v return s } type AttachClassicLinkVpcResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AttachClassicLinkVpcResponseBody) String() string { return tea.Prettify(s) } func (s AttachClassicLinkVpcResponseBody) GoString() string { return s.String() } func (s *AttachClassicLinkVpcResponseBody) SetRequestId(v string) *AttachClassicLinkVpcResponseBody { s.RequestId = &v return s } type AttachClassicLinkVpcResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AttachClassicLinkVpcResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AttachClassicLinkVpcResponse) String() string { return tea.Prettify(s) } func (s AttachClassicLinkVpcResponse) GoString() string { return s.String() } func (s *AttachClassicLinkVpcResponse) SetHeaders(v map[string]*string) *AttachClassicLinkVpcResponse { s.Headers = v return s } func (s *AttachClassicLinkVpcResponse) SetStatusCode(v int32) *AttachClassicLinkVpcResponse { s.StatusCode = &v return s } func (s *AttachClassicLinkVpcResponse) SetBody(v *AttachClassicLinkVpcResponseBody) *AttachClassicLinkVpcResponse { s.Body = v return s } type AttachDiskRequest struct { // Specifies whether to attach the disk as a system disk. // // Default value: false. // // > If you set `Bootable` to true, the instance must be in the No System Disk state. Bootable *bool `json:"Bootable,omitempty" xml:"Bootable,omitempty"` // Specifies whether to release the disk when the instance is released. Valid values: // // * true: releases the disk when the instance is released. // * false: does not release the data disk when the instance is released. The disk is retained as a pay-as-you-go data disk. // // Default value: false. // // When you specify this parameter, take note of the following items: // // * If `OperationLocks` in the DescribeInstances response contains `"LockReason" : "security"` for the instance to which the disk is attached, the instance is locked for security reasons. Regardless of whether you set `DeleteWithInstance` to `false`, the DeleteWithInstance parameter is ignored, and the disk is released when the instance is released. // * You cannot specify this parameter for disks for which the multi-attach feature is enabled. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The device name of the disk. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure compatibility. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The ID of the disk. The disk specified by the `DiskId` parameter and the instance specified by the `InstanceId` parameter must reside in the same zone. // // > For more information about the limits on attaching a data disk and a system disk, see the "Usage notes" section of this topic. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The ID of the instance to which you want to attach the disk. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the SSH key pair that you bind to the Linux instance when you attach the system disk. // // * Windows instances do not support logons based on SSH key pairs. The `Password` parameter takes effect even if the KeyPairName parameter is specified. // * For Linux instances, the username and password-based logon method is disabled by default. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The password that is set when you attach the system disk. The password is applicable only to the administrator and root users. The password must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported: // // ()`~!@#$%^&*-_+=|{}[]:;\"<>,.?/ // // For Windows instances, passwords cannot start with a forward slash (/). // // > If `Password` is configured, we recommend that you send requests over HTTPS to prevent password leaks. Password *string `json:"Password,omitempty" xml:"Password,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AttachDiskRequest) String() string { return tea.Prettify(s) } func (s AttachDiskRequest) GoString() string { return s.String() } func (s *AttachDiskRequest) SetBootable(v bool) *AttachDiskRequest { s.Bootable = &v return s } func (s *AttachDiskRequest) SetDeleteWithInstance(v bool) *AttachDiskRequest { s.DeleteWithInstance = &v return s } func (s *AttachDiskRequest) SetDevice(v string) *AttachDiskRequest { s.Device = &v return s } func (s *AttachDiskRequest) SetDiskId(v string) *AttachDiskRequest { s.DiskId = &v return s } func (s *AttachDiskRequest) SetInstanceId(v string) *AttachDiskRequest { s.InstanceId = &v return s } func (s *AttachDiskRequest) SetKeyPairName(v string) *AttachDiskRequest { s.KeyPairName = &v return s } func (s *AttachDiskRequest) SetOwnerAccount(v string) *AttachDiskRequest { s.OwnerAccount = &v return s } func (s *AttachDiskRequest) SetOwnerId(v int64) *AttachDiskRequest { s.OwnerId = &v return s } func (s *AttachDiskRequest) SetPassword(v string) *AttachDiskRequest { s.Password = &v return s } func (s *AttachDiskRequest) SetResourceOwnerAccount(v string) *AttachDiskRequest { s.ResourceOwnerAccount = &v return s } func (s *AttachDiskRequest) SetResourceOwnerId(v int64) *AttachDiskRequest { s.ResourceOwnerId = &v return s } type AttachDiskResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AttachDiskResponseBody) String() string { return tea.Prettify(s) } func (s AttachDiskResponseBody) GoString() string { return s.String() } func (s *AttachDiskResponseBody) SetRequestId(v string) *AttachDiskResponseBody { s.RequestId = &v return s } type AttachDiskResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AttachDiskResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AttachDiskResponse) String() string { return tea.Prettify(s) } func (s AttachDiskResponse) GoString() string { return s.String() } func (s *AttachDiskResponse) SetHeaders(v map[string]*string) *AttachDiskResponse { s.Headers = v return s } func (s *AttachDiskResponse) SetStatusCode(v int32) *AttachDiskResponse { s.StatusCode = &v return s } func (s *AttachDiskResponse) SetBody(v *AttachDiskResponseBody) *AttachDiskResponse { s.Body = v return s } type AttachInstanceRamRoleRequest struct { // The IDs of the instances. The value can be a JSON array that consists of up to 100 instance IDs. Separate the IDs with commas (,). InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The policy. The policy document must be 1 to 1,024 characters in length. When you attach an instance RAM role to one or more instances, you can specify an additional policy to further limit the permissions of the role. For more information, see [Policy overview](~~93732~~). Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"` // The name of the instance RAM role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AttachInstanceRamRoleRequest) String() string { return tea.Prettify(s) } func (s AttachInstanceRamRoleRequest) GoString() string { return s.String() } func (s *AttachInstanceRamRoleRequest) SetInstanceIds(v string) *AttachInstanceRamRoleRequest { s.InstanceIds = &v return s } func (s *AttachInstanceRamRoleRequest) SetOwnerId(v int64) *AttachInstanceRamRoleRequest { s.OwnerId = &v return s } func (s *AttachInstanceRamRoleRequest) SetPolicy(v string) *AttachInstanceRamRoleRequest { s.Policy = &v return s } func (s *AttachInstanceRamRoleRequest) SetRamRoleName(v string) *AttachInstanceRamRoleRequest { s.RamRoleName = &v return s } func (s *AttachInstanceRamRoleRequest) SetRegionId(v string) *AttachInstanceRamRoleRequest { s.RegionId = &v return s } func (s *AttachInstanceRamRoleRequest) SetResourceOwnerAccount(v string) *AttachInstanceRamRoleRequest { s.ResourceOwnerAccount = &v return s } func (s *AttachInstanceRamRoleRequest) SetResourceOwnerId(v int64) *AttachInstanceRamRoleRequest { s.ResourceOwnerId = &v return s } type AttachInstanceRamRoleResponseBody struct { // Details about the results of attaching the instance RAM role. AttachInstanceRamRoleResults *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResults `json:"AttachInstanceRamRoleResults,omitempty" xml:"AttachInstanceRamRoleResults,omitempty" type:"Struct"` // The number of instances to which the instance RAM role failed to be attached. FailCount *int32 `json:"FailCount,omitempty" xml:"FailCount,omitempty"` // The name of the instance RAM role. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of instances to which you attempted to attach the instance RAM role. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s AttachInstanceRamRoleResponseBody) String() string { return tea.Prettify(s) } func (s AttachInstanceRamRoleResponseBody) GoString() string { return s.String() } func (s *AttachInstanceRamRoleResponseBody) SetAttachInstanceRamRoleResults(v *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResults) *AttachInstanceRamRoleResponseBody { s.AttachInstanceRamRoleResults = v return s } func (s *AttachInstanceRamRoleResponseBody) SetFailCount(v int32) *AttachInstanceRamRoleResponseBody { s.FailCount = &v return s } func (s *AttachInstanceRamRoleResponseBody) SetRamRoleName(v string) *AttachInstanceRamRoleResponseBody { s.RamRoleName = &v return s } func (s *AttachInstanceRamRoleResponseBody) SetRequestId(v string) *AttachInstanceRamRoleResponseBody { s.RequestId = &v return s } func (s *AttachInstanceRamRoleResponseBody) SetTotalCount(v int32) *AttachInstanceRamRoleResponseBody { s.TotalCount = &v return s } type AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResults struct { AttachInstanceRamRoleResult []*AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult `json:"AttachInstanceRamRoleResult,omitempty" xml:"AttachInstanceRamRoleResult,omitempty" type:"Repeated"` } func (s AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResults) String() string { return tea.Prettify(s) } func (s AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResults) GoString() string { return s.String() } func (s *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResults) SetAttachInstanceRamRoleResult(v []*AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult) *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResults { s.AttachInstanceRamRoleResult = v return s } type AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult struct { // Indicates whether the instance RAM role was attached. If the instance RAM role was attached, 200 is returned. If the instance RAM role failed to be attached, any other value is returned. For more information, see the "Error codes" section. Code *string `json:"Code,omitempty" xml:"Code,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // Indicates whether the instance RAM role was attached. If the instance RAM role was attached, success is returned. If the instance RAM role failed to be attached, any other value is returned. For more information, see the "Error codes" section. Message *string `json:"Message,omitempty" xml:"Message,omitempty"` // Indicates whether the instance RAM role was attached. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"` } func (s AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult) String() string { return tea.Prettify(s) } func (s AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult) GoString() string { return s.String() } func (s *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult) SetCode(v string) *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult { s.Code = &v return s } func (s *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult) SetInstanceId(v string) *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult { s.InstanceId = &v return s } func (s *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult) SetMessage(v string) *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult { s.Message = &v return s } func (s *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult) SetSuccess(v bool) *AttachInstanceRamRoleResponseBodyAttachInstanceRamRoleResultsAttachInstanceRamRoleResult { s.Success = &v return s } type AttachInstanceRamRoleResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AttachInstanceRamRoleResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AttachInstanceRamRoleResponse) String() string { return tea.Prettify(s) } func (s AttachInstanceRamRoleResponse) GoString() string { return s.String() } func (s *AttachInstanceRamRoleResponse) SetHeaders(v map[string]*string) *AttachInstanceRamRoleResponse { s.Headers = v return s } func (s *AttachInstanceRamRoleResponse) SetStatusCode(v int32) *AttachInstanceRamRoleResponse { s.StatusCode = &v return s } func (s *AttachInstanceRamRoleResponse) SetBody(v *AttachInstanceRamRoleResponseBody) *AttachInstanceRamRoleResponse { s.Body = v return s } type AttachKeyPairRequest struct { // The IDs of instances to which you want to bind the SSH key pair. The value can be a JSON array that consists of up to 50 instance IDs. Separate multiple instance IDs with commas (,). InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` // The name of the SSH key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the SSH key pair. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s AttachKeyPairRequest) String() string { return tea.Prettify(s) } func (s AttachKeyPairRequest) GoString() string { return s.String() } func (s *AttachKeyPairRequest) SetInstanceIds(v string) *AttachKeyPairRequest { s.InstanceIds = &v return s } func (s *AttachKeyPairRequest) SetKeyPairName(v string) *AttachKeyPairRequest { s.KeyPairName = &v return s } func (s *AttachKeyPairRequest) SetOwnerId(v int64) *AttachKeyPairRequest { s.OwnerId = &v return s } func (s *AttachKeyPairRequest) SetRegionId(v string) *AttachKeyPairRequest { s.RegionId = &v return s } func (s *AttachKeyPairRequest) SetResourceOwnerAccount(v string) *AttachKeyPairRequest { s.ResourceOwnerAccount = &v return s } func (s *AttachKeyPairRequest) SetResourceOwnerId(v int64) *AttachKeyPairRequest { s.ResourceOwnerId = &v return s } type AttachKeyPairResponseBody struct { // The number of instances to which the SSH key pair fails to be bound. FailCount *string `json:"FailCount,omitempty" xml:"FailCount,omitempty"` // The name of the SSH key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // An array that contains the results of the operation. Results *AttachKeyPairResponseBodyResults `json:"Results,omitempty" xml:"Results,omitempty" type:"Struct"` // The total number of instances to which the SSH key pair is bound. TotalCount *string `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s AttachKeyPairResponseBody) String() string { return tea.Prettify(s) } func (s AttachKeyPairResponseBody) GoString() string { return s.String() } func (s *AttachKeyPairResponseBody) SetFailCount(v string) *AttachKeyPairResponseBody { s.FailCount = &v return s } func (s *AttachKeyPairResponseBody) SetKeyPairName(v string) *AttachKeyPairResponseBody { s.KeyPairName = &v return s } func (s *AttachKeyPairResponseBody) SetRequestId(v string) *AttachKeyPairResponseBody { s.RequestId = &v return s } func (s *AttachKeyPairResponseBody) SetResults(v *AttachKeyPairResponseBodyResults) *AttachKeyPairResponseBody { s.Results = v return s } func (s *AttachKeyPairResponseBody) SetTotalCount(v string) *AttachKeyPairResponseBody { s.TotalCount = &v return s } type AttachKeyPairResponseBodyResults struct { Result []*AttachKeyPairResponseBodyResultsResult `json:"Result,omitempty" xml:"Result,omitempty" type:"Repeated"` } func (s AttachKeyPairResponseBodyResults) String() string { return tea.Prettify(s) } func (s AttachKeyPairResponseBodyResults) GoString() string { return s.String() } func (s *AttachKeyPairResponseBodyResults) SetResult(v []*AttachKeyPairResponseBodyResultsResult) *AttachKeyPairResponseBodyResults { s.Result = v return s } type AttachKeyPairResponseBodyResultsResult struct { // The operation status code returned. 200 indicates that the operation was successful. Code *string `json:"Code,omitempty" xml:"Code,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The operation information returned. When the value of Code is 200, the value of Message is successful. Message *string `json:"Message,omitempty" xml:"Message,omitempty"` // Indicates whether the request was successful. Success *string `json:"Success,omitempty" xml:"Success,omitempty"` } func (s AttachKeyPairResponseBodyResultsResult) String() string { return tea.Prettify(s) } func (s AttachKeyPairResponseBodyResultsResult) GoString() string { return s.String() } func (s *AttachKeyPairResponseBodyResultsResult) SetCode(v string) *AttachKeyPairResponseBodyResultsResult { s.Code = &v return s } func (s *AttachKeyPairResponseBodyResultsResult) SetInstanceId(v string) *AttachKeyPairResponseBodyResultsResult { s.InstanceId = &v return s } func (s *AttachKeyPairResponseBodyResultsResult) SetMessage(v string) *AttachKeyPairResponseBodyResultsResult { s.Message = &v return s } func (s *AttachKeyPairResponseBodyResultsResult) SetSuccess(v string) *AttachKeyPairResponseBodyResultsResult { s.Success = &v return s } type AttachKeyPairResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AttachKeyPairResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AttachKeyPairResponse) String() string { return tea.Prettify(s) } func (s AttachKeyPairResponse) GoString() string { return s.String() } func (s *AttachKeyPairResponse) SetHeaders(v map[string]*string) *AttachKeyPairResponse { s.Headers = v return s } func (s *AttachKeyPairResponse) SetStatusCode(v int32) *AttachKeyPairResponse { s.StatusCode = &v return s } func (s *AttachKeyPairResponse) SetBody(v *AttachKeyPairResponseBody) *AttachKeyPairResponse { s.Body = v return s } type AttachNetworkInterfaceRequest struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The index of the network interface controller (NIC). // // > The value of this parameter varies based on the instance family of the specified instance. If the instance type of the specified instance does not support NICs, leave this parameter empty. If the instance type of the specified instance supports NICs, set this parameter to a valid value. For information about the valid values of this parameter, see [Instance families](~~25378~~). NetworkCardIndex *int32 `json:"NetworkCardIndex,omitempty" xml:"NetworkCardIndex,omitempty"` // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the trunk ENI. // // > This parameter is unavailable. TrunkNetworkInstanceId *string `json:"TrunkNetworkInstanceId,omitempty" xml:"TrunkNetworkInstanceId,omitempty"` // > This parameter is no longer supported. WaitForNetworkConfigurationReady *bool `json:"WaitForNetworkConfigurationReady,omitempty" xml:"WaitForNetworkConfigurationReady,omitempty"` } func (s AttachNetworkInterfaceRequest) String() string { return tea.Prettify(s) } func (s AttachNetworkInterfaceRequest) GoString() string { return s.String() } func (s *AttachNetworkInterfaceRequest) SetInstanceId(v string) *AttachNetworkInterfaceRequest { s.InstanceId = &v return s } func (s *AttachNetworkInterfaceRequest) SetNetworkCardIndex(v int32) *AttachNetworkInterfaceRequest { s.NetworkCardIndex = &v return s } func (s *AttachNetworkInterfaceRequest) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceRequest { s.NetworkInterfaceId = &v return s } func (s *AttachNetworkInterfaceRequest) SetOwnerAccount(v string) *AttachNetworkInterfaceRequest { s.OwnerAccount = &v return s } func (s *AttachNetworkInterfaceRequest) SetOwnerId(v int64) *AttachNetworkInterfaceRequest { s.OwnerId = &v return s } func (s *AttachNetworkInterfaceRequest) SetRegionId(v string) *AttachNetworkInterfaceRequest { s.RegionId = &v return s } func (s *AttachNetworkInterfaceRequest) SetResourceOwnerAccount(v string) *AttachNetworkInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *AttachNetworkInterfaceRequest) SetResourceOwnerId(v int64) *AttachNetworkInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *AttachNetworkInterfaceRequest) SetTrunkNetworkInstanceId(v string) *AttachNetworkInterfaceRequest { s.TrunkNetworkInstanceId = &v return s } func (s *AttachNetworkInterfaceRequest) SetWaitForNetworkConfigurationReady(v bool) *AttachNetworkInterfaceRequest { s.WaitForNetworkConfigurationReady = &v return s } type AttachNetworkInterfaceResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AttachNetworkInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s AttachNetworkInterfaceResponseBody) GoString() string { return s.String() } func (s *AttachNetworkInterfaceResponseBody) SetRequestId(v string) *AttachNetworkInterfaceResponseBody { s.RequestId = &v return s } type AttachNetworkInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AttachNetworkInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AttachNetworkInterfaceResponse) String() string { return tea.Prettify(s) } func (s AttachNetworkInterfaceResponse) GoString() string { return s.String() } func (s *AttachNetworkInterfaceResponse) SetHeaders(v map[string]*string) *AttachNetworkInterfaceResponse { s.Headers = v return s } func (s *AttachNetworkInterfaceResponse) SetStatusCode(v int32) *AttachNetworkInterfaceResponse { s.StatusCode = &v return s } func (s *AttachNetworkInterfaceResponse) SetBody(v *AttachNetworkInterfaceResponseBody) *AttachNetworkInterfaceResponse { s.Body = v return s } type AuthorizeSecurityGroupRequest struct { // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Description` to specify the rule description. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.DestCidrIp` to specify the destination IPv4 CIDR block. DestCidrIp *string `json:"DestCidrIp,omitempty" xml:"DestCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.IpProtocol` to specify the transport layer protocol. IpProtocol *string `json:"IpProtocol,omitempty" xml:"IpProtocol,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Ipv6SourceCidrIp` to specify the source IPv6 CIDR block. Ipv6DestCidrIp *string `json:"Ipv6DestCidrIp,omitempty" xml:"Ipv6DestCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Ipv6SourceCidrIp` to specify the source IPv6 CIDR block. Ipv6SourceCidrIp *string `json:"Ipv6SourceCidrIp,omitempty" xml:"Ipv6SourceCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.NicType` to specify the network interface type. NicType *string `json:"NicType,omitempty" xml:"NicType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // Security group rule N. Valid values of N: 1 to 100. Permissions []*AuthorizeSecurityGroupRequestPermissions `json:"Permissions,omitempty" xml:"Permissions,omitempty" type:"Repeated"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Policy` to specify whether to allow access. Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.PortRange` to specify the range of destination ports. PortRange *string `json:"PortRange,omitempty" xml:"PortRange,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Priority` to specify the rule priority. Priority *string `json:"Priority,omitempty" xml:"Priority,omitempty"` // The region ID of the security group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the security group. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourceCidrIp` to specify the source IPv4 CIDR block. SourceCidrIp *string `json:"SourceCidrIp,omitempty" xml:"SourceCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourceGroupId` to specify the ID of the source security group. SourceGroupId *string `json:"SourceGroupId,omitempty" xml:"SourceGroupId,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourceGroupOwnerAccount` to specify the Alibaba Cloud account that manages the source security group. SourceGroupOwnerAccount *string `json:"SourceGroupOwnerAccount,omitempty" xml:"SourceGroupOwnerAccount,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourceGroupOwnerId` to specify the ID of the Alibaba Cloud account that manages the source security group. SourceGroupOwnerId *int64 `json:"SourceGroupOwnerId,omitempty" xml:"SourceGroupOwnerId,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourcePortRange` to specify the range of source ports. SourcePortRange *string `json:"SourcePortRange,omitempty" xml:"SourcePortRange,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourcePrefixListId` to specify the ID of the source prefix list. SourcePrefixListId *string `json:"SourcePrefixListId,omitempty" xml:"SourcePrefixListId,omitempty"` } func (s AuthorizeSecurityGroupRequest) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupRequest) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupRequest) SetClientToken(v string) *AuthorizeSecurityGroupRequest { s.ClientToken = &v return s } func (s *AuthorizeSecurityGroupRequest) SetDescription(v string) *AuthorizeSecurityGroupRequest { s.Description = &v return s } func (s *AuthorizeSecurityGroupRequest) SetDestCidrIp(v string) *AuthorizeSecurityGroupRequest { s.DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequest) SetIpProtocol(v string) *AuthorizeSecurityGroupRequest { s.IpProtocol = &v return s } func (s *AuthorizeSecurityGroupRequest) SetIpv6DestCidrIp(v string) *AuthorizeSecurityGroupRequest { s.Ipv6DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequest) SetIpv6SourceCidrIp(v string) *AuthorizeSecurityGroupRequest { s.Ipv6SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequest) SetNicType(v string) *AuthorizeSecurityGroupRequest { s.NicType = &v return s } func (s *AuthorizeSecurityGroupRequest) SetOwnerAccount(v string) *AuthorizeSecurityGroupRequest { s.OwnerAccount = &v return s } func (s *AuthorizeSecurityGroupRequest) SetOwnerId(v int64) *AuthorizeSecurityGroupRequest { s.OwnerId = &v return s } func (s *AuthorizeSecurityGroupRequest) SetPermissions(v []*AuthorizeSecurityGroupRequestPermissions) *AuthorizeSecurityGroupRequest { s.Permissions = v return s } func (s *AuthorizeSecurityGroupRequest) SetPolicy(v string) *AuthorizeSecurityGroupRequest { s.Policy = &v return s } func (s *AuthorizeSecurityGroupRequest) SetPortRange(v string) *AuthorizeSecurityGroupRequest { s.PortRange = &v return s } func (s *AuthorizeSecurityGroupRequest) SetPriority(v string) *AuthorizeSecurityGroupRequest { s.Priority = &v return s } func (s *AuthorizeSecurityGroupRequest) SetRegionId(v string) *AuthorizeSecurityGroupRequest { s.RegionId = &v return s } func (s *AuthorizeSecurityGroupRequest) SetResourceOwnerAccount(v string) *AuthorizeSecurityGroupRequest { s.ResourceOwnerAccount = &v return s } func (s *AuthorizeSecurityGroupRequest) SetResourceOwnerId(v int64) *AuthorizeSecurityGroupRequest { s.ResourceOwnerId = &v return s } func (s *AuthorizeSecurityGroupRequest) SetSecurityGroupId(v string) *AuthorizeSecurityGroupRequest { s.SecurityGroupId = &v return s } func (s *AuthorizeSecurityGroupRequest) SetSourceCidrIp(v string) *AuthorizeSecurityGroupRequest { s.SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequest) SetSourceGroupId(v string) *AuthorizeSecurityGroupRequest { s.SourceGroupId = &v return s } func (s *AuthorizeSecurityGroupRequest) SetSourceGroupOwnerAccount(v string) *AuthorizeSecurityGroupRequest { s.SourceGroupOwnerAccount = &v return s } func (s *AuthorizeSecurityGroupRequest) SetSourceGroupOwnerId(v int64) *AuthorizeSecurityGroupRequest { s.SourceGroupOwnerId = &v return s } func (s *AuthorizeSecurityGroupRequest) SetSourcePortRange(v string) *AuthorizeSecurityGroupRequest { s.SourcePortRange = &v return s } func (s *AuthorizeSecurityGroupRequest) SetSourcePrefixListId(v string) *AuthorizeSecurityGroupRequest { s.SourcePrefixListId = &v return s } type AuthorizeSecurityGroupRequestPermissions struct { // The description of security group rule N. The description must be 1 to 512 characters in length. // // Valid values of N: 1 to 100. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The destination IPv4 CIDR block for security group rule N. CIDR blocks and IPv4 addresses are supported. // // This parameter is specified to meet quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). // // Valid values of N: 1 to 100. DestCidrIp *string `json:"DestCidrIp,omitempty" xml:"DestCidrIp,omitempty"` // The transport layer protocol of security group rule N. The value of this parameter is case-insensitive. Valid values: // // * TCP // * UDP // * ICMP // * ICMPv6 // * GRE // * ALL: All protocols are supported. // // Valid values of N: 1 to 100. IpProtocol *string `json:"IpProtocol,omitempty" xml:"IpProtocol,omitempty"` // The destination IPv6 CIDR block for security group rule N. CIDR blocks and IPv6 addresses are supported. // // This parameter is specified to meet quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). // // Valid values of N: 1 to 100. // // > This parameter is valid only when the source is ECS instances that reside in VPCs and support IPv6 CIDR blocks. You cannot specify both this parameter and the `DestCidrIp` parameter. Ipv6DestCidrIp *string `json:"Ipv6DestCidrIp,omitempty" xml:"Ipv6DestCidrIp,omitempty"` // The source IPv6 CIDR block for security group rule N. CIDR blocks and IPv6 addresses are supported. // // Valid values of N: 1 to 100. // // > This parameter takes effect only if the sources are ECS instances that reside in VPCs and support IPv6 CIDR blocks. You cannot specify this parameter and `SourceCidrIp` at the same time. Ipv6SourceCidrIp *string `json:"Ipv6SourceCidrIp,omitempty" xml:"Ipv6SourceCidrIp,omitempty"` // The network interface controller (NIC) type of security group rule N when the security group is in the classic network. Valid values: // // * internet: public NIC. // * intranet: internal NIC. // // If the security group is in a VPC, this parameter is set to intranet by default and cannot be changed. // // If you specify only DestGroupId when you configure access between security groups, this parameter must be set to intranet. // // Default value: internet. // // Valid values of N: 1 to 100. NicType *string `json:"NicType,omitempty" xml:"NicType,omitempty"` // The action of security group rule N that determines whether to allow inbound access. Valid values: // // * accept: allows access. // * drop: denies access and returns no responses. In this case, the request times out or the connection cannot be established. // // Default value: accept. // // Valid values of N: 1 to 100. Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"` // The range of destination ports that correspond to the transport layer protocol for security group rule N. Valid values: // // * If you set IpProtocol to TCP or UDP, the port number range is 1 to 65535. Specify a port range in the format of \/\. Example: 1/200. // * If you set IpProtocol to ICMP, the port number range is -1/-1. // * If you set IpProtocol to GRE, the port number range is -1/-1. // * If you set IpProtocol to ALL, the port number range is -1/-1. // // For more information, see [Typical applications of commonly used ports](~~40724~~). // // Valid values of N: 1 to 100. PortRange *string `json:"PortRange,omitempty" xml:"PortRange,omitempty"` // The priority of security group rule N. A smaller value specifies a higher priority. Valid values: 1 to 100. // // Default value: 1. // // Valid values of N: 1 to 100. Priority *string `json:"Priority,omitempty" xml:"Priority,omitempty"` // The source IPv4 CIDR block for security group rule N. CIDR blocks and IPv4 addresses are supported. // // Valid values of N: 1 to 100. SourceCidrIp *string `json:"SourceCidrIp,omitempty" xml:"SourceCidrIp,omitempty"` // The ID of the source security group to be referenced in security group rule N. // // * At least one of `SourceGroupId`, `SourceCidrIp`, `Ipv6SourceCidrIp`, and `SourcePrefixListId` must be specified. // * If `SourceGroupId` is specified but `SourceCidrIp` or `Ipv6SourceCidrIp` is not specified, `NicType` must be set to `intranet`. // * If both `SourceGroupId` and `SourceCidrIp` are specified, `SourceCidrIp` takes precedence. // // Valid values of N: 1 to 100. // // Take note of the following items: // // * For advanced security groups, security groups cannot be used as authorization objects. // * For each basic security group, up to 20 security groups can be used as authorization objects. SourceGroupId *string `json:"SourceGroupId,omitempty" xml:"SourceGroupId,omitempty"` // The Alibaba Cloud account that manages the source security group when you set a security group rule across accounts. // // * If you do not specify `SourceGroupOwnerAccount` and `SourceGroupOwnerId`, access permissions are configured for another security group managed by your account. // * If you specify `SourceCidrIp`, `SourceGroupOwnerAccount` becomes invalid. // // Valid values of N: 1 to 100. SourceGroupOwnerAccount *string `json:"SourceGroupOwnerAccount,omitempty" xml:"SourceGroupOwnerAccount,omitempty"` // The ID of the Alibaba Cloud account that manages the source security group when you set security group rule N across accounts. // // * If you do not specify `SourceGroupOwnerAccount` and `SourceGroupOwnerId`, access permissions are configured for another security group managed by your account. // * If you specify `SourceCidrIp`, `SourceGroupOwnerAccount` is ignored. // // Valid values of N: 1 to 100. SourceGroupOwnerId *int64 `json:"SourceGroupOwnerId,omitempty" xml:"SourceGroupOwnerId,omitempty"` // The range of source ports that correspond to the transport layer protocol for security group rule N. Valid values: // // * If you set IpProtocol to TCP or UDP, the port number range is 1 to 65535. Specify a port range in the format of \/\. Example: 1/200. // * If you set IpProtocol to ICMP, the port number range is -1/-1. // * If you set IpProtocol to GRE, the port number range is -1/-1. // * If you set IpProtocol to ALL, the port number range is -1/-1. // // This parameter is specified to meet quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). // // Valid values of N: 1 to 100. SourcePortRange *string `json:"SourcePortRange,omitempty" xml:"SourcePortRange,omitempty"` // The ID of the source prefix list to which you want to control access. You can call the [DescribePrefixLists](~~205046~~) operation to query the IDs of available prefix lists. // // Valid values of N: 1 to 100. // // Take note of the following items: // // * If a security group is in the classic network, you cannot reference prefix lists in the security group rules. For information about the limits on security groups and prefix lists, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~). // * If you specify `SourceCidrIp`, `Ipv6SourceCidrIp`, or `SourceGroupId`, this parameter is ignored. SourcePrefixListId *string `json:"SourcePrefixListId,omitempty" xml:"SourcePrefixListId,omitempty"` } func (s AuthorizeSecurityGroupRequestPermissions) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupRequestPermissions) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupRequestPermissions) SetDescription(v string) *AuthorizeSecurityGroupRequestPermissions { s.Description = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetDestCidrIp(v string) *AuthorizeSecurityGroupRequestPermissions { s.DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetIpProtocol(v string) *AuthorizeSecurityGroupRequestPermissions { s.IpProtocol = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetIpv6DestCidrIp(v string) *AuthorizeSecurityGroupRequestPermissions { s.Ipv6DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetIpv6SourceCidrIp(v string) *AuthorizeSecurityGroupRequestPermissions { s.Ipv6SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetNicType(v string) *AuthorizeSecurityGroupRequestPermissions { s.NicType = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetPolicy(v string) *AuthorizeSecurityGroupRequestPermissions { s.Policy = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetPortRange(v string) *AuthorizeSecurityGroupRequestPermissions { s.PortRange = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetPriority(v string) *AuthorizeSecurityGroupRequestPermissions { s.Priority = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetSourceCidrIp(v string) *AuthorizeSecurityGroupRequestPermissions { s.SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetSourceGroupId(v string) *AuthorizeSecurityGroupRequestPermissions { s.SourceGroupId = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetSourceGroupOwnerAccount(v string) *AuthorizeSecurityGroupRequestPermissions { s.SourceGroupOwnerAccount = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetSourceGroupOwnerId(v int64) *AuthorizeSecurityGroupRequestPermissions { s.SourceGroupOwnerId = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetSourcePortRange(v string) *AuthorizeSecurityGroupRequestPermissions { s.SourcePortRange = &v return s } func (s *AuthorizeSecurityGroupRequestPermissions) SetSourcePrefixListId(v string) *AuthorizeSecurityGroupRequestPermissions { s.SourcePrefixListId = &v return s } type AuthorizeSecurityGroupResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AuthorizeSecurityGroupResponseBody) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupResponseBody) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupResponseBody) SetRequestId(v string) *AuthorizeSecurityGroupResponseBody { s.RequestId = &v return s } type AuthorizeSecurityGroupResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AuthorizeSecurityGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AuthorizeSecurityGroupResponse) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupResponse) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupResponse) SetHeaders(v map[string]*string) *AuthorizeSecurityGroupResponse { s.Headers = v return s } func (s *AuthorizeSecurityGroupResponse) SetStatusCode(v int32) *AuthorizeSecurityGroupResponse { s.StatusCode = &v return s } func (s *AuthorizeSecurityGroupResponse) SetBody(v *AuthorizeSecurityGroupResponseBody) *AuthorizeSecurityGroupResponse { s.Body = v return s } type AuthorizeSecurityGroupEgressRequest struct { // 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 [Ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Description` to specify the description of security group rule N. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.DestCidrIp` to specify the destination IPv4 CIDR block. DestCidrIp *string `json:"DestCidrIp,omitempty" xml:"DestCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.DestGroupId` to specify the ID of the destination security group. DestGroupId *string `json:"DestGroupId,omitempty" xml:"DestGroupId,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.DestGroupOwnerAccount` to specify the Alibaba Cloud account that manages the destination security group. DestGroupOwnerAccount *string `json:"DestGroupOwnerAccount,omitempty" xml:"DestGroupOwnerAccount,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.DestGroupOwnerId` to specify the ID of the Alibaba Cloud account that manages the destination security group. DestGroupOwnerId *int64 `json:"DestGroupOwnerId,omitempty" xml:"DestGroupOwnerId,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.DestPrefixListId` to specify the ID of the destination prefix list. DestPrefixListId *string `json:"DestPrefixListId,omitempty" xml:"DestPrefixListId,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.IpProtocol` to specify the transport layer protocol. IpProtocol *string `json:"IpProtocol,omitempty" xml:"IpProtocol,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Ipv6DestCidrIp` to specify the destination IPv6 CIDR block. Ipv6DestCidrIp *string `json:"Ipv6DestCidrIp,omitempty" xml:"Ipv6DestCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Ipv6SourceCidrIp` to specify the source IPv6 CIDR block. Ipv6SourceCidrIp *string `json:"Ipv6SourceCidrIp,omitempty" xml:"Ipv6SourceCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.NicType` to specify the NIC type. NicType *string `json:"NicType,omitempty" xml:"NicType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The security group rules. Valid values of N: 1 to 100. Permissions []*AuthorizeSecurityGroupEgressRequestPermissions `json:"Permissions,omitempty" xml:"Permissions,omitempty" type:"Repeated"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Policy` to specify whether to allow outbound access. Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.PortRange` to specify the range of destination ports. PortRange *string `json:"PortRange,omitempty" xml:"PortRange,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.Priority` to specify the rule priority. Priority *string `json:"Priority,omitempty" xml:"Priority,omitempty"` // The region ID of the source security group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourceCidrIp` to specify the source IPv4 CIDR block. SourceCidrIp *string `json:"SourceCidrIp,omitempty" xml:"SourceCidrIp,omitempty"` // Deprecated // This parameter is deprecated. Use `Permissions.N.SourcePortRange` to specify the range of source ports. SourcePortRange *string `json:"SourcePortRange,omitempty" xml:"SourcePortRange,omitempty"` } func (s AuthorizeSecurityGroupEgressRequest) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupEgressRequest) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupEgressRequest) SetClientToken(v string) *AuthorizeSecurityGroupEgressRequest { s.ClientToken = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetDescription(v string) *AuthorizeSecurityGroupEgressRequest { s.Description = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetDestCidrIp(v string) *AuthorizeSecurityGroupEgressRequest { s.DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetDestGroupId(v string) *AuthorizeSecurityGroupEgressRequest { s.DestGroupId = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetDestGroupOwnerAccount(v string) *AuthorizeSecurityGroupEgressRequest { s.DestGroupOwnerAccount = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetDestGroupOwnerId(v int64) *AuthorizeSecurityGroupEgressRequest { s.DestGroupOwnerId = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetDestPrefixListId(v string) *AuthorizeSecurityGroupEgressRequest { s.DestPrefixListId = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressRequest { s.IpProtocol = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetIpv6DestCidrIp(v string) *AuthorizeSecurityGroupEgressRequest { s.Ipv6DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetIpv6SourceCidrIp(v string) *AuthorizeSecurityGroupEgressRequest { s.Ipv6SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetNicType(v string) *AuthorizeSecurityGroupEgressRequest { s.NicType = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetOwnerAccount(v string) *AuthorizeSecurityGroupEgressRequest { s.OwnerAccount = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetOwnerId(v int64) *AuthorizeSecurityGroupEgressRequest { s.OwnerId = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetPermissions(v []*AuthorizeSecurityGroupEgressRequestPermissions) *AuthorizeSecurityGroupEgressRequest { s.Permissions = v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetPolicy(v string) *AuthorizeSecurityGroupEgressRequest { s.Policy = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetPortRange(v string) *AuthorizeSecurityGroupEgressRequest { s.PortRange = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetPriority(v string) *AuthorizeSecurityGroupEgressRequest { s.Priority = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetRegionId(v string) *AuthorizeSecurityGroupEgressRequest { s.RegionId = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetResourceOwnerAccount(v string) *AuthorizeSecurityGroupEgressRequest { s.ResourceOwnerAccount = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetResourceOwnerId(v int64) *AuthorizeSecurityGroupEgressRequest { s.ResourceOwnerId = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetSecurityGroupId(v string) *AuthorizeSecurityGroupEgressRequest { s.SecurityGroupId = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetSourceCidrIp(v string) *AuthorizeSecurityGroupEgressRequest { s.SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequest) SetSourcePortRange(v string) *AuthorizeSecurityGroupEgressRequest { s.SourcePortRange = &v return s } type AuthorizeSecurityGroupEgressRequestPermissions struct { // The description of security group rule N. The description must be 1 to 512 characters in length. // // Valid values of N: 1 to 100. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The destination IPv4 CIDR block for security group rule N. CIDR blocks and IPv4 addresses are supported. // // Valid values of N: 1 to 100. DestCidrIp *string `json:"DestCidrIp,omitempty" xml:"DestCidrIp,omitempty"` // The ID of the destination security group to be referenced in security group rule N. // // * At least one of `DestGroupId`, `DestCidrIp`, `Ipv6DestCidrIp`, and `DestPrefixListId` must be configured. // * If `DestGroupId` is configured but `DestCidrIp` is not configured, the value of `NicType` must be set to intranet. // * If both `DestGroupId` and `DestCidrIp` are configured, the value of `DestCidrIp` prevails by default. // // Valid values of N: 1 to 100. // // Take note of the following items: // // * For advanced security groups, security groups cannot be used as authorization objects. // * For each basic security group, a maximum of 20 security groups can be used as authorization objects. DestGroupId *string `json:"DestGroupId,omitempty" xml:"DestGroupId,omitempty"` // The Alibaba Cloud account that manages the destination security group when you configure security group rule N across accounts. // // * If both `DestGroupOwnerAccount` and `DestGroupOwnerId` are not configured, the rule is created to control access to another security group within your Alibaba Cloud account. // * If `DestCidrIp` is configured, `DestGroupOwnerAccount` is ignored. // // Valid values of N: 1 to 100. DestGroupOwnerAccount *string `json:"DestGroupOwnerAccount,omitempty" xml:"DestGroupOwnerAccount,omitempty"` // The ID of the Alibaba Cloud account that manages the destination security group when you configure security group rule N across accounts. // // * If both `DestGroupOwnerId` and `DestGroupOwnerAccount` are not configured, the rule is created to control access to another security group within your Alibaba Cloud account. // * If `DestCidrIp` is configured, `DestGroupOwnerId` is ignored. // // Valid values of N: 1 to 100. DestGroupOwnerId *int64 `json:"DestGroupOwnerId,omitempty" xml:"DestGroupOwnerId,omitempty"` // The ID of the destination prefix list to be referenced in security group rule N. You can call the [DescribePrefixLists](~~205046~~) operation to query the IDs of available prefix lists. // // Take note of the following items: // // * If a security group is in the classic network, you cannot reference prefix lists in the security group rules. For information about the limits on security groups and prefix lists, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~). // * If you configured `DestCidrIp`, `Ipv6DestCidrIp`, or `DestGroupId`, DestPrefixListId is ignored. // // Valid values of N: 1 to 100. DestPrefixListId *string `json:"DestPrefixListId,omitempty" xml:"DestPrefixListId,omitempty"` // The transport layer protocol of security group rule N. The value of this parameter is case-insensitive. Valid values: // // * TCP. // * UDP. // * ICMP. // * ICMPv6. // * GRE. // * ALL: All protocols are supported. // // Valid values of N: 1 to 100. IpProtocol *string `json:"IpProtocol,omitempty" xml:"IpProtocol,omitempty"` // The destination IPv6 CIDR block for security group rule N. CIDR blocks and IPv6 addresses are supported. // // Valid values of N: 1 to 100. // // > This parameter takes effect only when the destination is ECS instances that reside in VPCs and support IPv6 CIDR blocks. You cannot configure both this parameter and `DestCidrIp`. Ipv6DestCidrIp *string `json:"Ipv6DestCidrIp,omitempty" xml:"Ipv6DestCidrIp,omitempty"` // The source IPv6 CIDR block for security group rule N. CIDR blocks and IPv6 addresses are supported. // // This parameter is supported by quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). // // Valid values of N: 1 to 100. // // > This parameter takes effect only when the source is ECS instances that reside in VPCs and support IPv6 CIDR blocks. You cannot configure both this parameter and `SourceCidrIp`. Ipv6SourceCidrIp *string `json:"Ipv6SourceCidrIp,omitempty" xml:"Ipv6SourceCidrIp,omitempty"` // The network interface controller (NIC) type of security group rule N when the security group is in the classic network. Valid values: // // * internet: public NIC // // * intranet: internal NIC // // * If the security group is in a VPC, this parameter is set to intranet by default and cannot be changed. // * If you configure only DestGroupId when you configure access between security groups, this parameter must be set to intranet. // // Default value: internet. // // Valid values of N: 1 to 100. NicType *string `json:"NicType,omitempty" xml:"NicType,omitempty"` // The action of security group rule N that determines whether to allow outbound access. Valid values: // // * accept: allows access. // * drop: denies access and returns no responses. In this case, the request times out or the connection cannot be established. // // Default value: accept. // // Valid values of N: 1 to 100. Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"` // The range of destination ports that correspond to the transport layer protocol for security group rule N. Valid values: // // * If you set IpProtocol to TCP or UDP, the port number range is 1 to 65535. Separate the start port number and the end port number with a forward slash (/). Example: 1/200. // * If you set IpProtocol to ICMP, the port number range is -1/-1. // * If you set IpProtocol to GRE, the port number range is -1/-1. // * If you set IpProtocol to ALL, the port number range is -1/-1. // // Valid values of N: 1 to 100. PortRange *string `json:"PortRange,omitempty" xml:"PortRange,omitempty"` // The priority of security group rule N. A smaller value indicates a higher priority. Valid values: 1 to 100. // // Default value: 1. // // Valid values of N: 1 to 100. Priority *string `json:"Priority,omitempty" xml:"Priority,omitempty"` // The source IPv4 CIDR block for security group rule N. CIDR blocks and IPv4 addresses are supported. // // This parameter is supported by quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). // // Valid values of N: 1 to 100. SourceCidrIp *string `json:"SourceCidrIp,omitempty" xml:"SourceCidrIp,omitempty"` // The range of source ports that correspond to the transport layer protocol for security group rule N. Valid values: // // * If you set IpProtocol to TCP or UDP, the port number range is 1 to 65535. Separate the start port number and the end port number with a forward slash (/). Example: 1/200. // * If you set IpProtocol to ICMP, the port number range is -1/-1. // * If you set IpProtocol to GRE, the port number range is -1/-1. // * If you set IpProtocol to ALL, the port number range is -1/-1. // // This parameter is supported by quintuple rules. For more information, see [Security group quintuple rules](~~97439~~). // // Valid values of N: 1 to 100. SourcePortRange *string `json:"SourcePortRange,omitempty" xml:"SourcePortRange,omitempty"` } func (s AuthorizeSecurityGroupEgressRequestPermissions) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupEgressRequestPermissions) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetDescription(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.Description = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetDestCidrIp(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetDestGroupId(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.DestGroupId = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetDestGroupOwnerAccount(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.DestGroupOwnerAccount = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetDestGroupOwnerId(v int64) *AuthorizeSecurityGroupEgressRequestPermissions { s.DestGroupOwnerId = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetDestPrefixListId(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.DestPrefixListId = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.IpProtocol = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetIpv6DestCidrIp(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.Ipv6DestCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetIpv6SourceCidrIp(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.Ipv6SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetNicType(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.NicType = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetPolicy(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.Policy = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetPortRange(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.PortRange = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetPriority(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.Priority = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetSourceCidrIp(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.SourceCidrIp = &v return s } func (s *AuthorizeSecurityGroupEgressRequestPermissions) SetSourcePortRange(v string) *AuthorizeSecurityGroupEgressRequestPermissions { s.SourcePortRange = &v return s } type AuthorizeSecurityGroupEgressResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s AuthorizeSecurityGroupEgressResponseBody) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupEgressResponseBody) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupEgressResponseBody) SetRequestId(v string) *AuthorizeSecurityGroupEgressResponseBody { s.RequestId = &v return s } type AuthorizeSecurityGroupEgressResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *AuthorizeSecurityGroupEgressResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s AuthorizeSecurityGroupEgressResponse) String() string { return tea.Prettify(s) } func (s AuthorizeSecurityGroupEgressResponse) GoString() string { return s.String() } func (s *AuthorizeSecurityGroupEgressResponse) SetHeaders(v map[string]*string) *AuthorizeSecurityGroupEgressResponse { s.Headers = v return s } func (s *AuthorizeSecurityGroupEgressResponse) SetStatusCode(v int32) *AuthorizeSecurityGroupEgressResponse { s.StatusCode = &v return s } func (s *AuthorizeSecurityGroupEgressResponse) SetBody(v *AuthorizeSecurityGroupEgressResponseBody) *AuthorizeSecurityGroupEgressResponse { s.Body = v return s } type CancelAutoSnapshotPolicyRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The IDs of the disks for which you want to disable the automatic snapshot policy. To disable the automatic snapshot policy for multiple disks, you can set this parameter to a JSON array that consists of multiple disk IDs, such as \["dxxxxxxxxx", "dyyyyyyyyy", … "dzzzzzzzzz"]. Separate the disk IDs with commas (,). DiskIds *string `json:"diskIds,omitempty" xml:"diskIds,omitempty"` // The region ID of the automatic snapshot policy and the disks. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"` } func (s CancelAutoSnapshotPolicyRequest) String() string { return tea.Prettify(s) } func (s CancelAutoSnapshotPolicyRequest) GoString() string { return s.String() } func (s *CancelAutoSnapshotPolicyRequest) SetOwnerId(v int64) *CancelAutoSnapshotPolicyRequest { s.OwnerId = &v return s } func (s *CancelAutoSnapshotPolicyRequest) SetResourceOwnerAccount(v string) *CancelAutoSnapshotPolicyRequest { s.ResourceOwnerAccount = &v return s } func (s *CancelAutoSnapshotPolicyRequest) SetResourceOwnerId(v int64) *CancelAutoSnapshotPolicyRequest { s.ResourceOwnerId = &v return s } func (s *CancelAutoSnapshotPolicyRequest) SetDiskIds(v string) *CancelAutoSnapshotPolicyRequest { s.DiskIds = &v return s } func (s *CancelAutoSnapshotPolicyRequest) SetRegionId(v string) *CancelAutoSnapshotPolicyRequest { s.RegionId = &v return s } type CancelAutoSnapshotPolicyResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CancelAutoSnapshotPolicyResponseBody) String() string { return tea.Prettify(s) } func (s CancelAutoSnapshotPolicyResponseBody) GoString() string { return s.String() } func (s *CancelAutoSnapshotPolicyResponseBody) SetRequestId(v string) *CancelAutoSnapshotPolicyResponseBody { s.RequestId = &v return s } type CancelAutoSnapshotPolicyResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CancelAutoSnapshotPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CancelAutoSnapshotPolicyResponse) String() string { return tea.Prettify(s) } func (s CancelAutoSnapshotPolicyResponse) GoString() string { return s.String() } func (s *CancelAutoSnapshotPolicyResponse) SetHeaders(v map[string]*string) *CancelAutoSnapshotPolicyResponse { s.Headers = v return s } func (s *CancelAutoSnapshotPolicyResponse) SetStatusCode(v int32) *CancelAutoSnapshotPolicyResponse { s.StatusCode = &v return s } func (s *CancelAutoSnapshotPolicyResponse) SetBody(v *CancelAutoSnapshotPolicyResponseBody) *CancelAutoSnapshotPolicyResponse { s.Body = v return s } type CancelCopyImageRequest struct { // The ID of the image that is being copied. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the image copy. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s CancelCopyImageRequest) String() string { return tea.Prettify(s) } func (s CancelCopyImageRequest) GoString() string { return s.String() } func (s *CancelCopyImageRequest) SetImageId(v string) *CancelCopyImageRequest { s.ImageId = &v return s } func (s *CancelCopyImageRequest) SetOwnerAccount(v string) *CancelCopyImageRequest { s.OwnerAccount = &v return s } func (s *CancelCopyImageRequest) SetOwnerId(v int64) *CancelCopyImageRequest { s.OwnerId = &v return s } func (s *CancelCopyImageRequest) SetRegionId(v string) *CancelCopyImageRequest { s.RegionId = &v return s } func (s *CancelCopyImageRequest) SetResourceOwnerAccount(v string) *CancelCopyImageRequest { s.ResourceOwnerAccount = &v return s } func (s *CancelCopyImageRequest) SetResourceOwnerId(v int64) *CancelCopyImageRequest { s.ResourceOwnerId = &v return s } type CancelCopyImageResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CancelCopyImageResponseBody) String() string { return tea.Prettify(s) } func (s CancelCopyImageResponseBody) GoString() string { return s.String() } func (s *CancelCopyImageResponseBody) SetRequestId(v string) *CancelCopyImageResponseBody { s.RequestId = &v return s } type CancelCopyImageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CancelCopyImageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CancelCopyImageResponse) String() string { return tea.Prettify(s) } func (s CancelCopyImageResponse) GoString() string { return s.String() } func (s *CancelCopyImageResponse) SetHeaders(v map[string]*string) *CancelCopyImageResponse { s.Headers = v return s } func (s *CancelCopyImageResponse) SetStatusCode(v int32) *CancelCopyImageResponse { s.StatusCode = &v return s } func (s *CancelCopyImageResponse) SetBody(v *CancelCopyImageResponseBody) *CancelCopyImageResponse { s.Body = v return s } type CancelImagePipelineExecutionRequest struct { // The ID of the image build task. ExecutionId *string `json:"ExecutionId,omitempty" xml:"ExecutionId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the image build task. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // > This parameter is deprecated. TemplateTag []*CancelImagePipelineExecutionRequestTemplateTag `json:"TemplateTag,omitempty" xml:"TemplateTag,omitempty" type:"Repeated"` } func (s CancelImagePipelineExecutionRequest) String() string { return tea.Prettify(s) } func (s CancelImagePipelineExecutionRequest) GoString() string { return s.String() } func (s *CancelImagePipelineExecutionRequest) SetExecutionId(v string) *CancelImagePipelineExecutionRequest { s.ExecutionId = &v return s } func (s *CancelImagePipelineExecutionRequest) SetOwnerAccount(v string) *CancelImagePipelineExecutionRequest { s.OwnerAccount = &v return s } func (s *CancelImagePipelineExecutionRequest) SetOwnerId(v int64) *CancelImagePipelineExecutionRequest { s.OwnerId = &v return s } func (s *CancelImagePipelineExecutionRequest) SetRegionId(v string) *CancelImagePipelineExecutionRequest { s.RegionId = &v return s } func (s *CancelImagePipelineExecutionRequest) SetResourceOwnerAccount(v string) *CancelImagePipelineExecutionRequest { s.ResourceOwnerAccount = &v return s } func (s *CancelImagePipelineExecutionRequest) SetResourceOwnerId(v int64) *CancelImagePipelineExecutionRequest { s.ResourceOwnerId = &v return s } func (s *CancelImagePipelineExecutionRequest) SetTemplateTag(v []*CancelImagePipelineExecutionRequestTemplateTag) *CancelImagePipelineExecutionRequest { s.TemplateTag = v return s } type CancelImagePipelineExecutionRequestTemplateTag struct { // > This parameter is deprecated. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // > This parameter is deprecated. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CancelImagePipelineExecutionRequestTemplateTag) String() string { return tea.Prettify(s) } func (s CancelImagePipelineExecutionRequestTemplateTag) GoString() string { return s.String() } func (s *CancelImagePipelineExecutionRequestTemplateTag) SetKey(v string) *CancelImagePipelineExecutionRequestTemplateTag { s.Key = &v return s } func (s *CancelImagePipelineExecutionRequestTemplateTag) SetValue(v string) *CancelImagePipelineExecutionRequestTemplateTag { s.Value = &v return s } type CancelImagePipelineExecutionResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CancelImagePipelineExecutionResponseBody) String() string { return tea.Prettify(s) } func (s CancelImagePipelineExecutionResponseBody) GoString() string { return s.String() } func (s *CancelImagePipelineExecutionResponseBody) SetRequestId(v string) *CancelImagePipelineExecutionResponseBody { s.RequestId = &v return s } type CancelImagePipelineExecutionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CancelImagePipelineExecutionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CancelImagePipelineExecutionResponse) String() string { return tea.Prettify(s) } func (s CancelImagePipelineExecutionResponse) GoString() string { return s.String() } func (s *CancelImagePipelineExecutionResponse) SetHeaders(v map[string]*string) *CancelImagePipelineExecutionResponse { s.Headers = v return s } func (s *CancelImagePipelineExecutionResponse) SetStatusCode(v int32) *CancelImagePipelineExecutionResponse { s.StatusCode = &v return s } func (s *CancelImagePipelineExecutionResponse) SetBody(v *CancelImagePipelineExecutionResponseBody) *CancelImagePipelineExecutionResponse { s.Body = v return s } type CancelPhysicalConnectionRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` } func (s CancelPhysicalConnectionRequest) String() string { return tea.Prettify(s) } func (s CancelPhysicalConnectionRequest) GoString() string { return s.String() } func (s *CancelPhysicalConnectionRequest) SetClientToken(v string) *CancelPhysicalConnectionRequest { s.ClientToken = &v return s } func (s *CancelPhysicalConnectionRequest) SetOwnerAccount(v string) *CancelPhysicalConnectionRequest { s.OwnerAccount = &v return s } func (s *CancelPhysicalConnectionRequest) SetOwnerId(v int64) *CancelPhysicalConnectionRequest { s.OwnerId = &v return s } func (s *CancelPhysicalConnectionRequest) SetPhysicalConnectionId(v string) *CancelPhysicalConnectionRequest { s.PhysicalConnectionId = &v return s } func (s *CancelPhysicalConnectionRequest) SetRegionId(v string) *CancelPhysicalConnectionRequest { s.RegionId = &v return s } func (s *CancelPhysicalConnectionRequest) SetResourceOwnerAccount(v string) *CancelPhysicalConnectionRequest { s.ResourceOwnerAccount = &v return s } func (s *CancelPhysicalConnectionRequest) SetResourceOwnerId(v int64) *CancelPhysicalConnectionRequest { s.ResourceOwnerId = &v return s } func (s *CancelPhysicalConnectionRequest) SetUserCidr(v string) *CancelPhysicalConnectionRequest { s.UserCidr = &v return s } type CancelPhysicalConnectionResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CancelPhysicalConnectionResponseBody) String() string { return tea.Prettify(s) } func (s CancelPhysicalConnectionResponseBody) GoString() string { return s.String() } func (s *CancelPhysicalConnectionResponseBody) SetRequestId(v string) *CancelPhysicalConnectionResponseBody { s.RequestId = &v return s } type CancelPhysicalConnectionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CancelPhysicalConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CancelPhysicalConnectionResponse) String() string { return tea.Prettify(s) } func (s CancelPhysicalConnectionResponse) GoString() string { return s.String() } func (s *CancelPhysicalConnectionResponse) SetHeaders(v map[string]*string) *CancelPhysicalConnectionResponse { s.Headers = v return s } func (s *CancelPhysicalConnectionResponse) SetStatusCode(v int32) *CancelPhysicalConnectionResponse { s.StatusCode = &v return s } func (s *CancelPhysicalConnectionResponse) SetBody(v *CancelPhysicalConnectionResponseBody) *CancelPhysicalConnectionResponse { s.Body = v return s } type CancelSimulatedSystemEventsRequest struct { // The IDs of simulated system events. You can specify up to 100 event IDs in a single request. EventId []*string `json:"EventId,omitempty" xml:"EventId,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s CancelSimulatedSystemEventsRequest) String() string { return tea.Prettify(s) } func (s CancelSimulatedSystemEventsRequest) GoString() string { return s.String() } func (s *CancelSimulatedSystemEventsRequest) SetEventId(v []*string) *CancelSimulatedSystemEventsRequest { s.EventId = v return s } func (s *CancelSimulatedSystemEventsRequest) SetOwnerAccount(v string) *CancelSimulatedSystemEventsRequest { s.OwnerAccount = &v return s } func (s *CancelSimulatedSystemEventsRequest) SetOwnerId(v int64) *CancelSimulatedSystemEventsRequest { s.OwnerId = &v return s } func (s *CancelSimulatedSystemEventsRequest) SetRegionId(v string) *CancelSimulatedSystemEventsRequest { s.RegionId = &v return s } func (s *CancelSimulatedSystemEventsRequest) SetResourceOwnerAccount(v string) *CancelSimulatedSystemEventsRequest { s.ResourceOwnerAccount = &v return s } func (s *CancelSimulatedSystemEventsRequest) SetResourceOwnerId(v int64) *CancelSimulatedSystemEventsRequest { s.ResourceOwnerId = &v return s } type CancelSimulatedSystemEventsResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CancelSimulatedSystemEventsResponseBody) String() string { return tea.Prettify(s) } func (s CancelSimulatedSystemEventsResponseBody) GoString() string { return s.String() } func (s *CancelSimulatedSystemEventsResponseBody) SetRequestId(v string) *CancelSimulatedSystemEventsResponseBody { s.RequestId = &v return s } type CancelSimulatedSystemEventsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CancelSimulatedSystemEventsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CancelSimulatedSystemEventsResponse) String() string { return tea.Prettify(s) } func (s CancelSimulatedSystemEventsResponse) GoString() string { return s.String() } func (s *CancelSimulatedSystemEventsResponse) SetHeaders(v map[string]*string) *CancelSimulatedSystemEventsResponse { s.Headers = v return s } func (s *CancelSimulatedSystemEventsResponse) SetStatusCode(v int32) *CancelSimulatedSystemEventsResponse { s.StatusCode = &v return s } func (s *CancelSimulatedSystemEventsResponse) SetBody(v *CancelSimulatedSystemEventsResponseBody) *CancelSimulatedSystemEventsResponse { s.Body = v return s } type CancelTaskRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the task. You can call the [DescribeTasks](~~25622~~) operation to query the list of task IDs. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the request. TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` } func (s CancelTaskRequest) String() string { return tea.Prettify(s) } func (s CancelTaskRequest) GoString() string { return s.String() } func (s *CancelTaskRequest) SetOwnerId(v int64) *CancelTaskRequest { s.OwnerId = &v return s } func (s *CancelTaskRequest) SetRegionId(v string) *CancelTaskRequest { s.RegionId = &v return s } func (s *CancelTaskRequest) SetResourceOwnerAccount(v string) *CancelTaskRequest { s.ResourceOwnerAccount = &v return s } func (s *CancelTaskRequest) SetResourceOwnerId(v int64) *CancelTaskRequest { s.ResourceOwnerId = &v return s } func (s *CancelTaskRequest) SetTaskId(v string) *CancelTaskRequest { s.TaskId = &v return s } type CancelTaskResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CancelTaskResponseBody) String() string { return tea.Prettify(s) } func (s CancelTaskResponseBody) GoString() string { return s.String() } func (s *CancelTaskResponseBody) SetRequestId(v string) *CancelTaskResponseBody { s.RequestId = &v return s } type CancelTaskResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CancelTaskResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CancelTaskResponse) String() string { return tea.Prettify(s) } func (s CancelTaskResponse) GoString() string { return s.String() } func (s *CancelTaskResponse) SetHeaders(v map[string]*string) *CancelTaskResponse { s.Headers = v return s } func (s *CancelTaskResponse) SetStatusCode(v int32) *CancelTaskResponse { s.StatusCode = &v return s } func (s *CancelTaskResponse) SetBody(v *CancelTaskResponseBody) *CancelTaskResponse { s.Body = v return s } type ConnectRouterInterfaceRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RouterInterfaceId *string `json:"RouterInterfaceId,omitempty" xml:"RouterInterfaceId,omitempty"` } func (s ConnectRouterInterfaceRequest) String() string { return tea.Prettify(s) } func (s ConnectRouterInterfaceRequest) GoString() string { return s.String() } func (s *ConnectRouterInterfaceRequest) SetOwnerId(v int64) *ConnectRouterInterfaceRequest { s.OwnerId = &v return s } func (s *ConnectRouterInterfaceRequest) SetRegionId(v string) *ConnectRouterInterfaceRequest { s.RegionId = &v return s } func (s *ConnectRouterInterfaceRequest) SetResourceOwnerAccount(v string) *ConnectRouterInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *ConnectRouterInterfaceRequest) SetResourceOwnerId(v int64) *ConnectRouterInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *ConnectRouterInterfaceRequest) SetRouterInterfaceId(v string) *ConnectRouterInterfaceRequest { s.RouterInterfaceId = &v return s } type ConnectRouterInterfaceResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s ConnectRouterInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s ConnectRouterInterfaceResponseBody) GoString() string { return s.String() } func (s *ConnectRouterInterfaceResponseBody) SetRequestId(v string) *ConnectRouterInterfaceResponseBody { s.RequestId = &v return s } type ConnectRouterInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ConnectRouterInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ConnectRouterInterfaceResponse) String() string { return tea.Prettify(s) } func (s ConnectRouterInterfaceResponse) GoString() string { return s.String() } func (s *ConnectRouterInterfaceResponse) SetHeaders(v map[string]*string) *ConnectRouterInterfaceResponse { s.Headers = v return s } func (s *ConnectRouterInterfaceResponse) SetStatusCode(v int32) *ConnectRouterInterfaceResponse { s.StatusCode = &v return s } func (s *ConnectRouterInterfaceResponse) SetBody(v *ConnectRouterInterfaceResponseBody) *ConnectRouterInterfaceResponse { s.Body = v return s } type ConvertNatPublicIpToEipRequest struct { // The ID of the instance whose public IP address you want to convert into an EIP. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s ConvertNatPublicIpToEipRequest) String() string { return tea.Prettify(s) } func (s ConvertNatPublicIpToEipRequest) GoString() string { return s.String() } func (s *ConvertNatPublicIpToEipRequest) SetInstanceId(v string) *ConvertNatPublicIpToEipRequest { s.InstanceId = &v return s } func (s *ConvertNatPublicIpToEipRequest) SetOwnerId(v int64) *ConvertNatPublicIpToEipRequest { s.OwnerId = &v return s } func (s *ConvertNatPublicIpToEipRequest) SetRegionId(v string) *ConvertNatPublicIpToEipRequest { s.RegionId = &v return s } func (s *ConvertNatPublicIpToEipRequest) SetResourceOwnerAccount(v string) *ConvertNatPublicIpToEipRequest { s.ResourceOwnerAccount = &v return s } func (s *ConvertNatPublicIpToEipRequest) SetResourceOwnerId(v int64) *ConvertNatPublicIpToEipRequest { s.ResourceOwnerId = &v return s } type ConvertNatPublicIpToEipResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s ConvertNatPublicIpToEipResponseBody) String() string { return tea.Prettify(s) } func (s ConvertNatPublicIpToEipResponseBody) GoString() string { return s.String() } func (s *ConvertNatPublicIpToEipResponseBody) SetRequestId(v string) *ConvertNatPublicIpToEipResponseBody { s.RequestId = &v return s } type ConvertNatPublicIpToEipResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ConvertNatPublicIpToEipResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ConvertNatPublicIpToEipResponse) String() string { return tea.Prettify(s) } func (s ConvertNatPublicIpToEipResponse) GoString() string { return s.String() } func (s *ConvertNatPublicIpToEipResponse) SetHeaders(v map[string]*string) *ConvertNatPublicIpToEipResponse { s.Headers = v return s } func (s *ConvertNatPublicIpToEipResponse) SetStatusCode(v int32) *ConvertNatPublicIpToEipResponse { s.StatusCode = &v return s } func (s *ConvertNatPublicIpToEipResponse) SetBody(v *ConvertNatPublicIpToEipResponseBody) *ConvertNatPublicIpToEipResponse { s.Body = v return s } type CopyImageRequest struct { // The description of the image copy. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. DestinationDescription *string `json:"DestinationDescription,omitempty" xml:"DestinationDescription,omitempty"` // The name of the image copy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `acs:` or `aliyun`. The name cannot contain `http://` or `https://`. The name can contain letters, digits, periods (.), colons (:), underscores (\_), and hyphens (-). DestinationImageName *string `json:"DestinationImageName,omitempty" xml:"DestinationImageName,omitempty"` // The ID of the destination region to which the source custom image is copied. DestinationRegionId *string `json:"DestinationRegionId,omitempty" xml:"DestinationRegionId,omitempty"` // > This parameter is unavailable. EncryptAlgorithm *string `json:"EncryptAlgorithm,omitempty" xml:"EncryptAlgorithm,omitempty"` // Specifies whether to encrypt the image copy. // // Default value: false. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the source custom image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The ID of the key used to encrypt the image copy. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the source custom image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the image copy belongs. If you do not specify this parameter, the image copy belongs to the default resource group. // // > If you call the CopyImage operation as a Resource Access Management (RAM) user who is not authorized to manage the default resource group and do not specify the `ResourceGroupId` parameter, the `Forbidden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user is authorized to manage or authorize the RAM user to manage the default resource group before you call the CreateImage operation again. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The list of tags. Tag []*CopyImageRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CopyImageRequest) String() string { return tea.Prettify(s) } func (s CopyImageRequest) GoString() string { return s.String() } func (s *CopyImageRequest) SetDestinationDescription(v string) *CopyImageRequest { s.DestinationDescription = &v return s } func (s *CopyImageRequest) SetDestinationImageName(v string) *CopyImageRequest { s.DestinationImageName = &v return s } func (s *CopyImageRequest) SetDestinationRegionId(v string) *CopyImageRequest { s.DestinationRegionId = &v return s } func (s *CopyImageRequest) SetEncryptAlgorithm(v string) *CopyImageRequest { s.EncryptAlgorithm = &v return s } func (s *CopyImageRequest) SetEncrypted(v bool) *CopyImageRequest { s.Encrypted = &v return s } func (s *CopyImageRequest) SetImageId(v string) *CopyImageRequest { s.ImageId = &v return s } func (s *CopyImageRequest) SetKMSKeyId(v string) *CopyImageRequest { s.KMSKeyId = &v return s } func (s *CopyImageRequest) SetOwnerAccount(v string) *CopyImageRequest { s.OwnerAccount = &v return s } func (s *CopyImageRequest) SetOwnerId(v int64) *CopyImageRequest { s.OwnerId = &v return s } func (s *CopyImageRequest) SetRegionId(v string) *CopyImageRequest { s.RegionId = &v return s } func (s *CopyImageRequest) SetResourceGroupId(v string) *CopyImageRequest { s.ResourceGroupId = &v return s } func (s *CopyImageRequest) SetResourceOwnerAccount(v string) *CopyImageRequest { s.ResourceOwnerAccount = &v return s } func (s *CopyImageRequest) SetResourceOwnerId(v int64) *CopyImageRequest { s.ResourceOwnerId = &v return s } func (s *CopyImageRequest) SetTag(v []*CopyImageRequestTag) *CopyImageRequest { s.Tag = v return s } type CopyImageRequestTag struct { // The key of tag N of the image copy. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `aliyun` or `acs:`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the image copy. 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 start with `acs:`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CopyImageRequestTag) String() string { return tea.Prettify(s) } func (s CopyImageRequestTag) GoString() string { return s.String() } func (s *CopyImageRequestTag) SetKey(v string) *CopyImageRequestTag { s.Key = &v return s } func (s *CopyImageRequestTag) SetValue(v string) *CopyImageRequestTag { s.Value = &v return s } type CopyImageResponseBody struct { // The ID of the image copy. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CopyImageResponseBody) String() string { return tea.Prettify(s) } func (s CopyImageResponseBody) GoString() string { return s.String() } func (s *CopyImageResponseBody) SetImageId(v string) *CopyImageResponseBody { s.ImageId = &v return s } func (s *CopyImageResponseBody) SetRequestId(v string) *CopyImageResponseBody { s.RequestId = &v return s } type CopyImageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CopyImageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CopyImageResponse) String() string { return tea.Prettify(s) } func (s CopyImageResponse) GoString() string { return s.String() } func (s *CopyImageResponse) SetHeaders(v map[string]*string) *CopyImageResponse { s.Headers = v return s } func (s *CopyImageResponse) SetStatusCode(v int32) *CopyImageResponse { s.StatusCode = &v return s } func (s *CopyImageResponse) SetBody(v *CopyImageResponseBody) *CopyImageResponse { s.Body = v return s } type CopySnapshotRequest struct { // >This parameter is currently in invitational preview and unavailable for public use. Arn []*CopySnapshotRequestArn `json:"Arn,omitempty" xml:"Arn,omitempty" type:"Repeated"` // The ID of the destination region to which to copy the source snapshot. DestinationRegionId *string `json:"DestinationRegionId,omitempty" xml:"DestinationRegionId,omitempty"` // The description of the new snapshot. The description must be 2 to 256 characters in length and cannot start with http:// or https://. // // This parameter is empty by default. DestinationSnapshotDescription *string `json:"DestinationSnapshotDescription,omitempty" xml:"DestinationSnapshotDescription,omitempty"` // The name of the new snapshot. The name must be 2 to 128 characters in length. It must start with a letter and cannot start http:// or https://. The name can contain digits, letters, colons (:), underscores (\_), and hyphens (-). // // This parameter is empty by default. DestinationSnapshotName *string `json:"DestinationSnapshotName,omitempty" xml:"DestinationSnapshotName,omitempty"` // > This parameter is not publicly available. DestinationStorageLocationArn *string `json:"DestinationStorageLocationArn,omitempty" xml:"DestinationStorageLocationArn,omitempty"` // Specifies whether to encrypt the new snapshot. Valid values: // // * true // * false // // Default value: false. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the customer master key (CMK) in Key Management Service (KMS) in the destination region. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the source snapshot. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // This parameter is not publicly available. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The retention period of the new snapshot. Unit: days. The new snapshot is automatically released when its retention period ends. Valid values: 1 to 65536. // // This parameter is empty by default, which indicates that the snapshot is not automatically released. RetentionDays *int32 `json:"RetentionDays,omitempty" xml:"RetentionDays,omitempty"` // The ID of the source snapshot. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The tag key and value of the new snapshot. Tag []*CopySnapshotRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CopySnapshotRequest) String() string { return tea.Prettify(s) } func (s CopySnapshotRequest) GoString() string { return s.String() } func (s *CopySnapshotRequest) SetArn(v []*CopySnapshotRequestArn) *CopySnapshotRequest { s.Arn = v return s } func (s *CopySnapshotRequest) SetDestinationRegionId(v string) *CopySnapshotRequest { s.DestinationRegionId = &v return s } func (s *CopySnapshotRequest) SetDestinationSnapshotDescription(v string) *CopySnapshotRequest { s.DestinationSnapshotDescription = &v return s } func (s *CopySnapshotRequest) SetDestinationSnapshotName(v string) *CopySnapshotRequest { s.DestinationSnapshotName = &v return s } func (s *CopySnapshotRequest) SetDestinationStorageLocationArn(v string) *CopySnapshotRequest { s.DestinationStorageLocationArn = &v return s } func (s *CopySnapshotRequest) SetEncrypted(v bool) *CopySnapshotRequest { s.Encrypted = &v return s } func (s *CopySnapshotRequest) SetKMSKeyId(v string) *CopySnapshotRequest { s.KMSKeyId = &v return s } func (s *CopySnapshotRequest) SetOwnerId(v int64) *CopySnapshotRequest { s.OwnerId = &v return s } func (s *CopySnapshotRequest) SetRegionId(v string) *CopySnapshotRequest { s.RegionId = &v return s } func (s *CopySnapshotRequest) SetResourceGroupId(v string) *CopySnapshotRequest { s.ResourceGroupId = &v return s } func (s *CopySnapshotRequest) SetResourceOwnerAccount(v string) *CopySnapshotRequest { s.ResourceOwnerAccount = &v return s } func (s *CopySnapshotRequest) SetResourceOwnerId(v int64) *CopySnapshotRequest { s.ResourceOwnerId = &v return s } func (s *CopySnapshotRequest) SetRetentionDays(v int32) *CopySnapshotRequest { s.RetentionDays = &v return s } func (s *CopySnapshotRequest) SetSnapshotId(v string) *CopySnapshotRequest { s.SnapshotId = &v return s } func (s *CopySnapshotRequest) SetTag(v []*CopySnapshotRequestTag) *CopySnapshotRequest { s.Tag = v return s } type CopySnapshotRequestArn struct { // > This parameter is not publicly available. AssumeRoleFor *int64 `json:"AssumeRoleFor,omitempty" xml:"AssumeRoleFor,omitempty"` // > This parameter is not publicly available. RoleType *string `json:"RoleType,omitempty" xml:"RoleType,omitempty"` // > This parameter is not publicly available. Rolearn *string `json:"Rolearn,omitempty" xml:"Rolearn,omitempty"` } func (s CopySnapshotRequestArn) String() string { return tea.Prettify(s) } func (s CopySnapshotRequestArn) GoString() string { return s.String() } func (s *CopySnapshotRequestArn) SetAssumeRoleFor(v int64) *CopySnapshotRequestArn { s.AssumeRoleFor = &v return s } func (s *CopySnapshotRequestArn) SetRoleType(v string) *CopySnapshotRequestArn { s.RoleType = &v return s } func (s *CopySnapshotRequestArn) SetRolearn(v string) *CopySnapshotRequestArn { s.Rolearn = &v return s } type CopySnapshotRequestTag struct { // The key of tag N to add to the new snapshot. The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the new snapshot. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CopySnapshotRequestTag) String() string { return tea.Prettify(s) } func (s CopySnapshotRequestTag) GoString() string { return s.String() } func (s *CopySnapshotRequestTag) SetKey(v string) *CopySnapshotRequestTag { s.Key = &v return s } func (s *CopySnapshotRequestTag) SetValue(v string) *CopySnapshotRequestTag { s.Value = &v return s } type CopySnapshotResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the new snapshot. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s CopySnapshotResponseBody) String() string { return tea.Prettify(s) } func (s CopySnapshotResponseBody) GoString() string { return s.String() } func (s *CopySnapshotResponseBody) SetRequestId(v string) *CopySnapshotResponseBody { s.RequestId = &v return s } func (s *CopySnapshotResponseBody) SetSnapshotId(v string) *CopySnapshotResponseBody { s.SnapshotId = &v return s } type CopySnapshotResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CopySnapshotResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CopySnapshotResponse) String() string { return tea.Prettify(s) } func (s CopySnapshotResponse) GoString() string { return s.String() } func (s *CopySnapshotResponse) SetHeaders(v map[string]*string) *CopySnapshotResponse { s.Headers = v return s } func (s *CopySnapshotResponse) SetStatusCode(v int32) *CopySnapshotResponse { s.StatusCode = &v return s } func (s *CopySnapshotResponse) SetBody(v *CopySnapshotResponseBody) *CopySnapshotResponse { s.Body = v return s } type CreateActivationRequest struct { // The description of the activation code. It must be 1 to 100 characters in length. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The maximum number of times that you can use the activation code to register managed instances. Valid values: 1 to 1000. // // Default value: 10. InstanceCount *int32 `json:"InstanceCount,omitempty" xml:"InstanceCount,omitempty"` // The default instance name prefix. The instance name prefix must be 2 to 50 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, periods (.), underscores (\_), hyphens (-), and colons (:). // // If you use the activation code that is created by calling this operation (CreateActivation) to register managed instances, the instances are assigned sequential names that are prefixed by the value of this parameter. You can also specify a new instance name to replace the assigned sequential name when you register a managed instance. // // If you specify InstanceName when you register a managed instance, an instance name in the format of `-` is generated. The number of digits in the \ value is determined by that in the `InstanceCount` value. Example: `001`. If you do not specify InstanceName, the hostname (Hostname) is used as the instance name. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The IP addresses of hosts that can use the activation code. The value can be IPv4 addresses, IPv6 addresses, or CIDR blocks. IpAddressRange *string `json:"IpAddressRange,omitempty" xml:"IpAddressRange,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region in which to create the activation code. Supported regions: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), Singapore, Japan (Tokyo), US (Silicon Valley), and US (Virginia). // // You can all the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the activation code. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags to add to the activation code. Tag []*CreateActivationRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The validity period of the activation code. The activation code can no longer be used to register instances after the period expires. Unit: hours. Valid values: 1 to 876576, which represents a range of time from 1 hour to 100 years. // // Default value: 4. TimeToLiveInHours *int64 `json:"TimeToLiveInHours,omitempty" xml:"TimeToLiveInHours,omitempty"` } func (s CreateActivationRequest) String() string { return tea.Prettify(s) } func (s CreateActivationRequest) GoString() string { return s.String() } func (s *CreateActivationRequest) SetDescription(v string) *CreateActivationRequest { s.Description = &v return s } func (s *CreateActivationRequest) SetInstanceCount(v int32) *CreateActivationRequest { s.InstanceCount = &v return s } func (s *CreateActivationRequest) SetInstanceName(v string) *CreateActivationRequest { s.InstanceName = &v return s } func (s *CreateActivationRequest) SetIpAddressRange(v string) *CreateActivationRequest { s.IpAddressRange = &v return s } func (s *CreateActivationRequest) SetOwnerAccount(v string) *CreateActivationRequest { s.OwnerAccount = &v return s } func (s *CreateActivationRequest) SetOwnerId(v int64) *CreateActivationRequest { s.OwnerId = &v return s } func (s *CreateActivationRequest) SetRegionId(v string) *CreateActivationRequest { s.RegionId = &v return s } func (s *CreateActivationRequest) SetResourceGroupId(v string) *CreateActivationRequest { s.ResourceGroupId = &v return s } func (s *CreateActivationRequest) SetResourceOwnerAccount(v string) *CreateActivationRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateActivationRequest) SetResourceOwnerId(v int64) *CreateActivationRequest { s.ResourceOwnerId = &v return s } func (s *CreateActivationRequest) SetTag(v []*CreateActivationRequestTag) *CreateActivationRequest { s.Tag = v return s } func (s *CreateActivationRequest) SetTimeToLiveInHours(v int64) *CreateActivationRequest { s.TimeToLiveInHours = &v return s } type CreateActivationRequestTag struct { // The key of tag N to add to the activation code. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags, call [ListTagResources](~~110425~~). // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the activation code. Valid values of N: 1 to 20. The tag value can be an empty string. // // It can be up to 128 characters in length and cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateActivationRequestTag) String() string { return tea.Prettify(s) } func (s CreateActivationRequestTag) GoString() string { return s.String() } func (s *CreateActivationRequestTag) SetKey(v string) *CreateActivationRequestTag { s.Key = &v return s } func (s *CreateActivationRequestTag) SetValue(v string) *CreateActivationRequestTag { s.Value = &v return s } type CreateActivationResponseBody struct { // The value of the activation code. The value is returned only once after the CreateActivation operation is called and cannot be queried afterward. Properly save the return value. ActivationCode *string `json:"ActivationCode,omitempty" xml:"ActivationCode,omitempty"` // The ID of the activation code. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateActivationResponseBody) String() string { return tea.Prettify(s) } func (s CreateActivationResponseBody) GoString() string { return s.String() } func (s *CreateActivationResponseBody) SetActivationCode(v string) *CreateActivationResponseBody { s.ActivationCode = &v return s } func (s *CreateActivationResponseBody) SetActivationId(v string) *CreateActivationResponseBody { s.ActivationId = &v return s } func (s *CreateActivationResponseBody) SetRequestId(v string) *CreateActivationResponseBody { s.RequestId = &v return s } type CreateActivationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateActivationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateActivationResponse) String() string { return tea.Prettify(s) } func (s CreateActivationResponse) GoString() string { return s.String() } func (s *CreateActivationResponse) SetHeaders(v map[string]*string) *CreateActivationResponse { s.Headers = v return s } func (s *CreateActivationResponse) SetStatusCode(v int32) *CreateActivationResponse { s.StatusCode = &v return s } func (s *CreateActivationResponse) SetBody(v *CreateActivationResponseBody) *CreateActivationResponse { s.Body = v return s } type CreateAutoProvisioningGroupRequest struct { LaunchConfiguration *CreateAutoProvisioningGroupRequestLaunchConfiguration `json:"LaunchConfiguration,omitempty" xml:"LaunchConfiguration,omitempty" type:"Struct"` // The name of the auto provisioning group. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain letters, digits, colons (:), underscores (\_), and hyphens (-). AutoProvisioningGroupName *string `json:"AutoProvisioningGroupName,omitempty" xml:"AutoProvisioningGroupName,omitempty"` // The delivery type of the auto provisioning group. Valid values: // // * request: one-time asynchronous delivery. When the auto provisioning group is started, it attempts to asynchronously deliver an instance cluster that meets the target capacity only once. The group does not retry the operation regardless of whether all the instances are delivered. // * instant: one-time synchronous delivery. When the auto provisioning group is started, it attempts to synchronously deliver an instance cluster that meets the target capacity only once. The list of delivered instances and the causes of delivery failures are returned in the response. // * maintain: continuous delivery. When the auto provisioning group is started, it attempts to deliver an instance cluster that meets the target capacity, and monitors the real-time capacity. If the target capacity of the auto provisioning group is not reached, the auto provisioning group continues to create instances until the target capacity is reached. // // Default value: maintain. AutoProvisioningGroupType *string `json:"AutoProvisioningGroupType,omitempty" xml:"AutoProvisioningGroupType,omitempty"` // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The information of data disks on the instance. DataDiskConfig []*CreateAutoProvisioningGroupRequestDataDiskConfig `json:"DataDiskConfig,omitempty" xml:"DataDiskConfig,omitempty" type:"Repeated"` // The type of supplemental instances. When the sum of the `PayAsYouGoTargetCapacity` and `SpotTargetCapacity` values is smaller than the `TotalTargetCapacity` value, the auto provisioning group creates instances of the specified type to meet the total target capacity. Valid values: // // * PayAsYouGo: pay-as-you-go instances // * Spot: preemptible instances. // // Default value: Spot. DefaultTargetCapacityType *string `json:"DefaultTargetCapacityType,omitempty" xml:"DefaultTargetCapacityType,omitempty"` // The description of the auto provisioning group. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Specifies whether to release scaled-in instances when the real-time capacity of the auto provisioning group exceeds the target capacity and the group is triggered to scale in. Valid values: // // * termination: releases the scaled-in instances in the auto provisioning group. // * no-termination: removes the scaled-in instances from the auto provisioning group but does not release them. // // Default value: no-termination. ExcessCapacityTerminationPolicy *string `json:"ExcessCapacityTerminationPolicy,omitempty" xml:"ExcessCapacityTerminationPolicy,omitempty"` // >This parameter is in invitational preview and is not publicly available. HibernationOptionsConfigured *bool `json:"HibernationOptionsConfigured,omitempty" xml:"HibernationOptionsConfigured,omitempty"` // The extended configurations of the launch template. LaunchTemplateConfig []*CreateAutoProvisioningGroupRequestLaunchTemplateConfig `json:"LaunchTemplateConfig,omitempty" xml:"LaunchTemplateConfig,omitempty" type:"Repeated"` // The ID of the launch template associated with the auto provisioning group. You can call the [DescribeLaunchTemplates](~~73759~~) operation to query available launch templates. When both LaunchTemplateId and `LaunchConfiguration.*` parameters are specified, LaunchTemplateId takes precedence. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The version of the launch template associated with the auto provisioning group. You can call the [DescribeLaunchTemplateVersions](~~73761~~) operation to query the versions of available launch templates. // // Default value: the default version of the launch template. LaunchTemplateVersion *string `json:"LaunchTemplateVersion,omitempty" xml:"LaunchTemplateVersion,omitempty"` // The maximum price of preemptible instances in the auto provisioning group. // // > When both `MaxSpotPrice` and `LaunchTemplateConfig.N.MaxPrice` are specified, the smaller one of the two parameter values is used. MaxSpotPrice *float32 `json:"MaxSpotPrice,omitempty" xml:"MaxSpotPrice,omitempty"` // The minimum target capacity of the auto provisioning group. The value must be a positive integer. When you specify this parameter, take note of the following items: // // - This parameter takes effect only when `AutoProvisioningGroupType` is set to instant. // - If the number of instances that can be created in the current region is smaller than the value of this parameter, the operation cannot be called and no instances are created. // - If the number of instances that can be created in the current region is greater than the value of this parameter, instances can be created based on the specified parameters. MinTargetCapacity *string `json:"MinTargetCapacity,omitempty" xml:"MinTargetCapacity,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The policy for creating pay-as-you-go instances. Valid values: // // * lowest-price: cost optimization policy. The auto provisioning group selects the lowest-priced instance type to create instances. // * prioritized: priority-based policy. The auto provisioning group creates instances based on the priority specified by `LaunchTemplateConfig.N.Priority`. // // Default value: lowest-price. PayAsYouGoAllocationStrategy *string `json:"PayAsYouGoAllocationStrategy,omitempty" xml:"PayAsYouGoAllocationStrategy,omitempty"` // The target capacity of pay-as-you-go instances in the auto provisioning group. The value must be less than or equal to the `TotalTargetCapacity` value. PayAsYouGoTargetCapacity *string `json:"PayAsYouGoTargetCapacity,omitempty" xml:"PayAsYouGoTargetCapacity,omitempty"` // The ID of the region in which to create the auto provisioning group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the auto provisioning group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The policy for creating preemptible instances. Valid values: // // * lowest-price: cost optimization policy. The auto provisioning group selects the lowest-priced instance type to create instances. // * diversified: balanced distribution policy. The auto provisioning group creates instances in zones that are specified in extended configurations and then evenly distributes the instances across the zones. // * capacity-optimized: capacity-optimized distribution policy. The auto provisioning group creates instances of the optimal instance types across the optimal zones based on resource availability. // // Default value: lowest-price. SpotAllocationStrategy *string `json:"SpotAllocationStrategy,omitempty" xml:"SpotAllocationStrategy,omitempty"` // The operation to be performed on the preemptible instance when it is interrupted. Valid values: // // * stop: stops the preemptible instance. // * terminate: releases the preemptible instance. // // Default value: terminate. SpotInstanceInterruptionBehavior *string `json:"SpotInstanceInterruptionBehavior,omitempty" xml:"SpotInstanceInterruptionBehavior,omitempty"` // The number of preemptible instances of the lowest-priced instance type to be created by the auto provisioning group. This parameter takes effect when `SpotAllocationStrategy` is set to `lowest-price`. // // The value must be smaller than the N value specified in `LaunchTemplateConfig.N`. SpotInstancePoolsToUseCount *int32 `json:"SpotInstancePoolsToUseCount,omitempty" xml:"SpotInstancePoolsToUseCount,omitempty"` // The target capacity of preemptible instances in the auto provisioning group. The value must be less than or equal to the `TotalTargetCapacity` value. SpotTargetCapacity *string `json:"SpotTargetCapacity,omitempty" xml:"SpotTargetCapacity,omitempty"` // The information of system disks on the instance. SystemDiskConfig []*CreateAutoProvisioningGroupRequestSystemDiskConfig `json:"SystemDiskConfig,omitempty" xml:"SystemDiskConfig,omitempty" type:"Repeated"` // The tags to add to the auto provisioning group. Tag []*CreateAutoProvisioningGroupRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // Specifies whether to release instances in the auto provisioning group when the auto provisioning group is deleted. Valid values: // // * true: releases the instances. // * false: retains the instances. // // Default value: false. TerminateInstances *bool `json:"TerminateInstances,omitempty" xml:"TerminateInstances,omitempty"` // Specifies whether to release instances in the auto provisioning group when the group expires. Valid values: // // * true: releases the instances. // * false: only removes the instances from the auto provisioning group but does not release them. // // Default value: false. TerminateInstancesWithExpiration *bool `json:"TerminateInstancesWithExpiration,omitempty" xml:"TerminateInstancesWithExpiration,omitempty"` // The total target capacity of the auto provisioning group. The value must be a positive integer. // // The total target capacity of the auto provisioning group must be greater than or equal to the sum of the target capacity of pay-as-you-go instances specified by `PayAsYouGoTargetCapacity` and the target capacity of preemptible instances specified by `SpotTargetCapacity`. TotalTargetCapacity *string `json:"TotalTargetCapacity,omitempty" xml:"TotalTargetCapacity,omitempty"` // The time at which to start the auto provisioning group. The period of time between this point in time and the point in time specified by `ValidUntil` is the validity period of the auto provisioning group. // // Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. // // By default, an auto provisioning group is started immediately after it is created. ValidFrom *string `json:"ValidFrom,omitempty" xml:"ValidFrom,omitempty"` // The time at which the auto provisioning group expires. The period of time between this point in time and the point in time specified by `ValidFrom` is the validity period of the auto provisioning group. // // Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. // // Default value: 2099-12-31T23:59:59Z. ValidUntil *string `json:"ValidUntil,omitempty" xml:"ValidUntil,omitempty"` } func (s CreateAutoProvisioningGroupRequest) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequest) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequest) SetLaunchConfiguration(v *CreateAutoProvisioningGroupRequestLaunchConfiguration) *CreateAutoProvisioningGroupRequest { s.LaunchConfiguration = v return s } func (s *CreateAutoProvisioningGroupRequest) SetAutoProvisioningGroupName(v string) *CreateAutoProvisioningGroupRequest { s.AutoProvisioningGroupName = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetAutoProvisioningGroupType(v string) *CreateAutoProvisioningGroupRequest { s.AutoProvisioningGroupType = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetClientToken(v string) *CreateAutoProvisioningGroupRequest { s.ClientToken = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetDataDiskConfig(v []*CreateAutoProvisioningGroupRequestDataDiskConfig) *CreateAutoProvisioningGroupRequest { s.DataDiskConfig = v return s } func (s *CreateAutoProvisioningGroupRequest) SetDefaultTargetCapacityType(v string) *CreateAutoProvisioningGroupRequest { s.DefaultTargetCapacityType = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetDescription(v string) *CreateAutoProvisioningGroupRequest { s.Description = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetExcessCapacityTerminationPolicy(v string) *CreateAutoProvisioningGroupRequest { s.ExcessCapacityTerminationPolicy = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetHibernationOptionsConfigured(v bool) *CreateAutoProvisioningGroupRequest { s.HibernationOptionsConfigured = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetLaunchTemplateConfig(v []*CreateAutoProvisioningGroupRequestLaunchTemplateConfig) *CreateAutoProvisioningGroupRequest { s.LaunchTemplateConfig = v return s } func (s *CreateAutoProvisioningGroupRequest) SetLaunchTemplateId(v string) *CreateAutoProvisioningGroupRequest { s.LaunchTemplateId = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetLaunchTemplateVersion(v string) *CreateAutoProvisioningGroupRequest { s.LaunchTemplateVersion = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetMaxSpotPrice(v float32) *CreateAutoProvisioningGroupRequest { s.MaxSpotPrice = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetMinTargetCapacity(v string) *CreateAutoProvisioningGroupRequest { s.MinTargetCapacity = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetOwnerAccount(v string) *CreateAutoProvisioningGroupRequest { s.OwnerAccount = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetOwnerId(v int64) *CreateAutoProvisioningGroupRequest { s.OwnerId = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetPayAsYouGoAllocationStrategy(v string) *CreateAutoProvisioningGroupRequest { s.PayAsYouGoAllocationStrategy = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetPayAsYouGoTargetCapacity(v string) *CreateAutoProvisioningGroupRequest { s.PayAsYouGoTargetCapacity = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetRegionId(v string) *CreateAutoProvisioningGroupRequest { s.RegionId = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetResourceGroupId(v string) *CreateAutoProvisioningGroupRequest { s.ResourceGroupId = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetResourceOwnerAccount(v string) *CreateAutoProvisioningGroupRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetResourceOwnerId(v int64) *CreateAutoProvisioningGroupRequest { s.ResourceOwnerId = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetSpotAllocationStrategy(v string) *CreateAutoProvisioningGroupRequest { s.SpotAllocationStrategy = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetSpotInstanceInterruptionBehavior(v string) *CreateAutoProvisioningGroupRequest { s.SpotInstanceInterruptionBehavior = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetSpotInstancePoolsToUseCount(v int32) *CreateAutoProvisioningGroupRequest { s.SpotInstancePoolsToUseCount = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetSpotTargetCapacity(v string) *CreateAutoProvisioningGroupRequest { s.SpotTargetCapacity = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetSystemDiskConfig(v []*CreateAutoProvisioningGroupRequestSystemDiskConfig) *CreateAutoProvisioningGroupRequest { s.SystemDiskConfig = v return s } func (s *CreateAutoProvisioningGroupRequest) SetTag(v []*CreateAutoProvisioningGroupRequestTag) *CreateAutoProvisioningGroupRequest { s.Tag = v return s } func (s *CreateAutoProvisioningGroupRequest) SetTerminateInstances(v bool) *CreateAutoProvisioningGroupRequest { s.TerminateInstances = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetTerminateInstancesWithExpiration(v bool) *CreateAutoProvisioningGroupRequest { s.TerminateInstancesWithExpiration = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetTotalTargetCapacity(v string) *CreateAutoProvisioningGroupRequest { s.TotalTargetCapacity = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetValidFrom(v string) *CreateAutoProvisioningGroupRequest { s.ValidFrom = &v return s } func (s *CreateAutoProvisioningGroupRequest) SetValidUntil(v string) *CreateAutoProvisioningGroupRequest { s.ValidUntil = &v return s } type CreateAutoProvisioningGroupRequestLaunchConfiguration struct { // This parameter is unavailable for public use. Arn []*CreateAutoProvisioningGroupRequestLaunchConfigurationArn `json:"Arn,omitempty" xml:"Arn,omitempty" type:"Repeated"` // The automatic release time of the pay-as-you-go instance. Specify the time in the [ISO 8601](~~25696~~) standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in Coordinated Universal Time (UTC). // // * If the value of `ss` is not `00`, the start time is automatically rounded down to the nearest minute based on the value of `mm`. // * The specified time must be at least 30 minutes later than the current time. // * The specified time can be at most three years later than the current time. AutoReleaseTime *string `json:"AutoReleaseTime,omitempty" xml:"AutoReleaseTime,omitempty"` // The performance mode of the burstable instance. Valid values: // // * Standard: the standard mode. For more information, see the "Standard mode" section in the [Overview of burstable instances](~~59977~~) topic. // * Unlimited: the unlimited mode. For more information, see the "Unlimited mode" section in the [Overview of burstable instances](~~59977~~) topic. // // This parameter is empty by default. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. CreditSpecification *string `json:"CreditSpecification,omitempty" xml:"CreditSpecification,omitempty"` // The cloud disks in the extended configurations of the launch template. DataDisk []*CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk `json:"DataDisk,omitempty" xml:"DataDisk,omitempty" type:"Repeated"` // The ID of the deployment set. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` // The instance hostname. Take note of the following items: // // * The hostname cannot start or end with a period (.) or hyphen (-). The hostname cannot contain consecutive periods (.) or hyphens (-). // * For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. It can contain letters, digits, and hyphens (-). // * For instances that run other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate a hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-). // * You cannot specify both `LaunchConfiguration.HostName` and `LaunchConfiguration.HostNames.N`. Otherwise, an error is returned. // * When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. HostName *string `json:"HostName,omitempty" xml:"HostName,omitempty"` // The hostname of instance N. You can use this parameter to specify different hostnames for multiple instances. Take note of the following items: // // - This parameter takes effect only when `AutoProvisioningGroupType` is set to instant. // - The value of N indicates the number of instances. Valid values of N: 1 to 1000. The value of N must be the same as the TotalTargetCapacity value. // - The hostname cannot start or end with a period (.) or hyphen (-). The hostname cannot contain consecutive periods (.) or hyphens (-). // - For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. The hostname can contain letters, digits, and hyphens (-). // - For instances that run other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate the hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-). // - You cannot specify both `LaunchConfiguration.HostName` and `LaunchConfiguration.HostNames.N`. Otherwise, an error is returned. // - When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. HostNames []*string `json:"HostNames,omitempty" xml:"HostNames,omitempty" type:"Repeated"` // The name of the image family. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `aliyun` or `acs:`. The name cannot contain `http://` or `https://`. The name can contain letters, digits, colons (:), underscores (\_), and hyphens (-). ImageFamily *string `json:"ImageFamily,omitempty" xml:"ImageFamily,omitempty"` // The ID of the image to be used to create the instance. You can call the [DescribeImages](~~25534~~) operation to query available image resources. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The instance description. The description must be 2 to 256 characters in length. The description can contain letters and cannot start with `http://` or `https://`. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. InstanceDescription *string `json:"InstanceDescription,omitempty" xml:"InstanceDescription,omitempty"` // The instance name. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-). // // The default value of this parameter is the `InstanceId` value. // // When you batch create instances, you can batch configure sequential names for the instances. For more information, see [Batch configure sequential names or hostnames for multiple instances](~~196048~~). // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The billing method for network usage. Valid values: // // * PayByBandwidth: pay-by-bandwidth // * PayByTraffic: pay-by-traffic // // > When the pay-by-traffic billing method for network usage is used, the maximum inbound and outbound bandwidth values are used as the upper limits of bandwidth instead of guaranteed performance specifications. When demands outstrip resource supplies, the maximum bandwidths may be limited. If you want guaranteed bandwidth for your instance, use the pay-by-bandwidth billing method. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum inbound public bandwidth. Unit: Mbit/s. Valid values: // // * When the maximum outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 1 to 10 and the default value is 10. // * When the maximum outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter are 1 to the value of `LaunchConfiguration.InternetMaxBandwidthOut`, and the default value is the value of `LaunchConfiguration.InternetMaxBandwidthOut`. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. InternetMaxBandwidthIn *int32 `json:"InternetMaxBandwidthIn,omitempty" xml:"InternetMaxBandwidthIn,omitempty"` // The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. // // Default value: 0. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Specifies whether the instance is I/O optimized. Valid values: // // * none: The instance is not I/O optimized. // * optimized: The instance is I/O optimized. // // For instances of retired instance types, the default value is none. For instances of other instance types, the default value is optimized. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The key pair name. // // * For Windows instances, this parameter is ignored. This parameter is empty by default. // * By default, password-based logon is disabled for Linux instances. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The instance password. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The password can contain the following special characters: // // ``( ) ` ~ ! @ # $ % ^ & * - _ + = | { } ``: ; \" < > , . ? /`` For Windows instances, the password cannot start with a forward slash (/). When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. ` Password *string `json:"Password,omitempty" xml:"Password,omitempty"` // Specifies whether to use the password preset in the image. Valid values: // // * true: uses the password preset in the image. // * false: does not use the password preset in the image. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. PasswordInherit *bool `json:"PasswordInherit,omitempty" xml:"PasswordInherit,omitempty"` // The name of the instance Resource Access Management (RAM) role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The ID of the resource group to which to assign the instance. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // Specifies whether to enable security hardening. Valid values: // // * Active: enables security hardening. This value is applicable only to public images. // * Deactive: disables security hardening. This value is applicable to all image types. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SecurityEnhancementStrategy *string `json:"SecurityEnhancementStrategy,omitempty" xml:"SecurityEnhancementStrategy,omitempty"` // The ID of the security group to which to assign the instance. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The IDs of the security groups to which the new ECS instances belong. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Repeated"` // The information of the system disk on the instance. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SystemDisk *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // The category of the system disk. Valid values: // // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: enhanced SSD (ESSD) // * cloud: basic disk // // For non-I/O optimized instances of retired instance types, the default value is cloud. For other instances, the default value is cloud_efficiency. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SystemDiskCategory *string `json:"SystemDiskCategory,omitempty" xml:"SystemDiskCategory,omitempty"` // The description of the system disk. The description must be 2 to 256 characters in length. The description can contain letters and cannot start with `http://` or `https://`. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SystemDiskDescription *string `json:"SystemDiskDescription,omitempty" xml:"SystemDiskDescription,omitempty"` // The name of the system disk. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain letters, digits, periods (.), colons (:), underscores (\_), and hyphens (-). // // This parameter is empty by default. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SystemDiskName *string `json:"SystemDiskName,omitempty" xml:"SystemDiskName,omitempty"` // The performance level of the ESSD to be used as the system disk. Valid values: // // * PL0 (default): A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SystemDiskPerformanceLevel *string `json:"SystemDiskPerformanceLevel,omitempty" xml:"SystemDiskPerformanceLevel,omitempty"` // The size of the system disk. Valid values: 20 to 500. Unit: GiB. The value must be at least 20 and greater than or equal to the size of the image specified by LaunchConfiguration.ImageId. // // Default value: 40 or the size of the image specified by LaunchConfiguration.ImageId, whichever is greater. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SystemDiskSize *int32 `json:"SystemDiskSize,omitempty" xml:"SystemDiskSize,omitempty"` // The tag in the extended configurations of the launch template. Tag []*CreateAutoProvisioningGroupRequestLaunchConfigurationTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The instance user data. The user data must be encoded in Base64. The raw data can be up to 16 KB in size. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. UserData *string `json:"UserData,omitempty" xml:"UserData,omitempty"` } func (s CreateAutoProvisioningGroupRequestLaunchConfiguration) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestLaunchConfiguration) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetArn(v []*CreateAutoProvisioningGroupRequestLaunchConfigurationArn) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.Arn = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetAutoReleaseTime(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.AutoReleaseTime = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetCreditSpecification(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.CreditSpecification = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetDataDisk(v []*CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.DataDisk = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetDeploymentSetId(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.DeploymentSetId = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetHostName(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.HostName = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetHostNames(v []*string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.HostNames = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetImageFamily(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.ImageFamily = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetImageId(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.ImageId = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetInstanceDescription(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.InstanceDescription = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetInstanceName(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.InstanceName = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetInternetChargeType(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.InternetChargeType = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetInternetMaxBandwidthIn(v int32) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.InternetMaxBandwidthIn = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetInternetMaxBandwidthOut(v int32) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.InternetMaxBandwidthOut = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetIoOptimized(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.IoOptimized = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetKeyPairName(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.KeyPairName = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetPassword(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.Password = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetPasswordInherit(v bool) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.PasswordInherit = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetRamRoleName(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.RamRoleName = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetResourceGroupId(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.ResourceGroupId = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSecurityEnhancementStrategy(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SecurityEnhancementStrategy = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSecurityGroupId(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SecurityGroupId = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSecurityGroupIds(v []*string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SecurityGroupIds = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSystemDisk(v *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SystemDisk = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSystemDiskCategory(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SystemDiskCategory = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSystemDiskDescription(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SystemDiskDescription = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSystemDiskName(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SystemDiskName = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSystemDiskPerformanceLevel(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SystemDiskPerformanceLevel = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetSystemDiskSize(v int32) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.SystemDiskSize = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetTag(v []*CreateAutoProvisioningGroupRequestLaunchConfigurationTag) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.Tag = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfiguration) SetUserData(v string) *CreateAutoProvisioningGroupRequestLaunchConfiguration { s.UserData = &v return s } type CreateAutoProvisioningGroupRequestLaunchConfigurationArn struct { // This parameter is not publicly available. AssumeRoleFor *int64 `json:"AssumeRoleFor,omitempty" xml:"AssumeRoleFor,omitempty"` // This parameter is not publicly available. RoleType *string `json:"RoleType,omitempty" xml:"RoleType,omitempty"` // This parameter is not publicly available. Rolearn *string `json:"Rolearn,omitempty" xml:"Rolearn,omitempty"` } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationArn) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationArn) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationArn) SetAssumeRoleFor(v int64) *CreateAutoProvisioningGroupRequestLaunchConfigurationArn { s.AssumeRoleFor = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationArn) SetRoleType(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationArn { s.RoleType = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationArn) SetRolearn(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationArn { s.Rolearn = &v return s } type CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk struct { // The category of data disk N. Valid values of N: 1 to 16. Valid values: // // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: ESSD // * cloud: basic disk // // For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Specifies whether to release data disk N when the instance to which the data disk is attached is released. Valid values: // // * true: releases data disk N when the instance is released. // * false: does not release data disk N when the instance is released. // // Default value: true. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of data disk N. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The mount point of data disk N. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The name of data disk N. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `http://` or `https://`. The name can contain letters, digits, periods (.), colons (:), underscores (\_), and hyphens (-). // // This parameter is empty by default. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // Specifies whether to encrypt data disk N. Valid values: // // * true // * false // // Default value: false. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the Key Management Service (KMS) key to use for data disk N. When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. KmsKeyId *string `json:"KmsKeyId,omitempty" xml:"KmsKeyId,omitempty"` // The performance level of the enhanced SSD (ESSD) to use as data disk N. The value of N in this parameter must be the same as the value of N in `LaunchConfiguration.DataDisk.N.Category`. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1 (default): A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For information about ESSD performance levels, see [ESSDs](~~122389~~). // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values: // // * Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud_efficiency: 20 to 32768. // // * Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud_ssd: 20 to 32768. // // * Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud_essd: depend on the `LaunchConfiguration.DataDisk.N.PerformanceLevel` value. // // * Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL0: 40 to 32768. // * Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. // * Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. // * Valid values when LaunchConfiguration.DataDisk.N.PerformanceLevel is set to PL3: 1261 to 32768. // // * Valid values when LaunchConfiguration.DataDisk.N.Category is set to cloud: 5 to 2000. // // > The value of this parameter must be greater than or equal to the size of the snapshot specified by `LaunchConfiguration.DataDisk.N.SnapshotId`. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16. // // After this parameter is specified, `LaunchConfiguration.DataDisk.N.Size` is ignored. The size of data disk N is the same as that of the snapshot specified by this parameter. Use snapshots created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetCategory(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.Category = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetDeleteWithInstance(v bool) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.DeleteWithInstance = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetDescription(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.Description = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetDevice(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.Device = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetDiskName(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.DiskName = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetEncrypted(v bool) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.Encrypted = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetKmsKeyId(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.KmsKeyId = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetPerformanceLevel(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.PerformanceLevel = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetSize(v int32) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.Size = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk) SetSnapshotId(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk { s.SnapshotId = &v return s } type CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk struct { // The algorithm to use to encrypt the system disk. Valid values: // // * aes-256 // * sm4-128 // // Default value: aes-256. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. EncryptAlgorithm *string `json:"EncryptAlgorithm,omitempty" xml:"EncryptAlgorithm,omitempty"` // Specifies whether to encrypt system disk N. Valid values: // // * true // * false // // Default value: false. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. Encrypted *string `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the KMS key to use for the system disk. // // When both LaunchTemplateId and LaunchConfiguration.\* parameters are specified, LaunchTemplateId takes precedence. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk) SetEncryptAlgorithm(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk { s.EncryptAlgorithm = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk) SetEncrypted(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk { s.Encrypted = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk) SetKMSKeyId(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk { s.KMSKeyId = &v return s } type CreateAutoProvisioningGroupRequestLaunchConfigurationTag struct { // The key of the tag. Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain `http://` or `https://`. If both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of the tag. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length. It cannot start with acs: or contain `http://` or `https://`. If both the LaunchTemplateId and LaunchConfiguration.* parameters are specified, the LaunchTemplateId parameter takes precedence. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationTag) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestLaunchConfigurationTag) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationTag) SetKey(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationTag { s.Key = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchConfigurationTag) SetValue(v string) *CreateAutoProvisioningGroupRequestLaunchConfigurationTag { s.Value = &v return s } type CreateAutoProvisioningGroupRequestDataDiskConfig struct { // The category of data disk N. You can use this parameter to specify multiple disk categories, and the disk categories are prioritized in the order in which they are specified. If a specified disk category is unavailable, the system uses the next available disk category. Valid values: // // - cloud_efficiency: ultra disk // - cloud_ssd: standard SSD // - cloud_essd: ESSD // - cloud: basic disk DiskCategory *string `json:"DiskCategory,omitempty" xml:"DiskCategory,omitempty"` } func (s CreateAutoProvisioningGroupRequestDataDiskConfig) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestDataDiskConfig) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestDataDiskConfig) SetDiskCategory(v string) *CreateAutoProvisioningGroupRequestDataDiskConfig { s.DiskCategory = &v return s } type CreateAutoProvisioningGroupRequestLaunchTemplateConfig struct { // The architectures of the instance types. Architectures []*string `json:"Architectures,omitempty" xml:"Architectures,omitempty" type:"Repeated"` // Specifies whether to include burstable instance types. Valid values: // // * Exclude: does not include burstable instance types. // * Include: includes burstable instance types. // * Required: includes only burstable instance types. // // Default value: Include. BurstablePerformance *string `json:"BurstablePerformance,omitempty" xml:"BurstablePerformance,omitempty"` // The number of vCPU cores of the instance type. Cores []*int32 `json:"Cores,omitempty" xml:"Cores,omitempty" type:"Repeated"` // The instance types that you want to exclude. ExcludedInstanceTypes []*string `json:"ExcludedInstanceTypes,omitempty" xml:"ExcludedInstanceTypes,omitempty" type:"Repeated"` // The instance family level of the instance type in extended configuration N. This parameter is used to filter instance types. Valid values: // // * EntryLevel: entry level (shared instance types). Instance types of this level are the most cost-effective but may not provide stable computing performance. Instance types of this level are suitable for scenarios in which the CPU utilization is low. For more information, see [Shared instance families](~~108489~~). // * EnterpriseLevel: enterprise level. Instance types of this level provide stable performance and dedicated resources and are suitable for scenarios that require high stability. For more information, see the [Overview of instance families](~~25378~~) topic. // * CreditEntryLevel: credit entry level (burstable instance types). CPU credits are used to ensure computing performance. Instance types of this level are suitable for scenarios in which the CPU utilization is low but may fluctuate in specific cases. For more information, see [Overview of burstable instances](~~59977~~). // // Valid values of N: 1 to 10. InstanceFamilyLevel *string `json:"InstanceFamilyLevel,omitempty" xml:"InstanceFamilyLevel,omitempty"` // The instance type in extended configuration N. Valid values of N: 1 to 20. For more information about the valid values of this parameter, see [Instance families](~~25378~~). InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The maximum price of preemptible instances in extended configuration N. // // > If you specify one or more other `LaunchTemplateConfig.N.*` parameters, you must also specify `LaunchTemplateConfig.N.MaxPrice`. MaxPrice *float64 `json:"MaxPrice,omitempty" xml:"MaxPrice,omitempty"` // > This parameter is in invitational preview and is not publicly available. MaxQuantity *int32 `json:"MaxQuantity,omitempty" xml:"MaxQuantity,omitempty"` // The memory sizes of the instance type. Memories []*float32 `json:"Memories,omitempty" xml:"Memories,omitempty" type:"Repeated"` // The priority of extended configuration N. A value of 0 indicates the highest priority. Valid values: 0 to ∞. Priority *int32 `json:"Priority,omitempty" xml:"Priority,omitempty"` // The ID of the vSwitch in extended configuration N. The zone of the ECS instances created from the extended configuration is determined by the vSwitch. // // > If you specify one or more other `LaunchTemplateConfig.N.*` parameters, you must also specify `LaunchTemplateConfig.N.VSwitchId`. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The weight of the instance type in extended configuration N. A greater weight indicates that a single instance has more computing power and fewer instances are required. The value must be greater than 0. // // The weight is calculated based on the computing power of the specified instance type and the minimum computing power of a single instance in the cluster to be created by the auto provisioning group. For example, assume that the minimum computing power of a single instance is 8 vCPUs and 60 GiB of memory. // // * For an instance type with 8 vCPUs and 60 GiB of memory, you can set the weight to 1. // * For an instance type with 16 vCPUs and 120 GiB of memory, you can set the weight to 2. WeightedCapacity *float64 `json:"WeightedCapacity,omitempty" xml:"WeightedCapacity,omitempty"` } func (s CreateAutoProvisioningGroupRequestLaunchTemplateConfig) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestLaunchTemplateConfig) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetArchitectures(v []*string) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.Architectures = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetBurstablePerformance(v string) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.BurstablePerformance = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetCores(v []*int32) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.Cores = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetExcludedInstanceTypes(v []*string) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.ExcludedInstanceTypes = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetInstanceFamilyLevel(v string) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.InstanceFamilyLevel = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetInstanceType(v string) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.InstanceType = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetMaxPrice(v float64) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.MaxPrice = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetMaxQuantity(v int32) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.MaxQuantity = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetMemories(v []*float32) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.Memories = v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetPriority(v int32) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.Priority = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetVSwitchId(v string) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.VSwitchId = &v return s } func (s *CreateAutoProvisioningGroupRequestLaunchTemplateConfig) SetWeightedCapacity(v float64) *CreateAutoProvisioningGroupRequestLaunchTemplateConfig { s.WeightedCapacity = &v return s } type CreateAutoProvisioningGroupRequestSystemDiskConfig struct { // The category of the system disk. You can specify multiple disk categories, and the disk categories are prioritized in the order in which they are specified. If a specified disk category is unavailable, the system uses the next available disk category. Valid values: // // - cloud_efficiency: ultra disk. // - cloud_ssd: standard SSD. // - cloud_essd: ESSD // - cloud: basic disk. DiskCategory *string `json:"DiskCategory,omitempty" xml:"DiskCategory,omitempty"` } func (s CreateAutoProvisioningGroupRequestSystemDiskConfig) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestSystemDiskConfig) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestSystemDiskConfig) SetDiskCategory(v string) *CreateAutoProvisioningGroupRequestSystemDiskConfig { s.DiskCategory = &v return s } type CreateAutoProvisioningGroupRequestTag struct { // The key of tag N to add to the auto provisioning group. // // Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the auto provisioning group. // // 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://. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateAutoProvisioningGroupRequestTag) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupRequestTag) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupRequestTag) SetKey(v string) *CreateAutoProvisioningGroupRequestTag { s.Key = &v return s } func (s *CreateAutoProvisioningGroupRequestTag) SetValue(v string) *CreateAutoProvisioningGroupRequestTag { s.Value = &v return s } type CreateAutoProvisioningGroupResponseBody struct { // The ID of the auto provisioning group. AutoProvisioningGroupId *string `json:"AutoProvisioningGroupId,omitempty" xml:"AutoProvisioningGroupId,omitempty"` // The instances created by the auto provisioning group. The values of the parameters in this array are returned only when AutoProvisioningGroupType is set to `instant`. LaunchResults *CreateAutoProvisioningGroupResponseBodyLaunchResults `json:"LaunchResults,omitempty" xml:"LaunchResults,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateAutoProvisioningGroupResponseBody) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupResponseBody) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupResponseBody) SetAutoProvisioningGroupId(v string) *CreateAutoProvisioningGroupResponseBody { s.AutoProvisioningGroupId = &v return s } func (s *CreateAutoProvisioningGroupResponseBody) SetLaunchResults(v *CreateAutoProvisioningGroupResponseBodyLaunchResults) *CreateAutoProvisioningGroupResponseBody { s.LaunchResults = v return s } func (s *CreateAutoProvisioningGroupResponseBody) SetRequestId(v string) *CreateAutoProvisioningGroupResponseBody { s.RequestId = &v return s } type CreateAutoProvisioningGroupResponseBodyLaunchResults struct { LaunchResult []*CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult `json:"LaunchResult,omitempty" xml:"LaunchResult,omitempty" type:"Repeated"` } func (s CreateAutoProvisioningGroupResponseBodyLaunchResults) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupResponseBodyLaunchResults) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResults) SetLaunchResult(v []*CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) *CreateAutoProvisioningGroupResponseBodyLaunchResults { s.LaunchResult = v return s } type CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult struct { // The number of created instances. Amount *int32 `json:"Amount,omitempty" xml:"Amount,omitempty"` // The error code returned when the instance cannot be created. ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` // The error message returned when the instance cannot be created. ErrorMsg *string `json:"ErrorMsg,omitempty" xml:"ErrorMsg,omitempty"` // The IDs of created instances. InstanceIds *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty" type:"Struct"` // The instance type of the instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The bidding policy for the pay-as-you-go instance. Valid values: // // * NoSpot: The instance is a regular pay-as-you-go instance. // * SpotWithPriceLimit: The instance is a preemptible instance for which you specify the maximum hourly price. // * SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is used as the bid price. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The zone ID of the instance. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) SetAmount(v int32) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult { s.Amount = &v return s } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) SetErrorCode(v string) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult { s.ErrorCode = &v return s } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) SetErrorMsg(v string) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult { s.ErrorMsg = &v return s } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) SetInstanceIds(v *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult { s.InstanceIds = v return s } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) SetInstanceType(v string) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult { s.InstanceType = &v return s } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) SetSpotStrategy(v string) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult { s.SpotStrategy = &v return s } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult) SetZoneId(v string) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResult { s.ZoneId = &v return s } type CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds struct { InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` } func (s CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds) SetInstanceId(v []*string) *CreateAutoProvisioningGroupResponseBodyLaunchResultsLaunchResultInstanceIds { s.InstanceId = v return s } type CreateAutoProvisioningGroupResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateAutoProvisioningGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateAutoProvisioningGroupResponse) String() string { return tea.Prettify(s) } func (s CreateAutoProvisioningGroupResponse) GoString() string { return s.String() } func (s *CreateAutoProvisioningGroupResponse) SetHeaders(v map[string]*string) *CreateAutoProvisioningGroupResponse { s.Headers = v return s } func (s *CreateAutoProvisioningGroupResponse) SetStatusCode(v int32) *CreateAutoProvisioningGroupResponse { s.StatusCode = &v return s } func (s *CreateAutoProvisioningGroupResponse) SetBody(v *CreateAutoProvisioningGroupResponseBody) *CreateAutoProvisioningGroupResponse { s.Body = v return s } type CreateAutoSnapshotPolicyRequest struct { // The retention period of the snapshot copy in the destination region. Unit: days. Valid values: // // * \-1: The snapshot copy is retained until it is deleted. // * 1 to 65535: The snapshot copy is retained for the specified number of days. After the retention period of the snapshot copy expires, the snapshot copy is automatically deleted. // // Default value: -1. CopiedSnapshotsRetentionDays *int32 `json:"CopiedSnapshotsRetentionDays,omitempty" xml:"CopiedSnapshotsRetentionDays,omitempty"` // The encryption parameters for cross-region snapshot replication. CopyEncryptionConfiguration *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration `json:"CopyEncryptionConfiguration,omitempty" xml:"CopyEncryptionConfiguration,omitempty" type:"Struct"` // Specifies whether to enable cross-region replication for snapshots. // // * true // * false EnableCrossRegionCopy *bool `json:"EnableCrossRegionCopy,omitempty" xml:"EnableCrossRegionCopy,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The resource group ID. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // > This parameter is not publicly available. StorageLocationArn *string `json:"StorageLocationArn,omitempty" xml:"StorageLocationArn,omitempty"` // The tags to add to the snapshot. Tag []*CreateAutoSnapshotPolicyRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The destination region to which to copy the snapshot. You can specify only a single destination region. TargetCopyRegions *string `json:"TargetCopyRegions,omitempty" xml:"TargetCopyRegions,omitempty"` // The name of the automatic snapshot policy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (\_), and hyphens (-). // // By default, this parameter is left empty. AutoSnapshotPolicyName *string `json:"autoSnapshotPolicyName,omitempty" xml:"autoSnapshotPolicyName,omitempty"` // The ID of the region in which to create the automatic snapshot policy. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"` // The days of the week on which to create automatic snapshots. Valid values: 1 to 7, which correspond to Monday to Sunday. 1 indicates Monday. Format description: // // * Set this parameter to a JSON-formatted array. For example, a value of \["1"] specifies automatic snapshots to be created every Monday. // * To schedule multiple automatic snapshots to be created in a week, you can specify multiple values. Separate the values with commas (,). You can specify a maximum of seven days. For example, a value of \["1","3","5"] specifies automatic snapshots to be created every Monday, Wednesday, and Friday. RepeatWeekdays *string `json:"repeatWeekdays,omitempty" xml:"repeatWeekdays,omitempty"` // The retention period of the automatic snapshot. Unit: days. Valid values: // // * \-1: The automatic snapshot is retained until it is deleted. // * 1 to 65535: The automatic snapshot is retained for the specified number of days. After the retention period of the automatic snapshot expires, the automatic snapshot is automatically deleted. // // Default value: -1. RetentionDays *int32 `json:"retentionDays,omitempty" xml:"retentionDays,omitempty"` // The points in time of the day at which to create automatic snapshots. The time must be in UTC+8. Unit: hours. Valid values: 0 to 23, which correspond to the 24 on-the-hour points in time from 00:00:00 to 23:00:00. 1 indicates 01:00:00. Format description: // // * Set this parameter to a JSON-formatted array. For example, a value of \["1"] specifies automatic snapshots to be created at 01:00:00. // * To schedule multiple automatic snapshots to be created in a day, you can specify multiple values. Separate the values with commas (,). You can specify a maximum of 24 points in time. For example, a value of \["1","3","5"] specifies automatic snapshots to be created at 01:00:00, 03:00:00, and 05:00:00. TimePoints *string `json:"timePoints,omitempty" xml:"timePoints,omitempty"` } func (s CreateAutoSnapshotPolicyRequest) String() string { return tea.Prettify(s) } func (s CreateAutoSnapshotPolicyRequest) GoString() string { return s.String() } func (s *CreateAutoSnapshotPolicyRequest) SetCopiedSnapshotsRetentionDays(v int32) *CreateAutoSnapshotPolicyRequest { s.CopiedSnapshotsRetentionDays = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetCopyEncryptionConfiguration(v *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration) *CreateAutoSnapshotPolicyRequest { s.CopyEncryptionConfiguration = v return s } func (s *CreateAutoSnapshotPolicyRequest) SetEnableCrossRegionCopy(v bool) *CreateAutoSnapshotPolicyRequest { s.EnableCrossRegionCopy = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetOwnerId(v int64) *CreateAutoSnapshotPolicyRequest { s.OwnerId = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetResourceGroupId(v string) *CreateAutoSnapshotPolicyRequest { s.ResourceGroupId = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetResourceOwnerAccount(v string) *CreateAutoSnapshotPolicyRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetResourceOwnerId(v int64) *CreateAutoSnapshotPolicyRequest { s.ResourceOwnerId = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetStorageLocationArn(v string) *CreateAutoSnapshotPolicyRequest { s.StorageLocationArn = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetTag(v []*CreateAutoSnapshotPolicyRequestTag) *CreateAutoSnapshotPolicyRequest { s.Tag = v return s } func (s *CreateAutoSnapshotPolicyRequest) SetTargetCopyRegions(v string) *CreateAutoSnapshotPolicyRequest { s.TargetCopyRegions = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetAutoSnapshotPolicyName(v string) *CreateAutoSnapshotPolicyRequest { s.AutoSnapshotPolicyName = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetRegionId(v string) *CreateAutoSnapshotPolicyRequest { s.RegionId = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetRepeatWeekdays(v string) *CreateAutoSnapshotPolicyRequest { s.RepeatWeekdays = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetRetentionDays(v int32) *CreateAutoSnapshotPolicyRequest { s.RetentionDays = &v return s } func (s *CreateAutoSnapshotPolicyRequest) SetTimePoints(v string) *CreateAutoSnapshotPolicyRequest { s.TimePoints = &v return s } type CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration struct { // This parameter is not publicly available. Arn []*CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn `json:"Arn,omitempty" xml:"Arn,omitempty" type:"Repeated"` // Specifies whether to enable cross-region snapshot replication and encryption. Valid values: // // * true // * false // // Default value: false. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the KMS key used in cross-region snapshot replication and encryption. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` } func (s CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration) String() string { return tea.Prettify(s) } func (s CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration) GoString() string { return s.String() } func (s *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration) SetArn(v []*CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn) *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration { s.Arn = v return s } func (s *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration) SetEncrypted(v bool) *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration { s.Encrypted = &v return s } func (s *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration) SetKMSKeyId(v string) *CreateAutoSnapshotPolicyRequestCopyEncryptionConfiguration { s.KMSKeyId = &v return s } type CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn struct { // This parameter is not publicly available. AssumeRoleFor *int64 `json:"AssumeRoleFor,omitempty" xml:"AssumeRoleFor,omitempty"` // This parameter is not publicly available. RoleType *string `json:"RoleType,omitempty" xml:"RoleType,omitempty"` // This parameter is not publicly available. Rolearn *string `json:"Rolearn,omitempty" xml:"Rolearn,omitempty"` } func (s CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn) String() string { return tea.Prettify(s) } func (s CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn) GoString() string { return s.String() } func (s *CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn) SetAssumeRoleFor(v int64) *CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn { s.AssumeRoleFor = &v return s } func (s *CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn) SetRoleType(v string) *CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn { s.RoleType = &v return s } func (s *CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn) SetRolearn(v string) *CreateAutoSnapshotPolicyRequestCopyEncryptionConfigurationArn { s.Rolearn = &v return s } type CreateAutoSnapshotPolicyRequestTag struct { // The key of tag N to add to the snapshot. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the snapshot. 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://. The tag value cannot start with acs:. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateAutoSnapshotPolicyRequestTag) String() string { return tea.Prettify(s) } func (s CreateAutoSnapshotPolicyRequestTag) GoString() string { return s.String() } func (s *CreateAutoSnapshotPolicyRequestTag) SetKey(v string) *CreateAutoSnapshotPolicyRequestTag { s.Key = &v return s } func (s *CreateAutoSnapshotPolicyRequestTag) SetValue(v string) *CreateAutoSnapshotPolicyRequestTag { s.Value = &v return s } type CreateAutoSnapshotPolicyResponseBody struct { // The automatic snapshot policy ID. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateAutoSnapshotPolicyResponseBody) String() string { return tea.Prettify(s) } func (s CreateAutoSnapshotPolicyResponseBody) GoString() string { return s.String() } func (s *CreateAutoSnapshotPolicyResponseBody) SetAutoSnapshotPolicyId(v string) *CreateAutoSnapshotPolicyResponseBody { s.AutoSnapshotPolicyId = &v return s } func (s *CreateAutoSnapshotPolicyResponseBody) SetRequestId(v string) *CreateAutoSnapshotPolicyResponseBody { s.RequestId = &v return s } type CreateAutoSnapshotPolicyResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateAutoSnapshotPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateAutoSnapshotPolicyResponse) String() string { return tea.Prettify(s) } func (s CreateAutoSnapshotPolicyResponse) GoString() string { return s.String() } func (s *CreateAutoSnapshotPolicyResponse) SetHeaders(v map[string]*string) *CreateAutoSnapshotPolicyResponse { s.Headers = v return s } func (s *CreateAutoSnapshotPolicyResponse) SetStatusCode(v int32) *CreateAutoSnapshotPolicyResponse { s.StatusCode = &v return s } func (s *CreateAutoSnapshotPolicyResponse) SetBody(v *CreateAutoSnapshotPolicyResponseBody) *CreateAutoSnapshotPolicyResponse { s.Body = v return s } type CreateCapacityReservationRequest struct { PrivatePoolOptions *CreateCapacityReservationRequestPrivatePoolOptions `json:"PrivatePoolOptions,omitempty" xml:"PrivatePoolOptions,omitempty" type:"Struct"` // The client token that is used to ensure the idempotency 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the capacity reservation. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The time when the capacity reservation expires. Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC. For more information, see [ISO 8601](~~25696~~). EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The release mode of the capacity reservation. Valid values: // // * Limited: The capacity reservation is automatically released at a specified time. If you specify this parameter, you must specify the `EndTime` parameter. // * Unlimited: The capacity reservation is manually released. The capacity reservation can be released anytime. EndTimeType *string `json:"EndTimeType,omitempty" xml:"EndTimeType,omitempty"` // The total number of instances for which the capacity of an instance type is reserved. InstanceAmount *int32 `json:"InstanceAmount,omitempty" xml:"InstanceAmount,omitempty"` // The instance type. You can create a capacity reservation to reserve the capacity of only one instance type. You can call the [DescribeInstanceTypes](~~25620~~) operation to query the instance types provided by ECS. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The operating system of the image used by the instance. This parameter corresponds to the `Platform` parameter of regional reserved instances. If the operating system of a capacity reservation matches the operating system of a regional reserved instance, you can apply the regional reserved instance to offset fees of the unused capacity of the capacity reservation. Valid values: // // * Windows: Windows Server operating system // * Linux: Linux and UNIX-like operating system // // Default value: Linux. // // > This parameter is unavailable. Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The ID of the region in which to create the capacity reservation. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which you want to assign the capacity reservation. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The mode in which the capacity reservation takes effect. You can call the CreateCapacityReservation operation to create only immediate capacity reservations. // // > If you do not specify this parameter, the capacity reservation immediately takes effect. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The tags to add to the capacity reservation. Tag []*CreateCapacityReservationRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the zone in which you want to create the capacity reservation. A capacity reservation can reserve resources within only one zone. ZoneId []*string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty" type:"Repeated"` } func (s CreateCapacityReservationRequest) String() string { return tea.Prettify(s) } func (s CreateCapacityReservationRequest) GoString() string { return s.String() } func (s *CreateCapacityReservationRequest) SetPrivatePoolOptions(v *CreateCapacityReservationRequestPrivatePoolOptions) *CreateCapacityReservationRequest { s.PrivatePoolOptions = v return s } func (s *CreateCapacityReservationRequest) SetClientToken(v string) *CreateCapacityReservationRequest { s.ClientToken = &v return s } func (s *CreateCapacityReservationRequest) SetDescription(v string) *CreateCapacityReservationRequest { s.Description = &v return s } func (s *CreateCapacityReservationRequest) SetEndTime(v string) *CreateCapacityReservationRequest { s.EndTime = &v return s } func (s *CreateCapacityReservationRequest) SetEndTimeType(v string) *CreateCapacityReservationRequest { s.EndTimeType = &v return s } func (s *CreateCapacityReservationRequest) SetInstanceAmount(v int32) *CreateCapacityReservationRequest { s.InstanceAmount = &v return s } func (s *CreateCapacityReservationRequest) SetInstanceType(v string) *CreateCapacityReservationRequest { s.InstanceType = &v return s } func (s *CreateCapacityReservationRequest) SetOwnerAccount(v string) *CreateCapacityReservationRequest { s.OwnerAccount = &v return s } func (s *CreateCapacityReservationRequest) SetOwnerId(v int64) *CreateCapacityReservationRequest { s.OwnerId = &v return s } func (s *CreateCapacityReservationRequest) SetPlatform(v string) *CreateCapacityReservationRequest { s.Platform = &v return s } func (s *CreateCapacityReservationRequest) SetRegionId(v string) *CreateCapacityReservationRequest { s.RegionId = &v return s } func (s *CreateCapacityReservationRequest) SetResourceGroupId(v string) *CreateCapacityReservationRequest { s.ResourceGroupId = &v return s } func (s *CreateCapacityReservationRequest) SetResourceOwnerAccount(v string) *CreateCapacityReservationRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateCapacityReservationRequest) SetResourceOwnerId(v int64) *CreateCapacityReservationRequest { s.ResourceOwnerId = &v return s } func (s *CreateCapacityReservationRequest) SetStartTime(v string) *CreateCapacityReservationRequest { s.StartTime = &v return s } func (s *CreateCapacityReservationRequest) SetTag(v []*CreateCapacityReservationRequestTag) *CreateCapacityReservationRequest { s.Tag = v return s } func (s *CreateCapacityReservationRequest) SetZoneId(v []*string) *CreateCapacityReservationRequest { s.ZoneId = v return s } type CreateCapacityReservationRequestPrivatePoolOptions struct { // The type of the private pool to generate after the capacity reservation takes effect. Valid values: // // * Open: open private pool // * Target: targeted private pool // // Default value: Open. MatchCriteria *string `json:"MatchCriteria,omitempty" xml:"MatchCriteria,omitempty"` // The capacity reservation name. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`. The name can contain letters, digits, colons (:), underscores (\_), and hyphens (-). Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s CreateCapacityReservationRequestPrivatePoolOptions) String() string { return tea.Prettify(s) } func (s CreateCapacityReservationRequestPrivatePoolOptions) GoString() string { return s.String() } func (s *CreateCapacityReservationRequestPrivatePoolOptions) SetMatchCriteria(v string) *CreateCapacityReservationRequestPrivatePoolOptions { s.MatchCriteria = &v return s } func (s *CreateCapacityReservationRequestPrivatePoolOptions) SetName(v string) *CreateCapacityReservationRequestPrivatePoolOptions { s.Name = &v return s } type CreateCapacityReservationRequestTag struct { // The key of tag N to add to the capacity reservation. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the capacity reservation. 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://`. The tag value cannot start with `acs:`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateCapacityReservationRequestTag) String() string { return tea.Prettify(s) } func (s CreateCapacityReservationRequestTag) GoString() string { return s.String() } func (s *CreateCapacityReservationRequestTag) SetKey(v string) *CreateCapacityReservationRequestTag { s.Key = &v return s } func (s *CreateCapacityReservationRequestTag) SetValue(v string) *CreateCapacityReservationRequestTag { s.Value = &v return s } type CreateCapacityReservationResponseBody struct { // The capacity reservation ID. PrivatePoolOptionsId *string `json:"PrivatePoolOptionsId,omitempty" xml:"PrivatePoolOptionsId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateCapacityReservationResponseBody) String() string { return tea.Prettify(s) } func (s CreateCapacityReservationResponseBody) GoString() string { return s.String() } func (s *CreateCapacityReservationResponseBody) SetPrivatePoolOptionsId(v string) *CreateCapacityReservationResponseBody { s.PrivatePoolOptionsId = &v return s } func (s *CreateCapacityReservationResponseBody) SetRequestId(v string) *CreateCapacityReservationResponseBody { s.RequestId = &v return s } type CreateCapacityReservationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateCapacityReservationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateCapacityReservationResponse) String() string { return tea.Prettify(s) } func (s CreateCapacityReservationResponse) GoString() string { return s.String() } func (s *CreateCapacityReservationResponse) SetHeaders(v map[string]*string) *CreateCapacityReservationResponse { s.Headers = v return s } func (s *CreateCapacityReservationResponse) SetStatusCode(v int32) *CreateCapacityReservationResponse { s.StatusCode = &v return s } func (s *CreateCapacityReservationResponse) SetBody(v *CreateCapacityReservationResponseBody) *CreateCapacityReservationResponse { s.Body = v return s } type CreateCommandRequest struct { // The Base64-encoded content of the command. Take note of the following items: // // * The value must be Base64-encoded and cannot exceed 18 KB in size. // // * You can use custom parameters in the command content. To enable the custom parameter feature, you must set `EnableParameter` to true. // // * Custom parameters are defined in the `{{}}` format. Within `{{}}`, the spaces and line feeds before and after the parameter names are ignored. // * You can specify up to 20 custom parameters. // * A custom parameter name can contain only 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 can be up to 64 bytes in length. // // * You can specify built-in environment parameters as custom parameters in a command. When you run the command, Cloud Assistant automatically uses the environment parameter values for the custom parameters. You can specify the following built-in environment variables: // // * `{{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 ID of the task. 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 call the [RunCommand](~~141751~~) operation to run the command and 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 CommandContent *string `json:"CommandContent,omitempty" xml:"CommandContent,omitempty"` // The encoding mode of the command content (CommandContent). Valid values: // // * PlainText: The command content is not encoded. // * Base64: The command content is Base64-encoded. // // Default value: Base64. // // > If the specified value of this parameter is invalid, Base64 is used by default. ContentEncoding *string `json:"ContentEncoding,omitempty" xml:"ContentEncoding,omitempty"` // The description of the command. The description supports all character sets and can be up to 512 characters in length. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Specifies whether to use custom parameters in the command. // // Default value: false. EnableParameter *bool `json:"EnableParameter,omitempty" xml:"EnableParameter,omitempty"` // The name of the command. The name supports all character sets and can be up to 128 characters in length. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region in which to create the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the command. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags to add to the command. Tag []*CreateCommandRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // he maximum timeout period for the command execution on the instance. Unit: seconds. When a command that you created cannot be run, the command times out. When a command execution times out, Cloud Assistant Agent forcefully terminates the command process by canceling the PID. // // Default value: 60. Timeout *int64 `json:"Timeout,omitempty" xml:"Timeout,omitempty"` // The command type. Valid values: // // * RunBatScript: batch commands. These commands are applicable to Windows instances. // * RunPowerShellScript: PowerShell commands. These commands are applicable to Windows instances. // * RunShellScript: shell commands. These commands are applicable to Linux instances. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The execution path of the command on ECS instances. The value can be up to 200 characters in length. // // Default values: // // * For Linux instance, the default value is the home directory of the root user, which is the `/root` directory. // * For Windows instances, the default value is the directory where the Cloud Assistant Agent process resides, such as `C:\Windows\System32\`. // // > If you set WorkingDir to a directory other than default ones, make sure that the directory exists on the instances. WorkingDir *string `json:"WorkingDir,omitempty" xml:"WorkingDir,omitempty"` } func (s CreateCommandRequest) String() string { return tea.Prettify(s) } func (s CreateCommandRequest) GoString() string { return s.String() } func (s *CreateCommandRequest) SetCommandContent(v string) *CreateCommandRequest { s.CommandContent = &v return s } func (s *CreateCommandRequest) SetContentEncoding(v string) *CreateCommandRequest { s.ContentEncoding = &v return s } func (s *CreateCommandRequest) SetDescription(v string) *CreateCommandRequest { s.Description = &v return s } func (s *CreateCommandRequest) SetEnableParameter(v bool) *CreateCommandRequest { s.EnableParameter = &v return s } func (s *CreateCommandRequest) SetName(v string) *CreateCommandRequest { s.Name = &v return s } func (s *CreateCommandRequest) SetOwnerAccount(v string) *CreateCommandRequest { s.OwnerAccount = &v return s } func (s *CreateCommandRequest) SetOwnerId(v int64) *CreateCommandRequest { s.OwnerId = &v return s } func (s *CreateCommandRequest) SetRegionId(v string) *CreateCommandRequest { s.RegionId = &v return s } func (s *CreateCommandRequest) SetResourceGroupId(v string) *CreateCommandRequest { s.ResourceGroupId = &v return s } func (s *CreateCommandRequest) SetResourceOwnerAccount(v string) *CreateCommandRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateCommandRequest) SetResourceOwnerId(v int64) *CreateCommandRequest { s.ResourceOwnerId = &v return s } func (s *CreateCommandRequest) SetTag(v []*CreateCommandRequestTag) *CreateCommandRequest { s.Tag = v return s } func (s *CreateCommandRequest) SetTimeout(v int64) *CreateCommandRequest { s.Timeout = &v return s } func (s *CreateCommandRequest) SetType(v string) *CreateCommandRequest { s.Type = &v return s } func (s *CreateCommandRequest) SetWorkingDir(v string) *CreateCommandRequest { s.WorkingDir = &v return s } type CreateCommandRequestTag struct { // The key of tag N. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags, call [ListTagResources](~~110425~~) operation. // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N. Valid values of N: 1 to 20. The tag value can be an empty string. // // It can be up to 128 characters in length and cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateCommandRequestTag) String() string { return tea.Prettify(s) } func (s CreateCommandRequestTag) GoString() string { return s.String() } func (s *CreateCommandRequestTag) SetKey(v string) *CreateCommandRequestTag { s.Key = &v return s } func (s *CreateCommandRequestTag) SetValue(v string) *CreateCommandRequestTag { s.Value = &v return s } type CreateCommandResponseBody struct { // The ID of the command. CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateCommandResponseBody) String() string { return tea.Prettify(s) } func (s CreateCommandResponseBody) GoString() string { return s.String() } func (s *CreateCommandResponseBody) SetCommandId(v string) *CreateCommandResponseBody { s.CommandId = &v return s } func (s *CreateCommandResponseBody) SetRequestId(v string) *CreateCommandResponseBody { s.RequestId = &v return s } type CreateCommandResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateCommandResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateCommandResponse) String() string { return tea.Prettify(s) } func (s CreateCommandResponse) GoString() string { return s.String() } func (s *CreateCommandResponse) SetHeaders(v map[string]*string) *CreateCommandResponse { s.Headers = v return s } func (s *CreateCommandResponse) SetStatusCode(v int32) *CreateCommandResponse { s.StatusCode = &v return s } func (s *CreateCommandResponse) SetBody(v *CreateCommandResponseBody) *CreateCommandResponse { s.Body = v return s } type CreateDedicatedHostClusterRequest struct { // The name of the dedicated host cluster. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (\_), and hyphens (-). It must start with a letter. It cannot contain `http://` or `https://`. // // This parameter is empty by default. DedicatedHostClusterName *string `json:"DedicatedHostClusterName,omitempty" xml:"DedicatedHostClusterName,omitempty"` // The description of the dedicated host cluster. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Specifies whether to check the validity of the request without actually making the request. Valid values: // // * true: The validity of the request is checked but the request is not made. Check items include whether your AccessKey pair is valid, whether RAM users are authorized, and whether the required parameters are specified. If the check fails, the corresponding error is returned. If the check succeeds, the `DryRunOperation` error code is returned. // * false: The validity of the request is checked. If the check succeeds, a 2XX HTTP status code is returned and the request is made. // // Default value: false DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region in which to create the dedicated host cluster. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the dedicated host cluster. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags of the resource. You can enter most at 20 tags for the resource. Tag []*CreateDedicatedHostClusterRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the zone in which to create the dedicated host cluster. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateDedicatedHostClusterRequest) String() string { return tea.Prettify(s) } func (s CreateDedicatedHostClusterRequest) GoString() string { return s.String() } func (s *CreateDedicatedHostClusterRequest) SetDedicatedHostClusterName(v string) *CreateDedicatedHostClusterRequest { s.DedicatedHostClusterName = &v return s } func (s *CreateDedicatedHostClusterRequest) SetDescription(v string) *CreateDedicatedHostClusterRequest { s.Description = &v return s } func (s *CreateDedicatedHostClusterRequest) SetDryRun(v bool) *CreateDedicatedHostClusterRequest { s.DryRun = &v return s } func (s *CreateDedicatedHostClusterRequest) SetOwnerAccount(v string) *CreateDedicatedHostClusterRequest { s.OwnerAccount = &v return s } func (s *CreateDedicatedHostClusterRequest) SetOwnerId(v int64) *CreateDedicatedHostClusterRequest { s.OwnerId = &v return s } func (s *CreateDedicatedHostClusterRequest) SetRegionId(v string) *CreateDedicatedHostClusterRequest { s.RegionId = &v return s } func (s *CreateDedicatedHostClusterRequest) SetResourceGroupId(v string) *CreateDedicatedHostClusterRequest { s.ResourceGroupId = &v return s } func (s *CreateDedicatedHostClusterRequest) SetResourceOwnerAccount(v string) *CreateDedicatedHostClusterRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateDedicatedHostClusterRequest) SetResourceOwnerId(v int64) *CreateDedicatedHostClusterRequest { s.ResourceOwnerId = &v return s } func (s *CreateDedicatedHostClusterRequest) SetTag(v []*CreateDedicatedHostClusterRequestTag) *CreateDedicatedHostClusterRequest { s.Tag = v return s } func (s *CreateDedicatedHostClusterRequest) SetZoneId(v string) *CreateDedicatedHostClusterRequest { s.ZoneId = &v return s } type CreateDedicatedHostClusterRequestTag struct { // The key of tag N of the dedicated host cluster. Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the dedicated host cluster. Valid values of N: 1 to 20. The tag value cannot be an empty string. It can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateDedicatedHostClusterRequestTag) String() string { return tea.Prettify(s) } func (s CreateDedicatedHostClusterRequestTag) GoString() string { return s.String() } func (s *CreateDedicatedHostClusterRequestTag) SetKey(v string) *CreateDedicatedHostClusterRequestTag { s.Key = &v return s } func (s *CreateDedicatedHostClusterRequestTag) SetValue(v string) *CreateDedicatedHostClusterRequestTag { s.Value = &v return s } type CreateDedicatedHostClusterResponseBody struct { // The ID of the dedicated host cluster. DedicatedHostClusterId *string `json:"DedicatedHostClusterId,omitempty" xml:"DedicatedHostClusterId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateDedicatedHostClusterResponseBody) String() string { return tea.Prettify(s) } func (s CreateDedicatedHostClusterResponseBody) GoString() string { return s.String() } func (s *CreateDedicatedHostClusterResponseBody) SetDedicatedHostClusterId(v string) *CreateDedicatedHostClusterResponseBody { s.DedicatedHostClusterId = &v return s } func (s *CreateDedicatedHostClusterResponseBody) SetRequestId(v string) *CreateDedicatedHostClusterResponseBody { s.RequestId = &v return s } type CreateDedicatedHostClusterResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateDedicatedHostClusterResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateDedicatedHostClusterResponse) String() string { return tea.Prettify(s) } func (s CreateDedicatedHostClusterResponse) GoString() string { return s.String() } func (s *CreateDedicatedHostClusterResponse) SetHeaders(v map[string]*string) *CreateDedicatedHostClusterResponse { s.Headers = v return s } func (s *CreateDedicatedHostClusterResponse) SetStatusCode(v int32) *CreateDedicatedHostClusterResponse { s.StatusCode = &v return s } func (s *CreateDedicatedHostClusterResponse) SetBody(v *CreateDedicatedHostClusterResponseBody) *CreateDedicatedHostClusterResponse { s.Body = v return s } type CreateDemandRequest struct { // The number of instances. Valid values: 1 to 100000. Amount *int32 `json:"Amount,omitempty" xml:"Amount,omitempty"` // The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but make sure that the token is unique among different requests. The value of `ClientToken` can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the demand. The description must be 2 to 256 characters in length and cannot start with [http:// or https://](http://https://。). DemandDescription *string `json:"DemandDescription,omitempty" xml:"DemandDescription,omitempty"` // The name of the demand. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with [http:// or https://](http://https://). It can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-). // // The default value is the instance type name. DemandName *string `json:"DemandName,omitempty" xml:"DemandName,omitempty"` // The end time of the subscription period. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-dd HH:mm:ss format. The time must be in UTC. // // If the value of seconds (ss) is not 00, the time is automatically set to the beginning of the specified minute (mm). The value of EndTime is later than the value of Starttime. In most cases, the interval between the two times cannot be more than 10 days. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The billing method of the instance. Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go. This is the default value. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance type. See [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of an instance type, or see [Select instance types](~~58291~~) to learn how to select instance types. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The subscription period of the resource. Valid values: // // * Valid values when the value of PeriodUnit is Day: 1, 2, 3, 4, 5, and 6. // * Valid values when the value of PeriodUnit is Week: 1, 2, 3, and 4. // * Valid values when the value of PeriodUnit is Month: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The unit of the subscription period. Valid values: // // * Day // * Week // * Month. This is the default value. PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The start time of the subscription period. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-dd HH:mm:ss format. The time must be in UTC. // // If the value of seconds (ss) is not 00, the time is automatically set to the beginning of the specified minute (mm). The value of EndTime must be later than the value of Starttime. In most cases, the interval between the two times cannot be more than 10 days. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The zone ID of the instance. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. // // This parameter is empty by default. If you leave this parameter empty, the system randomly selects a zone. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateDemandRequest) String() string { return tea.Prettify(s) } func (s CreateDemandRequest) GoString() string { return s.String() } func (s *CreateDemandRequest) SetAmount(v int32) *CreateDemandRequest { s.Amount = &v return s } func (s *CreateDemandRequest) SetClientToken(v string) *CreateDemandRequest { s.ClientToken = &v return s } func (s *CreateDemandRequest) SetDemandDescription(v string) *CreateDemandRequest { s.DemandDescription = &v return s } func (s *CreateDemandRequest) SetDemandName(v string) *CreateDemandRequest { s.DemandName = &v return s } func (s *CreateDemandRequest) SetEndTime(v string) *CreateDemandRequest { s.EndTime = &v return s } func (s *CreateDemandRequest) SetInstanceChargeType(v string) *CreateDemandRequest { s.InstanceChargeType = &v return s } func (s *CreateDemandRequest) SetInstanceType(v string) *CreateDemandRequest { s.InstanceType = &v return s } func (s *CreateDemandRequest) SetOwnerAccount(v string) *CreateDemandRequest { s.OwnerAccount = &v return s } func (s *CreateDemandRequest) SetOwnerId(v int64) *CreateDemandRequest { s.OwnerId = &v return s } func (s *CreateDemandRequest) SetPeriod(v int32) *CreateDemandRequest { s.Period = &v return s } func (s *CreateDemandRequest) SetPeriodUnit(v string) *CreateDemandRequest { s.PeriodUnit = &v return s } func (s *CreateDemandRequest) SetRegionId(v string) *CreateDemandRequest { s.RegionId = &v return s } func (s *CreateDemandRequest) SetResourceOwnerAccount(v string) *CreateDemandRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateDemandRequest) SetResourceOwnerId(v int64) *CreateDemandRequest { s.ResourceOwnerId = &v return s } func (s *CreateDemandRequest) SetStartTime(v string) *CreateDemandRequest { s.StartTime = &v return s } func (s *CreateDemandRequest) SetZoneId(v string) *CreateDemandRequest { s.ZoneId = &v return s } type CreateDemandResponseBody struct { // The ID of the demand. DemandId *string `json:"DemandId,omitempty" xml:"DemandId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateDemandResponseBody) String() string { return tea.Prettify(s) } func (s CreateDemandResponseBody) GoString() string { return s.String() } func (s *CreateDemandResponseBody) SetDemandId(v string) *CreateDemandResponseBody { s.DemandId = &v return s } func (s *CreateDemandResponseBody) SetRequestId(v string) *CreateDemandResponseBody { s.RequestId = &v return s } type CreateDemandResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateDemandResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateDemandResponse) String() string { return tea.Prettify(s) } func (s CreateDemandResponse) GoString() string { return s.String() } func (s *CreateDemandResponse) SetHeaders(v map[string]*string) *CreateDemandResponse { s.Headers = v return s } func (s *CreateDemandResponse) SetStatusCode(v int32) *CreateDemandResponse { s.StatusCode = &v return s } func (s *CreateDemandResponse) SetBody(v *CreateDemandResponseBody) *CreateDemandResponse { s.Body = v return s } type CreateDeploymentSetRequest struct { // The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The client token that is used to ensure the idempotence of the request. You can use the client to generate a client token. Make sure that a unique client token is used for each request. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). DeploymentSetName *string `json:"DeploymentSetName,omitempty" xml:"DeploymentSetName,omitempty"` // The emergency solution to use in the situation where instances in the deployment set cannot be evenly distributed to different zones due to resource insufficiency after the instances failover. Valid values: // // * CancelMembershipAndStart: removes the instances from the deployment set and starts the instances immediately after they are failed over. // * KeepStopped: leaves the instances in the Stopped state and starts them after resources are replenished. // // Default value: CancelMembershipAndStart. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The name of the deployment set. The name must be 2 to 128 characters in length, It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"` // The deployment domain. Set the value to Default. // // Default: Instances in the deployment set are distributed only within the current zone. Granularity *string `json:"Granularity,omitempty" xml:"Granularity,omitempty"` // The deployment strategy. Valid values: // // * Availability: high availability strategy. // * AvailabilityGroup: high availability group strategy. // // Default value: Availability. GroupCount *int64 `json:"GroupCount,omitempty" xml:"GroupCount,omitempty"` // The region ID of the deployment set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. OnUnableToRedeployFailedInstance *string `json:"OnUnableToRedeployFailedInstance,omitempty" xml:"OnUnableToRedeployFailedInstance,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // Creates a deployment set in a specific region. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The deployment granularity. Set the value to host. // // host: Instances in the deployment set are dispersed at the granularity of hosts. Strategy *string `json:"Strategy,omitempty" xml:"Strategy,omitempty"` } func (s CreateDeploymentSetRequest) String() string { return tea.Prettify(s) } func (s CreateDeploymentSetRequest) GoString() string { return s.String() } func (s *CreateDeploymentSetRequest) SetClientToken(v string) *CreateDeploymentSetRequest { s.ClientToken = &v return s } func (s *CreateDeploymentSetRequest) SetDeploymentSetName(v string) *CreateDeploymentSetRequest { s.DeploymentSetName = &v return s } func (s *CreateDeploymentSetRequest) SetDescription(v string) *CreateDeploymentSetRequest { s.Description = &v return s } func (s *CreateDeploymentSetRequest) SetDomain(v string) *CreateDeploymentSetRequest { s.Domain = &v return s } func (s *CreateDeploymentSetRequest) SetGranularity(v string) *CreateDeploymentSetRequest { s.Granularity = &v return s } func (s *CreateDeploymentSetRequest) SetGroupCount(v int64) *CreateDeploymentSetRequest { s.GroupCount = &v return s } func (s *CreateDeploymentSetRequest) SetOnUnableToRedeployFailedInstance(v string) *CreateDeploymentSetRequest { s.OnUnableToRedeployFailedInstance = &v return s } func (s *CreateDeploymentSetRequest) SetOwnerAccount(v string) *CreateDeploymentSetRequest { s.OwnerAccount = &v return s } func (s *CreateDeploymentSetRequest) SetOwnerId(v int64) *CreateDeploymentSetRequest { s.OwnerId = &v return s } func (s *CreateDeploymentSetRequest) SetRegionId(v string) *CreateDeploymentSetRequest { s.RegionId = &v return s } func (s *CreateDeploymentSetRequest) SetResourceOwnerAccount(v string) *CreateDeploymentSetRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateDeploymentSetRequest) SetResourceOwnerId(v int64) *CreateDeploymentSetRequest { s.ResourceOwnerId = &v return s } func (s *CreateDeploymentSetRequest) SetStrategy(v string) *CreateDeploymentSetRequest { s.Strategy = &v return s } type CreateDeploymentSetResponseBody struct { DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateDeploymentSetResponseBody) String() string { return tea.Prettify(s) } func (s CreateDeploymentSetResponseBody) GoString() string { return s.String() } func (s *CreateDeploymentSetResponseBody) SetDeploymentSetId(v string) *CreateDeploymentSetResponseBody { s.DeploymentSetId = &v return s } func (s *CreateDeploymentSetResponseBody) SetRequestId(v string) *CreateDeploymentSetResponseBody { s.RequestId = &v return s } type CreateDeploymentSetResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateDeploymentSetResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateDeploymentSetResponse) String() string { return tea.Prettify(s) } func (s CreateDeploymentSetResponse) GoString() string { return s.String() } func (s *CreateDeploymentSetResponse) SetHeaders(v map[string]*string) *CreateDeploymentSetResponse { s.Headers = v return s } func (s *CreateDeploymentSetResponse) SetStatusCode(v int32) *CreateDeploymentSetResponse { s.StatusCode = &v return s } func (s *CreateDeploymentSetResponse) SetBody(v *CreateDeploymentSetResponseBody) *CreateDeploymentSetResponse { s.Body = v return s } type CreateDiagnosticMetricSetRequest struct { // testDescription Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of diagnostic metric. MetricIds []*string `json:"MetricIds,omitempty" xml:"MetricIds,omitempty" type:"Repeated"` // my_dms MetricSetName *string `json:"MetricSetName,omitempty" xml:"MetricSetName,omitempty"` // The type of the resource. // // Default value: instance. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The name of the diagnostic metric set. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` } func (s CreateDiagnosticMetricSetRequest) String() string { return tea.Prettify(s) } func (s CreateDiagnosticMetricSetRequest) GoString() string { return s.String() } func (s *CreateDiagnosticMetricSetRequest) SetDescription(v string) *CreateDiagnosticMetricSetRequest { s.Description = &v return s } func (s *CreateDiagnosticMetricSetRequest) SetMetricIds(v []*string) *CreateDiagnosticMetricSetRequest { s.MetricIds = v return s } func (s *CreateDiagnosticMetricSetRequest) SetMetricSetName(v string) *CreateDiagnosticMetricSetRequest { s.MetricSetName = &v return s } func (s *CreateDiagnosticMetricSetRequest) SetRegionId(v string) *CreateDiagnosticMetricSetRequest { s.RegionId = &v return s } func (s *CreateDiagnosticMetricSetRequest) SetResourceType(v string) *CreateDiagnosticMetricSetRequest { s.ResourceType = &v return s } type CreateDiagnosticMetricSetResponseBody struct { MetricSetId *string `json:"MetricSetId,omitempty" xml:"MetricSetId,omitempty"` // The ID of the diagnostic metric set, which is the unique identifier of the set. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateDiagnosticMetricSetResponseBody) String() string { return tea.Prettify(s) } func (s CreateDiagnosticMetricSetResponseBody) GoString() string { return s.String() } func (s *CreateDiagnosticMetricSetResponseBody) SetMetricSetId(v string) *CreateDiagnosticMetricSetResponseBody { s.MetricSetId = &v return s } func (s *CreateDiagnosticMetricSetResponseBody) SetRequestId(v string) *CreateDiagnosticMetricSetResponseBody { s.RequestId = &v return s } type CreateDiagnosticMetricSetResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateDiagnosticMetricSetResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateDiagnosticMetricSetResponse) String() string { return tea.Prettify(s) } func (s CreateDiagnosticMetricSetResponse) GoString() string { return s.String() } func (s *CreateDiagnosticMetricSetResponse) SetHeaders(v map[string]*string) *CreateDiagnosticMetricSetResponse { s.Headers = v return s } func (s *CreateDiagnosticMetricSetResponse) SetStatusCode(v int32) *CreateDiagnosticMetricSetResponse { s.StatusCode = &v return s } func (s *CreateDiagnosticMetricSetResponse) SetBody(v *CreateDiagnosticMetricSetResponseBody) *CreateDiagnosticMetricSetResponse { s.Body = v return s } type CreateDiagnosticReportRequest struct { // The end of the reporting period. This parameter takes effect only for diagnostic metrics that do not need to be assessed by running Cloud Assistant commands in guest operating systems. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The ID of the diagnostic metric set. If this parameter is left empty, the dms-instancedefault set is used, which is the default diagnostic metric set provided for Elastic Compute Service (ECS) instances. MetricSetId *string `json:"MetricSetId,omitempty" xml:"MetricSetId,omitempty"` // The ID of the region in which to create a diagnostic report. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` // The beginning of the reporting period. This parameter takes effect only for diagnostic metrics that do not need to be assessed by running Cloud Assistant commands in guest operating systems. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s CreateDiagnosticReportRequest) String() string { return tea.Prettify(s) } func (s CreateDiagnosticReportRequest) GoString() string { return s.String() } func (s *CreateDiagnosticReportRequest) SetEndTime(v string) *CreateDiagnosticReportRequest { s.EndTime = &v return s } func (s *CreateDiagnosticReportRequest) SetMetricSetId(v string) *CreateDiagnosticReportRequest { s.MetricSetId = &v return s } func (s *CreateDiagnosticReportRequest) SetRegionId(v string) *CreateDiagnosticReportRequest { s.RegionId = &v return s } func (s *CreateDiagnosticReportRequest) SetResourceId(v string) *CreateDiagnosticReportRequest { s.ResourceId = &v return s } func (s *CreateDiagnosticReportRequest) SetStartTime(v string) *CreateDiagnosticReportRequest { s.StartTime = &v return s } type CreateDiagnosticReportResponseBody struct { // The ID of the diagnostic report, which is the unique identifier of the report. ReportId *string `json:"ReportId,omitempty" xml:"ReportId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateDiagnosticReportResponseBody) String() string { return tea.Prettify(s) } func (s CreateDiagnosticReportResponseBody) GoString() string { return s.String() } func (s *CreateDiagnosticReportResponseBody) SetReportId(v string) *CreateDiagnosticReportResponseBody { s.ReportId = &v return s } func (s *CreateDiagnosticReportResponseBody) SetRequestId(v string) *CreateDiagnosticReportResponseBody { s.RequestId = &v return s } type CreateDiagnosticReportResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateDiagnosticReportResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateDiagnosticReportResponse) String() string { return tea.Prettify(s) } func (s CreateDiagnosticReportResponse) GoString() string { return s.String() } func (s *CreateDiagnosticReportResponse) SetHeaders(v map[string]*string) *CreateDiagnosticReportResponse { s.Headers = v return s } func (s *CreateDiagnosticReportResponse) SetStatusCode(v int32) *CreateDiagnosticReportResponse { s.StatusCode = &v return s } func (s *CreateDiagnosticReportResponse) SetBody(v *CreateDiagnosticReportResponseBody) *CreateDiagnosticReportResponse { s.Body = v return s } type CreateDiskRequest struct { // This parameter is not publicly available. AdvancedFeatures *string `json:"AdvancedFeatures,omitempty" xml:"AdvancedFeatures,omitempty"` // This parameter is not publicly available. Arn []*CreateDiskRequestArn `json:"Arn,omitempty" xml:"Arn,omitempty" type:"Repeated"` // This parameter is not publicly available. BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the disk. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The category of the disk. Valid values: // // * cloud: basic disk. // * cloud_efficiency: ultra disk. // * cloud_ssd: standard SSD. // * cloud_essd: ESSD. // // Default value: cloud. DiskCategory *string `json:"DiskCategory,omitempty" xml:"DiskCategory,omitempty"` // The name of the disk. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). // // This parameter is empty by default. DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // This parameter is not publicly available. EncryptAlgorithm *string `json:"EncryptAlgorithm,omitempty" xml:"EncryptAlgorithm,omitempty"` // Specifies whether to encrypt the disk. Valid values: // // * true // * false // // Default value: false. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the instance to which the created subscription disk is automatically attached. // // * After you specify the instance ID, ResourceGroupId, Tag.N.Key, Tag.N.Value, ClientToken, and KMSKeyId are ignored. // * You cannot specify ZoneId and InstanceId at the same time. // // This parameter is empty by default. This indicates that a pay-as-you-go disk is created. RegionId and ZoneId specify where the disk resides. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The ID of the Key Management Service (KMS) key that you want to use for the disk. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` // Specifies whether to enable the multi-attach feature for the disk. Valid values: // // * Disabled. // * Enabled. Set the value to `Enabled` only for ESSDs. // // Default value: Disabled. // // > Disks for which the multi-attach feature is enabled support only the pay-as-you-go billing method. When `MultiAttach` is set to Enabled, you cannot specify `InstanceId`. You can call the [AttachDisk](~~25515~~) operation to attach disks to instances after the disks are created. Disks for which the multi-attach feature is enabled can be attached only as data disks. MultiAttach *string `json:"MultiAttach,omitempty" xml:"MultiAttach,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The performance level of the ESSD. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // Default value: PL1. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // This parameter is not publicly available. ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` // The ID of the region in which to create the disk. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the disk. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The size of the disk. Unit: GiB. This parameter is required. Valid values: // // * Valid values when DiskCategory is set to cloud: 5 to 2,000. // // * Valid values when DiskCategory is set to cloud_efficiency: 20 to 32,768. // // * Valid values when DiskCategory is set to cloud_ssd: 20 to 32,768. // // * Valid values when DiskCategory is set to cloud_essd: depends on the `PerformanceLevel` value. // // * Valid values when PerformanceLevel is set to PL0: 1 to 32,768. // * Valid values when PerformanceLevel is set to PL1: 20 to 32,768. // * Valid values when PerformanceLevel is set to PL2: 461 to 32,768. // * Valid values when PerformanceLevel is set to PL3: 1,261 to 32,768. // // If `SnapshotId` is specified, the following limits apply to `SnapshotId` and `Size`: // // * If the size of the snapshot specified by `SnapshotId` is greater than the specified `Size` value, the size of the created disk is equal to the specified snapshot size. // * If the size of the snapshot specified by `SnapshotId` is smaller than the specified `Size` value, the size of the created disk is equal to the specified `Size` value. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot used to create the disk. Snapshots that were created on or before July 15, 2013 cannot be used to create disks. // // The following limits apply to `SnapshotId` and `Size`: // // * If the size of the snapshot specified by `SnapshotId` is greater than the specified `Size` value, the size of the created disk is equal to the specified snapshot size. // * If the size of the snapshot specified by `SnapshotId` is smaller than the specified `Size` value, the size of the created disk is equal to the specified `Size` value. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The ID of the dedicated block storage cluster. To create a disk in a specific dedicated block storage cluster, specify this parameter. // // > You cannot specify storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) and the dedicated block storage cluster-related parameter (`StorageClusterId`) at the same time. Otherwise, the operation cannot be called. StorageClusterId *string `json:"StorageClusterId,omitempty" xml:"StorageClusterId,omitempty"` // The ID of the storage set. // // > You cannot specify storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) and the dedicated block storage cluster-related parameter (`StorageClusterId`) at the same time. Otherwise, the operation cannot be called. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` // The number of partitions in the storage set. The value must be greater than or equal to 2 but cannot exceed the quota obtained by calling the [DescribeAccountAttributes](~~73772~~)operation. // // Default value: 2. StorageSetPartitionNumber *int32 `json:"StorageSetPartitionNumber,omitempty" xml:"StorageSetPartitionNumber,omitempty"` // The tags to add to the disk. Tag []*CreateDiskRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the zone in which to create the pay-as-you-go disk. // // * If InstanceId is not specified, ZoneId is required. // * You cannot specify ZoneId and InstanceId at the same time. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateDiskRequest) String() string { return tea.Prettify(s) } func (s CreateDiskRequest) GoString() string { return s.String() } func (s *CreateDiskRequest) SetAdvancedFeatures(v string) *CreateDiskRequest { s.AdvancedFeatures = &v return s } func (s *CreateDiskRequest) SetArn(v []*CreateDiskRequestArn) *CreateDiskRequest { s.Arn = v return s } func (s *CreateDiskRequest) SetBurstingEnabled(v bool) *CreateDiskRequest { s.BurstingEnabled = &v return s } func (s *CreateDiskRequest) SetClientToken(v string) *CreateDiskRequest { s.ClientToken = &v return s } func (s *CreateDiskRequest) SetDescription(v string) *CreateDiskRequest { s.Description = &v return s } func (s *CreateDiskRequest) SetDiskCategory(v string) *CreateDiskRequest { s.DiskCategory = &v return s } func (s *CreateDiskRequest) SetDiskName(v string) *CreateDiskRequest { s.DiskName = &v return s } func (s *CreateDiskRequest) SetEncryptAlgorithm(v string) *CreateDiskRequest { s.EncryptAlgorithm = &v return s } func (s *CreateDiskRequest) SetEncrypted(v bool) *CreateDiskRequest { s.Encrypted = &v return s } func (s *CreateDiskRequest) SetInstanceId(v string) *CreateDiskRequest { s.InstanceId = &v return s } func (s *CreateDiskRequest) SetKMSKeyId(v string) *CreateDiskRequest { s.KMSKeyId = &v return s } func (s *CreateDiskRequest) SetMultiAttach(v string) *CreateDiskRequest { s.MultiAttach = &v return s } func (s *CreateDiskRequest) SetOwnerAccount(v string) *CreateDiskRequest { s.OwnerAccount = &v return s } func (s *CreateDiskRequest) SetOwnerId(v int64) *CreateDiskRequest { s.OwnerId = &v return s } func (s *CreateDiskRequest) SetPerformanceLevel(v string) *CreateDiskRequest { s.PerformanceLevel = &v return s } func (s *CreateDiskRequest) SetProvisionedIops(v int64) *CreateDiskRequest { s.ProvisionedIops = &v return s } func (s *CreateDiskRequest) SetRegionId(v string) *CreateDiskRequest { s.RegionId = &v return s } func (s *CreateDiskRequest) SetResourceGroupId(v string) *CreateDiskRequest { s.ResourceGroupId = &v return s } func (s *CreateDiskRequest) SetResourceOwnerAccount(v string) *CreateDiskRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateDiskRequest) SetResourceOwnerId(v int64) *CreateDiskRequest { s.ResourceOwnerId = &v return s } func (s *CreateDiskRequest) SetSize(v int32) *CreateDiskRequest { s.Size = &v return s } func (s *CreateDiskRequest) SetSnapshotId(v string) *CreateDiskRequest { s.SnapshotId = &v return s } func (s *CreateDiskRequest) SetStorageClusterId(v string) *CreateDiskRequest { s.StorageClusterId = &v return s } func (s *CreateDiskRequest) SetStorageSetId(v string) *CreateDiskRequest { s.StorageSetId = &v return s } func (s *CreateDiskRequest) SetStorageSetPartitionNumber(v int32) *CreateDiskRequest { s.StorageSetPartitionNumber = &v return s } func (s *CreateDiskRequest) SetTag(v []*CreateDiskRequestTag) *CreateDiskRequest { s.Tag = v return s } func (s *CreateDiskRequest) SetZoneId(v string) *CreateDiskRequest { s.ZoneId = &v return s } type CreateDiskRequestArn struct { // This parameter is not publicly available. AssumeRoleFor *int64 `json:"AssumeRoleFor,omitempty" xml:"AssumeRoleFor,omitempty"` // This parameter is not publicly available. RoleType *string `json:"RoleType,omitempty" xml:"RoleType,omitempty"` // This parameter is not publicly available. Rolearn *string `json:"Rolearn,omitempty" xml:"Rolearn,omitempty"` } func (s CreateDiskRequestArn) String() string { return tea.Prettify(s) } func (s CreateDiskRequestArn) GoString() string { return s.String() } func (s *CreateDiskRequestArn) SetAssumeRoleFor(v int64) *CreateDiskRequestArn { s.AssumeRoleFor = &v return s } func (s *CreateDiskRequestArn) SetRoleType(v string) *CreateDiskRequestArn { s.RoleType = &v return s } func (s *CreateDiskRequestArn) SetRolearn(v string) *CreateDiskRequestArn { s.Rolearn = &v return s } type CreateDiskRequestTag struct { // The key of tag N to add to the disk. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the disk. 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 start with `acs:`. The tag value cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateDiskRequestTag) String() string { return tea.Prettify(s) } func (s CreateDiskRequestTag) GoString() string { return s.String() } func (s *CreateDiskRequestTag) SetKey(v string) *CreateDiskRequestTag { s.Key = &v return s } func (s *CreateDiskRequestTag) SetValue(v string) *CreateDiskRequestTag { s.Value = &v return s } type CreateDiskResponseBody struct { // The disk ID. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The order ID. // // > The order ID is returned only when you create a subscription disk. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateDiskResponseBody) String() string { return tea.Prettify(s) } func (s CreateDiskResponseBody) GoString() string { return s.String() } func (s *CreateDiskResponseBody) SetDiskId(v string) *CreateDiskResponseBody { s.DiskId = &v return s } func (s *CreateDiskResponseBody) SetOrderId(v string) *CreateDiskResponseBody { s.OrderId = &v return s } func (s *CreateDiskResponseBody) SetRequestId(v string) *CreateDiskResponseBody { s.RequestId = &v return s } type CreateDiskResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateDiskResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateDiskResponse) String() string { return tea.Prettify(s) } func (s CreateDiskResponse) GoString() string { return s.String() } func (s *CreateDiskResponse) SetHeaders(v map[string]*string) *CreateDiskResponse { s.Headers = v return s } func (s *CreateDiskResponse) SetStatusCode(v int32) *CreateDiskResponse { s.StatusCode = &v return s } func (s *CreateDiskResponse) SetBody(v *CreateDiskResponseBody) *CreateDiskResponse { s.Body = v return s } type CreateElasticityAssuranceRequest struct { PrivatePoolOptions *CreateElasticityAssuranceRequestPrivatePoolOptions `json:"PrivatePoolOptions,omitempty" xml:"PrivatePoolOptions,omitempty" type:"Struct"` // The total number of times that the elasticity assurance can be applied. Set the value to Unlimited. This value indicates that the elasticity assurance can be applied an unlimited number of times within its effective duration. // // Default value: Unlimited. AssuranceTimes *string `json:"AssuranceTimes,omitempty" xml:"AssuranceTimes,omitempty"` // The client token that you want to use 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the elasticity assurance. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The total number of instances for which to reserve capacity of an instance type. // // Valid values: 1 to 1000. InstanceAmount *int32 `json:"InstanceAmount,omitempty" xml:"InstanceAmount,omitempty"` // > This parameter is no longer used. InstanceCpuCoreCount *int32 `json:"InstanceCpuCoreCount,omitempty" xml:"InstanceCpuCoreCount,omitempty"` // The instance type. An elasticity assurance can be created to reserve the capacity of a single instance type. InstanceType []*string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The term of the elasticity assurance. The unit of the term is determined by the `PeriodUnit` value. Valid values: // // * When `PeriodUnit` is set to `Month`, the valid values are 1, 2, 3, 4, 5, 6, 7, 8, and 9. // * When `PeriodUnit` is set to `Year`, the valid values are 1, 2, 3, 4, and 5. // // Default value: 1. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The unit of the term of the elasticity assurance. Valid values: // // * Month // * Year // // Default value: Year. PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // The ID of the region in which to create the elasticity assurance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the elasticity assurance. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The time when the elasticity assurance takes effect. The default value is the time when the CreateElasticityAssurance operation is called to create the elasticity assurance. Specify the time in the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC. For more information, see [ISO 8601](~~25696~~). StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The tags to add to the elasticity assurance. Tag []*CreateElasticityAssuranceRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the zone in which to create the elasticity assurance. An elasticity assurance can be used to reserve resources within a single zone. ZoneId []*string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty" type:"Repeated"` } func (s CreateElasticityAssuranceRequest) String() string { return tea.Prettify(s) } func (s CreateElasticityAssuranceRequest) GoString() string { return s.String() } func (s *CreateElasticityAssuranceRequest) SetPrivatePoolOptions(v *CreateElasticityAssuranceRequestPrivatePoolOptions) *CreateElasticityAssuranceRequest { s.PrivatePoolOptions = v return s } func (s *CreateElasticityAssuranceRequest) SetAssuranceTimes(v string) *CreateElasticityAssuranceRequest { s.AssuranceTimes = &v return s } func (s *CreateElasticityAssuranceRequest) SetClientToken(v string) *CreateElasticityAssuranceRequest { s.ClientToken = &v return s } func (s *CreateElasticityAssuranceRequest) SetDescription(v string) *CreateElasticityAssuranceRequest { s.Description = &v return s } func (s *CreateElasticityAssuranceRequest) SetInstanceAmount(v int32) *CreateElasticityAssuranceRequest { s.InstanceAmount = &v return s } func (s *CreateElasticityAssuranceRequest) SetInstanceCpuCoreCount(v int32) *CreateElasticityAssuranceRequest { s.InstanceCpuCoreCount = &v return s } func (s *CreateElasticityAssuranceRequest) SetInstanceType(v []*string) *CreateElasticityAssuranceRequest { s.InstanceType = v return s } func (s *CreateElasticityAssuranceRequest) SetOwnerAccount(v string) *CreateElasticityAssuranceRequest { s.OwnerAccount = &v return s } func (s *CreateElasticityAssuranceRequest) SetOwnerId(v int64) *CreateElasticityAssuranceRequest { s.OwnerId = &v return s } func (s *CreateElasticityAssuranceRequest) SetPeriod(v int32) *CreateElasticityAssuranceRequest { s.Period = &v return s } func (s *CreateElasticityAssuranceRequest) SetPeriodUnit(v string) *CreateElasticityAssuranceRequest { s.PeriodUnit = &v return s } func (s *CreateElasticityAssuranceRequest) SetRegionId(v string) *CreateElasticityAssuranceRequest { s.RegionId = &v return s } func (s *CreateElasticityAssuranceRequest) SetResourceGroupId(v string) *CreateElasticityAssuranceRequest { s.ResourceGroupId = &v return s } func (s *CreateElasticityAssuranceRequest) SetResourceOwnerAccount(v string) *CreateElasticityAssuranceRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateElasticityAssuranceRequest) SetResourceOwnerId(v int64) *CreateElasticityAssuranceRequest { s.ResourceOwnerId = &v return s } func (s *CreateElasticityAssuranceRequest) SetStartTime(v string) *CreateElasticityAssuranceRequest { s.StartTime = &v return s } func (s *CreateElasticityAssuranceRequest) SetTag(v []*CreateElasticityAssuranceRequestTag) *CreateElasticityAssuranceRequest { s.Tag = v return s } func (s *CreateElasticityAssuranceRequest) SetZoneId(v []*string) *CreateElasticityAssuranceRequest { s.ZoneId = v return s } type CreateElasticityAssuranceRequestPrivatePoolOptions struct { // The type of the private pool with which you want to associate the elasticity assurance. Valid values: // // * Open: open private pool. // * Target: specified private pool. // // Default value: Open. MatchCriteria *string `json:"MatchCriteria,omitempty" xml:"MatchCriteria,omitempty"` // The name of the elasticity assurance. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s CreateElasticityAssuranceRequestPrivatePoolOptions) String() string { return tea.Prettify(s) } func (s CreateElasticityAssuranceRequestPrivatePoolOptions) GoString() string { return s.String() } func (s *CreateElasticityAssuranceRequestPrivatePoolOptions) SetMatchCriteria(v string) *CreateElasticityAssuranceRequestPrivatePoolOptions { s.MatchCriteria = &v return s } func (s *CreateElasticityAssuranceRequestPrivatePoolOptions) SetName(v string) *CreateElasticityAssuranceRequestPrivatePoolOptions { s.Name = &v return s } type CreateElasticityAssuranceRequestTag struct { // The key of tag N to add to the elasticity assurance. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the elasticity assurance. 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 start with `acs:`. The tag value cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateElasticityAssuranceRequestTag) String() string { return tea.Prettify(s) } func (s CreateElasticityAssuranceRequestTag) GoString() string { return s.String() } func (s *CreateElasticityAssuranceRequestTag) SetKey(v string) *CreateElasticityAssuranceRequestTag { s.Key = &v return s } func (s *CreateElasticityAssuranceRequestTag) SetValue(v string) *CreateElasticityAssuranceRequestTag { s.Value = &v return s } type CreateElasticityAssuranceResponseBody struct { // The order ID. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"` // The elasticity assurance ID. PrivatePoolOptionsId *string `json:"PrivatePoolOptionsId,omitempty" xml:"PrivatePoolOptionsId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateElasticityAssuranceResponseBody) String() string { return tea.Prettify(s) } func (s CreateElasticityAssuranceResponseBody) GoString() string { return s.String() } func (s *CreateElasticityAssuranceResponseBody) SetOrderId(v string) *CreateElasticityAssuranceResponseBody { s.OrderId = &v return s } func (s *CreateElasticityAssuranceResponseBody) SetPrivatePoolOptionsId(v string) *CreateElasticityAssuranceResponseBody { s.PrivatePoolOptionsId = &v return s } func (s *CreateElasticityAssuranceResponseBody) SetRequestId(v string) *CreateElasticityAssuranceResponseBody { s.RequestId = &v return s } type CreateElasticityAssuranceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateElasticityAssuranceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateElasticityAssuranceResponse) String() string { return tea.Prettify(s) } func (s CreateElasticityAssuranceResponse) GoString() string { return s.String() } func (s *CreateElasticityAssuranceResponse) SetHeaders(v map[string]*string) *CreateElasticityAssuranceResponse { s.Headers = v return s } func (s *CreateElasticityAssuranceResponse) SetStatusCode(v int32) *CreateElasticityAssuranceResponse { s.StatusCode = &v return s } func (s *CreateElasticityAssuranceResponse) SetBody(v *CreateElasticityAssuranceResponseBody) *CreateElasticityAssuranceResponse { s.Body = v return s } type CreateForwardEntryRequest struct { ExternalIp *string `json:"ExternalIp,omitempty" xml:"ExternalIp,omitempty"` ExternalPort *string `json:"ExternalPort,omitempty" xml:"ExternalPort,omitempty"` ForwardTableId *string `json:"ForwardTableId,omitempty" xml:"ForwardTableId,omitempty"` InternalIp *string `json:"InternalIp,omitempty" xml:"InternalIp,omitempty"` InternalPort *string `json:"InternalPort,omitempty" xml:"InternalPort,omitempty"` IpProtocol *string `json:"IpProtocol,omitempty" xml:"IpProtocol,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s CreateForwardEntryRequest) String() string { return tea.Prettify(s) } func (s CreateForwardEntryRequest) GoString() string { return s.String() } func (s *CreateForwardEntryRequest) SetExternalIp(v string) *CreateForwardEntryRequest { s.ExternalIp = &v return s } func (s *CreateForwardEntryRequest) SetExternalPort(v string) *CreateForwardEntryRequest { s.ExternalPort = &v return s } func (s *CreateForwardEntryRequest) SetForwardTableId(v string) *CreateForwardEntryRequest { s.ForwardTableId = &v return s } func (s *CreateForwardEntryRequest) SetInternalIp(v string) *CreateForwardEntryRequest { s.InternalIp = &v return s } func (s *CreateForwardEntryRequest) SetInternalPort(v string) *CreateForwardEntryRequest { s.InternalPort = &v return s } func (s *CreateForwardEntryRequest) SetIpProtocol(v string) *CreateForwardEntryRequest { s.IpProtocol = &v return s } func (s *CreateForwardEntryRequest) SetOwnerAccount(v string) *CreateForwardEntryRequest { s.OwnerAccount = &v return s } func (s *CreateForwardEntryRequest) SetOwnerId(v int64) *CreateForwardEntryRequest { s.OwnerId = &v return s } func (s *CreateForwardEntryRequest) SetRegionId(v string) *CreateForwardEntryRequest { s.RegionId = &v return s } func (s *CreateForwardEntryRequest) SetResourceOwnerAccount(v string) *CreateForwardEntryRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateForwardEntryRequest) SetResourceOwnerId(v int64) *CreateForwardEntryRequest { s.ResourceOwnerId = &v return s } type CreateForwardEntryResponseBody struct { ForwardEntryId *string `json:"ForwardEntryId,omitempty" xml:"ForwardEntryId,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateForwardEntryResponseBody) String() string { return tea.Prettify(s) } func (s CreateForwardEntryResponseBody) GoString() string { return s.String() } func (s *CreateForwardEntryResponseBody) SetForwardEntryId(v string) *CreateForwardEntryResponseBody { s.ForwardEntryId = &v return s } func (s *CreateForwardEntryResponseBody) SetRequestId(v string) *CreateForwardEntryResponseBody { s.RequestId = &v return s } type CreateForwardEntryResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateForwardEntryResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateForwardEntryResponse) String() string { return tea.Prettify(s) } func (s CreateForwardEntryResponse) GoString() string { return s.String() } func (s *CreateForwardEntryResponse) SetHeaders(v map[string]*string) *CreateForwardEntryResponse { s.Headers = v return s } func (s *CreateForwardEntryResponse) SetStatusCode(v int32) *CreateForwardEntryResponse { s.StatusCode = &v return s } func (s *CreateForwardEntryResponse) SetBody(v *CreateForwardEntryResponseBody) *CreateForwardEntryResponse { s.Body = v return s } type CreateHaVipRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s CreateHaVipRequest) String() string { return tea.Prettify(s) } func (s CreateHaVipRequest) GoString() string { return s.String() } func (s *CreateHaVipRequest) SetClientToken(v string) *CreateHaVipRequest { s.ClientToken = &v return s } func (s *CreateHaVipRequest) SetDescription(v string) *CreateHaVipRequest { s.Description = &v return s } func (s *CreateHaVipRequest) SetIpAddress(v string) *CreateHaVipRequest { s.IpAddress = &v return s } func (s *CreateHaVipRequest) SetOwnerAccount(v string) *CreateHaVipRequest { s.OwnerAccount = &v return s } func (s *CreateHaVipRequest) SetOwnerId(v int64) *CreateHaVipRequest { s.OwnerId = &v return s } func (s *CreateHaVipRequest) SetRegionId(v string) *CreateHaVipRequest { s.RegionId = &v return s } func (s *CreateHaVipRequest) SetResourceOwnerAccount(v string) *CreateHaVipRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateHaVipRequest) SetResourceOwnerId(v int64) *CreateHaVipRequest { s.ResourceOwnerId = &v return s } func (s *CreateHaVipRequest) SetVSwitchId(v string) *CreateHaVipRequest { s.VSwitchId = &v return s } type CreateHaVipResponseBody struct { HaVipId *string `json:"HaVipId,omitempty" xml:"HaVipId,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateHaVipResponseBody) String() string { return tea.Prettify(s) } func (s CreateHaVipResponseBody) GoString() string { return s.String() } func (s *CreateHaVipResponseBody) SetHaVipId(v string) *CreateHaVipResponseBody { s.HaVipId = &v return s } func (s *CreateHaVipResponseBody) SetRequestId(v string) *CreateHaVipResponseBody { s.RequestId = &v return s } type CreateHaVipResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateHaVipResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateHaVipResponse) String() string { return tea.Prettify(s) } func (s CreateHaVipResponse) GoString() string { return s.String() } func (s *CreateHaVipResponse) SetHeaders(v map[string]*string) *CreateHaVipResponse { s.Headers = v return s } func (s *CreateHaVipResponse) SetStatusCode(v int32) *CreateHaVipResponse { s.StatusCode = &v return s } func (s *CreateHaVipResponse) SetBody(v *CreateHaVipResponseBody) *CreateHaVipResponse { s.Body = v return s } type CreateHpcClusterRequest struct { // The client token that is used to ensure the idempotence of the request. You can use the client to generate a client token. Make sure that a unique client token is used for each request. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the HPC cluster. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The name of the HPC cluster. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (\_), and hyphens (-). The name must start with a letter but cannot start with `http://` or `https://`. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // RAM用户的账号登录名称。 OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` // RAM用户的虚拟账号ID。 OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the HPC cluster. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // 资源主账号的账号名称。 ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` // 资源主账号的ID,亦即UID。 ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s CreateHpcClusterRequest) String() string { return tea.Prettify(s) } func (s CreateHpcClusterRequest) GoString() string { return s.String() } func (s *CreateHpcClusterRequest) SetClientToken(v string) *CreateHpcClusterRequest { s.ClientToken = &v return s } func (s *CreateHpcClusterRequest) SetDescription(v string) *CreateHpcClusterRequest { s.Description = &v return s } func (s *CreateHpcClusterRequest) SetName(v string) *CreateHpcClusterRequest { s.Name = &v return s } func (s *CreateHpcClusterRequest) SetOwnerAccount(v string) *CreateHpcClusterRequest { s.OwnerAccount = &v return s } func (s *CreateHpcClusterRequest) SetOwnerId(v int64) *CreateHpcClusterRequest { s.OwnerId = &v return s } func (s *CreateHpcClusterRequest) SetRegionId(v string) *CreateHpcClusterRequest { s.RegionId = &v return s } func (s *CreateHpcClusterRequest) SetResourceOwnerAccount(v string) *CreateHpcClusterRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateHpcClusterRequest) SetResourceOwnerId(v int64) *CreateHpcClusterRequest { s.ResourceOwnerId = &v return s } type CreateHpcClusterResponseBody struct { // The ID of cluster. HpcClusterId *string `json:"HpcClusterId,omitempty" xml:"HpcClusterId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateHpcClusterResponseBody) String() string { return tea.Prettify(s) } func (s CreateHpcClusterResponseBody) GoString() string { return s.String() } func (s *CreateHpcClusterResponseBody) SetHpcClusterId(v string) *CreateHpcClusterResponseBody { s.HpcClusterId = &v return s } func (s *CreateHpcClusterResponseBody) SetRequestId(v string) *CreateHpcClusterResponseBody { s.RequestId = &v return s } type CreateHpcClusterResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateHpcClusterResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateHpcClusterResponse) String() string { return tea.Prettify(s) } func (s CreateHpcClusterResponse) GoString() string { return s.String() } func (s *CreateHpcClusterResponse) SetHeaders(v map[string]*string) *CreateHpcClusterResponse { s.Headers = v return s } func (s *CreateHpcClusterResponse) SetStatusCode(v int32) *CreateHpcClusterResponse { s.StatusCode = &v return s } func (s *CreateHpcClusterResponse) SetBody(v *CreateHpcClusterResponseBody) *CreateHpcClusterResponse { s.Body = v return s } type CreateImageRequest struct { // The system architecture of the system disk. If you specify a data disk snapshot to create the system disk of the custom image, you must use Architecture to specify the system architecture of the system disk. Valid values: // // * i386 // * x86\_64 // * arm64 // // Default value: x86\_64. Architecture *string `json:"Architecture,omitempty" xml:"Architecture,omitempty"` // The boot mode of the image. Valid values: // // * BIOS // * UEFI // // > You must be familiar with the boot modes supported by the specified image. When you use this parameter to change the boot mode of the image, specify a boot mode supported by the image to ensure that instances that use this image can be started as expected. BootMode *string `json:"BootMode,omitempty" xml:"BootMode,omitempty"` // 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 value of **ClientToken** can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The image description. The description must be 2 to 256 characters in length and cannot start with [http:// or https://.](http://https://。) Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The mode that you want to use to check the source image. If you do not specify this parameter, the source image is not checked. Only Linux images can be checked. Set the value to Standard, which indicates standard check mode. // // The following items are checked in standard check mode: // // * Virtio: whether the virtio driver is installed. // * Fstab: whether mounting configurations in the fstab file are correct. // * Grub: whether GRand Unified Bootloader (GRUB) configurations are correct. // * SystemImage: whether the image is valid. Do not import images that are in the ISO format or empty. // * CloudInit: whether cloud-init is installed. // * NVMe: whether the Non-Volatile Memory Express (NVMe) driver is installed. // * Selinux: whether SElinux is enabled. // * OnlineResizeFS: whether the root partition can be automatically resized. // * Dhcp: whether Dynamic Host Configuration Protocol (DHCP) is enabled for network interface controllers (NICs). // * RtcTimeMode: the RTC time mode. // * Platform: the platform. Examples: Linux and Windows. // * OSVersion: the operating system version. Example: Centos 7.9. // * Architecture: the architecture. Examples: ARM and x86\_64. // * BootMode: the boot mode. Examples: UEFI and Legacy. // * KernelVersion: the kernel version. // * CloudAssistant: whether the Cloud Assistant client is installed. // * SecurityCenterAgent: whether the Security Center agent is installed. DetectionStrategy *string `json:"DetectionStrategy,omitempty" xml:"DetectionStrategy,omitempty"` // The custom images. DiskDeviceMapping []*CreateImageRequestDiskDeviceMapping `json:"DiskDeviceMapping,omitempty" xml:"DiskDeviceMapping,omitempty" type:"Repeated"` // The name of the image family. The name must be 2 to 128 characters in length and can contain digits, colons (:), underscores (\_), and hyphens (-). The name must start with a letter and cannot start with acs: or aliyun. It cannot contain [http:// or https://.](http://https://。、(:)、(\_)(-)。) ImageFamily *string `json:"ImageFamily,omitempty" xml:"ImageFamily,omitempty"` // The image name. The name must be 2 to 128 characters in length and can contain digits, colons (:), underscores (\_), and hyphens (-). The name must start with a letter but cannot start with [http:// or https://.](http://https://。、(:)、(\_)(-)。) ImageName *string `json:"ImageName,omitempty" xml:"ImageName,omitempty"` // The image version. // // > If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance. ImageVersion *string `json:"ImageVersion,omitempty" xml:"ImageVersion,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The distribution of the operating system for the system disk in the custom image. If you specify a data disk snapshot to create the system disk of the custom image, you must use Platform to specify the distribution of the operating system for the system disk. Valid values: // // * CentOS // * Ubuntu // * SUSE // * OpenSUSE // * RedHat // * Debian // * CoreOS // * Aliyun // * Windows Server 2012 // * Windows 7 // * Customized Linux // * Others Linux // // Default value: Others Linux. Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The region ID of the custom image that you want to create. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which you want to assign the custom image. If you leave this parameter empty, the image is assigned to the default resource group. // // > If you call the CreateImage operation as a RAM user who is not authorized to manage the default resource group and leave `ResourceGroupId` empty, the `Forbidden: User not authorized to operate on the specified resource` error message is returned. Before you call the CreateImage operation again, you must specify the ID of a resource group that the RAM user is authorized to manage or authorize the RAM user to manage the default resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the snapshot that is used to create the custom image. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The tags. Tag []*CreateImageRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CreateImageRequest) String() string { return tea.Prettify(s) } func (s CreateImageRequest) GoString() string { return s.String() } func (s *CreateImageRequest) SetArchitecture(v string) *CreateImageRequest { s.Architecture = &v return s } func (s *CreateImageRequest) SetBootMode(v string) *CreateImageRequest { s.BootMode = &v return s } func (s *CreateImageRequest) SetClientToken(v string) *CreateImageRequest { s.ClientToken = &v return s } func (s *CreateImageRequest) SetDescription(v string) *CreateImageRequest { s.Description = &v return s } func (s *CreateImageRequest) SetDetectionStrategy(v string) *CreateImageRequest { s.DetectionStrategy = &v return s } func (s *CreateImageRequest) SetDiskDeviceMapping(v []*CreateImageRequestDiskDeviceMapping) *CreateImageRequest { s.DiskDeviceMapping = v return s } func (s *CreateImageRequest) SetImageFamily(v string) *CreateImageRequest { s.ImageFamily = &v return s } func (s *CreateImageRequest) SetImageName(v string) *CreateImageRequest { s.ImageName = &v return s } func (s *CreateImageRequest) SetImageVersion(v string) *CreateImageRequest { s.ImageVersion = &v return s } func (s *CreateImageRequest) SetInstanceId(v string) *CreateImageRequest { s.InstanceId = &v return s } func (s *CreateImageRequest) SetOwnerAccount(v string) *CreateImageRequest { s.OwnerAccount = &v return s } func (s *CreateImageRequest) SetOwnerId(v int64) *CreateImageRequest { s.OwnerId = &v return s } func (s *CreateImageRequest) SetPlatform(v string) *CreateImageRequest { s.Platform = &v return s } func (s *CreateImageRequest) SetRegionId(v string) *CreateImageRequest { s.RegionId = &v return s } func (s *CreateImageRequest) SetResourceGroupId(v string) *CreateImageRequest { s.ResourceGroupId = &v return s } func (s *CreateImageRequest) SetResourceOwnerAccount(v string) *CreateImageRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateImageRequest) SetResourceOwnerId(v int64) *CreateImageRequest { s.ResourceOwnerId = &v return s } func (s *CreateImageRequest) SetSnapshotId(v string) *CreateImageRequest { s.SnapshotId = &v return s } func (s *CreateImageRequest) SetTag(v []*CreateImageRequestTag) *CreateImageRequest { s.Tag = v return s } type CreateImageRequestDiskDeviceMapping struct { // The device name of disk N in the custom image. Valid values: // // * For disks other than basic disks, such as standard SSDs, ultra disks, and enhanced SSDs (ESSDs), the valid values range from /dev/vda to /dev/vdz in ascending alphabetical order. // * For basic disks, the valid values are in alphabetical order from /dev/xvda to /dev/xvdz. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The type of disk N in the custom image. You can specify this parameter to create the system disk of the custom image from a data disk snapshot. If you do not specify this parameter, the disk type is determined by the corresponding snapshot. Valid values: // // * system: system disk // * data: data disk DiskType *string `json:"DiskType,omitempty" xml:"DiskType,omitempty"` // The size of disk N in the custom image. Unit: GiB. The valid values and default value of DiskDeviceMapping.N.Size depend on the value of DiskDeviceMapping.N.SnapshotId. // // * If no corresponding snapshot IDs are specified in the DiskDeviceMapping.N.SnapshotId value, the following valid values and default values are available for DiskDeviceMapping.N.Size: // // * For basic disks, the valid values are 5 to 2000, and the default value is 5. // * For other types of disk, the valid values are 20 to 32768, and the default value is 20. // // * If a corresponding snapshot ID is specified in the DiskDeviceMapping.N.SnapshotId value, the value of DiskDeviceMapping.N.Size must be greater than or equal to the size of the specified snapshot. The default value of DiskDeviceMapping.N.Size is the size of the specified snapshot. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot that is used to create the custom image. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s CreateImageRequestDiskDeviceMapping) String() string { return tea.Prettify(s) } func (s CreateImageRequestDiskDeviceMapping) GoString() string { return s.String() } func (s *CreateImageRequestDiskDeviceMapping) SetDevice(v string) *CreateImageRequestDiskDeviceMapping { s.Device = &v return s } func (s *CreateImageRequestDiskDeviceMapping) SetDiskType(v string) *CreateImageRequestDiskDeviceMapping { s.DiskType = &v return s } func (s *CreateImageRequestDiskDeviceMapping) SetSize(v int32) *CreateImageRequestDiskDeviceMapping { s.Size = &v return s } func (s *CreateImageRequestDiskDeviceMapping) SetSnapshotId(v string) *CreateImageRequestDiskDeviceMapping { s.SnapshotId = &v return s } type CreateImageRequestTag struct { // The key of tag N of the custom image. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with `aliyun` or `acs:`. The tag key cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the custom image. 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 start with `acs:`. The tag value cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateImageRequestTag) String() string { return tea.Prettify(s) } func (s CreateImageRequestTag) GoString() string { return s.String() } func (s *CreateImageRequestTag) SetKey(v string) *CreateImageRequestTag { s.Key = &v return s } func (s *CreateImageRequestTag) SetValue(v string) *CreateImageRequestTag { s.Value = &v return s } type CreateImageResponseBody struct { // The image ID. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateImageResponseBody) String() string { return tea.Prettify(s) } func (s CreateImageResponseBody) GoString() string { return s.String() } func (s *CreateImageResponseBody) SetImageId(v string) *CreateImageResponseBody { s.ImageId = &v return s } func (s *CreateImageResponseBody) SetRequestId(v string) *CreateImageResponseBody { s.RequestId = &v return s } type CreateImageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateImageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateImageResponse) String() string { return tea.Prettify(s) } func (s CreateImageResponse) GoString() string { return s.String() } func (s *CreateImageResponse) SetHeaders(v map[string]*string) *CreateImageResponse { s.Headers = v return s } func (s *CreateImageResponse) SetStatusCode(v int32) *CreateImageResponse { s.StatusCode = &v return s } func (s *CreateImageResponse) SetBody(v *CreateImageResponseBody) *CreateImageResponse { s.Body = v return s } type CreateImageComponentRequest struct { // The client token that is used to ensure the idempotency 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The type of the image component. Only image build components are supported. Set the value to Build. // // Default value: Build. ComponentType *string `json:"ComponentType,omitempty" xml:"ComponentType,omitempty"` // The content of the image component. The content consists of up to 127 commands. Content *string `json:"Content,omitempty" xml:"Content,omitempty"` // The description. The description must be 2 to 256 characters in length and cannot start with [http:// or https://](http://https://。). Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The component name. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with http:// or https://.[ ](http://https://。、、、(:)、(\_)、(.)(-)。)The name can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-). // // > If you do not configure `Name`, the return value of `ImageComponentId` is used. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The operating system type supported by the image component. Only Linux is supported. Set the value to Linux. // // Default value: Linux. SystemType *string `json:"SystemType,omitempty" xml:"SystemType,omitempty"` // The tags. Tag []*CreateImageComponentRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CreateImageComponentRequest) String() string { return tea.Prettify(s) } func (s CreateImageComponentRequest) GoString() string { return s.String() } func (s *CreateImageComponentRequest) SetClientToken(v string) *CreateImageComponentRequest { s.ClientToken = &v return s } func (s *CreateImageComponentRequest) SetComponentType(v string) *CreateImageComponentRequest { s.ComponentType = &v return s } func (s *CreateImageComponentRequest) SetContent(v string) *CreateImageComponentRequest { s.Content = &v return s } func (s *CreateImageComponentRequest) SetDescription(v string) *CreateImageComponentRequest { s.Description = &v return s } func (s *CreateImageComponentRequest) SetName(v string) *CreateImageComponentRequest { s.Name = &v return s } func (s *CreateImageComponentRequest) SetOwnerAccount(v string) *CreateImageComponentRequest { s.OwnerAccount = &v return s } func (s *CreateImageComponentRequest) SetOwnerId(v int64) *CreateImageComponentRequest { s.OwnerId = &v return s } func (s *CreateImageComponentRequest) SetRegionId(v string) *CreateImageComponentRequest { s.RegionId = &v return s } func (s *CreateImageComponentRequest) SetResourceGroupId(v string) *CreateImageComponentRequest { s.ResourceGroupId = &v return s } func (s *CreateImageComponentRequest) SetResourceOwnerAccount(v string) *CreateImageComponentRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateImageComponentRequest) SetResourceOwnerId(v int64) *CreateImageComponentRequest { s.ResourceOwnerId = &v return s } func (s *CreateImageComponentRequest) SetSystemType(v string) *CreateImageComponentRequest { s.SystemType = &v return s } func (s *CreateImageComponentRequest) SetTag(v []*CreateImageComponentRequestTag) *CreateImageComponentRequest { s.Tag = v return s } type CreateImageComponentRequestTag struct { // The key of tag N. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain [http:// or https://](http://https://。). The tag key cannot start with acs: or aliyun. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N. 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://](http://https://。). The tag value cannot start with acs:. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateImageComponentRequestTag) String() string { return tea.Prettify(s) } func (s CreateImageComponentRequestTag) GoString() string { return s.String() } func (s *CreateImageComponentRequestTag) SetKey(v string) *CreateImageComponentRequestTag { s.Key = &v return s } func (s *CreateImageComponentRequestTag) SetValue(v string) *CreateImageComponentRequestTag { s.Value = &v return s } type CreateImageComponentResponseBody struct { // The ID of the image component. ImageComponentId *string `json:"ImageComponentId,omitempty" xml:"ImageComponentId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateImageComponentResponseBody) String() string { return tea.Prettify(s) } func (s CreateImageComponentResponseBody) GoString() string { return s.String() } func (s *CreateImageComponentResponseBody) SetImageComponentId(v string) *CreateImageComponentResponseBody { s.ImageComponentId = &v return s } func (s *CreateImageComponentResponseBody) SetRequestId(v string) *CreateImageComponentResponseBody { s.RequestId = &v return s } type CreateImageComponentResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateImageComponentResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateImageComponentResponse) String() string { return tea.Prettify(s) } func (s CreateImageComponentResponse) GoString() string { return s.String() } func (s *CreateImageComponentResponse) SetHeaders(v map[string]*string) *CreateImageComponentResponse { s.Headers = v return s } func (s *CreateImageComponentResponse) SetStatusCode(v int32) *CreateImageComponentResponse { s.StatusCode = &v return s } func (s *CreateImageComponentResponse) SetBody(v *CreateImageComponentResponseBody) *CreateImageComponentResponse { s.Body = v return s } type CreateImagePipelineRequest struct { // The IDs of Alibaba Cloud accounts to which to share the image that will be created based on the image template. You can specify up to 20 account IDs. AddAccount []*int64 `json:"AddAccount,omitempty" xml:"AddAccount,omitempty" type:"Repeated"` // The source image. // // * If you set `BaseImageType` to IMAGE, set the BaseImage parameter to the ID of a custom image. // * If you set `BaseImageType` to IMAGE_FAMILY, set the BaseImage parameter to the name of an image family. BaseImage *string `json:"BaseImage,omitempty" xml:"BaseImage,omitempty"` // The type of the source image. Valid values: // // * IMAGE: image // * IMAGE_FAMILY: image family BaseImageType *string `json:"BaseImageType,omitempty" xml:"BaseImageType,omitempty"` // The content of the image template. The content cannot exceed 16 KB in size and can contain up to 127 commands. For more information about the commands that are supported, see the "Usage notes" section of this topic. BuildContent *string `json:"BuildContent,omitempty" xml:"BuildContent,omitempty"` // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // Specifies whether to release the intermediate instance when the image cannot be created. Valid values: // // * true // * false // // Default value: true. // // > If the intermediate instance cannot be started, the instance is released by default. DeleteInstanceOnFailure *bool `json:"DeleteInstanceOnFailure,omitempty" xml:"DeleteInstanceOnFailure,omitempty"` // The description of the image template. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The prefix of the image name. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-). // // The system generates the final complete image name that consists of the specified prefix and the ID of the build task (`ExecutionId`) in the format of `{ImageName}_{ExecutionId}`. ImageName *string `json:"ImageName,omitempty" xml:"ImageName,omitempty"` // The instance type. You can call the [DescribeInstanceTypes](~~25620~~) to query instance types. // // If you do not configure this parameter, an instance type that provides the fewest vCPUs and memory resources is automatically selected. This configuration is subject to resource availability of instance types. For example, the ecs.g6.large instance type is automatically selected. If available ecs.g6.large resources are insufficient, the ecs.g6.xlarge instance type is selected. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. Valid values: 0 to 100. // // Default value: 0. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // The name of the image template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-). // // > If you do not specify the `Name` parameter, the return value of `ImagePipelineId` is used. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The system disk size of the intermediate instance. Unit: GiB. Valid values: 20 to 500. // // Default value: 40. SystemDiskSize *int32 `json:"SystemDiskSize,omitempty" xml:"SystemDiskSize,omitempty"` // The tags to add to the template. Tag []*CreateImagePipelineRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The IDs of regions to which you want to distribute the image that is created based on the image template. You can specify up to 20 region IDs. // // If you do not specify this parameter, the image is created only in the current region. ToRegionId []*string `json:"ToRegionId,omitempty" xml:"ToRegionId,omitempty" type:"Repeated"` // The ID of the vSwitch. // // If you do not specify this parameter, a new VPC and vSwitch are created. Make sure that the VPC quota in your account is sufficient. For more information, see [Limits and quotas](~~27750~~). VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s CreateImagePipelineRequest) String() string { return tea.Prettify(s) } func (s CreateImagePipelineRequest) GoString() string { return s.String() } func (s *CreateImagePipelineRequest) SetAddAccount(v []*int64) *CreateImagePipelineRequest { s.AddAccount = v return s } func (s *CreateImagePipelineRequest) SetBaseImage(v string) *CreateImagePipelineRequest { s.BaseImage = &v return s } func (s *CreateImagePipelineRequest) SetBaseImageType(v string) *CreateImagePipelineRequest { s.BaseImageType = &v return s } func (s *CreateImagePipelineRequest) SetBuildContent(v string) *CreateImagePipelineRequest { s.BuildContent = &v return s } func (s *CreateImagePipelineRequest) SetClientToken(v string) *CreateImagePipelineRequest { s.ClientToken = &v return s } func (s *CreateImagePipelineRequest) SetDeleteInstanceOnFailure(v bool) *CreateImagePipelineRequest { s.DeleteInstanceOnFailure = &v return s } func (s *CreateImagePipelineRequest) SetDescription(v string) *CreateImagePipelineRequest { s.Description = &v return s } func (s *CreateImagePipelineRequest) SetImageName(v string) *CreateImagePipelineRequest { s.ImageName = &v return s } func (s *CreateImagePipelineRequest) SetInstanceType(v string) *CreateImagePipelineRequest { s.InstanceType = &v return s } func (s *CreateImagePipelineRequest) SetInternetMaxBandwidthOut(v int32) *CreateImagePipelineRequest { s.InternetMaxBandwidthOut = &v return s } func (s *CreateImagePipelineRequest) SetName(v string) *CreateImagePipelineRequest { s.Name = &v return s } func (s *CreateImagePipelineRequest) SetOwnerAccount(v string) *CreateImagePipelineRequest { s.OwnerAccount = &v return s } func (s *CreateImagePipelineRequest) SetOwnerId(v int64) *CreateImagePipelineRequest { s.OwnerId = &v return s } func (s *CreateImagePipelineRequest) SetRegionId(v string) *CreateImagePipelineRequest { s.RegionId = &v return s } func (s *CreateImagePipelineRequest) SetResourceGroupId(v string) *CreateImagePipelineRequest { s.ResourceGroupId = &v return s } func (s *CreateImagePipelineRequest) SetResourceOwnerAccount(v string) *CreateImagePipelineRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateImagePipelineRequest) SetResourceOwnerId(v int64) *CreateImagePipelineRequest { s.ResourceOwnerId = &v return s } func (s *CreateImagePipelineRequest) SetSystemDiskSize(v int32) *CreateImagePipelineRequest { s.SystemDiskSize = &v return s } func (s *CreateImagePipelineRequest) SetTag(v []*CreateImagePipelineRequestTag) *CreateImagePipelineRequest { s.Tag = v return s } func (s *CreateImagePipelineRequest) SetToRegionId(v []*string) *CreateImagePipelineRequest { s.ToRegionId = v return s } func (s *CreateImagePipelineRequest) SetVSwitchId(v string) *CreateImagePipelineRequest { s.VSwitchId = &v return s } type CreateImagePipelineRequestTag struct { // The key of tag N. Valid values of N: 1 to 20. You cannot specify empty strings as tag keys. The tag key must be 1 to 128 characters in length and cannot contain `http://` or `https://`. It cannot start with `acs:` or `aliyun`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value must be 0 to 128 characters in length. It cannot start with `acs:` or contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateImagePipelineRequestTag) String() string { return tea.Prettify(s) } func (s CreateImagePipelineRequestTag) GoString() string { return s.String() } func (s *CreateImagePipelineRequestTag) SetKey(v string) *CreateImagePipelineRequestTag { s.Key = &v return s } func (s *CreateImagePipelineRequestTag) SetValue(v string) *CreateImagePipelineRequestTag { s.Value = &v return s } type CreateImagePipelineResponseBody struct { // The ID of the image template. ImagePipelineId *string `json:"ImagePipelineId,omitempty" xml:"ImagePipelineId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateImagePipelineResponseBody) String() string { return tea.Prettify(s) } func (s CreateImagePipelineResponseBody) GoString() string { return s.String() } func (s *CreateImagePipelineResponseBody) SetImagePipelineId(v string) *CreateImagePipelineResponseBody { s.ImagePipelineId = &v return s } func (s *CreateImagePipelineResponseBody) SetRequestId(v string) *CreateImagePipelineResponseBody { s.RequestId = &v return s } type CreateImagePipelineResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateImagePipelineResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateImagePipelineResponse) String() string { return tea.Prettify(s) } func (s CreateImagePipelineResponse) GoString() string { return s.String() } func (s *CreateImagePipelineResponse) SetHeaders(v map[string]*string) *CreateImagePipelineResponse { s.Headers = v return s } func (s *CreateImagePipelineResponse) SetStatusCode(v int32) *CreateImagePipelineResponse { s.StatusCode = &v return s } func (s *CreateImagePipelineResponse) SetBody(v *CreateImagePipelineResponseBody) *CreateImagePipelineResponse { s.Body = v return s } type CreateInstanceRequest struct { HibernationOptions *CreateInstanceRequestHibernationOptions `json:"HibernationOptions,omitempty" xml:"HibernationOptions,omitempty" type:"Struct"` PrivatePoolOptions *CreateInstanceRequestPrivatePoolOptions `json:"PrivatePoolOptions,omitempty" xml:"PrivatePoolOptions,omitempty" type:"Struct"` SystemDisk *CreateInstanceRequestSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // Specifies whether to associate the instance on a dedicated host with the dedicated host. Valid values: // // * default: does not associate the instance with the dedicated host. When you start an instance that was stopped in economical mode, the instance is automatically deployed to another dedicated host in the automatic deployment resource pool if the available resources of the original dedicated host are insufficient. // * host: associates the instance with the dedicated host. When you start an instance that was stopped in economical mode, the instance remains on the original dedicated host. If the available resources of the original dedicated host are insufficient, the instance cannot start. // // Default value: default. Affinity *string `json:"Affinity,omitempty" xml:"Affinity,omitempty"` // > This parameter is in invitational preview and is not publicly available. Arn []*CreateInstanceRequestArn `json:"Arn,omitempty" xml:"Arn,omitempty" type:"Repeated"` // Specifies whether to enable auto-renewal for the instance. This parameter is valid only if `InstanceChargeType` is set to `PrePaid`. Valid values: // // * true: enables auto-renewal. // * false: does not enable auto-renewal. AutoRenew *bool `json:"AutoRenew,omitempty" xml:"AutoRenew,omitempty"` // The auto-renewal period of the instance. This parameter is required if AutoRenew is set to true. // // Valid values if PeriodUnit is set to Month: 1, 2, 3, 6, and 12. AutoRenewPeriod *int32 `json:"AutoRenewPeriod,omitempty" xml:"AutoRenewPeriod,omitempty"` // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The ID of the cluster in which to create the instance. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. ClusterId *string `json:"ClusterId,omitempty" xml:"ClusterId,omitempty"` // The performance mode of the burstable instance. Valid values: // // * Standard: standard mode. For more information, see the "Standard mode" section in the [Overview of burstable instances](~~59977~~) topic. // * Unlimited: unlimited mode. For more information, see the "Unlimited mode" section in the [Burstable instances](~~59977~~) topic. CreditSpecification *string `json:"CreditSpecification,omitempty" xml:"CreditSpecification,omitempty"` // The data disks. DataDisk []*CreateInstanceRequestDataDisk `json:"DataDisk,omitempty" xml:"DataDisk,omitempty" type:"Repeated"` // The ID of the dedicated host on which to create the instance. // // You can call the [DescribeDedicatedHosts](~~134242~~) operation to query the list of dedicated host IDs // // If you specify `DedicatedHostId`, the `SpotStrategy` and `SpotPriceLimit` parameters are ignored. This is because preemptible instances cannot be created on dedicated hosts. DedicatedHostId *string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty"` // Specifies whether to enable release protection for the instance. This parameter indicates whether you can use the ECS console or call the [DeleteInstance](~~25507~~) operation to release the instance. // // * true: enables release protection. // * false (default): disables release protection. // // > This parameter is applicable only to pay-as-you-go instances. It can protect instances against manual releases, but not against automatic releases. DeletionProtection *bool `json:"DeletionProtection,omitempty" xml:"DeletionProtection,omitempty"` // The number of the deployment set group to which to deploy the instance. If the deployment set specified by the DeploymentSetId parameter uses the high availability group strategy (AvailabilityGroup), you can use the DeploymentSetGroupNo parameter to specify a deployment set group in the deployment set. Valid values: 1 to 7. DeploymentSetGroupNo *int32 `json:"DeploymentSetGroupNo,omitempty" xml:"DeploymentSetGroupNo,omitempty"` // The ID of the deployment set to which to deploy the instance. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` // The description of the instance. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Specifies whether to perform only a dry run, without performing the actual request. Valid values: // // * true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, service limits, and unavailable ECS resources. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. // * false (default): performs a dry run and performs the actual request. If the request passes the dry run, the operation is performed. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // The hostname of the instance. // // * The hostname cannot start or end with a period (.) or hyphen (-). It cannot contain consecutive periods (.) or hyphens (-). // * For a Windows instance, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. It can contain letters, digits, and hyphens (-). // * For an instance that runs another type of operating system such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate the hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-). HostName *string `json:"HostName,omitempty" xml:"HostName,omitempty"` // The ID of the high performance computing (HPC) cluster to which to assign the instance. HpcClusterId *string `json:"HpcClusterId,omitempty" xml:"HpcClusterId,omitempty"` // Specifies whether to enable the access channel for instance metadata. Valid values: // // * enabled // * disabled // // Default value: enabled. // // > For more information about instance metadata, see [Overview of instance metadata](~~49122~~). HttpEndpoint *string `json:"HttpEndpoint,omitempty" xml:"HttpEndpoint,omitempty"` // > This parameter is in invitational preview and is not publicly available. HttpPutResponseHopLimit *int32 `json:"HttpPutResponseHopLimit,omitempty" xml:"HttpPutResponseHopLimit,omitempty"` // Specifies whether to forcibly use the security hardening mode (IMDSv2) to access instance metadata. Valid values: // // * optional: does not forcefully use the security hardening mode (IMDSv2). // * required: forcefully uses the security hardening mode (IMDSv2). After you set this parameter to required, you cannot access instance metadata in normal mode. // // Default value: optional. // // > For more information about the modes of accessing instance metadata, see [Access mode of instance metadata](~~150575~~). HttpTokens *string `json:"HttpTokens,omitempty" xml:"HttpTokens,omitempty"` // The name of the image family. You can set this parameter to obtain the latest available custom image from the specified image family to create the instance. // // * ImageFamily must be empty if `ImageId` is specified. // * ImageFamily can be specified if `ImageId` is not specified. ImageFamily *string `json:"ImageFamily,omitempty" xml:"ImageFamily,omitempty"` // The ID of the image to use to create the instance. To use an Alibaba Cloud Marketplace image, you can view the `image ID` on the product page of the Alibaba Cloud Marketplace image. This parameter is required if you do not specify `ImageFamily` to obtain the latest available custom image from the specified image family. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The internal IP address to assign to the instance. InnerIpAddress *string `json:"InnerIpAddress,omitempty" xml:"InnerIpAddress,omitempty"` // The billing method of the instance. Valid values: // // * PrePaid: subscription. If you set this parameter to PrePaid, make sure that you have sufficient balance or credit in your account. Otherwise, an `InvalidPayMethod` error is returned. // * PostPaid (default): pay-as-you-go. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The name of the instance. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-). If you do not specify this parameter, the instance ID is used as the instance name by default. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The instance type. // // * Instance type selection: See [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the performance data of instance types, or see [Best practices for instance type selection](~~58291~~) to learn about how to select instance types. // * Query of available resources: Call the [DescribeAvailableResource](~~66186~~) operation to query resources available in a specific region or zone. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The billing method for network usage. Default value: PayByTraffic. Valid values: // // * PayByBandwidth: pay-by-bandwidth // * PayByTraffic (default): pay-by-traffic // // > When the **pay-by-traffic** billing method is used for network usage, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may be limited. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum inbound public bandwidth. Unit: Mbit/s. Valid values: // // * When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 1 to 10 and the default value is 10. // * When the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter are 1 to the `InternetMaxBandwidthOut` value and the default value is the `InternetMaxBandwidthOut` value. InternetMaxBandwidthIn *int32 `json:"InternetMaxBandwidthIn,omitempty" xml:"InternetMaxBandwidthIn,omitempty"` // The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. // // Default value: 0. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Specifies whether the instance is I/O optimized. Valid values: // // * none: The instance is not I/O optimized. // * optimized: The ECS instance is I/O optimized. // // For retired instance types, the default value is none. For more information, see [Retired instance types](~~55263~~). // // For other instance types, the default value is optimized. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The name of the key pair. // // > For Windows instances, this parameter is ignored. This parameter is empty by default. The `Password` parameter takes effect even if the KeyPairName parameter is specified. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // > This parameter is in invitational preview and is not publicly available. NodeControllerId *string `json:"NodeControllerId,omitempty" xml:"NodeControllerId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The password of the instance. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported: // // ( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; \" < > , . ? / // // Take note of the following items: // // * For security reasons, we recommend that you use HTTPS to send requests if the Password parameter is specified. // * Passwords of Windows instances cannot start with a forward slash (/). // * Passwords cannot be set for instances that run specific types of operating systems such as Others Linux and Fedora CoreOS. For these instances, only key pairs can be set. Password *string `json:"Password,omitempty" xml:"Password,omitempty"` // Specifies whether to use the password preset in the image. When you use this parameter, leave the Password parameter empty and make sure that the selected image has a password preset. PasswordInherit *bool `json:"PasswordInherit,omitempty" xml:"PasswordInherit,omitempty"` // The subscription period of the instance. The unit is specified by `PeriodUnit`. This parameter is valid and required only when `InstanceChargeType` is set to `PrePaid`. If `DedicatedHostId` is specified, the value of Period must not exceed the subscription period of the specified dedicated host. Valid values: // // Valid values if PeriodUnit is set to Month: 1, 2, 3, 6, and 12. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The unit of the subscription period. Valid values: // // Month // // Default value: Month. PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // The private IP address to assign to the instance. The private IP address must be an available IP address in the CIDR block of the specified vSwitch. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // The name of the instance Resource Access Management (RAM) role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The ID of the region in which to create the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the instance. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether to enable security hardening. Valid values: // // * Active: enables security hardening. This value applies only to public images. // * Deactive: disables security hardening. This value is applicable to all images. SecurityEnhancementStrategy *string `json:"SecurityEnhancementStrategy,omitempty" xml:"SecurityEnhancementStrategy,omitempty"` // The ID of the security group to which to assign the instance. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values: // // * 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance. // * 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released. Preemptible instances are billed by second. We recommend that you specify an appropriate protection period based on your business requirements. // // > This parameter takes effect only if the SpotStrategy parameter is set to SpotWithPriceLimit or SpotAsPriceGo. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The interruption mode of the preemptible instance. The value can only be Terminate, which specifies that the instance is released. SpotInterruptionBehavior *string `json:"SpotInterruptionBehavior,omitempty" xml:"SpotInterruptionBehavior,omitempty"` // The maximum hourly price of the instance. The value is accurate to three decimal places. This parameter is valid only when `SpotStrategy` is set to `SpotWithPriceLimit`. SpotPriceLimit *float32 `json:"SpotPriceLimit,omitempty" xml:"SpotPriceLimit,omitempty"` // The bidding policy for the pay-as-you-go instance. This parameter is valid only if you set `InstanceChargeType` to `PostPaid`. Valid values: // // * NoSpot (default): The instance is created as a regular pay-as-you-go instance. // * SpotWithPriceLimit: The instance is a preemptible instance for which you specify the maximum hourly price. // * SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is automatically used as the bid price. The market price can be up to the pay-as-you-go price. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The ID of the storage set. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` // The maximum number of partitions in the storage set. Valid values: greater than or equal to 2. StorageSetPartitionNumber *int32 `json:"StorageSetPartitionNumber,omitempty" xml:"StorageSetPartitionNumber,omitempty"` // The tags. Tag []*CreateInstanceRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // Specifies whether to create the instance on a dedicated host. Valid values: // // * default: creates the instance on a non-dedicated host. // * host: creates the instance on a dedicated host. If you do not specify `DedicatedHostId`, Alibaba Cloud selects a dedicated host for the instance. // // Default value: default. Tenancy *string `json:"Tenancy,omitempty" xml:"Tenancy,omitempty"` // Specifies whether to use the system configurations for virtual machines. Alibaba Cloud provides the Network Time Protocol (NTP) and Key Management Service (KMS) system configurations for Windows and the NTP and Yellowdog Updater, Modified (YUM) system configurations for Linux. UseAdditionalService *bool `json:"UseAdditionalService,omitempty" xml:"UseAdditionalService,omitempty"` // The user data of the instance. The user data must be encoded in Base64. The maximum size of raw data is 16 KB. UserData *string `json:"UserData,omitempty" xml:"UserData,omitempty"` // The ID of the vSwitch to which to connect the instance. This parameter is required when you create an instance in a VPC. You can call the [DescribeVSwitches](~~35748~~) operation to query available vSwitches. // // > If `VSwitchId` is specified, the zone specified by `ZoneId` must be the zone where the specified vSwitch resides. You can also leave `ZoneId` empty. Then, the system selects the zone where the specified vSwitch resides. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the virtual LAN (VLAN). VlanId *string `json:"VlanId,omitempty" xml:"VlanId,omitempty"` // The ID of the zone in which to create the instance. You can call the [DescribeZones](~~25610~~) operation to query the zones in a specific region. // // > If `VSwitchId` is specified, the zone specified by `ZoneId` must be the zone where the specified vSwitch resides. You can also leave `ZoneId` empty. Then, the system selects the zone where the specified vSwitch resides. // // This parameter is empty by default. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateInstanceRequest) String() string { return tea.Prettify(s) } func (s CreateInstanceRequest) GoString() string { return s.String() } func (s *CreateInstanceRequest) SetHibernationOptions(v *CreateInstanceRequestHibernationOptions) *CreateInstanceRequest { s.HibernationOptions = v return s } func (s *CreateInstanceRequest) SetPrivatePoolOptions(v *CreateInstanceRequestPrivatePoolOptions) *CreateInstanceRequest { s.PrivatePoolOptions = v return s } func (s *CreateInstanceRequest) SetSystemDisk(v *CreateInstanceRequestSystemDisk) *CreateInstanceRequest { s.SystemDisk = v return s } func (s *CreateInstanceRequest) SetAffinity(v string) *CreateInstanceRequest { s.Affinity = &v return s } func (s *CreateInstanceRequest) SetArn(v []*CreateInstanceRequestArn) *CreateInstanceRequest { s.Arn = v return s } func (s *CreateInstanceRequest) SetAutoRenew(v bool) *CreateInstanceRequest { s.AutoRenew = &v return s } func (s *CreateInstanceRequest) SetAutoRenewPeriod(v int32) *CreateInstanceRequest { s.AutoRenewPeriod = &v return s } func (s *CreateInstanceRequest) SetClientToken(v string) *CreateInstanceRequest { s.ClientToken = &v return s } func (s *CreateInstanceRequest) SetClusterId(v string) *CreateInstanceRequest { s.ClusterId = &v return s } func (s *CreateInstanceRequest) SetCreditSpecification(v string) *CreateInstanceRequest { s.CreditSpecification = &v return s } func (s *CreateInstanceRequest) SetDataDisk(v []*CreateInstanceRequestDataDisk) *CreateInstanceRequest { s.DataDisk = v return s } func (s *CreateInstanceRequest) SetDedicatedHostId(v string) *CreateInstanceRequest { s.DedicatedHostId = &v return s } func (s *CreateInstanceRequest) SetDeletionProtection(v bool) *CreateInstanceRequest { s.DeletionProtection = &v return s } func (s *CreateInstanceRequest) SetDeploymentSetGroupNo(v int32) *CreateInstanceRequest { s.DeploymentSetGroupNo = &v return s } func (s *CreateInstanceRequest) SetDeploymentSetId(v string) *CreateInstanceRequest { s.DeploymentSetId = &v return s } func (s *CreateInstanceRequest) SetDescription(v string) *CreateInstanceRequest { s.Description = &v return s } func (s *CreateInstanceRequest) SetDryRun(v bool) *CreateInstanceRequest { s.DryRun = &v return s } func (s *CreateInstanceRequest) SetHostName(v string) *CreateInstanceRequest { s.HostName = &v return s } func (s *CreateInstanceRequest) SetHpcClusterId(v string) *CreateInstanceRequest { s.HpcClusterId = &v return s } func (s *CreateInstanceRequest) SetHttpEndpoint(v string) *CreateInstanceRequest { s.HttpEndpoint = &v return s } func (s *CreateInstanceRequest) SetHttpPutResponseHopLimit(v int32) *CreateInstanceRequest { s.HttpPutResponseHopLimit = &v return s } func (s *CreateInstanceRequest) SetHttpTokens(v string) *CreateInstanceRequest { s.HttpTokens = &v return s } func (s *CreateInstanceRequest) SetImageFamily(v string) *CreateInstanceRequest { s.ImageFamily = &v return s } func (s *CreateInstanceRequest) SetImageId(v string) *CreateInstanceRequest { s.ImageId = &v return s } func (s *CreateInstanceRequest) SetInnerIpAddress(v string) *CreateInstanceRequest { s.InnerIpAddress = &v return s } func (s *CreateInstanceRequest) SetInstanceChargeType(v string) *CreateInstanceRequest { s.InstanceChargeType = &v return s } func (s *CreateInstanceRequest) SetInstanceName(v string) *CreateInstanceRequest { s.InstanceName = &v return s } func (s *CreateInstanceRequest) SetInstanceType(v string) *CreateInstanceRequest { s.InstanceType = &v return s } func (s *CreateInstanceRequest) SetInternetChargeType(v string) *CreateInstanceRequest { s.InternetChargeType = &v return s } func (s *CreateInstanceRequest) SetInternetMaxBandwidthIn(v int32) *CreateInstanceRequest { s.InternetMaxBandwidthIn = &v return s } func (s *CreateInstanceRequest) SetInternetMaxBandwidthOut(v int32) *CreateInstanceRequest { s.InternetMaxBandwidthOut = &v return s } func (s *CreateInstanceRequest) SetIoOptimized(v string) *CreateInstanceRequest { s.IoOptimized = &v return s } func (s *CreateInstanceRequest) SetKeyPairName(v string) *CreateInstanceRequest { s.KeyPairName = &v return s } func (s *CreateInstanceRequest) SetNodeControllerId(v string) *CreateInstanceRequest { s.NodeControllerId = &v return s } func (s *CreateInstanceRequest) SetOwnerAccount(v string) *CreateInstanceRequest { s.OwnerAccount = &v return s } func (s *CreateInstanceRequest) SetOwnerId(v int64) *CreateInstanceRequest { s.OwnerId = &v return s } func (s *CreateInstanceRequest) SetPassword(v string) *CreateInstanceRequest { s.Password = &v return s } func (s *CreateInstanceRequest) SetPasswordInherit(v bool) *CreateInstanceRequest { s.PasswordInherit = &v return s } func (s *CreateInstanceRequest) SetPeriod(v int32) *CreateInstanceRequest { s.Period = &v return s } func (s *CreateInstanceRequest) SetPeriodUnit(v string) *CreateInstanceRequest { s.PeriodUnit = &v return s } func (s *CreateInstanceRequest) SetPrivateIpAddress(v string) *CreateInstanceRequest { s.PrivateIpAddress = &v return s } func (s *CreateInstanceRequest) SetRamRoleName(v string) *CreateInstanceRequest { s.RamRoleName = &v return s } func (s *CreateInstanceRequest) SetRegionId(v string) *CreateInstanceRequest { s.RegionId = &v return s } func (s *CreateInstanceRequest) SetResourceGroupId(v string) *CreateInstanceRequest { s.ResourceGroupId = &v return s } func (s *CreateInstanceRequest) SetResourceOwnerAccount(v string) *CreateInstanceRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateInstanceRequest) SetResourceOwnerId(v int64) *CreateInstanceRequest { s.ResourceOwnerId = &v return s } func (s *CreateInstanceRequest) SetSecurityEnhancementStrategy(v string) *CreateInstanceRequest { s.SecurityEnhancementStrategy = &v return s } func (s *CreateInstanceRequest) SetSecurityGroupId(v string) *CreateInstanceRequest { s.SecurityGroupId = &v return s } func (s *CreateInstanceRequest) SetSpotDuration(v int32) *CreateInstanceRequest { s.SpotDuration = &v return s } func (s *CreateInstanceRequest) SetSpotInterruptionBehavior(v string) *CreateInstanceRequest { s.SpotInterruptionBehavior = &v return s } func (s *CreateInstanceRequest) SetSpotPriceLimit(v float32) *CreateInstanceRequest { s.SpotPriceLimit = &v return s } func (s *CreateInstanceRequest) SetSpotStrategy(v string) *CreateInstanceRequest { s.SpotStrategy = &v return s } func (s *CreateInstanceRequest) SetStorageSetId(v string) *CreateInstanceRequest { s.StorageSetId = &v return s } func (s *CreateInstanceRequest) SetStorageSetPartitionNumber(v int32) *CreateInstanceRequest { s.StorageSetPartitionNumber = &v return s } func (s *CreateInstanceRequest) SetTag(v []*CreateInstanceRequestTag) *CreateInstanceRequest { s.Tag = v return s } func (s *CreateInstanceRequest) SetTenancy(v string) *CreateInstanceRequest { s.Tenancy = &v return s } func (s *CreateInstanceRequest) SetUseAdditionalService(v bool) *CreateInstanceRequest { s.UseAdditionalService = &v return s } func (s *CreateInstanceRequest) SetUserData(v string) *CreateInstanceRequest { s.UserData = &v return s } func (s *CreateInstanceRequest) SetVSwitchId(v string) *CreateInstanceRequest { s.VSwitchId = &v return s } func (s *CreateInstanceRequest) SetVlanId(v string) *CreateInstanceRequest { s.VlanId = &v return s } func (s *CreateInstanceRequest) SetZoneId(v string) *CreateInstanceRequest { s.ZoneId = &v return s } type CreateInstanceRequestHibernationOptions struct { // > This parameter is in invitational preview and is not publicly available. Configured *bool `json:"Configured,omitempty" xml:"Configured,omitempty"` } func (s CreateInstanceRequestHibernationOptions) String() string { return tea.Prettify(s) } func (s CreateInstanceRequestHibernationOptions) GoString() string { return s.String() } func (s *CreateInstanceRequestHibernationOptions) SetConfigured(v bool) *CreateInstanceRequestHibernationOptions { s.Configured = &v return s } type CreateInstanceRequestPrivatePoolOptions struct { // The ID of the private pool. The ID of a private pool is the same as that of the elasticity assurance or capacity reservation for which the private pool is generated. Id *string `json:"Id,omitempty" xml:"Id,omitempty"` // The type of the private pool to use to start the instance. A private pool is generated when an elasticity assurance or a capacity reservation takes effect. You can select a private pool to start instances. Valid values: // // * Open: open private pool. The system selects a matching open private pool to start the instance. If no matching open private pools are found, resources in the public pool are used. When you set this parameter to Open, you can leave the `PrivatePoolOptions.Id` parameter empty. // * Target: specified private pool. The system uses the capacity in a specified private pool to start the instance. If the specified private pool is unavailable, the instance cannot be started. If you set this parameter to Target, you must specify the `PrivatePoolOptions.Id` parameter. // * None: no private pool. The capacity in private pools is not used. // // Default value: none. // // In the following scenarios, the PrivatePoolOptions.MatchCriteria parameter can be set only to `None` or left empty: // // * Create a preemptible instance. // * Create an instance in the classic network. // * Create an instance on a dedicated host. MatchCriteria *string `json:"MatchCriteria,omitempty" xml:"MatchCriteria,omitempty"` } func (s CreateInstanceRequestPrivatePoolOptions) String() string { return tea.Prettify(s) } func (s CreateInstanceRequestPrivatePoolOptions) GoString() string { return s.String() } func (s *CreateInstanceRequestPrivatePoolOptions) SetId(v string) *CreateInstanceRequestPrivatePoolOptions { s.Id = &v return s } func (s *CreateInstanceRequestPrivatePoolOptions) SetMatchCriteria(v string) *CreateInstanceRequestPrivatePoolOptions { s.MatchCriteria = &v return s } type CreateInstanceRequestSystemDisk struct { // The category of the system disk. Valid values: // // * cloud_essd: ESSD. If SystemDisk.Category is set to this value, you can use `SystemDisk.PerformanceLevel` to specify the performance level of the disk. // * cloud_efficiency: ultra disk. // * cloud_ssd: standard SSD. // * cloud: basic disk. // // For non-I/O optimized instances of retired instance types, the default value is cloud. For other types of instances, the default value is cloud_efficiency. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The description of the system disk. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The name of the system disk. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). // // This parameter is empty by default. DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // The performance level of the ESSD that is used as the system disk. Default value: PL1. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1 (default): A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The size of the system disk. Unit: GiB. Valid values: // // * Basic disks: 20 to 500. // * Other disks: 20 to 2048. // // The value of this parameter must be at least 20 and greater than or equal to the size of the image. // // Default value: 40 or the size of the image, whichever is greater. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the dedicated block storage cluster. If you want to use disks in a dedicated block storage cluster as system disks when you create instances, you need to specify this parameter. StorageClusterId *string `json:"StorageClusterId,omitempty" xml:"StorageClusterId,omitempty"` } func (s CreateInstanceRequestSystemDisk) String() string { return tea.Prettify(s) } func (s CreateInstanceRequestSystemDisk) GoString() string { return s.String() } func (s *CreateInstanceRequestSystemDisk) SetCategory(v string) *CreateInstanceRequestSystemDisk { s.Category = &v return s } func (s *CreateInstanceRequestSystemDisk) SetDescription(v string) *CreateInstanceRequestSystemDisk { s.Description = &v return s } func (s *CreateInstanceRequestSystemDisk) SetDiskName(v string) *CreateInstanceRequestSystemDisk { s.DiskName = &v return s } func (s *CreateInstanceRequestSystemDisk) SetPerformanceLevel(v string) *CreateInstanceRequestSystemDisk { s.PerformanceLevel = &v return s } func (s *CreateInstanceRequestSystemDisk) SetSize(v int32) *CreateInstanceRequestSystemDisk { s.Size = &v return s } func (s *CreateInstanceRequestSystemDisk) SetStorageClusterId(v string) *CreateInstanceRequestSystemDisk { s.StorageClusterId = &v return s } type CreateInstanceRequestArn struct { // > This parameter is in invitational preview and is not publicly available. AssumeRoleFor *int64 `json:"AssumeRoleFor,omitempty" xml:"AssumeRoleFor,omitempty"` // > This parameter is in invitational preview and is not publicly available. RoleType *string `json:"RoleType,omitempty" xml:"RoleType,omitempty"` // > This parameter is in invitational preview and is not publicly available. Rolearn *string `json:"Rolearn,omitempty" xml:"Rolearn,omitempty"` } func (s CreateInstanceRequestArn) String() string { return tea.Prettify(s) } func (s CreateInstanceRequestArn) GoString() string { return s.String() } func (s *CreateInstanceRequestArn) SetAssumeRoleFor(v int64) *CreateInstanceRequestArn { s.AssumeRoleFor = &v return s } func (s *CreateInstanceRequestArn) SetRoleType(v string) *CreateInstanceRequestArn { s.RoleType = &v return s } func (s *CreateInstanceRequestArn) SetRolearn(v string) *CreateInstanceRequestArn { s.Rolearn = &v return s } type CreateInstanceRequestDataDisk struct { // The category of data disk N. Valid values: // // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: ESSD // * cloud: basic disk // // For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Specifies whether to release data disk N when the instance is released. // // * true: releases data disk N. // * false: does not release data disk N. // // Default value: true. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of data disk N. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The mount point of data disk N. // // > This parameter is applicable to scenarios in which a full image is used to create instances. A full image is an image that contains an operating system, application software, and business data. For these scenarios, you can set this parameter to the mount point of data disk N contained in the full image and modify the `DataDisk.N.Size` and `DataDisk.N.Category` parameters to change the category and size of data disk N created based on the image. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The name of data disk N. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // > This parameter is not publicly available. EncryptAlgorithm *string `json:"EncryptAlgorithm,omitempty" xml:"EncryptAlgorithm,omitempty"` // Specifies whether to encrypt data disk N. // // * true: encrypts data disk N. // * false: does not encrypt data disk N. // // Default value: false. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the KMS key to use for data disk N. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` // The performance level of the ESSD to use as data disk N. The value of N must be the same as that in `DataDisk.N.Category` when DataDisk.N.Category is set to cloud_essd. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1 (default): A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values: // // * Valid values if DataDisk.N.Category is set to cloud_efficiency: 20 to 32768. // // * Valid values if DataDisk.N.Category is set to cloud_ssd: 20 to 32768. // // * Valid values if DataDisk.N.Category is set to cloud_essd: vary based on the `DataDisk.N.PerformanceLevel` value. // // * Valid values if DataDisk.N.PerformanceLevel is set to PL0: 40 to 32768. // * Valid values if DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. // * Valid values if DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. // * Valid values if DataDisk.N.PerformanceLevel is set to PL3: 1261 to 32768. // // * Valid values if DataDisk.N.Category is set to cloud: 5 to 2000. // // The value of this parameter must be greater than or equal to the size of the snapshot specified by `SnapshotId`. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16. // // * If `DataDisk.N.SnapshotId` is specified, `DataDisk.N.Size` is ignored. The data disk is created based on the size of the specified snapshot. // * Use snapshots created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The ID of the dedicated block storage cluster. If you want to use a disk in a dedicated block storage cluster as data disk N when you create the instance, you must specify this parameter. StorageClusterId *string `json:"StorageClusterId,omitempty" xml:"StorageClusterId,omitempty"` } func (s CreateInstanceRequestDataDisk) String() string { return tea.Prettify(s) } func (s CreateInstanceRequestDataDisk) GoString() string { return s.String() } func (s *CreateInstanceRequestDataDisk) SetCategory(v string) *CreateInstanceRequestDataDisk { s.Category = &v return s } func (s *CreateInstanceRequestDataDisk) SetDeleteWithInstance(v bool) *CreateInstanceRequestDataDisk { s.DeleteWithInstance = &v return s } func (s *CreateInstanceRequestDataDisk) SetDescription(v string) *CreateInstanceRequestDataDisk { s.Description = &v return s } func (s *CreateInstanceRequestDataDisk) SetDevice(v string) *CreateInstanceRequestDataDisk { s.Device = &v return s } func (s *CreateInstanceRequestDataDisk) SetDiskName(v string) *CreateInstanceRequestDataDisk { s.DiskName = &v return s } func (s *CreateInstanceRequestDataDisk) SetEncryptAlgorithm(v string) *CreateInstanceRequestDataDisk { s.EncryptAlgorithm = &v return s } func (s *CreateInstanceRequestDataDisk) SetEncrypted(v bool) *CreateInstanceRequestDataDisk { s.Encrypted = &v return s } func (s *CreateInstanceRequestDataDisk) SetKMSKeyId(v string) *CreateInstanceRequestDataDisk { s.KMSKeyId = &v return s } func (s *CreateInstanceRequestDataDisk) SetPerformanceLevel(v string) *CreateInstanceRequestDataDisk { s.PerformanceLevel = &v return s } func (s *CreateInstanceRequestDataDisk) SetSize(v int32) *CreateInstanceRequestDataDisk { s.Size = &v return s } func (s *CreateInstanceRequestDataDisk) SetSnapshotId(v string) *CreateInstanceRequestDataDisk { s.SnapshotId = &v return s } func (s *CreateInstanceRequestDataDisk) SetStorageClusterId(v string) *CreateInstanceRequestDataDisk { s.StorageClusterId = &v return s } type CreateInstanceRequestTag struct { // The key of tag N to add to the instance, disks, and primary elastic network interface (ENI). Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the instance, disks, and primary ENI. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with `acs:`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateInstanceRequestTag) String() string { return tea.Prettify(s) } func (s CreateInstanceRequestTag) GoString() string { return s.String() } func (s *CreateInstanceRequestTag) SetKey(v string) *CreateInstanceRequestTag { s.Key = &v return s } func (s *CreateInstanceRequestTag) SetValue(v string) *CreateInstanceRequestTag { s.Value = &v return s } type CreateInstanceResponseBody struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The order ID. This parameter is returned only if `InstanceChargeType` is set to PrePaid. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The transaction price. TradePrice *float32 `json:"TradePrice,omitempty" xml:"TradePrice,omitempty"` } func (s CreateInstanceResponseBody) String() string { return tea.Prettify(s) } func (s CreateInstanceResponseBody) GoString() string { return s.String() } func (s *CreateInstanceResponseBody) SetInstanceId(v string) *CreateInstanceResponseBody { s.InstanceId = &v return s } func (s *CreateInstanceResponseBody) SetOrderId(v string) *CreateInstanceResponseBody { s.OrderId = &v return s } func (s *CreateInstanceResponseBody) SetRequestId(v string) *CreateInstanceResponseBody { s.RequestId = &v return s } func (s *CreateInstanceResponseBody) SetTradePrice(v float32) *CreateInstanceResponseBody { s.TradePrice = &v return s } type CreateInstanceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateInstanceResponse) String() string { return tea.Prettify(s) } func (s CreateInstanceResponse) GoString() string { return s.String() } func (s *CreateInstanceResponse) SetHeaders(v map[string]*string) *CreateInstanceResponse { s.Headers = v return s } func (s *CreateInstanceResponse) SetStatusCode(v int32) *CreateInstanceResponse { s.StatusCode = &v return s } func (s *CreateInstanceResponse) SetBody(v *CreateInstanceResponseBody) *CreateInstanceResponse { s.Body = v return s } type CreateKeyPairRequest struct { // The name of the key pair. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region in which to create the key pair. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the enterprise resource group to which the SSH key pair belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags. Tag []*CreateKeyPairRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CreateKeyPairRequest) String() string { return tea.Prettify(s) } func (s CreateKeyPairRequest) GoString() string { return s.String() } func (s *CreateKeyPairRequest) SetKeyPairName(v string) *CreateKeyPairRequest { s.KeyPairName = &v return s } func (s *CreateKeyPairRequest) SetOwnerId(v int64) *CreateKeyPairRequest { s.OwnerId = &v return s } func (s *CreateKeyPairRequest) SetRegionId(v string) *CreateKeyPairRequest { s.RegionId = &v return s } func (s *CreateKeyPairRequest) SetResourceGroupId(v string) *CreateKeyPairRequest { s.ResourceGroupId = &v return s } func (s *CreateKeyPairRequest) SetResourceOwnerAccount(v string) *CreateKeyPairRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateKeyPairRequest) SetResourceOwnerId(v int64) *CreateKeyPairRequest { s.ResourceOwnerId = &v return s } func (s *CreateKeyPairRequest) SetTag(v []*CreateKeyPairRequestTag) *CreateKeyPairRequest { s.Tag = v return s } type CreateKeyPairRequestTag struct { // The key of tag N to be bound to the key pair. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. It cannot start with `aliyun` or `acs:`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the key pair. 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://. It cannot start with acs:. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateKeyPairRequestTag) String() string { return tea.Prettify(s) } func (s CreateKeyPairRequestTag) GoString() string { return s.String() } func (s *CreateKeyPairRequestTag) SetKey(v string) *CreateKeyPairRequestTag { s.Key = &v return s } func (s *CreateKeyPairRequestTag) SetValue(v string) *CreateKeyPairRequestTag { s.Value = &v return s } type CreateKeyPairResponseBody struct { // The fingerprint of the key pair. The message-digest algorithm 5 (MD5) is used based on the public key fingerprint format defined in RFC 4716. For more information, see [RFC 4716](https://tools.ietf.org/html/rfc4716). KeyPairFingerPrint *string `json:"KeyPairFingerPrint,omitempty" xml:"KeyPairFingerPrint,omitempty"` // The ID of the SSH key pair. KeyPairId *string `json:"KeyPairId,omitempty" xml:"KeyPairId,omitempty"` // The name of the SSH key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The private key of the key pair. The private key is encoded with PEM in the PKCS#8 format. PrivateKeyBody *string `json:"PrivateKeyBody,omitempty" xml:"PrivateKeyBody,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateKeyPairResponseBody) String() string { return tea.Prettify(s) } func (s CreateKeyPairResponseBody) GoString() string { return s.String() } func (s *CreateKeyPairResponseBody) SetKeyPairFingerPrint(v string) *CreateKeyPairResponseBody { s.KeyPairFingerPrint = &v return s } func (s *CreateKeyPairResponseBody) SetKeyPairId(v string) *CreateKeyPairResponseBody { s.KeyPairId = &v return s } func (s *CreateKeyPairResponseBody) SetKeyPairName(v string) *CreateKeyPairResponseBody { s.KeyPairName = &v return s } func (s *CreateKeyPairResponseBody) SetPrivateKeyBody(v string) *CreateKeyPairResponseBody { s.PrivateKeyBody = &v return s } func (s *CreateKeyPairResponseBody) SetRequestId(v string) *CreateKeyPairResponseBody { s.RequestId = &v return s } type CreateKeyPairResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateKeyPairResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateKeyPairResponse) String() string { return tea.Prettify(s) } func (s CreateKeyPairResponse) GoString() string { return s.String() } func (s *CreateKeyPairResponse) SetHeaders(v map[string]*string) *CreateKeyPairResponse { s.Headers = v return s } func (s *CreateKeyPairResponse) SetStatusCode(v int32) *CreateKeyPairResponse { s.StatusCode = &v return s } func (s *CreateKeyPairResponse) SetBody(v *CreateKeyPairResponseBody) *CreateKeyPairResponse { s.Body = v return s } type CreateLaunchTemplateRequest struct { SystemDisk *CreateLaunchTemplateRequestSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // The automatic release time of the instance. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. // // * If the value of seconds (`ss`) is not `00`, the time is automatically rounded to the nearest minute based on the value of minutes (`mm`). // * The release time must be at least 30 minutes later than the current time. // * The release time must be at most three years from the current time. AutoReleaseTime *string `json:"AutoReleaseTime,omitempty" xml:"AutoReleaseTime,omitempty"` // The performance mode of the burstable instance. Valid values: // // * Standard: the standard mode. For more information, see the "Standard mode" section in [Burstable instances](~~59977~~). // * Unlimited: the unlimited mode. For more information, see the "Unlimited mode" section in [Burstable instances](~~59977~~). CreditSpecification *string `json:"CreditSpecification,omitempty" xml:"CreditSpecification,omitempty"` // The data disks. DataDisk []*CreateLaunchTemplateRequestDataDisk `json:"DataDisk,omitempty" xml:"DataDisk,omitempty" type:"Repeated"` // Specifies whether to enable release protection for the instance. This parameter determines whether you can use the ECS console or call the [DeleteInstance](~~25507~~) operation to release the instance. Valid values: // // - true // - false // // Default value: false. // // >This parameter is applicable only to pay-as-you-go instances. It can protect instances against manual releases, but not against automatic releases. DeletionProtection *bool `json:"DeletionProtection,omitempty" xml:"DeletionProtection,omitempty"` // The ID of the deployment set to which to deploy the instance. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` // The instance description. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Specifies whether to enable the operating system configuration of the instance. // // > This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters. EnableVmOsConfig *bool `json:"EnableVmOsConfig,omitempty" xml:"EnableVmOsConfig,omitempty"` // The instance hostname. // // * The hostname cannot start or end with a period (.) or hyphen (-). It cannot contain consecutive periods (.) or hyphens (-). // * For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. It can contain letters, digits, and hyphens (-). // * For instances that run other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate the hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-). HostName *string `json:"HostName,omitempty" xml:"HostName,omitempty"` // The ID of the image to use to create the instance. You can call the [DescribeImages](~~25534~~) operation to query available images. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The source of the image. Valid values: // // * system: public images provided by Alibaba Cloud // * self: custom images that you create. // * others: shared images from other Alibaba Cloud accounts. // * marketplace: [Alibaba Cloud Marketplace](https://market.aliyun.com/) images. If Alibaba Cloud Marketplace images are found, you can use these images without prior subscription. You must pay attention to the billing details of Alibaba Cloud Marketplace images. ImageOwnerAlias *string `json:"ImageOwnerAlias,omitempty" xml:"ImageOwnerAlias,omitempty"` // The billing method of the instance. Valid values: // // * PrePaid: subscription. If you set this parameter to PrePaid, make sure that you have sufficient balance and credit in your account. Otherwise, an `InvalidPayMethod` error is returned. // * PostPaid: pay-as-you-go. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The name of the instance. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The instance type of the instance. For more information, see [Instance families](~~25378~~). Alternatively, you can call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The billing method for network usage. Valid values: // // * PayByBandwidth: pay-by-bandwidth // * PayByTraffic: pay-by-traffic // // > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidths may be limited. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum inbound public bandwidth. Unit: Mbit/s. Valid values: // // * When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 1 to 10 and the default value is 10. // * When the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter are 1 to the `InternetMaxBandwidthOut` value and the default value is the `InternetMaxBandwidthOut` value. InternetMaxBandwidthIn *int32 `json:"InternetMaxBandwidthIn,omitempty" xml:"InternetMaxBandwidthIn,omitempty"` // The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Specifies whether to create an I/O optimized instance. Valid values: // // * none: creates a non-I/O optimized instance. // * optimized: creates an I/O optimized instance. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The number of IPv6 addresses to randomly generate for the primary elastic network interface (ENI). Valid values: 1 to 10. Ipv6AddressCount *int32 `json:"Ipv6AddressCount,omitempty" xml:"Ipv6AddressCount,omitempty"` // The name of the key pair. This parameter is empty by default. // // * For Windows instances, this parameter is ignored The `Password` parameter takes effect even if the KeyPairName parameter is specified. // * For Linux instances, the password-based logon method is disabled by default. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The name of the launch template. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). LaunchTemplateName *string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty"` // The information of the ENI. NetworkInterface []*CreateLaunchTemplateRequestNetworkInterface `json:"NetworkInterface,omitempty" xml:"NetworkInterface,omitempty" type:"Repeated"` // The network type of the instance. Valid values: // // * classic: classic network // * vpc: VPC NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // Specifies whether to use the preset password of the image. // // > If you set the PasswordInherit parameter to true, make sure that you leave the Password parameter empty and the selected image has a preset password. PasswordInherit *bool `json:"PasswordInherit,omitempty" xml:"PasswordInherit,omitempty"` // The subscription duration of the instance. Unit: months. This parameter is valid and required only when `InstanceChargeType` is set to `PrePaid`. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The private IP address to assign to the instance. // // To assign a private IP address to an instance that resides in a VPC, make sure that the IP address is an idle IP address within the CIDR block of the vSwitch specified by the `VSwitchId` parameter. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // The name of the instance Resource Access Management (RAM) role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The ID of the region in which to create the launch template. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and elastic network interface (ENI). ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether to enable security hardening for the operating system. Valid values: // // * Active: enables security hardening. This value is applicable only to public images. // * Deactive: does not enable security hardening. This value is applicable to all images. SecurityEnhancementStrategy *string `json:"SecurityEnhancementStrategy,omitempty" xml:"SecurityEnhancementStrategy,omitempty"` // The ID of the security group to which to assign the instance. Instances in the same security group can communicate with each other. A security group can contain up to 1,000 instances. // // > You cannot specify both the `SecurityGroupId` and `SecurityGroupIds.N` parameters. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The IDs of the security groups to which to assign the instance. The valid values of N are based on the maximum number of security groups to which the instance can belong. For more information, see the "Security group limits" section in [Limits](~~25412~~). // // > You cannot specify both the `SecurityGroupId` and `SecurityGroupIds.N` parameters. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Repeated"` // The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values: // // - 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bidding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // - 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the biding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // Alibaba Cloud sends ECS system events to notify you 5 minutes before the instance is released. Preemptible instances are billed by second. We recommend that you specify a protection period based on your business requirements. // // >If you set SpotStrategy to SpotWithPriceLimit or SpotAsPriceGo, this parameter takes effect. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The maximum hourly price of the instance. The value is accurate to three decimal places. This parameter is valid only when the `SpotStrategy` parameter is set to `SpotWithPriceLimit`. SpotPriceLimit *float32 `json:"SpotPriceLimit,omitempty" xml:"SpotPriceLimit,omitempty"` // The bidding policy for the pay-as-you-go instance. This parameter is valid only when the `InstanceChargeType` parameter is set to `PostPaid`. Valid values: // // * NoSpot: The instance is a regular pay-as-you-go instance. // * SpotWithPriceLimit: The instance is created as a preemptible instance with a user-defined maximum hourly price. // * SpotAsPriceGo: The instance is created as a preemptible instance for which the market price at the time of purchase is automatically used as the bidding price. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The tags of the launch template. Tag []*CreateLaunchTemplateRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the resource group to which the launch template belongs. TemplateResourceGroupId *string `json:"TemplateResourceGroupId,omitempty" xml:"TemplateResourceGroupId,omitempty"` // The tags to add to the launch template. TemplateTag []*CreateLaunchTemplateRequestTemplateTag `json:"TemplateTag,omitempty" xml:"TemplateTag,omitempty" type:"Repeated"` // The user data of the instance. The user data must be encoded in Base64. The maximum size of raw data is 16 KB. UserData *string `json:"UserData,omitempty" xml:"UserData,omitempty"` // The ID of the vSwitch to which to connect the instance. This parameter is required if you specify the VpcId parameter. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The description of the launch template version. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. VersionDescription *string `json:"VersionDescription,omitempty" xml:"VersionDescription,omitempty"` // The ID of the virtual private cloud (VPC). VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` // The ID of the zone in which to create the instance. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateLaunchTemplateRequest) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateRequest) GoString() string { return s.String() } func (s *CreateLaunchTemplateRequest) SetSystemDisk(v *CreateLaunchTemplateRequestSystemDisk) *CreateLaunchTemplateRequest { s.SystemDisk = v return s } func (s *CreateLaunchTemplateRequest) SetAutoReleaseTime(v string) *CreateLaunchTemplateRequest { s.AutoReleaseTime = &v return s } func (s *CreateLaunchTemplateRequest) SetCreditSpecification(v string) *CreateLaunchTemplateRequest { s.CreditSpecification = &v return s } func (s *CreateLaunchTemplateRequest) SetDataDisk(v []*CreateLaunchTemplateRequestDataDisk) *CreateLaunchTemplateRequest { s.DataDisk = v return s } func (s *CreateLaunchTemplateRequest) SetDeletionProtection(v bool) *CreateLaunchTemplateRequest { s.DeletionProtection = &v return s } func (s *CreateLaunchTemplateRequest) SetDeploymentSetId(v string) *CreateLaunchTemplateRequest { s.DeploymentSetId = &v return s } func (s *CreateLaunchTemplateRequest) SetDescription(v string) *CreateLaunchTemplateRequest { s.Description = &v return s } func (s *CreateLaunchTemplateRequest) SetEnableVmOsConfig(v bool) *CreateLaunchTemplateRequest { s.EnableVmOsConfig = &v return s } func (s *CreateLaunchTemplateRequest) SetHostName(v string) *CreateLaunchTemplateRequest { s.HostName = &v return s } func (s *CreateLaunchTemplateRequest) SetImageId(v string) *CreateLaunchTemplateRequest { s.ImageId = &v return s } func (s *CreateLaunchTemplateRequest) SetImageOwnerAlias(v string) *CreateLaunchTemplateRequest { s.ImageOwnerAlias = &v return s } func (s *CreateLaunchTemplateRequest) SetInstanceChargeType(v string) *CreateLaunchTemplateRequest { s.InstanceChargeType = &v return s } func (s *CreateLaunchTemplateRequest) SetInstanceName(v string) *CreateLaunchTemplateRequest { s.InstanceName = &v return s } func (s *CreateLaunchTemplateRequest) SetInstanceType(v string) *CreateLaunchTemplateRequest { s.InstanceType = &v return s } func (s *CreateLaunchTemplateRequest) SetInternetChargeType(v string) *CreateLaunchTemplateRequest { s.InternetChargeType = &v return s } func (s *CreateLaunchTemplateRequest) SetInternetMaxBandwidthIn(v int32) *CreateLaunchTemplateRequest { s.InternetMaxBandwidthIn = &v return s } func (s *CreateLaunchTemplateRequest) SetInternetMaxBandwidthOut(v int32) *CreateLaunchTemplateRequest { s.InternetMaxBandwidthOut = &v return s } func (s *CreateLaunchTemplateRequest) SetIoOptimized(v string) *CreateLaunchTemplateRequest { s.IoOptimized = &v return s } func (s *CreateLaunchTemplateRequest) SetIpv6AddressCount(v int32) *CreateLaunchTemplateRequest { s.Ipv6AddressCount = &v return s } func (s *CreateLaunchTemplateRequest) SetKeyPairName(v string) *CreateLaunchTemplateRequest { s.KeyPairName = &v return s } func (s *CreateLaunchTemplateRequest) SetLaunchTemplateName(v string) *CreateLaunchTemplateRequest { s.LaunchTemplateName = &v return s } func (s *CreateLaunchTemplateRequest) SetNetworkInterface(v []*CreateLaunchTemplateRequestNetworkInterface) *CreateLaunchTemplateRequest { s.NetworkInterface = v return s } func (s *CreateLaunchTemplateRequest) SetNetworkType(v string) *CreateLaunchTemplateRequest { s.NetworkType = &v return s } func (s *CreateLaunchTemplateRequest) SetOwnerAccount(v string) *CreateLaunchTemplateRequest { s.OwnerAccount = &v return s } func (s *CreateLaunchTemplateRequest) SetOwnerId(v int64) *CreateLaunchTemplateRequest { s.OwnerId = &v return s } func (s *CreateLaunchTemplateRequest) SetPasswordInherit(v bool) *CreateLaunchTemplateRequest { s.PasswordInherit = &v return s } func (s *CreateLaunchTemplateRequest) SetPeriod(v int32) *CreateLaunchTemplateRequest { s.Period = &v return s } func (s *CreateLaunchTemplateRequest) SetPrivateIpAddress(v string) *CreateLaunchTemplateRequest { s.PrivateIpAddress = &v return s } func (s *CreateLaunchTemplateRequest) SetRamRoleName(v string) *CreateLaunchTemplateRequest { s.RamRoleName = &v return s } func (s *CreateLaunchTemplateRequest) SetRegionId(v string) *CreateLaunchTemplateRequest { s.RegionId = &v return s } func (s *CreateLaunchTemplateRequest) SetResourceGroupId(v string) *CreateLaunchTemplateRequest { s.ResourceGroupId = &v return s } func (s *CreateLaunchTemplateRequest) SetResourceOwnerAccount(v string) *CreateLaunchTemplateRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateLaunchTemplateRequest) SetResourceOwnerId(v int64) *CreateLaunchTemplateRequest { s.ResourceOwnerId = &v return s } func (s *CreateLaunchTemplateRequest) SetSecurityEnhancementStrategy(v string) *CreateLaunchTemplateRequest { s.SecurityEnhancementStrategy = &v return s } func (s *CreateLaunchTemplateRequest) SetSecurityGroupId(v string) *CreateLaunchTemplateRequest { s.SecurityGroupId = &v return s } func (s *CreateLaunchTemplateRequest) SetSecurityGroupIds(v []*string) *CreateLaunchTemplateRequest { s.SecurityGroupIds = v return s } func (s *CreateLaunchTemplateRequest) SetSpotDuration(v int32) *CreateLaunchTemplateRequest { s.SpotDuration = &v return s } func (s *CreateLaunchTemplateRequest) SetSpotPriceLimit(v float32) *CreateLaunchTemplateRequest { s.SpotPriceLimit = &v return s } func (s *CreateLaunchTemplateRequest) SetSpotStrategy(v string) *CreateLaunchTemplateRequest { s.SpotStrategy = &v return s } func (s *CreateLaunchTemplateRequest) SetTag(v []*CreateLaunchTemplateRequestTag) *CreateLaunchTemplateRequest { s.Tag = v return s } func (s *CreateLaunchTemplateRequest) SetTemplateResourceGroupId(v string) *CreateLaunchTemplateRequest { s.TemplateResourceGroupId = &v return s } func (s *CreateLaunchTemplateRequest) SetTemplateTag(v []*CreateLaunchTemplateRequestTemplateTag) *CreateLaunchTemplateRequest { s.TemplateTag = v return s } func (s *CreateLaunchTemplateRequest) SetUserData(v string) *CreateLaunchTemplateRequest { s.UserData = &v return s } func (s *CreateLaunchTemplateRequest) SetVSwitchId(v string) *CreateLaunchTemplateRequest { s.VSwitchId = &v return s } func (s *CreateLaunchTemplateRequest) SetVersionDescription(v string) *CreateLaunchTemplateRequest { s.VersionDescription = &v return s } func (s *CreateLaunchTemplateRequest) SetVpcId(v string) *CreateLaunchTemplateRequest { s.VpcId = &v return s } func (s *CreateLaunchTemplateRequest) SetZoneId(v string) *CreateLaunchTemplateRequest { s.ZoneId = &v return s } type CreateLaunchTemplateRequestSystemDisk struct { // The ID of the automatic snapshot policy to apply to the system disk. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // Specifies whether to enable the performance burst feature for the system disk. Valid values: // // * true // * false BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` // The category of the system disk. Valid values: // // * cloud: basic disk. // * cloud_efficiency: ultra disk. // * cloud_ssd: standard SSD. // * cloud_essd: enhanced SSD (ESSD). You can use the `SystemDisk.PerformanceLevel` parameter to set the performance level of the ESSD to use as the system disk. cloud_auto: ESSD AutoPL disk. // // For non-I/O optimized instances of a retired instance type, the default value is cloud. For other types of instances, the default value is cloud_efficiency. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Specifies whether to release the system disk when the instance is released. Valid values: // // * true: releases the system disk when the instance is released. // * false: does not release the system disk when the instance is released. // // Default value: true. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of the system disk. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The name of the system disk. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // 系统盘是否加密。取值范围: // // - true:加密。 // - false:不加密。 // // 默认值:false。 // // >中国香港D可用区、新加坡A可用区暂不支持在创建实例时加密系统盘。 Encrypted *string `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // > This parameter is in invitational preview and is unavailable for general users. Iops *int32 `json:"Iops,omitempty" xml:"Iops,omitempty"` // The performance level of the ESSD to use as the system disk. Default value: PL0. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The provisioned read/write IOPS of the ESSD AutoPL disk to use as the system disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS} // // Baseline IOPS = min{1,800 + 50 × Capacity, 50,000} // // > This parameter is available only if you set the SystemDisk.Category parameter to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~) and [Modify the performance configurations of an ESSD AutoPL disk](~~413275~~). ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` // The size of the system disk. Unit: GiB. Valid values: 20 to 500. // // The value of this parameter must be at least 20 and greater than or equal to the size of the specified image. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` } func (s CreateLaunchTemplateRequestSystemDisk) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateRequestSystemDisk) GoString() string { return s.String() } func (s *CreateLaunchTemplateRequestSystemDisk) SetAutoSnapshotPolicyId(v string) *CreateLaunchTemplateRequestSystemDisk { s.AutoSnapshotPolicyId = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetBurstingEnabled(v bool) *CreateLaunchTemplateRequestSystemDisk { s.BurstingEnabled = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetCategory(v string) *CreateLaunchTemplateRequestSystemDisk { s.Category = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetDeleteWithInstance(v bool) *CreateLaunchTemplateRequestSystemDisk { s.DeleteWithInstance = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetDescription(v string) *CreateLaunchTemplateRequestSystemDisk { s.Description = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetDiskName(v string) *CreateLaunchTemplateRequestSystemDisk { s.DiskName = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetEncrypted(v string) *CreateLaunchTemplateRequestSystemDisk { s.Encrypted = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetIops(v int32) *CreateLaunchTemplateRequestSystemDisk { s.Iops = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetPerformanceLevel(v string) *CreateLaunchTemplateRequestSystemDisk { s.PerformanceLevel = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetProvisionedIops(v int64) *CreateLaunchTemplateRequestSystemDisk { s.ProvisionedIops = &v return s } func (s *CreateLaunchTemplateRequestSystemDisk) SetSize(v int32) *CreateLaunchTemplateRequestSystemDisk { s.Size = &v return s } type CreateLaunchTemplateRequestDataDisk struct { // The ID of the automatic snapshot policy to apply to data disk N. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // Specifies whether to enable the performance burst feature for data disk N. Valid values: // // * true // * false BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` // The category of data disk N. Valid values: // // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: ESSD cloud_auto: ESSD AutoPL disk // // For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Specifies whether to release data disk N when the instance is released. Valid values: // // * true: releases data disk N when the instance is released. // * false: does not release data disk N when the instance is released. // // Default value: true. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of data disk N. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // > This parameter will be removed in the future. To ensure future compatibility, we recommend that you do not use this parameter. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The name of data disk N. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // Specifies whether to encrypt the data disk. Encrypted *string `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The performance level of the ESSD to use as data disk N. The value of N must be the same as that in `DataDisk.N.Category` when DataDisk.N.Category is set to cloud_essd. Default value: PL1. Valid values: // // * PL0: An ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS} // // Baseline IOPS = min{1,800 + 50 × Capacity, 50,000} // // > This parameter is available only if you set the DataDisk.N.Category parameter to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~) and [Modify the performance configurations of an ESSD AutoPL disk](~~413275~~). ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` // The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values: // // * Valid values when DataDisk.N.Category is set to cloud: 5 to 2000 // // * Valid values when DataDisk.N.Category is set to cloud_efficiency: 20 to 32768 // // * Valid values when DataDisk.N.Category is set to cloud_ssd: 20 to 32768 // // * Valid values when DataDisk.N.Category is set to cloud_essd: depend on the `DataDisk.N.PerformanceLevel` value. // // * Valid values when DataDisk.N.PerformanceLevel is set to PL0: 40 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL3: 1261 to 32768. // // The value of this parameter must be greater than or equal to the size of the snapshot specified by the `SnapshotId` parameter. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16. When the `DataDisk.N.SnapshotId` parameter is specified, the `DataDisk.N.Size` parameter is ignored. The data disk is created based on the size of the specified snapshot. // // Use snapshots that were created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s CreateLaunchTemplateRequestDataDisk) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateRequestDataDisk) GoString() string { return s.String() } func (s *CreateLaunchTemplateRequestDataDisk) SetAutoSnapshotPolicyId(v string) *CreateLaunchTemplateRequestDataDisk { s.AutoSnapshotPolicyId = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetBurstingEnabled(v bool) *CreateLaunchTemplateRequestDataDisk { s.BurstingEnabled = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetCategory(v string) *CreateLaunchTemplateRequestDataDisk { s.Category = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetDeleteWithInstance(v bool) *CreateLaunchTemplateRequestDataDisk { s.DeleteWithInstance = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetDescription(v string) *CreateLaunchTemplateRequestDataDisk { s.Description = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetDevice(v string) *CreateLaunchTemplateRequestDataDisk { s.Device = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetDiskName(v string) *CreateLaunchTemplateRequestDataDisk { s.DiskName = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetEncrypted(v string) *CreateLaunchTemplateRequestDataDisk { s.Encrypted = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetPerformanceLevel(v string) *CreateLaunchTemplateRequestDataDisk { s.PerformanceLevel = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetProvisionedIops(v int64) *CreateLaunchTemplateRequestDataDisk { s.ProvisionedIops = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetSize(v int32) *CreateLaunchTemplateRequestDataDisk { s.Size = &v return s } func (s *CreateLaunchTemplateRequestDataDisk) SetSnapshotId(v string) *CreateLaunchTemplateRequestDataDisk { s.SnapshotId = &v return s } type CreateLaunchTemplateRequestNetworkInterface struct { // The description of the secondary ENI. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. The value of N in `NetworkInterface.N` cannot be greater than 1. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The instance type of the instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The name of ENI N. // // Take note of the following items: // // * Valid values of N: 1 and 2. If the value of N is 1, you can configure a primary or secondary ENI. If the value of N is 2, you must configure a primary ENI and a secondary ENI. // * If `NetworkInterface.N.InstanceType` is set to `Primary`, you do not need to set this parameter. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The communication mode of the primary ENI. Valid values: // // * Standard: uses the TCP communication mode. // * HighPerformance: uses the remote direct memory access (RDMA) communication mode with the Elastic RDMA Interface (ERI) enabled. NetworkInterfaceTrafficMode *string `json:"NetworkInterfaceTrafficMode,omitempty" xml:"NetworkInterfaceTrafficMode,omitempty"` // The primary IP address to assign to ENI N. // // Take note of the following items: // // * Valid values of N: 1 and 2. // // * If the value of N is 1, you can configure a primary or secondary ENI. If this parameter is specified, `Amount` is set to a numeric value greater than 1, and NetworkInterface.N.InstanceType is set to Primary, the specified number of instances are created and consecutive primary IP addresses starting from the specified one are assigned to the instances. In this case, you cannot attach secondary ENIs to the instances. // * If the value of N is 2, you can configure a primary ENI and a secondary ENI. If this parameter is specified, `Amount` is set to a numeric value greater than 1, and NetworkInterface.N.InstanceType is set to Primary, you cannot set `NetworkInterface.2.InstanceType` to Secondary to attach a secondary ENI. // // * If `NetworkInterface.N.InstanceType` is set to `Primary`, this parameter is equivalent to `PrivateIpAddress` and you cannot specify `PrivateIpAddress`. // // * If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, the specified primary IP address is assigned to the secondary ENI. The default value is an IP address that is randomly selected from within the CIDR block of the vSwitch to which to connect the secondary ENI. // // > You can attach only a single secondary ENI when you create an instance. After the instance is created, you can call the [CreateNetworkInterface](~~58504~~) and [AttachNetworkInterface](~~58515~~) operations to attach more secondary ENIs. PrimaryIpAddress *string `json:"PrimaryIpAddress,omitempty" xml:"PrimaryIpAddress,omitempty"` // The ID of the security group to which to assign secondary ENI N. // // Take note of the following items: // // * Valid values of N: 1 and 2. If the value of N is 1, you can configure a primary or secondary ENI. If the value of N is 2, you must configure a primary ENI and a secondary ENI. // * If `NetworkInterface.N.InstanceType` is set to `Primary`, you must set this parameter. In this case, this parameter is equivalent to `SecurityGroupId` and you cannot specify `SecurityGroupId`, `SecurityGroupIds.N`, or `NetworkInterface.N.SecurityGroupIds.N`. // * If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. The default value is the ID of the security group to which to assign the ECS instance. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The ID of security group N to which to assign ENI N. // // * Valid values of the first N: 1 and 2. If the value of N is 1, you can configure a primary or secondary ENI. If the value of N is 2, you can configure a primary ENI and a secondary ENI. // * The second N indicates that one or more security group IDs can be specified. The valid values of N vary based on the maximum number of security groups to which an instance can belong. For more information, see the "Security group limits" section in [Limits](~~25412#SecurityGroupQuota1~~). // // Take note of the following items: // // * If `NetworkInterface.N.InstanceType` is set to `Primary`, you must set this parameter or `NetworkInterface.N.SecurityGroupId`. In this case, this parameter is equivalent to `SecurityGroupIds.N` and you cannot specify `SecurityGroupId`, `SecurityGroupIds.N`, or `NetworkInterface.N.SecurityGroupId`. // * If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. The default value is the ID of the security group to which to assign the ECS instance. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Repeated"` // The ID of the vSwitch to which to connect to ENI N. // // Take note of the following items: // // * Valid values of N: 1 and 2. If the value of N is 1, you can configure a primary or secondary ENI. If the value of N is 2, you must configure a primary ENI and a secondary ENI. // * If `NetworkInterface.N.InstanceType` is set to `Primary`, you must set this parameter. In this case, this parameter is equivalent to `VSwitchId` and you cannot specify `VSwitchId`. // * If `NetworkInterface.N.InstanceType` is set to `Secondary` or left empty, this parameter is optional. The default value is the ID of the vSwitch to which to connect the instance. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s CreateLaunchTemplateRequestNetworkInterface) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateRequestNetworkInterface) GoString() string { return s.String() } func (s *CreateLaunchTemplateRequestNetworkInterface) SetDescription(v string) *CreateLaunchTemplateRequestNetworkInterface { s.Description = &v return s } func (s *CreateLaunchTemplateRequestNetworkInterface) SetInstanceType(v string) *CreateLaunchTemplateRequestNetworkInterface { s.InstanceType = &v return s } func (s *CreateLaunchTemplateRequestNetworkInterface) SetNetworkInterfaceName(v string) *CreateLaunchTemplateRequestNetworkInterface { s.NetworkInterfaceName = &v return s } func (s *CreateLaunchTemplateRequestNetworkInterface) SetNetworkInterfaceTrafficMode(v string) *CreateLaunchTemplateRequestNetworkInterface { s.NetworkInterfaceTrafficMode = &v return s } func (s *CreateLaunchTemplateRequestNetworkInterface) SetPrimaryIpAddress(v string) *CreateLaunchTemplateRequestNetworkInterface { s.PrimaryIpAddress = &v return s } func (s *CreateLaunchTemplateRequestNetworkInterface) SetSecurityGroupId(v string) *CreateLaunchTemplateRequestNetworkInterface { s.SecurityGroupId = &v return s } func (s *CreateLaunchTemplateRequestNetworkInterface) SetSecurityGroupIds(v []*string) *CreateLaunchTemplateRequestNetworkInterface { s.SecurityGroupIds = v return s } func (s *CreateLaunchTemplateRequestNetworkInterface) SetVSwitchId(v string) *CreateLaunchTemplateRequestNetworkInterface { s.VSwitchId = &v return s } type CreateLaunchTemplateRequestTag struct { // The key of tag N to add to the instance, EBS device, and ENI. Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the instance, EBS device, and ENI. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length. It cannot start with acs: or aliyun or contain [http:// or https://.](http://https://。) Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateLaunchTemplateRequestTag) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateRequestTag) GoString() string { return s.String() } func (s *CreateLaunchTemplateRequestTag) SetKey(v string) *CreateLaunchTemplateRequestTag { s.Key = &v return s } func (s *CreateLaunchTemplateRequestTag) SetValue(v string) *CreateLaunchTemplateRequestTag { s.Value = &v return s } type CreateLaunchTemplateRequestTemplateTag struct { // The key of tag N to add to the launch template. Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the launch template. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateLaunchTemplateRequestTemplateTag) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateRequestTemplateTag) GoString() string { return s.String() } func (s *CreateLaunchTemplateRequestTemplateTag) SetKey(v string) *CreateLaunchTemplateRequestTemplateTag { s.Key = &v return s } func (s *CreateLaunchTemplateRequestTemplateTag) SetValue(v string) *CreateLaunchTemplateRequestTemplateTag { s.Value = &v return s } type CreateLaunchTemplateResponseBody struct { // The ID of the launch template. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The version number of the launch template. LaunchTemplateVersionNumber *int64 `json:"LaunchTemplateVersionNumber,omitempty" xml:"LaunchTemplateVersionNumber,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateLaunchTemplateResponseBody) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateResponseBody) GoString() string { return s.String() } func (s *CreateLaunchTemplateResponseBody) SetLaunchTemplateId(v string) *CreateLaunchTemplateResponseBody { s.LaunchTemplateId = &v return s } func (s *CreateLaunchTemplateResponseBody) SetLaunchTemplateVersionNumber(v int64) *CreateLaunchTemplateResponseBody { s.LaunchTemplateVersionNumber = &v return s } func (s *CreateLaunchTemplateResponseBody) SetRequestId(v string) *CreateLaunchTemplateResponseBody { s.RequestId = &v return s } type CreateLaunchTemplateResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateLaunchTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateLaunchTemplateResponse) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateResponse) GoString() string { return s.String() } func (s *CreateLaunchTemplateResponse) SetHeaders(v map[string]*string) *CreateLaunchTemplateResponse { s.Headers = v return s } func (s *CreateLaunchTemplateResponse) SetStatusCode(v int32) *CreateLaunchTemplateResponse { s.StatusCode = &v return s } func (s *CreateLaunchTemplateResponse) SetBody(v *CreateLaunchTemplateResponseBody) *CreateLaunchTemplateResponse { s.Body = v return s } type CreateLaunchTemplateVersionRequest struct { SystemDisk *CreateLaunchTemplateVersionRequestSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // The automatic release time of the instance. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. // // * If the value of `ss` is not `00`, the time is automatically rounded to the nearest minute based on the value of `mm`. // * The specified time must be at least 30 minutes later than the current time. // * The specified time can be at most three years from the current time. AutoReleaseTime *string `json:"AutoReleaseTime,omitempty" xml:"AutoReleaseTime,omitempty"` // The performance mode of the burstable instance. Valid values: // // * Standard: the standard mode. For more information, see the "Standard mode" section in [Burstable instances](~~59977~~). // * Unlimited: the unlimited mode. For more information, see the "Unlimited mode" section in [Burstable instances](~~59977~~). CreditSpecification *string `json:"CreditSpecification,omitempty" xml:"CreditSpecification,omitempty"` // The data disks. DataDisk []*CreateLaunchTemplateVersionRequestDataDisk `json:"DataDisk,omitempty" xml:"DataDisk,omitempty" type:"Repeated"` // Specifies whether to enable release protection for the instance. This parameter determines whether you can use the ECS console or call the [DeleteInstance](~~25507~~) operation to release the instance. Valid values: // // - true // - false // // Default value: false. // // >This parameter is applicable only to pay-as-you-go instances. It can protect instances against manual releases, but not against automatic releases. DeletionProtection *bool `json:"DeletionProtection,omitempty" xml:"DeletionProtection,omitempty"` // The ID of the deployment set to which to deploy the instance. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` // The description of the instance. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Specifies whether to enable the operating system configuration of the instance. EnableVmOsConfig *bool `json:"EnableVmOsConfig,omitempty" xml:"EnableVmOsConfig,omitempty"` // The hostname of the instance. // // * The hostname cannot start or end with a period (.) or hyphen (-). It cannot contain consecutive periods (.) or hyphens (-). // * For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. It can contain letters, digits, and hyphens (-). // * For instances that run other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate the hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-). HostName *string `json:"HostName,omitempty" xml:"HostName,omitempty"` // The ID of the image to use to create the Elastic Compute Service (ECS) instance. You can call the [DescribeImages](~~25534~~) operation to query available images. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The source of the image. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. ImageOwnerAlias *string `json:"ImageOwnerAlias,omitempty" xml:"ImageOwnerAlias,omitempty"` // The billing method of the instance. Valid values: // // * PrePaid: subscription. If you set this parameter to PrePaid, make sure that your account has sufficient credits. Otherwise, an `InvalidPayMethod` error is returned. // * PostPaid: pay-as-you-go InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance name. The name must be 2 to 128 characters in length, It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The instance type. For more information, see [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The billing method for network usage. Default value: PayByTraffic. Valid values: // // * PayByBandwidth: pay-by-bandwidth // * PayByTraffic: pay-by-traffic // // > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** billing method for network usage. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum inbound public bandwidth. Unit: Mbit/s. Valid values: // // * When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 1 to 10 and the default value is 10. // * If the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter range from 1 to the `InternetMaxBandwidthOut` value and the default value is the `InternetMaxBandwidthOut` value. InternetMaxBandwidthIn *int32 `json:"InternetMaxBandwidthIn,omitempty" xml:"InternetMaxBandwidthIn,omitempty"` // The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Specifies whether to create an I/O optimized instance. Valid values: // // * none: The instance is not I/O optimized. // * optimized: creates an I/O optimized instance. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The number of IPv6 addresses to randomly generate for the primary elastic network interface (ENI). Valid values: 1 to 10. Ipv6AddressCount *int32 `json:"Ipv6AddressCount,omitempty" xml:"Ipv6AddressCount,omitempty"` // The name of the key pair to bind to the instance. // // * For Windows instances, this parameter is ignored The `Password` parameter is valid even if the KeyPairName parameter is specified. // * For Linux instances, the password-based logon method is disabled by default. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The ID of the launch template. For more information, see [DescribeLaunchTemplates](~~73759~~). You must specify `LaunchTemplateId` or `LaunchTemplateName` to specify a launch template. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The name of the launch template. The name must be 2 to 128 characters in length, It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). LaunchTemplateName *string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty"` // The information of the ENI. NetworkInterface []*CreateLaunchTemplateVersionRequestNetworkInterface `json:"NetworkInterface,omitempty" xml:"NetworkInterface,omitempty" type:"Repeated"` // The network type of the instance. Valid values: // // * classic: classic network // * vpc: VPC NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // Specifies whether to use the password that is preconfigured in the image. Valid values: // // * true: uses the password that is preconfigured in the mage. // * false: does not use the password that is preconfigured in the image. // // Default value: false. // // > If the PasswordInherit parameter is specified, you must leave the Password parameter empty. Before you use this parameter, make sure that a password is preset for the image. PasswordInherit *bool `json:"PasswordInherit,omitempty" xml:"PasswordInherit,omitempty"` // The subscription period of the instance. Unit: months. This parameter is valid and required only when `InstanceChargeType` is set to `PrePaid`. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The private IP address to assign to the instance. // // To assign a private IP address to an instance of the VPC type, make sure that the IP address is an idle IP address within the CIDR block of the vSwitch specified by the `VSwitchId` parameter. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // The name of the instance Resource Access Management (RAM) role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The region ID of the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the instance. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether to enable security hardening for the operating system. Valid values: // // * Active: Security hardening is enabled. This value is applicable only to public images. // * Deactive: Security hardening is disabled. This value is available to all types of images. SecurityEnhancementStrategy *string `json:"SecurityEnhancementStrategy,omitempty" xml:"SecurityEnhancementStrategy,omitempty"` // The ID of the security group to which to assign the instance. Instances within the same security group can access each other. // // > The `SecurityGroupId` parameter and the `SecurityGroupIds.N` parameter are mutually exclusive. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The ID of security group N to which to assign the instance. The valid values of N depend on the maximum number of security groups to which the instance can belong. For more information, see [Quantity limits](~~25412~~). // // > The `SecurityGroupId` parameter and the `SecurityGroupIds.N` parameter are mutually exclusive. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Repeated"` // The retention period of the preemptible instance. Unit: hours. Valid values: 0, 1, 2, 3, 4, 5, and 6 // // * The following protection periods are available in invitational preview: 2, 3, 4, 5, and 6 hours. If you want to set this parameter to one of these values, submit a ticket. // * A value of 0 indicates that no protection period is configured for the preemptible instance. // // Default value: 1. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The maximum hourly price of the preemptible instance. A maximum of three decimal places are allowed. SpotPriceLimit *float32 `json:"SpotPriceLimit,omitempty" xml:"SpotPriceLimit,omitempty"` // The preemption policy for the pay-as-you-go instance. This parameter is valid only when the `InstanceChargeType` parameter is set to `PostPaid`. Default value: NoSpot. Valid values: // // * NoSpot: The instance is created as a pay-as-you-go instance. // * SpotWithPriceLimit: The instances of the compute node are preemptible instances. These types of instances have a specified maximum hourly price. // * SpotAsPriceGo: The instance is created as a preemptible instance for which the market price at the time of purchase is automatically used as the bid price. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The tags to add to the activation code. Tag []*CreateLaunchTemplateVersionRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The user data of the instance. The user data must be encoded in Base64. The maximum size of raw data is 16 KB. UserData *string `json:"UserData,omitempty" xml:"UserData,omitempty"` // The ID of the vSwitch to which to connect the instance. This parameter is required if you specify the VpcId parameter. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The description of the launch template version. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. VersionDescription *string `json:"VersionDescription,omitempty" xml:"VersionDescription,omitempty"` // The ID of the virtual private cloud (VPC). VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` // The ID of the zone to which the instance belongs. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateLaunchTemplateVersionRequest) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateVersionRequest) GoString() string { return s.String() } func (s *CreateLaunchTemplateVersionRequest) SetSystemDisk(v *CreateLaunchTemplateVersionRequestSystemDisk) *CreateLaunchTemplateVersionRequest { s.SystemDisk = v return s } func (s *CreateLaunchTemplateVersionRequest) SetAutoReleaseTime(v string) *CreateLaunchTemplateVersionRequest { s.AutoReleaseTime = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetCreditSpecification(v string) *CreateLaunchTemplateVersionRequest { s.CreditSpecification = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetDataDisk(v []*CreateLaunchTemplateVersionRequestDataDisk) *CreateLaunchTemplateVersionRequest { s.DataDisk = v return s } func (s *CreateLaunchTemplateVersionRequest) SetDeletionProtection(v bool) *CreateLaunchTemplateVersionRequest { s.DeletionProtection = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetDeploymentSetId(v string) *CreateLaunchTemplateVersionRequest { s.DeploymentSetId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetDescription(v string) *CreateLaunchTemplateVersionRequest { s.Description = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetEnableVmOsConfig(v bool) *CreateLaunchTemplateVersionRequest { s.EnableVmOsConfig = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetHostName(v string) *CreateLaunchTemplateVersionRequest { s.HostName = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetImageId(v string) *CreateLaunchTemplateVersionRequest { s.ImageId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetImageOwnerAlias(v string) *CreateLaunchTemplateVersionRequest { s.ImageOwnerAlias = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetInstanceChargeType(v string) *CreateLaunchTemplateVersionRequest { s.InstanceChargeType = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetInstanceName(v string) *CreateLaunchTemplateVersionRequest { s.InstanceName = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetInstanceType(v string) *CreateLaunchTemplateVersionRequest { s.InstanceType = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetInternetChargeType(v string) *CreateLaunchTemplateVersionRequest { s.InternetChargeType = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetInternetMaxBandwidthIn(v int32) *CreateLaunchTemplateVersionRequest { s.InternetMaxBandwidthIn = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetInternetMaxBandwidthOut(v int32) *CreateLaunchTemplateVersionRequest { s.InternetMaxBandwidthOut = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetIoOptimized(v string) *CreateLaunchTemplateVersionRequest { s.IoOptimized = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetIpv6AddressCount(v int32) *CreateLaunchTemplateVersionRequest { s.Ipv6AddressCount = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetKeyPairName(v string) *CreateLaunchTemplateVersionRequest { s.KeyPairName = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetLaunchTemplateId(v string) *CreateLaunchTemplateVersionRequest { s.LaunchTemplateId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetLaunchTemplateName(v string) *CreateLaunchTemplateVersionRequest { s.LaunchTemplateName = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetNetworkInterface(v []*CreateLaunchTemplateVersionRequestNetworkInterface) *CreateLaunchTemplateVersionRequest { s.NetworkInterface = v return s } func (s *CreateLaunchTemplateVersionRequest) SetNetworkType(v string) *CreateLaunchTemplateVersionRequest { s.NetworkType = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetOwnerAccount(v string) *CreateLaunchTemplateVersionRequest { s.OwnerAccount = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetOwnerId(v int64) *CreateLaunchTemplateVersionRequest { s.OwnerId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetPasswordInherit(v bool) *CreateLaunchTemplateVersionRequest { s.PasswordInherit = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetPeriod(v int32) *CreateLaunchTemplateVersionRequest { s.Period = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetPrivateIpAddress(v string) *CreateLaunchTemplateVersionRequest { s.PrivateIpAddress = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetRamRoleName(v string) *CreateLaunchTemplateVersionRequest { s.RamRoleName = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetRegionId(v string) *CreateLaunchTemplateVersionRequest { s.RegionId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetResourceGroupId(v string) *CreateLaunchTemplateVersionRequest { s.ResourceGroupId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetResourceOwnerAccount(v string) *CreateLaunchTemplateVersionRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetResourceOwnerId(v int64) *CreateLaunchTemplateVersionRequest { s.ResourceOwnerId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetSecurityEnhancementStrategy(v string) *CreateLaunchTemplateVersionRequest { s.SecurityEnhancementStrategy = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetSecurityGroupId(v string) *CreateLaunchTemplateVersionRequest { s.SecurityGroupId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetSecurityGroupIds(v []*string) *CreateLaunchTemplateVersionRequest { s.SecurityGroupIds = v return s } func (s *CreateLaunchTemplateVersionRequest) SetSpotDuration(v int32) *CreateLaunchTemplateVersionRequest { s.SpotDuration = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetSpotPriceLimit(v float32) *CreateLaunchTemplateVersionRequest { s.SpotPriceLimit = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetSpotStrategy(v string) *CreateLaunchTemplateVersionRequest { s.SpotStrategy = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetTag(v []*CreateLaunchTemplateVersionRequestTag) *CreateLaunchTemplateVersionRequest { s.Tag = v return s } func (s *CreateLaunchTemplateVersionRequest) SetUserData(v string) *CreateLaunchTemplateVersionRequest { s.UserData = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetVSwitchId(v string) *CreateLaunchTemplateVersionRequest { s.VSwitchId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetVersionDescription(v string) *CreateLaunchTemplateVersionRequest { s.VersionDescription = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetVpcId(v string) *CreateLaunchTemplateVersionRequest { s.VpcId = &v return s } func (s *CreateLaunchTemplateVersionRequest) SetZoneId(v string) *CreateLaunchTemplateVersionRequest { s.ZoneId = &v return s } type CreateLaunchTemplateVersionRequestSystemDisk struct { // The ID of the automatic snapshot policy to apply to the system disk. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // Specifies whether to enable the performance burst feature. Valid values: // // * true: encrypts the disk. // * false: does not enable the performance burst feature. BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` // The category of the system disk. Valid values: // // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_auto: ESSD AutoPL disk // * cloud_essd: enhanced SSD (ESSD). You can use the `SystemDisk.PerformanceLevel` parameter to set the performance level of the ESSD to use as the system disk. // // For non-I/O optimized instances of a retired instance type, the default value is cloud. For other types of instances, the default value is cloud_efficiency. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Specifies whether to release the system disk when the instance is released. Valid values: // // * true: releases data disk N when the instance is released. // * false: does not release data disk N when the instance is released. // // Default value: true. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of the system disk. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The name of the system disk. The name must be 2 to 128 characters in length, It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // Specifies whether to encrypt the system disk. Valid values: // // * true // * false // // Default value: false // // > You cannot encrypt system disks when you create instances in Hong Kong Zone D or Singapore Zone A. Encrypted *string `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // > This parameter is unavailable. Iops *int32 `json:"Iops,omitempty" xml:"Iops,omitempty"` // The performance level of the ESSD to be used as the system disk. Default value: PL0. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS} // // Baseline IOPS = min{1,800 + 50 × Capacity, 50,000} // // > This parameter is available only if you set the Category parameter to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~) and [Modify the performance configurations of an ESSD AutoPL disk](~~413275~~). ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` // The size of the system disk. Unit: GiB. Valid values: 20 to 500. // // The value of this parameter must be at least 20 and greater than or equal to the size of the specified image. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` } func (s CreateLaunchTemplateVersionRequestSystemDisk) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateVersionRequestSystemDisk) GoString() string { return s.String() } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetAutoSnapshotPolicyId(v string) *CreateLaunchTemplateVersionRequestSystemDisk { s.AutoSnapshotPolicyId = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetBurstingEnabled(v bool) *CreateLaunchTemplateVersionRequestSystemDisk { s.BurstingEnabled = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetCategory(v string) *CreateLaunchTemplateVersionRequestSystemDisk { s.Category = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetDeleteWithInstance(v bool) *CreateLaunchTemplateVersionRequestSystemDisk { s.DeleteWithInstance = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetDescription(v string) *CreateLaunchTemplateVersionRequestSystemDisk { s.Description = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetDiskName(v string) *CreateLaunchTemplateVersionRequestSystemDisk { s.DiskName = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetEncrypted(v string) *CreateLaunchTemplateVersionRequestSystemDisk { s.Encrypted = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetIops(v int32) *CreateLaunchTemplateVersionRequestSystemDisk { s.Iops = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetPerformanceLevel(v string) *CreateLaunchTemplateVersionRequestSystemDisk { s.PerformanceLevel = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetProvisionedIops(v int64) *CreateLaunchTemplateVersionRequestSystemDisk { s.ProvisionedIops = &v return s } func (s *CreateLaunchTemplateVersionRequestSystemDisk) SetSize(v int32) *CreateLaunchTemplateVersionRequestSystemDisk { s.Size = &v return s } type CreateLaunchTemplateVersionRequestDataDisk struct { // The ID of the automatic snapshot policy to apply to data disk N. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // Specifies whether to enable the performance burst feature. Valid values: // // * true: encrypts the disk. // * false: does not enable the performance burst feature. BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` // The category of data disk N. Valid values: // // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_auto: ESSD AutoPL disk // * cloud_essd: ESSD // // For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Specifies whether to release data disk N when the instance is released. Valid values: // // * true: releases data disk N when the instance is released. // * false: does not release data disk N when the instance is released. // // Default value: true. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of data disk N. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The name of data disk N. The name must be 2 to 128 characters in length, It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // Specifies whether to encrypt data disk N. Encrypted *string `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The performance level of the ESSD to use as data disk N. The value of N must be the same as that in `DataDisk.N.Category` when DataDisk.N.Category is set to cloud_essd. Default value: PL1. Valid values: // // * PL0: An ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS} // // Baseline IOPS = min{1,800 + 50 × Capacity, 50,000} // // > This parameter is available only if you set the Category parameter to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~) and [Modify the performance configurations of an ESSD AutoPL disk](~~413275~~). ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` // The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values: // // * Valid values if you set the Category parameter to cloud: 5 to 2000. // // * Valid values if you set the Category parameter to cloud_efficiency: 20 to 32768. // // * Valid values when DataDisk.N.Category is set to cloud_ssd: 20 to 32768. // // * Valid values when DataDisk.N.Category is set to cloud_essd: depend on the `DataDisk.N.PerformanceLevel` value. // // * Valid values when DataDisk.N.PerformanceLevel is set to PL0: 40 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL3: 1261 to 32768. // // The value of this parameter must be greater than or equal to the size of the snapshot specified by the `SnapshotId` parameter. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16. If the `DataDisk.N.SnapshotId` parameter is specified, the `DataDisk.N.Size` parameter is ignored. The data disk is created with the size of the specified snapshot. // // Use snapshots that were created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s CreateLaunchTemplateVersionRequestDataDisk) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateVersionRequestDataDisk) GoString() string { return s.String() } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetAutoSnapshotPolicyId(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.AutoSnapshotPolicyId = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetBurstingEnabled(v bool) *CreateLaunchTemplateVersionRequestDataDisk { s.BurstingEnabled = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetCategory(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.Category = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetDeleteWithInstance(v bool) *CreateLaunchTemplateVersionRequestDataDisk { s.DeleteWithInstance = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetDescription(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.Description = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetDevice(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.Device = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetDiskName(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.DiskName = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetEncrypted(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.Encrypted = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetPerformanceLevel(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.PerformanceLevel = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetProvisionedIops(v int64) *CreateLaunchTemplateVersionRequestDataDisk { s.ProvisionedIops = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetSize(v int32) *CreateLaunchTemplateVersionRequestDataDisk { s.Size = &v return s } func (s *CreateLaunchTemplateVersionRequestDataDisk) SetSnapshotId(v string) *CreateLaunchTemplateVersionRequestDataDisk { s.SnapshotId = &v return s } type CreateLaunchTemplateVersionRequestNetworkInterface struct { // The description of the secondary ENI. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. The value of N in `NetworkInterface.N` cannot be greater than 1. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The name of the secondary ENI. The value of N in `NetworkInterface.N` cannot be greater than 1. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The communication mode of the primary ENI. Valid values: // // * Standard: uses the TCP communication mode. // * HighPerformance: enables Elastic RDMA Interface (ERI) and uses the remote direct memory access (RDMA) communication mode. NetworkInterfaceTrafficMode *string `json:"NetworkInterfaceTrafficMode,omitempty" xml:"NetworkInterfaceTrafficMode,omitempty"` // The primary private IP address of the secondary ENI. The value of N in `NetworkInterface.N` cannot be greater than 1. PrimaryIpAddress *string `json:"PrimaryIpAddress,omitempty" xml:"PrimaryIpAddress,omitempty"` // The ID of the security group to which to assign the secondary ENI. The security groups of the secondary ENI and of the instance must belong to the same VPC. The value of N in `NetworkInterface.N` cannot be greater than 1. // // > The `NetworkInterface.N.SecurityGroupId` parameter and the `NetworkInterface.N.SecurityGroupIds.N` parameter are mutually exclusive. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The ID of security group N to which to assign the secondary ENI. The security group and the secondary ENI must belong to the same VPC. The valid values of N in `SecurityGroupIds.N` depend on the maximum number of security groups to which the secondary ENI can belong. For more information, see the "Security group limits" section in [Limits](~~25412~~). The value of N in `NetworkInterface.N` cannot be greater than 1. // // > The `NetworkInterface.N.SecurityGroupId` parameter and the `NetworkInterface.N.SecurityGroupIds.N` parameter are mutually exclusive. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Repeated"` // The ID of the vSwitch to which to connect the secondary ENI. The instance and the ENI must be located within the same zone of the same VPC, but they can be connected to different vSwitches. The value of N in `NetworkInterface.N` cannot be greater than 1. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s CreateLaunchTemplateVersionRequestNetworkInterface) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateVersionRequestNetworkInterface) GoString() string { return s.String() } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetDescription(v string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.Description = &v return s } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetInstanceType(v string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.InstanceType = &v return s } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetNetworkInterfaceName(v string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.NetworkInterfaceName = &v return s } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetNetworkInterfaceTrafficMode(v string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.NetworkInterfaceTrafficMode = &v return s } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetPrimaryIpAddress(v string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.PrimaryIpAddress = &v return s } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetSecurityGroupId(v string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.SecurityGroupId = &v return s } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetSecurityGroupIds(v []*string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.SecurityGroupIds = v return s } func (s *CreateLaunchTemplateVersionRequestNetworkInterface) SetVSwitchId(v string) *CreateLaunchTemplateVersionRequestNetworkInterface { s.VSwitchId = &v return s } type CreateLaunchTemplateVersionRequestTag struct { // The key of tag N to add to the instance, block storage devices, or primary ENI. Valid values of N: 1 to 5. The tag key cannot be an empty string. It can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the instance, block storage devices, or primary ENI. Valid values of N: 1 to 5. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateLaunchTemplateVersionRequestTag) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateVersionRequestTag) GoString() string { return s.String() } func (s *CreateLaunchTemplateVersionRequestTag) SetKey(v string) *CreateLaunchTemplateVersionRequestTag { s.Key = &v return s } func (s *CreateLaunchTemplateVersionRequestTag) SetValue(v string) *CreateLaunchTemplateVersionRequestTag { s.Value = &v return s } type CreateLaunchTemplateVersionResponseBody struct { // 启动模板ID。更多信息,请参见[DescribeLaunchTemplates](~~73759~~)。 // // 使用启动模板创建实例时,您必须指定`LaunchTemplateId`或`LaunchTemplateName`以确定启动模板。 LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The version number of the launch template. LaunchTemplateVersionNumber *int64 `json:"LaunchTemplateVersionNumber,omitempty" xml:"LaunchTemplateVersionNumber,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateLaunchTemplateVersionResponseBody) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateVersionResponseBody) GoString() string { return s.String() } func (s *CreateLaunchTemplateVersionResponseBody) SetLaunchTemplateId(v string) *CreateLaunchTemplateVersionResponseBody { s.LaunchTemplateId = &v return s } func (s *CreateLaunchTemplateVersionResponseBody) SetLaunchTemplateVersionNumber(v int64) *CreateLaunchTemplateVersionResponseBody { s.LaunchTemplateVersionNumber = &v return s } func (s *CreateLaunchTemplateVersionResponseBody) SetRequestId(v string) *CreateLaunchTemplateVersionResponseBody { s.RequestId = &v return s } type CreateLaunchTemplateVersionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateLaunchTemplateVersionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateLaunchTemplateVersionResponse) String() string { return tea.Prettify(s) } func (s CreateLaunchTemplateVersionResponse) GoString() string { return s.String() } func (s *CreateLaunchTemplateVersionResponse) SetHeaders(v map[string]*string) *CreateLaunchTemplateVersionResponse { s.Headers = v return s } func (s *CreateLaunchTemplateVersionResponse) SetStatusCode(v int32) *CreateLaunchTemplateVersionResponse { s.StatusCode = &v return s } func (s *CreateLaunchTemplateVersionResponse) SetBody(v *CreateLaunchTemplateVersionResponseBody) *CreateLaunchTemplateVersionResponse { s.Body = v return s } type CreateNatGatewayRequest struct { BandwidthPackage []*CreateNatGatewayRequestBandwidthPackage `json:"BandwidthPackage,omitempty" xml:"BandwidthPackage,omitempty" type:"Repeated"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s CreateNatGatewayRequest) String() string { return tea.Prettify(s) } func (s CreateNatGatewayRequest) GoString() string { return s.String() } func (s *CreateNatGatewayRequest) SetBandwidthPackage(v []*CreateNatGatewayRequestBandwidthPackage) *CreateNatGatewayRequest { s.BandwidthPackage = v return s } func (s *CreateNatGatewayRequest) SetClientToken(v string) *CreateNatGatewayRequest { s.ClientToken = &v return s } func (s *CreateNatGatewayRequest) SetDescription(v string) *CreateNatGatewayRequest { s.Description = &v return s } func (s *CreateNatGatewayRequest) SetName(v string) *CreateNatGatewayRequest { s.Name = &v return s } func (s *CreateNatGatewayRequest) SetOwnerAccount(v string) *CreateNatGatewayRequest { s.OwnerAccount = &v return s } func (s *CreateNatGatewayRequest) SetOwnerId(v int64) *CreateNatGatewayRequest { s.OwnerId = &v return s } func (s *CreateNatGatewayRequest) SetRegionId(v string) *CreateNatGatewayRequest { s.RegionId = &v return s } func (s *CreateNatGatewayRequest) SetResourceOwnerAccount(v string) *CreateNatGatewayRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateNatGatewayRequest) SetResourceOwnerId(v int64) *CreateNatGatewayRequest { s.ResourceOwnerId = &v return s } func (s *CreateNatGatewayRequest) SetVpcId(v string) *CreateNatGatewayRequest { s.VpcId = &v return s } type CreateNatGatewayRequestBandwidthPackage struct { Bandwidth *int32 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` IpCount *int32 `json:"IpCount,omitempty" xml:"IpCount,omitempty"` Zone *string `json:"Zone,omitempty" xml:"Zone,omitempty"` } func (s CreateNatGatewayRequestBandwidthPackage) String() string { return tea.Prettify(s) } func (s CreateNatGatewayRequestBandwidthPackage) GoString() string { return s.String() } func (s *CreateNatGatewayRequestBandwidthPackage) SetBandwidth(v int32) *CreateNatGatewayRequestBandwidthPackage { s.Bandwidth = &v return s } func (s *CreateNatGatewayRequestBandwidthPackage) SetIpCount(v int32) *CreateNatGatewayRequestBandwidthPackage { s.IpCount = &v return s } func (s *CreateNatGatewayRequestBandwidthPackage) SetZone(v string) *CreateNatGatewayRequestBandwidthPackage { s.Zone = &v return s } type CreateNatGatewayResponseBody struct { BandwidthPackageIds *CreateNatGatewayResponseBodyBandwidthPackageIds `json:"BandwidthPackageIds,omitempty" xml:"BandwidthPackageIds,omitempty" type:"Struct"` ForwardTableIds *CreateNatGatewayResponseBodyForwardTableIds `json:"ForwardTableIds,omitempty" xml:"ForwardTableIds,omitempty" type:"Struct"` NatGatewayId *string `json:"NatGatewayId,omitempty" xml:"NatGatewayId,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateNatGatewayResponseBody) String() string { return tea.Prettify(s) } func (s CreateNatGatewayResponseBody) GoString() string { return s.String() } func (s *CreateNatGatewayResponseBody) SetBandwidthPackageIds(v *CreateNatGatewayResponseBodyBandwidthPackageIds) *CreateNatGatewayResponseBody { s.BandwidthPackageIds = v return s } func (s *CreateNatGatewayResponseBody) SetForwardTableIds(v *CreateNatGatewayResponseBodyForwardTableIds) *CreateNatGatewayResponseBody { s.ForwardTableIds = v return s } func (s *CreateNatGatewayResponseBody) SetNatGatewayId(v string) *CreateNatGatewayResponseBody { s.NatGatewayId = &v return s } func (s *CreateNatGatewayResponseBody) SetRequestId(v string) *CreateNatGatewayResponseBody { s.RequestId = &v return s } type CreateNatGatewayResponseBodyBandwidthPackageIds struct { BandwidthPackageId []*string `json:"BandwidthPackageId,omitempty" xml:"BandwidthPackageId,omitempty" type:"Repeated"` } func (s CreateNatGatewayResponseBodyBandwidthPackageIds) String() string { return tea.Prettify(s) } func (s CreateNatGatewayResponseBodyBandwidthPackageIds) GoString() string { return s.String() } func (s *CreateNatGatewayResponseBodyBandwidthPackageIds) SetBandwidthPackageId(v []*string) *CreateNatGatewayResponseBodyBandwidthPackageIds { s.BandwidthPackageId = v return s } type CreateNatGatewayResponseBodyForwardTableIds struct { ForwardTableId []*string `json:"ForwardTableId,omitempty" xml:"ForwardTableId,omitempty" type:"Repeated"` } func (s CreateNatGatewayResponseBodyForwardTableIds) String() string { return tea.Prettify(s) } func (s CreateNatGatewayResponseBodyForwardTableIds) GoString() string { return s.String() } func (s *CreateNatGatewayResponseBodyForwardTableIds) SetForwardTableId(v []*string) *CreateNatGatewayResponseBodyForwardTableIds { s.ForwardTableId = v return s } type CreateNatGatewayResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateNatGatewayResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateNatGatewayResponse) String() string { return tea.Prettify(s) } func (s CreateNatGatewayResponse) GoString() string { return s.String() } func (s *CreateNatGatewayResponse) SetHeaders(v map[string]*string) *CreateNatGatewayResponse { s.Headers = v return s } func (s *CreateNatGatewayResponse) SetStatusCode(v int32) *CreateNatGatewayResponse { s.StatusCode = &v return s } func (s *CreateNatGatewayResponse) SetBody(v *CreateNatGatewayResponseBody) *CreateNatGatewayResponse { s.Body = v return s } type CreateNetworkInterfaceRequest struct { // > This parameter is no longer used. BusinessType *string `json:"BusinessType,omitempty" xml:"BusinessType,omitempty"` // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // Specifies whether to release the ENI when the associated instance is released. Valid values: // // * true // * false DeleteOnRelease *bool `json:"DeleteOnRelease,omitempty" xml:"DeleteOnRelease,omitempty"` // The description of the ENI. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. // // This parameter is empty by default. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The type of the ENI. Valid values: // // * Secondary: secondary ENI. // * Trunk: trunk ENI. This value is in invitational preview. // // Default value: Secondary. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // IPv4 prefixes to assign to the ENI. Valid values of N: 1 to 10. // // > To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both. Ipv4Prefix []*string `json:"Ipv4Prefix,omitempty" xml:"Ipv4Prefix,omitempty" type:"Repeated"` // The number of IPv4 prefixes to assign to the ENI. Valid values: 1 to 10. // // > To assign IPv4 prefixes to the ENI, you must specify the Ipv4Prefix.N or Ipv4PrefixCount parameter, but not both. Ipv4PrefixCount *int32 `json:"Ipv4PrefixCount,omitempty" xml:"Ipv4PrefixCount,omitempty"` // IPv6 addresses to assign to the ENI. Valid values of N: 1 to 10. // // Example: Ipv6Address.1=2001:db8:1234:1a00::\*\*\*\* // // > To assign IPv6 addresses to the ENI, you must specify the `Ipv6Addresses.N` or `Ipv6AddressCount` parameter, but not both. Ipv6Address []*string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty" type:"Repeated"` // The number of IPv6 addresses to randomly generate for the ENI. Valid values: 1 to 10. // // > To assign IPv6 addresses to the ENI, you must specify the `Ipv6Addresses.N` or `Ipv6AddressCount` parameter, but not both. Ipv6AddressCount *int32 `json:"Ipv6AddressCount,omitempty" xml:"Ipv6AddressCount,omitempty"` // IPv6 prefixes to assign to the ENI. Valid values of N: 1 to 10. // // > To assign IPv6 prefixes to the ENI, you must specify the Ipv6Prefix.N or Ipv6PrefixCount parameter, but not both. Ipv6Prefix []*string `json:"Ipv6Prefix,omitempty" xml:"Ipv6Prefix,omitempty" type:"Repeated"` // The number of IPv6 prefixes to assign to the ENI. Valid values: 1 to 10. // // > To assign IPv6 prefixes to the ENI, you must specify the Ipv6Prefix.N or Ipv6PrefixCount parameter, but not both. Ipv6PrefixCount *int32 `json:"Ipv6PrefixCount,omitempty" xml:"Ipv6PrefixCount,omitempty"` // The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (\_), and hyphens (-). It must start with a letter and cannot start with `http://` or `https://`. // // This parameter is empty by default. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The communication mode of the ENI. Valid values: // // * Standard: uses the TCP communication mode. // * HighPerformance: uses the remote direct memory access (RDMA) communication mode with Elastic RDMA Interface (ERI) enabled. // // > ENIs in RDMA mode can be attached only to instances of the instance types that support ERIs. The number of ENIs in RDMA mode that are attached to an instance cannot exceed the maximum number of ENIs that the instance type supports. For more information, see [Overview of ECS instance families](~~25378~~) and [Configure eRDMA on an enterprise-level instance](~~336853~~). // // Default value: Standard. NetworkInterfaceTrafficMode *string `json:"NetworkInterfaceTrafficMode,omitempty" xml:"NetworkInterfaceTrafficMode,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The primary private IP address of the ENI. // // The specified IP address must be an idle IP address within the CIDR block of the vSwitch with which to associate the ENI. If this parameter is not specified, an idle IP address is assigned from within the vSwitch CIDR block at random. PrimaryIpAddress *string `json:"PrimaryIpAddress,omitempty" xml:"PrimaryIpAddress,omitempty"` // Secondary private IP addresses to assign to the ENI. The IP addresses must be idle IP addresses in the CIDR block of the vSwitch with which to associate the ENI. Valid values of N: 0 to 10. // // > To assign secondary private IP addresses to the ENI, you can specify the `PrivateIpAddress.N` or `SecondaryPrivateIpAddressCount` parameter, but not both. PrivateIpAddress []*string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty" type:"Repeated"` // The number of queues supported by the ENI. Valid values: 1 to 2048. // // When you attach the ENI to an instance, make sure that the value of this parameter is less than the maximum number of queues per ENI that is allowed for the instance type. To view the maximum number of queues per ENI allowed for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation and then check the return value of `MaximumQueueNumberPerEni`. // // This parameter is left empty by default. If you do not specify this parameter, the default number of queues per ENI for the instance type of an instance is used when you attach the ENI to the instance. To view the default number of queues per ENI for an instance type, you can call the [DescribeInstanceTypes](~~25620~~) operation and then check the return value of `SecondaryEniQueueNumber`. QueueNumber *int32 `json:"QueueNumber,omitempty" xml:"QueueNumber,omitempty"` // > This parameter is in invitational preview and is not publicly available. QueuePairNumber *int32 `json:"QueuePairNumber,omitempty" xml:"QueuePairNumber,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which you want to assign the ENI. You can call the [ListResourceGroups](~~158855~~) operation to query the most recent resource group list. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The receive (Rx) queue depth of the ENI. // // Take note of the following items: // // * The Rx queue depth of an ENI must be the same as the Tx queue depth of the ENI. Valid values: powers of 2 in the range of 8192 to 16384. // * A larger Rx queue depth yields higher inbound throughput but consumes more memory. RxQueueSize *int32 `json:"RxQueueSize,omitempty" xml:"RxQueueSize,omitempty"` // The number of private IP addresses to be assigned by ECS. Valid values: 1 to 49. SecondaryPrivateIpAddressCount *int32 `json:"SecondaryPrivateIpAddressCount,omitempty" xml:"SecondaryPrivateIpAddressCount,omitempty"` // The ID of the security group to which to assign the ENI. The security group and the ENI must belong to the same VPC. // // > You must specify `SecurityGroupId` or `SecurityGroupIds.N` but not both. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The ID of security group N to which to assign the ENI. The security group and the ENI must belong to the same VPC. The valid values of N are determined based on the maximum number of security groups to which an ENI can be assigned. For more information, see [Limits](~~25412~~). // // ** // // You must specify **SecurityGroupId** or SecurityGroupIds.N but not both.```` SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Repeated"` // The tags to add to the ENI. Tag []*CreateNetworkInterfaceRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The transmit (Tx) queue depth of the ENI. // // Take note of the following items: // // * The Tx queue depth of an ENI must be the same as the Rx queue depth of the ENI. Valid values: powers of 2 in the range of 8192 to 16384. // * A larger Tx queue depth yields higher outbound throughput but consumes more memory. TxQueueSize *int32 `json:"TxQueueSize,omitempty" xml:"TxQueueSize,omitempty"` // The ID of the vSwitch with which to associate the ENI. Private IP addresses are assigned to the ENI from within the CIDR block of the vSwitch. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // > This parameter is no longer used. Visible *bool `json:"Visible,omitempty" xml:"Visible,omitempty"` } func (s CreateNetworkInterfaceRequest) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceRequest) GoString() string { return s.String() } func (s *CreateNetworkInterfaceRequest) SetBusinessType(v string) *CreateNetworkInterfaceRequest { s.BusinessType = &v return s } func (s *CreateNetworkInterfaceRequest) SetClientToken(v string) *CreateNetworkInterfaceRequest { s.ClientToken = &v return s } func (s *CreateNetworkInterfaceRequest) SetDeleteOnRelease(v bool) *CreateNetworkInterfaceRequest { s.DeleteOnRelease = &v return s } func (s *CreateNetworkInterfaceRequest) SetDescription(v string) *CreateNetworkInterfaceRequest { s.Description = &v return s } func (s *CreateNetworkInterfaceRequest) SetInstanceType(v string) *CreateNetworkInterfaceRequest { s.InstanceType = &v return s } func (s *CreateNetworkInterfaceRequest) SetIpv4Prefix(v []*string) *CreateNetworkInterfaceRequest { s.Ipv4Prefix = v return s } func (s *CreateNetworkInterfaceRequest) SetIpv4PrefixCount(v int32) *CreateNetworkInterfaceRequest { s.Ipv4PrefixCount = &v return s } func (s *CreateNetworkInterfaceRequest) SetIpv6Address(v []*string) *CreateNetworkInterfaceRequest { s.Ipv6Address = v return s } func (s *CreateNetworkInterfaceRequest) SetIpv6AddressCount(v int32) *CreateNetworkInterfaceRequest { s.Ipv6AddressCount = &v return s } func (s *CreateNetworkInterfaceRequest) SetIpv6Prefix(v []*string) *CreateNetworkInterfaceRequest { s.Ipv6Prefix = v return s } func (s *CreateNetworkInterfaceRequest) SetIpv6PrefixCount(v int32) *CreateNetworkInterfaceRequest { s.Ipv6PrefixCount = &v return s } func (s *CreateNetworkInterfaceRequest) SetNetworkInterfaceName(v string) *CreateNetworkInterfaceRequest { s.NetworkInterfaceName = &v return s } func (s *CreateNetworkInterfaceRequest) SetNetworkInterfaceTrafficMode(v string) *CreateNetworkInterfaceRequest { s.NetworkInterfaceTrafficMode = &v return s } func (s *CreateNetworkInterfaceRequest) SetOwnerAccount(v string) *CreateNetworkInterfaceRequest { s.OwnerAccount = &v return s } func (s *CreateNetworkInterfaceRequest) SetOwnerId(v int64) *CreateNetworkInterfaceRequest { s.OwnerId = &v return s } func (s *CreateNetworkInterfaceRequest) SetPrimaryIpAddress(v string) *CreateNetworkInterfaceRequest { s.PrimaryIpAddress = &v return s } func (s *CreateNetworkInterfaceRequest) SetPrivateIpAddress(v []*string) *CreateNetworkInterfaceRequest { s.PrivateIpAddress = v return s } func (s *CreateNetworkInterfaceRequest) SetQueueNumber(v int32) *CreateNetworkInterfaceRequest { s.QueueNumber = &v return s } func (s *CreateNetworkInterfaceRequest) SetQueuePairNumber(v int32) *CreateNetworkInterfaceRequest { s.QueuePairNumber = &v return s } func (s *CreateNetworkInterfaceRequest) SetRegionId(v string) *CreateNetworkInterfaceRequest { s.RegionId = &v return s } func (s *CreateNetworkInterfaceRequest) SetResourceGroupId(v string) *CreateNetworkInterfaceRequest { s.ResourceGroupId = &v return s } func (s *CreateNetworkInterfaceRequest) SetResourceOwnerAccount(v string) *CreateNetworkInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateNetworkInterfaceRequest) SetResourceOwnerId(v int64) *CreateNetworkInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *CreateNetworkInterfaceRequest) SetRxQueueSize(v int32) *CreateNetworkInterfaceRequest { s.RxQueueSize = &v return s } func (s *CreateNetworkInterfaceRequest) SetSecondaryPrivateIpAddressCount(v int32) *CreateNetworkInterfaceRequest { s.SecondaryPrivateIpAddressCount = &v return s } func (s *CreateNetworkInterfaceRequest) SetSecurityGroupId(v string) *CreateNetworkInterfaceRequest { s.SecurityGroupId = &v return s } func (s *CreateNetworkInterfaceRequest) SetSecurityGroupIds(v []*string) *CreateNetworkInterfaceRequest { s.SecurityGroupIds = v return s } func (s *CreateNetworkInterfaceRequest) SetTag(v []*CreateNetworkInterfaceRequestTag) *CreateNetworkInterfaceRequest { s.Tag = v return s } func (s *CreateNetworkInterfaceRequest) SetTxQueueSize(v int32) *CreateNetworkInterfaceRequest { s.TxQueueSize = &v return s } func (s *CreateNetworkInterfaceRequest) SetVSwitchId(v string) *CreateNetworkInterfaceRequest { s.VSwitchId = &v return s } func (s *CreateNetworkInterfaceRequest) SetVisible(v bool) *CreateNetworkInterfaceRequest { s.Visible = &v return s } type CreateNetworkInterfaceRequestTag struct { // The key of tag N to add to the ENI. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the ENI. 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. It cannot start with acs: or contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateNetworkInterfaceRequestTag) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceRequestTag) GoString() string { return s.String() } func (s *CreateNetworkInterfaceRequestTag) SetKey(v string) *CreateNetworkInterfaceRequestTag { s.Key = &v return s } func (s *CreateNetworkInterfaceRequestTag) SetValue(v string) *CreateNetworkInterfaceRequestTag { s.Value = &v return s } type CreateNetworkInterfaceResponseBody struct { // The description of the ENI. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The IPv4 prefixes assigned to the ENI. Ipv4PrefixSets *CreateNetworkInterfaceResponseBodyIpv4PrefixSets `json:"Ipv4PrefixSets,omitempty" xml:"Ipv4PrefixSets,omitempty" type:"Struct"` // The IPv6 prefixes assigned to the ENI. Ipv6PrefixSets *CreateNetworkInterfaceResponseBodyIpv6PrefixSets `json:"Ipv6PrefixSets,omitempty" xml:"Ipv6PrefixSets,omitempty" type:"Struct"` // The IPv6 addresses assigned to the ENI. Ipv6Sets *CreateNetworkInterfaceResponseBodyIpv6Sets `json:"Ipv6Sets,omitempty" xml:"Ipv6Sets,omitempty" type:"Struct"` // The media access control (MAC) address of the ENI. MacAddress *string `json:"MacAddress,omitempty" xml:"MacAddress,omitempty"` // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The name of the ENI. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The ID of the account to which the ENI belongs. OwnerId *string `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The private IP address of the ENI. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // The private IP addresses. PrivateIpSets *CreateNetworkInterfaceResponseBodyPrivateIpSets `json:"PrivateIpSets,omitempty" xml:"PrivateIpSets,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the resource group to which the ENI belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The IDs of the security groups to which the ENI belongs. SecurityGroupIds *CreateNetworkInterfaceResponseBodySecurityGroupIds `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Struct"` // The ID of the distributor to which the ENI belongs. ServiceID *int64 `json:"ServiceID,omitempty" xml:"ServiceID,omitempty"` // Indicates whether the user of the ENI is an Alibaba Cloud service or a distributor. ServiceManaged *bool `json:"ServiceManaged,omitempty" xml:"ServiceManaged,omitempty"` // The state of the ENI. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the ENI. Tags *CreateNetworkInterfaceResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The type of the ENI. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The ID of the vSwitch to which the ENI is connected. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the VPC to which the ENI belongs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` // The zone ID of the ENI. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateNetworkInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBody) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBody) SetDescription(v string) *CreateNetworkInterfaceResponseBody { s.Description = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetIpv4PrefixSets(v *CreateNetworkInterfaceResponseBodyIpv4PrefixSets) *CreateNetworkInterfaceResponseBody { s.Ipv4PrefixSets = v return s } func (s *CreateNetworkInterfaceResponseBody) SetIpv6PrefixSets(v *CreateNetworkInterfaceResponseBodyIpv6PrefixSets) *CreateNetworkInterfaceResponseBody { s.Ipv6PrefixSets = v return s } func (s *CreateNetworkInterfaceResponseBody) SetIpv6Sets(v *CreateNetworkInterfaceResponseBodyIpv6Sets) *CreateNetworkInterfaceResponseBody { s.Ipv6Sets = v return s } func (s *CreateNetworkInterfaceResponseBody) SetMacAddress(v string) *CreateNetworkInterfaceResponseBody { s.MacAddress = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetNetworkInterfaceId(v string) *CreateNetworkInterfaceResponseBody { s.NetworkInterfaceId = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetNetworkInterfaceName(v string) *CreateNetworkInterfaceResponseBody { s.NetworkInterfaceName = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetOwnerId(v string) *CreateNetworkInterfaceResponseBody { s.OwnerId = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetPrivateIpAddress(v string) *CreateNetworkInterfaceResponseBody { s.PrivateIpAddress = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetPrivateIpSets(v *CreateNetworkInterfaceResponseBodyPrivateIpSets) *CreateNetworkInterfaceResponseBody { s.PrivateIpSets = v return s } func (s *CreateNetworkInterfaceResponseBody) SetRequestId(v string) *CreateNetworkInterfaceResponseBody { s.RequestId = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetResourceGroupId(v string) *CreateNetworkInterfaceResponseBody { s.ResourceGroupId = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetSecurityGroupIds(v *CreateNetworkInterfaceResponseBodySecurityGroupIds) *CreateNetworkInterfaceResponseBody { s.SecurityGroupIds = v return s } func (s *CreateNetworkInterfaceResponseBody) SetServiceID(v int64) *CreateNetworkInterfaceResponseBody { s.ServiceID = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetServiceManaged(v bool) *CreateNetworkInterfaceResponseBody { s.ServiceManaged = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetStatus(v string) *CreateNetworkInterfaceResponseBody { s.Status = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetTags(v *CreateNetworkInterfaceResponseBodyTags) *CreateNetworkInterfaceResponseBody { s.Tags = v return s } func (s *CreateNetworkInterfaceResponseBody) SetType(v string) *CreateNetworkInterfaceResponseBody { s.Type = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetVSwitchId(v string) *CreateNetworkInterfaceResponseBody { s.VSwitchId = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetVpcId(v string) *CreateNetworkInterfaceResponseBody { s.VpcId = &v return s } func (s *CreateNetworkInterfaceResponseBody) SetZoneId(v string) *CreateNetworkInterfaceResponseBody { s.ZoneId = &v return s } type CreateNetworkInterfaceResponseBodyIpv4PrefixSets struct { Ipv4PrefixSet []*CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet `json:"Ipv4PrefixSet,omitempty" xml:"Ipv4PrefixSet,omitempty" type:"Repeated"` } func (s CreateNetworkInterfaceResponseBodyIpv4PrefixSets) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyIpv4PrefixSets) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyIpv4PrefixSets) SetIpv4PrefixSet(v []*CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet) *CreateNetworkInterfaceResponseBodyIpv4PrefixSets { s.Ipv4PrefixSet = v return s } type CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet struct { // The IPv4 prefix assigned to the ENI. Ipv4Prefix *string `json:"Ipv4Prefix,omitempty" xml:"Ipv4Prefix,omitempty"` } func (s CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet) SetIpv4Prefix(v string) *CreateNetworkInterfaceResponseBodyIpv4PrefixSetsIpv4PrefixSet { s.Ipv4Prefix = &v return s } type CreateNetworkInterfaceResponseBodyIpv6PrefixSets struct { Ipv6PrefixSet []*CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet `json:"Ipv6PrefixSet,omitempty" xml:"Ipv6PrefixSet,omitempty" type:"Repeated"` } func (s CreateNetworkInterfaceResponseBodyIpv6PrefixSets) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyIpv6PrefixSets) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyIpv6PrefixSets) SetIpv6PrefixSet(v []*CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet) *CreateNetworkInterfaceResponseBodyIpv6PrefixSets { s.Ipv6PrefixSet = v return s } type CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet struct { // The IPv6 prefix assigned to the ENI. Ipv6Prefix *string `json:"Ipv6Prefix,omitempty" xml:"Ipv6Prefix,omitempty"` } func (s CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet) SetIpv6Prefix(v string) *CreateNetworkInterfaceResponseBodyIpv6PrefixSetsIpv6PrefixSet { s.Ipv6Prefix = &v return s } type CreateNetworkInterfaceResponseBodyIpv6Sets struct { Ipv6Set []*CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set `json:"Ipv6Set,omitempty" xml:"Ipv6Set,omitempty" type:"Repeated"` } func (s CreateNetworkInterfaceResponseBodyIpv6Sets) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyIpv6Sets) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyIpv6Sets) SetIpv6Set(v []*CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set) *CreateNetworkInterfaceResponseBodyIpv6Sets { s.Ipv6Set = v return s } type CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set struct { // The IPv6 address assigned to the ENI. Ipv6Address *string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty"` } func (s CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set) SetIpv6Address(v string) *CreateNetworkInterfaceResponseBodyIpv6SetsIpv6Set { s.Ipv6Address = &v return s } type CreateNetworkInterfaceResponseBodyPrivateIpSets struct { PrivateIpSet []*CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet `json:"PrivateIpSet,omitempty" xml:"PrivateIpSet,omitempty" type:"Repeated"` } func (s CreateNetworkInterfaceResponseBodyPrivateIpSets) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyPrivateIpSets) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyPrivateIpSets) SetPrivateIpSet(v []*CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet) *CreateNetworkInterfaceResponseBodyPrivateIpSets { s.PrivateIpSet = v return s } type CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet struct { // Indicates whether the private IP address is the primary private IP address. Primary *bool `json:"Primary,omitempty" xml:"Primary,omitempty"` // The private IP address of the instance. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` } func (s CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet) SetPrimary(v bool) *CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet { s.Primary = &v return s } func (s *CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet) SetPrivateIpAddress(v string) *CreateNetworkInterfaceResponseBodyPrivateIpSetsPrivateIpSet { s.PrivateIpAddress = &v return s } type CreateNetworkInterfaceResponseBodySecurityGroupIds struct { SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s CreateNetworkInterfaceResponseBodySecurityGroupIds) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodySecurityGroupIds) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodySecurityGroupIds) SetSecurityGroupId(v []*string) *CreateNetworkInterfaceResponseBodySecurityGroupIds { s.SecurityGroupId = v return s } type CreateNetworkInterfaceResponseBodyTags struct { Tag []*CreateNetworkInterfaceResponseBodyTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CreateNetworkInterfaceResponseBodyTags) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyTags) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyTags) SetTag(v []*CreateNetworkInterfaceResponseBodyTagsTag) *CreateNetworkInterfaceResponseBodyTags { s.Tag = v return s } type CreateNetworkInterfaceResponseBodyTagsTag struct { // The tag key. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s CreateNetworkInterfaceResponseBodyTagsTag) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponseBodyTagsTag) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponseBodyTagsTag) SetTagKey(v string) *CreateNetworkInterfaceResponseBodyTagsTag { s.TagKey = &v return s } func (s *CreateNetworkInterfaceResponseBodyTagsTag) SetTagValue(v string) *CreateNetworkInterfaceResponseBodyTagsTag { s.TagValue = &v return s } type CreateNetworkInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateNetworkInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateNetworkInterfaceResponse) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfaceResponse) GoString() string { return s.String() } func (s *CreateNetworkInterfaceResponse) SetHeaders(v map[string]*string) *CreateNetworkInterfaceResponse { s.Headers = v return s } func (s *CreateNetworkInterfaceResponse) SetStatusCode(v int32) *CreateNetworkInterfaceResponse { s.StatusCode = &v return s } func (s *CreateNetworkInterfaceResponse) SetBody(v *CreateNetworkInterfaceResponseBody) *CreateNetworkInterfaceResponse { s.Body = v return s } type CreateNetworkInterfacePermissionRequest struct { // The ID of the ENI. AccountId *int64 `json:"AccountId,omitempty" xml:"AccountId,omitempty"` // The permission on the ENI. Set the value to InstanceAttach. // // InstanceAttach: allows authorized users to attach the ENI to an ECS instance. The ENI and the ECS instance must reside in the same zone. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the request. Permission *string `json:"Permission,omitempty" xml:"Permission,omitempty"` // The ID of the Alibaba Cloud partner (a certified ISV) or individual user. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s CreateNetworkInterfacePermissionRequest) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfacePermissionRequest) GoString() string { return s.String() } func (s *CreateNetworkInterfacePermissionRequest) SetAccountId(v int64) *CreateNetworkInterfacePermissionRequest { s.AccountId = &v return s } func (s *CreateNetworkInterfacePermissionRequest) SetNetworkInterfaceId(v string) *CreateNetworkInterfacePermissionRequest { s.NetworkInterfaceId = &v return s } func (s *CreateNetworkInterfacePermissionRequest) SetOwnerAccount(v string) *CreateNetworkInterfacePermissionRequest { s.OwnerAccount = &v return s } func (s *CreateNetworkInterfacePermissionRequest) SetOwnerId(v int64) *CreateNetworkInterfacePermissionRequest { s.OwnerId = &v return s } func (s *CreateNetworkInterfacePermissionRequest) SetPermission(v string) *CreateNetworkInterfacePermissionRequest { s.Permission = &v return s } func (s *CreateNetworkInterfacePermissionRequest) SetRegionId(v string) *CreateNetworkInterfacePermissionRequest { s.RegionId = &v return s } func (s *CreateNetworkInterfacePermissionRequest) SetResourceOwnerAccount(v string) *CreateNetworkInterfacePermissionRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateNetworkInterfacePermissionRequest) SetResourceOwnerId(v int64) *CreateNetworkInterfacePermissionRequest { s.ResourceOwnerId = &v return s } type CreateNetworkInterfacePermissionResponseBody struct { // The permission on the ENI. NetworkInterfacePermission *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission `json:"NetworkInterfacePermission,omitempty" xml:"NetworkInterfacePermission,omitempty" type:"Struct"` // Details about permissions on ENIs. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateNetworkInterfacePermissionResponseBody) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfacePermissionResponseBody) GoString() string { return s.String() } func (s *CreateNetworkInterfacePermissionResponseBody) SetNetworkInterfacePermission(v *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) *CreateNetworkInterfacePermissionResponseBody { s.NetworkInterfacePermission = v return s } func (s *CreateNetworkInterfacePermissionResponseBody) SetRequestId(v string) *CreateNetworkInterfacePermissionResponseBody { s.RequestId = &v return s } type CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission struct { // The ID of the permission on the ENI. AccountId *int64 `json:"AccountId,omitempty" xml:"AccountId,omitempty"` // The ID of the Alibaba Cloud partner (a certified ISV). NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The name of the Alibaba Cloud service. NetworkInterfacePermissionId *string `json:"NetworkInterfacePermissionId,omitempty" xml:"NetworkInterfacePermissionId,omitempty"` // The ID of the ENI. Permission *string `json:"Permission,omitempty" xml:"Permission,omitempty"` PermissionState *string `json:"PermissionState,omitempty" xml:"PermissionState,omitempty"` // The state of the permission on the ENI. Valid values: // // * Pending: The permission is being granted. // * Granted: The permission is granted. // * Revoking: The permission is being revoked. // * Revoked: The permission is revoked. ServiceName *string `json:"ServiceName,omitempty" xml:"ServiceName,omitempty"` } func (s CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) GoString() string { return s.String() } func (s *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) SetAccountId(v int64) *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission { s.AccountId = &v return s } func (s *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) SetNetworkInterfaceId(v string) *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission { s.NetworkInterfaceId = &v return s } func (s *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) SetNetworkInterfacePermissionId(v string) *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission { s.NetworkInterfacePermissionId = &v return s } func (s *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) SetPermission(v string) *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission { s.Permission = &v return s } func (s *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) SetPermissionState(v string) *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission { s.PermissionState = &v return s } func (s *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission) SetServiceName(v string) *CreateNetworkInterfacePermissionResponseBodyNetworkInterfacePermission { s.ServiceName = &v return s } type CreateNetworkInterfacePermissionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateNetworkInterfacePermissionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateNetworkInterfacePermissionResponse) String() string { return tea.Prettify(s) } func (s CreateNetworkInterfacePermissionResponse) GoString() string { return s.String() } func (s *CreateNetworkInterfacePermissionResponse) SetHeaders(v map[string]*string) *CreateNetworkInterfacePermissionResponse { s.Headers = v return s } func (s *CreateNetworkInterfacePermissionResponse) SetStatusCode(v int32) *CreateNetworkInterfacePermissionResponse { s.StatusCode = &v return s } func (s *CreateNetworkInterfacePermissionResponse) SetBody(v *CreateNetworkInterfacePermissionResponseBody) *CreateNetworkInterfacePermissionResponse { s.Body = v return s } type CreatePhysicalConnectionRequest struct { AccessPointId *string `json:"AccessPointId,omitempty" xml:"AccessPointId,omitempty"` CircuitCode *string `json:"CircuitCode,omitempty" xml:"CircuitCode,omitempty"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` LineOperator *string `json:"LineOperator,omitempty" xml:"LineOperator,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PeerLocation *string `json:"PeerLocation,omitempty" xml:"PeerLocation,omitempty"` PortType *string `json:"PortType,omitempty" xml:"PortType,omitempty"` RedundantPhysicalConnectionId *string `json:"RedundantPhysicalConnectionId,omitempty" xml:"RedundantPhysicalConnectionId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` Type *string `json:"Type,omitempty" xml:"Type,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` Bandwidth *int32 `json:"bandwidth,omitempty" xml:"bandwidth,omitempty"` } func (s CreatePhysicalConnectionRequest) String() string { return tea.Prettify(s) } func (s CreatePhysicalConnectionRequest) GoString() string { return s.String() } func (s *CreatePhysicalConnectionRequest) SetAccessPointId(v string) *CreatePhysicalConnectionRequest { s.AccessPointId = &v return s } func (s *CreatePhysicalConnectionRequest) SetCircuitCode(v string) *CreatePhysicalConnectionRequest { s.CircuitCode = &v return s } func (s *CreatePhysicalConnectionRequest) SetClientToken(v string) *CreatePhysicalConnectionRequest { s.ClientToken = &v return s } func (s *CreatePhysicalConnectionRequest) SetDescription(v string) *CreatePhysicalConnectionRequest { s.Description = &v return s } func (s *CreatePhysicalConnectionRequest) SetLineOperator(v string) *CreatePhysicalConnectionRequest { s.LineOperator = &v return s } func (s *CreatePhysicalConnectionRequest) SetName(v string) *CreatePhysicalConnectionRequest { s.Name = &v return s } func (s *CreatePhysicalConnectionRequest) SetOwnerAccount(v string) *CreatePhysicalConnectionRequest { s.OwnerAccount = &v return s } func (s *CreatePhysicalConnectionRequest) SetOwnerId(v int64) *CreatePhysicalConnectionRequest { s.OwnerId = &v return s } func (s *CreatePhysicalConnectionRequest) SetPeerLocation(v string) *CreatePhysicalConnectionRequest { s.PeerLocation = &v return s } func (s *CreatePhysicalConnectionRequest) SetPortType(v string) *CreatePhysicalConnectionRequest { s.PortType = &v return s } func (s *CreatePhysicalConnectionRequest) SetRedundantPhysicalConnectionId(v string) *CreatePhysicalConnectionRequest { s.RedundantPhysicalConnectionId = &v return s } func (s *CreatePhysicalConnectionRequest) SetRegionId(v string) *CreatePhysicalConnectionRequest { s.RegionId = &v return s } func (s *CreatePhysicalConnectionRequest) SetResourceOwnerAccount(v string) *CreatePhysicalConnectionRequest { s.ResourceOwnerAccount = &v return s } func (s *CreatePhysicalConnectionRequest) SetResourceOwnerId(v int64) *CreatePhysicalConnectionRequest { s.ResourceOwnerId = &v return s } func (s *CreatePhysicalConnectionRequest) SetType(v string) *CreatePhysicalConnectionRequest { s.Type = &v return s } func (s *CreatePhysicalConnectionRequest) SetUserCidr(v string) *CreatePhysicalConnectionRequest { s.UserCidr = &v return s } func (s *CreatePhysicalConnectionRequest) SetBandwidth(v int32) *CreatePhysicalConnectionRequest { s.Bandwidth = &v return s } type CreatePhysicalConnectionResponseBody struct { PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreatePhysicalConnectionResponseBody) String() string { return tea.Prettify(s) } func (s CreatePhysicalConnectionResponseBody) GoString() string { return s.String() } func (s *CreatePhysicalConnectionResponseBody) SetPhysicalConnectionId(v string) *CreatePhysicalConnectionResponseBody { s.PhysicalConnectionId = &v return s } func (s *CreatePhysicalConnectionResponseBody) SetRequestId(v string) *CreatePhysicalConnectionResponseBody { s.RequestId = &v return s } type CreatePhysicalConnectionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreatePhysicalConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreatePhysicalConnectionResponse) String() string { return tea.Prettify(s) } func (s CreatePhysicalConnectionResponse) GoString() string { return s.String() } func (s *CreatePhysicalConnectionResponse) SetHeaders(v map[string]*string) *CreatePhysicalConnectionResponse { s.Headers = v return s } func (s *CreatePhysicalConnectionResponse) SetStatusCode(v int32) *CreatePhysicalConnectionResponse { s.StatusCode = &v return s } func (s *CreatePhysicalConnectionResponse) SetBody(v *CreatePhysicalConnectionResponseBody) *CreatePhysicalConnectionResponse { s.Body = v return s } type CreatePrefixListRequest struct { // The IP address family. Valid values: // // * IPv4 // * IPv6 AddressFamily *string `json:"AddressFamily,omitempty" xml:"AddressFamily,omitempty"` // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the prefix list. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The details of entries in the prefix list. Entry []*CreatePrefixListRequestEntry `json:"Entry,omitempty" xml:"Entry,omitempty" type:"Repeated"` // The maximum number of entries that the prefix list can contain. Valid values: 1 to 200. MaxEntries *int32 `json:"MaxEntries,omitempty" xml:"MaxEntries,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The name of the prefix list. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (\_), periods (.), and hyphens (-). It must start with a letter and cannot start with `http://`, `https://`, `com.aliyun`, or `com.alibabacloud`. PrefixListName *string `json:"PrefixListName,omitempty" xml:"PrefixListName,omitempty"` // The ID of the region in which to create the prefix list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s CreatePrefixListRequest) String() string { return tea.Prettify(s) } func (s CreatePrefixListRequest) GoString() string { return s.String() } func (s *CreatePrefixListRequest) SetAddressFamily(v string) *CreatePrefixListRequest { s.AddressFamily = &v return s } func (s *CreatePrefixListRequest) SetClientToken(v string) *CreatePrefixListRequest { s.ClientToken = &v return s } func (s *CreatePrefixListRequest) SetDescription(v string) *CreatePrefixListRequest { s.Description = &v return s } func (s *CreatePrefixListRequest) SetEntry(v []*CreatePrefixListRequestEntry) *CreatePrefixListRequest { s.Entry = v return s } func (s *CreatePrefixListRequest) SetMaxEntries(v int32) *CreatePrefixListRequest { s.MaxEntries = &v return s } func (s *CreatePrefixListRequest) SetOwnerAccount(v string) *CreatePrefixListRequest { s.OwnerAccount = &v return s } func (s *CreatePrefixListRequest) SetOwnerId(v int64) *CreatePrefixListRequest { s.OwnerId = &v return s } func (s *CreatePrefixListRequest) SetPrefixListName(v string) *CreatePrefixListRequest { s.PrefixListName = &v return s } func (s *CreatePrefixListRequest) SetRegionId(v string) *CreatePrefixListRequest { s.RegionId = &v return s } func (s *CreatePrefixListRequest) SetResourceOwnerAccount(v string) *CreatePrefixListRequest { s.ResourceOwnerAccount = &v return s } func (s *CreatePrefixListRequest) SetResourceOwnerId(v int64) *CreatePrefixListRequest { s.ResourceOwnerId = &v return s } type CreatePrefixListRequestEntry struct { // The CIDR block in entry N. Valid values of N: 0 to 200. Take note of the following items: // // * The total number of entries cannot exceed the `MaxEntries` value. // * CIDR block types are determined by the IP address family. You cannot combine IPv4 and IPv6 CIDR blocks in a single prefix list. // * CIDR blocks must be unique across all entries in a prefix list. For example, you cannot specify 192.168.1.0/24 twice in the entries of the prefix list. // * IP addresses are supported. The system converts IP addresses into CIDR blocks. For example, if you specify 192.168.1.100, the system converts it into the 192.168.1.100/32 CIDR block. // * If an IPv6 CIDR block is used, the system converts it into the zero compression format and changes uppercase letters into lowercase ones. For example, if you specify 2001:0DB8:0000:0000:0000:0000:0000:0000/32, the system converts it into 2001:db8::/32. // // For more information about CIDR blocks, see the [What is CIDR?](~~40637~~#title-gu4-uzk-12r) section in the "Network FAQ" topic. // // This parameter is empty by default. Cidr *string `json:"Cidr,omitempty" xml:"Cidr,omitempty"` // The description in entry N. The description must be 2 to 32 characters in length and cannot start with `http://` or `https://`. Valid values of N: 0 to 200. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` } func (s CreatePrefixListRequestEntry) String() string { return tea.Prettify(s) } func (s CreatePrefixListRequestEntry) GoString() string { return s.String() } func (s *CreatePrefixListRequestEntry) SetCidr(v string) *CreatePrefixListRequestEntry { s.Cidr = &v return s } func (s *CreatePrefixListRequestEntry) SetDescription(v string) *CreatePrefixListRequestEntry { s.Description = &v return s } type CreatePrefixListResponseBody struct { // The ID of the prefix list. PrefixListId *string `json:"PrefixListId,omitempty" xml:"PrefixListId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreatePrefixListResponseBody) String() string { return tea.Prettify(s) } func (s CreatePrefixListResponseBody) GoString() string { return s.String() } func (s *CreatePrefixListResponseBody) SetPrefixListId(v string) *CreatePrefixListResponseBody { s.PrefixListId = &v return s } func (s *CreatePrefixListResponseBody) SetRequestId(v string) *CreatePrefixListResponseBody { s.RequestId = &v return s } type CreatePrefixListResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreatePrefixListResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreatePrefixListResponse) String() string { return tea.Prettify(s) } func (s CreatePrefixListResponse) GoString() string { return s.String() } func (s *CreatePrefixListResponse) SetHeaders(v map[string]*string) *CreatePrefixListResponse { s.Headers = v return s } func (s *CreatePrefixListResponse) SetStatusCode(v int32) *CreatePrefixListResponse { s.StatusCode = &v return s } func (s *CreatePrefixListResponse) SetBody(v *CreatePrefixListResponseBody) *CreatePrefixListResponse { s.Body = v return s } type CreateRouteEntryRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" xml:"DestinationCidrBlock,omitempty"` NextHopId *string `json:"NextHopId,omitempty" xml:"NextHopId,omitempty"` NextHopList []*CreateRouteEntryRequestNextHopList `json:"NextHopList,omitempty" xml:"NextHopList,omitempty" type:"Repeated"` NextHopType *string `json:"NextHopType,omitempty" xml:"NextHopType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RouteTableId *string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty"` } func (s CreateRouteEntryRequest) String() string { return tea.Prettify(s) } func (s CreateRouteEntryRequest) GoString() string { return s.String() } func (s *CreateRouteEntryRequest) SetClientToken(v string) *CreateRouteEntryRequest { s.ClientToken = &v return s } func (s *CreateRouteEntryRequest) SetDestinationCidrBlock(v string) *CreateRouteEntryRequest { s.DestinationCidrBlock = &v return s } func (s *CreateRouteEntryRequest) SetNextHopId(v string) *CreateRouteEntryRequest { s.NextHopId = &v return s } func (s *CreateRouteEntryRequest) SetNextHopList(v []*CreateRouteEntryRequestNextHopList) *CreateRouteEntryRequest { s.NextHopList = v return s } func (s *CreateRouteEntryRequest) SetNextHopType(v string) *CreateRouteEntryRequest { s.NextHopType = &v return s } func (s *CreateRouteEntryRequest) SetOwnerAccount(v string) *CreateRouteEntryRequest { s.OwnerAccount = &v return s } func (s *CreateRouteEntryRequest) SetOwnerId(v int64) *CreateRouteEntryRequest { s.OwnerId = &v return s } func (s *CreateRouteEntryRequest) SetRegionId(v string) *CreateRouteEntryRequest { s.RegionId = &v return s } func (s *CreateRouteEntryRequest) SetResourceOwnerAccount(v string) *CreateRouteEntryRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateRouteEntryRequest) SetResourceOwnerId(v int64) *CreateRouteEntryRequest { s.ResourceOwnerId = &v return s } func (s *CreateRouteEntryRequest) SetRouteTableId(v string) *CreateRouteEntryRequest { s.RouteTableId = &v return s } type CreateRouteEntryRequestNextHopList struct { NextHopId *string `json:"NextHopId,omitempty" xml:"NextHopId,omitempty"` NextHopType *string `json:"NextHopType,omitempty" xml:"NextHopType,omitempty"` } func (s CreateRouteEntryRequestNextHopList) String() string { return tea.Prettify(s) } func (s CreateRouteEntryRequestNextHopList) GoString() string { return s.String() } func (s *CreateRouteEntryRequestNextHopList) SetNextHopId(v string) *CreateRouteEntryRequestNextHopList { s.NextHopId = &v return s } func (s *CreateRouteEntryRequestNextHopList) SetNextHopType(v string) *CreateRouteEntryRequestNextHopList { s.NextHopType = &v return s } type CreateRouteEntryResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateRouteEntryResponseBody) String() string { return tea.Prettify(s) } func (s CreateRouteEntryResponseBody) GoString() string { return s.String() } func (s *CreateRouteEntryResponseBody) SetRequestId(v string) *CreateRouteEntryResponseBody { s.RequestId = &v return s } type CreateRouteEntryResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateRouteEntryResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateRouteEntryResponse) String() string { return tea.Prettify(s) } func (s CreateRouteEntryResponse) GoString() string { return s.String() } func (s *CreateRouteEntryResponse) SetHeaders(v map[string]*string) *CreateRouteEntryResponse { s.Headers = v return s } func (s *CreateRouteEntryResponse) SetStatusCode(v int32) *CreateRouteEntryResponse { s.StatusCode = &v return s } func (s *CreateRouteEntryResponse) SetBody(v *CreateRouteEntryResponseBody) *CreateRouteEntryResponse { s.Body = v return s } type CreateRouterInterfaceRequest struct { AccessPointId *string `json:"AccessPointId,omitempty" xml:"AccessPointId,omitempty"` AutoPay *bool `json:"AutoPay,omitempty" xml:"AutoPay,omitempty"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` HealthCheckSourceIp *string `json:"HealthCheckSourceIp,omitempty" xml:"HealthCheckSourceIp,omitempty"` HealthCheckTargetIp *string `json:"HealthCheckTargetIp,omitempty" xml:"HealthCheckTargetIp,omitempty"` InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OppositeAccessPointId *string `json:"OppositeAccessPointId,omitempty" xml:"OppositeAccessPointId,omitempty"` OppositeInterfaceId *string `json:"OppositeInterfaceId,omitempty" xml:"OppositeInterfaceId,omitempty"` OppositeInterfaceOwnerId *string `json:"OppositeInterfaceOwnerId,omitempty" xml:"OppositeInterfaceOwnerId,omitempty"` OppositeRegionId *string `json:"OppositeRegionId,omitempty" xml:"OppositeRegionId,omitempty"` OppositeRouterId *string `json:"OppositeRouterId,omitempty" xml:"OppositeRouterId,omitempty"` OppositeRouterType *string `json:"OppositeRouterType,omitempty" xml:"OppositeRouterType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` PricingCycle *string `json:"PricingCycle,omitempty" xml:"PricingCycle,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` Role *string `json:"Role,omitempty" xml:"Role,omitempty"` RouterId *string `json:"RouterId,omitempty" xml:"RouterId,omitempty"` RouterType *string `json:"RouterType,omitempty" xml:"RouterType,omitempty"` Spec *string `json:"Spec,omitempty" xml:"Spec,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` } func (s CreateRouterInterfaceRequest) String() string { return tea.Prettify(s) } func (s CreateRouterInterfaceRequest) GoString() string { return s.String() } func (s *CreateRouterInterfaceRequest) SetAccessPointId(v string) *CreateRouterInterfaceRequest { s.AccessPointId = &v return s } func (s *CreateRouterInterfaceRequest) SetAutoPay(v bool) *CreateRouterInterfaceRequest { s.AutoPay = &v return s } func (s *CreateRouterInterfaceRequest) SetClientToken(v string) *CreateRouterInterfaceRequest { s.ClientToken = &v return s } func (s *CreateRouterInterfaceRequest) SetDescription(v string) *CreateRouterInterfaceRequest { s.Description = &v return s } func (s *CreateRouterInterfaceRequest) SetHealthCheckSourceIp(v string) *CreateRouterInterfaceRequest { s.HealthCheckSourceIp = &v return s } func (s *CreateRouterInterfaceRequest) SetHealthCheckTargetIp(v string) *CreateRouterInterfaceRequest { s.HealthCheckTargetIp = &v return s } func (s *CreateRouterInterfaceRequest) SetInstanceChargeType(v string) *CreateRouterInterfaceRequest { s.InstanceChargeType = &v return s } func (s *CreateRouterInterfaceRequest) SetName(v string) *CreateRouterInterfaceRequest { s.Name = &v return s } func (s *CreateRouterInterfaceRequest) SetOppositeAccessPointId(v string) *CreateRouterInterfaceRequest { s.OppositeAccessPointId = &v return s } func (s *CreateRouterInterfaceRequest) SetOppositeInterfaceId(v string) *CreateRouterInterfaceRequest { s.OppositeInterfaceId = &v return s } func (s *CreateRouterInterfaceRequest) SetOppositeInterfaceOwnerId(v string) *CreateRouterInterfaceRequest { s.OppositeInterfaceOwnerId = &v return s } func (s *CreateRouterInterfaceRequest) SetOppositeRegionId(v string) *CreateRouterInterfaceRequest { s.OppositeRegionId = &v return s } func (s *CreateRouterInterfaceRequest) SetOppositeRouterId(v string) *CreateRouterInterfaceRequest { s.OppositeRouterId = &v return s } func (s *CreateRouterInterfaceRequest) SetOppositeRouterType(v string) *CreateRouterInterfaceRequest { s.OppositeRouterType = &v return s } func (s *CreateRouterInterfaceRequest) SetOwnerAccount(v string) *CreateRouterInterfaceRequest { s.OwnerAccount = &v return s } func (s *CreateRouterInterfaceRequest) SetOwnerId(v int64) *CreateRouterInterfaceRequest { s.OwnerId = &v return s } func (s *CreateRouterInterfaceRequest) SetPeriod(v int32) *CreateRouterInterfaceRequest { s.Period = &v return s } func (s *CreateRouterInterfaceRequest) SetPricingCycle(v string) *CreateRouterInterfaceRequest { s.PricingCycle = &v return s } func (s *CreateRouterInterfaceRequest) SetRegionId(v string) *CreateRouterInterfaceRequest { s.RegionId = &v return s } func (s *CreateRouterInterfaceRequest) SetResourceOwnerAccount(v string) *CreateRouterInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateRouterInterfaceRequest) SetResourceOwnerId(v int64) *CreateRouterInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *CreateRouterInterfaceRequest) SetRole(v string) *CreateRouterInterfaceRequest { s.Role = &v return s } func (s *CreateRouterInterfaceRequest) SetRouterId(v string) *CreateRouterInterfaceRequest { s.RouterId = &v return s } func (s *CreateRouterInterfaceRequest) SetRouterType(v string) *CreateRouterInterfaceRequest { s.RouterType = &v return s } func (s *CreateRouterInterfaceRequest) SetSpec(v string) *CreateRouterInterfaceRequest { s.Spec = &v return s } func (s *CreateRouterInterfaceRequest) SetUserCidr(v string) *CreateRouterInterfaceRequest { s.UserCidr = &v return s } type CreateRouterInterfaceResponseBody struct { OrderId *int64 `json:"OrderId,omitempty" xml:"OrderId,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` RouterInterfaceId *string `json:"RouterInterfaceId,omitempty" xml:"RouterInterfaceId,omitempty"` } func (s CreateRouterInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s CreateRouterInterfaceResponseBody) GoString() string { return s.String() } func (s *CreateRouterInterfaceResponseBody) SetOrderId(v int64) *CreateRouterInterfaceResponseBody { s.OrderId = &v return s } func (s *CreateRouterInterfaceResponseBody) SetRequestId(v string) *CreateRouterInterfaceResponseBody { s.RequestId = &v return s } func (s *CreateRouterInterfaceResponseBody) SetRouterInterfaceId(v string) *CreateRouterInterfaceResponseBody { s.RouterInterfaceId = &v return s } type CreateRouterInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateRouterInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateRouterInterfaceResponse) String() string { return tea.Prettify(s) } func (s CreateRouterInterfaceResponse) GoString() string { return s.String() } func (s *CreateRouterInterfaceResponse) SetHeaders(v map[string]*string) *CreateRouterInterfaceResponse { s.Headers = v return s } func (s *CreateRouterInterfaceResponse) SetStatusCode(v int32) *CreateRouterInterfaceResponse { s.StatusCode = &v return s } func (s *CreateRouterInterfaceResponse) SetBody(v *CreateRouterInterfaceResponseBody) *CreateRouterInterfaceResponse { s.Body = v return s } type CreateSavingsPlanRequest struct { ChargeType *string `json:"ChargeType,omitempty" xml:"ChargeType,omitempty"` CommittedAmount *string `json:"CommittedAmount,omitempty" xml:"CommittedAmount,omitempty"` InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` OfferingType *string `json:"OfferingType,omitempty" xml:"OfferingType,omitempty"` Period *string `json:"Period,omitempty" xml:"Period,omitempty"` PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` PlanType *string `json:"PlanType,omitempty" xml:"PlanType,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"` } func (s CreateSavingsPlanRequest) String() string { return tea.Prettify(s) } func (s CreateSavingsPlanRequest) GoString() string { return s.String() } func (s *CreateSavingsPlanRequest) SetChargeType(v string) *CreateSavingsPlanRequest { s.ChargeType = &v return s } func (s *CreateSavingsPlanRequest) SetCommittedAmount(v string) *CreateSavingsPlanRequest { s.CommittedAmount = &v return s } func (s *CreateSavingsPlanRequest) SetInstanceTypeFamily(v string) *CreateSavingsPlanRequest { s.InstanceTypeFamily = &v return s } func (s *CreateSavingsPlanRequest) SetOfferingType(v string) *CreateSavingsPlanRequest { s.OfferingType = &v return s } func (s *CreateSavingsPlanRequest) SetPeriod(v string) *CreateSavingsPlanRequest { s.Period = &v return s } func (s *CreateSavingsPlanRequest) SetPeriodUnit(v string) *CreateSavingsPlanRequest { s.PeriodUnit = &v return s } func (s *CreateSavingsPlanRequest) SetPlanType(v string) *CreateSavingsPlanRequest { s.PlanType = &v return s } func (s *CreateSavingsPlanRequest) SetRegionId(v string) *CreateSavingsPlanRequest { s.RegionId = &v return s } func (s *CreateSavingsPlanRequest) SetResourceId(v []*string) *CreateSavingsPlanRequest { s.ResourceId = v return s } type CreateSavingsPlanResponseBody struct { OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` SavingsPlanId *string `json:"SavingsPlanId,omitempty" xml:"SavingsPlanId,omitempty"` } func (s CreateSavingsPlanResponseBody) String() string { return tea.Prettify(s) } func (s CreateSavingsPlanResponseBody) GoString() string { return s.String() } func (s *CreateSavingsPlanResponseBody) SetOrderId(v string) *CreateSavingsPlanResponseBody { s.OrderId = &v return s } func (s *CreateSavingsPlanResponseBody) SetRequestId(v string) *CreateSavingsPlanResponseBody { s.RequestId = &v return s } func (s *CreateSavingsPlanResponseBody) SetSavingsPlanId(v string) *CreateSavingsPlanResponseBody { s.SavingsPlanId = &v return s } type CreateSavingsPlanResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateSavingsPlanResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateSavingsPlanResponse) String() string { return tea.Prettify(s) } func (s CreateSavingsPlanResponse) GoString() string { return s.String() } func (s *CreateSavingsPlanResponse) SetHeaders(v map[string]*string) *CreateSavingsPlanResponse { s.Headers = v return s } func (s *CreateSavingsPlanResponse) SetStatusCode(v int32) *CreateSavingsPlanResponse { s.StatusCode = &v return s } func (s *CreateSavingsPlanResponse) SetBody(v *CreateSavingsPlanResponseBody) *CreateSavingsPlanResponse { s.Body = v return s } type CreateSecurityGroupRequest struct { // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the security group. The description must be 2 to 256 characters in length. It cannot start with `http://` or `https://`. // // By default, this parameter is left empty. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the security group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the security group belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The name of the security group. // // The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). Default value: null. SecurityGroupName *string `json:"SecurityGroupName,omitempty" xml:"SecurityGroupName,omitempty"` // The type of the security group. Valid values: // // * normal: basic security group. // * enterprise: advanced security group. For more information, see [Advanced security groups](~~120621~~). SecurityGroupType *string `json:"SecurityGroupType,omitempty" xml:"SecurityGroupType,omitempty"` // This parameter is not publicly available. ServiceManaged *bool `json:"ServiceManaged,omitempty" xml:"ServiceManaged,omitempty"` // The tags that you want to add to the security group. Tag []*CreateSecurityGroupRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the VPC in which you want to create the security group. // // > The VpcId parameter is required only if you want to create security groups of the VPC type. In regions that support the classic network, you can create security groups of the classic network type without the need to specify the VpcId parameter. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s CreateSecurityGroupRequest) String() string { return tea.Prettify(s) } func (s CreateSecurityGroupRequest) GoString() string { return s.String() } func (s *CreateSecurityGroupRequest) SetClientToken(v string) *CreateSecurityGroupRequest { s.ClientToken = &v return s } func (s *CreateSecurityGroupRequest) SetDescription(v string) *CreateSecurityGroupRequest { s.Description = &v return s } func (s *CreateSecurityGroupRequest) SetOwnerAccount(v string) *CreateSecurityGroupRequest { s.OwnerAccount = &v return s } func (s *CreateSecurityGroupRequest) SetOwnerId(v int64) *CreateSecurityGroupRequest { s.OwnerId = &v return s } func (s *CreateSecurityGroupRequest) SetRegionId(v string) *CreateSecurityGroupRequest { s.RegionId = &v return s } func (s *CreateSecurityGroupRequest) SetResourceGroupId(v string) *CreateSecurityGroupRequest { s.ResourceGroupId = &v return s } func (s *CreateSecurityGroupRequest) SetResourceOwnerAccount(v string) *CreateSecurityGroupRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateSecurityGroupRequest) SetResourceOwnerId(v int64) *CreateSecurityGroupRequest { s.ResourceOwnerId = &v return s } func (s *CreateSecurityGroupRequest) SetSecurityGroupName(v string) *CreateSecurityGroupRequest { s.SecurityGroupName = &v return s } func (s *CreateSecurityGroupRequest) SetSecurityGroupType(v string) *CreateSecurityGroupRequest { s.SecurityGroupType = &v return s } func (s *CreateSecurityGroupRequest) SetServiceManaged(v bool) *CreateSecurityGroupRequest { s.ServiceManaged = &v return s } func (s *CreateSecurityGroupRequest) SetTag(v []*CreateSecurityGroupRequestTag) *CreateSecurityGroupRequest { s.Tag = v return s } func (s *CreateSecurityGroupRequest) SetVpcId(v string) *CreateSecurityGroupRequest { s.VpcId = &v return s } type CreateSecurityGroupRequestTag struct { // The key of tag N. // // Valid values of N: 1 to 20. You cannot specify empty strings as tag keys. The tag key must be 1 to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N. // // Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with acs: or contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateSecurityGroupRequestTag) String() string { return tea.Prettify(s) } func (s CreateSecurityGroupRequestTag) GoString() string { return s.String() } func (s *CreateSecurityGroupRequestTag) SetKey(v string) *CreateSecurityGroupRequestTag { s.Key = &v return s } func (s *CreateSecurityGroupRequestTag) SetValue(v string) *CreateSecurityGroupRequestTag { s.Value = &v return s } type CreateSecurityGroupResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the security group. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` } func (s CreateSecurityGroupResponseBody) String() string { return tea.Prettify(s) } func (s CreateSecurityGroupResponseBody) GoString() string { return s.String() } func (s *CreateSecurityGroupResponseBody) SetRequestId(v string) *CreateSecurityGroupResponseBody { s.RequestId = &v return s } func (s *CreateSecurityGroupResponseBody) SetSecurityGroupId(v string) *CreateSecurityGroupResponseBody { s.SecurityGroupId = &v return s } type CreateSecurityGroupResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateSecurityGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateSecurityGroupResponse) String() string { return tea.Prettify(s) } func (s CreateSecurityGroupResponse) GoString() string { return s.String() } func (s *CreateSecurityGroupResponse) SetHeaders(v map[string]*string) *CreateSecurityGroupResponse { s.Headers = v return s } func (s *CreateSecurityGroupResponse) SetStatusCode(v int32) *CreateSecurityGroupResponse { s.StatusCode = &v return s } func (s *CreateSecurityGroupResponse) SetBody(v *CreateSecurityGroupResponseBody) *CreateSecurityGroupResponse { s.Body = v return s } type CreateSimulatedSystemEventsRequest struct { // The type of the system event. Valid values: // // * SystemMaintenance.Reboot: The instance is restarted due to system maintenance. // * SystemFailure.Reboot: The instance is restarted due to a system error. // * InstanceFailure.Reboot: The instance is restarted due to an instance error. // * SystemMaintenance.Stop: The instance is stopped due to system maintenance. // * SystemMaintenance.Redeploy: The instance is redeployed due to system maintenance. // * SystemFailure.Redeploy: The instance is redeployed due to a system error. // * SystemFailure.Stop: The instance is stopped due to a system error. EventType *string `json:"EventType,omitempty" xml:"EventType,omitempty"` // The IDs of the instances. You can specify up to 100 instance IDs. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` // The scheduled start time of the event. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. // // > For events that occur due to system errors or instance errors, the simulated events of such events enter the `Executing` state when the simulated events are created. The value of `NotBefore` is the time when the simulated events enter the `Executed` state. NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s CreateSimulatedSystemEventsRequest) String() string { return tea.Prettify(s) } func (s CreateSimulatedSystemEventsRequest) GoString() string { return s.String() } func (s *CreateSimulatedSystemEventsRequest) SetEventType(v string) *CreateSimulatedSystemEventsRequest { s.EventType = &v return s } func (s *CreateSimulatedSystemEventsRequest) SetInstanceId(v []*string) *CreateSimulatedSystemEventsRequest { s.InstanceId = v return s } func (s *CreateSimulatedSystemEventsRequest) SetNotBefore(v string) *CreateSimulatedSystemEventsRequest { s.NotBefore = &v return s } func (s *CreateSimulatedSystemEventsRequest) SetOwnerAccount(v string) *CreateSimulatedSystemEventsRequest { s.OwnerAccount = &v return s } func (s *CreateSimulatedSystemEventsRequest) SetOwnerId(v int64) *CreateSimulatedSystemEventsRequest { s.OwnerId = &v return s } func (s *CreateSimulatedSystemEventsRequest) SetRegionId(v string) *CreateSimulatedSystemEventsRequest { s.RegionId = &v return s } func (s *CreateSimulatedSystemEventsRequest) SetResourceOwnerAccount(v string) *CreateSimulatedSystemEventsRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateSimulatedSystemEventsRequest) SetResourceOwnerId(v int64) *CreateSimulatedSystemEventsRequest { s.ResourceOwnerId = &v return s } type CreateSimulatedSystemEventsResponseBody struct { // The IDs of the simulated events. EventIdSet *CreateSimulatedSystemEventsResponseBodyEventIdSet `json:"EventIdSet,omitempty" xml:"EventIdSet,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s CreateSimulatedSystemEventsResponseBody) String() string { return tea.Prettify(s) } func (s CreateSimulatedSystemEventsResponseBody) GoString() string { return s.String() } func (s *CreateSimulatedSystemEventsResponseBody) SetEventIdSet(v *CreateSimulatedSystemEventsResponseBodyEventIdSet) *CreateSimulatedSystemEventsResponseBody { s.EventIdSet = v return s } func (s *CreateSimulatedSystemEventsResponseBody) SetRequestId(v string) *CreateSimulatedSystemEventsResponseBody { s.RequestId = &v return s } type CreateSimulatedSystemEventsResponseBodyEventIdSet struct { EventId []*string `json:"EventId,omitempty" xml:"EventId,omitempty" type:"Repeated"` } func (s CreateSimulatedSystemEventsResponseBodyEventIdSet) String() string { return tea.Prettify(s) } func (s CreateSimulatedSystemEventsResponseBodyEventIdSet) GoString() string { return s.String() } func (s *CreateSimulatedSystemEventsResponseBodyEventIdSet) SetEventId(v []*string) *CreateSimulatedSystemEventsResponseBodyEventIdSet { s.EventId = v return s } type CreateSimulatedSystemEventsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateSimulatedSystemEventsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateSimulatedSystemEventsResponse) String() string { return tea.Prettify(s) } func (s CreateSimulatedSystemEventsResponse) GoString() string { return s.String() } func (s *CreateSimulatedSystemEventsResponse) SetHeaders(v map[string]*string) *CreateSimulatedSystemEventsResponse { s.Headers = v return s } func (s *CreateSimulatedSystemEventsResponse) SetStatusCode(v int32) *CreateSimulatedSystemEventsResponse { s.StatusCode = &v return s } func (s *CreateSimulatedSystemEventsResponse) SetBody(v *CreateSimulatedSystemEventsResponseBody) *CreateSimulatedSystemEventsResponse { s.Body = v return s } type CreateSnapshotRequest struct { // The category of the snapshot. Valid values: // // * Standard: normal snapshot // * Flash: local snapshot // // > This parameter is no longer used. By default, new normal snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see [Use the instant access feature](~~193667~~). Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The retention period of the snapshot. Valid values: 1 to 65536. Unit: days. The snapshot is automatically released when its retention period expires. // // This parameter is empty by default, which indicates that the snapshot is not automatically released. ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The cloud disk ID. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Creates a snapshot for a disk. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // Specifies whether to enable the instant access feature. Valid values: // // * true: enables the instant access feature. This feature can be enabled only for ESSDs. // * false: does not enable the instant access feature. If InstantAccess is set to false, a normal snapshot is created. // // Default value: false. // // > This parameter is no longer used. By default, new normal snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see [Use the instant access feature](~~193667~~). InstantAccess *bool `json:"InstantAccess,omitempty" xml:"InstantAccess,omitempty"` // The validity period of the instant access feature. When the validity period ends, the feature is disabled and the instant access snapshot is automatically released. This parameter takes effect only when `InstantAccess` is set to true. Unit: days. Valid values: 1 to 65535. // // By default, the value of this parameter is the same as that of `RetentionDays`. // // > This parameter is no longer used. By default, new normal snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see [Use the instant access feature](~~193667~~). InstantAccessRetentionDays *int32 `json:"InstantAccessRetentionDays,omitempty" xml:"InstantAccessRetentionDays,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The snapshot type. Valid values: // // * Standard: normal snapshot // * Flash: local snapshot // // > This parameter will be removed in the future. We recommend that you use the `InstantAccess` parameter to ensure future compatibility. This parameter and the `InstantAccess` parameter cannot be specified at the same time. For more information, see the "Description" section of this topic. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The snapshot name. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). // // The name cannot start with `auto` because snapshots whose names start with auto are recognized as automatic snapshots. RetentionDays *int32 `json:"RetentionDays,omitempty" xml:"RetentionDays,omitempty"` // The name of the snapshot. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). // // It cannot start with `auto` because snapshots whose names start with auto are recognized as automatic snapshots. SnapshotName *string `json:"SnapshotName,omitempty" xml:"SnapshotName,omitempty"` // The value of tag N that you want to add to the snapshot. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with acs: or contain [http:// or https://.](http://https://。) StorageLocationArn *string `json:"StorageLocationArn,omitempty" xml:"StorageLocationArn,omitempty"` // Specifies whether to enable the instant access feature. Valid values: // // * true: enables the instant access feature. This feature can be enabled only for enhanced SSDs (ESSDs). // // ** // // **Note**After the instant access feature is enabled, an instant access (IA) snapshot is created and can be used to roll back disks or create disks across zones even when the snapshot is being created. This feature ensures that a new ESSD snapshot is available for use as soon as possible regardless of its size. // // * false: does not enable the instant access feature. If InstantAccess is set to false, a normal snapshot is created. // // Default value: false. // // > This parameter and the `Category` parameter cannot be specified at the same time. For more information, see the "Description" section of this topic. Tag []*CreateSnapshotRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CreateSnapshotRequest) String() string { return tea.Prettify(s) } func (s CreateSnapshotRequest) GoString() string { return s.String() } func (s *CreateSnapshotRequest) SetCategory(v string) *CreateSnapshotRequest { s.Category = &v return s } func (s *CreateSnapshotRequest) SetClientToken(v string) *CreateSnapshotRequest { s.ClientToken = &v return s } func (s *CreateSnapshotRequest) SetDescription(v string) *CreateSnapshotRequest { s.Description = &v return s } func (s *CreateSnapshotRequest) SetDiskId(v string) *CreateSnapshotRequest { s.DiskId = &v return s } func (s *CreateSnapshotRequest) SetInstantAccess(v bool) *CreateSnapshotRequest { s.InstantAccess = &v return s } func (s *CreateSnapshotRequest) SetInstantAccessRetentionDays(v int32) *CreateSnapshotRequest { s.InstantAccessRetentionDays = &v return s } func (s *CreateSnapshotRequest) SetOwnerAccount(v string) *CreateSnapshotRequest { s.OwnerAccount = &v return s } func (s *CreateSnapshotRequest) SetOwnerId(v int64) *CreateSnapshotRequest { s.OwnerId = &v return s } func (s *CreateSnapshotRequest) SetResourceGroupId(v string) *CreateSnapshotRequest { s.ResourceGroupId = &v return s } func (s *CreateSnapshotRequest) SetResourceOwnerAccount(v string) *CreateSnapshotRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateSnapshotRequest) SetResourceOwnerId(v int64) *CreateSnapshotRequest { s.ResourceOwnerId = &v return s } func (s *CreateSnapshotRequest) SetRetentionDays(v int32) *CreateSnapshotRequest { s.RetentionDays = &v return s } func (s *CreateSnapshotRequest) SetSnapshotName(v string) *CreateSnapshotRequest { s.SnapshotName = &v return s } func (s *CreateSnapshotRequest) SetStorageLocationArn(v string) *CreateSnapshotRequest { s.StorageLocationArn = &v return s } func (s *CreateSnapshotRequest) SetTag(v []*CreateSnapshotRequestTag) *CreateSnapshotRequest { s.Tag = v return s } type CreateSnapshotRequestTag struct { // The tags to add to the snapshot. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The tag key to add to the snapshot. // // > This parameter will be deprecated in the future. We recommend that you use the Tag.N.key parameter to ensure future compatibility. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateSnapshotRequestTag) String() string { return tea.Prettify(s) } func (s CreateSnapshotRequestTag) GoString() string { return s.String() } func (s *CreateSnapshotRequestTag) SetKey(v string) *CreateSnapshotRequestTag { s.Key = &v return s } func (s *CreateSnapshotRequestTag) SetValue(v string) *CreateSnapshotRequestTag { s.Value = &v return s } type CreateSnapshotResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s CreateSnapshotResponseBody) String() string { return tea.Prettify(s) } func (s CreateSnapshotResponseBody) GoString() string { return s.String() } func (s *CreateSnapshotResponseBody) SetRequestId(v string) *CreateSnapshotResponseBody { s.RequestId = &v return s } func (s *CreateSnapshotResponseBody) SetSnapshotId(v string) *CreateSnapshotResponseBody { s.SnapshotId = &v return s } type CreateSnapshotResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateSnapshotResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateSnapshotResponse) String() string { return tea.Prettify(s) } func (s CreateSnapshotResponse) GoString() string { return s.String() } func (s *CreateSnapshotResponse) SetHeaders(v map[string]*string) *CreateSnapshotResponse { s.Headers = v return s } func (s *CreateSnapshotResponse) SetStatusCode(v int32) *CreateSnapshotResponse { s.StatusCode = &v return s } func (s *CreateSnapshotResponse) SetBody(v *CreateSnapshotResponseBody) *CreateSnapshotResponse { s.Body = v return s } type CreateSnapshotGroupRequest struct { // The description of the snapshot-consistent group. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of cloud disk N for which you want to create snapshots. You can specify multiple cloud disk IDs across instances within the same zone. Valid values of N: 1 to 16. A single snapshot-consistent group can contain snapshots of up to 16 cloud disks whose total disk size does not exceed 32 TiB. // // Take note of the following items: // // * You cannot specify both DiskId.N and `ExcludeDiskId.N` in the same request. // * If `InstanceId` is set, you can use DiskId.N to specify only cloud disks attached to the instance specified by InstanceId, and you cannot use DiskId.N to specify cloud disks attached to multiple instances. DiskId []*string `json:"DiskId,omitempty" xml:"DiskId,omitempty" type:"Repeated"` // The ID of cloud disk N for which you do not want to create snapshots. If this parameter is specified, the created snapshot-consistent group does not contain snapshots of the cloud disk. Valid values of N: 1 to 16. // // This parameter is empty by default, which indicates that snapshots are created for all the disks of the instance. // // > You cannot specify ExcludeDiskId.N and `DiskId.N` in the same request. ExcludeDiskId []*string `json:"ExcludeDiskId,omitempty" xml:"ExcludeDiskId,omitempty" type:"Repeated"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // Specifies whether to enable the instant access feature. Valid values: // // * true // * false // // Default value: false. // // > This parameter is no longer used. By default, new normal snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see [Use the instant access feature](~~193667~~). InstantAccess *bool `json:"InstantAccess,omitempty" xml:"InstantAccess,omitempty"` // The number of days for which the instant access feature is available. Unit: days. Valid values: 1 to 65535. // // This parameter takes effect only when `InstantAccess` is set to true. The instant access feature is automatically disabled when the specified duration ends. // // This parameter is left empty by default, which indicates that the instant access feature is automatically disabled for snapshots when the snapshots are released. // // > This parameter is no longer used. By default, new normal snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see [Use the instant access feature](~~193667~~). InstantAccessRetentionDays *int32 `json:"InstantAccessRetentionDays,omitempty" xml:"InstantAccessRetentionDays,omitempty"` // The name of the snapshot-consistent group. The name must be 2 to 128 characters in length. The name can contain letters, digits, periods (.), underscores (\_), hyphens (-), and colons (:). It must start with a letter and cannot start with `http://` or `https://`. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the snapshot-consistent group belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // > This parameter is unavailable for public use. StorageLocationArn *string `json:"StorageLocationArn,omitempty" xml:"StorageLocationArn,omitempty"` // The list of tags. Tag []*CreateSnapshotGroupRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s CreateSnapshotGroupRequest) String() string { return tea.Prettify(s) } func (s CreateSnapshotGroupRequest) GoString() string { return s.String() } func (s *CreateSnapshotGroupRequest) SetDescription(v string) *CreateSnapshotGroupRequest { s.Description = &v return s } func (s *CreateSnapshotGroupRequest) SetDiskId(v []*string) *CreateSnapshotGroupRequest { s.DiskId = v return s } func (s *CreateSnapshotGroupRequest) SetExcludeDiskId(v []*string) *CreateSnapshotGroupRequest { s.ExcludeDiskId = v return s } func (s *CreateSnapshotGroupRequest) SetInstanceId(v string) *CreateSnapshotGroupRequest { s.InstanceId = &v return s } func (s *CreateSnapshotGroupRequest) SetInstantAccess(v bool) *CreateSnapshotGroupRequest { s.InstantAccess = &v return s } func (s *CreateSnapshotGroupRequest) SetInstantAccessRetentionDays(v int32) *CreateSnapshotGroupRequest { s.InstantAccessRetentionDays = &v return s } func (s *CreateSnapshotGroupRequest) SetName(v string) *CreateSnapshotGroupRequest { s.Name = &v return s } func (s *CreateSnapshotGroupRequest) SetOwnerAccount(v string) *CreateSnapshotGroupRequest { s.OwnerAccount = &v return s } func (s *CreateSnapshotGroupRequest) SetOwnerId(v int64) *CreateSnapshotGroupRequest { s.OwnerId = &v return s } func (s *CreateSnapshotGroupRequest) SetRegionId(v string) *CreateSnapshotGroupRequest { s.RegionId = &v return s } func (s *CreateSnapshotGroupRequest) SetResourceGroupId(v string) *CreateSnapshotGroupRequest { s.ResourceGroupId = &v return s } func (s *CreateSnapshotGroupRequest) SetResourceOwnerAccount(v string) *CreateSnapshotGroupRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateSnapshotGroupRequest) SetResourceOwnerId(v int64) *CreateSnapshotGroupRequest { s.ResourceOwnerId = &v return s } func (s *CreateSnapshotGroupRequest) SetStorageLocationArn(v string) *CreateSnapshotGroupRequest { s.StorageLocationArn = &v return s } func (s *CreateSnapshotGroupRequest) SetTag(v []*CreateSnapshotGroupRequestTag) *CreateSnapshotGroupRequest { s.Tag = v return s } type CreateSnapshotGroupRequestTag struct { // The key of tag N of the snapshot-consistent group. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the snapshot-consistent group. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with `acs:`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s CreateSnapshotGroupRequestTag) String() string { return tea.Prettify(s) } func (s CreateSnapshotGroupRequestTag) GoString() string { return s.String() } func (s *CreateSnapshotGroupRequestTag) SetKey(v string) *CreateSnapshotGroupRequestTag { s.Key = &v return s } func (s *CreateSnapshotGroupRequestTag) SetValue(v string) *CreateSnapshotGroupRequestTag { s.Value = &v return s } type CreateSnapshotGroupResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the snapshot-consistent group. SnapshotGroupId *string `json:"SnapshotGroupId,omitempty" xml:"SnapshotGroupId,omitempty"` } func (s CreateSnapshotGroupResponseBody) String() string { return tea.Prettify(s) } func (s CreateSnapshotGroupResponseBody) GoString() string { return s.String() } func (s *CreateSnapshotGroupResponseBody) SetRequestId(v string) *CreateSnapshotGroupResponseBody { s.RequestId = &v return s } func (s *CreateSnapshotGroupResponseBody) SetSnapshotGroupId(v string) *CreateSnapshotGroupResponseBody { s.SnapshotGroupId = &v return s } type CreateSnapshotGroupResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateSnapshotGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateSnapshotGroupResponse) String() string { return tea.Prettify(s) } func (s CreateSnapshotGroupResponse) GoString() string { return s.String() } func (s *CreateSnapshotGroupResponse) SetHeaders(v map[string]*string) *CreateSnapshotGroupResponse { s.Headers = v return s } func (s *CreateSnapshotGroupResponse) SetStatusCode(v int32) *CreateSnapshotGroupResponse { s.StatusCode = &v return s } func (s *CreateSnapshotGroupResponse) SetBody(v *CreateSnapshotGroupResponseBody) *CreateSnapshotGroupResponse { s.Body = v return s } type CreateStorageSetRequest struct { // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The description of the storage set. The description must be 2 to 256 characters in length and cannot start with [http:// or https://](http://https://。). Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The maximum number of partitions supported by the storage set. The value must be greater than or equal to 2 but cannot exceed the quota that you obtained by calling the [DescribeAccountAttributes](~~73772~~) operation. // // Default value: 2. MaxPartitionNumber *int32 `json:"MaxPartitionNumber,omitempty" xml:"MaxPartitionNumber,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the storage set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The name of the storage set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (\_), and hyphens (-). The name must start with a letter and cannot start with [http:// or https:// ](http://https://。、(:)、(\_)(-)。). StorageSetName *string `json:"StorageSetName,omitempty" xml:"StorageSetName,omitempty"` // The zone ID of the storage set. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateStorageSetRequest) String() string { return tea.Prettify(s) } func (s CreateStorageSetRequest) GoString() string { return s.String() } func (s *CreateStorageSetRequest) SetClientToken(v string) *CreateStorageSetRequest { s.ClientToken = &v return s } func (s *CreateStorageSetRequest) SetDescription(v string) *CreateStorageSetRequest { s.Description = &v return s } func (s *CreateStorageSetRequest) SetMaxPartitionNumber(v int32) *CreateStorageSetRequest { s.MaxPartitionNumber = &v return s } func (s *CreateStorageSetRequest) SetOwnerAccount(v string) *CreateStorageSetRequest { s.OwnerAccount = &v return s } func (s *CreateStorageSetRequest) SetOwnerId(v int64) *CreateStorageSetRequest { s.OwnerId = &v return s } func (s *CreateStorageSetRequest) SetRegionId(v string) *CreateStorageSetRequest { s.RegionId = &v return s } func (s *CreateStorageSetRequest) SetResourceOwnerAccount(v string) *CreateStorageSetRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateStorageSetRequest) SetResourceOwnerId(v int64) *CreateStorageSetRequest { s.ResourceOwnerId = &v return s } func (s *CreateStorageSetRequest) SetStorageSetName(v string) *CreateStorageSetRequest { s.StorageSetName = &v return s } func (s *CreateStorageSetRequest) SetZoneId(v string) *CreateStorageSetRequest { s.ZoneId = &v return s } type CreateStorageSetResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the storage set. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` } func (s CreateStorageSetResponseBody) String() string { return tea.Prettify(s) } func (s CreateStorageSetResponseBody) GoString() string { return s.String() } func (s *CreateStorageSetResponseBody) SetRequestId(v string) *CreateStorageSetResponseBody { s.RequestId = &v return s } func (s *CreateStorageSetResponseBody) SetStorageSetId(v string) *CreateStorageSetResponseBody { s.StorageSetId = &v return s } type CreateStorageSetResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateStorageSetResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateStorageSetResponse) String() string { return tea.Prettify(s) } func (s CreateStorageSetResponse) GoString() string { return s.String() } func (s *CreateStorageSetResponse) SetHeaders(v map[string]*string) *CreateStorageSetResponse { s.Headers = v return s } func (s *CreateStorageSetResponse) SetStatusCode(v int32) *CreateStorageSetResponse { s.StatusCode = &v return s } func (s *CreateStorageSetResponse) SetBody(v *CreateStorageSetResponseBody) *CreateStorageSetResponse { s.Body = v return s } type CreateVSwitchRequest struct { CidrBlock *string `json:"CidrBlock,omitempty" xml:"CidrBlock,omitempty"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VSwitchName *string `json:"VSwitchName,omitempty" xml:"VSwitchName,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s CreateVSwitchRequest) String() string { return tea.Prettify(s) } func (s CreateVSwitchRequest) GoString() string { return s.String() } func (s *CreateVSwitchRequest) SetCidrBlock(v string) *CreateVSwitchRequest { s.CidrBlock = &v return s } func (s *CreateVSwitchRequest) SetClientToken(v string) *CreateVSwitchRequest { s.ClientToken = &v return s } func (s *CreateVSwitchRequest) SetDescription(v string) *CreateVSwitchRequest { s.Description = &v return s } func (s *CreateVSwitchRequest) SetOwnerAccount(v string) *CreateVSwitchRequest { s.OwnerAccount = &v return s } func (s *CreateVSwitchRequest) SetOwnerId(v int64) *CreateVSwitchRequest { s.OwnerId = &v return s } func (s *CreateVSwitchRequest) SetRegionId(v string) *CreateVSwitchRequest { s.RegionId = &v return s } func (s *CreateVSwitchRequest) SetResourceOwnerAccount(v string) *CreateVSwitchRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateVSwitchRequest) SetResourceOwnerId(v int64) *CreateVSwitchRequest { s.ResourceOwnerId = &v return s } func (s *CreateVSwitchRequest) SetVSwitchName(v string) *CreateVSwitchRequest { s.VSwitchName = &v return s } func (s *CreateVSwitchRequest) SetVpcId(v string) *CreateVSwitchRequest { s.VpcId = &v return s } func (s *CreateVSwitchRequest) SetZoneId(v string) *CreateVSwitchRequest { s.ZoneId = &v return s } type CreateVSwitchResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s CreateVSwitchResponseBody) String() string { return tea.Prettify(s) } func (s CreateVSwitchResponseBody) GoString() string { return s.String() } func (s *CreateVSwitchResponseBody) SetRequestId(v string) *CreateVSwitchResponseBody { s.RequestId = &v return s } func (s *CreateVSwitchResponseBody) SetVSwitchId(v string) *CreateVSwitchResponseBody { s.VSwitchId = &v return s } type CreateVSwitchResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateVSwitchResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateVSwitchResponse) String() string { return tea.Prettify(s) } func (s CreateVSwitchResponse) GoString() string { return s.String() } func (s *CreateVSwitchResponse) SetHeaders(v map[string]*string) *CreateVSwitchResponse { s.Headers = v return s } func (s *CreateVSwitchResponse) SetStatusCode(v int32) *CreateVSwitchResponse { s.StatusCode = &v return s } func (s *CreateVSwitchResponse) SetBody(v *CreateVSwitchResponseBody) *CreateVSwitchResponse { s.Body = v return s } type CreateVirtualBorderRouterRequest struct { CircuitCode *string `json:"CircuitCode,omitempty" xml:"CircuitCode,omitempty"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` LocalGatewayIp *string `json:"LocalGatewayIp,omitempty" xml:"LocalGatewayIp,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PeerGatewayIp *string `json:"PeerGatewayIp,omitempty" xml:"PeerGatewayIp,omitempty"` PeeringSubnetMask *string `json:"PeeringSubnetMask,omitempty" xml:"PeeringSubnetMask,omitempty"` PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` VbrOwnerId *int64 `json:"VbrOwnerId,omitempty" xml:"VbrOwnerId,omitempty"` VlanId *int32 `json:"VlanId,omitempty" xml:"VlanId,omitempty"` } func (s CreateVirtualBorderRouterRequest) String() string { return tea.Prettify(s) } func (s CreateVirtualBorderRouterRequest) GoString() string { return s.String() } func (s *CreateVirtualBorderRouterRequest) SetCircuitCode(v string) *CreateVirtualBorderRouterRequest { s.CircuitCode = &v return s } func (s *CreateVirtualBorderRouterRequest) SetClientToken(v string) *CreateVirtualBorderRouterRequest { s.ClientToken = &v return s } func (s *CreateVirtualBorderRouterRequest) SetDescription(v string) *CreateVirtualBorderRouterRequest { s.Description = &v return s } func (s *CreateVirtualBorderRouterRequest) SetLocalGatewayIp(v string) *CreateVirtualBorderRouterRequest { s.LocalGatewayIp = &v return s } func (s *CreateVirtualBorderRouterRequest) SetName(v string) *CreateVirtualBorderRouterRequest { s.Name = &v return s } func (s *CreateVirtualBorderRouterRequest) SetOwnerAccount(v string) *CreateVirtualBorderRouterRequest { s.OwnerAccount = &v return s } func (s *CreateVirtualBorderRouterRequest) SetOwnerId(v int64) *CreateVirtualBorderRouterRequest { s.OwnerId = &v return s } func (s *CreateVirtualBorderRouterRequest) SetPeerGatewayIp(v string) *CreateVirtualBorderRouterRequest { s.PeerGatewayIp = &v return s } func (s *CreateVirtualBorderRouterRequest) SetPeeringSubnetMask(v string) *CreateVirtualBorderRouterRequest { s.PeeringSubnetMask = &v return s } func (s *CreateVirtualBorderRouterRequest) SetPhysicalConnectionId(v string) *CreateVirtualBorderRouterRequest { s.PhysicalConnectionId = &v return s } func (s *CreateVirtualBorderRouterRequest) SetRegionId(v string) *CreateVirtualBorderRouterRequest { s.RegionId = &v return s } func (s *CreateVirtualBorderRouterRequest) SetResourceOwnerAccount(v string) *CreateVirtualBorderRouterRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateVirtualBorderRouterRequest) SetResourceOwnerId(v int64) *CreateVirtualBorderRouterRequest { s.ResourceOwnerId = &v return s } func (s *CreateVirtualBorderRouterRequest) SetUserCidr(v string) *CreateVirtualBorderRouterRequest { s.UserCidr = &v return s } func (s *CreateVirtualBorderRouterRequest) SetVbrOwnerId(v int64) *CreateVirtualBorderRouterRequest { s.VbrOwnerId = &v return s } func (s *CreateVirtualBorderRouterRequest) SetVlanId(v int32) *CreateVirtualBorderRouterRequest { s.VlanId = &v return s } type CreateVirtualBorderRouterResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` VbrId *string `json:"VbrId,omitempty" xml:"VbrId,omitempty"` } func (s CreateVirtualBorderRouterResponseBody) String() string { return tea.Prettify(s) } func (s CreateVirtualBorderRouterResponseBody) GoString() string { return s.String() } func (s *CreateVirtualBorderRouterResponseBody) SetRequestId(v string) *CreateVirtualBorderRouterResponseBody { s.RequestId = &v return s } func (s *CreateVirtualBorderRouterResponseBody) SetVbrId(v string) *CreateVirtualBorderRouterResponseBody { s.VbrId = &v return s } type CreateVirtualBorderRouterResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateVirtualBorderRouterResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateVirtualBorderRouterResponse) String() string { return tea.Prettify(s) } func (s CreateVirtualBorderRouterResponse) GoString() string { return s.String() } func (s *CreateVirtualBorderRouterResponse) SetHeaders(v map[string]*string) *CreateVirtualBorderRouterResponse { s.Headers = v return s } func (s *CreateVirtualBorderRouterResponse) SetStatusCode(v int32) *CreateVirtualBorderRouterResponse { s.StatusCode = &v return s } func (s *CreateVirtualBorderRouterResponse) SetBody(v *CreateVirtualBorderRouterResponseBody) *CreateVirtualBorderRouterResponse { s.Body = v return s } type CreateVpcRequest struct { CidrBlock *string `json:"CidrBlock,omitempty" xml:"CidrBlock,omitempty"` ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` VpcName *string `json:"VpcName,omitempty" xml:"VpcName,omitempty"` } func (s CreateVpcRequest) String() string { return tea.Prettify(s) } func (s CreateVpcRequest) GoString() string { return s.String() } func (s *CreateVpcRequest) SetCidrBlock(v string) *CreateVpcRequest { s.CidrBlock = &v return s } func (s *CreateVpcRequest) SetClientToken(v string) *CreateVpcRequest { s.ClientToken = &v return s } func (s *CreateVpcRequest) SetDescription(v string) *CreateVpcRequest { s.Description = &v return s } func (s *CreateVpcRequest) SetOwnerAccount(v string) *CreateVpcRequest { s.OwnerAccount = &v return s } func (s *CreateVpcRequest) SetOwnerId(v int64) *CreateVpcRequest { s.OwnerId = &v return s } func (s *CreateVpcRequest) SetRegionId(v string) *CreateVpcRequest { s.RegionId = &v return s } func (s *CreateVpcRequest) SetResourceOwnerAccount(v string) *CreateVpcRequest { s.ResourceOwnerAccount = &v return s } func (s *CreateVpcRequest) SetResourceOwnerId(v int64) *CreateVpcRequest { s.ResourceOwnerId = &v return s } func (s *CreateVpcRequest) SetUserCidr(v string) *CreateVpcRequest { s.UserCidr = &v return s } func (s *CreateVpcRequest) SetVpcName(v string) *CreateVpcRequest { s.VpcName = &v return s } type CreateVpcResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` RouteTableId *string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty"` VRouterId *string `json:"VRouterId,omitempty" xml:"VRouterId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s CreateVpcResponseBody) String() string { return tea.Prettify(s) } func (s CreateVpcResponseBody) GoString() string { return s.String() } func (s *CreateVpcResponseBody) SetRequestId(v string) *CreateVpcResponseBody { s.RequestId = &v return s } func (s *CreateVpcResponseBody) SetRouteTableId(v string) *CreateVpcResponseBody { s.RouteTableId = &v return s } func (s *CreateVpcResponseBody) SetVRouterId(v string) *CreateVpcResponseBody { s.VRouterId = &v return s } func (s *CreateVpcResponseBody) SetVpcId(v string) *CreateVpcResponseBody { s.VpcId = &v return s } type CreateVpcResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *CreateVpcResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s CreateVpcResponse) String() string { return tea.Prettify(s) } func (s CreateVpcResponse) GoString() string { return s.String() } func (s *CreateVpcResponse) SetHeaders(v map[string]*string) *CreateVpcResponse { s.Headers = v return s } func (s *CreateVpcResponse) SetStatusCode(v int32) *CreateVpcResponse { s.StatusCode = &v return s } func (s *CreateVpcResponse) SetBody(v *CreateVpcResponseBody) *CreateVpcResponse { s.Body = v return s } type DeactivateRouterInterfaceRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RouterInterfaceId *string `json:"RouterInterfaceId,omitempty" xml:"RouterInterfaceId,omitempty"` } func (s DeactivateRouterInterfaceRequest) String() string { return tea.Prettify(s) } func (s DeactivateRouterInterfaceRequest) GoString() string { return s.String() } func (s *DeactivateRouterInterfaceRequest) SetOwnerId(v int64) *DeactivateRouterInterfaceRequest { s.OwnerId = &v return s } func (s *DeactivateRouterInterfaceRequest) SetRegionId(v string) *DeactivateRouterInterfaceRequest { s.RegionId = &v return s } func (s *DeactivateRouterInterfaceRequest) SetResourceOwnerAccount(v string) *DeactivateRouterInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *DeactivateRouterInterfaceRequest) SetResourceOwnerId(v int64) *DeactivateRouterInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *DeactivateRouterInterfaceRequest) SetRouterInterfaceId(v string) *DeactivateRouterInterfaceRequest { s.RouterInterfaceId = &v return s } type DeactivateRouterInterfaceResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeactivateRouterInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s DeactivateRouterInterfaceResponseBody) GoString() string { return s.String() } func (s *DeactivateRouterInterfaceResponseBody) SetRequestId(v string) *DeactivateRouterInterfaceResponseBody { s.RequestId = &v return s } type DeactivateRouterInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeactivateRouterInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeactivateRouterInterfaceResponse) String() string { return tea.Prettify(s) } func (s DeactivateRouterInterfaceResponse) GoString() string { return s.String() } func (s *DeactivateRouterInterfaceResponse) SetHeaders(v map[string]*string) *DeactivateRouterInterfaceResponse { s.Headers = v return s } func (s *DeactivateRouterInterfaceResponse) SetStatusCode(v int32) *DeactivateRouterInterfaceResponse { s.StatusCode = &v return s } func (s *DeactivateRouterInterfaceResponse) SetBody(v *DeactivateRouterInterfaceResponseBody) *DeactivateRouterInterfaceResponse { s.Body = v return s } type DeleteActivationRequest struct { // The ID of the request. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the activation code. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteActivationRequest) String() string { return tea.Prettify(s) } func (s DeleteActivationRequest) GoString() string { return s.String() } func (s *DeleteActivationRequest) SetActivationId(v string) *DeleteActivationRequest { s.ActivationId = &v return s } func (s *DeleteActivationRequest) SetOwnerAccount(v string) *DeleteActivationRequest { s.OwnerAccount = &v return s } func (s *DeleteActivationRequest) SetOwnerId(v int64) *DeleteActivationRequest { s.OwnerId = &v return s } func (s *DeleteActivationRequest) SetRegionId(v string) *DeleteActivationRequest { s.RegionId = &v return s } func (s *DeleteActivationRequest) SetResourceOwnerAccount(v string) *DeleteActivationRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteActivationRequest) SetResourceOwnerId(v int64) *DeleteActivationRequest { s.ResourceOwnerId = &v return s } type DeleteActivationResponseBody struct { // The time when the activation code was created. Activation *DeleteActivationResponseBodyActivation `json:"Activation,omitempty" xml:"Activation,omitempty" type:"Struct"` // Details of the activation code and its usage information. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteActivationResponseBody) String() string { return tea.Prettify(s) } func (s DeleteActivationResponseBody) GoString() string { return s.String() } func (s *DeleteActivationResponseBody) SetActivation(v *DeleteActivationResponseBodyActivation) *DeleteActivationResponseBody { s.Activation = v return s } func (s *DeleteActivationResponseBody) SetRequestId(v string) *DeleteActivationResponseBody { s.RequestId = &v return s } type DeleteActivationResponseBodyActivation struct { ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The number of instances that were deregistered. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The maximum number of times that the activation code can be used to register managed instances. DeregisteredCount *int32 `json:"DeregisteredCount,omitempty" xml:"DeregisteredCount,omitempty"` // The number of registered instances. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The description of the activation code. InstanceCount *int32 `json:"InstanceCount,omitempty" xml:"InstanceCount,omitempty"` // The IP addresses of hosts that are allowed to use the activation code. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The validity period of the activation code. Unit: hours. IpAddressRange *string `json:"IpAddressRange,omitempty" xml:"IpAddressRange,omitempty"` // The default instance name prefix. RegisteredCount *int32 `json:"RegisteredCount,omitempty" xml:"RegisteredCount,omitempty"` // The ID of the activation code. TimeToLiveInHours *int64 `json:"TimeToLiveInHours,omitempty" xml:"TimeToLiveInHours,omitempty"` } func (s DeleteActivationResponseBodyActivation) String() string { return tea.Prettify(s) } func (s DeleteActivationResponseBodyActivation) GoString() string { return s.String() } func (s *DeleteActivationResponseBodyActivation) SetActivationId(v string) *DeleteActivationResponseBodyActivation { s.ActivationId = &v return s } func (s *DeleteActivationResponseBodyActivation) SetCreationTime(v string) *DeleteActivationResponseBodyActivation { s.CreationTime = &v return s } func (s *DeleteActivationResponseBodyActivation) SetDeregisteredCount(v int32) *DeleteActivationResponseBodyActivation { s.DeregisteredCount = &v return s } func (s *DeleteActivationResponseBodyActivation) SetDescription(v string) *DeleteActivationResponseBodyActivation { s.Description = &v return s } func (s *DeleteActivationResponseBodyActivation) SetInstanceCount(v int32) *DeleteActivationResponseBodyActivation { s.InstanceCount = &v return s } func (s *DeleteActivationResponseBodyActivation) SetInstanceName(v string) *DeleteActivationResponseBodyActivation { s.InstanceName = &v return s } func (s *DeleteActivationResponseBodyActivation) SetIpAddressRange(v string) *DeleteActivationResponseBodyActivation { s.IpAddressRange = &v return s } func (s *DeleteActivationResponseBodyActivation) SetRegisteredCount(v int32) *DeleteActivationResponseBodyActivation { s.RegisteredCount = &v return s } func (s *DeleteActivationResponseBodyActivation) SetTimeToLiveInHours(v int64) *DeleteActivationResponseBodyActivation { s.TimeToLiveInHours = &v return s } type DeleteActivationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteActivationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteActivationResponse) String() string { return tea.Prettify(s) } func (s DeleteActivationResponse) GoString() string { return s.String() } func (s *DeleteActivationResponse) SetHeaders(v map[string]*string) *DeleteActivationResponse { s.Headers = v return s } func (s *DeleteActivationResponse) SetStatusCode(v int32) *DeleteActivationResponse { s.StatusCode = &v return s } func (s *DeleteActivationResponse) SetBody(v *DeleteActivationResponseBody) *DeleteActivationResponse { s.Body = v return s } type DeleteAutoProvisioningGroupRequest struct { // The ID of the auto provisioning group. AutoProvisioningGroupId *string `json:"AutoProvisioningGroupId,omitempty" xml:"AutoProvisioningGroupId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the auto provisioning group. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether to release instances in the auto provisioning group. Valid values: // // * true // * false // // > By default, this parameter inherits the value of `TerminateInstances` that you specified when you call the `CreateAutoProvisioningGroup` operation to create an auto provisioning group. You can also change the value of `TerminateInstances` when you call the DeleteAutoProvisioningGroup operation to delete the auto provisioning group. TerminateInstances *bool `json:"TerminateInstances,omitempty" xml:"TerminateInstances,omitempty"` } func (s DeleteAutoProvisioningGroupRequest) String() string { return tea.Prettify(s) } func (s DeleteAutoProvisioningGroupRequest) GoString() string { return s.String() } func (s *DeleteAutoProvisioningGroupRequest) SetAutoProvisioningGroupId(v string) *DeleteAutoProvisioningGroupRequest { s.AutoProvisioningGroupId = &v return s } func (s *DeleteAutoProvisioningGroupRequest) SetOwnerAccount(v string) *DeleteAutoProvisioningGroupRequest { s.OwnerAccount = &v return s } func (s *DeleteAutoProvisioningGroupRequest) SetOwnerId(v int64) *DeleteAutoProvisioningGroupRequest { s.OwnerId = &v return s } func (s *DeleteAutoProvisioningGroupRequest) SetRegionId(v string) *DeleteAutoProvisioningGroupRequest { s.RegionId = &v return s } func (s *DeleteAutoProvisioningGroupRequest) SetResourceOwnerAccount(v string) *DeleteAutoProvisioningGroupRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteAutoProvisioningGroupRequest) SetResourceOwnerId(v int64) *DeleteAutoProvisioningGroupRequest { s.ResourceOwnerId = &v return s } func (s *DeleteAutoProvisioningGroupRequest) SetTerminateInstances(v bool) *DeleteAutoProvisioningGroupRequest { s.TerminateInstances = &v return s } type DeleteAutoProvisioningGroupResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteAutoProvisioningGroupResponseBody) String() string { return tea.Prettify(s) } func (s DeleteAutoProvisioningGroupResponseBody) GoString() string { return s.String() } func (s *DeleteAutoProvisioningGroupResponseBody) SetRequestId(v string) *DeleteAutoProvisioningGroupResponseBody { s.RequestId = &v return s } type DeleteAutoProvisioningGroupResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteAutoProvisioningGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteAutoProvisioningGroupResponse) String() string { return tea.Prettify(s) } func (s DeleteAutoProvisioningGroupResponse) GoString() string { return s.String() } func (s *DeleteAutoProvisioningGroupResponse) SetHeaders(v map[string]*string) *DeleteAutoProvisioningGroupResponse { s.Headers = v return s } func (s *DeleteAutoProvisioningGroupResponse) SetStatusCode(v int32) *DeleteAutoProvisioningGroupResponse { s.StatusCode = &v return s } func (s *DeleteAutoProvisioningGroupResponse) SetBody(v *DeleteAutoProvisioningGroupResponseBody) *DeleteAutoProvisioningGroupResponse { s.Body = v return s } type DeleteAutoSnapshotPolicyRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the automatic snapshot policy. You can call the [DescribeAutoSnapshotPolicyEx](~~25530~~) operation to query the available automatic snapshot policies. AutoSnapshotPolicyId *string `json:"autoSnapshotPolicyId,omitempty" xml:"autoSnapshotPolicyId,omitempty"` // The region ID of the automatic snapshot policy. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"` } func (s DeleteAutoSnapshotPolicyRequest) String() string { return tea.Prettify(s) } func (s DeleteAutoSnapshotPolicyRequest) GoString() string { return s.String() } func (s *DeleteAutoSnapshotPolicyRequest) SetOwnerId(v int64) *DeleteAutoSnapshotPolicyRequest { s.OwnerId = &v return s } func (s *DeleteAutoSnapshotPolicyRequest) SetResourceOwnerAccount(v string) *DeleteAutoSnapshotPolicyRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteAutoSnapshotPolicyRequest) SetResourceOwnerId(v int64) *DeleteAutoSnapshotPolicyRequest { s.ResourceOwnerId = &v return s } func (s *DeleteAutoSnapshotPolicyRequest) SetAutoSnapshotPolicyId(v string) *DeleteAutoSnapshotPolicyRequest { s.AutoSnapshotPolicyId = &v return s } func (s *DeleteAutoSnapshotPolicyRequest) SetRegionId(v string) *DeleteAutoSnapshotPolicyRequest { s.RegionId = &v return s } type DeleteAutoSnapshotPolicyResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteAutoSnapshotPolicyResponseBody) String() string { return tea.Prettify(s) } func (s DeleteAutoSnapshotPolicyResponseBody) GoString() string { return s.String() } func (s *DeleteAutoSnapshotPolicyResponseBody) SetRequestId(v string) *DeleteAutoSnapshotPolicyResponseBody { s.RequestId = &v return s } type DeleteAutoSnapshotPolicyResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteAutoSnapshotPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteAutoSnapshotPolicyResponse) String() string { return tea.Prettify(s) } func (s DeleteAutoSnapshotPolicyResponse) GoString() string { return s.String() } func (s *DeleteAutoSnapshotPolicyResponse) SetHeaders(v map[string]*string) *DeleteAutoSnapshotPolicyResponse { s.Headers = v return s } func (s *DeleteAutoSnapshotPolicyResponse) SetStatusCode(v int32) *DeleteAutoSnapshotPolicyResponse { s.StatusCode = &v return s } func (s *DeleteAutoSnapshotPolicyResponse) SetBody(v *DeleteAutoSnapshotPolicyResponseBody) *DeleteAutoSnapshotPolicyResponse { s.Body = v return s } type DeleteBandwidthPackageRequest struct { BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" xml:"BandwidthPackageId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteBandwidthPackageRequest) String() string { return tea.Prettify(s) } func (s DeleteBandwidthPackageRequest) GoString() string { return s.String() } func (s *DeleteBandwidthPackageRequest) SetBandwidthPackageId(v string) *DeleteBandwidthPackageRequest { s.BandwidthPackageId = &v return s } func (s *DeleteBandwidthPackageRequest) SetOwnerAccount(v string) *DeleteBandwidthPackageRequest { s.OwnerAccount = &v return s } func (s *DeleteBandwidthPackageRequest) SetOwnerId(v int64) *DeleteBandwidthPackageRequest { s.OwnerId = &v return s } func (s *DeleteBandwidthPackageRequest) SetRegionId(v string) *DeleteBandwidthPackageRequest { s.RegionId = &v return s } func (s *DeleteBandwidthPackageRequest) SetResourceOwnerAccount(v string) *DeleteBandwidthPackageRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteBandwidthPackageRequest) SetResourceOwnerId(v int64) *DeleteBandwidthPackageRequest { s.ResourceOwnerId = &v return s } type DeleteBandwidthPackageResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteBandwidthPackageResponseBody) String() string { return tea.Prettify(s) } func (s DeleteBandwidthPackageResponseBody) GoString() string { return s.String() } func (s *DeleteBandwidthPackageResponseBody) SetRequestId(v string) *DeleteBandwidthPackageResponseBody { s.RequestId = &v return s } type DeleteBandwidthPackageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteBandwidthPackageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteBandwidthPackageResponse) String() string { return tea.Prettify(s) } func (s DeleteBandwidthPackageResponse) GoString() string { return s.String() } func (s *DeleteBandwidthPackageResponse) SetHeaders(v map[string]*string) *DeleteBandwidthPackageResponse { s.Headers = v return s } func (s *DeleteBandwidthPackageResponse) SetStatusCode(v int32) *DeleteBandwidthPackageResponse { s.StatusCode = &v return s } func (s *DeleteBandwidthPackageResponse) SetBody(v *DeleteBandwidthPackageResponseBody) *DeleteBandwidthPackageResponse { s.Body = v return s } type DeleteCommandRequest struct { CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // $.parameters[1].schema.enumValueTitles RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteCommandRequest) String() string { return tea.Prettify(s) } func (s DeleteCommandRequest) GoString() string { return s.String() } func (s *DeleteCommandRequest) SetCommandId(v string) *DeleteCommandRequest { s.CommandId = &v return s } func (s *DeleteCommandRequest) SetOwnerAccount(v string) *DeleteCommandRequest { s.OwnerAccount = &v return s } func (s *DeleteCommandRequest) SetOwnerId(v int64) *DeleteCommandRequest { s.OwnerId = &v return s } func (s *DeleteCommandRequest) SetRegionId(v string) *DeleteCommandRequest { s.RegionId = &v return s } func (s *DeleteCommandRequest) SetResourceOwnerAccount(v string) *DeleteCommandRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteCommandRequest) SetResourceOwnerId(v int64) *DeleteCommandRequest { s.ResourceOwnerId = &v return s } type DeleteCommandResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteCommandResponseBody) String() string { return tea.Prettify(s) } func (s DeleteCommandResponseBody) GoString() string { return s.String() } func (s *DeleteCommandResponseBody) SetRequestId(v string) *DeleteCommandResponseBody { s.RequestId = &v return s } type DeleteCommandResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteCommandResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteCommandResponse) String() string { return tea.Prettify(s) } func (s DeleteCommandResponse) GoString() string { return s.String() } func (s *DeleteCommandResponse) SetHeaders(v map[string]*string) *DeleteCommandResponse { s.Headers = v return s } func (s *DeleteCommandResponse) SetStatusCode(v int32) *DeleteCommandResponse { s.StatusCode = &v return s } func (s *DeleteCommandResponse) SetBody(v *DeleteCommandResponseBody) *DeleteCommandResponse { s.Body = v return s } type DeleteDedicatedHostClusterRequest struct { // The ID of the dedicated host cluster. DedicatedHostClusterId *string `json:"DedicatedHostClusterId,omitempty" xml:"DedicatedHostClusterId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the dedicated host cluster. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteDedicatedHostClusterRequest) String() string { return tea.Prettify(s) } func (s DeleteDedicatedHostClusterRequest) GoString() string { return s.String() } func (s *DeleteDedicatedHostClusterRequest) SetDedicatedHostClusterId(v string) *DeleteDedicatedHostClusterRequest { s.DedicatedHostClusterId = &v return s } func (s *DeleteDedicatedHostClusterRequest) SetOwnerAccount(v string) *DeleteDedicatedHostClusterRequest { s.OwnerAccount = &v return s } func (s *DeleteDedicatedHostClusterRequest) SetOwnerId(v int64) *DeleteDedicatedHostClusterRequest { s.OwnerId = &v return s } func (s *DeleteDedicatedHostClusterRequest) SetRegionId(v string) *DeleteDedicatedHostClusterRequest { s.RegionId = &v return s } func (s *DeleteDedicatedHostClusterRequest) SetResourceOwnerAccount(v string) *DeleteDedicatedHostClusterRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteDedicatedHostClusterRequest) SetResourceOwnerId(v int64) *DeleteDedicatedHostClusterRequest { s.ResourceOwnerId = &v return s } type DeleteDedicatedHostClusterResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteDedicatedHostClusterResponseBody) String() string { return tea.Prettify(s) } func (s DeleteDedicatedHostClusterResponseBody) GoString() string { return s.String() } func (s *DeleteDedicatedHostClusterResponseBody) SetRequestId(v string) *DeleteDedicatedHostClusterResponseBody { s.RequestId = &v return s } type DeleteDedicatedHostClusterResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteDedicatedHostClusterResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteDedicatedHostClusterResponse) String() string { return tea.Prettify(s) } func (s DeleteDedicatedHostClusterResponse) GoString() string { return s.String() } func (s *DeleteDedicatedHostClusterResponse) SetHeaders(v map[string]*string) *DeleteDedicatedHostClusterResponse { s.Headers = v return s } func (s *DeleteDedicatedHostClusterResponse) SetStatusCode(v int32) *DeleteDedicatedHostClusterResponse { s.StatusCode = &v return s } func (s *DeleteDedicatedHostClusterResponse) SetBody(v *DeleteDedicatedHostClusterResponseBody) *DeleteDedicatedHostClusterResponse { s.Body = v return s } type DeleteDemandRequest struct { // The client token that is used to ensure the idempotence of the request. You can use the client to generate the value that is unique among different requests. The `ClientToken` value can only contain ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The ID of the requirement. DemandId *string `json:"DemandId,omitempty" xml:"DemandId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The reason for deleting the filing form. Enter details. Reason *string `json:"Reason,omitempty" xml:"Reason,omitempty"` // The region ID of the filed instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteDemandRequest) String() string { return tea.Prettify(s) } func (s DeleteDemandRequest) GoString() string { return s.String() } func (s *DeleteDemandRequest) SetClientToken(v string) *DeleteDemandRequest { s.ClientToken = &v return s } func (s *DeleteDemandRequest) SetDemandId(v string) *DeleteDemandRequest { s.DemandId = &v return s } func (s *DeleteDemandRequest) SetOwnerAccount(v string) *DeleteDemandRequest { s.OwnerAccount = &v return s } func (s *DeleteDemandRequest) SetOwnerId(v int64) *DeleteDemandRequest { s.OwnerId = &v return s } func (s *DeleteDemandRequest) SetReason(v string) *DeleteDemandRequest { s.Reason = &v return s } func (s *DeleteDemandRequest) SetRegionId(v string) *DeleteDemandRequest { s.RegionId = &v return s } func (s *DeleteDemandRequest) SetResourceOwnerAccount(v string) *DeleteDemandRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteDemandRequest) SetResourceOwnerId(v int64) *DeleteDemandRequest { s.ResourceOwnerId = &v return s } type DeleteDemandResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteDemandResponseBody) String() string { return tea.Prettify(s) } func (s DeleteDemandResponseBody) GoString() string { return s.String() } func (s *DeleteDemandResponseBody) SetRequestId(v string) *DeleteDemandResponseBody { s.RequestId = &v return s } type DeleteDemandResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteDemandResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteDemandResponse) String() string { return tea.Prettify(s) } func (s DeleteDemandResponse) GoString() string { return s.String() } func (s *DeleteDemandResponse) SetHeaders(v map[string]*string) *DeleteDemandResponse { s.Headers = v return s } func (s *DeleteDemandResponse) SetStatusCode(v int32) *DeleteDemandResponse { s.StatusCode = &v return s } func (s *DeleteDemandResponse) SetBody(v *DeleteDemandResponseBody) *DeleteDemandResponse { s.Body = v return s } type DeleteDeploymentSetRequest struct { // The ID of the deployment set. You cannot delete a deployment set that contains instances. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the deployment set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteDeploymentSetRequest) String() string { return tea.Prettify(s) } func (s DeleteDeploymentSetRequest) GoString() string { return s.String() } func (s *DeleteDeploymentSetRequest) SetDeploymentSetId(v string) *DeleteDeploymentSetRequest { s.DeploymentSetId = &v return s } func (s *DeleteDeploymentSetRequest) SetOwnerAccount(v string) *DeleteDeploymentSetRequest { s.OwnerAccount = &v return s } func (s *DeleteDeploymentSetRequest) SetOwnerId(v int64) *DeleteDeploymentSetRequest { s.OwnerId = &v return s } func (s *DeleteDeploymentSetRequest) SetRegionId(v string) *DeleteDeploymentSetRequest { s.RegionId = &v return s } func (s *DeleteDeploymentSetRequest) SetResourceOwnerAccount(v string) *DeleteDeploymentSetRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteDeploymentSetRequest) SetResourceOwnerId(v int64) *DeleteDeploymentSetRequest { s.ResourceOwnerId = &v return s } type DeleteDeploymentSetResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteDeploymentSetResponseBody) String() string { return tea.Prettify(s) } func (s DeleteDeploymentSetResponseBody) GoString() string { return s.String() } func (s *DeleteDeploymentSetResponseBody) SetRequestId(v string) *DeleteDeploymentSetResponseBody { s.RequestId = &v return s } type DeleteDeploymentSetResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteDeploymentSetResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteDeploymentSetResponse) String() string { return tea.Prettify(s) } func (s DeleteDeploymentSetResponse) GoString() string { return s.String() } func (s *DeleteDeploymentSetResponse) SetHeaders(v map[string]*string) *DeleteDeploymentSetResponse { s.Headers = v return s } func (s *DeleteDeploymentSetResponse) SetStatusCode(v int32) *DeleteDeploymentSetResponse { s.StatusCode = &v return s } func (s *DeleteDeploymentSetResponse) SetBody(v *DeleteDeploymentSetResponseBody) *DeleteDeploymentSetResponse { s.Body = v return s } type DeleteDiagnosticMetricSetsRequest struct { // The ID of diagnostic metric set. MetricSetIds []*string `json:"MetricSetIds,omitempty" xml:"MetricSetIds,omitempty" type:"Repeated"` // The IDs of diagnostic metric sets. You can specify up to 10 set IDs. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` } func (s DeleteDiagnosticMetricSetsRequest) String() string { return tea.Prettify(s) } func (s DeleteDiagnosticMetricSetsRequest) GoString() string { return s.String() } func (s *DeleteDiagnosticMetricSetsRequest) SetMetricSetIds(v []*string) *DeleteDiagnosticMetricSetsRequest { s.MetricSetIds = v return s } func (s *DeleteDiagnosticMetricSetsRequest) SetRegionId(v string) *DeleteDiagnosticMetricSetsRequest { s.RegionId = &v return s } type DeleteDiagnosticMetricSetsResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteDiagnosticMetricSetsResponseBody) String() string { return tea.Prettify(s) } func (s DeleteDiagnosticMetricSetsResponseBody) GoString() string { return s.String() } func (s *DeleteDiagnosticMetricSetsResponseBody) SetRequestId(v string) *DeleteDiagnosticMetricSetsResponseBody { s.RequestId = &v return s } type DeleteDiagnosticMetricSetsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteDiagnosticMetricSetsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteDiagnosticMetricSetsResponse) String() string { return tea.Prettify(s) } func (s DeleteDiagnosticMetricSetsResponse) GoString() string { return s.String() } func (s *DeleteDiagnosticMetricSetsResponse) SetHeaders(v map[string]*string) *DeleteDiagnosticMetricSetsResponse { s.Headers = v return s } func (s *DeleteDiagnosticMetricSetsResponse) SetStatusCode(v int32) *DeleteDiagnosticMetricSetsResponse { s.StatusCode = &v return s } func (s *DeleteDiagnosticMetricSetsResponse) SetBody(v *DeleteDiagnosticMetricSetsResponseBody) *DeleteDiagnosticMetricSetsResponse { s.Body = v return s } type DeleteDiagnosticReportsRequest struct { // The region ID of the diagnostic report. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The IDs of diagnostic reports. You can specify up to 100 report IDs. ReportIds []*string `json:"ReportIds,omitempty" xml:"ReportIds,omitempty" type:"Repeated"` } func (s DeleteDiagnosticReportsRequest) String() string { return tea.Prettify(s) } func (s DeleteDiagnosticReportsRequest) GoString() string { return s.String() } func (s *DeleteDiagnosticReportsRequest) SetRegionId(v string) *DeleteDiagnosticReportsRequest { s.RegionId = &v return s } func (s *DeleteDiagnosticReportsRequest) SetReportIds(v []*string) *DeleteDiagnosticReportsRequest { s.ReportIds = v return s } type DeleteDiagnosticReportsResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteDiagnosticReportsResponseBody) String() string { return tea.Prettify(s) } func (s DeleteDiagnosticReportsResponseBody) GoString() string { return s.String() } func (s *DeleteDiagnosticReportsResponseBody) SetRequestId(v string) *DeleteDiagnosticReportsResponseBody { s.RequestId = &v return s } type DeleteDiagnosticReportsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteDiagnosticReportsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteDiagnosticReportsResponse) String() string { return tea.Prettify(s) } func (s DeleteDiagnosticReportsResponse) GoString() string { return s.String() } func (s *DeleteDiagnosticReportsResponse) SetHeaders(v map[string]*string) *DeleteDiagnosticReportsResponse { s.Headers = v return s } func (s *DeleteDiagnosticReportsResponse) SetStatusCode(v int32) *DeleteDiagnosticReportsResponse { s.StatusCode = &v return s } func (s *DeleteDiagnosticReportsResponse) SetBody(v *DeleteDiagnosticReportsResponseBody) *DeleteDiagnosticReportsResponse { s.Body = v return s } type DeleteDiskRequest struct { // The ID of the disk that you want to release. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteDiskRequest) String() string { return tea.Prettify(s) } func (s DeleteDiskRequest) GoString() string { return s.String() } func (s *DeleteDiskRequest) SetDiskId(v string) *DeleteDiskRequest { s.DiskId = &v return s } func (s *DeleteDiskRequest) SetOwnerAccount(v string) *DeleteDiskRequest { s.OwnerAccount = &v return s } func (s *DeleteDiskRequest) SetOwnerId(v int64) *DeleteDiskRequest { s.OwnerId = &v return s } func (s *DeleteDiskRequest) SetResourceOwnerAccount(v string) *DeleteDiskRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteDiskRequest) SetResourceOwnerId(v int64) *DeleteDiskRequest { s.ResourceOwnerId = &v return s } type DeleteDiskResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteDiskResponseBody) String() string { return tea.Prettify(s) } func (s DeleteDiskResponseBody) GoString() string { return s.String() } func (s *DeleteDiskResponseBody) SetRequestId(v string) *DeleteDiskResponseBody { s.RequestId = &v return s } type DeleteDiskResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteDiskResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteDiskResponse) String() string { return tea.Prettify(s) } func (s DeleteDiskResponse) GoString() string { return s.String() } func (s *DeleteDiskResponse) SetHeaders(v map[string]*string) *DeleteDiskResponse { s.Headers = v return s } func (s *DeleteDiskResponse) SetStatusCode(v int32) *DeleteDiskResponse { s.StatusCode = &v return s } func (s *DeleteDiskResponse) SetBody(v *DeleteDiskResponseBody) *DeleteDiskResponse { s.Body = v return s } type DeleteForwardEntryRequest struct { ForwardEntryId *string `json:"ForwardEntryId,omitempty" xml:"ForwardEntryId,omitempty"` ForwardTableId *string `json:"ForwardTableId,omitempty" xml:"ForwardTableId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteForwardEntryRequest) String() string { return tea.Prettify(s) } func (s DeleteForwardEntryRequest) GoString() string { return s.String() } func (s *DeleteForwardEntryRequest) SetForwardEntryId(v string) *DeleteForwardEntryRequest { s.ForwardEntryId = &v return s } func (s *DeleteForwardEntryRequest) SetForwardTableId(v string) *DeleteForwardEntryRequest { s.ForwardTableId = &v return s } func (s *DeleteForwardEntryRequest) SetOwnerAccount(v string) *DeleteForwardEntryRequest { s.OwnerAccount = &v return s } func (s *DeleteForwardEntryRequest) SetOwnerId(v int64) *DeleteForwardEntryRequest { s.OwnerId = &v return s } func (s *DeleteForwardEntryRequest) SetRegionId(v string) *DeleteForwardEntryRequest { s.RegionId = &v return s } func (s *DeleteForwardEntryRequest) SetResourceOwnerAccount(v string) *DeleteForwardEntryRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteForwardEntryRequest) SetResourceOwnerId(v int64) *DeleteForwardEntryRequest { s.ResourceOwnerId = &v return s } type DeleteForwardEntryResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteForwardEntryResponseBody) String() string { return tea.Prettify(s) } func (s DeleteForwardEntryResponseBody) GoString() string { return s.String() } func (s *DeleteForwardEntryResponseBody) SetRequestId(v string) *DeleteForwardEntryResponseBody { s.RequestId = &v return s } type DeleteForwardEntryResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteForwardEntryResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteForwardEntryResponse) String() string { return tea.Prettify(s) } func (s DeleteForwardEntryResponse) GoString() string { return s.String() } func (s *DeleteForwardEntryResponse) SetHeaders(v map[string]*string) *DeleteForwardEntryResponse { s.Headers = v return s } func (s *DeleteForwardEntryResponse) SetStatusCode(v int32) *DeleteForwardEntryResponse { s.StatusCode = &v return s } func (s *DeleteForwardEntryResponse) SetBody(v *DeleteForwardEntryResponseBody) *DeleteForwardEntryResponse { s.Body = v return s } type DeleteHaVipRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` HaVipId *string `json:"HaVipId,omitempty" xml:"HaVipId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteHaVipRequest) String() string { return tea.Prettify(s) } func (s DeleteHaVipRequest) GoString() string { return s.String() } func (s *DeleteHaVipRequest) SetClientToken(v string) *DeleteHaVipRequest { s.ClientToken = &v return s } func (s *DeleteHaVipRequest) SetHaVipId(v string) *DeleteHaVipRequest { s.HaVipId = &v return s } func (s *DeleteHaVipRequest) SetOwnerAccount(v string) *DeleteHaVipRequest { s.OwnerAccount = &v return s } func (s *DeleteHaVipRequest) SetOwnerId(v int64) *DeleteHaVipRequest { s.OwnerId = &v return s } func (s *DeleteHaVipRequest) SetRegionId(v string) *DeleteHaVipRequest { s.RegionId = &v return s } func (s *DeleteHaVipRequest) SetResourceOwnerAccount(v string) *DeleteHaVipRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteHaVipRequest) SetResourceOwnerId(v int64) *DeleteHaVipRequest { s.ResourceOwnerId = &v return s } type DeleteHaVipResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteHaVipResponseBody) String() string { return tea.Prettify(s) } func (s DeleteHaVipResponseBody) GoString() string { return s.String() } func (s *DeleteHaVipResponseBody) SetRequestId(v string) *DeleteHaVipResponseBody { s.RequestId = &v return s } type DeleteHaVipResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteHaVipResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteHaVipResponse) String() string { return tea.Prettify(s) } func (s DeleteHaVipResponse) GoString() string { return s.String() } func (s *DeleteHaVipResponse) SetHeaders(v map[string]*string) *DeleteHaVipResponse { s.Headers = v return s } func (s *DeleteHaVipResponse) SetStatusCode(v int32) *DeleteHaVipResponse { s.StatusCode = &v return s } func (s *DeleteHaVipResponse) SetBody(v *DeleteHaVipResponseBody) *DeleteHaVipResponse { s.Body = v return s } type DeleteHpcClusterRequest struct { // The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The **ClientToken** value must contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The ID of the HPC cluster. HpcClusterId *string `json:"HpcClusterId,omitempty" xml:"HpcClusterId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the HPC cluster. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteHpcClusterRequest) String() string { return tea.Prettify(s) } func (s DeleteHpcClusterRequest) GoString() string { return s.String() } func (s *DeleteHpcClusterRequest) SetClientToken(v string) *DeleteHpcClusterRequest { s.ClientToken = &v return s } func (s *DeleteHpcClusterRequest) SetHpcClusterId(v string) *DeleteHpcClusterRequest { s.HpcClusterId = &v return s } func (s *DeleteHpcClusterRequest) SetOwnerAccount(v string) *DeleteHpcClusterRequest { s.OwnerAccount = &v return s } func (s *DeleteHpcClusterRequest) SetOwnerId(v int64) *DeleteHpcClusterRequest { s.OwnerId = &v return s } func (s *DeleteHpcClusterRequest) SetRegionId(v string) *DeleteHpcClusterRequest { s.RegionId = &v return s } func (s *DeleteHpcClusterRequest) SetResourceOwnerAccount(v string) *DeleteHpcClusterRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteHpcClusterRequest) SetResourceOwnerId(v int64) *DeleteHpcClusterRequest { s.ResourceOwnerId = &v return s } type DeleteHpcClusterResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteHpcClusterResponseBody) String() string { return tea.Prettify(s) } func (s DeleteHpcClusterResponseBody) GoString() string { return s.String() } func (s *DeleteHpcClusterResponseBody) SetRequestId(v string) *DeleteHpcClusterResponseBody { s.RequestId = &v return s } type DeleteHpcClusterResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteHpcClusterResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteHpcClusterResponse) String() string { return tea.Prettify(s) } func (s DeleteHpcClusterResponse) GoString() string { return s.String() } func (s *DeleteHpcClusterResponse) SetHeaders(v map[string]*string) *DeleteHpcClusterResponse { s.Headers = v return s } func (s *DeleteHpcClusterResponse) SetStatusCode(v int32) *DeleteHpcClusterResponse { s.StatusCode = &v return s } func (s *DeleteHpcClusterResponse) SetBody(v *DeleteHpcClusterResponseBody) *DeleteHpcClusterResponse { s.Body = v return s } type DeleteImageRequest struct { // Specifies whether to forcibly delete the custom image. Valid values: // // * true: forcibly deletes the custom image, regardless of whether the image is being used by instances. // * false: verifies that the image is not being used by instances, and deletes the image. // // Default value: false. Force *bool `json:"Force,omitempty" xml:"Force,omitempty"` // The ID of the image. If the specified custom image does not exist, the request is ignored. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` // RAM用户的虚拟账号ID。 OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the custom image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // 资源主账号的账号名称。 ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` // 资源主账号的ID,亦即UID。 ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteImageRequest) String() string { return tea.Prettify(s) } func (s DeleteImageRequest) GoString() string { return s.String() } func (s *DeleteImageRequest) SetForce(v bool) *DeleteImageRequest { s.Force = &v return s } func (s *DeleteImageRequest) SetImageId(v string) *DeleteImageRequest { s.ImageId = &v return s } func (s *DeleteImageRequest) SetOwnerAccount(v string) *DeleteImageRequest { s.OwnerAccount = &v return s } func (s *DeleteImageRequest) SetOwnerId(v int64) *DeleteImageRequest { s.OwnerId = &v return s } func (s *DeleteImageRequest) SetRegionId(v string) *DeleteImageRequest { s.RegionId = &v return s } func (s *DeleteImageRequest) SetResourceOwnerAccount(v string) *DeleteImageRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteImageRequest) SetResourceOwnerId(v int64) *DeleteImageRequest { s.ResourceOwnerId = &v return s } type DeleteImageResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteImageResponseBody) String() string { return tea.Prettify(s) } func (s DeleteImageResponseBody) GoString() string { return s.String() } func (s *DeleteImageResponseBody) SetRequestId(v string) *DeleteImageResponseBody { s.RequestId = &v return s } type DeleteImageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteImageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteImageResponse) String() string { return tea.Prettify(s) } func (s DeleteImageResponse) GoString() string { return s.String() } func (s *DeleteImageResponse) SetHeaders(v map[string]*string) *DeleteImageResponse { s.Headers = v return s } func (s *DeleteImageResponse) SetStatusCode(v int32) *DeleteImageResponse { s.StatusCode = &v return s } func (s *DeleteImageResponse) SetBody(v *DeleteImageResponseBody) *DeleteImageResponse { s.Body = v return s } type DeleteImageComponentRequest struct { // The ID of the image component. ImageComponentId *string `json:"ImageComponentId,omitempty" xml:"ImageComponentId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the image component. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteImageComponentRequest) String() string { return tea.Prettify(s) } func (s DeleteImageComponentRequest) GoString() string { return s.String() } func (s *DeleteImageComponentRequest) SetImageComponentId(v string) *DeleteImageComponentRequest { s.ImageComponentId = &v return s } func (s *DeleteImageComponentRequest) SetOwnerAccount(v string) *DeleteImageComponentRequest { s.OwnerAccount = &v return s } func (s *DeleteImageComponentRequest) SetOwnerId(v int64) *DeleteImageComponentRequest { s.OwnerId = &v return s } func (s *DeleteImageComponentRequest) SetRegionId(v string) *DeleteImageComponentRequest { s.RegionId = &v return s } func (s *DeleteImageComponentRequest) SetResourceOwnerAccount(v string) *DeleteImageComponentRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteImageComponentRequest) SetResourceOwnerId(v int64) *DeleteImageComponentRequest { s.ResourceOwnerId = &v return s } type DeleteImageComponentResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteImageComponentResponseBody) String() string { return tea.Prettify(s) } func (s DeleteImageComponentResponseBody) GoString() string { return s.String() } func (s *DeleteImageComponentResponseBody) SetRequestId(v string) *DeleteImageComponentResponseBody { s.RequestId = &v return s } type DeleteImageComponentResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteImageComponentResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteImageComponentResponse) String() string { return tea.Prettify(s) } func (s DeleteImageComponentResponse) GoString() string { return s.String() } func (s *DeleteImageComponentResponse) SetHeaders(v map[string]*string) *DeleteImageComponentResponse { s.Headers = v return s } func (s *DeleteImageComponentResponse) SetStatusCode(v int32) *DeleteImageComponentResponse { s.StatusCode = &v return s } func (s *DeleteImageComponentResponse) SetBody(v *DeleteImageComponentResponseBody) *DeleteImageComponentResponse { s.Body = v return s } type DeleteImagePipelineRequest struct { // The ID of the image template. ImagePipelineId *string `json:"ImagePipelineId,omitempty" xml:"ImagePipelineId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the image template. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteImagePipelineRequest) String() string { return tea.Prettify(s) } func (s DeleteImagePipelineRequest) GoString() string { return s.String() } func (s *DeleteImagePipelineRequest) SetImagePipelineId(v string) *DeleteImagePipelineRequest { s.ImagePipelineId = &v return s } func (s *DeleteImagePipelineRequest) SetOwnerAccount(v string) *DeleteImagePipelineRequest { s.OwnerAccount = &v return s } func (s *DeleteImagePipelineRequest) SetOwnerId(v int64) *DeleteImagePipelineRequest { s.OwnerId = &v return s } func (s *DeleteImagePipelineRequest) SetRegionId(v string) *DeleteImagePipelineRequest { s.RegionId = &v return s } func (s *DeleteImagePipelineRequest) SetResourceOwnerAccount(v string) *DeleteImagePipelineRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteImagePipelineRequest) SetResourceOwnerId(v int64) *DeleteImagePipelineRequest { s.ResourceOwnerId = &v return s } type DeleteImagePipelineResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteImagePipelineResponseBody) String() string { return tea.Prettify(s) } func (s DeleteImagePipelineResponseBody) GoString() string { return s.String() } func (s *DeleteImagePipelineResponseBody) SetRequestId(v string) *DeleteImagePipelineResponseBody { s.RequestId = &v return s } type DeleteImagePipelineResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteImagePipelineResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteImagePipelineResponse) String() string { return tea.Prettify(s) } func (s DeleteImagePipelineResponse) GoString() string { return s.String() } func (s *DeleteImagePipelineResponse) SetHeaders(v map[string]*string) *DeleteImagePipelineResponse { s.Headers = v return s } func (s *DeleteImagePipelineResponse) SetStatusCode(v int32) *DeleteImagePipelineResponse { s.StatusCode = &v return s } func (s *DeleteImagePipelineResponse) SetBody(v *DeleteImagePipelineResponseBody) *DeleteImagePipelineResponse { s.Body = v return s } type DeleteInstanceRequest struct { // Specifies whether to perform only a dry run, without performing the actual request. Valid values: // // * true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, service limits, and unavailable ECS resources. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. // * false (default): performs a dry run and performs the actual request. If the request passes the dry run, the instance is released. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // Specifies whether to forcefully release the instance in the **Running** (`Running`) state. Valid values: // // * true: forcefully releases the instance in the **Running** (`Running`) state. This operation is equivalent to performing a hard shut-down. Cache data that is not written to persistent storage will be lost. // * false: normally releases the instance. This value is valid only for instances in the **Stopped** (`Stopped`) state. // // Default value: false. Force *bool `json:"Force,omitempty" xml:"Force,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether to release the expired subscription instance. Valid values: // // * true // * false // // Default value: false. TerminateSubscription *bool `json:"TerminateSubscription,omitempty" xml:"TerminateSubscription,omitempty"` } func (s DeleteInstanceRequest) String() string { return tea.Prettify(s) } func (s DeleteInstanceRequest) GoString() string { return s.String() } func (s *DeleteInstanceRequest) SetDryRun(v bool) *DeleteInstanceRequest { s.DryRun = &v return s } func (s *DeleteInstanceRequest) SetForce(v bool) *DeleteInstanceRequest { s.Force = &v return s } func (s *DeleteInstanceRequest) SetInstanceId(v string) *DeleteInstanceRequest { s.InstanceId = &v return s } func (s *DeleteInstanceRequest) SetOwnerAccount(v string) *DeleteInstanceRequest { s.OwnerAccount = &v return s } func (s *DeleteInstanceRequest) SetOwnerId(v int64) *DeleteInstanceRequest { s.OwnerId = &v return s } func (s *DeleteInstanceRequest) SetResourceOwnerAccount(v string) *DeleteInstanceRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteInstanceRequest) SetResourceOwnerId(v int64) *DeleteInstanceRequest { s.ResourceOwnerId = &v return s } func (s *DeleteInstanceRequest) SetTerminateSubscription(v bool) *DeleteInstanceRequest { s.TerminateSubscription = &v return s } type DeleteInstanceResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteInstanceResponseBody) String() string { return tea.Prettify(s) } func (s DeleteInstanceResponseBody) GoString() string { return s.String() } func (s *DeleteInstanceResponseBody) SetRequestId(v string) *DeleteInstanceResponseBody { s.RequestId = &v return s } type DeleteInstanceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteInstanceResponse) String() string { return tea.Prettify(s) } func (s DeleteInstanceResponse) GoString() string { return s.String() } func (s *DeleteInstanceResponse) SetHeaders(v map[string]*string) *DeleteInstanceResponse { s.Headers = v return s } func (s *DeleteInstanceResponse) SetStatusCode(v int32) *DeleteInstanceResponse { s.StatusCode = &v return s } func (s *DeleteInstanceResponse) SetBody(v *DeleteInstanceResponseBody) *DeleteInstanceResponse { s.Body = v return s } type DeleteInstancesRequest struct { // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // Specifies whether to perform only a dry run without performing the actual request. Default value: false. Valid values: // // * true: performs only a dry run. The system checks whether your AccessKey pair is valid, whether RAM users are granted permissions, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DRYRUN.SUCCESS error code is returned. // * false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // Specifies whether to forcefully release the instance that is in the **Running** (`Running`) state. Default value: false. Valid values: // // * true: forcefully releases the instance that is in the **Running** (`Running`) state. When the Force parameter is set to true, this operation is equivalent to a power-off operation. Temporary data in the memory and storage of the instance is erased and cannot be restored. // * false: normally releases the instance. This value is valid only for instances that are in the **Stopped** (`Stopped`) state. Force *bool `json:"Force,omitempty" xml:"Force,omitempty"` // The IDs of instances. You can specify up to 100 instance IDs in a single request. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether to release an expired subscription instance. // // Default value: false. TerminateSubscription *bool `json:"TerminateSubscription,omitempty" xml:"TerminateSubscription,omitempty"` } func (s DeleteInstancesRequest) String() string { return tea.Prettify(s) } func (s DeleteInstancesRequest) GoString() string { return s.String() } func (s *DeleteInstancesRequest) SetClientToken(v string) *DeleteInstancesRequest { s.ClientToken = &v return s } func (s *DeleteInstancesRequest) SetDryRun(v bool) *DeleteInstancesRequest { s.DryRun = &v return s } func (s *DeleteInstancesRequest) SetForce(v bool) *DeleteInstancesRequest { s.Force = &v return s } func (s *DeleteInstancesRequest) SetInstanceId(v []*string) *DeleteInstancesRequest { s.InstanceId = v return s } func (s *DeleteInstancesRequest) SetOwnerAccount(v string) *DeleteInstancesRequest { s.OwnerAccount = &v return s } func (s *DeleteInstancesRequest) SetOwnerId(v int64) *DeleteInstancesRequest { s.OwnerId = &v return s } func (s *DeleteInstancesRequest) SetRegionId(v string) *DeleteInstancesRequest { s.RegionId = &v return s } func (s *DeleteInstancesRequest) SetResourceOwnerAccount(v string) *DeleteInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteInstancesRequest) SetResourceOwnerId(v int64) *DeleteInstancesRequest { s.ResourceOwnerId = &v return s } func (s *DeleteInstancesRequest) SetTerminateSubscription(v bool) *DeleteInstancesRequest { s.TerminateSubscription = &v return s } type DeleteInstancesResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DeleteInstancesResponseBody) GoString() string { return s.String() } func (s *DeleteInstancesResponseBody) SetRequestId(v string) *DeleteInstancesResponseBody { s.RequestId = &v return s } type DeleteInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteInstancesResponse) String() string { return tea.Prettify(s) } func (s DeleteInstancesResponse) GoString() string { return s.String() } func (s *DeleteInstancesResponse) SetHeaders(v map[string]*string) *DeleteInstancesResponse { s.Headers = v return s } func (s *DeleteInstancesResponse) SetStatusCode(v int32) *DeleteInstancesResponse { s.StatusCode = &v return s } func (s *DeleteInstancesResponse) SetBody(v *DeleteInstancesResponseBody) *DeleteInstancesResponse { s.Body = v return s } type DeleteKeyPairsRequest struct { // The names of SSH key pairs. The value can be a JSON array that consists of up to 100 SSH key pair names. Separate the names with commas (,). // // > Before you delete an SSH key pair, you can call the [DescribeKeyPairs](~~51773~~) operation to query existing key pairs. KeyPairNames *string `json:"KeyPairNames,omitempty" xml:"KeyPairNames,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteKeyPairsRequest) String() string { return tea.Prettify(s) } func (s DeleteKeyPairsRequest) GoString() string { return s.String() } func (s *DeleteKeyPairsRequest) SetKeyPairNames(v string) *DeleteKeyPairsRequest { s.KeyPairNames = &v return s } func (s *DeleteKeyPairsRequest) SetOwnerId(v int64) *DeleteKeyPairsRequest { s.OwnerId = &v return s } func (s *DeleteKeyPairsRequest) SetRegionId(v string) *DeleteKeyPairsRequest { s.RegionId = &v return s } func (s *DeleteKeyPairsRequest) SetResourceOwnerAccount(v string) *DeleteKeyPairsRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteKeyPairsRequest) SetResourceOwnerId(v int64) *DeleteKeyPairsRequest { s.ResourceOwnerId = &v return s } type DeleteKeyPairsResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteKeyPairsResponseBody) String() string { return tea.Prettify(s) } func (s DeleteKeyPairsResponseBody) GoString() string { return s.String() } func (s *DeleteKeyPairsResponseBody) SetRequestId(v string) *DeleteKeyPairsResponseBody { s.RequestId = &v return s } type DeleteKeyPairsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteKeyPairsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteKeyPairsResponse) String() string { return tea.Prettify(s) } func (s DeleteKeyPairsResponse) GoString() string { return s.String() } func (s *DeleteKeyPairsResponse) SetHeaders(v map[string]*string) *DeleteKeyPairsResponse { s.Headers = v return s } func (s *DeleteKeyPairsResponse) SetStatusCode(v int32) *DeleteKeyPairsResponse { s.StatusCode = &v return s } func (s *DeleteKeyPairsResponse) SetBody(v *DeleteKeyPairsResponseBody) *DeleteKeyPairsResponse { s.Body = v return s } type DeleteLaunchTemplateRequest struct { // The ID of the launch template. For more information, see [DescribeLaunchTemplates](~~73759~~). // // You must specify `LaunchTemplateId` or `LaunchTemplateName` to specify a launch template. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The name of the launch template. // // You must specify `LaunchTemplateId` or `LaunchTemplateName` to specify a launch template. LaunchTemplateName *string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the launch template. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteLaunchTemplateRequest) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateRequest) GoString() string { return s.String() } func (s *DeleteLaunchTemplateRequest) SetLaunchTemplateId(v string) *DeleteLaunchTemplateRequest { s.LaunchTemplateId = &v return s } func (s *DeleteLaunchTemplateRequest) SetLaunchTemplateName(v string) *DeleteLaunchTemplateRequest { s.LaunchTemplateName = &v return s } func (s *DeleteLaunchTemplateRequest) SetOwnerAccount(v string) *DeleteLaunchTemplateRequest { s.OwnerAccount = &v return s } func (s *DeleteLaunchTemplateRequest) SetOwnerId(v int64) *DeleteLaunchTemplateRequest { s.OwnerId = &v return s } func (s *DeleteLaunchTemplateRequest) SetRegionId(v string) *DeleteLaunchTemplateRequest { s.RegionId = &v return s } func (s *DeleteLaunchTemplateRequest) SetResourceOwnerAccount(v string) *DeleteLaunchTemplateRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteLaunchTemplateRequest) SetResourceOwnerId(v int64) *DeleteLaunchTemplateRequest { s.ResourceOwnerId = &v return s } type DeleteLaunchTemplateResponseBody struct { // The ID of the launch template. For more information, see [DescribeLaunchTemplates](~~73759~~). // // You must specify `LaunchTemplateId` or `LaunchTemplateName` to specify a launch template. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The versions of the deleted launch template. LaunchTemplateVersionNumbers *DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers `json:"LaunchTemplateVersionNumbers,omitempty" xml:"LaunchTemplateVersionNumbers,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteLaunchTemplateResponseBody) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateResponseBody) GoString() string { return s.String() } func (s *DeleteLaunchTemplateResponseBody) SetLaunchTemplateId(v string) *DeleteLaunchTemplateResponseBody { s.LaunchTemplateId = &v return s } func (s *DeleteLaunchTemplateResponseBody) SetLaunchTemplateVersionNumbers(v *DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers) *DeleteLaunchTemplateResponseBody { s.LaunchTemplateVersionNumbers = v return s } func (s *DeleteLaunchTemplateResponseBody) SetRequestId(v string) *DeleteLaunchTemplateResponseBody { s.RequestId = &v return s } type DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers struct { VersionNumbers []*int64 `json:"versionNumbers,omitempty" xml:"versionNumbers,omitempty" type:"Repeated"` } func (s DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers) GoString() string { return s.String() } func (s *DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers) SetVersionNumbers(v []*int64) *DeleteLaunchTemplateResponseBodyLaunchTemplateVersionNumbers { s.VersionNumbers = v return s } type DeleteLaunchTemplateResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteLaunchTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteLaunchTemplateResponse) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateResponse) GoString() string { return s.String() } func (s *DeleteLaunchTemplateResponse) SetHeaders(v map[string]*string) *DeleteLaunchTemplateResponse { s.Headers = v return s } func (s *DeleteLaunchTemplateResponse) SetStatusCode(v int32) *DeleteLaunchTemplateResponse { s.StatusCode = &v return s } func (s *DeleteLaunchTemplateResponse) SetBody(v *DeleteLaunchTemplateResponseBody) *DeleteLaunchTemplateResponse { s.Body = v return s } type DeleteLaunchTemplateVersionRequest struct { // The version numbers of the launch template. DeleteVersion []*int64 `json:"DeleteVersion,omitempty" xml:"DeleteVersion,omitempty" type:"Repeated"` // The ID of the launch template. For more information, call the [DescribeLaunchTemplates](~~73759~~) operation. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The name of the launch template. LaunchTemplateName *string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the launch template. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteLaunchTemplateVersionRequest) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateVersionRequest) GoString() string { return s.String() } func (s *DeleteLaunchTemplateVersionRequest) SetDeleteVersion(v []*int64) *DeleteLaunchTemplateVersionRequest { s.DeleteVersion = v return s } func (s *DeleteLaunchTemplateVersionRequest) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionRequest { s.LaunchTemplateId = &v return s } func (s *DeleteLaunchTemplateVersionRequest) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionRequest { s.LaunchTemplateName = &v return s } func (s *DeleteLaunchTemplateVersionRequest) SetOwnerAccount(v string) *DeleteLaunchTemplateVersionRequest { s.OwnerAccount = &v return s } func (s *DeleteLaunchTemplateVersionRequest) SetOwnerId(v int64) *DeleteLaunchTemplateVersionRequest { s.OwnerId = &v return s } func (s *DeleteLaunchTemplateVersionRequest) SetRegionId(v string) *DeleteLaunchTemplateVersionRequest { s.RegionId = &v return s } func (s *DeleteLaunchTemplateVersionRequest) SetResourceOwnerAccount(v string) *DeleteLaunchTemplateVersionRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteLaunchTemplateVersionRequest) SetResourceOwnerId(v int64) *DeleteLaunchTemplateVersionRequest { s.ResourceOwnerId = &v return s } type DeleteLaunchTemplateVersionResponseBody struct { // The versions of the launch template. LaunchTemplateVersions *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions `json:"LaunchTemplateVersions,omitempty" xml:"LaunchTemplateVersions,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteLaunchTemplateVersionResponseBody) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateVersionResponseBody) GoString() string { return s.String() } func (s *DeleteLaunchTemplateVersionResponseBody) SetLaunchTemplateVersions(v *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions) *DeleteLaunchTemplateVersionResponseBody { s.LaunchTemplateVersions = v return s } func (s *DeleteLaunchTemplateVersionResponseBody) SetRequestId(v string) *DeleteLaunchTemplateVersionResponseBody { s.RequestId = &v return s } type DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions struct { LaunchTemplateVersion []*DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion `json:"LaunchTemplateVersion,omitempty" xml:"LaunchTemplateVersion,omitempty" type:"Repeated"` } func (s DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions) GoString() string { return s.String() } func (s *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions) SetLaunchTemplateVersion(v []*DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion) *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersions { s.LaunchTemplateVersion = v return s } type DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion struct { // The ID of the launch template. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The version number of the launch template. LaunchTemplateVersionNumber *int64 `json:"LaunchTemplateVersionNumber,omitempty" xml:"LaunchTemplateVersionNumber,omitempty"` } func (s DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion) GoString() string { return s.String() } func (s *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion { s.LaunchTemplateId = &v return s } func (s *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion) SetLaunchTemplateVersionNumber(v int64) *DeleteLaunchTemplateVersionResponseBodyLaunchTemplateVersionsLaunchTemplateVersion { s.LaunchTemplateVersionNumber = &v return s } type DeleteLaunchTemplateVersionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteLaunchTemplateVersionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteLaunchTemplateVersionResponse) String() string { return tea.Prettify(s) } func (s DeleteLaunchTemplateVersionResponse) GoString() string { return s.String() } func (s *DeleteLaunchTemplateVersionResponse) SetHeaders(v map[string]*string) *DeleteLaunchTemplateVersionResponse { s.Headers = v return s } func (s *DeleteLaunchTemplateVersionResponse) SetStatusCode(v int32) *DeleteLaunchTemplateVersionResponse { s.StatusCode = &v return s } func (s *DeleteLaunchTemplateVersionResponse) SetBody(v *DeleteLaunchTemplateVersionResponseBody) *DeleteLaunchTemplateVersionResponse { s.Body = v return s } type DeleteNatGatewayRequest struct { NatGatewayId *string `json:"NatGatewayId,omitempty" xml:"NatGatewayId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteNatGatewayRequest) String() string { return tea.Prettify(s) } func (s DeleteNatGatewayRequest) GoString() string { return s.String() } func (s *DeleteNatGatewayRequest) SetNatGatewayId(v string) *DeleteNatGatewayRequest { s.NatGatewayId = &v return s } func (s *DeleteNatGatewayRequest) SetOwnerAccount(v string) *DeleteNatGatewayRequest { s.OwnerAccount = &v return s } func (s *DeleteNatGatewayRequest) SetOwnerId(v int64) *DeleteNatGatewayRequest { s.OwnerId = &v return s } func (s *DeleteNatGatewayRequest) SetRegionId(v string) *DeleteNatGatewayRequest { s.RegionId = &v return s } func (s *DeleteNatGatewayRequest) SetResourceOwnerAccount(v string) *DeleteNatGatewayRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteNatGatewayRequest) SetResourceOwnerId(v int64) *DeleteNatGatewayRequest { s.ResourceOwnerId = &v return s } type DeleteNatGatewayResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteNatGatewayResponseBody) String() string { return tea.Prettify(s) } func (s DeleteNatGatewayResponseBody) GoString() string { return s.String() } func (s *DeleteNatGatewayResponseBody) SetRequestId(v string) *DeleteNatGatewayResponseBody { s.RequestId = &v return s } type DeleteNatGatewayResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteNatGatewayResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteNatGatewayResponse) String() string { return tea.Prettify(s) } func (s DeleteNatGatewayResponse) GoString() string { return s.String() } func (s *DeleteNatGatewayResponse) SetHeaders(v map[string]*string) *DeleteNatGatewayResponse { s.Headers = v return s } func (s *DeleteNatGatewayResponse) SetStatusCode(v int32) *DeleteNatGatewayResponse { s.StatusCode = &v return s } func (s *DeleteNatGatewayResponse) SetBody(v *DeleteNatGatewayResponseBody) *DeleteNatGatewayResponse { s.Body = v return s } type DeleteNetworkInterfaceRequest struct { // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteNetworkInterfaceRequest) String() string { return tea.Prettify(s) } func (s DeleteNetworkInterfaceRequest) GoString() string { return s.String() } func (s *DeleteNetworkInterfaceRequest) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceRequest { s.NetworkInterfaceId = &v return s } func (s *DeleteNetworkInterfaceRequest) SetOwnerAccount(v string) *DeleteNetworkInterfaceRequest { s.OwnerAccount = &v return s } func (s *DeleteNetworkInterfaceRequest) SetOwnerId(v int64) *DeleteNetworkInterfaceRequest { s.OwnerId = &v return s } func (s *DeleteNetworkInterfaceRequest) SetRegionId(v string) *DeleteNetworkInterfaceRequest { s.RegionId = &v return s } func (s *DeleteNetworkInterfaceRequest) SetResourceOwnerAccount(v string) *DeleteNetworkInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteNetworkInterfaceRequest) SetResourceOwnerId(v int64) *DeleteNetworkInterfaceRequest { s.ResourceOwnerId = &v return s } type DeleteNetworkInterfaceResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteNetworkInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s DeleteNetworkInterfaceResponseBody) GoString() string { return s.String() } func (s *DeleteNetworkInterfaceResponseBody) SetRequestId(v string) *DeleteNetworkInterfaceResponseBody { s.RequestId = &v return s } type DeleteNetworkInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteNetworkInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteNetworkInterfaceResponse) String() string { return tea.Prettify(s) } func (s DeleteNetworkInterfaceResponse) GoString() string { return s.String() } func (s *DeleteNetworkInterfaceResponse) SetHeaders(v map[string]*string) *DeleteNetworkInterfaceResponse { s.Headers = v return s } func (s *DeleteNetworkInterfaceResponse) SetStatusCode(v int32) *DeleteNetworkInterfaceResponse { s.StatusCode = &v return s } func (s *DeleteNetworkInterfaceResponse) SetBody(v *DeleteNetworkInterfaceResponseBody) *DeleteNetworkInterfaceResponse { s.Body = v return s } type DeleteNetworkInterfacePermissionRequest struct { Force *bool `json:"Force,omitempty" xml:"Force,omitempty"` NetworkInterfacePermissionId *string `json:"NetworkInterfacePermissionId,omitempty" xml:"NetworkInterfacePermissionId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeleteNetworkInterfacePermissionRequest) String() string { return tea.Prettify(s) } func (s DeleteNetworkInterfacePermissionRequest) GoString() string { return s.String() } func (s *DeleteNetworkInterfacePermissionRequest) SetForce(v bool) *DeleteNetworkInterfacePermissionRequest { s.Force = &v return s } func (s *DeleteNetworkInterfacePermissionRequest) SetNetworkInterfacePermissionId(v string) *DeleteNetworkInterfacePermissionRequest { s.NetworkInterfacePermissionId = &v return s } func (s *DeleteNetworkInterfacePermissionRequest) SetOwnerAccount(v string) *DeleteNetworkInterfacePermissionRequest { s.OwnerAccount = &v return s } func (s *DeleteNetworkInterfacePermissionRequest) SetOwnerId(v int64) *DeleteNetworkInterfacePermissionRequest { s.OwnerId = &v return s } func (s *DeleteNetworkInterfacePermissionRequest) SetRegionId(v string) *DeleteNetworkInterfacePermissionRequest { s.RegionId = &v return s } func (s *DeleteNetworkInterfacePermissionRequest) SetResourceOwnerAccount(v string) *DeleteNetworkInterfacePermissionRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteNetworkInterfacePermissionRequest) SetResourceOwnerId(v int64) *DeleteNetworkInterfacePermissionRequest { s.ResourceOwnerId = &v return s } type DeleteNetworkInterfacePermissionResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteNetworkInterfacePermissionResponseBody) String() string { return tea.Prettify(s) } func (s DeleteNetworkInterfacePermissionResponseBody) GoString() string { return s.String() } func (s *DeleteNetworkInterfacePermissionResponseBody) SetRequestId(v string) *DeleteNetworkInterfacePermissionResponseBody { s.RequestId = &v return s } type DeleteNetworkInterfacePermissionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteNetworkInterfacePermissionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteNetworkInterfacePermissionResponse) String() string { return tea.Prettify(s) } func (s DeleteNetworkInterfacePermissionResponse) GoString() string { return s.String() } func (s *DeleteNetworkInterfacePermissionResponse) SetHeaders(v map[string]*string) *DeleteNetworkInterfacePermissionResponse { s.Headers = v return s } func (s *DeleteNetworkInterfacePermissionResponse) SetStatusCode(v int32) *DeleteNetworkInterfacePermissionResponse { s.StatusCode = &v return s } func (s *DeleteNetworkInterfacePermissionResponse) SetBody(v *DeleteNetworkInterfacePermissionResponseBody) *DeleteNetworkInterfacePermissionResponse { s.Body = v return s } type DeletePhysicalConnectionRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeletePhysicalConnectionRequest) String() string { return tea.Prettify(s) } func (s DeletePhysicalConnectionRequest) GoString() string { return s.String() } func (s *DeletePhysicalConnectionRequest) SetClientToken(v string) *DeletePhysicalConnectionRequest { s.ClientToken = &v return s } func (s *DeletePhysicalConnectionRequest) SetOwnerAccount(v string) *DeletePhysicalConnectionRequest { s.OwnerAccount = &v return s } func (s *DeletePhysicalConnectionRequest) SetOwnerId(v int64) *DeletePhysicalConnectionRequest { s.OwnerId = &v return s } func (s *DeletePhysicalConnectionRequest) SetPhysicalConnectionId(v string) *DeletePhysicalConnectionRequest { s.PhysicalConnectionId = &v return s } func (s *DeletePhysicalConnectionRequest) SetRegionId(v string) *DeletePhysicalConnectionRequest { s.RegionId = &v return s } func (s *DeletePhysicalConnectionRequest) SetResourceOwnerAccount(v string) *DeletePhysicalConnectionRequest { s.ResourceOwnerAccount = &v return s } func (s *DeletePhysicalConnectionRequest) SetResourceOwnerId(v int64) *DeletePhysicalConnectionRequest { s.ResourceOwnerId = &v return s } type DeletePhysicalConnectionResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeletePhysicalConnectionResponseBody) String() string { return tea.Prettify(s) } func (s DeletePhysicalConnectionResponseBody) GoString() string { return s.String() } func (s *DeletePhysicalConnectionResponseBody) SetRequestId(v string) *DeletePhysicalConnectionResponseBody { s.RequestId = &v return s } type DeletePhysicalConnectionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeletePhysicalConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeletePhysicalConnectionResponse) String() string { return tea.Prettify(s) } func (s DeletePhysicalConnectionResponse) GoString() string { return s.String() } func (s *DeletePhysicalConnectionResponse) SetHeaders(v map[string]*string) *DeletePhysicalConnectionResponse { s.Headers = v return s } func (s *DeletePhysicalConnectionResponse) SetStatusCode(v int32) *DeletePhysicalConnectionResponse { s.StatusCode = &v return s } func (s *DeletePhysicalConnectionResponse) SetBody(v *DeletePhysicalConnectionResponseBody) *DeletePhysicalConnectionResponse { s.Body = v return s } type DeletePrefixListRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the prefix list. PrefixListId *string `json:"PrefixListId,omitempty" xml:"PrefixListId,omitempty"` // The region ID of the prefix list. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeletePrefixListRequest) String() string { return tea.Prettify(s) } func (s DeletePrefixListRequest) GoString() string { return s.String() } func (s *DeletePrefixListRequest) SetOwnerAccount(v string) *DeletePrefixListRequest { s.OwnerAccount = &v return s } func (s *DeletePrefixListRequest) SetOwnerId(v int64) *DeletePrefixListRequest { s.OwnerId = &v return s } func (s *DeletePrefixListRequest) SetPrefixListId(v string) *DeletePrefixListRequest { s.PrefixListId = &v return s } func (s *DeletePrefixListRequest) SetRegionId(v string) *DeletePrefixListRequest { s.RegionId = &v return s } func (s *DeletePrefixListRequest) SetResourceOwnerAccount(v string) *DeletePrefixListRequest { s.ResourceOwnerAccount = &v return s } func (s *DeletePrefixListRequest) SetResourceOwnerId(v int64) *DeletePrefixListRequest { s.ResourceOwnerId = &v return s } type DeletePrefixListResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeletePrefixListResponseBody) String() string { return tea.Prettify(s) } func (s DeletePrefixListResponseBody) GoString() string { return s.String() } func (s *DeletePrefixListResponseBody) SetRequestId(v string) *DeletePrefixListResponseBody { s.RequestId = &v return s } type DeletePrefixListResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeletePrefixListResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeletePrefixListResponse) String() string { return tea.Prettify(s) } func (s DeletePrefixListResponse) GoString() string { return s.String() } func (s *DeletePrefixListResponse) SetHeaders(v map[string]*string) *DeletePrefixListResponse { s.Headers = v return s } func (s *DeletePrefixListResponse) SetStatusCode(v int32) *DeletePrefixListResponse { s.StatusCode = &v return s } func (s *DeletePrefixListResponse) SetBody(v *DeletePrefixListResponseBody) *DeletePrefixListResponse { s.Body = v return s } type DeleteRouteEntryRequest struct { DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" xml:"DestinationCidrBlock,omitempty"` NextHopId *string `json:"NextHopId,omitempty" xml:"NextHopId,omitempty"` NextHopList []*DeleteRouteEntryRequestNextHopList `json:"NextHopList,omitempty" xml:"NextHopList,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RouteTableId *string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty"` } func (s DeleteRouteEntryRequest) String() string { return tea.Prettify(s) } func (s DeleteRouteEntryRequest) GoString() string { return s.String() } func (s *DeleteRouteEntryRequest) SetDestinationCidrBlock(v string) *DeleteRouteEntryRequest { s.DestinationCidrBlock = &v return s } func (s *DeleteRouteEntryRequest) SetNextHopId(v string) *DeleteRouteEntryRequest { s.NextHopId = &v return s } func (s *DeleteRouteEntryRequest) SetNextHopList(v []*DeleteRouteEntryRequestNextHopList) *DeleteRouteEntryRequest { s.NextHopList = v return s } func (s *DeleteRouteEntryRequest) SetOwnerAccount(v string) *DeleteRouteEntryRequest { s.OwnerAccount = &v return s } func (s *DeleteRouteEntryRequest) SetOwnerId(v int64) *DeleteRouteEntryRequest { s.OwnerId = &v return s } func (s *DeleteRouteEntryRequest) SetRegionId(v string) *DeleteRouteEntryRequest { s.RegionId = &v return s } func (s *DeleteRouteEntryRequest) SetResourceOwnerAccount(v string) *DeleteRouteEntryRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteRouteEntryRequest) SetResourceOwnerId(v int64) *DeleteRouteEntryRequest { s.ResourceOwnerId = &v return s } func (s *DeleteRouteEntryRequest) SetRouteTableId(v string) *DeleteRouteEntryRequest { s.RouteTableId = &v return s } type DeleteRouteEntryRequestNextHopList struct { NextHopId *string `json:"NextHopId,omitempty" xml:"NextHopId,omitempty"` NextHopType *string `json:"NextHopType,omitempty" xml:"NextHopType,omitempty"` } func (s DeleteRouteEntryRequestNextHopList) String() string { return tea.Prettify(s) } func (s DeleteRouteEntryRequestNextHopList) GoString() string { return s.String() } func (s *DeleteRouteEntryRequestNextHopList) SetNextHopId(v string) *DeleteRouteEntryRequestNextHopList { s.NextHopId = &v return s } func (s *DeleteRouteEntryRequestNextHopList) SetNextHopType(v string) *DeleteRouteEntryRequestNextHopList { s.NextHopType = &v return s } type DeleteRouteEntryResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteRouteEntryResponseBody) String() string { return tea.Prettify(s) } func (s DeleteRouteEntryResponseBody) GoString() string { return s.String() } func (s *DeleteRouteEntryResponseBody) SetRequestId(v string) *DeleteRouteEntryResponseBody { s.RequestId = &v return s } type DeleteRouteEntryResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteRouteEntryResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteRouteEntryResponse) String() string { return tea.Prettify(s) } func (s DeleteRouteEntryResponse) GoString() string { return s.String() } func (s *DeleteRouteEntryResponse) SetHeaders(v map[string]*string) *DeleteRouteEntryResponse { s.Headers = v return s } func (s *DeleteRouteEntryResponse) SetStatusCode(v int32) *DeleteRouteEntryResponse { s.StatusCode = &v return s } func (s *DeleteRouteEntryResponse) SetBody(v *DeleteRouteEntryResponseBody) *DeleteRouteEntryResponse { s.Body = v return s } type DeleteRouterInterfaceRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RouterInterfaceId *string `json:"RouterInterfaceId,omitempty" xml:"RouterInterfaceId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` } func (s DeleteRouterInterfaceRequest) String() string { return tea.Prettify(s) } func (s DeleteRouterInterfaceRequest) GoString() string { return s.String() } func (s *DeleteRouterInterfaceRequest) SetClientToken(v string) *DeleteRouterInterfaceRequest { s.ClientToken = &v return s } func (s *DeleteRouterInterfaceRequest) SetOwnerAccount(v string) *DeleteRouterInterfaceRequest { s.OwnerAccount = &v return s } func (s *DeleteRouterInterfaceRequest) SetOwnerId(v int64) *DeleteRouterInterfaceRequest { s.OwnerId = &v return s } func (s *DeleteRouterInterfaceRequest) SetRegionId(v string) *DeleteRouterInterfaceRequest { s.RegionId = &v return s } func (s *DeleteRouterInterfaceRequest) SetResourceOwnerAccount(v string) *DeleteRouterInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteRouterInterfaceRequest) SetResourceOwnerId(v int64) *DeleteRouterInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *DeleteRouterInterfaceRequest) SetRouterInterfaceId(v string) *DeleteRouterInterfaceRequest { s.RouterInterfaceId = &v return s } func (s *DeleteRouterInterfaceRequest) SetUserCidr(v string) *DeleteRouterInterfaceRequest { s.UserCidr = &v return s } type DeleteRouterInterfaceResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteRouterInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s DeleteRouterInterfaceResponseBody) GoString() string { return s.String() } func (s *DeleteRouterInterfaceResponseBody) SetRequestId(v string) *DeleteRouterInterfaceResponseBody { s.RequestId = &v return s } type DeleteRouterInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteRouterInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteRouterInterfaceResponse) String() string { return tea.Prettify(s) } func (s DeleteRouterInterfaceResponse) GoString() string { return s.String() } func (s *DeleteRouterInterfaceResponse) SetHeaders(v map[string]*string) *DeleteRouterInterfaceResponse { s.Headers = v return s } func (s *DeleteRouterInterfaceResponse) SetStatusCode(v int32) *DeleteRouterInterfaceResponse { s.StatusCode = &v return s } func (s *DeleteRouterInterfaceResponse) SetBody(v *DeleteRouterInterfaceResponseBody) *DeleteRouterInterfaceResponse { s.Body = v return s } type DeleteSecurityGroupRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the security group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The security group ID. You can call the [DescribeSecurityGroups](~~25556~~) operation to query the security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` } func (s DeleteSecurityGroupRequest) String() string { return tea.Prettify(s) } func (s DeleteSecurityGroupRequest) GoString() string { return s.String() } func (s *DeleteSecurityGroupRequest) SetOwnerAccount(v string) *DeleteSecurityGroupRequest { s.OwnerAccount = &v return s } func (s *DeleteSecurityGroupRequest) SetOwnerId(v int64) *DeleteSecurityGroupRequest { s.OwnerId = &v return s } func (s *DeleteSecurityGroupRequest) SetRegionId(v string) *DeleteSecurityGroupRequest { s.RegionId = &v return s } func (s *DeleteSecurityGroupRequest) SetResourceOwnerAccount(v string) *DeleteSecurityGroupRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteSecurityGroupRequest) SetResourceOwnerId(v int64) *DeleteSecurityGroupRequest { s.ResourceOwnerId = &v return s } func (s *DeleteSecurityGroupRequest) SetSecurityGroupId(v string) *DeleteSecurityGroupRequest { s.SecurityGroupId = &v return s } type DeleteSecurityGroupResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteSecurityGroupResponseBody) String() string { return tea.Prettify(s) } func (s DeleteSecurityGroupResponseBody) GoString() string { return s.String() } func (s *DeleteSecurityGroupResponseBody) SetRequestId(v string) *DeleteSecurityGroupResponseBody { s.RequestId = &v return s } type DeleteSecurityGroupResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteSecurityGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteSecurityGroupResponse) String() string { return tea.Prettify(s) } func (s DeleteSecurityGroupResponse) GoString() string { return s.String() } func (s *DeleteSecurityGroupResponse) SetHeaders(v map[string]*string) *DeleteSecurityGroupResponse { s.Headers = v return s } func (s *DeleteSecurityGroupResponse) SetStatusCode(v int32) *DeleteSecurityGroupResponse { s.StatusCode = &v return s } func (s *DeleteSecurityGroupResponse) SetBody(v *DeleteSecurityGroupResponseBody) *DeleteSecurityGroupResponse { s.Body = v return s } type DeleteSnapshotRequest struct { // Specifies whether to forcibly delete the snapshot that has been used to create disks. Valid values: // // * true: forcibly deletes the snapshot. After the snapshot is forcibly deleted, the disks created from this snapshot cannot be re-initialized. // * false: does not forcibly delete the snapshot. // // Default value: false. Force *bool `json:"Force,omitempty" xml:"Force,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The snapshot ID. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s DeleteSnapshotRequest) String() string { return tea.Prettify(s) } func (s DeleteSnapshotRequest) GoString() string { return s.String() } func (s *DeleteSnapshotRequest) SetForce(v bool) *DeleteSnapshotRequest { s.Force = &v return s } func (s *DeleteSnapshotRequest) SetOwnerAccount(v string) *DeleteSnapshotRequest { s.OwnerAccount = &v return s } func (s *DeleteSnapshotRequest) SetOwnerId(v int64) *DeleteSnapshotRequest { s.OwnerId = &v return s } func (s *DeleteSnapshotRequest) SetResourceOwnerAccount(v string) *DeleteSnapshotRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteSnapshotRequest) SetResourceOwnerId(v int64) *DeleteSnapshotRequest { s.ResourceOwnerId = &v return s } func (s *DeleteSnapshotRequest) SetSnapshotId(v string) *DeleteSnapshotRequest { s.SnapshotId = &v return s } type DeleteSnapshotResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteSnapshotResponseBody) String() string { return tea.Prettify(s) } func (s DeleteSnapshotResponseBody) GoString() string { return s.String() } func (s *DeleteSnapshotResponseBody) SetRequestId(v string) *DeleteSnapshotResponseBody { s.RequestId = &v return s } type DeleteSnapshotResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteSnapshotResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteSnapshotResponse) String() string { return tea.Prettify(s) } func (s DeleteSnapshotResponse) GoString() string { return s.String() } func (s *DeleteSnapshotResponse) SetHeaders(v map[string]*string) *DeleteSnapshotResponse { s.Headers = v return s } func (s *DeleteSnapshotResponse) SetStatusCode(v int32) *DeleteSnapshotResponse { s.StatusCode = &v return s } func (s *DeleteSnapshotResponse) SetBody(v *DeleteSnapshotResponseBody) *DeleteSnapshotResponse { s.Body = v return s } type DeleteSnapshotGroupRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the snapshot-consistent group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the snapshot-consistent group. You can call the [DescribeSnapshotGroups](~~210940~~) operation to query the IDs of one or more snapshot-consistent groups. SnapshotGroupId *string `json:"SnapshotGroupId,omitempty" xml:"SnapshotGroupId,omitempty"` } func (s DeleteSnapshotGroupRequest) String() string { return tea.Prettify(s) } func (s DeleteSnapshotGroupRequest) GoString() string { return s.String() } func (s *DeleteSnapshotGroupRequest) SetOwnerAccount(v string) *DeleteSnapshotGroupRequest { s.OwnerAccount = &v return s } func (s *DeleteSnapshotGroupRequest) SetOwnerId(v int64) *DeleteSnapshotGroupRequest { s.OwnerId = &v return s } func (s *DeleteSnapshotGroupRequest) SetRegionId(v string) *DeleteSnapshotGroupRequest { s.RegionId = &v return s } func (s *DeleteSnapshotGroupRequest) SetResourceOwnerAccount(v string) *DeleteSnapshotGroupRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteSnapshotGroupRequest) SetResourceOwnerId(v int64) *DeleteSnapshotGroupRequest { s.ResourceOwnerId = &v return s } func (s *DeleteSnapshotGroupRequest) SetSnapshotGroupId(v string) *DeleteSnapshotGroupRequest { s.SnapshotGroupId = &v return s } type DeleteSnapshotGroupResponseBody struct { // Details about the delete operation. OperationProgressSet *DeleteSnapshotGroupResponseBodyOperationProgressSet `json:"OperationProgressSet,omitempty" xml:"OperationProgressSet,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteSnapshotGroupResponseBody) String() string { return tea.Prettify(s) } func (s DeleteSnapshotGroupResponseBody) GoString() string { return s.String() } func (s *DeleteSnapshotGroupResponseBody) SetOperationProgressSet(v *DeleteSnapshotGroupResponseBodyOperationProgressSet) *DeleteSnapshotGroupResponseBody { s.OperationProgressSet = v return s } func (s *DeleteSnapshotGroupResponseBody) SetRequestId(v string) *DeleteSnapshotGroupResponseBody { s.RequestId = &v return s } type DeleteSnapshotGroupResponseBodyOperationProgressSet struct { OperationProgress []*DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress `json:"OperationProgress,omitempty" xml:"OperationProgress,omitempty" type:"Repeated"` } func (s DeleteSnapshotGroupResponseBodyOperationProgressSet) String() string { return tea.Prettify(s) } func (s DeleteSnapshotGroupResponseBodyOperationProgressSet) GoString() string { return s.String() } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSet) SetOperationProgress(v []*DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress) *DeleteSnapshotGroupResponseBodyOperationProgressSet { s.OperationProgress = v return s } type DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress struct { // The error code. This parameter is empty when the operation is successful. // // For information about error codes and error messages, visit the [API error center](https://error-center.aliyun.com/status/product/Ecs). ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` // The error message. This parameter is empty when the operation is successful. // // For information about error codes and error messages, visit the [API error center](https://error-center.aliyun.com/status/product/Ecs). ErrorMsg *string `json:"ErrorMsg,omitempty" xml:"ErrorMsg,omitempty"` // Indicates whether the operation was successful. If the operation was successful, a value of Success is returned. If the operation failed, an error code and an error message are returned. OperationStatus *string `json:"OperationStatus,omitempty" xml:"OperationStatus,omitempty"` // Details about the resources. RelatedItemSet *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSet `json:"RelatedItemSet,omitempty" xml:"RelatedItemSet,omitempty" type:"Struct"` } func (s DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress) String() string { return tea.Prettify(s) } func (s DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress) GoString() string { return s.String() } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress) SetErrorCode(v string) *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress { s.ErrorCode = &v return s } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress) SetErrorMsg(v string) *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress { s.ErrorMsg = &v return s } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress) SetOperationStatus(v string) *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress { s.OperationStatus = &v return s } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress) SetRelatedItemSet(v *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSet) *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgress { s.RelatedItemSet = v return s } type DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSet struct { RelatedItem []*DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem `json:"RelatedItem,omitempty" xml:"RelatedItem,omitempty" type:"Repeated"` } func (s DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSet) String() string { return tea.Prettify(s) } func (s DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSet) GoString() string { return s.String() } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSet) SetRelatedItem(v []*DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSet { s.RelatedItem = v return s } type DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem struct { // The name of the resource. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The ID of the resource. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) String() string { return tea.Prettify(s) } func (s DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) GoString() string { return s.String() } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) SetName(v string) *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem { s.Name = &v return s } func (s *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) SetValue(v string) *DeleteSnapshotGroupResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem { s.Value = &v return s } type DeleteSnapshotGroupResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteSnapshotGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteSnapshotGroupResponse) String() string { return tea.Prettify(s) } func (s DeleteSnapshotGroupResponse) GoString() string { return s.String() } func (s *DeleteSnapshotGroupResponse) SetHeaders(v map[string]*string) *DeleteSnapshotGroupResponse { s.Headers = v return s } func (s *DeleteSnapshotGroupResponse) SetStatusCode(v int32) *DeleteSnapshotGroupResponse { s.StatusCode = &v return s } func (s *DeleteSnapshotGroupResponse) SetBody(v *DeleteSnapshotGroupResponseBody) *DeleteSnapshotGroupResponse { s.Body = v return s } type DeleteStorageSetRequest struct { // The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The value of **ClientToken** can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the storage set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the storage set. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` } func (s DeleteStorageSetRequest) String() string { return tea.Prettify(s) } func (s DeleteStorageSetRequest) GoString() string { return s.String() } func (s *DeleteStorageSetRequest) SetClientToken(v string) *DeleteStorageSetRequest { s.ClientToken = &v return s } func (s *DeleteStorageSetRequest) SetOwnerAccount(v string) *DeleteStorageSetRequest { s.OwnerAccount = &v return s } func (s *DeleteStorageSetRequest) SetOwnerId(v int64) *DeleteStorageSetRequest { s.OwnerId = &v return s } func (s *DeleteStorageSetRequest) SetRegionId(v string) *DeleteStorageSetRequest { s.RegionId = &v return s } func (s *DeleteStorageSetRequest) SetResourceOwnerAccount(v string) *DeleteStorageSetRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteStorageSetRequest) SetResourceOwnerId(v int64) *DeleteStorageSetRequest { s.ResourceOwnerId = &v return s } func (s *DeleteStorageSetRequest) SetStorageSetId(v string) *DeleteStorageSetRequest { s.StorageSetId = &v return s } type DeleteStorageSetResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteStorageSetResponseBody) String() string { return tea.Prettify(s) } func (s DeleteStorageSetResponseBody) GoString() string { return s.String() } func (s *DeleteStorageSetResponseBody) SetRequestId(v string) *DeleteStorageSetResponseBody { s.RequestId = &v return s } type DeleteStorageSetResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteStorageSetResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteStorageSetResponse) String() string { return tea.Prettify(s) } func (s DeleteStorageSetResponse) GoString() string { return s.String() } func (s *DeleteStorageSetResponse) SetHeaders(v map[string]*string) *DeleteStorageSetResponse { s.Headers = v return s } func (s *DeleteStorageSetResponse) SetStatusCode(v int32) *DeleteStorageSetResponse { s.StatusCode = &v return s } func (s *DeleteStorageSetResponse) SetBody(v *DeleteStorageSetResponseBody) *DeleteStorageSetResponse { s.Body = v return s } type DeleteVSwitchRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s DeleteVSwitchRequest) String() string { return tea.Prettify(s) } func (s DeleteVSwitchRequest) GoString() string { return s.String() } func (s *DeleteVSwitchRequest) SetOwnerAccount(v string) *DeleteVSwitchRequest { s.OwnerAccount = &v return s } func (s *DeleteVSwitchRequest) SetOwnerId(v int64) *DeleteVSwitchRequest { s.OwnerId = &v return s } func (s *DeleteVSwitchRequest) SetRegionId(v string) *DeleteVSwitchRequest { s.RegionId = &v return s } func (s *DeleteVSwitchRequest) SetResourceOwnerAccount(v string) *DeleteVSwitchRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteVSwitchRequest) SetResourceOwnerId(v int64) *DeleteVSwitchRequest { s.ResourceOwnerId = &v return s } func (s *DeleteVSwitchRequest) SetVSwitchId(v string) *DeleteVSwitchRequest { s.VSwitchId = &v return s } type DeleteVSwitchResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteVSwitchResponseBody) String() string { return tea.Prettify(s) } func (s DeleteVSwitchResponseBody) GoString() string { return s.String() } func (s *DeleteVSwitchResponseBody) SetRequestId(v string) *DeleteVSwitchResponseBody { s.RequestId = &v return s } type DeleteVSwitchResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteVSwitchResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteVSwitchResponse) String() string { return tea.Prettify(s) } func (s DeleteVSwitchResponse) GoString() string { return s.String() } func (s *DeleteVSwitchResponse) SetHeaders(v map[string]*string) *DeleteVSwitchResponse { s.Headers = v return s } func (s *DeleteVSwitchResponse) SetStatusCode(v int32) *DeleteVSwitchResponse { s.StatusCode = &v return s } func (s *DeleteVSwitchResponse) SetBody(v *DeleteVSwitchResponseBody) *DeleteVSwitchResponse { s.Body = v return s } type DeleteVirtualBorderRouterRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` VbrId *string `json:"VbrId,omitempty" xml:"VbrId,omitempty"` } func (s DeleteVirtualBorderRouterRequest) String() string { return tea.Prettify(s) } func (s DeleteVirtualBorderRouterRequest) GoString() string { return s.String() } func (s *DeleteVirtualBorderRouterRequest) SetClientToken(v string) *DeleteVirtualBorderRouterRequest { s.ClientToken = &v return s } func (s *DeleteVirtualBorderRouterRequest) SetOwnerAccount(v string) *DeleteVirtualBorderRouterRequest { s.OwnerAccount = &v return s } func (s *DeleteVirtualBorderRouterRequest) SetOwnerId(v int64) *DeleteVirtualBorderRouterRequest { s.OwnerId = &v return s } func (s *DeleteVirtualBorderRouterRequest) SetRegionId(v string) *DeleteVirtualBorderRouterRequest { s.RegionId = &v return s } func (s *DeleteVirtualBorderRouterRequest) SetResourceOwnerAccount(v string) *DeleteVirtualBorderRouterRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteVirtualBorderRouterRequest) SetResourceOwnerId(v int64) *DeleteVirtualBorderRouterRequest { s.ResourceOwnerId = &v return s } func (s *DeleteVirtualBorderRouterRequest) SetUserCidr(v string) *DeleteVirtualBorderRouterRequest { s.UserCidr = &v return s } func (s *DeleteVirtualBorderRouterRequest) SetVbrId(v string) *DeleteVirtualBorderRouterRequest { s.VbrId = &v return s } type DeleteVirtualBorderRouterResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteVirtualBorderRouterResponseBody) String() string { return tea.Prettify(s) } func (s DeleteVirtualBorderRouterResponseBody) GoString() string { return s.String() } func (s *DeleteVirtualBorderRouterResponseBody) SetRequestId(v string) *DeleteVirtualBorderRouterResponseBody { s.RequestId = &v return s } type DeleteVirtualBorderRouterResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteVirtualBorderRouterResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteVirtualBorderRouterResponse) String() string { return tea.Prettify(s) } func (s DeleteVirtualBorderRouterResponse) GoString() string { return s.String() } func (s *DeleteVirtualBorderRouterResponse) SetHeaders(v map[string]*string) *DeleteVirtualBorderRouterResponse { s.Headers = v return s } func (s *DeleteVirtualBorderRouterResponse) SetStatusCode(v int32) *DeleteVirtualBorderRouterResponse { s.StatusCode = &v return s } func (s *DeleteVirtualBorderRouterResponse) SetBody(v *DeleteVirtualBorderRouterResponseBody) *DeleteVirtualBorderRouterResponse { s.Body = v return s } type DeleteVpcRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DeleteVpcRequest) String() string { return tea.Prettify(s) } func (s DeleteVpcRequest) GoString() string { return s.String() } func (s *DeleteVpcRequest) SetOwnerAccount(v string) *DeleteVpcRequest { s.OwnerAccount = &v return s } func (s *DeleteVpcRequest) SetOwnerId(v int64) *DeleteVpcRequest { s.OwnerId = &v return s } func (s *DeleteVpcRequest) SetRegionId(v string) *DeleteVpcRequest { s.RegionId = &v return s } func (s *DeleteVpcRequest) SetResourceOwnerAccount(v string) *DeleteVpcRequest { s.ResourceOwnerAccount = &v return s } func (s *DeleteVpcRequest) SetResourceOwnerId(v int64) *DeleteVpcRequest { s.ResourceOwnerId = &v return s } func (s *DeleteVpcRequest) SetVpcId(v string) *DeleteVpcRequest { s.VpcId = &v return s } type DeleteVpcResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeleteVpcResponseBody) String() string { return tea.Prettify(s) } func (s DeleteVpcResponseBody) GoString() string { return s.String() } func (s *DeleteVpcResponseBody) SetRequestId(v string) *DeleteVpcResponseBody { s.RequestId = &v return s } type DeleteVpcResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeleteVpcResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeleteVpcResponse) String() string { return tea.Prettify(s) } func (s DeleteVpcResponse) GoString() string { return s.String() } func (s *DeleteVpcResponse) SetHeaders(v map[string]*string) *DeleteVpcResponse { s.Headers = v return s } func (s *DeleteVpcResponse) SetStatusCode(v int32) *DeleteVpcResponse { s.StatusCode = &v return s } func (s *DeleteVpcResponse) SetBody(v *DeleteVpcResponseBody) *DeleteVpcResponse { s.Body = v return s } type DeregisterManagedInstanceRequest struct { // The managed instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the managed instance. Supported regions: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), Singapore, Japan (Tokyo), US (Silicon Valley), and US (Virginia). // // You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DeregisterManagedInstanceRequest) String() string { return tea.Prettify(s) } func (s DeregisterManagedInstanceRequest) GoString() string { return s.String() } func (s *DeregisterManagedInstanceRequest) SetInstanceId(v string) *DeregisterManagedInstanceRequest { s.InstanceId = &v return s } func (s *DeregisterManagedInstanceRequest) SetOwnerAccount(v string) *DeregisterManagedInstanceRequest { s.OwnerAccount = &v return s } func (s *DeregisterManagedInstanceRequest) SetOwnerId(v int64) *DeregisterManagedInstanceRequest { s.OwnerId = &v return s } func (s *DeregisterManagedInstanceRequest) SetRegionId(v string) *DeregisterManagedInstanceRequest { s.RegionId = &v return s } func (s *DeregisterManagedInstanceRequest) SetResourceOwnerAccount(v string) *DeregisterManagedInstanceRequest { s.ResourceOwnerAccount = &v return s } func (s *DeregisterManagedInstanceRequest) SetResourceOwnerId(v int64) *DeregisterManagedInstanceRequest { s.ResourceOwnerId = &v return s } type DeregisterManagedInstanceResponseBody struct { // The managed instance. Instance *DeregisterManagedInstanceResponseBodyInstance `json:"Instance,omitempty" xml:"Instance,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DeregisterManagedInstanceResponseBody) String() string { return tea.Prettify(s) } func (s DeregisterManagedInstanceResponseBody) GoString() string { return s.String() } func (s *DeregisterManagedInstanceResponseBody) SetInstance(v *DeregisterManagedInstanceResponseBodyInstance) *DeregisterManagedInstanceResponseBody { s.Instance = v return s } func (s *DeregisterManagedInstanceResponseBody) SetRequestId(v string) *DeregisterManagedInstanceResponseBody { s.RequestId = &v return s } type DeregisterManagedInstanceResponseBodyInstance struct { // The activation code ID. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The version number of Cloud Assistant Agent. AgentVersion *string `json:"AgentVersion,omitempty" xml:"AgentVersion,omitempty"` // The hostname of the managed instance. Hostname *string `json:"Hostname,omitempty" xml:"Hostname,omitempty"` // The managed instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the managed instance. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The public IP address of the managed instance. InternetIp *string `json:"InternetIp,omitempty" xml:"InternetIp,omitempty"` // The internal IP address of the managed instance. IntranetIp *string `json:"IntranetIp,omitempty" xml:"IntranetIp,omitempty"` // The number of times that Cloud Assistant tasks were executed on the managed instance. InvocationCount *int64 `json:"InvocationCount,omitempty" xml:"InvocationCount,omitempty"` // The time when the Cloud Assistant task was last executed. LastInvokedTime *string `json:"LastInvokedTime,omitempty" xml:"LastInvokedTime,omitempty"` // The machine code of the managed instance. MachineId *string `json:"MachineId,omitempty" xml:"MachineId,omitempty"` // The operating system type of the managed instance. OsType *string `json:"OsType,omitempty" xml:"OsType,omitempty"` // The version information about the operating system. OsVersion *string `json:"OsVersion,omitempty" xml:"OsVersion,omitempty"` // The time when the managed instance was registered. RegistrationTime *string `json:"RegistrationTime,omitempty" xml:"RegistrationTime,omitempty"` // The ID of the resource group to which the managed instance belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` } func (s DeregisterManagedInstanceResponseBodyInstance) String() string { return tea.Prettify(s) } func (s DeregisterManagedInstanceResponseBodyInstance) GoString() string { return s.String() } func (s *DeregisterManagedInstanceResponseBodyInstance) SetActivationId(v string) *DeregisterManagedInstanceResponseBodyInstance { s.ActivationId = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetAgentVersion(v string) *DeregisterManagedInstanceResponseBodyInstance { s.AgentVersion = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetHostname(v string) *DeregisterManagedInstanceResponseBodyInstance { s.Hostname = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetInstanceId(v string) *DeregisterManagedInstanceResponseBodyInstance { s.InstanceId = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetInstanceName(v string) *DeregisterManagedInstanceResponseBodyInstance { s.InstanceName = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetInternetIp(v string) *DeregisterManagedInstanceResponseBodyInstance { s.InternetIp = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetIntranetIp(v string) *DeregisterManagedInstanceResponseBodyInstance { s.IntranetIp = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetInvocationCount(v int64) *DeregisterManagedInstanceResponseBodyInstance { s.InvocationCount = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetLastInvokedTime(v string) *DeregisterManagedInstanceResponseBodyInstance { s.LastInvokedTime = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetMachineId(v string) *DeregisterManagedInstanceResponseBodyInstance { s.MachineId = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetOsType(v string) *DeregisterManagedInstanceResponseBodyInstance { s.OsType = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetOsVersion(v string) *DeregisterManagedInstanceResponseBodyInstance { s.OsVersion = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetRegistrationTime(v string) *DeregisterManagedInstanceResponseBodyInstance { s.RegistrationTime = &v return s } func (s *DeregisterManagedInstanceResponseBodyInstance) SetResourceGroupId(v string) *DeregisterManagedInstanceResponseBodyInstance { s.ResourceGroupId = &v return s } type DeregisterManagedInstanceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DeregisterManagedInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DeregisterManagedInstanceResponse) String() string { return tea.Prettify(s) } func (s DeregisterManagedInstanceResponse) GoString() string { return s.String() } func (s *DeregisterManagedInstanceResponse) SetHeaders(v map[string]*string) *DeregisterManagedInstanceResponse { s.Headers = v return s } func (s *DeregisterManagedInstanceResponse) SetStatusCode(v int32) *DeregisterManagedInstanceResponse { s.StatusCode = &v return s } func (s *DeregisterManagedInstanceResponse) SetBody(v *DeregisterManagedInstanceResponseBody) *DeregisterManagedInstanceResponse { s.Body = v return s } type DescribeAccessPointsRequest struct { Filter []*DescribeAccessPointsRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeAccessPointsRequest) String() string { return tea.Prettify(s) } func (s DescribeAccessPointsRequest) GoString() string { return s.String() } func (s *DescribeAccessPointsRequest) SetFilter(v []*DescribeAccessPointsRequestFilter) *DescribeAccessPointsRequest { s.Filter = v return s } func (s *DescribeAccessPointsRequest) SetOwnerId(v int64) *DescribeAccessPointsRequest { s.OwnerId = &v return s } func (s *DescribeAccessPointsRequest) SetPageNumber(v int32) *DescribeAccessPointsRequest { s.PageNumber = &v return s } func (s *DescribeAccessPointsRequest) SetPageSize(v int32) *DescribeAccessPointsRequest { s.PageSize = &v return s } func (s *DescribeAccessPointsRequest) SetRegionId(v string) *DescribeAccessPointsRequest { s.RegionId = &v return s } func (s *DescribeAccessPointsRequest) SetResourceOwnerAccount(v string) *DescribeAccessPointsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeAccessPointsRequest) SetResourceOwnerId(v int64) *DescribeAccessPointsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeAccessPointsRequest) SetType(v string) *DescribeAccessPointsRequest { s.Type = &v return s } type DescribeAccessPointsRequestFilter struct { Key *string `json:"Key,omitempty" xml:"Key,omitempty"` Value []*string `json:"Value,omitempty" xml:"Value,omitempty" type:"Repeated"` } func (s DescribeAccessPointsRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeAccessPointsRequestFilter) GoString() string { return s.String() } func (s *DescribeAccessPointsRequestFilter) SetKey(v string) *DescribeAccessPointsRequestFilter { s.Key = &v return s } func (s *DescribeAccessPointsRequestFilter) SetValue(v []*string) *DescribeAccessPointsRequestFilter { s.Value = v return s } type DescribeAccessPointsResponseBody struct { AccessPointSet *DescribeAccessPointsResponseBodyAccessPointSet `json:"AccessPointSet,omitempty" xml:"AccessPointSet,omitempty" type:"Struct"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeAccessPointsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeAccessPointsResponseBody) GoString() string { return s.String() } func (s *DescribeAccessPointsResponseBody) SetAccessPointSet(v *DescribeAccessPointsResponseBodyAccessPointSet) *DescribeAccessPointsResponseBody { s.AccessPointSet = v return s } func (s *DescribeAccessPointsResponseBody) SetPageNumber(v int32) *DescribeAccessPointsResponseBody { s.PageNumber = &v return s } func (s *DescribeAccessPointsResponseBody) SetPageSize(v int32) *DescribeAccessPointsResponseBody { s.PageSize = &v return s } func (s *DescribeAccessPointsResponseBody) SetRequestId(v string) *DescribeAccessPointsResponseBody { s.RequestId = &v return s } func (s *DescribeAccessPointsResponseBody) SetTotalCount(v int32) *DescribeAccessPointsResponseBody { s.TotalCount = &v return s } type DescribeAccessPointsResponseBodyAccessPointSet struct { AccessPointType []*DescribeAccessPointsResponseBodyAccessPointSetAccessPointType `json:"AccessPointType,omitempty" xml:"AccessPointType,omitempty" type:"Repeated"` } func (s DescribeAccessPointsResponseBodyAccessPointSet) String() string { return tea.Prettify(s) } func (s DescribeAccessPointsResponseBodyAccessPointSet) GoString() string { return s.String() } func (s *DescribeAccessPointsResponseBodyAccessPointSet) SetAccessPointType(v []*DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) *DescribeAccessPointsResponseBodyAccessPointSet { s.AccessPointType = v return s } type DescribeAccessPointsResponseBodyAccessPointSetAccessPointType struct { AccessPointId *string `json:"AccessPointId,omitempty" xml:"AccessPointId,omitempty"` AttachedRegionNo *string `json:"AttachedRegionNo,omitempty" xml:"AttachedRegionNo,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` HostOperator *string `json:"HostOperator,omitempty" xml:"HostOperator,omitempty"` Location *string `json:"Location,omitempty" xml:"Location,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) String() string { return tea.Prettify(s) } func (s DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) GoString() string { return s.String() } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetAccessPointId(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.AccessPointId = &v return s } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetAttachedRegionNo(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.AttachedRegionNo = &v return s } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetDescription(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.Description = &v return s } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetHostOperator(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.HostOperator = &v return s } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetLocation(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.Location = &v return s } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetName(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.Name = &v return s } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetStatus(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.Status = &v return s } func (s *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType) SetType(v string) *DescribeAccessPointsResponseBodyAccessPointSetAccessPointType { s.Type = &v return s } type DescribeAccessPointsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeAccessPointsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeAccessPointsResponse) String() string { return tea.Prettify(s) } func (s DescribeAccessPointsResponse) GoString() string { return s.String() } func (s *DescribeAccessPointsResponse) SetHeaders(v map[string]*string) *DescribeAccessPointsResponse { s.Headers = v return s } func (s *DescribeAccessPointsResponse) SetStatusCode(v int32) *DescribeAccessPointsResponse { s.StatusCode = &v return s } func (s *DescribeAccessPointsResponse) SetBody(v *DescribeAccessPointsResponseBody) *DescribeAccessPointsResponse { s.Body = v return s } type DescribeAccountAttributesRequest struct { // The type of resource quota N. Valid values of N: 1 to 8. Valid values: // // * instance-network-type: available network types // // * max-security-groups: the maximum number of security groups // // * max-elastic-network-interfaces: the maximum number of ENIs // // * max-postpaid-instance-vcpu-count: the maximum number of vCPUs for pay-as-you-go instances // // * max-spot-instance-vcpu-count: the maximum number of vCPUs for preemptible instances // // * used-postpaid-instance-vcpu-count: the number of vCPUs that have been allocated to pay-as-you-go instances // // * used-spot-instance-vcpu-count: the number of vCPUs that have been allocated to preemptible instances // // * max-postpaid-yundisk-capacity: the maximum capacity of pay-as-you-go data disks // // * used-postpaid-yundisk-capacity: the capacity of pay-as-you-go disks that have been created // // * max-dedicated-hosts: the maximum number of dedicated hosts // // * supported-postpaid-instance-types: the instance types of pay-as-you-go I/O optimized instances // // * max-axt-command-count: the maximum number of Cloud Assistant commands // // * max-axt-invocation-daily: the maximum number of Cloud Assistant command executions per day // // * real-name-authentication: whether the account has passed the real-name verification // // ** // // **Note**You must pass the real-name verification before you create an ECS instance in the Chinese mainland regions. // // * max-cloud-assistant-activation-count: the maximum number of activation codes that can be created to use to register managed instances // // This parameter is empty by default. AttributeName []*string `json:"AttributeName,omitempty" xml:"AttributeName,omitempty" type:"Repeated"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the zone in which the resource resides. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeAccountAttributesRequest) String() string { return tea.Prettify(s) } func (s DescribeAccountAttributesRequest) GoString() string { return s.String() } func (s *DescribeAccountAttributesRequest) SetAttributeName(v []*string) *DescribeAccountAttributesRequest { s.AttributeName = v return s } func (s *DescribeAccountAttributesRequest) SetOwnerId(v int64) *DescribeAccountAttributesRequest { s.OwnerId = &v return s } func (s *DescribeAccountAttributesRequest) SetRegionId(v string) *DescribeAccountAttributesRequest { s.RegionId = &v return s } func (s *DescribeAccountAttributesRequest) SetResourceOwnerAccount(v string) *DescribeAccountAttributesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeAccountAttributesRequest) SetResourceOwnerId(v int64) *DescribeAccountAttributesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeAccountAttributesRequest) SetZoneId(v string) *DescribeAccountAttributesRequest { s.ZoneId = &v return s } type DescribeAccountAttributesResponseBody struct { // Details about account privileges specified by AccountAttributeItem in the specified region. AccountAttributeItems *DescribeAccountAttributesResponseBodyAccountAttributeItems `json:"AccountAttributeItems,omitempty" xml:"AccountAttributeItems,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeAccountAttributesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeAccountAttributesResponseBody) GoString() string { return s.String() } func (s *DescribeAccountAttributesResponseBody) SetAccountAttributeItems(v *DescribeAccountAttributesResponseBodyAccountAttributeItems) *DescribeAccountAttributesResponseBody { s.AccountAttributeItems = v return s } func (s *DescribeAccountAttributesResponseBody) SetRequestId(v string) *DescribeAccountAttributesResponseBody { s.RequestId = &v return s } type DescribeAccountAttributesResponseBodyAccountAttributeItems struct { AccountAttributeItem []*DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem `json:"AccountAttributeItem,omitempty" xml:"AccountAttributeItem,omitempty" type:"Repeated"` } func (s DescribeAccountAttributesResponseBodyAccountAttributeItems) String() string { return tea.Prettify(s) } func (s DescribeAccountAttributesResponseBodyAccountAttributeItems) GoString() string { return s.String() } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItems) SetAccountAttributeItem(v []*DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem) *DescribeAccountAttributesResponseBodyAccountAttributeItems { s.AccountAttributeItem = v return s } type DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem struct { // The type of the resource quota in the specified region. Valid values: // // * instance-network-type: available network types // * max-security-groups: the maximum number of security groups // * max-elastic-network-interfaces: the maximum number of ENIs // * max-postpaid-instance-vcpu-count: the maximum number of vCPUs for pay-as-you-go instances // * max-spot-instance-vcpu-count: the maximum number of vCPUs for preemptible instances // * used-postpaid-instance-vcpu-count: the number of vCPUs that have been allocated to pay-as-you-go instances // * used-spot-instance-vcpu-count: the number of vCPUs that have been allocated to preemptible instances // * max-postpaid-yundisk-capacity: the maximum capacity of pay-as-you-go data disks // * used-postpaid-yundisk-capacity: the capacity of pay-as-you-go disks that have been created // * max-dedicated-hosts: the maximum number of dedicated hosts // * supported-postpaid-instance-types: the instance types of pay-as-you-go I/O optimized instances // * max-axt-command-count: the maximum number of Cloud Assistant commands // * max-axt-invocation-daily: the maximum number of Cloud Assistant command executions per day // * real-name-authentication: whether the account has passed the real-name verification // * max-cloud-assistant-activation-count: the maximum number of activation codes that can be created to use to register managed instances AttributeName *string `json:"AttributeName,omitempty" xml:"AttributeName,omitempty"` // The specific values of resource quotas. AttributeValues *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValues `json:"AttributeValues,omitempty" xml:"AttributeValues,omitempty" type:"Struct"` } func (s DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem) String() string { return tea.Prettify(s) } func (s DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem) GoString() string { return s.String() } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem) SetAttributeName(v string) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem { s.AttributeName = &v return s } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem) SetAttributeValues(v *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValues) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItem { s.AttributeValues = v return s } type DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValues struct { ValueItem []*DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem `json:"ValueItem,omitempty" xml:"ValueItem,omitempty" type:"Repeated"` } func (s DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValues) String() string { return tea.Prettify(s) } func (s DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValues) GoString() string { return s.String() } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValues) SetValueItem(v []*DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValues { s.ValueItem = v return s } type DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem struct { // The number of privilege attributes in the account. Count *int32 `json:"Count,omitempty" xml:"Count,omitempty"` // The data disk category. Valid values: // // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: enhanced SSD (ESSD) DiskCategory *string `json:"DiskCategory,omitempty" xml:"DiskCategory,omitempty"` // The expiration time of a privilege. This parameter is returned only when the account privilege has an expiration time. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` // The billing method of the instance. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The type of the instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The value of the resource quota in the specified region. Valid values: // // The values returned for the resource quotas to which the following AttributeName values correspond are 0 or positive integers: // // * max-security-groups // * max-elastic-network-interfaces // * max-postpaid-instance-vcpu-count // * max-spot-instance-vcpu-count // * used-postpaid-instance-vcpu-count // * used-spot-instance-vcpu-count // * max-postpaid-yundisk-capacity // * used-postpaid-yundisk-capacity // * max-dedicated-hosts // * max-axt-command-count // * max-axt-invocation-daily // * max-cloud-assistant-activation-count // // When the AttributeName parameter is set to supported-postpay-instance-types, an instance type is returned. For more information, see [Instance families](~~25378~~). // // When the AttributeName parameter is set to real-name-authentications, one of the following values is returned: // // * yes // * none // * unnecessary // // When the AttributeName parameter is set to instance-network-type, one of the following values is returned: // // * vpc // * classic Value *string `json:"Value,omitempty" xml:"Value,omitempty"` // The ID of the zone in which the resource resides. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) String() string { return tea.Prettify(s) } func (s DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) GoString() string { return s.String() } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) SetCount(v int32) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem { s.Count = &v return s } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) SetDiskCategory(v string) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem { s.DiskCategory = &v return s } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) SetExpiredTime(v string) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem { s.ExpiredTime = &v return s } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) SetInstanceChargeType(v string) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem { s.InstanceChargeType = &v return s } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) SetInstanceType(v string) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem { s.InstanceType = &v return s } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) SetValue(v string) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem { s.Value = &v return s } func (s *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem) SetZoneId(v string) *DescribeAccountAttributesResponseBodyAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem { s.ZoneId = &v return s } type DescribeAccountAttributesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeAccountAttributesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeAccountAttributesResponse) String() string { return tea.Prettify(s) } func (s DescribeAccountAttributesResponse) GoString() string { return s.String() } func (s *DescribeAccountAttributesResponse) SetHeaders(v map[string]*string) *DescribeAccountAttributesResponse { s.Headers = v return s } func (s *DescribeAccountAttributesResponse) SetStatusCode(v int32) *DescribeAccountAttributesResponse { s.StatusCode = &v return s } func (s *DescribeAccountAttributesResponse) SetBody(v *DescribeAccountAttributesResponseBody) *DescribeAccountAttributesResponse { s.Body = v return s } type DescribeActivationsRequest struct { // The ID of the activation code. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The default instance name prefix. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The maximum number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the command. Supported regions: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), and China (Hong Kong). // // You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the activation code belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags of the activation code. Tag []*DescribeActivationsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeActivationsRequest) String() string { return tea.Prettify(s) } func (s DescribeActivationsRequest) GoString() string { return s.String() } func (s *DescribeActivationsRequest) SetActivationId(v string) *DescribeActivationsRequest { s.ActivationId = &v return s } func (s *DescribeActivationsRequest) SetInstanceName(v string) *DescribeActivationsRequest { s.InstanceName = &v return s } func (s *DescribeActivationsRequest) SetMaxResults(v int32) *DescribeActivationsRequest { s.MaxResults = &v return s } func (s *DescribeActivationsRequest) SetNextToken(v string) *DescribeActivationsRequest { s.NextToken = &v return s } func (s *DescribeActivationsRequest) SetOwnerAccount(v string) *DescribeActivationsRequest { s.OwnerAccount = &v return s } func (s *DescribeActivationsRequest) SetOwnerId(v int64) *DescribeActivationsRequest { s.OwnerId = &v return s } func (s *DescribeActivationsRequest) SetPageNumber(v int64) *DescribeActivationsRequest { s.PageNumber = &v return s } func (s *DescribeActivationsRequest) SetPageSize(v int64) *DescribeActivationsRequest { s.PageSize = &v return s } func (s *DescribeActivationsRequest) SetRegionId(v string) *DescribeActivationsRequest { s.RegionId = &v return s } func (s *DescribeActivationsRequest) SetResourceGroupId(v string) *DescribeActivationsRequest { s.ResourceGroupId = &v return s } func (s *DescribeActivationsRequest) SetResourceOwnerAccount(v string) *DescribeActivationsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeActivationsRequest) SetResourceOwnerId(v int64) *DescribeActivationsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeActivationsRequest) SetTag(v []*DescribeActivationsRequestTag) *DescribeActivationsRequest { s.Tag = v return s } type DescribeActivationsRequestTag struct { // The key of tag N of the activation code. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag can be returned. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags can be returned. To query more than 1,000 resources that have specified tags, call the [ListTagResources](~~110425~~) operation. // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the activation code. 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://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeActivationsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeActivationsRequestTag) GoString() string { return s.String() } func (s *DescribeActivationsRequestTag) SetKey(v string) *DescribeActivationsRequestTag { s.Key = &v return s } func (s *DescribeActivationsRequestTag) SetValue(v string) *DescribeActivationsRequestTag { s.Value = &v return s } type DescribeActivationsResponseBody struct { // The activation codes and their usage information. ActivationList []*DescribeActivationsResponseBodyActivationList `json:"ActivationList,omitempty" xml:"ActivationList,omitempty" type:"Repeated"` // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeActivationsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeActivationsResponseBody) GoString() string { return s.String() } func (s *DescribeActivationsResponseBody) SetActivationList(v []*DescribeActivationsResponseBodyActivationList) *DescribeActivationsResponseBody { s.ActivationList = v return s } func (s *DescribeActivationsResponseBody) SetNextToken(v string) *DescribeActivationsResponseBody { s.NextToken = &v return s } func (s *DescribeActivationsResponseBody) SetPageNumber(v int64) *DescribeActivationsResponseBody { s.PageNumber = &v return s } func (s *DescribeActivationsResponseBody) SetPageSize(v int64) *DescribeActivationsResponseBody { s.PageSize = &v return s } func (s *DescribeActivationsResponseBody) SetRequestId(v string) *DescribeActivationsResponseBody { s.RequestId = &v return s } func (s *DescribeActivationsResponseBody) SetTotalCount(v int64) *DescribeActivationsResponseBody { s.TotalCount = &v return s } type DescribeActivationsResponseBodyActivationList struct { // The ID of the activation code. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The time when the activation code was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The number of instances that were deregistered. DeregisteredCount *int32 `json:"DeregisteredCount,omitempty" xml:"DeregisteredCount,omitempty"` // The description of the activation code. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Indicates whether the activation code is disabled. Disabled *bool `json:"Disabled,omitempty" xml:"Disabled,omitempty"` // The maximum number of times that the activation code can be used to register managed instances. InstanceCount *int32 `json:"InstanceCount,omitempty" xml:"InstanceCount,omitempty"` // The default instance name prefix. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The IP addresses of hosts that are allowed to use the activation code. IpAddressRange *string `json:"IpAddressRange,omitempty" xml:"IpAddressRange,omitempty"` // The number of instances that were registered. RegisteredCount *int32 `json:"RegisteredCount,omitempty" xml:"RegisteredCount,omitempty"` // The ID of the resource group to which the activation code belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The tags of the activation code. Tags []*DescribeActivationsResponseBodyActivationListTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"` // The validity period of the activation code. Unit: hours. TimeToLiveInHours *int64 `json:"TimeToLiveInHours,omitempty" xml:"TimeToLiveInHours,omitempty"` } func (s DescribeActivationsResponseBodyActivationList) String() string { return tea.Prettify(s) } func (s DescribeActivationsResponseBodyActivationList) GoString() string { return s.String() } func (s *DescribeActivationsResponseBodyActivationList) SetActivationId(v string) *DescribeActivationsResponseBodyActivationList { s.ActivationId = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetCreationTime(v string) *DescribeActivationsResponseBodyActivationList { s.CreationTime = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetDeregisteredCount(v int32) *DescribeActivationsResponseBodyActivationList { s.DeregisteredCount = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetDescription(v string) *DescribeActivationsResponseBodyActivationList { s.Description = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetDisabled(v bool) *DescribeActivationsResponseBodyActivationList { s.Disabled = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetInstanceCount(v int32) *DescribeActivationsResponseBodyActivationList { s.InstanceCount = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetInstanceName(v string) *DescribeActivationsResponseBodyActivationList { s.InstanceName = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetIpAddressRange(v string) *DescribeActivationsResponseBodyActivationList { s.IpAddressRange = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetRegisteredCount(v int32) *DescribeActivationsResponseBodyActivationList { s.RegisteredCount = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetResourceGroupId(v string) *DescribeActivationsResponseBodyActivationList { s.ResourceGroupId = &v return s } func (s *DescribeActivationsResponseBodyActivationList) SetTags(v []*DescribeActivationsResponseBodyActivationListTags) *DescribeActivationsResponseBodyActivationList { s.Tags = v return s } func (s *DescribeActivationsResponseBodyActivationList) SetTimeToLiveInHours(v int64) *DescribeActivationsResponseBodyActivationList { s.TimeToLiveInHours = &v return s } type DescribeActivationsResponseBodyActivationListTags struct { // The tag key of the activation code. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the activation code. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeActivationsResponseBodyActivationListTags) String() string { return tea.Prettify(s) } func (s DescribeActivationsResponseBodyActivationListTags) GoString() string { return s.String() } func (s *DescribeActivationsResponseBodyActivationListTags) SetTagKey(v string) *DescribeActivationsResponseBodyActivationListTags { s.TagKey = &v return s } func (s *DescribeActivationsResponseBodyActivationListTags) SetTagValue(v string) *DescribeActivationsResponseBodyActivationListTags { s.TagValue = &v return s } type DescribeActivationsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeActivationsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeActivationsResponse) String() string { return tea.Prettify(s) } func (s DescribeActivationsResponse) GoString() string { return s.String() } func (s *DescribeActivationsResponse) SetHeaders(v map[string]*string) *DescribeActivationsResponse { s.Headers = v return s } func (s *DescribeActivationsResponse) SetStatusCode(v int32) *DescribeActivationsResponse { s.StatusCode = &v return s } func (s *DescribeActivationsResponse) SetBody(v *DescribeActivationsResponseBody) *DescribeActivationsResponse { s.Body = v return s } type DescribeAutoProvisioningGroupHistoryRequest struct { // The ID of the auto provisioning group. AutoProvisioningGroupId *string `json:"AutoProvisioningGroupId,omitempty" xml:"AutoProvisioningGroupId,omitempty"` // The end of the time range of the queried data. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number of the returned page. Pages start from page 1. // // Default value: 1 PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the auto provisioning group. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The beginning of the time range of the queried data. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeAutoProvisioningGroupHistoryRequest) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupHistoryRequest) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetAutoProvisioningGroupId(v string) *DescribeAutoProvisioningGroupHistoryRequest { s.AutoProvisioningGroupId = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetEndTime(v string) *DescribeAutoProvisioningGroupHistoryRequest { s.EndTime = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetOwnerAccount(v string) *DescribeAutoProvisioningGroupHistoryRequest { s.OwnerAccount = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetOwnerId(v int64) *DescribeAutoProvisioningGroupHistoryRequest { s.OwnerId = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetPageNumber(v int32) *DescribeAutoProvisioningGroupHistoryRequest { s.PageNumber = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetPageSize(v int32) *DescribeAutoProvisioningGroupHistoryRequest { s.PageSize = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetRegionId(v string) *DescribeAutoProvisioningGroupHistoryRequest { s.RegionId = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetResourceOwnerAccount(v string) *DescribeAutoProvisioningGroupHistoryRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetResourceOwnerId(v int64) *DescribeAutoProvisioningGroupHistoryRequest { s.ResourceOwnerId = &v return s } func (s *DescribeAutoProvisioningGroupHistoryRequest) SetStartTime(v string) *DescribeAutoProvisioningGroupHistoryRequest { s.StartTime = &v return s } type DescribeAutoProvisioningGroupHistoryResponseBody struct { // An array consisting of AutoProvisioningGroupHistory data. AutoProvisioningGroupHistories *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistories `json:"AutoProvisioningGroupHistories,omitempty" xml:"AutoProvisioningGroupHistories,omitempty" type:"Struct"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The number of queried scheduling tasks in the auto provisioning group. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeAutoProvisioningGroupHistoryResponseBody) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupHistoryResponseBody) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupHistoryResponseBody) SetAutoProvisioningGroupHistories(v *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistories) *DescribeAutoProvisioningGroupHistoryResponseBody { s.AutoProvisioningGroupHistories = v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBody) SetPageNumber(v int32) *DescribeAutoProvisioningGroupHistoryResponseBody { s.PageNumber = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBody) SetPageSize(v int32) *DescribeAutoProvisioningGroupHistoryResponseBody { s.PageSize = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBody) SetRequestId(v string) *DescribeAutoProvisioningGroupHistoryResponseBody { s.RequestId = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBody) SetTotalCount(v int32) *DescribeAutoProvisioningGroupHistoryResponseBody { s.TotalCount = &v return s } type DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistories struct { AutoProvisioningGroupHistory []*DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory `json:"AutoProvisioningGroupHistory,omitempty" xml:"AutoProvisioningGroupHistory,omitempty" type:"Repeated"` } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistories) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistories) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistories) SetAutoProvisioningGroupHistory(v []*DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistories { s.AutoProvisioningGroupHistory = v return s } type DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory struct { // An array consisting of ActivityDetail data. ActivityDetails *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetails `json:"ActivityDetails,omitempty" xml:"ActivityDetails,omitempty" type:"Struct"` // The execution time of the last instance creation performed by the single scheduling task. LastEventTime *string `json:"LastEventTime,omitempty" xml:"LastEventTime,omitempty"` // The start time of executing the single scheduling task. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The execution status of the single scheduling task. Valid values: // // * prepare: The scheduling task is being executed. // * success: The scheduling task is executed. // * failed: The scheduling task failed to be executed. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The ID of the scheduling task. TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) SetActivityDetails(v *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetails) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory { s.ActivityDetails = v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) SetLastEventTime(v string) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory { s.LastEventTime = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) SetStartTime(v string) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory { s.StartTime = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) SetStatus(v string) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory { s.Status = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory) SetTaskId(v string) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory { s.TaskId = &v return s } type DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetails struct { ActivityDetail []*DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail `json:"ActivityDetail,omitempty" xml:"ActivityDetail,omitempty" type:"Repeated"` } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetails) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetails) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetails) SetActivityDetail(v []*DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetails { s.ActivityDetail = v return s } type DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail struct { // The execution details of instance creation performed by the single scheduling task. Detail *string `json:"Detail,omitempty" xml:"Detail,omitempty"` // The execution status of instance creation performed by the single scheduling task. Valid values: // // * Successful: Instances are created. // * Failed: Instances failed to be created. // * InProgress: Instances are being created. // * Warning: Some instances are created. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail) SetDetail(v string) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail { s.Detail = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail) SetStatus(v string) *DescribeAutoProvisioningGroupHistoryResponseBodyAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail { s.Status = &v return s } type DescribeAutoProvisioningGroupHistoryResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeAutoProvisioningGroupHistoryResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeAutoProvisioningGroupHistoryResponse) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupHistoryResponse) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupHistoryResponse) SetHeaders(v map[string]*string) *DescribeAutoProvisioningGroupHistoryResponse { s.Headers = v return s } func (s *DescribeAutoProvisioningGroupHistoryResponse) SetStatusCode(v int32) *DescribeAutoProvisioningGroupHistoryResponse { s.StatusCode = &v return s } func (s *DescribeAutoProvisioningGroupHistoryResponse) SetBody(v *DescribeAutoProvisioningGroupHistoryResponseBody) *DescribeAutoProvisioningGroupHistoryResponse { s.Body = v return s } type DescribeAutoProvisioningGroupInstancesRequest struct { // The ID of the auto provisioning group. AutoProvisioningGroupId *string `json:"AutoProvisioningGroupId,omitempty" xml:"AutoProvisioningGroupId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the auto provisioning group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeAutoProvisioningGroupInstancesRequest) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupInstancesRequest) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetAutoProvisioningGroupId(v string) *DescribeAutoProvisioningGroupInstancesRequest { s.AutoProvisioningGroupId = &v return s } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetOwnerAccount(v string) *DescribeAutoProvisioningGroupInstancesRequest { s.OwnerAccount = &v return s } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetOwnerId(v int64) *DescribeAutoProvisioningGroupInstancesRequest { s.OwnerId = &v return s } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetPageNumber(v int32) *DescribeAutoProvisioningGroupInstancesRequest { s.PageNumber = &v return s } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetPageSize(v int32) *DescribeAutoProvisioningGroupInstancesRequest { s.PageSize = &v return s } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetRegionId(v string) *DescribeAutoProvisioningGroupInstancesRequest { s.RegionId = &v return s } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetResourceOwnerAccount(v string) *DescribeAutoProvisioningGroupInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeAutoProvisioningGroupInstancesRequest) SetResourceOwnerId(v int64) *DescribeAutoProvisioningGroupInstancesRequest { s.ResourceOwnerId = &v return s } type DescribeAutoProvisioningGroupInstancesResponseBody struct { // An array consisting of Instance data. Instances *DescribeAutoProvisioningGroupInstancesResponseBodyInstances `json:"Instances,omitempty" xml:"Instances,omitempty" type:"Struct"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The number of queried instances in the auto provisioning group. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeAutoProvisioningGroupInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupInstancesResponseBody) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupInstancesResponseBody) SetInstances(v *DescribeAutoProvisioningGroupInstancesResponseBodyInstances) *DescribeAutoProvisioningGroupInstancesResponseBody { s.Instances = v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBody) SetPageNumber(v int32) *DescribeAutoProvisioningGroupInstancesResponseBody { s.PageNumber = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBody) SetPageSize(v int32) *DescribeAutoProvisioningGroupInstancesResponseBody { s.PageSize = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBody) SetRequestId(v string) *DescribeAutoProvisioningGroupInstancesResponseBody { s.RequestId = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBody) SetTotalCount(v int32) *DescribeAutoProvisioningGroupInstancesResponseBody { s.TotalCount = &v return s } type DescribeAutoProvisioningGroupInstancesResponseBodyInstances struct { Instance []*DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance `json:"Instance,omitempty" xml:"Instance,omitempty" type:"Repeated"` } func (s DescribeAutoProvisioningGroupInstancesResponseBodyInstances) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupInstancesResponseBodyInstances) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstances) SetInstance(v []*DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) *DescribeAutoProvisioningGroupInstancesResponseBodyInstances { s.Instance = v return s } type DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance struct { // The number of vCPUs. CPU *int32 `json:"CPU,omitempty" xml:"CPU,omitempty"` // The time when the instance was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The instance type of the ECS instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // Indicates whether the instance is I/O optimized. IoOptimized *bool `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // Indicates whether the instance is a preemptible instance. IsSpot *bool `json:"IsSpot,omitempty" xml:"IsSpot,omitempty"` // The memory size of the instance. Unit: MiB. Memory *int32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // The network type of the instance. Valid values: // // * vpc // * classic NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` // The operating system type of the instance. Valid values: // // * windows // * linux OsType *string `json:"OsType,omitempty" xml:"OsType,omitempty"` // The region ID of the instance. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The status of the instance. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The zone ID of the instance. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetCPU(v int32) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.CPU = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetCreationTime(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.CreationTime = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetInstanceId(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.InstanceId = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetInstanceType(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.InstanceType = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetIoOptimized(v bool) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.IoOptimized = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetIsSpot(v bool) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.IsSpot = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetMemory(v int32) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.Memory = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetNetworkType(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.NetworkType = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetOsType(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.OsType = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetRegionId(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.RegionId = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetStatus(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.Status = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance) SetZoneId(v string) *DescribeAutoProvisioningGroupInstancesResponseBodyInstancesInstance { s.ZoneId = &v return s } type DescribeAutoProvisioningGroupInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeAutoProvisioningGroupInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeAutoProvisioningGroupInstancesResponse) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupInstancesResponse) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupInstancesResponse) SetHeaders(v map[string]*string) *DescribeAutoProvisioningGroupInstancesResponse { s.Headers = v return s } func (s *DescribeAutoProvisioningGroupInstancesResponse) SetStatusCode(v int32) *DescribeAutoProvisioningGroupInstancesResponse { s.StatusCode = &v return s } func (s *DescribeAutoProvisioningGroupInstancesResponse) SetBody(v *DescribeAutoProvisioningGroupInstancesResponseBody) *DescribeAutoProvisioningGroupInstancesResponse { s.Body = v return s } type DescribeAutoProvisioningGroupsRequest struct { // The ID of the auto provisioning group. You can specify up to 20 IDs. AutoProvisioningGroupId []*string `json:"AutoProvisioningGroupId,omitempty" xml:"AutoProvisioningGroupId,omitempty" type:"Repeated"` // The name of the auto provisioning group. AutoProvisioningGroupName *string `json:"AutoProvisioningGroupName,omitempty" xml:"AutoProvisioningGroupName,omitempty"` // The status of the auto provisioning group. AutoProvisioningGroupStatus []*string `json:"AutoProvisioningGroupStatus,omitempty" xml:"AutoProvisioningGroupStatus,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the auto provisioning group. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the auto provisioning group belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags that are added to the auto provisioning group. Tag []*DescribeAutoProvisioningGroupsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeAutoProvisioningGroupsRequest) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsRequest) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsRequest) SetAutoProvisioningGroupId(v []*string) *DescribeAutoProvisioningGroupsRequest { s.AutoProvisioningGroupId = v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetAutoProvisioningGroupName(v string) *DescribeAutoProvisioningGroupsRequest { s.AutoProvisioningGroupName = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetAutoProvisioningGroupStatus(v []*string) *DescribeAutoProvisioningGroupsRequest { s.AutoProvisioningGroupStatus = v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetOwnerAccount(v string) *DescribeAutoProvisioningGroupsRequest { s.OwnerAccount = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetOwnerId(v int64) *DescribeAutoProvisioningGroupsRequest { s.OwnerId = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetPageNumber(v int32) *DescribeAutoProvisioningGroupsRequest { s.PageNumber = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetPageSize(v int32) *DescribeAutoProvisioningGroupsRequest { s.PageSize = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetRegionId(v string) *DescribeAutoProvisioningGroupsRequest { s.RegionId = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetResourceGroupId(v string) *DescribeAutoProvisioningGroupsRequest { s.ResourceGroupId = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetResourceOwnerAccount(v string) *DescribeAutoProvisioningGroupsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetResourceOwnerId(v int64) *DescribeAutoProvisioningGroupsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeAutoProvisioningGroupsRequest) SetTag(v []*DescribeAutoProvisioningGroupsRequestTag) *DescribeAutoProvisioningGroupsRequest { s.Tag = v return s } type DescribeAutoProvisioningGroupsRequestTag struct { // The key of tag N that is added to the auto provisioning group. // // Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N that is added to the auto provisioning group. // // Valid values of N: 1 to 20. The tag value can be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeAutoProvisioningGroupsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsRequestTag) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsRequestTag) SetKey(v string) *DescribeAutoProvisioningGroupsRequestTag { s.Key = &v return s } func (s *DescribeAutoProvisioningGroupsRequestTag) SetValue(v string) *DescribeAutoProvisioningGroupsRequestTag { s.Value = &v return s } type DescribeAutoProvisioningGroupsResponseBody struct { // Details about the auto provisioning groups. AutoProvisioningGroups *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups `json:"AutoProvisioningGroups,omitempty" xml:"AutoProvisioningGroups,omitempty" type:"Struct"` // The number of the page returned. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The number of queried auto provisioning groups. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeAutoProvisioningGroupsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBody) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBody) SetAutoProvisioningGroups(v *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups) *DescribeAutoProvisioningGroupsResponseBody { s.AutoProvisioningGroups = v return s } func (s *DescribeAutoProvisioningGroupsResponseBody) SetPageNumber(v int32) *DescribeAutoProvisioningGroupsResponseBody { s.PageNumber = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBody) SetPageSize(v int32) *DescribeAutoProvisioningGroupsResponseBody { s.PageSize = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBody) SetRequestId(v string) *DescribeAutoProvisioningGroupsResponseBody { s.RequestId = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBody) SetTotalCount(v int32) *DescribeAutoProvisioningGroupsResponseBody { s.TotalCount = &v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups struct { AutoProvisioningGroup []*DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup `json:"AutoProvisioningGroup,omitempty" xml:"AutoProvisioningGroup,omitempty" type:"Repeated"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups) SetAutoProvisioningGroup(v []*DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups { s.AutoProvisioningGroup = v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup struct { // The ID of the auto provisioning group. AutoProvisioningGroupId *string `json:"AutoProvisioningGroupId,omitempty" xml:"AutoProvisioningGroupId,omitempty"` // The name of the auto provisioning group. AutoProvisioningGroupName *string `json:"AutoProvisioningGroupName,omitempty" xml:"AutoProvisioningGroupName,omitempty"` // The delivery type of the auto provisioning group. Valid values: // // * request: one-time delivery. When the auto provisioning group is started, it delivers instances only once. If the instances fail to be delivered, the auto provisioning group does not retry the delivery. // * maintain: continuous delivery. When the auto provisioning group is started, it attempts to deliver instances that meet the target capacity and monitors the real-time capacity. If the target capacity of the auto provisioning group is not reached, the auto provisioning group continues to create instances until the target capacity is reached. AutoProvisioningGroupType *string `json:"AutoProvisioningGroupType,omitempty" xml:"AutoProvisioningGroupType,omitempty"` // The time when the auto provisioning group was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // Indicates whether to release the scaled-in instances when the real-time capacity of the auto provisioning group exceeds the target capacity and the group is triggered to scale in. Valid values: // // * termination: releases the scaled-in instances. // * no-termination: only removes the scaled-in instances from the auto provisioning group but does not release the instances. ExcessCapacityTerminationPolicy *string `json:"ExcessCapacityTerminationPolicy,omitempty" xml:"ExcessCapacityTerminationPolicy,omitempty"` // Details about the extended configurations. LaunchTemplateConfigs *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs `json:"LaunchTemplateConfigs,omitempty" xml:"LaunchTemplateConfigs,omitempty" type:"Struct"` // The ID of the launch template associated with the auto provisioning group. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The version of the launch template associated with the auto provisioning group. LaunchTemplateVersion *string `json:"LaunchTemplateVersion,omitempty" xml:"LaunchTemplateVersion,omitempty"` // The maximum price of preemptible instances in the auto provisioning group. // // > When both the MaxSpotPrice and LaunchTemplateConfig.N.MaxPrice parameters are specified, the smaller one of the two parameter values is used. // // The LaunchTemplateConfig.N.Priority parameter is set when the auto provisioning group is created, and cannot be modified. MaxSpotPrice *float32 `json:"MaxSpotPrice,omitempty" xml:"MaxSpotPrice,omitempty"` // The policies related to pay-as-you-go instances. PayAsYouGoOptions *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions `json:"PayAsYouGoOptions,omitempty" xml:"PayAsYouGoOptions,omitempty" type:"Struct"` // The region ID of the auto provisioning group. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the auto provisioning group belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The policy related to preemptible instances. SpotOptions *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions `json:"SpotOptions,omitempty" xml:"SpotOptions,omitempty" type:"Struct"` // The overall status of instance scheduling in the auto provisioning group. Valid values: // // * fulfilled: Scheduling was complete and the instances were delivered. // * pending-fulfillment: The instances were being created. // * pending-termination: The instances were being removed. // * error: An exception occurred during scheduling and the instances were not delivered. State *string `json:"State,omitempty" xml:"State,omitempty"` // The status of the auto provisioning group. Valid values: // // * submitted: The auto provisioning group was created but did not execute scheduling tasks. // * active: The auto provisioning group was executing scheduling tasks. // * deleted: The auto provisioning group was deleted. // * delete-running: The auto provisioning group was being deleted. // * modifying: The auto provisioning group was being modified. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags that are added to the auto provisioning group. Tags *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The settings of the target capacity of the auto provisioning group. TargetCapacitySpecification *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification `json:"TargetCapacitySpecification,omitempty" xml:"TargetCapacitySpecification,omitempty" type:"Struct"` // Indicates whether to release instances in the auto provisioning group when the auto provisioning group is deleted. Valid values: // // * true: releases the instances. // * false: only removes the instances from the auto provisioning group but does not release the instances. TerminateInstances *bool `json:"TerminateInstances,omitempty" xml:"TerminateInstances,omitempty"` // Indicates whether to release instances in the auto provisioning group when the group expires. Valid values: // // * true: releases the instances. // * false: only removes the instances from the auto provisioning group but does not release the instances. TerminateInstancesWithExpiration *bool `json:"TerminateInstancesWithExpiration,omitempty" xml:"TerminateInstancesWithExpiration,omitempty"` // The time at which the auto provisioning group is started. The provisioning group is effective until the point in time specified by `ValidUntil`. ValidFrom *string `json:"ValidFrom,omitempty" xml:"ValidFrom,omitempty"` // The time at which the auto provisioning group expires. The period of time between this point in time and the point in time specified by the `ValidFrom` parameter is the validity period of the auto provisioning group. ValidUntil *string `json:"ValidUntil,omitempty" xml:"ValidUntil,omitempty"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetAutoProvisioningGroupId(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.AutoProvisioningGroupId = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetAutoProvisioningGroupName(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.AutoProvisioningGroupName = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetAutoProvisioningGroupType(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.AutoProvisioningGroupType = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetCreationTime(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.CreationTime = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetExcessCapacityTerminationPolicy(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.ExcessCapacityTerminationPolicy = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetLaunchTemplateConfigs(v *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.LaunchTemplateConfigs = v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetLaunchTemplateId(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.LaunchTemplateId = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetLaunchTemplateVersion(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.LaunchTemplateVersion = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetMaxSpotPrice(v float32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.MaxSpotPrice = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetPayAsYouGoOptions(v *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.PayAsYouGoOptions = v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetRegionId(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.RegionId = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetResourceGroupId(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.ResourceGroupId = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetSpotOptions(v *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.SpotOptions = v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetState(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.State = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetStatus(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.Status = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetTags(v *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.Tags = v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetTargetCapacitySpecification(v *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.TargetCapacitySpecification = v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetTerminateInstances(v bool) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.TerminateInstances = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetTerminateInstancesWithExpiration(v bool) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.TerminateInstancesWithExpiration = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetValidFrom(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.ValidFrom = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup) SetValidUntil(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup { s.ValidUntil = &v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs struct { LaunchTemplateConfig []*DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig `json:"LaunchTemplateConfig,omitempty" xml:"LaunchTemplateConfig,omitempty" type:"Repeated"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs) SetLaunchTemplateConfig(v []*DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigs { s.LaunchTemplateConfig = v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig struct { // The instance type that is specified in the extended configuration. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The maximum price of the instance type specified in the extended configuration. MaxPrice *float32 `json:"MaxPrice,omitempty" xml:"MaxPrice,omitempty"` // The priority of the instance type specified in the extended configuration. A value of 0 indicates the highest priority. Priority *float32 `json:"Priority,omitempty" xml:"Priority,omitempty"` // The ID of the vSwitch specified in the extended configuration. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The weight of the instance type specified in the extended configuration. WeightedCapacity *float32 `json:"WeightedCapacity,omitempty" xml:"WeightedCapacity,omitempty"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) SetInstanceType(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig { s.InstanceType = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) SetMaxPrice(v float32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig { s.MaxPrice = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) SetPriority(v float32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig { s.Priority = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) SetVSwitchId(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig { s.VSwitchId = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig) SetWeightedCapacity(v float32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig { s.WeightedCapacity = &v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions struct { // The policy for creating pay-as-you-go instances. Valid values: // // * lowest-price: cost optimization policy. This policy indicates that lowest-cost instance types are used to create instances. // * prioritized: priority-based policy. This policy indicates that instances are created based on the priority specified by the LaunchTemplateConfig.N.Priority parameter. // // > The LaunchTemplateConfig.N.Priority parameter is set when the auto provisioning group is created, and cannot be modified. AllocationStrategy *string `json:"AllocationStrategy,omitempty" xml:"AllocationStrategy,omitempty"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions) SetAllocationStrategy(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupPayAsYouGoOptions { s.AllocationStrategy = &v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions struct { // The policy for creating preemptible instances. Valid values: // // * lowest-price: cost optimization policy. This policy indicates that the lowest-priced instance type is used to create instances. // * diversified: balanced distribution policy. This policy indicates that instances are created evenly across multiple zones specified in the extended configuration. AllocationStrategy *string `json:"AllocationStrategy,omitempty" xml:"AllocationStrategy,omitempty"` // The action to be performed after the excess preemptible instances are stopped. Valid values: // // * stop: retains the excess preemptible instances in the stopped state. // * terminate: releases the excess preemptible instances. InstanceInterruptionBehavior *string `json:"InstanceInterruptionBehavior,omitempty" xml:"InstanceInterruptionBehavior,omitempty"` // The number of instances that the auto provisioning group creates by selecting the instance type of the lowest price. // // > This parameter is set when the auto provisioning group is created, and cannot be modified. InstancePoolsToUseCount *int32 `json:"InstancePoolsToUseCount,omitempty" xml:"InstancePoolsToUseCount,omitempty"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions) SetAllocationStrategy(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions { s.AllocationStrategy = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions) SetInstanceInterruptionBehavior(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions { s.InstanceInterruptionBehavior = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions) SetInstancePoolsToUseCount(v int32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupSpotOptions { s.InstancePoolsToUseCount = &v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags struct { Tag []*DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags) SetTag(v []*DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTags { s.Tag = v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag struct { // The key of tag N that is added to the auto provisioning group. // // Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The value of tag N that is added to the auto provisioning group. // // 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://. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag) SetTagKey(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag { s.TagKey = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag) SetTagValue(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTagsTag { s.TagValue = &v return s } type DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification struct { // The type of supplemental instances. When the sum of the `PayAsYouGoTargetCapacity` and `SpotTargetCapacity` values is less than the `TotalTargetCapacity` value, the auto provisioning group creates instances of the specified billing method to meet the target capacity. Valid values: // // * PayAsYouGo: pay-as-you-go instances. // * Spot: preemptible instances. DefaultTargetCapacityType *string `json:"DefaultTargetCapacityType,omitempty" xml:"DefaultTargetCapacityType,omitempty"` // The target capacity of pay-as-you-go instances that the auto provisioning group provisions. PayAsYouGoTargetCapacity *float32 `json:"PayAsYouGoTargetCapacity,omitempty" xml:"PayAsYouGoTargetCapacity,omitempty"` // The target capacity of preemptible instances that the auto provisioning group provisions. SpotTargetCapacity *float32 `json:"SpotTargetCapacity,omitempty" xml:"SpotTargetCapacity,omitempty"` // The target capacity of the auto provisioning group. The capacity consists of the following parts: // // * PayAsYouGoTargetCapacity // * SpotTargetCapacity // * The supplemental capacity besides instance capacities specified by PayAsYouGoTargetCapacity and SpotTargetCapacity. TotalTargetCapacity *float32 `json:"TotalTargetCapacity,omitempty" xml:"TotalTargetCapacity,omitempty"` } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification) SetDefaultTargetCapacityType(v string) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification { s.DefaultTargetCapacityType = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification) SetPayAsYouGoTargetCapacity(v float32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification { s.PayAsYouGoTargetCapacity = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification) SetSpotTargetCapacity(v float32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification { s.SpotTargetCapacity = &v return s } func (s *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification) SetTotalTargetCapacity(v float32) *DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification { s.TotalTargetCapacity = &v return s } type DescribeAutoProvisioningGroupsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeAutoProvisioningGroupsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeAutoProvisioningGroupsResponse) String() string { return tea.Prettify(s) } func (s DescribeAutoProvisioningGroupsResponse) GoString() string { return s.String() } func (s *DescribeAutoProvisioningGroupsResponse) SetHeaders(v map[string]*string) *DescribeAutoProvisioningGroupsResponse { s.Headers = v return s } func (s *DescribeAutoProvisioningGroupsResponse) SetStatusCode(v int32) *DescribeAutoProvisioningGroupsResponse { s.StatusCode = &v return s } func (s *DescribeAutoProvisioningGroupsResponse) SetBody(v *DescribeAutoProvisioningGroupsResponseBody) *DescribeAutoProvisioningGroupsResponse { s.Body = v return s } type DescribeAutoSnapshotPolicyExRequest struct { // The ID of the automatic snapshot policy. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // The name of the automatic snapshot policy. AutoSnapshotPolicyName *string `json:"AutoSnapshotPolicyName,omitempty" xml:"AutoSnapshotPolicyName,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the automatic snapshot policy. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags of the automatic snapshot policy. Tag []*DescribeAutoSnapshotPolicyExRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeAutoSnapshotPolicyExRequest) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExRequest) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExRequest) SetAutoSnapshotPolicyId(v string) *DescribeAutoSnapshotPolicyExRequest { s.AutoSnapshotPolicyId = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetAutoSnapshotPolicyName(v string) *DescribeAutoSnapshotPolicyExRequest { s.AutoSnapshotPolicyName = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetOwnerAccount(v string) *DescribeAutoSnapshotPolicyExRequest { s.OwnerAccount = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetOwnerId(v int64) *DescribeAutoSnapshotPolicyExRequest { s.OwnerId = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetPageNumber(v int32) *DescribeAutoSnapshotPolicyExRequest { s.PageNumber = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetPageSize(v int32) *DescribeAutoSnapshotPolicyExRequest { s.PageSize = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetRegionId(v string) *DescribeAutoSnapshotPolicyExRequest { s.RegionId = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetResourceGroupId(v string) *DescribeAutoSnapshotPolicyExRequest { s.ResourceGroupId = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetResourceOwnerAccount(v string) *DescribeAutoSnapshotPolicyExRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetResourceOwnerId(v int64) *DescribeAutoSnapshotPolicyExRequest { s.ResourceOwnerId = &v return s } func (s *DescribeAutoSnapshotPolicyExRequest) SetTag(v []*DescribeAutoSnapshotPolicyExRequestTag) *DescribeAutoSnapshotPolicyExRequest { s.Tag = v return s } type DescribeAutoSnapshotPolicyExRequestTag struct { // The key of tag N of the automatic snapshot policy. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the automatic snapshot policy. 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://. The tag value cannot start with acs:. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeAutoSnapshotPolicyExRequestTag) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExRequestTag) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExRequestTag) SetKey(v string) *DescribeAutoSnapshotPolicyExRequestTag { s.Key = &v return s } func (s *DescribeAutoSnapshotPolicyExRequestTag) SetValue(v string) *DescribeAutoSnapshotPolicyExRequestTag { s.Value = &v return s } type DescribeAutoSnapshotPolicyExResponseBody struct { // Details about the automatic snapshot policies. AutoSnapshotPolicies *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPolicies `json:"AutoSnapshotPolicies,omitempty" xml:"AutoSnapshotPolicies,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of automatic snapshot policies TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeAutoSnapshotPolicyExResponseBody) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExResponseBody) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExResponseBody) SetAutoSnapshotPolicies(v *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPolicies) *DescribeAutoSnapshotPolicyExResponseBody { s.AutoSnapshotPolicies = v return s } func (s *DescribeAutoSnapshotPolicyExResponseBody) SetPageNumber(v int32) *DescribeAutoSnapshotPolicyExResponseBody { s.PageNumber = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBody) SetPageSize(v int32) *DescribeAutoSnapshotPolicyExResponseBody { s.PageSize = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBody) SetRequestId(v string) *DescribeAutoSnapshotPolicyExResponseBody { s.RequestId = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBody) SetTotalCount(v int32) *DescribeAutoSnapshotPolicyExResponseBody { s.TotalCount = &v return s } type DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPolicies struct { AutoSnapshotPolicy []*DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy `json:"AutoSnapshotPolicy,omitempty" xml:"AutoSnapshotPolicy,omitempty" type:"Repeated"` } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPolicies) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPolicies) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPolicies) SetAutoSnapshotPolicy(v []*DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPolicies { s.AutoSnapshotPolicy = v return s } type DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy struct { // The ID of the automatic snapshot policy. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // The name of the automatic snapshot policy. AutoSnapshotPolicyName *string `json:"AutoSnapshotPolicyName,omitempty" xml:"AutoSnapshotPolicyName,omitempty"` // > This parameter is in invitational preview and is not publicly available. CopiedSnapshotsRetentionDays *int32 `json:"CopiedSnapshotsRetentionDays,omitempty" xml:"CopiedSnapshotsRetentionDays,omitempty"` // Encryption configurations for cross-region snapshot replication. CopyEncryptionConfiguration *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration `json:"CopyEncryptionConfiguration,omitempty" xml:"CopyEncryptionConfiguration,omitempty" type:"Struct"` // The time when the automatic snapshot policy was created. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The number of disks to which the automatic snapshot policy is applied. DiskNums *int32 `json:"DiskNums,omitempty" xml:"DiskNums,omitempty"` // > This parameter is in invitational preview and is not publicly available. EnableCrossRegionCopy *bool `json:"EnableCrossRegionCopy,omitempty" xml:"EnableCrossRegionCopy,omitempty"` // The region ID of the automatic snapshot policy. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The days of the week on which to create automatic snapshots. Valid values: 1 to 7, which correspond to the days of the week. For example, 1 indicates Monday. One or more days can be specified. RepeatWeekdays *string `json:"RepeatWeekdays,omitempty" xml:"RepeatWeekdays,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The retention period of the automatic snapshots. Unit: days. Valid values: // // * \-1: Automatic snapshots are retained until they are deleted. // * 1 to 65536: Auto snapshots are retained for the specified number of days. After the retention period of auto snapshots expires, the auto snapshots are automatically deleted. RetentionDays *int32 `json:"RetentionDays,omitempty" xml:"RetentionDays,omitempty"` // The status of the automatic snapshot policy. Valid values: // // * Normal: The automatic snapshot policy is normal. // * Expire: The automatic snapshot policy cannot be used because your account has overdue payments. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the automatic snapshot policy. Tags *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // > This parameter is in invitational preview and is not publicly available. TargetCopyRegions *string `json:"TargetCopyRegions,omitempty" xml:"TargetCopyRegions,omitempty"` // The points in time of the day at which to create automatic snapshots. // // The time is displayed in UTC+8. Unit: hours. Valid values: 0 to 23, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, 1 indicates 01:00:00. Multiple points in time can be specified. // // The parameter value is a JSON array that contains up to 24 points in time separated by commas (,). Example: `["0", "1", ... "23"]`. TimePoints *string `json:"TimePoints,omitempty" xml:"TimePoints,omitempty"` // The type of the automatic snapshot policy. Valid values: // // * Custom: user-defined snapshot policy. // * System: system-defined snapshot policy. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The number of extended volumes to which the automatic snapshot policy is applied. VolumeNums *int32 `json:"VolumeNums,omitempty" xml:"VolumeNums,omitempty"` } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetAutoSnapshotPolicyId(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.AutoSnapshotPolicyId = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetAutoSnapshotPolicyName(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.AutoSnapshotPolicyName = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetCopiedSnapshotsRetentionDays(v int32) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.CopiedSnapshotsRetentionDays = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetCopyEncryptionConfiguration(v *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.CopyEncryptionConfiguration = v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetCreationTime(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.CreationTime = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetDiskNums(v int32) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.DiskNums = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetEnableCrossRegionCopy(v bool) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.EnableCrossRegionCopy = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetRegionId(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.RegionId = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetRepeatWeekdays(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.RepeatWeekdays = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetResourceGroupId(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.ResourceGroupId = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetRetentionDays(v int32) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.RetentionDays = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetStatus(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.Status = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetTags(v *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.Tags = v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetTargetCopyRegions(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.TargetCopyRegions = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetTimePoints(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.TimePoints = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetType(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.Type = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy) SetVolumeNums(v int32) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicy { s.VolumeNums = &v return s } type DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration struct { // Whether to enable encryption for cross-region snapshot replication. Valid values: // // * true // * false // // Default value: false. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the Key Management Service (KMS) key used to encrypt snapshots in cross-region snapshot replication. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration) SetEncrypted(v bool) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration { s.Encrypted = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration) SetKMSKeyId(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration { s.KMSKeyId = &v return s } type DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags struct { Tag []*DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags) SetTag(v []*DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTags { s.Tag = v return s } type DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag struct { // The tag key of the automatic snapshot policy. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the automatic snapshot policy. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag) SetTagKey(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag { s.TagKey = &v return s } func (s *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag) SetTagValue(v string) *DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag { s.TagValue = &v return s } type DescribeAutoSnapshotPolicyExResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeAutoSnapshotPolicyExResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeAutoSnapshotPolicyExResponse) String() string { return tea.Prettify(s) } func (s DescribeAutoSnapshotPolicyExResponse) GoString() string { return s.String() } func (s *DescribeAutoSnapshotPolicyExResponse) SetHeaders(v map[string]*string) *DescribeAutoSnapshotPolicyExResponse { s.Headers = v return s } func (s *DescribeAutoSnapshotPolicyExResponse) SetStatusCode(v int32) *DescribeAutoSnapshotPolicyExResponse { s.StatusCode = &v return s } func (s *DescribeAutoSnapshotPolicyExResponse) SetBody(v *DescribeAutoSnapshotPolicyExResponseBody) *DescribeAutoSnapshotPolicyExResponse { s.Body = v return s } type DescribeAvailableResourceRequest struct { // The number of vCPUs of the instance type. For more information, see [Instance families](~~25378~~). // // The Cores parameter takes effect only when the DestinationResource parameter is set to InstanceType. Cores *int32 `json:"Cores,omitempty" xml:"Cores,omitempty"` // The type of the data disk. Valid values: // // * cloud: basic disk. // * cloud_efficiency: ultra disk. // * cloud_ssd: standard SSD. // * ephemeral_ssd: local SSD. // * cloud_essd: ESSD. DataDiskCategory *string `json:"DataDiskCategory,omitempty" xml:"DataDiskCategory,omitempty"` // The ID of the dedicated host. DedicatedHostId *string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty"` // The resource type to query. Valid values: // // * Zone: zone. // * IoOptimized: I/O optimized resource. // * InstanceType: instance type. // * SystemDisk: system disk. // * DataDisk: data disk. // * Network: network type. // * ddh: dedicated host. // // For more information about how to configure the DestinationResource parameter, see the **Description** section of this topic. DestinationResource *string `json:"DestinationResource,omitempty" xml:"DestinationResource,omitempty"` // The billing method of the resource. For more information, see [Billing overview](~~25398~~). Valid values: // // * PrePaid: subscription. // * PostPaid: pay-as-you-go. // // Default value: PostPaid. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance types. For more information, see [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list. // // For more information about how to configure the InstanceType parameter, see the **Description** section of this topic. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // Specifies whether the instance is an I/O optimized instance. Valid values: // // * none: The instance is a non-I/O optimized instance. // * optimized: The instance is an I/O optimized instance. // // Default value: optimized. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The memory size of the instance type. Unit: GiB. For more information, see [Instance families](~~25378~~). // // The Memory parameter takes effect only when the DestinationResource parameter is set to InstanceType. Memory *float32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // The network type of the cluster. Valid values: // // * vpc // * classic NetworkCategory *string `json:"NetworkCategory,omitempty" xml:"NetworkCategory,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region for which to query resources. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The type of the resource. Valid values: // // * instance: ECS instance. // * disk: cloud disk. // * reservedinstance: reserved instance. // * ddh: dedicated host. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The scope of the reserved instance. Valid values: // // * Region: regional. // * Zone: zonal. Scope *string `json:"Scope,omitempty" xml:"Scope,omitempty"` // The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values: // // - 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bidding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // - 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the biding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // Alibaba Cloud sends ECS system events to notify you 5 minutes before the instance is released. Preemptible instances are billed by the second. We recommend that you specify a protection period based on your business requirements. // // >If you set SpotStrategy to SpotWithPriceLimit or SpotAsPriceGo, this parameter takes effect. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The bidding policy for pay-as-you-go instances. Valid values: // // * NoSpot: The instance is a pay-as-you-go instance. // * SpotWithPriceLimit: The instance is a preemptible instance with a user-defined maximum hourly price. // * SpotAsPriceGo: The instance is a preemptible instance for which the market price is automatically used as the bid price. The market price can be up to the pay-as-you-go price. // // Default value: NoSpot. // // The SpotStrategy parameter takes effect only when the InstanceChargeType parameter is set to PostPaid. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The category of the system disk. Valid values: // // * cloud: basic disk. // * cloud_efficiency: ultra disk. // * cloud_ssd: standard SSD. // * ephemeral_ssd: local SSD. // * cloud_essd: enhanced SSD (ESSD). // // Default value: cloud_efficiency. // // > When the ResourceType parameter is set to instance and the DestinationResource parameter is set to DataDisk, you must set the SystemDiskCategory parameter. If you do not set this parameter, the default value takes effect. SystemDiskCategory *string `json:"SystemDiskCategory,omitempty" xml:"SystemDiskCategory,omitempty"` // The ID of the zone where the instance resides. // // This parameter is empty by default. When this parameter is empty, the system returns resources that match the other criteria in all zones within the region specified by `RegionId`. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeAvailableResourceRequest) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceRequest) GoString() string { return s.String() } func (s *DescribeAvailableResourceRequest) SetCores(v int32) *DescribeAvailableResourceRequest { s.Cores = &v return s } func (s *DescribeAvailableResourceRequest) SetDataDiskCategory(v string) *DescribeAvailableResourceRequest { s.DataDiskCategory = &v return s } func (s *DescribeAvailableResourceRequest) SetDedicatedHostId(v string) *DescribeAvailableResourceRequest { s.DedicatedHostId = &v return s } func (s *DescribeAvailableResourceRequest) SetDestinationResource(v string) *DescribeAvailableResourceRequest { s.DestinationResource = &v return s } func (s *DescribeAvailableResourceRequest) SetInstanceChargeType(v string) *DescribeAvailableResourceRequest { s.InstanceChargeType = &v return s } func (s *DescribeAvailableResourceRequest) SetInstanceType(v string) *DescribeAvailableResourceRequest { s.InstanceType = &v return s } func (s *DescribeAvailableResourceRequest) SetIoOptimized(v string) *DescribeAvailableResourceRequest { s.IoOptimized = &v return s } func (s *DescribeAvailableResourceRequest) SetMemory(v float32) *DescribeAvailableResourceRequest { s.Memory = &v return s } func (s *DescribeAvailableResourceRequest) SetNetworkCategory(v string) *DescribeAvailableResourceRequest { s.NetworkCategory = &v return s } func (s *DescribeAvailableResourceRequest) SetOwnerAccount(v string) *DescribeAvailableResourceRequest { s.OwnerAccount = &v return s } func (s *DescribeAvailableResourceRequest) SetOwnerId(v int64) *DescribeAvailableResourceRequest { s.OwnerId = &v return s } func (s *DescribeAvailableResourceRequest) SetRegionId(v string) *DescribeAvailableResourceRequest { s.RegionId = &v return s } func (s *DescribeAvailableResourceRequest) SetResourceOwnerAccount(v string) *DescribeAvailableResourceRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeAvailableResourceRequest) SetResourceOwnerId(v int64) *DescribeAvailableResourceRequest { s.ResourceOwnerId = &v return s } func (s *DescribeAvailableResourceRequest) SetResourceType(v string) *DescribeAvailableResourceRequest { s.ResourceType = &v return s } func (s *DescribeAvailableResourceRequest) SetScope(v string) *DescribeAvailableResourceRequest { s.Scope = &v return s } func (s *DescribeAvailableResourceRequest) SetSpotDuration(v int32) *DescribeAvailableResourceRequest { s.SpotDuration = &v return s } func (s *DescribeAvailableResourceRequest) SetSpotStrategy(v string) *DescribeAvailableResourceRequest { s.SpotStrategy = &v return s } func (s *DescribeAvailableResourceRequest) SetSystemDiskCategory(v string) *DescribeAvailableResourceRequest { s.SystemDiskCategory = &v return s } func (s *DescribeAvailableResourceRequest) SetZoneId(v string) *DescribeAvailableResourceRequest { s.ZoneId = &v return s } type DescribeAvailableResourceResponseBody struct { // Details about the zones in which resources are available. AvailableZones *DescribeAvailableResourceResponseBodyAvailableZones `json:"AvailableZones,omitempty" xml:"AvailableZones,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeAvailableResourceResponseBody) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponseBody) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponseBody) SetAvailableZones(v *DescribeAvailableResourceResponseBodyAvailableZones) *DescribeAvailableResourceResponseBody { s.AvailableZones = v return s } func (s *DescribeAvailableResourceResponseBody) SetRequestId(v string) *DescribeAvailableResourceResponseBody { s.RequestId = &v return s } type DescribeAvailableResourceResponseBodyAvailableZones struct { AvailableZone []*DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone `json:"AvailableZone,omitempty" xml:"AvailableZone,omitempty" type:"Repeated"` } func (s DescribeAvailableResourceResponseBodyAvailableZones) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponseBodyAvailableZones) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponseBodyAvailableZones) SetAvailableZone(v []*DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) *DescribeAvailableResourceResponseBodyAvailableZones { s.AvailableZone = v return s } type DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone struct { // Details about the resources that can be created in the zone. AvailableResources *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResources `json:"AvailableResources,omitempty" xml:"AvailableResources,omitempty" type:"Struct"` // The ID of the region where the instance resides. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The state of resources in the zone. Valid values: // // * Available // * SoldOut Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The resource category based on the stock. Valid values: // // * WithStock: Resources are in sufficient stock. // * ClosedWithStock: Resources are insufficient. We recommend that you use other resources that are in sufficient stock. // * WithoutStock: Resources are sold out and will be replenished. We recommend that you use other resources that are in sufficient stock. // * ClosedWithoutStock: Resources are sold out and will not be replenished. We recommend that you use other resources that are in sufficient stock. StatusCategory *string `json:"StatusCategory,omitempty" xml:"StatusCategory,omitempty"` // The ID of the zone in which the instance resides. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) SetAvailableResources(v *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResources) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone { s.AvailableResources = v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) SetRegionId(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone { s.RegionId = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) SetStatus(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone { s.Status = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) SetStatusCategory(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone { s.StatusCategory = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone) SetZoneId(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZone { s.ZoneId = &v return s } type DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResources struct { AvailableResource []*DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource `json:"AvailableResource,omitempty" xml:"AvailableResource,omitempty" type:"Repeated"` } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResources) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResources) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResources) SetAvailableResource(v []*DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResources { s.AvailableResource = v return s } type DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource struct { // Details about the resources. SupportedResources *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources `json:"SupportedResources,omitempty" xml:"SupportedResources,omitempty" type:"Struct"` // The type of a resource. Valid values: // // * Zone: zone. // * IoOptimized: I/O optimized resource. // * InstanceType: instance type. // * SystemDisk: system disk. // * DataDisk: data disk. // * Network: network type. // * ddh: dedicated host. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) SetSupportedResources(v *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource { s.SupportedResources = v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) SetType(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource { s.Type = &v return s } type DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources struct { SupportedResource []*DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource `json:"SupportedResource,omitempty" xml:"SupportedResource,omitempty" type:"Repeated"` } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) SetSupportedResource(v []*DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources { s.SupportedResource = v return s } type DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource struct { // The maximum number of available resources of a specific type. No value is returned when the parameter is empty. Max *int32 `json:"Max,omitempty" xml:"Max,omitempty"` // The minimum number of available resources of a specific type. No value is returned when the parameter is empty. Min *int32 `json:"Min,omitempty" xml:"Min,omitempty"` // The state of the resource. Valid values: // // * Available // * SoldOut Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The resource category based on the stock. Valid values: // // * WithStock: Resources are in sufficient stock. // * ClosedWithStock: Resources are insufficient. We recommend that you use other resources that are in sufficient stock. // * WithoutStock: Resources are sold out and will be replenished. We recommend that you use other resources that are in sufficient stock. // * ClosedWithoutStock: Resources are sold out and will not be replenished. We recommend that you use other resources that are in sufficient stock. StatusCategory *string `json:"StatusCategory,omitempty" xml:"StatusCategory,omitempty"` // The unit of the resource type. No value is returned when the parameter is empty. Unit *string `json:"Unit,omitempty" xml:"Unit,omitempty"` // The resource type. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetMax(v int32) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Max = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetMin(v int32) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Min = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetStatus(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Status = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetStatusCategory(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.StatusCategory = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetUnit(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Unit = &v return s } func (s *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetValue(v string) *DescribeAvailableResourceResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Value = &v return s } type DescribeAvailableResourceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeAvailableResourceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeAvailableResourceResponse) String() string { return tea.Prettify(s) } func (s DescribeAvailableResourceResponse) GoString() string { return s.String() } func (s *DescribeAvailableResourceResponse) SetHeaders(v map[string]*string) *DescribeAvailableResourceResponse { s.Headers = v return s } func (s *DescribeAvailableResourceResponse) SetStatusCode(v int32) *DescribeAvailableResourceResponse { s.StatusCode = &v return s } func (s *DescribeAvailableResourceResponse) SetBody(v *DescribeAvailableResourceResponseBody) *DescribeAvailableResourceResponse { s.Body = v return s } type DescribeBandwidthLimitationRequest struct { // The billing method of the instance. For more information, see [Billing overview](~~25398~~). Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go // // Default value: PostPaid. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance type. For information about the values, see [Overview of ECS instance families](~~25378~~). InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // Specifies the operation for which to query the maximum public bandwidth. Valid values: // // * Upgrade: upgrades the public bandwidth. // * Downgrade: downgrades the public bandwidth. // * Create: creates an ECS instance. // // Default value: Create. OperationType *string `json:"OperationType,omitempty" xml:"OperationType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The resource ID. // // > This parameter is required when the OperationType parameter is set to Upgrade or Downgrade. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The bidding policy for the pay-as-you-go instance. Valid values: // // * NoSpot: The instance is a pay-as-you-go instance. // * SpotWithPriceLimit: The instance is a preemptible instance for which you can specify the maximum hourly price. // * SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is automatically used as the bid price. The market price can be up to the pay-as-you-go price. // // Default value: NoSpot. // // > The SpotStrategy parameter takes effect only when the InstanceChargeType parameter is set to PostPaid. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` } func (s DescribeBandwidthLimitationRequest) String() string { return tea.Prettify(s) } func (s DescribeBandwidthLimitationRequest) GoString() string { return s.String() } func (s *DescribeBandwidthLimitationRequest) SetInstanceChargeType(v string) *DescribeBandwidthLimitationRequest { s.InstanceChargeType = &v return s } func (s *DescribeBandwidthLimitationRequest) SetInstanceType(v string) *DescribeBandwidthLimitationRequest { s.InstanceType = &v return s } func (s *DescribeBandwidthLimitationRequest) SetOperationType(v string) *DescribeBandwidthLimitationRequest { s.OperationType = &v return s } func (s *DescribeBandwidthLimitationRequest) SetOwnerAccount(v string) *DescribeBandwidthLimitationRequest { s.OwnerAccount = &v return s } func (s *DescribeBandwidthLimitationRequest) SetOwnerId(v int64) *DescribeBandwidthLimitationRequest { s.OwnerId = &v return s } func (s *DescribeBandwidthLimitationRequest) SetRegionId(v string) *DescribeBandwidthLimitationRequest { s.RegionId = &v return s } func (s *DescribeBandwidthLimitationRequest) SetResourceId(v string) *DescribeBandwidthLimitationRequest { s.ResourceId = &v return s } func (s *DescribeBandwidthLimitationRequest) SetResourceOwnerAccount(v string) *DescribeBandwidthLimitationRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeBandwidthLimitationRequest) SetResourceOwnerId(v int64) *DescribeBandwidthLimitationRequest { s.ResourceOwnerId = &v return s } func (s *DescribeBandwidthLimitationRequest) SetSpotStrategy(v string) *DescribeBandwidthLimitationRequest { s.SpotStrategy = &v return s } type DescribeBandwidthLimitationResponseBody struct { // Details about the maximum public bandwidth. Bandwidths *DescribeBandwidthLimitationResponseBodyBandwidths `json:"Bandwidths,omitempty" xml:"Bandwidths,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeBandwidthLimitationResponseBody) String() string { return tea.Prettify(s) } func (s DescribeBandwidthLimitationResponseBody) GoString() string { return s.String() } func (s *DescribeBandwidthLimitationResponseBody) SetBandwidths(v *DescribeBandwidthLimitationResponseBodyBandwidths) *DescribeBandwidthLimitationResponseBody { s.Bandwidths = v return s } func (s *DescribeBandwidthLimitationResponseBody) SetRequestId(v string) *DescribeBandwidthLimitationResponseBody { s.RequestId = &v return s } type DescribeBandwidthLimitationResponseBodyBandwidths struct { Bandwidth []*DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty" type:"Repeated"` } func (s DescribeBandwidthLimitationResponseBodyBandwidths) String() string { return tea.Prettify(s) } func (s DescribeBandwidthLimitationResponseBodyBandwidths) GoString() string { return s.String() } func (s *DescribeBandwidthLimitationResponseBodyBandwidths) SetBandwidth(v []*DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth) *DescribeBandwidthLimitationResponseBodyBandwidths { s.Bandwidth = v return s } type DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth struct { // The billing method for network usage. Valid values: // // * PayByBandwidth // * PayByTraffic InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum public bandwidth. Max *int32 `json:"Max,omitempty" xml:"Max,omitempty"` // The minimum public bandwidth. Min *int32 `json:"Min,omitempty" xml:"Min,omitempty"` // The unit of the public bandwidth. Unit *string `json:"Unit,omitempty" xml:"Unit,omitempty"` } func (s DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth) String() string { return tea.Prettify(s) } func (s DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth) GoString() string { return s.String() } func (s *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth) SetInternetChargeType(v string) *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth { s.InternetChargeType = &v return s } func (s *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth) SetMax(v int32) *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth { s.Max = &v return s } func (s *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth) SetMin(v int32) *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth { s.Min = &v return s } func (s *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth) SetUnit(v string) *DescribeBandwidthLimitationResponseBodyBandwidthsBandwidth { s.Unit = &v return s } type DescribeBandwidthLimitationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeBandwidthLimitationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeBandwidthLimitationResponse) String() string { return tea.Prettify(s) } func (s DescribeBandwidthLimitationResponse) GoString() string { return s.String() } func (s *DescribeBandwidthLimitationResponse) SetHeaders(v map[string]*string) *DescribeBandwidthLimitationResponse { s.Headers = v return s } func (s *DescribeBandwidthLimitationResponse) SetStatusCode(v int32) *DescribeBandwidthLimitationResponse { s.StatusCode = &v return s } func (s *DescribeBandwidthLimitationResponse) SetBody(v *DescribeBandwidthLimitationResponseBody) *DescribeBandwidthLimitationResponse { s.Body = v return s } type DescribeBandwidthPackagesRequest struct { BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" xml:"BandwidthPackageId,omitempty"` NatGatewayId *string `json:"NatGatewayId,omitempty" xml:"NatGatewayId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeBandwidthPackagesRequest) String() string { return tea.Prettify(s) } func (s DescribeBandwidthPackagesRequest) GoString() string { return s.String() } func (s *DescribeBandwidthPackagesRequest) SetBandwidthPackageId(v string) *DescribeBandwidthPackagesRequest { s.BandwidthPackageId = &v return s } func (s *DescribeBandwidthPackagesRequest) SetNatGatewayId(v string) *DescribeBandwidthPackagesRequest { s.NatGatewayId = &v return s } func (s *DescribeBandwidthPackagesRequest) SetOwnerAccount(v string) *DescribeBandwidthPackagesRequest { s.OwnerAccount = &v return s } func (s *DescribeBandwidthPackagesRequest) SetOwnerId(v int64) *DescribeBandwidthPackagesRequest { s.OwnerId = &v return s } func (s *DescribeBandwidthPackagesRequest) SetPageNumber(v int32) *DescribeBandwidthPackagesRequest { s.PageNumber = &v return s } func (s *DescribeBandwidthPackagesRequest) SetPageSize(v int32) *DescribeBandwidthPackagesRequest { s.PageSize = &v return s } func (s *DescribeBandwidthPackagesRequest) SetRegionId(v string) *DescribeBandwidthPackagesRequest { s.RegionId = &v return s } func (s *DescribeBandwidthPackagesRequest) SetResourceOwnerAccount(v string) *DescribeBandwidthPackagesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeBandwidthPackagesRequest) SetResourceOwnerId(v int64) *DescribeBandwidthPackagesRequest { s.ResourceOwnerId = &v return s } type DescribeBandwidthPackagesResponseBody struct { BandwidthPackages *DescribeBandwidthPackagesResponseBodyBandwidthPackages `json:"BandwidthPackages,omitempty" xml:"BandwidthPackages,omitempty" type:"Struct"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeBandwidthPackagesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeBandwidthPackagesResponseBody) GoString() string { return s.String() } func (s *DescribeBandwidthPackagesResponseBody) SetBandwidthPackages(v *DescribeBandwidthPackagesResponseBodyBandwidthPackages) *DescribeBandwidthPackagesResponseBody { s.BandwidthPackages = v return s } func (s *DescribeBandwidthPackagesResponseBody) SetPageNumber(v int32) *DescribeBandwidthPackagesResponseBody { s.PageNumber = &v return s } func (s *DescribeBandwidthPackagesResponseBody) SetPageSize(v int32) *DescribeBandwidthPackagesResponseBody { s.PageSize = &v return s } func (s *DescribeBandwidthPackagesResponseBody) SetRequestId(v string) *DescribeBandwidthPackagesResponseBody { s.RequestId = &v return s } func (s *DescribeBandwidthPackagesResponseBody) SetTotalCount(v int32) *DescribeBandwidthPackagesResponseBody { s.TotalCount = &v return s } type DescribeBandwidthPackagesResponseBodyBandwidthPackages struct { BandwidthPackage []*DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage `json:"BandwidthPackage,omitempty" xml:"BandwidthPackage,omitempty" type:"Repeated"` } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackages) String() string { return tea.Prettify(s) } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackages) GoString() string { return s.String() } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackages) SetBandwidthPackage(v []*DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) *DescribeBandwidthPackagesResponseBodyBandwidthPackages { s.BandwidthPackage = v return s } type DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage struct { Bandwidth *string `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" xml:"BandwidthPackageId,omitempty"` BusinessStatus *string `json:"BusinessStatus,omitempty" xml:"BusinessStatus,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` ISP *string `json:"ISP,omitempty" xml:"ISP,omitempty"` InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` IpCount *string `json:"IpCount,omitempty" xml:"IpCount,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` NatGatewayId *string `json:"NatGatewayId,omitempty" xml:"NatGatewayId,omitempty"` PublicIpAddresses *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddresses `json:"PublicIpAddresses,omitempty" xml:"PublicIpAddresses,omitempty" type:"Struct"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) String() string { return tea.Prettify(s) } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) GoString() string { return s.String() } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetBandwidth(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.Bandwidth = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetBandwidthPackageId(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.BandwidthPackageId = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetBusinessStatus(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.BusinessStatus = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetCreationTime(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.CreationTime = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetDescription(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.Description = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetISP(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.ISP = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetInstanceChargeType(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.InstanceChargeType = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetInternetChargeType(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.InternetChargeType = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetIpCount(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.IpCount = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetName(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.Name = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetNatGatewayId(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.NatGatewayId = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetPublicIpAddresses(v *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddresses) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.PublicIpAddresses = v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetRegionId(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.RegionId = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetStatus(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.Status = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage) SetZoneId(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackage { s.ZoneId = &v return s } type DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddresses struct { PublicIpAddresse []*DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse `json:"PublicIpAddresse,omitempty" xml:"PublicIpAddresse,omitempty" type:"Repeated"` } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddresses) String() string { return tea.Prettify(s) } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddresses) GoString() string { return s.String() } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddresses) SetPublicIpAddresse(v []*DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddresses { s.PublicIpAddresse = v return s } type DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse struct { AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse) String() string { return tea.Prettify(s) } func (s DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse) GoString() string { return s.String() } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse) SetAllocationId(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse { s.AllocationId = &v return s } func (s *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse) SetIpAddress(v string) *DescribeBandwidthPackagesResponseBodyBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse { s.IpAddress = &v return s } type DescribeBandwidthPackagesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeBandwidthPackagesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeBandwidthPackagesResponse) String() string { return tea.Prettify(s) } func (s DescribeBandwidthPackagesResponse) GoString() string { return s.String() } func (s *DescribeBandwidthPackagesResponse) SetHeaders(v map[string]*string) *DescribeBandwidthPackagesResponse { s.Headers = v return s } func (s *DescribeBandwidthPackagesResponse) SetStatusCode(v int32) *DescribeBandwidthPackagesResponse { s.StatusCode = &v return s } func (s *DescribeBandwidthPackagesResponse) SetBody(v *DescribeBandwidthPackagesResponseBody) *DescribeBandwidthPackagesResponse { s.Body = v return s } type DescribeCapacityReservationInstancesRequest struct { PrivatePoolOptions *DescribeCapacityReservationInstancesRequestPrivatePoolOptions `json:"PrivatePoolOptions,omitempty" xml:"PrivatePoolOptions,omitempty" type:"Struct"` // The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The ID of the capacity reservation. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of entries per page. // // Maximum value: 100. // // Default value: 10. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeCapacityReservationInstancesRequest) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationInstancesRequest) GoString() string { return s.String() } func (s *DescribeCapacityReservationInstancesRequest) SetPrivatePoolOptions(v *DescribeCapacityReservationInstancesRequestPrivatePoolOptions) *DescribeCapacityReservationInstancesRequest { s.PrivatePoolOptions = v return s } func (s *DescribeCapacityReservationInstancesRequest) SetMaxResults(v int32) *DescribeCapacityReservationInstancesRequest { s.MaxResults = &v return s } func (s *DescribeCapacityReservationInstancesRequest) SetNextToken(v string) *DescribeCapacityReservationInstancesRequest { s.NextToken = &v return s } func (s *DescribeCapacityReservationInstancesRequest) SetOwnerAccount(v string) *DescribeCapacityReservationInstancesRequest { s.OwnerAccount = &v return s } func (s *DescribeCapacityReservationInstancesRequest) SetOwnerId(v int64) *DescribeCapacityReservationInstancesRequest { s.OwnerId = &v return s } func (s *DescribeCapacityReservationInstancesRequest) SetRegionId(v string) *DescribeCapacityReservationInstancesRequest { s.RegionId = &v return s } func (s *DescribeCapacityReservationInstancesRequest) SetResourceOwnerAccount(v string) *DescribeCapacityReservationInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeCapacityReservationInstancesRequest) SetResourceOwnerId(v int64) *DescribeCapacityReservationInstancesRequest { s.ResourceOwnerId = &v return s } type DescribeCapacityReservationInstancesRequestPrivatePoolOptions struct { // The token used to start the next query. Id *string `json:"Id,omitempty" xml:"Id,omitempty"` } func (s DescribeCapacityReservationInstancesRequestPrivatePoolOptions) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationInstancesRequestPrivatePoolOptions) GoString() string { return s.String() } func (s *DescribeCapacityReservationInstancesRequestPrivatePoolOptions) SetId(v string) *DescribeCapacityReservationInstancesRequestPrivatePoolOptions { s.Id = &v return s } type DescribeCapacityReservationInstancesResponseBody struct { // The instance ID. CapacityReservationItem *DescribeCapacityReservationInstancesResponseBodyCapacityReservationItem `json:"CapacityReservationItem,omitempty" xml:"CapacityReservationItem,omitempty" type:"Struct"` // Details about the instances that match the capacity reservation. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The request ID. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The total number of entries returned. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The maximum number of entries returned per page. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeCapacityReservationInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationInstancesResponseBody) GoString() string { return s.String() } func (s *DescribeCapacityReservationInstancesResponseBody) SetCapacityReservationItem(v *DescribeCapacityReservationInstancesResponseBodyCapacityReservationItem) *DescribeCapacityReservationInstancesResponseBody { s.CapacityReservationItem = v return s } func (s *DescribeCapacityReservationInstancesResponseBody) SetMaxResults(v int32) *DescribeCapacityReservationInstancesResponseBody { s.MaxResults = &v return s } func (s *DescribeCapacityReservationInstancesResponseBody) SetNextToken(v string) *DescribeCapacityReservationInstancesResponseBody { s.NextToken = &v return s } func (s *DescribeCapacityReservationInstancesResponseBody) SetRequestId(v string) *DescribeCapacityReservationInstancesResponseBody { s.RequestId = &v return s } func (s *DescribeCapacityReservationInstancesResponseBody) SetTotalCount(v int32) *DescribeCapacityReservationInstancesResponseBody { s.TotalCount = &v return s } type DescribeCapacityReservationInstancesResponseBodyCapacityReservationItem struct { InstanceIdSet []*DescribeCapacityReservationInstancesResponseBodyCapacityReservationItemInstanceIdSet `json:"InstanceIdSet,omitempty" xml:"InstanceIdSet,omitempty" type:"Repeated"` } func (s DescribeCapacityReservationInstancesResponseBodyCapacityReservationItem) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationInstancesResponseBodyCapacityReservationItem) GoString() string { return s.String() } func (s *DescribeCapacityReservationInstancesResponseBodyCapacityReservationItem) SetInstanceIdSet(v []*DescribeCapacityReservationInstancesResponseBodyCapacityReservationItemInstanceIdSet) *DescribeCapacityReservationInstancesResponseBodyCapacityReservationItem { s.InstanceIdSet = v return s } type DescribeCapacityReservationInstancesResponseBodyCapacityReservationItemInstanceIdSet struct { InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` } func (s DescribeCapacityReservationInstancesResponseBodyCapacityReservationItemInstanceIdSet) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationInstancesResponseBodyCapacityReservationItemInstanceIdSet) GoString() string { return s.String() } func (s *DescribeCapacityReservationInstancesResponseBodyCapacityReservationItemInstanceIdSet) SetInstanceId(v string) *DescribeCapacityReservationInstancesResponseBodyCapacityReservationItemInstanceIdSet { s.InstanceId = &v return s } type DescribeCapacityReservationInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeCapacityReservationInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeCapacityReservationInstancesResponse) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationInstancesResponse) GoString() string { return s.String() } func (s *DescribeCapacityReservationInstancesResponse) SetHeaders(v map[string]*string) *DescribeCapacityReservationInstancesResponse { s.Headers = v return s } func (s *DescribeCapacityReservationInstancesResponse) SetStatusCode(v int32) *DescribeCapacityReservationInstancesResponse { s.StatusCode = &v return s } func (s *DescribeCapacityReservationInstancesResponse) SetBody(v *DescribeCapacityReservationInstancesResponseBody) *DescribeCapacityReservationInstancesResponse { s.Body = v return s } type DescribeCapacityReservationsRequest struct { PrivatePoolOptions *DescribeCapacityReservationsRequestPrivatePoolOptions `json:"PrivatePoolOptions,omitempty" xml:"PrivatePoolOptions,omitempty" type:"Struct"` // The billing method of the instance. Valid values: // // * PostPaid: pay-as-you-go. // * PrePaid: subscription. // // Default value: PostPaid. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The number of entries per page. // // Valid values: 1 to 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of the NextToken parameter. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The operating system of the instance. Valid values: // // * windows: Windows operating systems. // * linux: Linux operating systems. // * all: all operating system types. // // Default value: all. Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The region ID of the capacity reservation. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the capacity reservation belongs. If you specify this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of whether you specify this parameter. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The state of the capacity reservation. Valid values: // // * All: All states. // * Pending: The capacity reservation is being initialized. Scheduled capacity reservations enter the Pending state after they are created. // * Preparing: The capacity reservation is being prepared. Scheduled capacity reservations are in the Preparing state while resources are being provisioned. // * Prepared: The capacity reservation is to take effect. After resources are provisioned, scheduled capacity reservations remain in the Prepared state until they take effect. // * Active: The capacity reservation is in effect. // * Released: The capacity reservation has been released manually or automatically when it expired. // // Default value: Active. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags. Tag []*DescribeCapacityReservationsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The zone ID of the capacity reservation. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeCapacityReservationsRequest) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsRequest) GoString() string { return s.String() } func (s *DescribeCapacityReservationsRequest) SetPrivatePoolOptions(v *DescribeCapacityReservationsRequestPrivatePoolOptions) *DescribeCapacityReservationsRequest { s.PrivatePoolOptions = v return s } func (s *DescribeCapacityReservationsRequest) SetInstanceChargeType(v string) *DescribeCapacityReservationsRequest { s.InstanceChargeType = &v return s } func (s *DescribeCapacityReservationsRequest) SetInstanceType(v string) *DescribeCapacityReservationsRequest { s.InstanceType = &v return s } func (s *DescribeCapacityReservationsRequest) SetMaxResults(v int32) *DescribeCapacityReservationsRequest { s.MaxResults = &v return s } func (s *DescribeCapacityReservationsRequest) SetNextToken(v string) *DescribeCapacityReservationsRequest { s.NextToken = &v return s } func (s *DescribeCapacityReservationsRequest) SetOwnerAccount(v string) *DescribeCapacityReservationsRequest { s.OwnerAccount = &v return s } func (s *DescribeCapacityReservationsRequest) SetOwnerId(v int64) *DescribeCapacityReservationsRequest { s.OwnerId = &v return s } func (s *DescribeCapacityReservationsRequest) SetPlatform(v string) *DescribeCapacityReservationsRequest { s.Platform = &v return s } func (s *DescribeCapacityReservationsRequest) SetRegionId(v string) *DescribeCapacityReservationsRequest { s.RegionId = &v return s } func (s *DescribeCapacityReservationsRequest) SetResourceGroupId(v string) *DescribeCapacityReservationsRequest { s.ResourceGroupId = &v return s } func (s *DescribeCapacityReservationsRequest) SetResourceOwnerAccount(v string) *DescribeCapacityReservationsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeCapacityReservationsRequest) SetResourceOwnerId(v int64) *DescribeCapacityReservationsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeCapacityReservationsRequest) SetStatus(v string) *DescribeCapacityReservationsRequest { s.Status = &v return s } func (s *DescribeCapacityReservationsRequest) SetTag(v []*DescribeCapacityReservationsRequestTag) *DescribeCapacityReservationsRequest { s.Tag = v return s } func (s *DescribeCapacityReservationsRequest) SetZoneId(v string) *DescribeCapacityReservationsRequest { s.ZoneId = &v return s } type DescribeCapacityReservationsRequestPrivatePoolOptions struct { // The IDs of capacity reservations. The value can be a JSON array that consists of up to 100 capacity reservation IDs. Separate the IDs with commas (,). Ids *string `json:"Ids,omitempty" xml:"Ids,omitempty"` } func (s DescribeCapacityReservationsRequestPrivatePoolOptions) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsRequestPrivatePoolOptions) GoString() string { return s.String() } func (s *DescribeCapacityReservationsRequestPrivatePoolOptions) SetIds(v string) *DescribeCapacityReservationsRequestPrivatePoolOptions { s.Ids = &v return s } type DescribeCapacityReservationsRequestTag struct { // The key of tag N. Valid values of N: 1 to 20. // // If you specify a single tag to query resources, up to 1,000 resources with this tag are returned in the response. If you specify multiple tags to query resources, up to 1,000 resources with all these tags are returned in the response. To query more than 1,000 resources with the specified tags, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeCapacityReservationsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsRequestTag) GoString() string { return s.String() } func (s *DescribeCapacityReservationsRequestTag) SetKey(v string) *DescribeCapacityReservationsRequestTag { s.Key = &v return s } func (s *DescribeCapacityReservationsRequestTag) SetValue(v string) *DescribeCapacityReservationsRequestTag { s.Value = &v return s } type DescribeCapacityReservationsResponseBody struct { // Details of the capacity reservations. CapacityReservationSet *DescribeCapacityReservationsResponseBodyCapacityReservationSet `json:"CapacityReservationSet,omitempty" xml:"CapacityReservationSet,omitempty" type:"Struct"` // The maximum number of entries returned per page. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // A pagination token. It can be used in the next request to retrieve a new page of results.If NextToken is empty, no next page exists. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeCapacityReservationsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBody) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBody) SetCapacityReservationSet(v *DescribeCapacityReservationsResponseBodyCapacityReservationSet) *DescribeCapacityReservationsResponseBody { s.CapacityReservationSet = v return s } func (s *DescribeCapacityReservationsResponseBody) SetMaxResults(v int32) *DescribeCapacityReservationsResponseBody { s.MaxResults = &v return s } func (s *DescribeCapacityReservationsResponseBody) SetNextToken(v string) *DescribeCapacityReservationsResponseBody { s.NextToken = &v return s } func (s *DescribeCapacityReservationsResponseBody) SetRequestId(v string) *DescribeCapacityReservationsResponseBody { s.RequestId = &v return s } func (s *DescribeCapacityReservationsResponseBody) SetTotalCount(v int32) *DescribeCapacityReservationsResponseBody { s.TotalCount = &v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSet struct { CapacityReservationItem []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem `json:"CapacityReservationItem,omitempty" xml:"CapacityReservationItem,omitempty" type:"Repeated"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSet) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSet) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSet) SetCapacityReservationItem(v []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) *DescribeCapacityReservationsResponseBodyCapacityReservationSet { s.CapacityReservationItem = v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem struct { // Details of the allocated resources. AllocatedResources *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources `json:"AllocatedResources,omitempty" xml:"AllocatedResources,omitempty" type:"Struct"` // The ID of the capacity reservation owner. CapacityReservationOwnerId *string `json:"CapacityReservationOwnerId,omitempty" xml:"CapacityReservationOwnerId,omitempty"` // The description of the capacity reservation. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The time when the capacity reservation expires. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The release mode of the capacity reservation. Valid values: // // * Limited: The capacity reservation is automatically released at a specified time. // * Unlimited: The capacity reservation is manually released. You can release the capacity reservation anytime. EndTimeType *string `json:"EndTimeType,omitempty" xml:"EndTimeType,omitempty"` // The billing method of the instances created by using the capacity reservation. Valid values: // // * PostPaid: pay-as-you-go. // * PrePaid: subscription. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The operating system type of the instances created by using the capacity reservation. Valid values: // // * windows // * linux Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The ID of the capacity reservation. PrivatePoolOptionsId *string `json:"PrivatePoolOptionsId,omitempty" xml:"PrivatePoolOptionsId,omitempty"` // The type of the private pool generated after the capacity reservation takes effect. Valid values: // // * Open: open private pool. // * Target: targeted private pool. PrivatePoolOptionsMatchCriteria *string `json:"PrivatePoolOptionsMatchCriteria,omitempty" xml:"PrivatePoolOptionsMatchCriteria,omitempty"` // The name of the capacity reservation. PrivatePoolOptionsName *string `json:"PrivatePoolOptionsName,omitempty" xml:"PrivatePoolOptionsName,omitempty"` // The region ID of the capacity reservation. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the reserved instance used with the capacity reservation. ReservedInstanceId *string `json:"ReservedInstanceId,omitempty" xml:"ReservedInstanceId,omitempty"` // The ID of the resource group to which the capacity reservation belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The ID of the savings plan used with the capacity reservation. SavingPlanId *string `json:"SavingPlanId,omitempty" xml:"SavingPlanId,omitempty"` // The time when the capacity reservation takes effect. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The mode in which the capacity reservation takes effect. Valid values: // // * Now: The capacity reservation takes effect immediately after it is created. // * Later: The capacity reservation takes effect at a specified time. StartTimeType *string `json:"StartTimeType,omitempty" xml:"StartTimeType,omitempty"` // The status of the capacity reservation. Valid values: // // * Pending: The capacity reservation is being initialized. // * Preparing: The capacity reservation is being prepared. // * Prepared: The capacity reservation is to take effect. // * Active: The capacity reservation is in effect. // * Released: The capacity reservation has been released manually or automatically when it expired. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags that are added to the capacity reservation. Tags *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // > This parameter is in invitational preview and is not publicly available. TimeSlot *string `json:"TimeSlot,omitempty" xml:"TimeSlot,omitempty"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetAllocatedResources(v *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.AllocatedResources = v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetCapacityReservationOwnerId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.CapacityReservationOwnerId = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetDescription(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.Description = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetEndTime(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.EndTime = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetEndTimeType(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.EndTimeType = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetInstanceChargeType(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.InstanceChargeType = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetPlatform(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.Platform = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetPrivatePoolOptionsId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.PrivatePoolOptionsId = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetPrivatePoolOptionsMatchCriteria(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.PrivatePoolOptionsMatchCriteria = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetPrivatePoolOptionsName(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.PrivatePoolOptionsName = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetRegionId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.RegionId = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetReservedInstanceId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.ReservedInstanceId = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetResourceGroupId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.ResourceGroupId = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetSavingPlanId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.SavingPlanId = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetStartTime(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.StartTime = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetStartTimeType(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.StartTimeType = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetStatus(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.Status = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetTags(v *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.Tags = v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem) SetTimeSlot(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItem { s.TimeSlot = &v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources struct { AllocatedResource []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource `json:"AllocatedResource,omitempty" xml:"AllocatedResource,omitempty" type:"Repeated"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources) SetAllocatedResource(v []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResources { s.AllocatedResource = v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource struct { // The number of available instances. AvailableAmount *int32 `json:"AvailableAmount,omitempty" xml:"AvailableAmount,omitempty"` // Details of instance usage. CapacityReservationUsages *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages `json:"CapacityReservationUsages,omitempty" xml:"CapacityReservationUsages,omitempty" type:"Struct"` // The instance type of the instances. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The total number of instances for which the capacity of an instance type is reserved. TotalAmount *int32 `json:"TotalAmount,omitempty" xml:"TotalAmount,omitempty"` // The number of instances that have used the capacity reservation. UsedAmount *int32 `json:"UsedAmount,omitempty" xml:"UsedAmount,omitempty"` // The zone ID. ZoneId *string `json:"zoneId,omitempty" xml:"zoneId,omitempty"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) SetAvailableAmount(v int32) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource { s.AvailableAmount = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) SetCapacityReservationUsages(v *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource { s.CapacityReservationUsages = v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) SetInstanceType(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource { s.InstanceType = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) SetTotalAmount(v int32) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource { s.TotalAmount = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) SetUsedAmount(v int32) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource { s.UsedAmount = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource) SetZoneId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResource { s.ZoneId = &v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages struct { CapacityReservationUsage []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage `json:"CapacityReservationUsage,omitempty" xml:"CapacityReservationUsage,omitempty" type:"Repeated"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages) SetCapacityReservationUsage(v []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages { s.CapacityReservationUsage = v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage struct { // The ID of the Alibaba Cloud account. AccountId *string `json:"AccountId,omitempty" xml:"AccountId,omitempty"` // The name of the Alibaba Cloud service. ServiceName *string `json:"ServiceName,omitempty" xml:"ServiceName,omitempty"` // The number of instances that are used by the Alibaba Cloud account or service. UsedAmount *int32 `json:"UsedAmount,omitempty" xml:"UsedAmount,omitempty"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage) SetAccountId(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage { s.AccountId = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage) SetServiceName(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage { s.ServiceName = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage) SetUsedAmount(v int32) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsagesCapacityReservationUsage { s.UsedAmount = &v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags struct { Tag []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags) SetTag(v []*DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTags { s.Tag = v return s } type DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag struct { // The tag key. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag) SetTagKey(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag { s.TagKey = &v return s } func (s *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag) SetTagValue(v string) *DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemTagsTag { s.TagValue = &v return s } type DescribeCapacityReservationsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeCapacityReservationsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeCapacityReservationsResponse) String() string { return tea.Prettify(s) } func (s DescribeCapacityReservationsResponse) GoString() string { return s.String() } func (s *DescribeCapacityReservationsResponse) SetHeaders(v map[string]*string) *DescribeCapacityReservationsResponse { s.Headers = v return s } func (s *DescribeCapacityReservationsResponse) SetStatusCode(v int32) *DescribeCapacityReservationsResponse { s.StatusCode = &v return s } func (s *DescribeCapacityReservationsResponse) SetBody(v *DescribeCapacityReservationsResponseBody) *DescribeCapacityReservationsResponse { s.Body = v return s } type DescribeClassicLinkInstancesRequest struct { // The instance ID. You can specify a maximum of 100 instance IDs in a single request. Separate the instance IDs with commas (,). InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. Pages start from page 1. // // Default value: 1. PageNumber *string `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 100. // // Default value: 10. PageSize *string `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the instances. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The VPC ID. The ClassicLink feature must be enabled for the specified VPC. For more information, see [Establish a ClassicLink connection](~~65413~~). VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeClassicLinkInstancesRequest) String() string { return tea.Prettify(s) } func (s DescribeClassicLinkInstancesRequest) GoString() string { return s.String() } func (s *DescribeClassicLinkInstancesRequest) SetInstanceId(v string) *DescribeClassicLinkInstancesRequest { s.InstanceId = &v return s } func (s *DescribeClassicLinkInstancesRequest) SetOwnerId(v int64) *DescribeClassicLinkInstancesRequest { s.OwnerId = &v return s } func (s *DescribeClassicLinkInstancesRequest) SetPageNumber(v string) *DescribeClassicLinkInstancesRequest { s.PageNumber = &v return s } func (s *DescribeClassicLinkInstancesRequest) SetPageSize(v string) *DescribeClassicLinkInstancesRequest { s.PageSize = &v return s } func (s *DescribeClassicLinkInstancesRequest) SetRegionId(v string) *DescribeClassicLinkInstancesRequest { s.RegionId = &v return s } func (s *DescribeClassicLinkInstancesRequest) SetResourceOwnerAccount(v string) *DescribeClassicLinkInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeClassicLinkInstancesRequest) SetResourceOwnerId(v int64) *DescribeClassicLinkInstancesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeClassicLinkInstancesRequest) SetVpcId(v string) *DescribeClassicLinkInstancesRequest { s.VpcId = &v return s } type DescribeClassicLinkInstancesResponseBody struct { // The details of the ClassicLink connections between the instances reside in the classic network and VPCs. Links *DescribeClassicLinkInstancesResponseBodyLinks `json:"Links,omitempty" xml:"Links,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of ClassicLink connections. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeClassicLinkInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeClassicLinkInstancesResponseBody) GoString() string { return s.String() } func (s *DescribeClassicLinkInstancesResponseBody) SetLinks(v *DescribeClassicLinkInstancesResponseBodyLinks) *DescribeClassicLinkInstancesResponseBody { s.Links = v return s } func (s *DescribeClassicLinkInstancesResponseBody) SetPageNumber(v int32) *DescribeClassicLinkInstancesResponseBody { s.PageNumber = &v return s } func (s *DescribeClassicLinkInstancesResponseBody) SetPageSize(v int32) *DescribeClassicLinkInstancesResponseBody { s.PageSize = &v return s } func (s *DescribeClassicLinkInstancesResponseBody) SetRequestId(v string) *DescribeClassicLinkInstancesResponseBody { s.RequestId = &v return s } func (s *DescribeClassicLinkInstancesResponseBody) SetTotalCount(v int32) *DescribeClassicLinkInstancesResponseBody { s.TotalCount = &v return s } type DescribeClassicLinkInstancesResponseBodyLinks struct { Link []*DescribeClassicLinkInstancesResponseBodyLinksLink `json:"Link,omitempty" xml:"Link,omitempty" type:"Repeated"` } func (s DescribeClassicLinkInstancesResponseBodyLinks) String() string { return tea.Prettify(s) } func (s DescribeClassicLinkInstancesResponseBodyLinks) GoString() string { return s.String() } func (s *DescribeClassicLinkInstancesResponseBodyLinks) SetLink(v []*DescribeClassicLinkInstancesResponseBodyLinksLink) *DescribeClassicLinkInstancesResponseBodyLinks { s.Link = v return s } type DescribeClassicLinkInstancesResponseBodyLinksLink struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The VPC ID. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeClassicLinkInstancesResponseBodyLinksLink) String() string { return tea.Prettify(s) } func (s DescribeClassicLinkInstancesResponseBodyLinksLink) GoString() string { return s.String() } func (s *DescribeClassicLinkInstancesResponseBodyLinksLink) SetInstanceId(v string) *DescribeClassicLinkInstancesResponseBodyLinksLink { s.InstanceId = &v return s } func (s *DescribeClassicLinkInstancesResponseBodyLinksLink) SetVpcId(v string) *DescribeClassicLinkInstancesResponseBodyLinksLink { s.VpcId = &v return s } type DescribeClassicLinkInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeClassicLinkInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeClassicLinkInstancesResponse) String() string { return tea.Prettify(s) } func (s DescribeClassicLinkInstancesResponse) GoString() string { return s.String() } func (s *DescribeClassicLinkInstancesResponse) SetHeaders(v map[string]*string) *DescribeClassicLinkInstancesResponse { s.Headers = v return s } func (s *DescribeClassicLinkInstancesResponse) SetStatusCode(v int32) *DescribeClassicLinkInstancesResponse { s.StatusCode = &v return s } func (s *DescribeClassicLinkInstancesResponse) SetBody(v *DescribeClassicLinkInstancesResponseBody) *DescribeClassicLinkInstancesResponse { s.Body = v return s } type DescribeCloudAssistantSettingsRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The Cloud Assistant features. SettingType []*string `json:"SettingType,omitempty" xml:"SettingType,omitempty" type:"Repeated"` } func (s DescribeCloudAssistantSettingsRequest) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsRequest) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsRequest) SetOwnerAccount(v string) *DescribeCloudAssistantSettingsRequest { s.OwnerAccount = &v return s } func (s *DescribeCloudAssistantSettingsRequest) SetOwnerId(v int64) *DescribeCloudAssistantSettingsRequest { s.OwnerId = &v return s } func (s *DescribeCloudAssistantSettingsRequest) SetRegionId(v string) *DescribeCloudAssistantSettingsRequest { s.RegionId = &v return s } func (s *DescribeCloudAssistantSettingsRequest) SetResourceOwnerAccount(v string) *DescribeCloudAssistantSettingsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeCloudAssistantSettingsRequest) SetResourceOwnerId(v int64) *DescribeCloudAssistantSettingsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeCloudAssistantSettingsRequest) SetSettingType(v []*string) *DescribeCloudAssistantSettingsRequest { s.SettingType = v return s } type DescribeCloudAssistantSettingsResponseBody struct { // The configurations for upgrading Cloud Assistant Agent. AgentUpgradeConfig *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig `json:"AgentUpgradeConfig,omitempty" xml:"AgentUpgradeConfig,omitempty" type:"Struct"` // The configurations for delivering items to Object Storage Service (OSS). OssDeliveryConfigs *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs `json:"OssDeliveryConfigs,omitempty" xml:"OssDeliveryConfigs,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The configurations for delivering items to Simple Log Service. SlsDeliveryConfigs *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs `json:"SlsDeliveryConfigs,omitempty" xml:"SlsDeliveryConfigs,omitempty" type:"Struct"` } func (s DescribeCloudAssistantSettingsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponseBody) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponseBody) SetAgentUpgradeConfig(v *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig) *DescribeCloudAssistantSettingsResponseBody { s.AgentUpgradeConfig = v return s } func (s *DescribeCloudAssistantSettingsResponseBody) SetOssDeliveryConfigs(v *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs) *DescribeCloudAssistantSettingsResponseBody { s.OssDeliveryConfigs = v return s } func (s *DescribeCloudAssistantSettingsResponseBody) SetRequestId(v string) *DescribeCloudAssistantSettingsResponseBody { s.RequestId = &v return s } func (s *DescribeCloudAssistantSettingsResponseBody) SetSlsDeliveryConfigs(v *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs) *DescribeCloudAssistantSettingsResponseBody { s.SlsDeliveryConfigs = v return s } type DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig struct { // The time windows during which Cloud Assistant Agent can be upgraded. AllowedUpgradeWindows *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgradeWindows `json:"AllowedUpgradeWindows,omitempty" xml:"AllowedUpgradeWindows,omitempty" type:"Struct"` // Indicates whether custom upgrade is enabled for Cloud Assistant Agent. If the value is false or empty, an upgrade attempt is performed for Cloud Assistant Agent every 30 minutes. Enabled *bool `json:"Enabled,omitempty" xml:"Enabled,omitempty"` // The time zone of the time window. TimeZone *string `json:"TimeZone,omitempty" xml:"TimeZone,omitempty"` } func (s DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig) SetAllowedUpgradeWindows(v *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgradeWindows) *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig { s.AllowedUpgradeWindows = v return s } func (s *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig) SetEnabled(v bool) *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig { s.Enabled = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig) SetTimeZone(v string) *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfig { s.TimeZone = &v return s } type DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgradeWindows struct { AllowedUpgradeWindow []*string `json:"AllowedUpgradeWindow,omitempty" xml:"AllowedUpgradeWindow,omitempty" type:"Repeated"` } func (s DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgradeWindows) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgradeWindows) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgradeWindows) SetAllowedUpgradeWindow(v []*string) *DescribeCloudAssistantSettingsResponseBodyAgentUpgradeConfigAllowedUpgradeWindows { s.AllowedUpgradeWindow = v return s } type DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs struct { OssDeliveryConfig []*DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig `json:"OssDeliveryConfig,omitempty" xml:"OssDeliveryConfig,omitempty" type:"Repeated"` } func (s DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs) SetOssDeliveryConfig(v []*DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs { s.OssDeliveryConfig = v return s } type DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig struct { // The name of the OSS bucket. BucketName *string `json:"BucketName,omitempty" xml:"BucketName,omitempty"` // The type of items to be delivered. Valid values: // // * SessionManager: session records // * Invocation: task execution records DeliveryType *string `json:"DeliveryType,omitempty" xml:"DeliveryType,omitempty"` // Indicates whether to deliver the specified items to OSS. Enabled *bool `json:"Enabled,omitempty" xml:"Enabled,omitempty"` // The OSS encryption algorithm. Valid values: // // * AES256 // * SM4 EncryptionAlgorithm *string `json:"EncryptionAlgorithm,omitempty" xml:"EncryptionAlgorithm,omitempty"` // The ID of the customer master key (CMK) when EncryptionType is KMS. EncryptionKeyId *string `json:"EncryptionKeyId,omitempty" xml:"EncryptionKeyId,omitempty"` // The OSS encryption method. Valid values: // // * Inherit: the encryption method used by the specified bucket. // * OssManaged: server-side encryption by using OSS-managed keys (SSE-OSS). // * KMS: server-side encryption by using Key Management Service managed keys (SSE-KMS). EncryptionType *string `json:"EncryptionType,omitempty" xml:"EncryptionType,omitempty"` // The prefix of the OSS bucket directory. Prefix *string `json:"Prefix,omitempty" xml:"Prefix,omitempty"` } func (s DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) SetBucketName(v string) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig { s.BucketName = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) SetDeliveryType(v string) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig { s.DeliveryType = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) SetEnabled(v bool) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig { s.Enabled = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) SetEncryptionAlgorithm(v string) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig { s.EncryptionAlgorithm = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) SetEncryptionKeyId(v string) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig { s.EncryptionKeyId = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) SetEncryptionType(v string) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig { s.EncryptionType = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig) SetPrefix(v string) *DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigsOssDeliveryConfig { s.Prefix = &v return s } type DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs struct { SlsDeliveryConfig []*DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig `json:"SlsDeliveryConfig,omitempty" xml:"SlsDeliveryConfig,omitempty" type:"Repeated"` } func (s DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs) SetSlsDeliveryConfig(v []*DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig) *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigs { s.SlsDeliveryConfig = v return s } type DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig struct { // The type of items to be delivered. Valid values: // // * SessionManager: session records // * Invocation: task execution records DeliveryType *string `json:"DeliveryType,omitempty" xml:"DeliveryType,omitempty"` // Indicates whether to deliver the specified items to Simple Log Service. Enabled *bool `json:"Enabled,omitempty" xml:"Enabled,omitempty"` // The name of the Logstore. LogstoreName *string `json:"LogstoreName,omitempty" xml:"LogstoreName,omitempty"` // The name of the Simple Log Service project. ProjectName *string `json:"ProjectName,omitempty" xml:"ProjectName,omitempty"` } func (s DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig) SetDeliveryType(v string) *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig { s.DeliveryType = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig) SetEnabled(v bool) *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig { s.Enabled = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig) SetLogstoreName(v string) *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig { s.LogstoreName = &v return s } func (s *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig) SetProjectName(v string) *DescribeCloudAssistantSettingsResponseBodySlsDeliveryConfigsSlsDeliveryConfig { s.ProjectName = &v return s } type DescribeCloudAssistantSettingsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeCloudAssistantSettingsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeCloudAssistantSettingsResponse) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantSettingsResponse) GoString() string { return s.String() } func (s *DescribeCloudAssistantSettingsResponse) SetHeaders(v map[string]*string) *DescribeCloudAssistantSettingsResponse { s.Headers = v return s } func (s *DescribeCloudAssistantSettingsResponse) SetStatusCode(v int32) *DescribeCloudAssistantSettingsResponse { s.StatusCode = &v return s } func (s *DescribeCloudAssistantSettingsResponse) SetBody(v *DescribeCloudAssistantSettingsResponseBody) *DescribeCloudAssistantSettingsResponse { s.Body = v return s } type DescribeCloudAssistantStatusRequest struct { // The instance ID. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` // The maximum number of entries per page. If you specify InstanceId, this parameter does not take effect. // // Valid values: 1 to 50. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The operating system type of the instance. Valid values: // // * Windows // * Linux // * FreeBSD OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. If you specify **InstanceId**, this parameter does not take effect. Valid values: 1 to 50. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the instance. You can call [DescribeRegions](~~25609~~) to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeCloudAssistantStatusRequest) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantStatusRequest) GoString() string { return s.String() } func (s *DescribeCloudAssistantStatusRequest) SetInstanceId(v []*string) *DescribeCloudAssistantStatusRequest { s.InstanceId = v return s } func (s *DescribeCloudAssistantStatusRequest) SetMaxResults(v int32) *DescribeCloudAssistantStatusRequest { s.MaxResults = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetNextToken(v string) *DescribeCloudAssistantStatusRequest { s.NextToken = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetOSType(v string) *DescribeCloudAssistantStatusRequest { s.OSType = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetOwnerAccount(v string) *DescribeCloudAssistantStatusRequest { s.OwnerAccount = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetOwnerId(v int64) *DescribeCloudAssistantStatusRequest { s.OwnerId = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetPageNumber(v int64) *DescribeCloudAssistantStatusRequest { s.PageNumber = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetPageSize(v int64) *DescribeCloudAssistantStatusRequest { s.PageSize = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetRegionId(v string) *DescribeCloudAssistantStatusRequest { s.RegionId = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetResourceOwnerAccount(v string) *DescribeCloudAssistantStatusRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeCloudAssistantStatusRequest) SetResourceOwnerId(v int64) *DescribeCloudAssistantStatusRequest { s.ResourceOwnerId = &v return s } type DescribeCloudAssistantStatusResponseBody struct { // Details about the installation status of Cloud Assistant Agent on the instances. InstanceCloudAssistantStatusSet *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet `json:"InstanceCloudAssistantStatusSet,omitempty" xml:"InstanceCloudAssistantStatusSet,omitempty" type:"Struct"` // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of instances. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeCloudAssistantStatusResponseBody) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantStatusResponseBody) GoString() string { return s.String() } func (s *DescribeCloudAssistantStatusResponseBody) SetInstanceCloudAssistantStatusSet(v *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet) *DescribeCloudAssistantStatusResponseBody { s.InstanceCloudAssistantStatusSet = v return s } func (s *DescribeCloudAssistantStatusResponseBody) SetNextToken(v string) *DescribeCloudAssistantStatusResponseBody { s.NextToken = &v return s } func (s *DescribeCloudAssistantStatusResponseBody) SetPageNumber(v int64) *DescribeCloudAssistantStatusResponseBody { s.PageNumber = &v return s } func (s *DescribeCloudAssistantStatusResponseBody) SetPageSize(v int64) *DescribeCloudAssistantStatusResponseBody { s.PageSize = &v return s } func (s *DescribeCloudAssistantStatusResponseBody) SetRequestId(v string) *DescribeCloudAssistantStatusResponseBody { s.RequestId = &v return s } func (s *DescribeCloudAssistantStatusResponseBody) SetTotalCount(v int64) *DescribeCloudAssistantStatusResponseBody { s.TotalCount = &v return s } type DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet struct { InstanceCloudAssistantStatus []*DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus `json:"InstanceCloudAssistantStatus,omitempty" xml:"InstanceCloudAssistantStatus,omitempty" type:"Repeated"` } func (s DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet) GoString() string { return s.String() } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet) SetInstanceCloudAssistantStatus(v []*DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSet { s.InstanceCloudAssistantStatus = v return s } type DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus struct { // The number of tasks that were being run by Cloud Assistant on the instance. ActiveTaskCount *int64 `json:"ActiveTaskCount,omitempty" xml:"ActiveTaskCount,omitempty"` // Indicates whether Cloud Assistant is running on the instance. Valid values: // // * true: Heartbeats are detected within 2 minutes. // * false: Heartbeats are not detected within 2 minutes. CloudAssistantStatus *string `json:"CloudAssistantStatus,omitempty" xml:"CloudAssistantStatus,omitempty"` // The version number of Cloud Assistant Agent. This parameter is empty if Cloud Assistant Agent is not installed or is not running on the instance. CloudAssistantVersion *string `json:"CloudAssistantVersion,omitempty" xml:"CloudAssistantVersion,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The number of tasks that were completed by Cloud Assistant on the instance. InvocationCount *int64 `json:"InvocationCount,omitempty" xml:"InvocationCount,omitempty"` // The last heartbeat time of Cloud Assistant. The value is updated every minute on average. The interval can be 55, 60, or 65 seconds. LastHeartbeatTime *string `json:"LastHeartbeatTime,omitempty" xml:"LastHeartbeatTime,omitempty"` // The time when commands were last run. LastInvokedTime *string `json:"LastInvokedTime,omitempty" xml:"LastInvokedTime,omitempty"` // The operating system type of the instance. Valid values: // // * Windows // * Linux // * FreeBSD OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` // Indicates whether Cloud Assistant supports Session Manager on the instance. If Session Manager is not supported, the version of Cloud Assistant is outdated. Update Cloud Assistant Agent to the latest version. // // To support Session Manager, the Cloud Assistant version must be no earlier than the following ones: // // * Linux: 2.2.3.189 // * Windows: 2.1.3.189 SupportSessionManager *bool `json:"SupportSessionManager,omitempty" xml:"SupportSessionManager,omitempty"` } func (s DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) GoString() string { return s.String() } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetActiveTaskCount(v int64) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.ActiveTaskCount = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetCloudAssistantStatus(v string) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.CloudAssistantStatus = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetCloudAssistantVersion(v string) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.CloudAssistantVersion = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetInstanceId(v string) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.InstanceId = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetInvocationCount(v int64) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.InvocationCount = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetLastHeartbeatTime(v string) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.LastHeartbeatTime = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetLastInvokedTime(v string) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.LastInvokedTime = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetOSType(v string) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.OSType = &v return s } func (s *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus) SetSupportSessionManager(v bool) *DescribeCloudAssistantStatusResponseBodyInstanceCloudAssistantStatusSetInstanceCloudAssistantStatus { s.SupportSessionManager = &v return s } type DescribeCloudAssistantStatusResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeCloudAssistantStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeCloudAssistantStatusResponse) String() string { return tea.Prettify(s) } func (s DescribeCloudAssistantStatusResponse) GoString() string { return s.String() } func (s *DescribeCloudAssistantStatusResponse) SetHeaders(v map[string]*string) *DescribeCloudAssistantStatusResponse { s.Headers = v return s } func (s *DescribeCloudAssistantStatusResponse) SetStatusCode(v int32) *DescribeCloudAssistantStatusResponse { s.StatusCode = &v return s } func (s *DescribeCloudAssistantStatusResponse) SetBody(v *DescribeCloudAssistantStatusResponseBody) *DescribeCloudAssistantStatusResponse { s.Body = v return s } type DescribeClustersRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeClustersRequest) String() string { return tea.Prettify(s) } func (s DescribeClustersRequest) GoString() string { return s.String() } func (s *DescribeClustersRequest) SetOwnerAccount(v string) *DescribeClustersRequest { s.OwnerAccount = &v return s } func (s *DescribeClustersRequest) SetOwnerId(v int64) *DescribeClustersRequest { s.OwnerId = &v return s } func (s *DescribeClustersRequest) SetRegionId(v string) *DescribeClustersRequest { s.RegionId = &v return s } func (s *DescribeClustersRequest) SetResourceOwnerAccount(v string) *DescribeClustersRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeClustersRequest) SetResourceOwnerId(v int64) *DescribeClustersRequest { s.ResourceOwnerId = &v return s } type DescribeClustersResponseBody struct { Clusters *DescribeClustersResponseBodyClusters `json:"Clusters,omitempty" xml:"Clusters,omitempty" type:"Struct"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeClustersResponseBody) String() string { return tea.Prettify(s) } func (s DescribeClustersResponseBody) GoString() string { return s.String() } func (s *DescribeClustersResponseBody) SetClusters(v *DescribeClustersResponseBodyClusters) *DescribeClustersResponseBody { s.Clusters = v return s } func (s *DescribeClustersResponseBody) SetRequestId(v string) *DescribeClustersResponseBody { s.RequestId = &v return s } type DescribeClustersResponseBodyClusters struct { Cluster []*DescribeClustersResponseBodyClustersCluster `json:"Cluster,omitempty" xml:"Cluster,omitempty" type:"Repeated"` } func (s DescribeClustersResponseBodyClusters) String() string { return tea.Prettify(s) } func (s DescribeClustersResponseBodyClusters) GoString() string { return s.String() } func (s *DescribeClustersResponseBodyClusters) SetCluster(v []*DescribeClustersResponseBodyClustersCluster) *DescribeClustersResponseBodyClusters { s.Cluster = v return s } type DescribeClustersResponseBodyClustersCluster struct { ClusterId *string `json:"ClusterId,omitempty" xml:"ClusterId,omitempty"` } func (s DescribeClustersResponseBodyClustersCluster) String() string { return tea.Prettify(s) } func (s DescribeClustersResponseBodyClustersCluster) GoString() string { return s.String() } func (s *DescribeClustersResponseBodyClustersCluster) SetClusterId(v string) *DescribeClustersResponseBodyClustersCluster { s.ClusterId = &v return s } type DescribeClustersResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeClustersResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeClustersResponse) String() string { return tea.Prettify(s) } func (s DescribeClustersResponse) GoString() string { return s.String() } func (s *DescribeClustersResponse) SetHeaders(v map[string]*string) *DescribeClustersResponse { s.Headers = v return s } func (s *DescribeClustersResponse) SetStatusCode(v int32) *DescribeClustersResponse { s.StatusCode = &v return s } func (s *DescribeClustersResponse) SetBody(v *DescribeClustersResponseBody) *DescribeClustersResponse { s.Body = v return s } type DescribeCommandsRequest struct { // The ID of the command. CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The encoding mode of the `CommandContent` and `Output` values in the response. Valid values: // // * PlainText: returns the original command content and command output. // * Base64: returns the Base64-encoded command content and command output. // // Default value: Base64. ContentEncoding *string `json:"ContentEncoding,omitempty" xml:"ContentEncoding,omitempty"` // The description of the common command. This parameter takes effect and fuzzy search is supported by default only when `Provider` is specified. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Specifies whether to query only the latest version of common commands when common commands are queried. This parameter does not affect the query for private commands. // // * true: queries only the latest version of common commands. // * false: queries all versions of common commands. // // Default value: false. Latest *bool `json:"Latest,omitempty" xml:"Latest,omitempty"` // The maximum number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The name of the command. If you specify `Provider`, fuzzy search is supported by default. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The provider of the common command. Take note of the following items: // // * If you do not specify this parameter, all the commands that you created are queried. // // * If you set this parameter to `AlibabaCloud`, all the common commands provided by Alibaba Cloud are queried. // // * If you set this parameter to a specific provider, all the common commands provided by the provider are queried. Examples: // // * If you set `Provider` to AlibabaCloud.ECS.GuestOS, all the common commands provided by `AlibabaCloud.ECS.GuestOS` are queried. // * If you set `Provider` to AlibabaCloud.ECS.GuestOSDiagnose, all the common commands provided by `AlibabaCloud.ECS.GuestOSDiagnose` are queried. Provider *string `json:"Provider,omitempty" xml:"Provider,omitempty"` // The region ID of the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the command belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The list of tags. Tag []*DescribeCommandsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The type of the command. Valid values: // // * RunBatScript: batch command, applicable to Windows instances // * RunPowerShellScript: PowerShell command, applicable to Windows instances // * RunShellScript: shell command, applicable to Linux instances Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeCommandsRequest) String() string { return tea.Prettify(s) } func (s DescribeCommandsRequest) GoString() string { return s.String() } func (s *DescribeCommandsRequest) SetCommandId(v string) *DescribeCommandsRequest { s.CommandId = &v return s } func (s *DescribeCommandsRequest) SetContentEncoding(v string) *DescribeCommandsRequest { s.ContentEncoding = &v return s } func (s *DescribeCommandsRequest) SetDescription(v string) *DescribeCommandsRequest { s.Description = &v return s } func (s *DescribeCommandsRequest) SetLatest(v bool) *DescribeCommandsRequest { s.Latest = &v return s } func (s *DescribeCommandsRequest) SetMaxResults(v int32) *DescribeCommandsRequest { s.MaxResults = &v return s } func (s *DescribeCommandsRequest) SetName(v string) *DescribeCommandsRequest { s.Name = &v return s } func (s *DescribeCommandsRequest) SetNextToken(v string) *DescribeCommandsRequest { s.NextToken = &v return s } func (s *DescribeCommandsRequest) SetOwnerAccount(v string) *DescribeCommandsRequest { s.OwnerAccount = &v return s } func (s *DescribeCommandsRequest) SetOwnerId(v int64) *DescribeCommandsRequest { s.OwnerId = &v return s } func (s *DescribeCommandsRequest) SetPageNumber(v int64) *DescribeCommandsRequest { s.PageNumber = &v return s } func (s *DescribeCommandsRequest) SetPageSize(v int64) *DescribeCommandsRequest { s.PageSize = &v return s } func (s *DescribeCommandsRequest) SetProvider(v string) *DescribeCommandsRequest { s.Provider = &v return s } func (s *DescribeCommandsRequest) SetRegionId(v string) *DescribeCommandsRequest { s.RegionId = &v return s } func (s *DescribeCommandsRequest) SetResourceGroupId(v string) *DescribeCommandsRequest { s.ResourceGroupId = &v return s } func (s *DescribeCommandsRequest) SetResourceOwnerAccount(v string) *DescribeCommandsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeCommandsRequest) SetResourceOwnerId(v int64) *DescribeCommandsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeCommandsRequest) SetTag(v []*DescribeCommandsRequestTag) *DescribeCommandsRequest { s.Tag = v return s } func (s *DescribeCommandsRequest) SetType(v string) *DescribeCommandsRequest { s.Type = &v return s } type DescribeCommandsRequestTag struct { // The key of tag N of the command. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags, call the [ListTagResources](~~110425~~) operation. // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the command. Valid values of N: 1 to 20. The tag value can be an empty string. // // It can be up to 128 characters in length and cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeCommandsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeCommandsRequestTag) GoString() string { return s.String() } func (s *DescribeCommandsRequestTag) SetKey(v string) *DescribeCommandsRequestTag { s.Key = &v return s } func (s *DescribeCommandsRequestTag) SetValue(v string) *DescribeCommandsRequestTag { s.Value = &v return s } type DescribeCommandsResponseBody struct { // The queried commands. Commands *DescribeCommandsResponseBodyCommands `json:"Commands,omitempty" xml:"Commands,omitempty" type:"Struct"` // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of commands. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeCommandsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBody) GoString() string { return s.String() } func (s *DescribeCommandsResponseBody) SetCommands(v *DescribeCommandsResponseBodyCommands) *DescribeCommandsResponseBody { s.Commands = v return s } func (s *DescribeCommandsResponseBody) SetNextToken(v string) *DescribeCommandsResponseBody { s.NextToken = &v return s } func (s *DescribeCommandsResponseBody) SetPageNumber(v int64) *DescribeCommandsResponseBody { s.PageNumber = &v return s } func (s *DescribeCommandsResponseBody) SetPageSize(v int64) *DescribeCommandsResponseBody { s.PageSize = &v return s } func (s *DescribeCommandsResponseBody) SetRequestId(v string) *DescribeCommandsResponseBody { s.RequestId = &v return s } func (s *DescribeCommandsResponseBody) SetTotalCount(v int64) *DescribeCommandsResponseBody { s.TotalCount = &v return s } type DescribeCommandsResponseBodyCommands struct { Command []*DescribeCommandsResponseBodyCommandsCommand `json:"Command,omitempty" xml:"Command,omitempty" type:"Repeated"` } func (s DescribeCommandsResponseBodyCommands) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommands) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommands) SetCommand(v []*DescribeCommandsResponseBodyCommandsCommand) *DescribeCommandsResponseBodyCommands { s.Command = v return s } type DescribeCommandsResponseBodyCommandsCommand struct { // The category of the common command. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The Base64-encoded command content. // // * If you set ContentEncoding to PlainText, the original command content is returned. // * If you set ContentEncoding to Base64, the Base64-encoded command content is returned. CommandContent *string `json:"CommandContent,omitempty" xml:"CommandContent,omitempty"` // The ID of the command. CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The time when the command was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the command. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Indicates whether the custom parameter feature is enabled for the command. EnableParameter *bool `json:"EnableParameter,omitempty" xml:"EnableParameter,omitempty"` // The number of tasks created by using the command. InvokeTimes *int32 `json:"InvokeTimes,omitempty" xml:"InvokeTimes,omitempty"` // Indicates whether the common command is of the latest version. If multiple common commands from the same provider (`Provider`) belong to the same category and have the same name, these commands are different versions of the same command. This parameter is not returned for the Cloud Assistant commands that you created. Latest *bool `json:"Latest,omitempty" xml:"Latest,omitempty"` // The name of the command. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The custom parameters. ParameterDefinitions *DescribeCommandsResponseBodyCommandsCommandParameterDefinitions `json:"ParameterDefinitions,omitempty" xml:"ParameterDefinitions,omitempty" type:"Struct"` // The list of custom parameter names that are parsed from the command content specified when the command was being created. If the custom parameter feature is disabled, an empty list is returned. ParameterNames *DescribeCommandsResponseBodyCommandsCommandParameterNames `json:"ParameterNames,omitempty" xml:"ParameterNames,omitempty" type:"Struct"` // The provider of the common command. Provider *string `json:"Provider,omitempty" xml:"Provider,omitempty"` // The ID of the resource group to which the command belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The tags of the command. Tags *DescribeCommandsResponseBodyCommandsCommandTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The timeout period. Unit: seconds. Timeout *int64 `json:"Timeout,omitempty" xml:"Timeout,omitempty"` // The type of the command. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The version of the common command. If multiple common commands from the same provider (`Provider`) belong to the same category and have the same name, these commands are different versions of the same command. This parameter is not returned for the Cloud Assistant commands that you created. Version *int32 `json:"Version,omitempty" xml:"Version,omitempty"` // The execution path of the command. WorkingDir *string `json:"WorkingDir,omitempty" xml:"WorkingDir,omitempty"` } func (s DescribeCommandsResponseBodyCommandsCommand) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommandsCommand) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommandsCommand) SetCategory(v string) *DescribeCommandsResponseBodyCommandsCommand { s.Category = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetCommandContent(v string) *DescribeCommandsResponseBodyCommandsCommand { s.CommandContent = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetCommandId(v string) *DescribeCommandsResponseBodyCommandsCommand { s.CommandId = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetCreationTime(v string) *DescribeCommandsResponseBodyCommandsCommand { s.CreationTime = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetDescription(v string) *DescribeCommandsResponseBodyCommandsCommand { s.Description = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetEnableParameter(v bool) *DescribeCommandsResponseBodyCommandsCommand { s.EnableParameter = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetInvokeTimes(v int32) *DescribeCommandsResponseBodyCommandsCommand { s.InvokeTimes = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetLatest(v bool) *DescribeCommandsResponseBodyCommandsCommand { s.Latest = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetName(v string) *DescribeCommandsResponseBodyCommandsCommand { s.Name = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetParameterDefinitions(v *DescribeCommandsResponseBodyCommandsCommandParameterDefinitions) *DescribeCommandsResponseBodyCommandsCommand { s.ParameterDefinitions = v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetParameterNames(v *DescribeCommandsResponseBodyCommandsCommandParameterNames) *DescribeCommandsResponseBodyCommandsCommand { s.ParameterNames = v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetProvider(v string) *DescribeCommandsResponseBodyCommandsCommand { s.Provider = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetResourceGroupId(v string) *DescribeCommandsResponseBodyCommandsCommand { s.ResourceGroupId = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetTags(v *DescribeCommandsResponseBodyCommandsCommandTags) *DescribeCommandsResponseBodyCommandsCommand { s.Tags = v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetTimeout(v int64) *DescribeCommandsResponseBodyCommandsCommand { s.Timeout = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetType(v string) *DescribeCommandsResponseBodyCommandsCommand { s.Type = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetVersion(v int32) *DescribeCommandsResponseBodyCommandsCommand { s.Version = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommand) SetWorkingDir(v string) *DescribeCommandsResponseBodyCommandsCommand { s.WorkingDir = &v return s } type DescribeCommandsResponseBodyCommandsCommandParameterDefinitions struct { ParameterDefinition []*DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition `json:"ParameterDefinition,omitempty" xml:"ParameterDefinition,omitempty" type:"Repeated"` } func (s DescribeCommandsResponseBodyCommandsCommandParameterDefinitions) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommandsCommandParameterDefinitions) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommandsCommandParameterDefinitions) SetParameterDefinition(v []*DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) *DescribeCommandsResponseBodyCommandsCommandParameterDefinitions { s.ParameterDefinition = v return s } type DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition struct { // The default value of the custom parameter. DefaultValue *string `json:"DefaultValue,omitempty" xml:"DefaultValue,omitempty"` // The description of the custom parameter. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The name of the custom parameter. ParameterName *string `json:"ParameterName,omitempty" xml:"ParameterName,omitempty"` // The valid values of the custom parameter of the enumeration type. PossibleValues *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinitionPossibleValues `json:"PossibleValues,omitempty" xml:"PossibleValues,omitempty" type:"Struct"` // Indicates whether the custom parameter is required. // // * true // * false // // Default value: false. Required *bool `json:"Required,omitempty" xml:"Required,omitempty"` } func (s DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) SetDefaultValue(v string) *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition { s.DefaultValue = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) SetDescription(v string) *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition { s.Description = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) SetParameterName(v string) *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition { s.ParameterName = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) SetPossibleValues(v *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinitionPossibleValues) *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition { s.PossibleValues = v return s } func (s *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition) SetRequired(v bool) *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinition { s.Required = &v return s } type DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinitionPossibleValues struct { PossibleValue []*string `json:"PossibleValue,omitempty" xml:"PossibleValue,omitempty" type:"Repeated"` } func (s DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinitionPossibleValues) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinitionPossibleValues) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinitionPossibleValues) SetPossibleValue(v []*string) *DescribeCommandsResponseBodyCommandsCommandParameterDefinitionsParameterDefinitionPossibleValues { s.PossibleValue = v return s } type DescribeCommandsResponseBodyCommandsCommandParameterNames struct { ParameterName []*string `json:"ParameterName,omitempty" xml:"ParameterName,omitempty" type:"Repeated"` } func (s DescribeCommandsResponseBodyCommandsCommandParameterNames) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommandsCommandParameterNames) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommandsCommandParameterNames) SetParameterName(v []*string) *DescribeCommandsResponseBodyCommandsCommandParameterNames { s.ParameterName = v return s } type DescribeCommandsResponseBodyCommandsCommandTags struct { Tag []*DescribeCommandsResponseBodyCommandsCommandTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeCommandsResponseBodyCommandsCommandTags) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommandsCommandTags) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommandsCommandTags) SetTag(v []*DescribeCommandsResponseBodyCommandsCommandTagsTag) *DescribeCommandsResponseBodyCommandsCommandTags { s.Tag = v return s } type DescribeCommandsResponseBodyCommandsCommandTagsTag struct { // The tag key of the command. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the command. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeCommandsResponseBodyCommandsCommandTagsTag) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponseBodyCommandsCommandTagsTag) GoString() string { return s.String() } func (s *DescribeCommandsResponseBodyCommandsCommandTagsTag) SetTagKey(v string) *DescribeCommandsResponseBodyCommandsCommandTagsTag { s.TagKey = &v return s } func (s *DescribeCommandsResponseBodyCommandsCommandTagsTag) SetTagValue(v string) *DescribeCommandsResponseBodyCommandsCommandTagsTag { s.TagValue = &v return s } type DescribeCommandsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeCommandsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeCommandsResponse) String() string { return tea.Prettify(s) } func (s DescribeCommandsResponse) GoString() string { return s.String() } func (s *DescribeCommandsResponse) SetHeaders(v map[string]*string) *DescribeCommandsResponse { s.Headers = v return s } func (s *DescribeCommandsResponse) SetStatusCode(v int32) *DescribeCommandsResponse { s.StatusCode = &v return s } func (s *DescribeCommandsResponse) SetBody(v *DescribeCommandsResponseBody) *DescribeCommandsResponse { s.Body = v return s } type DescribeDedicatedHostAutoRenewRequest struct { // The region ID of the dedicated host. DedicatedHostIds *string `json:"DedicatedHostIds,omitempty" xml:"DedicatedHostIds,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the request. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeDedicatedHostAutoRenewRequest) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostAutoRenewRequest) GoString() string { return s.String() } func (s *DescribeDedicatedHostAutoRenewRequest) SetDedicatedHostIds(v string) *DescribeDedicatedHostAutoRenewRequest { s.DedicatedHostIds = &v return s } func (s *DescribeDedicatedHostAutoRenewRequest) SetOwnerAccount(v string) *DescribeDedicatedHostAutoRenewRequest { s.OwnerAccount = &v return s } func (s *DescribeDedicatedHostAutoRenewRequest) SetOwnerId(v int64) *DescribeDedicatedHostAutoRenewRequest { s.OwnerId = &v return s } func (s *DescribeDedicatedHostAutoRenewRequest) SetRegionId(v string) *DescribeDedicatedHostAutoRenewRequest { s.RegionId = &v return s } func (s *DescribeDedicatedHostAutoRenewRequest) SetResourceOwnerAccount(v string) *DescribeDedicatedHostAutoRenewRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDedicatedHostAutoRenewRequest) SetResourceOwnerId(v int64) *DescribeDedicatedHostAutoRenewRequest { s.ResourceOwnerId = &v return s } type DescribeDedicatedHostAutoRenewResponseBody struct { // The unit of the auto-renewal period. Valid values: // // * Week // * Month DedicatedHostRenewAttributes *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributes `json:"DedicatedHostRenewAttributes,omitempty" xml:"DedicatedHostRenewAttributes,omitempty" type:"Struct"` // Details about the auto-renewal attributes of the dedicated hosts. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeDedicatedHostAutoRenewResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostAutoRenewResponseBody) GoString() string { return s.String() } func (s *DescribeDedicatedHostAutoRenewResponseBody) SetDedicatedHostRenewAttributes(v *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributes) *DescribeDedicatedHostAutoRenewResponseBody { s.DedicatedHostRenewAttributes = v return s } func (s *DescribeDedicatedHostAutoRenewResponseBody) SetRequestId(v string) *DescribeDedicatedHostAutoRenewResponseBody { s.RequestId = &v return s } type DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributes struct { DedicatedHostRenewAttribute []*DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute `json:"DedicatedHostRenewAttribute,omitempty" xml:"DedicatedHostRenewAttribute,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributes) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributes) GoString() string { return s.String() } func (s *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributes) SetDedicatedHostRenewAttribute(v []*DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributes { s.DedicatedHostRenewAttribute = v return s } type DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute struct { // Indicates whether the subscription dedicated host is automatically renewed along with the subscription Elastic Compute Service (ECS) instances hosted on it if the new expiration time of the renewed instances is later than the expiration time of the dedicated host. Valid values: // // * AutoRenewWithEcs: The subscription dedicated host is automatically renewed along with the subscription ECS instances hosted on it. // * StopRenewWithEcs: The subscription dedicated host is not automatically renewed along with the subscription ECS instances hosted on it. AutoRenewEnabled *bool `json:"AutoRenewEnabled,omitempty" xml:"AutoRenewEnabled,omitempty"` AutoRenewWithEcs *string `json:"AutoRenewWithEcs,omitempty" xml:"AutoRenewWithEcs,omitempty"` // Indicates whether the subscription dedicated host is automatically renewed. Valid values: // // * AutoRenewal: The dedicated host is automatically renewed. // * Normal: The dedicated host is not automatically renewed, and you will receive notifications for renewal. // * NotRenewal: The dedicated host is not renewed, and no expiration notification is sent. Notifications for renewal are automatically sent three days before the dedicated host expires. You can change the value of this parameter from NotRenewal to Normal for the dedicated host and manually renew it by calling the [RenewDedicatedHosts](~~93287~~) operation. Alternatively, you can set this parameter to AutoRenewal to configure the dedicated host to be automatically renewed. DedicatedHostId *string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty"` // The ID of the dedicated host. Duration *int32 `json:"Duration,omitempty" xml:"Duration,omitempty"` // The auto-renewal period. PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // Indicates whether the subscription dedicated host is automatically renewed. Valid values: // // * true: The dedicated host is automatically renewed. // * false: The dedicated host is not automatically renewed. RenewalStatus *string `json:"RenewalStatus,omitempty" xml:"RenewalStatus,omitempty"` } func (s DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) GoString() string { return s.String() } func (s *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) SetAutoRenewEnabled(v bool) *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute { s.AutoRenewEnabled = &v return s } func (s *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) SetAutoRenewWithEcs(v string) *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute { s.AutoRenewWithEcs = &v return s } func (s *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) SetDedicatedHostId(v string) *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute { s.DedicatedHostId = &v return s } func (s *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) SetDuration(v int32) *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute { s.Duration = &v return s } func (s *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) SetPeriodUnit(v string) *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute { s.PeriodUnit = &v return s } func (s *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute) SetRenewalStatus(v string) *DescribeDedicatedHostAutoRenewResponseBodyDedicatedHostRenewAttributesDedicatedHostRenewAttribute { s.RenewalStatus = &v return s } type DescribeDedicatedHostAutoRenewResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDedicatedHostAutoRenewResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDedicatedHostAutoRenewResponse) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostAutoRenewResponse) GoString() string { return s.String() } func (s *DescribeDedicatedHostAutoRenewResponse) SetHeaders(v map[string]*string) *DescribeDedicatedHostAutoRenewResponse { s.Headers = v return s } func (s *DescribeDedicatedHostAutoRenewResponse) SetStatusCode(v int32) *DescribeDedicatedHostAutoRenewResponse { s.StatusCode = &v return s } func (s *DescribeDedicatedHostAutoRenewResponse) SetBody(v *DescribeDedicatedHostAutoRenewResponseBody) *DescribeDedicatedHostAutoRenewResponse { s.Body = v return s } type DescribeDedicatedHostClustersRequest struct { // The IDs of dedicated host clusters. The value can be a JSON array that consists of up to 100 dedicated host cluster IDs in the format of `["dc-xxxxxxxxx", "dc-yyyyyyyyy", ... "dc-zzzzzzzzz"]`. Separate the IDs with commas (,). DedicatedHostClusterIds *string `json:"DedicatedHostClusterIds,omitempty" xml:"DedicatedHostClusterIds,omitempty"` // The name of the dedicated host cluster. DedicatedHostClusterName *string `json:"DedicatedHostClusterName,omitempty" xml:"DedicatedHostClusterName,omitempty"` // > This parameter is unavailable for use. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the dedicated host cluster. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the dedicated host cluster belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // > This parameter is unavailable for use. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The list of the tags. Tag []*DescribeDedicatedHostClustersRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The zone ID of the dedicated host cluster. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDedicatedHostClustersRequest) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersRequest) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersRequest) SetDedicatedHostClusterIds(v string) *DescribeDedicatedHostClustersRequest { s.DedicatedHostClusterIds = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetDedicatedHostClusterName(v string) *DescribeDedicatedHostClustersRequest { s.DedicatedHostClusterName = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetLockReason(v string) *DescribeDedicatedHostClustersRequest { s.LockReason = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetOwnerAccount(v string) *DescribeDedicatedHostClustersRequest { s.OwnerAccount = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetOwnerId(v int64) *DescribeDedicatedHostClustersRequest { s.OwnerId = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetPageNumber(v int32) *DescribeDedicatedHostClustersRequest { s.PageNumber = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetPageSize(v int32) *DescribeDedicatedHostClustersRequest { s.PageSize = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetRegionId(v string) *DescribeDedicatedHostClustersRequest { s.RegionId = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetResourceGroupId(v string) *DescribeDedicatedHostClustersRequest { s.ResourceGroupId = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetResourceOwnerAccount(v string) *DescribeDedicatedHostClustersRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetResourceOwnerId(v int64) *DescribeDedicatedHostClustersRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetStatus(v string) *DescribeDedicatedHostClustersRequest { s.Status = &v return s } func (s *DescribeDedicatedHostClustersRequest) SetTag(v []*DescribeDedicatedHostClustersRequestTag) *DescribeDedicatedHostClustersRequest { s.Tag = v return s } func (s *DescribeDedicatedHostClustersRequest) SetZoneId(v string) *DescribeDedicatedHostClustersRequest { s.ZoneId = &v return s } type DescribeDedicatedHostClustersRequestTag struct { // The key of tag N of the dedicated host cluster. Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the dedicated host cluster. Valid values of N: 1 to 20. The tag value cannot be an empty string. It can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeDedicatedHostClustersRequestTag) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersRequestTag) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersRequestTag) SetKey(v string) *DescribeDedicatedHostClustersRequestTag { s.Key = &v return s } func (s *DescribeDedicatedHostClustersRequestTag) SetValue(v string) *DescribeDedicatedHostClustersRequestTag { s.Value = &v return s } type DescribeDedicatedHostClustersResponseBody struct { // Details about the dedicated host clusters. DedicatedHostClusters *DescribeDedicatedHostClustersResponseBodyDedicatedHostClusters `json:"DedicatedHostClusters,omitempty" xml:"DedicatedHostClusters,omitempty" type:"Struct"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of dedicated host clusters. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeDedicatedHostClustersResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBody) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBody) SetDedicatedHostClusters(v *DescribeDedicatedHostClustersResponseBodyDedicatedHostClusters) *DescribeDedicatedHostClustersResponseBody { s.DedicatedHostClusters = v return s } func (s *DescribeDedicatedHostClustersResponseBody) SetPageNumber(v int32) *DescribeDedicatedHostClustersResponseBody { s.PageNumber = &v return s } func (s *DescribeDedicatedHostClustersResponseBody) SetPageSize(v int32) *DescribeDedicatedHostClustersResponseBody { s.PageSize = &v return s } func (s *DescribeDedicatedHostClustersResponseBody) SetRequestId(v string) *DescribeDedicatedHostClustersResponseBody { s.RequestId = &v return s } func (s *DescribeDedicatedHostClustersResponseBody) SetTotalCount(v int32) *DescribeDedicatedHostClustersResponseBody { s.TotalCount = &v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClusters struct { DedicatedHostCluster []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster `json:"DedicatedHostCluster,omitempty" xml:"DedicatedHostCluster,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClusters) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClusters) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClusters) SetDedicatedHostCluster(v []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClusters { s.DedicatedHostCluster = v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster struct { // The capacity of the dedicated host cluster. DedicatedHostClusterCapacity *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity `json:"DedicatedHostClusterCapacity,omitempty" xml:"DedicatedHostClusterCapacity,omitempty" type:"Struct"` // The ID of the dedicated host cluster. DedicatedHostClusterId *string `json:"DedicatedHostClusterId,omitempty" xml:"DedicatedHostClusterId,omitempty"` // The name of the dedicated host cluster. DedicatedHostClusterName *string `json:"DedicatedHostClusterName,omitempty" xml:"DedicatedHostClusterName,omitempty"` // The IDs of dedicated hosts in the dedicated host cluster. DedicatedHostIds *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostIds `json:"DedicatedHostIds,omitempty" xml:"DedicatedHostIds,omitempty" type:"Struct"` // The description of the dedicated host cluster. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The region ID of the dedicated host cluster. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the dedicated host cluster belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The tags of the dedicated host cluster. Tags *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The zone ID of the dedicated host cluster. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetDedicatedHostClusterCapacity(v *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.DedicatedHostClusterCapacity = v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetDedicatedHostClusterId(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.DedicatedHostClusterId = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetDedicatedHostClusterName(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.DedicatedHostClusterName = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetDedicatedHostIds(v *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostIds) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.DedicatedHostIds = v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetDescription(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.Description = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetRegionId(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.RegionId = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetResourceGroupId(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.ResourceGroupId = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetTags(v *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTags) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.Tags = v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster) SetZoneId(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostCluster { s.ZoneId = &v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity struct { // The available capacity of the Elastic Compute Service (ECS) instance types in the dedicated host cluster. AvailableInstanceTypes *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypes `json:"AvailableInstanceTypes,omitempty" xml:"AvailableInstanceTypes,omitempty" type:"Struct"` // The size of available memory. Unit: GiB. AvailableMemory *int32 `json:"AvailableMemory,omitempty" xml:"AvailableMemory,omitempty"` // The number of available vCPUs. AvailableVcpus *int32 `json:"AvailableVcpus,omitempty" xml:"AvailableVcpus,omitempty"` // The local storage capacity. LocalStorageCapacities *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacities `json:"LocalStorageCapacities,omitempty" xml:"LocalStorageCapacities,omitempty" type:"Struct"` // The total memory size. Unit: GiB. TotalMemory *int32 `json:"TotalMemory,omitempty" xml:"TotalMemory,omitempty"` // The total number of vCPUs. TotalVcpus *int32 `json:"TotalVcpus,omitempty" xml:"TotalVcpus,omitempty"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) SetAvailableInstanceTypes(v *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypes) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity { s.AvailableInstanceTypes = v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) SetAvailableMemory(v int32) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity { s.AvailableMemory = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) SetAvailableVcpus(v int32) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity { s.AvailableVcpus = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) SetLocalStorageCapacities(v *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacities) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity { s.LocalStorageCapacities = v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) SetTotalMemory(v int32) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity { s.TotalMemory = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity) SetTotalVcpus(v int32) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacity { s.TotalVcpus = &v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypes struct { AvailableInstanceType []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType `json:"AvailableInstanceType,omitempty" xml:"AvailableInstanceType,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypes) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypes) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypes) SetAvailableInstanceType(v []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypes { s.AvailableInstanceType = v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType struct { // The available capacity of the ECS instance type. AvailableInstanceCapacity *int32 `json:"AvailableInstanceCapacity,omitempty" xml:"AvailableInstanceCapacity,omitempty"` // The ECS instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType) SetAvailableInstanceCapacity(v int32) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType { s.AvailableInstanceCapacity = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType) SetInstanceType(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityAvailableInstanceTypesAvailableInstanceType { s.InstanceType = &v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacities struct { LocalStorageCapacity []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity `json:"LocalStorageCapacity,omitempty" xml:"LocalStorageCapacity,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacities) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacities) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacities) SetLocalStorageCapacity(v []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacities { s.LocalStorageCapacity = v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity struct { // The available capacity of the local disk. Unit: GiB. AvailableDisk *int32 `json:"AvailableDisk,omitempty" xml:"AvailableDisk,omitempty"` // The category of the data disk. Valid values: // // - cloud: basic disk // - cloud_efficiency: ultra disk // - cloud_ssd: standard SSD // - ephemeral_ssd: local SSD // - cloud_essd: enhanced SSD (ESSD) DataDiskCategory *string `json:"DataDiskCategory,omitempty" xml:"DataDiskCategory,omitempty"` // The total capacity of the local disk. Unit: GiB. TotalDisk *int32 `json:"TotalDisk,omitempty" xml:"TotalDisk,omitempty"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity) SetAvailableDisk(v int32) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity { s.AvailableDisk = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity) SetDataDiskCategory(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity { s.DataDiskCategory = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity) SetTotalDisk(v int32) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostClusterCapacityLocalStorageCapacitiesLocalStorageCapacity { s.TotalDisk = &v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostIds struct { DedicatedHostId []*string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostIds) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostIds) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostIds) SetDedicatedHostId(v []*string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterDedicatedHostIds { s.DedicatedHostId = v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTags struct { Tag []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTags) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTags) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTags) SetTag(v []*DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTags { s.Tag = v return s } type DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag struct { // The tag key of the dedicated host cluster. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the dedicated host cluster. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag) SetTagKey(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag { s.TagKey = &v return s } func (s *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag) SetTagValue(v string) *DescribeDedicatedHostClustersResponseBodyDedicatedHostClustersDedicatedHostClusterTagsTag { s.TagValue = &v return s } type DescribeDedicatedHostClustersResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDedicatedHostClustersResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDedicatedHostClustersResponse) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostClustersResponse) GoString() string { return s.String() } func (s *DescribeDedicatedHostClustersResponse) SetHeaders(v map[string]*string) *DescribeDedicatedHostClustersResponse { s.Headers = v return s } func (s *DescribeDedicatedHostClustersResponse) SetStatusCode(v int32) *DescribeDedicatedHostClustersResponse { s.StatusCode = &v return s } func (s *DescribeDedicatedHostClustersResponse) SetBody(v *DescribeDedicatedHostClustersResponseBody) *DescribeDedicatedHostClustersResponse { s.Body = v return s } type DescribeDedicatedHostTypesRequest struct { // The dedicated host type. For more information, see [Dedicated host types](~~68564~~). DedicatedHostType *string `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the dedicated host. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ECS instance family supported by the dedicated host type. SupportedInstanceTypeFamily *string `json:"SupportedInstanceTypeFamily,omitempty" xml:"SupportedInstanceTypeFamily,omitempty"` } func (s DescribeDedicatedHostTypesRequest) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostTypesRequest) GoString() string { return s.String() } func (s *DescribeDedicatedHostTypesRequest) SetDedicatedHostType(v string) *DescribeDedicatedHostTypesRequest { s.DedicatedHostType = &v return s } func (s *DescribeDedicatedHostTypesRequest) SetOwnerAccount(v string) *DescribeDedicatedHostTypesRequest { s.OwnerAccount = &v return s } func (s *DescribeDedicatedHostTypesRequest) SetOwnerId(v int64) *DescribeDedicatedHostTypesRequest { s.OwnerId = &v return s } func (s *DescribeDedicatedHostTypesRequest) SetRegionId(v string) *DescribeDedicatedHostTypesRequest { s.RegionId = &v return s } func (s *DescribeDedicatedHostTypesRequest) SetResourceOwnerAccount(v string) *DescribeDedicatedHostTypesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDedicatedHostTypesRequest) SetResourceOwnerId(v int64) *DescribeDedicatedHostTypesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDedicatedHostTypesRequest) SetSupportedInstanceTypeFamily(v string) *DescribeDedicatedHostTypesRequest { s.SupportedInstanceTypeFamily = &v return s } type DescribeDedicatedHostTypesResponseBody struct { // The information about the dedicated host type. DedicatedHostTypes *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypes `json:"DedicatedHostTypes,omitempty" xml:"DedicatedHostTypes,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeDedicatedHostTypesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostTypesResponseBody) GoString() string { return s.String() } func (s *DescribeDedicatedHostTypesResponseBody) SetDedicatedHostTypes(v *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypes) *DescribeDedicatedHostTypesResponseBody { s.DedicatedHostTypes = v return s } func (s *DescribeDedicatedHostTypesResponseBody) SetRequestId(v string) *DescribeDedicatedHostTypesResponseBody { s.RequestId = &v return s } type DescribeDedicatedHostTypesResponseBodyDedicatedHostTypes struct { DedicatedHostType []*DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypes) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypes) GoString() string { return s.String() } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypes) SetDedicatedHostType(v []*DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypes { s.DedicatedHostType = v return s } type DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType struct { // The number of cores in a single physical CPU. Cores *int32 `json:"Cores,omitempty" xml:"Cores,omitempty"` // The supported CPU overcommit ratio range. CpuOverCommitRatioRange *string `json:"CpuOverCommitRatioRange,omitempty" xml:"CpuOverCommitRatioRange,omitempty"` // The type of the dedicated host. You can submit a ticket to request more dedicated host types. DedicatedHostType *string `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty"` // The GPU model. GPUSpec *string `json:"GPUSpec,omitempty" xml:"GPUSpec,omitempty"` // The number of local disks on a dedicated host. LocalStorageAmount *int32 `json:"LocalStorageAmount,omitempty" xml:"LocalStorageAmount,omitempty"` // The capacity of a local disk. Unit: GiB. LocalStorageCapacity *int64 `json:"LocalStorageCapacity,omitempty" xml:"LocalStorageCapacity,omitempty"` // The category of the local disks. LocalStorageCategory *string `json:"LocalStorageCategory,omitempty" xml:"LocalStorageCategory,omitempty"` // The size of the memory. Unit: GiB. MemorySize *float32 `json:"MemorySize,omitempty" xml:"MemorySize,omitempty"` // The number of physical GPUs. PhysicalGpus *int32 `json:"PhysicalGpus,omitempty" xml:"PhysicalGpus,omitempty"` // The number of physical CPUs. Sockets *int32 `json:"Sockets,omitempty" xml:"Sockets,omitempty"` // Indicates whether the CPU overcommit ratio setting is supported. SupportCpuOverCommitRatio *bool `json:"SupportCpuOverCommitRatio,omitempty" xml:"SupportCpuOverCommitRatio,omitempty"` // The ECS instance families supported by the dedicated host. SupportedInstanceTypeFamilies *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypeFamilies `json:"SupportedInstanceTypeFamilies,omitempty" xml:"SupportedInstanceTypeFamilies,omitempty" type:"Struct"` // The ECS instance types supported by the dedicated host. SupportedInstanceTypesList *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypesList `json:"SupportedInstanceTypesList,omitempty" xml:"SupportedInstanceTypesList,omitempty" type:"Struct"` // The total number of vCPUs. TotalVcpus *int32 `json:"TotalVcpus,omitempty" xml:"TotalVcpus,omitempty"` // The total number of vGPUs. TotalVgpus *int32 `json:"TotalVgpus,omitempty" xml:"TotalVgpus,omitempty"` } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) GoString() string { return s.String() } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetCores(v int32) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.Cores = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetCpuOverCommitRatioRange(v string) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.CpuOverCommitRatioRange = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetDedicatedHostType(v string) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.DedicatedHostType = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetGPUSpec(v string) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.GPUSpec = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetLocalStorageAmount(v int32) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.LocalStorageAmount = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetLocalStorageCapacity(v int64) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.LocalStorageCapacity = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetLocalStorageCategory(v string) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.LocalStorageCategory = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetMemorySize(v float32) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.MemorySize = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetPhysicalGpus(v int32) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.PhysicalGpus = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetSockets(v int32) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.Sockets = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetSupportCpuOverCommitRatio(v bool) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.SupportCpuOverCommitRatio = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetSupportedInstanceTypeFamilies(v *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypeFamilies) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.SupportedInstanceTypeFamilies = v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetSupportedInstanceTypesList(v *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypesList) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.SupportedInstanceTypesList = v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetTotalVcpus(v int32) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.TotalVcpus = &v return s } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType) SetTotalVgpus(v int32) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostType { s.TotalVgpus = &v return s } type DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypeFamilies struct { SupportedInstanceTypeFamily []*string `json:"SupportedInstanceTypeFamily,omitempty" xml:"SupportedInstanceTypeFamily,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypeFamilies) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypeFamilies) GoString() string { return s.String() } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypeFamilies) SetSupportedInstanceTypeFamily(v []*string) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypeFamilies { s.SupportedInstanceTypeFamily = v return s } type DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypesList struct { SupportedInstanceTypesList []*string `json:"SupportedInstanceTypesList,omitempty" xml:"SupportedInstanceTypesList,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypesList) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypesList) GoString() string { return s.String() } func (s *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypesList) SetSupportedInstanceTypesList(v []*string) *DescribeDedicatedHostTypesResponseBodyDedicatedHostTypesDedicatedHostTypeSupportedInstanceTypesList { s.SupportedInstanceTypesList = v return s } type DescribeDedicatedHostTypesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDedicatedHostTypesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDedicatedHostTypesResponse) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostTypesResponse) GoString() string { return s.String() } func (s *DescribeDedicatedHostTypesResponse) SetHeaders(v map[string]*string) *DescribeDedicatedHostTypesResponse { s.Headers = v return s } func (s *DescribeDedicatedHostTypesResponse) SetStatusCode(v int32) *DescribeDedicatedHostTypesResponse { s.StatusCode = &v return s } func (s *DescribeDedicatedHostTypesResponse) SetBody(v *DescribeDedicatedHostTypesResponseBody) *DescribeDedicatedHostTypesResponse { s.Body = v return s } type DescribeDedicatedHostsRequest struct { // The ID of the dedicated host cluster. DedicatedHostClusterId *string `json:"DedicatedHostClusterId,omitempty" xml:"DedicatedHostClusterId,omitempty"` // The IDs of dedicated hosts. You can specify up to 100 dedicated host IDs in a single request. Separate the IDs with commas (,). DedicatedHostIds *string `json:"DedicatedHostIds,omitempty" xml:"DedicatedHostIds,omitempty"` // The name of the dedicated host. DedicatedHostName *string `json:"DedicatedHostName,omitempty" xml:"DedicatedHostName,omitempty"` // The dedicated host type. You can call the [DescribeDedicatedHostTypes](~~134240~~) operation to query the most recent list of dedicated host types. DedicatedHostType *string `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty"` // The reason why the dedicated host is locked. Valid values: // // * financial: The dedicated host is locked due to overdue payments. // * security: The dedicated host is locked due to security reasons. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of entries per page. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The page number. // // Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the dedicated host. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the dedicated host belongs. When this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Whether to display socket capacity information SocketDetails *string `json:"SocketDetails,omitempty" xml:"SocketDetails,omitempty"` // The service state of the dedicated host. Valid values: // // * Available: The dedicated host is running normally. // * UnderAssessment: The dedicated host is available but has potential risks that may cause the ECS instances on the dedicated host to fail. // * PermanentFailure: The dedicated host encounters permanent failures and is unavailable. // * TempUnavailable: The dedicated host is temporarily unavailable. // * Redeploying: The dedicated host is being restored. // // Default value: Available. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the dedicated host. Tag []*DescribeDedicatedHostsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The zone ID of the dedicated host. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDedicatedHostsRequest) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsRequest) GoString() string { return s.String() } func (s *DescribeDedicatedHostsRequest) SetDedicatedHostClusterId(v string) *DescribeDedicatedHostsRequest { s.DedicatedHostClusterId = &v return s } func (s *DescribeDedicatedHostsRequest) SetDedicatedHostIds(v string) *DescribeDedicatedHostsRequest { s.DedicatedHostIds = &v return s } func (s *DescribeDedicatedHostsRequest) SetDedicatedHostName(v string) *DescribeDedicatedHostsRequest { s.DedicatedHostName = &v return s } func (s *DescribeDedicatedHostsRequest) SetDedicatedHostType(v string) *DescribeDedicatedHostsRequest { s.DedicatedHostType = &v return s } func (s *DescribeDedicatedHostsRequest) SetLockReason(v string) *DescribeDedicatedHostsRequest { s.LockReason = &v return s } func (s *DescribeDedicatedHostsRequest) SetMaxResults(v int32) *DescribeDedicatedHostsRequest { s.MaxResults = &v return s } func (s *DescribeDedicatedHostsRequest) SetNextToken(v string) *DescribeDedicatedHostsRequest { s.NextToken = &v return s } func (s *DescribeDedicatedHostsRequest) SetOwnerAccount(v string) *DescribeDedicatedHostsRequest { s.OwnerAccount = &v return s } func (s *DescribeDedicatedHostsRequest) SetOwnerId(v int64) *DescribeDedicatedHostsRequest { s.OwnerId = &v return s } func (s *DescribeDedicatedHostsRequest) SetPageNumber(v int32) *DescribeDedicatedHostsRequest { s.PageNumber = &v return s } func (s *DescribeDedicatedHostsRequest) SetPageSize(v int32) *DescribeDedicatedHostsRequest { s.PageSize = &v return s } func (s *DescribeDedicatedHostsRequest) SetRegionId(v string) *DescribeDedicatedHostsRequest { s.RegionId = &v return s } func (s *DescribeDedicatedHostsRequest) SetResourceGroupId(v string) *DescribeDedicatedHostsRequest { s.ResourceGroupId = &v return s } func (s *DescribeDedicatedHostsRequest) SetResourceOwnerAccount(v string) *DescribeDedicatedHostsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDedicatedHostsRequest) SetResourceOwnerId(v int64) *DescribeDedicatedHostsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDedicatedHostsRequest) SetSocketDetails(v string) *DescribeDedicatedHostsRequest { s.SocketDetails = &v return s } func (s *DescribeDedicatedHostsRequest) SetStatus(v string) *DescribeDedicatedHostsRequest { s.Status = &v return s } func (s *DescribeDedicatedHostsRequest) SetTag(v []*DescribeDedicatedHostsRequestTag) *DescribeDedicatedHostsRequest { s.Tag = v return s } func (s *DescribeDedicatedHostsRequest) SetZoneId(v string) *DescribeDedicatedHostsRequest { s.ZoneId = &v return s } type DescribeDedicatedHostsRequestTag struct { // The key of tag N of the dedicated host. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the dedicated host. 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 start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeDedicatedHostsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsRequestTag) GoString() string { return s.String() } func (s *DescribeDedicatedHostsRequestTag) SetKey(v string) *DescribeDedicatedHostsRequestTag { s.Key = &v return s } func (s *DescribeDedicatedHostsRequestTag) SetValue(v string) *DescribeDedicatedHostsRequestTag { s.Value = &v return s } type DescribeDedicatedHostsResponseBody struct { // The queried dedicated hosts. DedicatedHosts *DescribeDedicatedHostsResponseBodyDedicatedHosts `json:"DedicatedHosts,omitempty" xml:"DedicatedHosts,omitempty" type:"Struct"` NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of dedicated hosts. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeDedicatedHostsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBody) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBody) SetDedicatedHosts(v *DescribeDedicatedHostsResponseBodyDedicatedHosts) *DescribeDedicatedHostsResponseBody { s.DedicatedHosts = v return s } func (s *DescribeDedicatedHostsResponseBody) SetNextToken(v string) *DescribeDedicatedHostsResponseBody { s.NextToken = &v return s } func (s *DescribeDedicatedHostsResponseBody) SetPageNumber(v int32) *DescribeDedicatedHostsResponseBody { s.PageNumber = &v return s } func (s *DescribeDedicatedHostsResponseBody) SetPageSize(v int32) *DescribeDedicatedHostsResponseBody { s.PageSize = &v return s } func (s *DescribeDedicatedHostsResponseBody) SetRequestId(v string) *DescribeDedicatedHostsResponseBody { s.RequestId = &v return s } func (s *DescribeDedicatedHostsResponseBody) SetTotalCount(v int32) *DescribeDedicatedHostsResponseBody { s.TotalCount = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHosts struct { DedicatedHost []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost `json:"DedicatedHost,omitempty" xml:"DedicatedHost,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHosts) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHosts) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHosts) SetDedicatedHost(v []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) *DescribeDedicatedHostsResponseBodyDedicatedHosts { s.DedicatedHost = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost struct { SchedulerOptions *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions `json:"SchedulerOptions,omitempty" xml:"SchedulerOptions,omitempty" type:"Struct"` // The policy used to migrate the instances deployed on the dedicated host when the dedicated host fails. Valid values: // // * Migrate: The instances are migrated to another physical server. Instances that are not in the Stopped state when the dedicated host fails are restarted. // * Stop: The instances are stopped. If the dedicated host cannot be restored, the instances are migrated to another physical server and restarted. // // If the dedicated host has cloud disks attached, the default value is Migrate. If the dedicated host has local disks attached, the default value is Stop. ActionOnMaintenance *string `json:"ActionOnMaintenance,omitempty" xml:"ActionOnMaintenance,omitempty"` // Indicates whether the dedicated host was added to the resource pool for automatic deployment. Valid values: // // * on: The dedicated host was added to the resource pool for automatic deployment. // * off: The dedicated host was not added to the resource pool for automatic deployment. // // For more information about automatic deployment, see the "Automatic deployment" section in [Functions and features](~~118938~~). AutoPlacement *string `json:"AutoPlacement,omitempty" xml:"AutoPlacement,omitempty"` // The automatic release time of the instance. The time follows the [ISO 8601](~~25696~~) standard in the `yyyy-MM-ddTHH:mmZ` format. The time is displayed in UTC. AutoReleaseTime *string `json:"AutoReleaseTime,omitempty" xml:"AutoReleaseTime,omitempty"` // The performance specifications of the dedicated host. Capacity *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity `json:"Capacity,omitempty" xml:"Capacity,omitempty" type:"Struct"` // The billing method of the dedicated host. ChargeType *string `json:"ChargeType,omitempty" xml:"ChargeType,omitempty"` // The number of physical cores per CPU. Cores *int32 `json:"Cores,omitempty" xml:"Cores,omitempty"` // The CPU overcommit ratio. CpuOverCommitRatio *float32 `json:"CpuOverCommitRatio,omitempty" xml:"CpuOverCommitRatio,omitempty"` // The time when the dedicated host was created. The time follows the [ISO 8601](~~25696~~) standard in the `yyyy-MM-ddTHH:mmZ` format. The time is displayed in UTC. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The ID of the dedicated host cluster to which the dedicated host belongs. DedicatedHostClusterId *string `json:"DedicatedHostClusterId,omitempty" xml:"DedicatedHostClusterId,omitempty"` // The ID of the dedicated host. DedicatedHostId *string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty"` // The name of the dedicated host. DedicatedHostName *string `json:"DedicatedHostName,omitempty" xml:"DedicatedHostName,omitempty"` // 专有宿主机所有者的用户ID。 DedicatedHostOwnerId *int64 `json:"DedicatedHostOwnerId,omitempty" xml:"DedicatedHostOwnerId,omitempty"` // The type of the dedicated host. DedicatedHostType *string `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty"` // The description of the dedicated host. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The expiration time of the subscription dedicated host. The time follows the [ISO 8601](~~25696~~) standard in the `yyyy-MM-ddTHH:mmZ` format. The time is displayed in UTC. ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` // The GPU model. GPUSpec *string `json:"GPUSpec,omitempty" xml:"GPUSpec,omitempty"` // This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. HostDetailInfo *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostHostDetailInfo `json:"HostDetailInfo,omitempty" xml:"HostDetailInfo,omitempty" type:"Struct"` // The ECS instances that were created on the dedicated host. Instances *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstances `json:"Instances,omitempty" xml:"Instances,omitempty" type:"Struct"` // The machine code of the dedicated host. MachineId *string `json:"MachineId,omitempty" xml:"MachineId,omitempty"` // The network attributes of the dedicated host. NetworkAttributes *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes `json:"NetworkAttributes,omitempty" xml:"NetworkAttributes,omitempty" type:"Struct"` // The reasons why the resources of the dedicated host were locked. OperationLocks *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocks `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty" type:"Struct"` // The number of physical GPUs. PhysicalGpus *int32 `json:"PhysicalGpus,omitempty" xml:"PhysicalGpus,omitempty"` // The region ID of the dedicated host. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the dedicated host belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The unit of the subscription period. Valid values: // // * Month // * Year SaleCycle *string `json:"SaleCycle,omitempty" xml:"SaleCycle,omitempty"` // The number of physical CPUs. Sockets *int32 `json:"Sockets,omitempty" xml:"Sockets,omitempty"` // The state of the dedicated host. Valid values: // // * Available: The dedicated host is running normally. // * UnderAssessment: The dedicated host is available but has potential risks that may cause the ECS instances on the dedicated host to fail. // * PermanentFailure: The dedicated host has permanent failures and is unavailable. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The custom ECS instance families that are supported by the dedicated host. SupportedCustomInstanceTypeFamilies *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedCustomInstanceTypeFamilies `json:"SupportedCustomInstanceTypeFamilies,omitempty" xml:"SupportedCustomInstanceTypeFamilies,omitempty" type:"Struct"` // The ECS instance families that are supported by the dedicated host. SupportedInstanceTypeFamilies *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypeFamilies `json:"SupportedInstanceTypeFamilies,omitempty" xml:"SupportedInstanceTypeFamilies,omitempty" type:"Struct"` // The ECS instance types that are supported by the dedicated host. SupportedInstanceTypesList *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypesList `json:"SupportedInstanceTypesList,omitempty" xml:"SupportedInstanceTypesList,omitempty" type:"Struct"` // The tags of the dedicated host. Tags *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The zone ID of the dedicated host. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetSchedulerOptions(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.SchedulerOptions = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetActionOnMaintenance(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.ActionOnMaintenance = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetAutoPlacement(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.AutoPlacement = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetAutoReleaseTime(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.AutoReleaseTime = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetCapacity(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.Capacity = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetChargeType(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.ChargeType = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetCores(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.Cores = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetCpuOverCommitRatio(v float32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.CpuOverCommitRatio = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetCreationTime(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.CreationTime = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetDedicatedHostClusterId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.DedicatedHostClusterId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetDedicatedHostId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.DedicatedHostId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetDedicatedHostName(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.DedicatedHostName = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetDedicatedHostOwnerId(v int64) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.DedicatedHostOwnerId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetDedicatedHostType(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.DedicatedHostType = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetDescription(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.Description = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetExpiredTime(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.ExpiredTime = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetGPUSpec(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.GPUSpec = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetHostDetailInfo(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostHostDetailInfo) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.HostDetailInfo = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetInstances(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstances) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.Instances = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetMachineId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.MachineId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetNetworkAttributes(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.NetworkAttributes = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetOperationLocks(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocks) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.OperationLocks = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetPhysicalGpus(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.PhysicalGpus = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetRegionId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.RegionId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetResourceGroupId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.ResourceGroupId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetSaleCycle(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.SaleCycle = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetSockets(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.Sockets = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetStatus(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.Status = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetSupportedCustomInstanceTypeFamilies(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedCustomInstanceTypeFamilies) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.SupportedCustomInstanceTypeFamilies = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetSupportedInstanceTypeFamilies(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypeFamilies) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.SupportedInstanceTypeFamilies = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetSupportedInstanceTypesList(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypesList) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.SupportedInstanceTypesList = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetTags(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTags) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.Tags = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost) SetZoneId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHost { s.ZoneId = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions struct { ManagedPrivateSpaceId *string `json:"ManagedPrivateSpaceId,omitempty" xml:"ManagedPrivateSpaceId,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions) SetManagedPrivateSpaceId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSchedulerOptions { s.ManagedPrivateSpaceId = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity struct { // The amount of available space on the local disks. Unit: GiB. AvailableLocalStorage *int32 `json:"AvailableLocalStorage,omitempty" xml:"AvailableLocalStorage,omitempty"` // The amount of available memory space. Unit: GiB. AvailableMemory *float32 `json:"AvailableMemory,omitempty" xml:"AvailableMemory,omitempty"` // The number of available vCPUs. AvailableVcpus *int32 `json:"AvailableVcpus,omitempty" xml:"AvailableVcpus,omitempty"` // The number of available vGPUs. AvailableVgpus *int32 `json:"AvailableVgpus,omitempty" xml:"AvailableVgpus,omitempty"` // The category of local disks. LocalStorageCategory *string `json:"LocalStorageCategory,omitempty" xml:"LocalStorageCategory,omitempty"` // Socket capacity information. SocketCapacities *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacities `json:"SocketCapacities,omitempty" xml:"SocketCapacities,omitempty" type:"Struct"` // The total capacity of the local disks. Unit: GiB. TotalLocalStorage *int32 `json:"TotalLocalStorage,omitempty" xml:"TotalLocalStorage,omitempty"` // The total capacity of the memory. Unit: GiB. TotalMemory *float32 `json:"TotalMemory,omitempty" xml:"TotalMemory,omitempty"` // The total number of vCPUs. TotalVcpus *int32 `json:"TotalVcpus,omitempty" xml:"TotalVcpus,omitempty"` // The total number of vGPUs. TotalVgpus *int32 `json:"TotalVgpus,omitempty" xml:"TotalVgpus,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetAvailableLocalStorage(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.AvailableLocalStorage = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetAvailableMemory(v float32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.AvailableMemory = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetAvailableVcpus(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.AvailableVcpus = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetAvailableVgpus(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.AvailableVgpus = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetLocalStorageCategory(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.LocalStorageCategory = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetSocketCapacities(v *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacities) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.SocketCapacities = v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetTotalLocalStorage(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.TotalLocalStorage = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetTotalMemory(v float32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.TotalMemory = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetTotalVcpus(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.TotalVcpus = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity) SetTotalVgpus(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacity { s.TotalVgpus = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacities struct { SocketCapacity []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity `json:"SocketCapacity,omitempty" xml:"SocketCapacity,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacities) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacities) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacities) SetSocketCapacity(v []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacities { s.SocketCapacity = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity struct { // Remaining memory capacity, unit: GiB. AvailableMemory *float32 `json:"AvailableMemory,omitempty" xml:"AvailableMemory,omitempty"` // The remaining number of vCPU cores. AvailableVcpu *int32 `json:"AvailableVcpu,omitempty" xml:"AvailableVcpu,omitempty"` // The ID of the socket. SocketId *int32 `json:"SocketId,omitempty" xml:"SocketId,omitempty"` // Total memory capacity, unit: GiB. TotalMemory *float32 `json:"TotalMemory,omitempty" xml:"TotalMemory,omitempty"` // Total number of vCPU cores. TotalVcpu *int32 `json:"TotalVcpu,omitempty" xml:"TotalVcpu,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) SetAvailableMemory(v float32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity { s.AvailableMemory = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) SetAvailableVcpu(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity { s.AvailableVcpu = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) SetSocketId(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity { s.SocketId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) SetTotalMemory(v float32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity { s.TotalMemory = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity) SetTotalVcpu(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostCapacitySocketCapacitiesSocketCapacity { s.TotalVcpu = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostHostDetailInfo struct { // This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostHostDetailInfo) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostHostDetailInfo) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostHostDetailInfo) SetSerialNumber(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostHostDetailInfo { s.SerialNumber = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstances struct { Instance []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance `json:"Instance,omitempty" xml:"Instance,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstances) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstances) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstances) SetInstance(v []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstances { s.Instance = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance struct { // The ID of the ECS instance created on the dedicated host. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // ECS实例所有者的用户ID。 InstanceOwnerId *int64 `json:"InstanceOwnerId,omitempty" xml:"InstanceOwnerId,omitempty"` // The instance type of the ECS instance created on the dedicated host. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The ID of the socket to which the instance belongs. SocketId *string `json:"SocketId,omitempty" xml:"SocketId,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance) SetInstanceId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance { s.InstanceId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance) SetInstanceOwnerId(v int64) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance { s.InstanceOwnerId = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance) SetInstanceType(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance { s.InstanceType = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance) SetSocketId(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostInstancesInstance { s.SocketId = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes struct { // The timeout period of the UDP session that was established between Server Load Balancer (SLB) and the dedicated host. Unit: seconds. Valid value: 60. SlbUdpTimeout *int32 `json:"SlbUdpTimeout,omitempty" xml:"SlbUdpTimeout,omitempty"` // The timeout period of the UDP session that was established between a user and an Alibaba Cloud service on the dedicated host. Unit: seconds. Valid value: 60. UdpTimeout *int32 `json:"UdpTimeout,omitempty" xml:"UdpTimeout,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes) SetSlbUdpTimeout(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes { s.SlbUdpTimeout = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes) SetUdpTimeout(v int32) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostNetworkAttributes { s.UdpTimeout = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocks struct { OperationLock []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocksOperationLock `json:"OperationLock,omitempty" xml:"OperationLock,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocks) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocks) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocks) SetOperationLock(v []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocksOperationLock) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocks { s.OperationLock = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocksOperationLock struct { // The reason why the dedicated host was locked. Valid values: // // * financial // * security LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocksOperationLock) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocksOperationLock) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocksOperationLock) SetLockReason(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostOperationLocksOperationLock { s.LockReason = &v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedCustomInstanceTypeFamilies struct { SupportedCustomInstanceTypeFamily []*string `json:"SupportedCustomInstanceTypeFamily,omitempty" xml:"SupportedCustomInstanceTypeFamily,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedCustomInstanceTypeFamilies) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedCustomInstanceTypeFamilies) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedCustomInstanceTypeFamilies) SetSupportedCustomInstanceTypeFamily(v []*string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedCustomInstanceTypeFamilies { s.SupportedCustomInstanceTypeFamily = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypeFamilies struct { SupportedInstanceTypeFamily []*string `json:"SupportedInstanceTypeFamily,omitempty" xml:"SupportedInstanceTypeFamily,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypeFamilies) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypeFamilies) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypeFamilies) SetSupportedInstanceTypeFamily(v []*string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypeFamilies { s.SupportedInstanceTypeFamily = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypesList struct { SupportedInstanceTypesList []*string `json:"SupportedInstanceTypesList,omitempty" xml:"SupportedInstanceTypesList,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypesList) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypesList) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypesList) SetSupportedInstanceTypesList(v []*string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostSupportedInstanceTypesList { s.SupportedInstanceTypesList = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTags struct { Tag []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTags) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTags) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTags) SetTag(v []*DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTags { s.Tag = v return s } type DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag struct { // The tag key of the dedicated host. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the dedicated host. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag) SetTagKey(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag { s.TagKey = &v return s } func (s *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag) SetTagValue(v string) *DescribeDedicatedHostsResponseBodyDedicatedHostsDedicatedHostTagsTag { s.TagValue = &v return s } type DescribeDedicatedHostsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDedicatedHostsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDedicatedHostsResponse) String() string { return tea.Prettify(s) } func (s DescribeDedicatedHostsResponse) GoString() string { return s.String() } func (s *DescribeDedicatedHostsResponse) SetHeaders(v map[string]*string) *DescribeDedicatedHostsResponse { s.Headers = v return s } func (s *DescribeDedicatedHostsResponse) SetStatusCode(v int32) *DescribeDedicatedHostsResponse { s.StatusCode = &v return s } func (s *DescribeDedicatedHostsResponse) SetBody(v *DescribeDedicatedHostsResponseBody) *DescribeDedicatedHostsResponse { s.Body = v return s } type DescribeDemandsRequest struct { // The ID of the demand. If this parameter is specified, other optional request parameters are ignored. DemandId *string `json:"DemandId,omitempty" xml:"DemandId,omitempty"` // The status of the demand or filed resources. Valid values: // // * Creating: The demand is being created. // * Active: The filed resources are being supplied. // * Expired: The demand has expired. // * Finished: The filed resources are consumed. // * Refused: The demand is rejected. To view the reason for rejection, see the `Comment` parameter in the response. // * Cancelled: The demand is canceled. DemandStatus []*string `json:"DemandStatus,omitempty" xml:"DemandStatus,omitempty" type:"Repeated"` // The source of the instance. Valid values: // // * Custom: filed on your own. // * System (default): filed by Alibaba Cloud. DemandType *string `json:"DemandType,omitempty" xml:"DemandType,omitempty"` // Specifies whether to perform only a dry run, without performing the actual request. Valid values: Valid values: // // * true: performs only a dry run. The system checks whether your AccessKey pair is valid, whether RAM users are granted required permissions, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned. // * false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // The billing method of the instance. Valid values: // // * PostPaid: pay-as-you-go. // * PrePaid: subscription. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance type of the instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The instance family of the instance. InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the resource. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags. Tag []*DescribeDemandsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The zone ID of the resource. You can call the [DescribeZones](~~25610~~) operation to query the most recent region list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDemandsRequest) String() string { return tea.Prettify(s) } func (s DescribeDemandsRequest) GoString() string { return s.String() } func (s *DescribeDemandsRequest) SetDemandId(v string) *DescribeDemandsRequest { s.DemandId = &v return s } func (s *DescribeDemandsRequest) SetDemandStatus(v []*string) *DescribeDemandsRequest { s.DemandStatus = v return s } func (s *DescribeDemandsRequest) SetDemandType(v string) *DescribeDemandsRequest { s.DemandType = &v return s } func (s *DescribeDemandsRequest) SetDryRun(v bool) *DescribeDemandsRequest { s.DryRun = &v return s } func (s *DescribeDemandsRequest) SetInstanceChargeType(v string) *DescribeDemandsRequest { s.InstanceChargeType = &v return s } func (s *DescribeDemandsRequest) SetInstanceType(v string) *DescribeDemandsRequest { s.InstanceType = &v return s } func (s *DescribeDemandsRequest) SetInstanceTypeFamily(v string) *DescribeDemandsRequest { s.InstanceTypeFamily = &v return s } func (s *DescribeDemandsRequest) SetOwnerAccount(v string) *DescribeDemandsRequest { s.OwnerAccount = &v return s } func (s *DescribeDemandsRequest) SetOwnerId(v int64) *DescribeDemandsRequest { s.OwnerId = &v return s } func (s *DescribeDemandsRequest) SetPageNumber(v int32) *DescribeDemandsRequest { s.PageNumber = &v return s } func (s *DescribeDemandsRequest) SetPageSize(v int32) *DescribeDemandsRequest { s.PageSize = &v return s } func (s *DescribeDemandsRequest) SetRegionId(v string) *DescribeDemandsRequest { s.RegionId = &v return s } func (s *DescribeDemandsRequest) SetResourceOwnerAccount(v string) *DescribeDemandsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDemandsRequest) SetResourceOwnerId(v int64) *DescribeDemandsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDemandsRequest) SetTag(v []*DescribeDemandsRequestTag) *DescribeDemandsRequest { s.Tag = v return s } func (s *DescribeDemandsRequest) SetZoneId(v string) *DescribeDemandsRequest { s.ZoneId = &v return s } type DescribeDemandsRequestTag struct { // > This parameter is not publicly available. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // > This parameter is not publicly available. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeDemandsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeDemandsRequestTag) GoString() string { return s.String() } func (s *DescribeDemandsRequestTag) SetKey(v string) *DescribeDemandsRequestTag { s.Key = &v return s } func (s *DescribeDemandsRequestTag) SetValue(v string) *DescribeDemandsRequestTag { s.Value = &v return s } type DescribeDemandsResponseBody struct { // The demands in the region. Demands *DescribeDemandsResponseBodyDemands `json:"Demands,omitempty" xml:"Demands,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the region. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The number of queried demands. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeDemandsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDemandsResponseBody) GoString() string { return s.String() } func (s *DescribeDemandsResponseBody) SetDemands(v *DescribeDemandsResponseBodyDemands) *DescribeDemandsResponseBody { s.Demands = v return s } func (s *DescribeDemandsResponseBody) SetPageNumber(v int32) *DescribeDemandsResponseBody { s.PageNumber = &v return s } func (s *DescribeDemandsResponseBody) SetPageSize(v int32) *DescribeDemandsResponseBody { s.PageSize = &v return s } func (s *DescribeDemandsResponseBody) SetRegionId(v string) *DescribeDemandsResponseBody { s.RegionId = &v return s } func (s *DescribeDemandsResponseBody) SetRequestId(v string) *DescribeDemandsResponseBody { s.RequestId = &v return s } func (s *DescribeDemandsResponseBody) SetTotalCount(v int32) *DescribeDemandsResponseBody { s.TotalCount = &v return s } type DescribeDemandsResponseBodyDemands struct { Demand []*DescribeDemandsResponseBodyDemandsDemand `json:"Demand,omitempty" xml:"Demand,omitempty" type:"Repeated"` } func (s DescribeDemandsResponseBodyDemands) String() string { return tea.Prettify(s) } func (s DescribeDemandsResponseBodyDemands) GoString() string { return s.String() } func (s *DescribeDemandsResponseBodyDemands) SetDemand(v []*DescribeDemandsResponseBodyDemandsDemand) *DescribeDemandsResponseBodyDemands { s.Demand = v return s } type DescribeDemandsResponseBodyDemandsDemand struct { // The number of available instances. AvailableAmount *int32 `json:"AvailableAmount,omitempty" xml:"AvailableAmount,omitempty"` // The feedback on the rejected demands. Comment *string `json:"Comment,omitempty" xml:"Comment,omitempty"` // The number of instances to be delivered. DeliveringAmount *int32 `json:"DeliveringAmount,omitempty" xml:"DeliveringAmount,omitempty"` // The description of the demand. DemandDescription *string `json:"DemandDescription,omitempty" xml:"DemandDescription,omitempty"` // The ID of the demand. DemandId *string `json:"DemandId,omitempty" xml:"DemandId,omitempty"` // The name of the demand. DemandName *string `json:"DemandName,omitempty" xml:"DemandName,omitempty"` // The status of the demand or filed resources. Valid values: // // * Creating: The demand is being created. // * Active: The filed resources are being supplied. // * Expired: The demand has expired. // * Finished: The filed resources are consumed. // * Refused: The demand is rejected. To view the reason for rejection, see the `Comment` parameter. // * Cancelled: The demand is canceled. After the demand is canceled, the delivery status of the resources becomes invalid. DemandStatus *string `json:"DemandStatus,omitempty" xml:"DemandStatus,omitempty"` // The time when the demand was created. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. DemandTime *string `json:"DemandTime,omitempty" xml:"DemandTime,omitempty"` // The expected end time for the purchase of the filed resources. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The billing method of the filed resources. Valid values: // // * Prepaid: subscription. // * Postpaid: pay-as-you-go. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance type of the filed instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The instance family of the filed instance. InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // The usage duration of the filed resources. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The unit of the usage duration of the filed resources. Valid values: // // * Hour // * Day // * // * Month PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // The expected start time for the purchase of the filed resources. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The delivery status of the filed resources. SupplyInfos *DescribeDemandsResponseBodyDemandsDemandSupplyInfos `json:"SupplyInfos,omitempty" xml:"SupplyInfos,omitempty" type:"Struct"` // The number of filed instances. TotalAmount *int32 `json:"TotalAmount,omitempty" xml:"TotalAmount,omitempty"` // The number of consumed instances. UsedAmount *int32 `json:"UsedAmount,omitempty" xml:"UsedAmount,omitempty"` // The ID of the zone where the filed resource resides. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDemandsResponseBodyDemandsDemand) String() string { return tea.Prettify(s) } func (s DescribeDemandsResponseBodyDemandsDemand) GoString() string { return s.String() } func (s *DescribeDemandsResponseBodyDemandsDemand) SetAvailableAmount(v int32) *DescribeDemandsResponseBodyDemandsDemand { s.AvailableAmount = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetComment(v string) *DescribeDemandsResponseBodyDemandsDemand { s.Comment = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetDeliveringAmount(v int32) *DescribeDemandsResponseBodyDemandsDemand { s.DeliveringAmount = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetDemandDescription(v string) *DescribeDemandsResponseBodyDemandsDemand { s.DemandDescription = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetDemandId(v string) *DescribeDemandsResponseBodyDemandsDemand { s.DemandId = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetDemandName(v string) *DescribeDemandsResponseBodyDemandsDemand { s.DemandName = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetDemandStatus(v string) *DescribeDemandsResponseBodyDemandsDemand { s.DemandStatus = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetDemandTime(v string) *DescribeDemandsResponseBodyDemandsDemand { s.DemandTime = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetEndTime(v string) *DescribeDemandsResponseBodyDemandsDemand { s.EndTime = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetInstanceChargeType(v string) *DescribeDemandsResponseBodyDemandsDemand { s.InstanceChargeType = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetInstanceType(v string) *DescribeDemandsResponseBodyDemandsDemand { s.InstanceType = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetInstanceTypeFamily(v string) *DescribeDemandsResponseBodyDemandsDemand { s.InstanceTypeFamily = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetPeriod(v int32) *DescribeDemandsResponseBodyDemandsDemand { s.Period = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetPeriodUnit(v string) *DescribeDemandsResponseBodyDemandsDemand { s.PeriodUnit = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetStartTime(v string) *DescribeDemandsResponseBodyDemandsDemand { s.StartTime = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetSupplyInfos(v *DescribeDemandsResponseBodyDemandsDemandSupplyInfos) *DescribeDemandsResponseBodyDemandsDemand { s.SupplyInfos = v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetTotalAmount(v int32) *DescribeDemandsResponseBodyDemandsDemand { s.TotalAmount = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetUsedAmount(v int32) *DescribeDemandsResponseBodyDemandsDemand { s.UsedAmount = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemand) SetZoneId(v string) *DescribeDemandsResponseBodyDemandsDemand { s.ZoneId = &v return s } type DescribeDemandsResponseBodyDemandsDemandSupplyInfos struct { SupplyInfo []*DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo `json:"SupplyInfo,omitempty" xml:"SupplyInfo,omitempty" type:"Repeated"` } func (s DescribeDemandsResponseBodyDemandsDemandSupplyInfos) String() string { return tea.Prettify(s) } func (s DescribeDemandsResponseBodyDemandsDemandSupplyInfos) GoString() string { return s.String() } func (s *DescribeDemandsResponseBodyDemandsDemandSupplyInfos) SetSupplyInfo(v []*DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) *DescribeDemandsResponseBodyDemandsDemandSupplyInfos { s.SupplyInfo = v return s } type DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo struct { // The number of delivered instances. Amount *int32 `json:"Amount,omitempty" xml:"Amount,omitempty"` // 需求单对应的私有池ID。 PrivatePoolId *string `json:"PrivatePoolId,omitempty" xml:"PrivatePoolId,omitempty"` // The end of the time range during which the filed resources are delivered and available. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. SupplyEndTime *string `json:"SupplyEndTime,omitempty" xml:"SupplyEndTime,omitempty"` // The beginning of the time range during which the filed resources are delivered and available. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. SupplyStartTime *string `json:"SupplyStartTime,omitempty" xml:"SupplyStartTime,omitempty"` // The delivery status of the filed resource. Valid values: // // * Delivered: The filed resource is delivered. // * Delivering: The filed resource is being delivered. SupplyStatus *string `json:"SupplyStatus,omitempty" xml:"SupplyStatus,omitempty"` } func (s DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) String() string { return tea.Prettify(s) } func (s DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) GoString() string { return s.String() } func (s *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) SetAmount(v int32) *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo { s.Amount = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) SetPrivatePoolId(v string) *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo { s.PrivatePoolId = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) SetSupplyEndTime(v string) *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo { s.SupplyEndTime = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) SetSupplyStartTime(v string) *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo { s.SupplyStartTime = &v return s } func (s *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo) SetSupplyStatus(v string) *DescribeDemandsResponseBodyDemandsDemandSupplyInfosSupplyInfo { s.SupplyStatus = &v return s } type DescribeDemandsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDemandsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDemandsResponse) String() string { return tea.Prettify(s) } func (s DescribeDemandsResponse) GoString() string { return s.String() } func (s *DescribeDemandsResponse) SetHeaders(v map[string]*string) *DescribeDemandsResponse { s.Headers = v return s } func (s *DescribeDemandsResponse) SetStatusCode(v int32) *DescribeDemandsResponse { s.StatusCode = &v return s } func (s *DescribeDemandsResponse) SetBody(v *DescribeDemandsResponseBody) *DescribeDemandsResponse { s.Body = v return s } type DescribeDeploymentSetSupportedInstanceTypeFamilyRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The deployment strategy. Valid values: // // * Availability: high availability strategy. // * AvailabilityGroup: high availability group strategy. // * LowLatency: low latency strategy. // // Default value: Availability. Strategy *string `json:"Strategy,omitempty" xml:"Strategy,omitempty"` } func (s DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) GoString() string { return s.String() } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) SetOwnerAccount(v string) *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest { s.OwnerAccount = &v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) SetOwnerId(v int64) *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest { s.OwnerId = &v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) SetRegionId(v string) *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest { s.RegionId = &v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) SetResourceOwnerAccount(v string) *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) SetResourceOwnerId(v int64) *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) SetStrategy(v string) *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest { s.Strategy = &v return s } type DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody struct { // The instance families that support deployment sets. InstanceTypeFamilies *string `json:"InstanceTypeFamilies,omitempty" xml:"InstanceTypeFamilies,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody) GoString() string { return s.String() } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody) SetInstanceTypeFamilies(v string) *DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody { s.InstanceTypeFamilies = &v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody) SetRequestId(v string) *DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody { s.RequestId = &v return s } type DescribeDeploymentSetSupportedInstanceTypeFamilyResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDeploymentSetSupportedInstanceTypeFamilyResponse) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetSupportedInstanceTypeFamilyResponse) GoString() string { return s.String() } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse) SetHeaders(v map[string]*string) *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse { s.Headers = v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse) SetStatusCode(v int32) *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse { s.StatusCode = &v return s } func (s *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse) SetBody(v *DescribeDeploymentSetSupportedInstanceTypeFamilyResponseBody) *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse { s.Body = v return s } type DescribeDeploymentSetsRequest struct { // The IDs of deployment sets. The value can be a JSON array that consists of up to 100 deployment set IDs in the format of `["ds-xxxxxxxxx", "ds-yyyyyyyyy", … "ds-zzzzzzzzz"]`. Separate multiple deployment set IDs with commas (,). DeploymentSetIds *string `json:"DeploymentSetIds,omitempty" xml:"DeploymentSetIds,omitempty"` // The name of the deployment set. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). DeploymentSetName *string `json:"DeploymentSetName,omitempty" xml:"DeploymentSetName,omitempty"` // > The parameter is deprecated. Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"` // > The parameter is deprecated. Granularity *string `json:"Granularity,omitempty" xml:"Granularity,omitempty"` // > The parameter is deprecated. NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 50. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the deployment set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The deployment strategy. Valid values: // // * Availability: high availability strategy. // * AvailabilityGroup: high availability group strategy. Strategy *string `json:"Strategy,omitempty" xml:"Strategy,omitempty"` } func (s DescribeDeploymentSetsRequest) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsRequest) GoString() string { return s.String() } func (s *DescribeDeploymentSetsRequest) SetDeploymentSetIds(v string) *DescribeDeploymentSetsRequest { s.DeploymentSetIds = &v return s } func (s *DescribeDeploymentSetsRequest) SetDeploymentSetName(v string) *DescribeDeploymentSetsRequest { s.DeploymentSetName = &v return s } func (s *DescribeDeploymentSetsRequest) SetDomain(v string) *DescribeDeploymentSetsRequest { s.Domain = &v return s } func (s *DescribeDeploymentSetsRequest) SetGranularity(v string) *DescribeDeploymentSetsRequest { s.Granularity = &v return s } func (s *DescribeDeploymentSetsRequest) SetNetworkType(v string) *DescribeDeploymentSetsRequest { s.NetworkType = &v return s } func (s *DescribeDeploymentSetsRequest) SetOwnerAccount(v string) *DescribeDeploymentSetsRequest { s.OwnerAccount = &v return s } func (s *DescribeDeploymentSetsRequest) SetOwnerId(v int64) *DescribeDeploymentSetsRequest { s.OwnerId = &v return s } func (s *DescribeDeploymentSetsRequest) SetPageNumber(v int32) *DescribeDeploymentSetsRequest { s.PageNumber = &v return s } func (s *DescribeDeploymentSetsRequest) SetPageSize(v int32) *DescribeDeploymentSetsRequest { s.PageSize = &v return s } func (s *DescribeDeploymentSetsRequest) SetRegionId(v string) *DescribeDeploymentSetsRequest { s.RegionId = &v return s } func (s *DescribeDeploymentSetsRequest) SetResourceOwnerAccount(v string) *DescribeDeploymentSetsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDeploymentSetsRequest) SetResourceOwnerId(v int64) *DescribeDeploymentSetsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDeploymentSetsRequest) SetStrategy(v string) *DescribeDeploymentSetsRequest { s.Strategy = &v return s } type DescribeDeploymentSetsResponseBody struct { // Details about the deployment sets. DeploymentSets *DescribeDeploymentSetsResponseBodyDeploymentSets `json:"DeploymentSets,omitempty" xml:"DeploymentSets,omitempty" type:"Struct"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the deployment set. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of deployment sets returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeDeploymentSetsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsResponseBody) GoString() string { return s.String() } func (s *DescribeDeploymentSetsResponseBody) SetDeploymentSets(v *DescribeDeploymentSetsResponseBodyDeploymentSets) *DescribeDeploymentSetsResponseBody { s.DeploymentSets = v return s } func (s *DescribeDeploymentSetsResponseBody) SetPageNumber(v int32) *DescribeDeploymentSetsResponseBody { s.PageNumber = &v return s } func (s *DescribeDeploymentSetsResponseBody) SetPageSize(v int32) *DescribeDeploymentSetsResponseBody { s.PageSize = &v return s } func (s *DescribeDeploymentSetsResponseBody) SetRegionId(v string) *DescribeDeploymentSetsResponseBody { s.RegionId = &v return s } func (s *DescribeDeploymentSetsResponseBody) SetRequestId(v string) *DescribeDeploymentSetsResponseBody { s.RequestId = &v return s } func (s *DescribeDeploymentSetsResponseBody) SetTotalCount(v int32) *DescribeDeploymentSetsResponseBody { s.TotalCount = &v return s } type DescribeDeploymentSetsResponseBodyDeploymentSets struct { DeploymentSet []*DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet `json:"DeploymentSet,omitempty" xml:"DeploymentSet,omitempty" type:"Repeated"` } func (s DescribeDeploymentSetsResponseBodyDeploymentSets) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsResponseBodyDeploymentSets) GoString() string { return s.String() } func (s *DescribeDeploymentSetsResponseBodyDeploymentSets) SetDeploymentSet(v []*DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) *DescribeDeploymentSetsResponseBodyDeploymentSets { s.DeploymentSet = v return s } type DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet struct { // Details of the capacities of the deployment set. This parameter is valid only when the deployment set contains Elastic Compute Service (ECS) instances. The value contains the capacities of the deployment set in different zones. Capacities *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities `json:"Capacities,omitempty" xml:"Capacities,omitempty" type:"Struct"` // The time when the deployment set was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the deployment set. DeploymentSetDescription *string `json:"DeploymentSetDescription,omitempty" xml:"DeploymentSetDescription,omitempty"` // The ID of the deployment set. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` // The name of the deployment set. DeploymentSetName *string `json:"DeploymentSetName,omitempty" xml:"DeploymentSetName,omitempty"` // The deployment strategy. The value of this response parameter is that of the `Strategy` request parameter. DeploymentStrategy *string `json:"DeploymentStrategy,omitempty" xml:"DeploymentStrategy,omitempty"` // The deployment domain. Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"` // The deployment granularity. Granularity *string `json:"Granularity,omitempty" xml:"Granularity,omitempty"` // The number of deployment set groups in the deployment set. // // > This parameter is valid only when the Strategy request parameter is set to AvailabilityGroup. GroupCount *int32 `json:"GroupCount,omitempty" xml:"GroupCount,omitempty"` // The number of instances in the deployment set. InstanceAmount *int32 `json:"InstanceAmount,omitempty" xml:"InstanceAmount,omitempty"` // The IDs of the instances in the deployment set. InstanceIds *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstanceIds `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty" type:"Struct"` // The deployment strategy. Strategy *string `json:"Strategy,omitempty" xml:"Strategy,omitempty"` } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) GoString() string { return s.String() } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetCapacities(v *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.Capacities = v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetCreationTime(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.CreationTime = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetDeploymentSetDescription(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.DeploymentSetDescription = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetDeploymentSetId(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.DeploymentSetId = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetDeploymentSetName(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.DeploymentSetName = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetDeploymentStrategy(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.DeploymentStrategy = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetDomain(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.Domain = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetGranularity(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.Granularity = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetGroupCount(v int32) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.GroupCount = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetInstanceAmount(v int32) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.InstanceAmount = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetInstanceIds(v *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstanceIds) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.InstanceIds = v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet) SetStrategy(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSet { s.Strategy = &v return s } type DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities struct { Capacity []*DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity `json:"Capacity,omitempty" xml:"Capacity,omitempty" type:"Repeated"` } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities) GoString() string { return s.String() } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities) SetCapacity(v []*DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacities { s.Capacity = v return s } type DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity struct { // The number of ECS instances that can be added to the deployment set within the zone. AvailableAmount *int32 `json:"AvailableAmount,omitempty" xml:"AvailableAmount,omitempty"` // The number of ECS instances that belong to the zone in the deployment set. UsedAmount *int32 `json:"UsedAmount,omitempty" xml:"UsedAmount,omitempty"` // The ID of the zone. Only the zone IDs of existing ECS instances in the deployment set are returned. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity) GoString() string { return s.String() } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity) SetAvailableAmount(v int32) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity { s.AvailableAmount = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity) SetUsedAmount(v int32) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity { s.UsedAmount = &v return s } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity) SetZoneId(v string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetCapacitiesCapacity { s.ZoneId = &v return s } type DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstanceIds struct { InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstanceIds) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstanceIds) GoString() string { return s.String() } func (s *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstanceIds) SetInstanceId(v []*string) *DescribeDeploymentSetsResponseBodyDeploymentSetsDeploymentSetInstanceIds { s.InstanceId = v return s } type DescribeDeploymentSetsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDeploymentSetsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDeploymentSetsResponse) String() string { return tea.Prettify(s) } func (s DescribeDeploymentSetsResponse) GoString() string { return s.String() } func (s *DescribeDeploymentSetsResponse) SetHeaders(v map[string]*string) *DescribeDeploymentSetsResponse { s.Headers = v return s } func (s *DescribeDeploymentSetsResponse) SetStatusCode(v int32) *DescribeDeploymentSetsResponse { s.StatusCode = &v return s } func (s *DescribeDeploymentSetsResponse) SetBody(v *DescribeDeploymentSetsResponseBody) *DescribeDeploymentSetsResponse { s.Body = v return s } type DescribeDiagnosticMetricSetsRequest struct { // The maximum number of entries to return on each page. Maximum value: 100. // // Default value: // // * If this parameter is left empty, the default value is 10. // * If this parameter is set to a value greater than 100, the default value is 100. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The ID of diagnostic metric set N. MetricSetIds []*string `json:"MetricSetIds,omitempty" xml:"MetricSetIds,omitempty" type:"Repeated"` // The query token. Set the value to the `NextToken` value returned in the last call to the DescribeDiagnosticMetricSets operation. Leave this parameter empty the first time you call this operation. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The region ID of the diagnostic metric set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The resource type supported by the diagnostic metric set. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The type of the diagnostic metric set. Valid values: // // * User: user-defined diagnostic metric set // * Common: common diagnostic metric set // // Default value: user. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeDiagnosticMetricSetsRequest) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricSetsRequest) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricSetsRequest) SetMaxResults(v int32) *DescribeDiagnosticMetricSetsRequest { s.MaxResults = &v return s } func (s *DescribeDiagnosticMetricSetsRequest) SetMetricSetIds(v []*string) *DescribeDiagnosticMetricSetsRequest { s.MetricSetIds = v return s } func (s *DescribeDiagnosticMetricSetsRequest) SetNextToken(v string) *DescribeDiagnosticMetricSetsRequest { s.NextToken = &v return s } func (s *DescribeDiagnosticMetricSetsRequest) SetRegionId(v string) *DescribeDiagnosticMetricSetsRequest { s.RegionId = &v return s } func (s *DescribeDiagnosticMetricSetsRequest) SetResourceType(v string) *DescribeDiagnosticMetricSetsRequest { s.ResourceType = &v return s } func (s *DescribeDiagnosticMetricSetsRequest) SetType(v string) *DescribeDiagnosticMetricSetsRequest { s.Type = &v return s } type DescribeDiagnosticMetricSetsResponseBody struct { // A collection of diagnostic metrics. MetricSets []*DescribeDiagnosticMetricSetsResponseBodyMetricSets `json:"MetricSets,omitempty" xml:"MetricSets,omitempty" type:"Repeated"` // The query token returned in this call. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeDiagnosticMetricSetsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricSetsResponseBody) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricSetsResponseBody) SetMetricSets(v []*DescribeDiagnosticMetricSetsResponseBodyMetricSets) *DescribeDiagnosticMetricSetsResponseBody { s.MetricSets = v return s } func (s *DescribeDiagnosticMetricSetsResponseBody) SetNextToken(v string) *DescribeDiagnosticMetricSetsResponseBody { s.NextToken = &v return s } func (s *DescribeDiagnosticMetricSetsResponseBody) SetRequestId(v string) *DescribeDiagnosticMetricSetsResponseBody { s.RequestId = &v return s } type DescribeDiagnosticMetricSetsResponseBodyMetricSets struct { // The description of the diagnostic metric set. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The IDs of the diagnostic metrics. MetricIds []*string `json:"MetricIds,omitempty" xml:"MetricIds,omitempty" type:"Repeated"` // The ID of the diagnostic metric set. MetricSetId *string `json:"MetricSetId,omitempty" xml:"MetricSetId,omitempty"` // The name of the diagnostic metric set. MetricSetName *string `json:"MetricSetName,omitempty" xml:"MetricSetName,omitempty"` // The resource type supported by the diagnostic metric set. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The type of the diagnostic metric set. Valid values: // // * User: user-defined diagnostic metric set // * Common: common diagnostic metric set Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeDiagnosticMetricSetsResponseBodyMetricSets) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricSetsResponseBodyMetricSets) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricSetsResponseBodyMetricSets) SetDescription(v string) *DescribeDiagnosticMetricSetsResponseBodyMetricSets { s.Description = &v return s } func (s *DescribeDiagnosticMetricSetsResponseBodyMetricSets) SetMetricIds(v []*string) *DescribeDiagnosticMetricSetsResponseBodyMetricSets { s.MetricIds = v return s } func (s *DescribeDiagnosticMetricSetsResponseBodyMetricSets) SetMetricSetId(v string) *DescribeDiagnosticMetricSetsResponseBodyMetricSets { s.MetricSetId = &v return s } func (s *DescribeDiagnosticMetricSetsResponseBodyMetricSets) SetMetricSetName(v string) *DescribeDiagnosticMetricSetsResponseBodyMetricSets { s.MetricSetName = &v return s } func (s *DescribeDiagnosticMetricSetsResponseBodyMetricSets) SetResourceType(v string) *DescribeDiagnosticMetricSetsResponseBodyMetricSets { s.ResourceType = &v return s } func (s *DescribeDiagnosticMetricSetsResponseBodyMetricSets) SetType(v string) *DescribeDiagnosticMetricSetsResponseBodyMetricSets { s.Type = &v return s } type DescribeDiagnosticMetricSetsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDiagnosticMetricSetsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDiagnosticMetricSetsResponse) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricSetsResponse) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricSetsResponse) SetHeaders(v map[string]*string) *DescribeDiagnosticMetricSetsResponse { s.Headers = v return s } func (s *DescribeDiagnosticMetricSetsResponse) SetStatusCode(v int32) *DescribeDiagnosticMetricSetsResponse { s.StatusCode = &v return s } func (s *DescribeDiagnosticMetricSetsResponse) SetBody(v *DescribeDiagnosticMetricSetsResponseBody) *DescribeDiagnosticMetricSetsResponse { s.Body = v return s } type DescribeDiagnosticMetricsRequest struct { // The ID of the request. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The ID of diagnostic metric. MetricIds []*string `json:"MetricIds,omitempty" xml:"MetricIds,omitempty" type:"Repeated"` // The maximum number of entries to return on each page. Maximum value: 100. // // Default value: // // * If this parameter is left empty, the default value is 10. // * If this parameter is set to a value greater than 100, the default value is 100. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The IDs of diagnostic metrics. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The query token. Set the value to the `NextToken` value returned in the last call to the DescribeDiagnosticMetrics operation. Leave this parameter empty the first time you call this operation. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` } func (s DescribeDiagnosticMetricsRequest) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricsRequest) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricsRequest) SetMaxResults(v int32) *DescribeDiagnosticMetricsRequest { s.MaxResults = &v return s } func (s *DescribeDiagnosticMetricsRequest) SetMetricIds(v []*string) *DescribeDiagnosticMetricsRequest { s.MetricIds = v return s } func (s *DescribeDiagnosticMetricsRequest) SetNextToken(v string) *DescribeDiagnosticMetricsRequest { s.NextToken = &v return s } func (s *DescribeDiagnosticMetricsRequest) SetRegionId(v string) *DescribeDiagnosticMetricsRequest { s.RegionId = &v return s } func (s *DescribeDiagnosticMetricsRequest) SetResourceType(v string) *DescribeDiagnosticMetricsRequest { s.ResourceType = &v return s } type DescribeDiagnosticMetricsResponseBody struct { // The ID of the diagnostic metric. Metrics []*DescribeDiagnosticMetricsResponseBodyMetrics `json:"Metrics,omitempty" xml:"Metrics,omitempty" type:"Repeated"` // The list of diagnostic metrics. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The query token returned in this call. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeDiagnosticMetricsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricsResponseBody) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricsResponseBody) SetMetrics(v []*DescribeDiagnosticMetricsResponseBodyMetrics) *DescribeDiagnosticMetricsResponseBody { s.Metrics = v return s } func (s *DescribeDiagnosticMetricsResponseBody) SetNextToken(v string) *DescribeDiagnosticMetricsResponseBody { s.NextToken = &v return s } func (s *DescribeDiagnosticMetricsResponseBody) SetRequestId(v string) *DescribeDiagnosticMetricsResponseBody { s.RequestId = &v return s } type DescribeDiagnosticMetricsResponseBodyMetrics struct { // CPU diagnostic Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The operating system type supported by the diagnostic metric. Valid values: // // * Windows // * Linux // * All: both Windows and Linux GuestMetric *bool `json:"GuestMetric,omitempty" xml:"GuestMetric,omitempty"` // The description of the diagnostic metric. MetricCategory *string `json:"MetricCategory,omitempty" xml:"MetricCategory,omitempty"` // The name of the diagnostic metric. MetricId *string `json:"MetricId,omitempty" xml:"MetricId,omitempty"` // CPU diagnostic MetricName *string `json:"MetricName,omitempty" xml:"MetricName,omitempty"` // Indicates whether the diagnostic metric needs to be assessed by running a Cloud Assistant command in a guest operating system. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` SupportedOperatingSystem *string `json:"SupportedOperatingSystem,omitempty" xml:"SupportedOperatingSystem,omitempty"` } func (s DescribeDiagnosticMetricsResponseBodyMetrics) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricsResponseBodyMetrics) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricsResponseBodyMetrics) SetDescription(v string) *DescribeDiagnosticMetricsResponseBodyMetrics { s.Description = &v return s } func (s *DescribeDiagnosticMetricsResponseBodyMetrics) SetGuestMetric(v bool) *DescribeDiagnosticMetricsResponseBodyMetrics { s.GuestMetric = &v return s } func (s *DescribeDiagnosticMetricsResponseBodyMetrics) SetMetricCategory(v string) *DescribeDiagnosticMetricsResponseBodyMetrics { s.MetricCategory = &v return s } func (s *DescribeDiagnosticMetricsResponseBodyMetrics) SetMetricId(v string) *DescribeDiagnosticMetricsResponseBodyMetrics { s.MetricId = &v return s } func (s *DescribeDiagnosticMetricsResponseBodyMetrics) SetMetricName(v string) *DescribeDiagnosticMetricsResponseBodyMetrics { s.MetricName = &v return s } func (s *DescribeDiagnosticMetricsResponseBodyMetrics) SetResourceType(v string) *DescribeDiagnosticMetricsResponseBodyMetrics { s.ResourceType = &v return s } func (s *DescribeDiagnosticMetricsResponseBodyMetrics) SetSupportedOperatingSystem(v string) *DescribeDiagnosticMetricsResponseBodyMetrics { s.SupportedOperatingSystem = &v return s } type DescribeDiagnosticMetricsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDiagnosticMetricsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDiagnosticMetricsResponse) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticMetricsResponse) GoString() string { return s.String() } func (s *DescribeDiagnosticMetricsResponse) SetHeaders(v map[string]*string) *DescribeDiagnosticMetricsResponse { s.Headers = v return s } func (s *DescribeDiagnosticMetricsResponse) SetStatusCode(v int32) *DescribeDiagnosticMetricsResponse { s.StatusCode = &v return s } func (s *DescribeDiagnosticMetricsResponse) SetBody(v *DescribeDiagnosticMetricsResponseBody) *DescribeDiagnosticMetricsResponse { s.Body = v return s } type DescribeDiagnosticReportAttributesRequest struct { // The region ID of the diagnostic report. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the diagnostic report. ReportId *string `json:"ReportId,omitempty" xml:"ReportId,omitempty"` } func (s DescribeDiagnosticReportAttributesRequest) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportAttributesRequest) GoString() string { return s.String() } func (s *DescribeDiagnosticReportAttributesRequest) SetRegionId(v string) *DescribeDiagnosticReportAttributesRequest { s.RegionId = &v return s } func (s *DescribeDiagnosticReportAttributesRequest) SetReportId(v string) *DescribeDiagnosticReportAttributesRequest { s.ReportId = &v return s } type DescribeDiagnosticReportAttributesResponseBody struct { // The extended attributes of the diagnostic report. Attributes *string `json:"Attributes,omitempty" xml:"Attributes,omitempty"` // The time when the diagnostic report was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The end of the reporting period of the diagnostic report. The value is the EndTime value that was passed in when you called the [CreateDiagnosticReport](~~442490~~) operation to create the diagnostic report. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The time when the diagnostic report was complete. FinishedTime *string `json:"FinishedTime,omitempty" xml:"FinishedTime,omitempty"` // The results of all diagnostic metrics in the diagnostic metric set. MetricResults *DescribeDiagnosticReportAttributesResponseBodyMetricResults `json:"MetricResults,omitempty" xml:"MetricResults,omitempty" type:"Struct"` // The ID of the diagnostic metric set. MetricSetId *string `json:"MetricSetId,omitempty" xml:"MetricSetId,omitempty"` // The ID of the diagnostic report, which is the unique identifier of the report. ReportId *string `json:"ReportId,omitempty" xml:"ReportId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The resource ID. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` // The type of the resource. ResourceType can only be set to instance, which indicates that only instances are supported. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The severity level of the diagnostic report. The value of this parameter is determined by the highest severity level of all diagnostic metrics. Valid values: // // * Unknown: The diagnostic has not started, failed to run, or exited unexpectedly without a diagnosis. // * Normal: No exceptions were detected. // * Info: Diagnostic information was recorded and may be related to exceptions. // * Warn: Diagnostic information was recorded and may indicate potential exceptions. // * Critical: Critical exceptions were detected. Severity *string `json:"Severity,omitempty" xml:"Severity,omitempty"` // The beginning of the reporting period of the diagnostic report. The value is the StartTime value that was passed in when you called the [CreateDiagnosticReport](~~442490~~) operation to create the diagnostic report. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The state of the diagnostic report. Valid values: // // * InProgress: The diagnostic is in progress. // * Finished: The diagnostic is complete. // * Failed: The diagnostic failed. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeDiagnosticReportAttributesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportAttributesResponseBody) GoString() string { return s.String() } func (s *DescribeDiagnosticReportAttributesResponseBody) SetAttributes(v string) *DescribeDiagnosticReportAttributesResponseBody { s.Attributes = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetCreationTime(v string) *DescribeDiagnosticReportAttributesResponseBody { s.CreationTime = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetEndTime(v string) *DescribeDiagnosticReportAttributesResponseBody { s.EndTime = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetFinishedTime(v string) *DescribeDiagnosticReportAttributesResponseBody { s.FinishedTime = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetMetricResults(v *DescribeDiagnosticReportAttributesResponseBodyMetricResults) *DescribeDiagnosticReportAttributesResponseBody { s.MetricResults = v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetMetricSetId(v string) *DescribeDiagnosticReportAttributesResponseBody { s.MetricSetId = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetReportId(v string) *DescribeDiagnosticReportAttributesResponseBody { s.ReportId = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetRequestId(v string) *DescribeDiagnosticReportAttributesResponseBody { s.RequestId = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetResourceId(v string) *DescribeDiagnosticReportAttributesResponseBody { s.ResourceId = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetResourceType(v string) *DescribeDiagnosticReportAttributesResponseBody { s.ResourceType = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetSeverity(v string) *DescribeDiagnosticReportAttributesResponseBody { s.Severity = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetStartTime(v string) *DescribeDiagnosticReportAttributesResponseBody { s.StartTime = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBody) SetStatus(v string) *DescribeDiagnosticReportAttributesResponseBody { s.Status = &v return s } type DescribeDiagnosticReportAttributesResponseBodyMetricResults struct { MetricResult []*DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult `json:"MetricResult,omitempty" xml:"MetricResult,omitempty" type:"Repeated"` } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResults) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResults) GoString() string { return s.String() } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResults) SetMetricResult(v []*DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) *DescribeDiagnosticReportAttributesResponseBodyMetricResults { s.MetricResult = v return s } type DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult struct { // The diagnosed issues. Issues *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssues `json:"Issues,omitempty" xml:"Issues,omitempty" type:"Struct"` // The category of the diagnostic metric. MetricCategory *string `json:"MetricCategory,omitempty" xml:"MetricCategory,omitempty"` // The ID of the diagnostic metric. MetricId *string `json:"MetricId,omitempty" xml:"MetricId,omitempty"` // The severity level of the diagnostic metric. Valid values: // // * Unknown: The diagnostic has not started, failed to run, or exited unexpectedly without a diagnosis. // * Normal: No exceptions were detected. // * Info: Diagnostic information was recorded and may be related to exceptions. // * NotSupport: The version of the guest operating system does support diagnosing the metric. // * Warn: Diagnostic information was recorded and may indicate potential exceptions. // * Critical: Critical exceptions were detected. Severity *string `json:"Severity,omitempty" xml:"Severity,omitempty"` // The state of the diagnostic metric. Valid values: // // * InProgress. // * Finished. // * Failed. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) GoString() string { return s.String() } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) SetIssues(v *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssues) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult { s.Issues = v return s } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) SetMetricCategory(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult { s.MetricCategory = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) SetMetricId(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult { s.MetricId = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) SetSeverity(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult { s.Severity = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult) SetStatus(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResult { s.Status = &v return s } type DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssues struct { Issue []*DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue `json:"Issue,omitempty" xml:"Issue,omitempty" type:"Repeated"` } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssues) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssues) GoString() string { return s.String() } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssues) SetIssue(v []*DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssues { s.Issue = v return s } type DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue struct { // The additional data about the diagnosed issue. The value is a JSON string. Additional *string `json:"Additional,omitempty" xml:"Additional,omitempty"` // The ID of the diagnosed issue, which is the unique identifier of the issue. IssueId *string `json:"IssueId,omitempty" xml:"IssueId,omitempty"` // The time when the diagnosed issue occurred. OccurrenceTime *string `json:"OccurrenceTime,omitempty" xml:"OccurrenceTime,omitempty"` // The severity level of the diagnosed issue. Valid values: // // * Info: Diagnostic information was recorded and may be related to exceptions. // * Warn: Diagnostic information was recorded and may indicate potential exceptions. // * Critical: Critical exceptions were detected. Severity *string `json:"Severity,omitempty" xml:"Severity,omitempty"` } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue) GoString() string { return s.String() } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue) SetAdditional(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue { s.Additional = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue) SetIssueId(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue { s.IssueId = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue) SetOccurrenceTime(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue { s.OccurrenceTime = &v return s } func (s *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue) SetSeverity(v string) *DescribeDiagnosticReportAttributesResponseBodyMetricResultsMetricResultIssuesIssue { s.Severity = &v return s } type DescribeDiagnosticReportAttributesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDiagnosticReportAttributesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDiagnosticReportAttributesResponse) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportAttributesResponse) GoString() string { return s.String() } func (s *DescribeDiagnosticReportAttributesResponse) SetHeaders(v map[string]*string) *DescribeDiagnosticReportAttributesResponse { s.Headers = v return s } func (s *DescribeDiagnosticReportAttributesResponse) SetStatusCode(v int32) *DescribeDiagnosticReportAttributesResponse { s.StatusCode = &v return s } func (s *DescribeDiagnosticReportAttributesResponse) SetBody(v *DescribeDiagnosticReportAttributesResponseBody) *DescribeDiagnosticReportAttributesResponse { s.Body = v return s } type DescribeDiagnosticReportsRequest struct { // The maximum number of entries to return on each page. Maximum value: 100. // // Default value: // // * If this parameter is left empty, the default value is 10. // * If this parameter is set to a value greater than 100, the default value is 100. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The query token. Set the value to the `NextToken` value returned in the last call to the DescribeDiagnosticReports operation. Leave this parameter empty the first time you call this operation. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The region ID of the diagnostic report. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The IDs of diagnostic reports. You can specify up to 100 report IDs. ReportIds []*string `json:"ReportIds,omitempty" xml:"ReportIds,omitempty" type:"Repeated"` // The IDs of resources. You can specify up to 100 resource IDs. ResourceIds []*string `json:"ResourceIds,omitempty" xml:"ResourceIds,omitempty" type:"Repeated"` // The severity level of the diagnostic report. Valid values: // // * Unknown: The diagnostic has not started, failed to run, or exited unexpectedly without a diagnosis. // * Normal: No exceptions are detected. // * Info: Diagnostic information is recorded and may be related to exceptions. // * Warn: Diagnostic information is recorded and may indicate exceptions. // * Critical: Critical exceptions are detected. Severity *string `json:"Severity,omitempty" xml:"Severity,omitempty"` // The state of the diagnostic report. Valid values: // // * InProgress: The diagnostic is in progress. // * Failed: The diagnostic failed. // * Finished: The diagnostic is complete. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeDiagnosticReportsRequest) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportsRequest) GoString() string { return s.String() } func (s *DescribeDiagnosticReportsRequest) SetMaxResults(v int32) *DescribeDiagnosticReportsRequest { s.MaxResults = &v return s } func (s *DescribeDiagnosticReportsRequest) SetNextToken(v string) *DescribeDiagnosticReportsRequest { s.NextToken = &v return s } func (s *DescribeDiagnosticReportsRequest) SetRegionId(v string) *DescribeDiagnosticReportsRequest { s.RegionId = &v return s } func (s *DescribeDiagnosticReportsRequest) SetReportIds(v []*string) *DescribeDiagnosticReportsRequest { s.ReportIds = v return s } func (s *DescribeDiagnosticReportsRequest) SetResourceIds(v []*string) *DescribeDiagnosticReportsRequest { s.ResourceIds = v return s } func (s *DescribeDiagnosticReportsRequest) SetSeverity(v string) *DescribeDiagnosticReportsRequest { s.Severity = &v return s } func (s *DescribeDiagnosticReportsRequest) SetStatus(v string) *DescribeDiagnosticReportsRequest { s.Status = &v return s } type DescribeDiagnosticReportsResponseBody struct { // The query token returned in this call. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The list of reports. Reports *DescribeDiagnosticReportsResponseBodyReports `json:"Reports,omitempty" xml:"Reports,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeDiagnosticReportsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportsResponseBody) GoString() string { return s.String() } func (s *DescribeDiagnosticReportsResponseBody) SetNextToken(v string) *DescribeDiagnosticReportsResponseBody { s.NextToken = &v return s } func (s *DescribeDiagnosticReportsResponseBody) SetReports(v *DescribeDiagnosticReportsResponseBodyReports) *DescribeDiagnosticReportsResponseBody { s.Reports = v return s } func (s *DescribeDiagnosticReportsResponseBody) SetRequestId(v string) *DescribeDiagnosticReportsResponseBody { s.RequestId = &v return s } type DescribeDiagnosticReportsResponseBodyReports struct { Report []*DescribeDiagnosticReportsResponseBodyReportsReport `json:"Report,omitempty" xml:"Report,omitempty" type:"Repeated"` } func (s DescribeDiagnosticReportsResponseBodyReports) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportsResponseBodyReports) GoString() string { return s.String() } func (s *DescribeDiagnosticReportsResponseBodyReports) SetReport(v []*DescribeDiagnosticReportsResponseBodyReportsReport) *DescribeDiagnosticReportsResponseBodyReports { s.Report = v return s } type DescribeDiagnosticReportsResponseBodyReportsReport struct { // The time when the diagnostic report was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The end of the reporting period of the diagnostic report. The value is the EndTime value that was passed in when you called the [CreateDiagnosticReport](~~442490~~) operation to create the diagnostic report. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The time when the diagnostic was complete. FinishedTime *string `json:"FinishedTime,omitempty" xml:"FinishedTime,omitempty"` // The list of issues. Issues *DescribeDiagnosticReportsResponseBodyReportsReportIssues `json:"Issues,omitempty" xml:"Issues,omitempty" type:"Struct"` // The ID of the diagnostic metric set. MetricSetId *string `json:"MetricSetId,omitempty" xml:"MetricSetId,omitempty"` // The ID of the diagnostic report. ReportId *string `json:"ReportId,omitempty" xml:"ReportId,omitempty"` // The ID of the resource. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` // The type of the resource. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The severity level of the diagnostic report. Valid values: // // * Unknown: The diagnostic has not started, failed to run, or exited unexpectedly without a diagnosis. // * Normal: No exceptions were detected. // * Info: Diagnostic information was recorded and may be related to exceptions. // * Warn: Diagnostic information was recorded and may indicate exceptions. // * Critical: Critical exceptions were detected. Severity *string `json:"Severity,omitempty" xml:"Severity,omitempty"` // The beginning of the reporting period of the diagnostic report. The value is the StartTime value that was passed in when you called the [CreateDiagnosticReport](~~442490~~) operation to create the diagnostic report. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The state of the diagnostic report. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeDiagnosticReportsResponseBodyReportsReport) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportsResponseBodyReportsReport) GoString() string { return s.String() } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetCreationTime(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.CreationTime = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetEndTime(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.EndTime = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetFinishedTime(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.FinishedTime = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetIssues(v *DescribeDiagnosticReportsResponseBodyReportsReportIssues) *DescribeDiagnosticReportsResponseBodyReportsReport { s.Issues = v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetMetricSetId(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.MetricSetId = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetReportId(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.ReportId = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetResourceId(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.ResourceId = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetResourceType(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.ResourceType = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetSeverity(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.Severity = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetStartTime(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.StartTime = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReport) SetStatus(v string) *DescribeDiagnosticReportsResponseBodyReportsReport { s.Status = &v return s } type DescribeDiagnosticReportsResponseBodyReportsReportIssues struct { Issue []*DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue `json:"Issue,omitempty" xml:"Issue,omitempty" type:"Repeated"` } func (s DescribeDiagnosticReportsResponseBodyReportsReportIssues) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportsResponseBodyReportsReportIssues) GoString() string { return s.String() } func (s *DescribeDiagnosticReportsResponseBodyReportsReportIssues) SetIssue(v []*DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue) *DescribeDiagnosticReportsResponseBodyReportsReportIssues { s.Issue = v return s } type DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue struct { // The unique ID of the diagnosed issue. IssueId *string `json:"IssueId,omitempty" xml:"IssueId,omitempty"` // The category of the diagnostic metric. MetricCategory *string `json:"MetricCategory,omitempty" xml:"MetricCategory,omitempty"` // The ID of the diagnostic metric. MetricId *string `json:"MetricId,omitempty" xml:"MetricId,omitempty"` // The severity level of the diagnostic metric. Valid values: // // * Info: Diagnostic information was recorded and may be related to exceptions. // * Warn: Diagnostic information was recorded and may indicate exceptions. // * Critical: Critical exceptions were detected. Severity *string `json:"Severity,omitempty" xml:"Severity,omitempty"` } func (s DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue) GoString() string { return s.String() } func (s *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue) SetIssueId(v string) *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue { s.IssueId = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue) SetMetricCategory(v string) *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue { s.MetricCategory = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue) SetMetricId(v string) *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue { s.MetricId = &v return s } func (s *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue) SetSeverity(v string) *DescribeDiagnosticReportsResponseBodyReportsReportIssuesIssue { s.Severity = &v return s } type DescribeDiagnosticReportsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDiagnosticReportsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDiagnosticReportsResponse) String() string { return tea.Prettify(s) } func (s DescribeDiagnosticReportsResponse) GoString() string { return s.String() } func (s *DescribeDiagnosticReportsResponse) SetHeaders(v map[string]*string) *DescribeDiagnosticReportsResponse { s.Headers = v return s } func (s *DescribeDiagnosticReportsResponse) SetStatusCode(v int32) *DescribeDiagnosticReportsResponse { s.StatusCode = &v return s } func (s *DescribeDiagnosticReportsResponse) SetBody(v *DescribeDiagnosticReportsResponseBody) *DescribeDiagnosticReportsResponse { s.Body = v return s } type DescribeDiskMonitorDataRequest struct { // The disk ID. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The end of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The interval at which to retrieve the monitoring data. Unit: seconds. Valid values: // // * 60 // * 600 // * 3600 // // Default value: 60. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The beginning of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeDiskMonitorDataRequest) String() string { return tea.Prettify(s) } func (s DescribeDiskMonitorDataRequest) GoString() string { return s.String() } func (s *DescribeDiskMonitorDataRequest) SetDiskId(v string) *DescribeDiskMonitorDataRequest { s.DiskId = &v return s } func (s *DescribeDiskMonitorDataRequest) SetEndTime(v string) *DescribeDiskMonitorDataRequest { s.EndTime = &v return s } func (s *DescribeDiskMonitorDataRequest) SetOwnerAccount(v string) *DescribeDiskMonitorDataRequest { s.OwnerAccount = &v return s } func (s *DescribeDiskMonitorDataRequest) SetOwnerId(v int64) *DescribeDiskMonitorDataRequest { s.OwnerId = &v return s } func (s *DescribeDiskMonitorDataRequest) SetPeriod(v int32) *DescribeDiskMonitorDataRequest { s.Period = &v return s } func (s *DescribeDiskMonitorDataRequest) SetResourceOwnerAccount(v string) *DescribeDiskMonitorDataRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDiskMonitorDataRequest) SetResourceOwnerId(v int64) *DescribeDiskMonitorDataRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDiskMonitorDataRequest) SetStartTime(v string) *DescribeDiskMonitorDataRequest { s.StartTime = &v return s } type DescribeDiskMonitorDataResponseBody struct { // The monitoring data of the disk. MonitorData *DescribeDiskMonitorDataResponseBodyMonitorData `json:"MonitorData,omitempty" xml:"MonitorData,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of returned monitoring data entries. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeDiskMonitorDataResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDiskMonitorDataResponseBody) GoString() string { return s.String() } func (s *DescribeDiskMonitorDataResponseBody) SetMonitorData(v *DescribeDiskMonitorDataResponseBodyMonitorData) *DescribeDiskMonitorDataResponseBody { s.MonitorData = v return s } func (s *DescribeDiskMonitorDataResponseBody) SetRequestId(v string) *DescribeDiskMonitorDataResponseBody { s.RequestId = &v return s } func (s *DescribeDiskMonitorDataResponseBody) SetTotalCount(v int32) *DescribeDiskMonitorDataResponseBody { s.TotalCount = &v return s } type DescribeDiskMonitorDataResponseBodyMonitorData struct { DiskMonitorData []*DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData `json:"DiskMonitorData,omitempty" xml:"DiskMonitorData,omitempty" type:"Repeated"` } func (s DescribeDiskMonitorDataResponseBodyMonitorData) String() string { return tea.Prettify(s) } func (s DescribeDiskMonitorDataResponseBodyMonitorData) GoString() string { return s.String() } func (s *DescribeDiskMonitorDataResponseBodyMonitorData) SetDiskMonitorData(v []*DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) *DescribeDiskMonitorDataResponseBodyMonitorData { s.DiskMonitorData = v return s } type DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData struct { // The read bandwidth of the disk. Unit: byte/s. BPSRead *int32 `json:"BPSRead,omitempty" xml:"BPSRead,omitempty"` // The total read and write bandwidth of the disk. Unit: byte/s. BPSTotal *int32 `json:"BPSTotal,omitempty" xml:"BPSTotal,omitempty"` // The write bandwidth of the disk. Unit: byte/s. BPSWrite *int32 `json:"BPSWrite,omitempty" xml:"BPSWrite,omitempty"` // The ID of the disk. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The number of read I/O operations per second on the disk. IOPSRead *int32 `json:"IOPSRead,omitempty" xml:"IOPSRead,omitempty"` // The total number of read and write I/O operations per second on the disk. IOPSTotal *int32 `json:"IOPSTotal,omitempty" xml:"IOPSTotal,omitempty"` // The number of write I/O operations per second on the disk. IOPSWrite *int32 `json:"IOPSWrite,omitempty" xml:"IOPSWrite,omitempty"` // The read latency of the disk. Unit: microseconds. LatencyRead *int32 `json:"LatencyRead,omitempty" xml:"LatencyRead,omitempty"` // The write latency of the disk. Unit: microseconds. LatencyWrite *int32 `json:"LatencyWrite,omitempty" xml:"LatencyWrite,omitempty"` // The timestamp of the monitoring data. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. TimeStamp *string `json:"TimeStamp,omitempty" xml:"TimeStamp,omitempty"` } func (s DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) String() string { return tea.Prettify(s) } func (s DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) GoString() string { return s.String() } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetBPSRead(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.BPSRead = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetBPSTotal(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.BPSTotal = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetBPSWrite(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.BPSWrite = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetDiskId(v string) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.DiskId = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetIOPSRead(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.IOPSRead = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetIOPSTotal(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.IOPSTotal = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetIOPSWrite(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.IOPSWrite = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetLatencyRead(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.LatencyRead = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetLatencyWrite(v int32) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.LatencyWrite = &v return s } func (s *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData) SetTimeStamp(v string) *DescribeDiskMonitorDataResponseBodyMonitorDataDiskMonitorData { s.TimeStamp = &v return s } type DescribeDiskMonitorDataResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDiskMonitorDataResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDiskMonitorDataResponse) String() string { return tea.Prettify(s) } func (s DescribeDiskMonitorDataResponse) GoString() string { return s.String() } func (s *DescribeDiskMonitorDataResponse) SetHeaders(v map[string]*string) *DescribeDiskMonitorDataResponse { s.Headers = v return s } func (s *DescribeDiskMonitorDataResponse) SetStatusCode(v int32) *DescribeDiskMonitorDataResponse { s.StatusCode = &v return s } func (s *DescribeDiskMonitorDataResponse) SetBody(v *DescribeDiskMonitorDataResponseBody) *DescribeDiskMonitorDataResponse { s.Body = v return s } type DescribeDisksRequest struct { Filter []*DescribeDisksRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` // The attribute value. Set the value to IOPS, which indicates the maximum IOPS of the disk. AdditionalAttributes []*string `json:"AdditionalAttributes,omitempty" xml:"AdditionalAttributes,omitempty" type:"Repeated"` // The ID of the automatic snapshot policy that is applied to the cloud disk. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // The category of the disk. Valid values: // // * all: all disk categories // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: enhanced SSD (ESSD) // * cloud_auto: ESSD AutoPL disk // * local_ssd_pro: I/O-intensive local disk // * local_hdd_pro: throughput-intensive local disk // * cloud_essd_entry: ESSD Entry disk // * ephemeral: retired local disk // * ephemeral_ssd: retired local SSD // // Default value: all. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Specifies whether to delete the automatic snapshots of the cloud disk after the disk is released. // // * true // * false // // Default value: false DeleteAutoSnapshot *bool `json:"DeleteAutoSnapshot,omitempty" xml:"DeleteAutoSnapshot,omitempty"` // Specifies whether to release the cloud disk when its associated instance is released. Valid values: // // * true: The cloud disk is released when its associated instance is released. // * false: The cloud disk is not released but is retained as a pay-as-you-go data disk after its associated instance is released. // // Default value: false DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The disk billing method. Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go DiskChargeType *string `json:"DiskChargeType,omitempty" xml:"DiskChargeType,omitempty"` // The of disk IDs. The value is a JSON array that consists of up to 100 disk IDs. Separate the disk IDs with commas (,). DiskIds *string `json:"DiskIds,omitempty" xml:"DiskIds,omitempty"` // The cloud disk or local disk name. DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // The disk type. Valid values: // // * all: system disk and data disk // * system: system disk // * data: data disk // // Default value: all. DiskType *string `json:"DiskType,omitempty" xml:"DiskType,omitempty"` // Specifies whether to perform only a dry run without performing the actual request. Valid values: // // * true: performs only a dry run. The systems checks whether your AccessKey pair is valid, whether RAM users are granted permissions, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. // * false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. // // Default value: false DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // Specifies whether to enable the automatic snapshot policy feature for the cloud disk. // // * true // * false // // > By default, the automatic snapshot policy feature is enabled for cloud disks that are already created. Additionally, only the automatic snapshot policy needs to be applied to a cloud disk before you can use the automatic snapshot policy. EnableAutoSnapshot *bool `json:"EnableAutoSnapshot,omitempty" xml:"EnableAutoSnapshot,omitempty"` // Specifies whether an automatic snapshot policy is applied to the cloud disk. // // * true: An automatic snapshot policy is applied to the cloud disk. // * false: No automatic snapshot policy is applied to the cloud disk. // // Default value: false EnableAutomatedSnapshotPolicy *bool `json:"EnableAutomatedSnapshotPolicy,omitempty" xml:"EnableAutomatedSnapshotPolicy,omitempty"` // Specifies whether the disk is a Shared Block Storage device. EnableShared *bool `json:"EnableShared,omitempty" xml:"EnableShared,omitempty"` // Specifies whether to query only encrypted cloud disks. // // * true: queries only encrypted cloud disks. // * false: does not query encrypted cloud disks. // // Default value: false Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The ID of the instance to which the cloud disk or local disk is attached. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The ID of the Key Management Service (KMS) key that is used by the cloud disk. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` // The reason why the disk is locked. Valid values: // // * financial: The disk is locked due to overdue payments. // * security: The disk is locked due to security reasons. // * recycling: The preemptible instance is locked and pending release. // * dedicatedhostfinancial: The ECS instance is locked due to overdue payments of the dedicated host. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` // The maximum number of entries per page. Valid values: 10 to 500. // // Default value: // // * If you do not specify this parameter or you set this parameter to a value less than 10, the default value is 10. // * If you set this parameter to a value greater than 500, the default value is 500. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // Specifies whether the multi-attach feature is enabled for the disk. Valid values: // // * Disabled: The multi-attach feature is not enabled for the disk. // * Enabled: The multi-attach feature is enabled for the disk. // * LegacyShared: Shared Block Storage devices are queried. // // The multi-attach feature is available to select users. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm#/ticket/list). MultiAttach *string `json:"MultiAttach,omitempty" xml:"MultiAttach,omitempty"` // The query token. Set the value to the `NextToken` value that was returned in the last call to this operation. // // For more information about how to check the responses returned by this operation, see the preceding "Description" section. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return per page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // Specifies whether the disk is removable. Valid values: // // * true: The disk is removable. A removable disk can independently exist and can be attached to or detached from an instance within the same zone. // * false: The disk is not removable. A disk that is not removable cannot independently exist nor can it be attached to or detached from an instance within the same zone. // // The `Portable` attribute of the following disks is `false`, and these disks share the same lifecycle with their associated instances: // // * Local disks // * Local SSDs // * Subscription data disks Portable *bool `json:"Portable,omitempty" xml:"Portable,omitempty"` // The region ID of the disk. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the disk belongs. If you specify this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be returned. // // > Resources in the default resource group are displayed in the response regardless of whether you specify this parameter. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the snapshot from which you create the cloud disk. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The state of the cloud disk. For more information, see [Disk states](~~25689~~). Valid values: // // * In_use // * Available // * Attaching // * Detaching // * Creating // * ReIniting // * All // // Default value: All. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the disk. Tag []*DescribeDisksRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The zone ID. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDisksRequest) String() string { return tea.Prettify(s) } func (s DescribeDisksRequest) GoString() string { return s.String() } func (s *DescribeDisksRequest) SetFilter(v []*DescribeDisksRequestFilter) *DescribeDisksRequest { s.Filter = v return s } func (s *DescribeDisksRequest) SetAdditionalAttributes(v []*string) *DescribeDisksRequest { s.AdditionalAttributes = v return s } func (s *DescribeDisksRequest) SetAutoSnapshotPolicyId(v string) *DescribeDisksRequest { s.AutoSnapshotPolicyId = &v return s } func (s *DescribeDisksRequest) SetCategory(v string) *DescribeDisksRequest { s.Category = &v return s } func (s *DescribeDisksRequest) SetDeleteAutoSnapshot(v bool) *DescribeDisksRequest { s.DeleteAutoSnapshot = &v return s } func (s *DescribeDisksRequest) SetDeleteWithInstance(v bool) *DescribeDisksRequest { s.DeleteWithInstance = &v return s } func (s *DescribeDisksRequest) SetDiskChargeType(v string) *DescribeDisksRequest { s.DiskChargeType = &v return s } func (s *DescribeDisksRequest) SetDiskIds(v string) *DescribeDisksRequest { s.DiskIds = &v return s } func (s *DescribeDisksRequest) SetDiskName(v string) *DescribeDisksRequest { s.DiskName = &v return s } func (s *DescribeDisksRequest) SetDiskType(v string) *DescribeDisksRequest { s.DiskType = &v return s } func (s *DescribeDisksRequest) SetDryRun(v bool) *DescribeDisksRequest { s.DryRun = &v return s } func (s *DescribeDisksRequest) SetEnableAutoSnapshot(v bool) *DescribeDisksRequest { s.EnableAutoSnapshot = &v return s } func (s *DescribeDisksRequest) SetEnableAutomatedSnapshotPolicy(v bool) *DescribeDisksRequest { s.EnableAutomatedSnapshotPolicy = &v return s } func (s *DescribeDisksRequest) SetEnableShared(v bool) *DescribeDisksRequest { s.EnableShared = &v return s } func (s *DescribeDisksRequest) SetEncrypted(v bool) *DescribeDisksRequest { s.Encrypted = &v return s } func (s *DescribeDisksRequest) SetInstanceId(v string) *DescribeDisksRequest { s.InstanceId = &v return s } func (s *DescribeDisksRequest) SetKMSKeyId(v string) *DescribeDisksRequest { s.KMSKeyId = &v return s } func (s *DescribeDisksRequest) SetLockReason(v string) *DescribeDisksRequest { s.LockReason = &v return s } func (s *DescribeDisksRequest) SetMaxResults(v int32) *DescribeDisksRequest { s.MaxResults = &v return s } func (s *DescribeDisksRequest) SetMultiAttach(v string) *DescribeDisksRequest { s.MultiAttach = &v return s } func (s *DescribeDisksRequest) SetNextToken(v string) *DescribeDisksRequest { s.NextToken = &v return s } func (s *DescribeDisksRequest) SetOwnerAccount(v string) *DescribeDisksRequest { s.OwnerAccount = &v return s } func (s *DescribeDisksRequest) SetOwnerId(v int64) *DescribeDisksRequest { s.OwnerId = &v return s } func (s *DescribeDisksRequest) SetPageNumber(v int32) *DescribeDisksRequest { s.PageNumber = &v return s } func (s *DescribeDisksRequest) SetPageSize(v int32) *DescribeDisksRequest { s.PageSize = &v return s } func (s *DescribeDisksRequest) SetPortable(v bool) *DescribeDisksRequest { s.Portable = &v return s } func (s *DescribeDisksRequest) SetRegionId(v string) *DescribeDisksRequest { s.RegionId = &v return s } func (s *DescribeDisksRequest) SetResourceGroupId(v string) *DescribeDisksRequest { s.ResourceGroupId = &v return s } func (s *DescribeDisksRequest) SetResourceOwnerAccount(v string) *DescribeDisksRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDisksRequest) SetResourceOwnerId(v int64) *DescribeDisksRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDisksRequest) SetSnapshotId(v string) *DescribeDisksRequest { s.SnapshotId = &v return s } func (s *DescribeDisksRequest) SetStatus(v string) *DescribeDisksRequest { s.Status = &v return s } func (s *DescribeDisksRequest) SetTag(v []*DescribeDisksRequestTag) *DescribeDisksRequest { s.Tag = v return s } func (s *DescribeDisksRequest) SetZoneId(v string) *DescribeDisksRequest { s.ZoneId = &v return s } type DescribeDisksRequestFilter struct { // The key of filter 1 used to query resources. Set the value to `CreationStartTime`. You can specify a time by setting both `Filter.1.Key` and `Filter.1.Value` to query resources that were created after the specified time. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of filter 1 used to query resources. Set the value to a time. If you specify this parameter, you must also specify the `Filter.1.Key` parameter. Specify the time in the `yyyy-MM-ddTHH:mmZ` format. The time must be in UTC. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeDisksRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeDisksRequestFilter) GoString() string { return s.String() } func (s *DescribeDisksRequestFilter) SetKey(v string) *DescribeDisksRequestFilter { s.Key = &v return s } func (s *DescribeDisksRequestFilter) SetValue(v string) *DescribeDisksRequestFilter { s.Value = &v return s } type DescribeDisksRequestTag struct { // The disk tag key. Valid values of N: 1 to 20. // // Up to 1,000 resources that match the specified tags can be returned in the response. To query more than 1,000 resources that match the specified tags, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The disk tag value. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeDisksRequestTag) String() string { return tea.Prettify(s) } func (s DescribeDisksRequestTag) GoString() string { return s.String() } func (s *DescribeDisksRequestTag) SetKey(v string) *DescribeDisksRequestTag { s.Key = &v return s } func (s *DescribeDisksRequestTag) SetValue(v string) *DescribeDisksRequestTag { s.Value = &v return s } type DescribeDisksResponseBody struct { // Details about the cloud disks or local disks. Disks *DescribeDisksResponseBodyDisks `json:"Disks,omitempty" xml:"Disks,omitempty" type:"Struct"` // The returned pagination token which can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The returned page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeDisksResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBody) GoString() string { return s.String() } func (s *DescribeDisksResponseBody) SetDisks(v *DescribeDisksResponseBodyDisks) *DescribeDisksResponseBody { s.Disks = v return s } func (s *DescribeDisksResponseBody) SetNextToken(v string) *DescribeDisksResponseBody { s.NextToken = &v return s } func (s *DescribeDisksResponseBody) SetPageNumber(v int32) *DescribeDisksResponseBody { s.PageNumber = &v return s } func (s *DescribeDisksResponseBody) SetPageSize(v int32) *DescribeDisksResponseBody { s.PageSize = &v return s } func (s *DescribeDisksResponseBody) SetRequestId(v string) *DescribeDisksResponseBody { s.RequestId = &v return s } func (s *DescribeDisksResponseBody) SetTotalCount(v int32) *DescribeDisksResponseBody { s.TotalCount = &v return s } type DescribeDisksResponseBodyDisks struct { Disk []*DescribeDisksResponseBodyDisksDisk `json:"Disk,omitempty" xml:"Disk,omitempty" type:"Repeated"` } func (s DescribeDisksResponseBodyDisks) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisks) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisks) SetDisk(v []*DescribeDisksResponseBodyDisksDisk) *DescribeDisksResponseBodyDisks { s.Disk = v return s } type DescribeDisksResponseBodyDisksDisk struct { // The time when the cloud disk was last attached. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mmZ format. The time is displayed in UTC. AttachedTime *string `json:"AttachedTime,omitempty" xml:"AttachedTime,omitempty"` // The attachment information about the cloud disk. The value is an array that contains a list of `Attachment` objects. The value is not returned when you query Shared Block Storage devices. Attachments *DescribeDisksResponseBodyDisksDiskAttachments `json:"Attachments,omitempty" xml:"Attachments,omitempty" type:"Struct"` // The ID of the automatic snapshot policy that is applied to the cloud disk. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // This parameter is in invitational preview and is not publicly available. BdfId *string `json:"BdfId,omitempty" xml:"BdfId,omitempty"` // Indicates whether the performance burst feature is enabled. Valid values: // // * true // * false // // This parameter is available only if you set `DiskCategory` to `cloud_auto`. For more information, see [ESSD AutoPL disks](~~368372~~). BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` // The category of the disk. Valid values: // // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: ESSD // * cloud_auto: ESSD AutoPL disk // * local_ssd_pro: I/O-intensive local disk // * local_hdd_pro: throughput-intensive local disk // * cloud_essd_entry: ESSD Entry disk // * ephemeral: retired local disk // * ephemeral_ssd: retired local SSD Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The time when the disk was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // Indicates whether the automatic snapshots of the cloud disk are deleted when the cloud disk is released. Valid values: // // * true: The automatic snapshots of the cloud disk are deleted when the disk is released. // * false: The automatic snapshots of the cloud disk are retained when the disk is released. // // Snapshots that were created in the Elastic Compute Service (ECS) console or by calling the [CreateSnapshot](~~25524~~) operation are retained and not affected by this parameter. DeleteAutoSnapshot *bool `json:"DeleteAutoSnapshot,omitempty" xml:"DeleteAutoSnapshot,omitempty"` // Indicates whether the cloud disk is released when the instance to which the disk is attached is released. Valid values: // // * true: The disk is released when the instance to which the disk is attached is released. // * false: The disk is retained when the instance to which the disk is attached is released. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of the disk. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The time when the cloud disk was last detached. DetachedTime *string `json:"DetachedTime,omitempty" xml:"DetachedTime,omitempty"` // The device name of the disk on the instance to which the disk is attached. Example: /dev/xvdb. Take note of the following items: // // * This parameter has a value only when the `Status` value is `In_use` or `Detaching`. // * This parameter is empty for disks that have the multi-attach feature enabled. You can query the attachment information of the disk based on the returned list of `Attachment` objects. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The billing method of the disk. Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go DiskChargeType *string `json:"DiskChargeType,omitempty" xml:"DiskChargeType,omitempty"` // The ID of the disk. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The name of the disk. DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // Indicates whether the automatic snapshot policy feature is enabled for the cloud disk. EnableAutoSnapshot *bool `json:"EnableAutoSnapshot,omitempty" xml:"EnableAutoSnapshot,omitempty"` // Indicates whether an automatic snapshot policy is applied to the cloud disk. EnableAutomatedSnapshotPolicy *bool `json:"EnableAutomatedSnapshotPolicy,omitempty" xml:"EnableAutomatedSnapshotPolicy,omitempty"` // Indicates whether the cloud disk is encrypted. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The time when the subscription cloud disk expires. ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` // The maximum number of read and write operations per second. IOPS *int32 `json:"IOPS,omitempty" xml:"IOPS,omitempty"` // The maximum number of read operations per second. IOPSRead *int32 `json:"IOPSRead,omitempty" xml:"IOPSRead,omitempty"` // The maximum number of write operations per second. IOPSWrite *int32 `json:"IOPSWrite,omitempty" xml:"IOPSWrite,omitempty"` // The ID of the image that was used to create the instance. This parameter is empty unless the cloud disk was created from an image. The value of this parameter remains unchanged throughout the lifecycle of the cloud disk. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The ID of the instance to which the disk is attached. Take note of the following items: // // * This parameter has a value only when the `Status` value is `In_use` or `Detaching`. // * This parameter is empty for disks that have the multi-attach feature enabled. You can query the attachment information of the disk based on the returned list of `Attachment` objects. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The ID of the Key Management Service (KMS) key that is used for the cloud disk. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` // The number of instances to which the Shared Block Storage device is attached. MountInstanceNum *int32 `json:"MountInstanceNum,omitempty" xml:"MountInstanceNum,omitempty"` // The attachment information of the Shared Block Storage device. MountInstances *DescribeDisksResponseBodyDisksDiskMountInstances `json:"MountInstances,omitempty" xml:"MountInstances,omitempty" type:"Struct"` // Indicates whether the multi-attach feature is enabled for the cloud disk. MultiAttach *string `json:"MultiAttach,omitempty" xml:"MultiAttach,omitempty"` // The reasons why the disk was locked. OperationLocks *DescribeDisksResponseBodyDisksDiskOperationLocks `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty" type:"Struct"` // The performance level of the ESSD. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // Indicates whether the disk is removable. Portable *bool `json:"Portable,omitempty" xml:"Portable,omitempty"` // The product code of the disk in Alibaba Cloud Marketplace. ProductCode *string `json:"ProductCode,omitempty" xml:"ProductCode,omitempty"` // The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50,000, 1,000 × *Capacity - Baseline IOPS}. Baseline IOPS = min{1,800 + 50 × *Capacity, 50,000} // // This parameter is available only if you set `DiskCategory` to `cloud_auto`. For more information, see [ESSD AutoPL disks](~~368372~~). ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` // The region ID of the disk. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the disk belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The serial number of the disk. SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"` // The size of the disk. Unit: GiB. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot that was used to create the cloud disk. // // This parameter is empty unless the cloud disk was created from a snapshot. The value of this parameter remains unchanged throughout the lifecycle of the disk. SourceSnapshotId *string `json:"SourceSnapshotId,omitempty" xml:"SourceSnapshotId,omitempty"` // The state of the cloud disk. Valid values: // // * In_use // * Available // * Attaching // * Detaching // * Creating // * ReIniting Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The ID of the dedicated block storage cluster to which the cloud disk belongs. If your cloud disk belongs to the public block storage cluster, an empty value is returned. StorageClusterId *string `json:"StorageClusterId,omitempty" xml:"StorageClusterId,omitempty"` // The ID of the storage set. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` // The maximum number of partitions in the storage set. StorageSetPartitionNumber *int32 `json:"StorageSetPartitionNumber,omitempty" xml:"StorageSetPartitionNumber,omitempty"` // The tags of the disk. Tags *DescribeDisksResponseBodyDisksDiskTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The amount of data that can be transferred per second. Unit: MB/s. Throughput *int32 `json:"Throughput,omitempty" xml:"Throughput,omitempty"` // The amount of data that can be read per second. Unit: MB/s. ThroughputRead *int32 `json:"ThroughputRead,omitempty" xml:"ThroughputRead,omitempty"` // The amount of data that can be written per second. Unit: MB/s. ThroughputWrite *int32 `json:"ThroughputWrite,omitempty" xml:"ThroughputWrite,omitempty"` // The type of the disk. Valid values: // // * system: system disk // * data: data disk Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The zone ID of the disk. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeDisksResponseBodyDisksDisk) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDisk) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDisk) SetAttachedTime(v string) *DescribeDisksResponseBodyDisksDisk { s.AttachedTime = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetAttachments(v *DescribeDisksResponseBodyDisksDiskAttachments) *DescribeDisksResponseBodyDisksDisk { s.Attachments = v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetAutoSnapshotPolicyId(v string) *DescribeDisksResponseBodyDisksDisk { s.AutoSnapshotPolicyId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetBdfId(v string) *DescribeDisksResponseBodyDisksDisk { s.BdfId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetBurstingEnabled(v bool) *DescribeDisksResponseBodyDisksDisk { s.BurstingEnabled = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetCategory(v string) *DescribeDisksResponseBodyDisksDisk { s.Category = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetCreationTime(v string) *DescribeDisksResponseBodyDisksDisk { s.CreationTime = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDeleteAutoSnapshot(v bool) *DescribeDisksResponseBodyDisksDisk { s.DeleteAutoSnapshot = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDeleteWithInstance(v bool) *DescribeDisksResponseBodyDisksDisk { s.DeleteWithInstance = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDescription(v string) *DescribeDisksResponseBodyDisksDisk { s.Description = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDetachedTime(v string) *DescribeDisksResponseBodyDisksDisk { s.DetachedTime = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDevice(v string) *DescribeDisksResponseBodyDisksDisk { s.Device = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDiskChargeType(v string) *DescribeDisksResponseBodyDisksDisk { s.DiskChargeType = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDiskId(v string) *DescribeDisksResponseBodyDisksDisk { s.DiskId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetDiskName(v string) *DescribeDisksResponseBodyDisksDisk { s.DiskName = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetEnableAutoSnapshot(v bool) *DescribeDisksResponseBodyDisksDisk { s.EnableAutoSnapshot = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetEnableAutomatedSnapshotPolicy(v bool) *DescribeDisksResponseBodyDisksDisk { s.EnableAutomatedSnapshotPolicy = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetEncrypted(v bool) *DescribeDisksResponseBodyDisksDisk { s.Encrypted = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetExpiredTime(v string) *DescribeDisksResponseBodyDisksDisk { s.ExpiredTime = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetIOPS(v int32) *DescribeDisksResponseBodyDisksDisk { s.IOPS = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetIOPSRead(v int32) *DescribeDisksResponseBodyDisksDisk { s.IOPSRead = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetIOPSWrite(v int32) *DescribeDisksResponseBodyDisksDisk { s.IOPSWrite = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetImageId(v string) *DescribeDisksResponseBodyDisksDisk { s.ImageId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetInstanceId(v string) *DescribeDisksResponseBodyDisksDisk { s.InstanceId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetKMSKeyId(v string) *DescribeDisksResponseBodyDisksDisk { s.KMSKeyId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetMountInstanceNum(v int32) *DescribeDisksResponseBodyDisksDisk { s.MountInstanceNum = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetMountInstances(v *DescribeDisksResponseBodyDisksDiskMountInstances) *DescribeDisksResponseBodyDisksDisk { s.MountInstances = v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetMultiAttach(v string) *DescribeDisksResponseBodyDisksDisk { s.MultiAttach = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetOperationLocks(v *DescribeDisksResponseBodyDisksDiskOperationLocks) *DescribeDisksResponseBodyDisksDisk { s.OperationLocks = v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetPerformanceLevel(v string) *DescribeDisksResponseBodyDisksDisk { s.PerformanceLevel = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetPortable(v bool) *DescribeDisksResponseBodyDisksDisk { s.Portable = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetProductCode(v string) *DescribeDisksResponseBodyDisksDisk { s.ProductCode = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetProvisionedIops(v int64) *DescribeDisksResponseBodyDisksDisk { s.ProvisionedIops = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetRegionId(v string) *DescribeDisksResponseBodyDisksDisk { s.RegionId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetResourceGroupId(v string) *DescribeDisksResponseBodyDisksDisk { s.ResourceGroupId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetSerialNumber(v string) *DescribeDisksResponseBodyDisksDisk { s.SerialNumber = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetSize(v int32) *DescribeDisksResponseBodyDisksDisk { s.Size = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetSourceSnapshotId(v string) *DescribeDisksResponseBodyDisksDisk { s.SourceSnapshotId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetStatus(v string) *DescribeDisksResponseBodyDisksDisk { s.Status = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetStorageClusterId(v string) *DescribeDisksResponseBodyDisksDisk { s.StorageClusterId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetStorageSetId(v string) *DescribeDisksResponseBodyDisksDisk { s.StorageSetId = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetStorageSetPartitionNumber(v int32) *DescribeDisksResponseBodyDisksDisk { s.StorageSetPartitionNumber = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetTags(v *DescribeDisksResponseBodyDisksDiskTags) *DescribeDisksResponseBodyDisksDisk { s.Tags = v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetThroughput(v int32) *DescribeDisksResponseBodyDisksDisk { s.Throughput = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetThroughputRead(v int32) *DescribeDisksResponseBodyDisksDisk { s.ThroughputRead = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetThroughputWrite(v int32) *DescribeDisksResponseBodyDisksDisk { s.ThroughputWrite = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetType(v string) *DescribeDisksResponseBodyDisksDisk { s.Type = &v return s } func (s *DescribeDisksResponseBodyDisksDisk) SetZoneId(v string) *DescribeDisksResponseBodyDisksDisk { s.ZoneId = &v return s } type DescribeDisksResponseBodyDisksDiskAttachments struct { Attachment []*DescribeDisksResponseBodyDisksDiskAttachmentsAttachment `json:"Attachment,omitempty" xml:"Attachment,omitempty" type:"Repeated"` } func (s DescribeDisksResponseBodyDisksDiskAttachments) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskAttachments) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskAttachments) SetAttachment(v []*DescribeDisksResponseBodyDisksDiskAttachmentsAttachment) *DescribeDisksResponseBodyDisksDiskAttachments { s.Attachment = v return s } type DescribeDisksResponseBodyDisksDiskAttachmentsAttachment struct { // The time when the disk was attached. The time is displayed in UTC. AttachedTime *string `json:"AttachedTime,omitempty" xml:"AttachedTime,omitempty"` // The device name of the disk. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The ID of the instance to which the disk is attached. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` } func (s DescribeDisksResponseBodyDisksDiskAttachmentsAttachment) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskAttachmentsAttachment) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskAttachmentsAttachment) SetAttachedTime(v string) *DescribeDisksResponseBodyDisksDiskAttachmentsAttachment { s.AttachedTime = &v return s } func (s *DescribeDisksResponseBodyDisksDiskAttachmentsAttachment) SetDevice(v string) *DescribeDisksResponseBodyDisksDiskAttachmentsAttachment { s.Device = &v return s } func (s *DescribeDisksResponseBodyDisksDiskAttachmentsAttachment) SetInstanceId(v string) *DescribeDisksResponseBodyDisksDiskAttachmentsAttachment { s.InstanceId = &v return s } type DescribeDisksResponseBodyDisksDiskMountInstances struct { MountInstance []*DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance `json:"MountInstance,omitempty" xml:"MountInstance,omitempty" type:"Repeated"` } func (s DescribeDisksResponseBodyDisksDiskMountInstances) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskMountInstances) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskMountInstances) SetMountInstance(v []*DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance) *DescribeDisksResponseBodyDisksDiskMountInstances { s.MountInstance = v return s } type DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance struct { // The time when the disk was attached. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. AttachedTime *string `json:"AttachedTime,omitempty" xml:"AttachedTime,omitempty"` // The mount point of the disk. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The ID of the instance to which the disk is attached. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` } func (s DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance) SetAttachedTime(v string) *DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance { s.AttachedTime = &v return s } func (s *DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance) SetDevice(v string) *DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance { s.Device = &v return s } func (s *DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance) SetInstanceId(v string) *DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance { s.InstanceId = &v return s } type DescribeDisksResponseBodyDisksDiskOperationLocks struct { OperationLock []*DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock `json:"OperationLock,omitempty" xml:"OperationLock,omitempty" type:"Repeated"` } func (s DescribeDisksResponseBodyDisksDiskOperationLocks) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskOperationLocks) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskOperationLocks) SetOperationLock(v []*DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock) *DescribeDisksResponseBodyDisksDiskOperationLocks { s.OperationLock = v return s } type DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock struct { // The security reason why the disk was locked. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` } func (s DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock) SetLockReason(v string) *DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock { s.LockReason = &v return s } type DescribeDisksResponseBodyDisksDiskTags struct { Tag []*DescribeDisksResponseBodyDisksDiskTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeDisksResponseBodyDisksDiskTags) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskTags) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskTags) SetTag(v []*DescribeDisksResponseBodyDisksDiskTagsTag) *DescribeDisksResponseBodyDisksDiskTags { s.Tag = v return s } type DescribeDisksResponseBodyDisksDiskTagsTag struct { // The tag key of the disk. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the disk. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeDisksResponseBodyDisksDiskTagsTag) String() string { return tea.Prettify(s) } func (s DescribeDisksResponseBodyDisksDiskTagsTag) GoString() string { return s.String() } func (s *DescribeDisksResponseBodyDisksDiskTagsTag) SetTagKey(v string) *DescribeDisksResponseBodyDisksDiskTagsTag { s.TagKey = &v return s } func (s *DescribeDisksResponseBodyDisksDiskTagsTag) SetTagValue(v string) *DescribeDisksResponseBodyDisksDiskTagsTag { s.TagValue = &v return s } type DescribeDisksResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDisksResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDisksResponse) String() string { return tea.Prettify(s) } func (s DescribeDisksResponse) GoString() string { return s.String() } func (s *DescribeDisksResponse) SetHeaders(v map[string]*string) *DescribeDisksResponse { s.Headers = v return s } func (s *DescribeDisksResponse) SetStatusCode(v int32) *DescribeDisksResponse { s.StatusCode = &v return s } func (s *DescribeDisksResponse) SetBody(v *DescribeDisksResponseBody) *DescribeDisksResponse { s.Body = v return s } type DescribeDisksFullStatusRequest struct { EventTime *DescribeDisksFullStatusRequestEventTime `json:"EventTime,omitempty" xml:"EventTime,omitempty" type:"Struct"` // The ID of EBS device N. Valid values of N: 1 to 100. DiskId []*string `json:"DiskId,omitempty" xml:"DiskId,omitempty" type:"Repeated"` // The ID of event N. Valid values of N: 1 to 100. EventId []*string `json:"EventId,omitempty" xml:"EventId,omitempty" type:"Repeated"` // The event type of the EBS device. Valid values: // // * Degraded: The performance of the EBS device is degraded. // * SeverelyDegraded: The performance of the EBS device is severely degraded. // * Stalled: The performance of the EBS device is severely affected. // * ErrorDetected: The local disk is damaged. EventType *string `json:"EventType,omitempty" xml:"EventType,omitempty"` // The health status of the EBS device. Valid values: // // * Impaired: The EBS device is damaged. // * Warning: The performance of the EBS device is degraded. // * Initializing: The EBS device is being initialized. // * InsufficientData: The status cannot be determined due to insufficient data. // * NotApplicable: The EBS device cannot be used. HealthStatus *string `json:"HealthStatus,omitempty" xml:"HealthStatus,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. Pages start from page 1. The value must be a positive integer. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the EBS device. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the EBS device belongs. If you configure this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The lifecycle status of the EBS device. For more information, see [Disk status](~~25689~~). Valid values: // // * In_use: The EBS device is in use. // * Available: The EBS device can be attached. // * Attaching: The EBS device is being attached. // * Detaching: The EBS device is being detached. // * Creating: The EBS device is being created. // * ReIniting: The EBS device is being initialized. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags to add to the EBS device. Tag []*DescribeDisksFullStatusRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeDisksFullStatusRequest) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusRequest) GoString() string { return s.String() } func (s *DescribeDisksFullStatusRequest) SetEventTime(v *DescribeDisksFullStatusRequestEventTime) *DescribeDisksFullStatusRequest { s.EventTime = v return s } func (s *DescribeDisksFullStatusRequest) SetDiskId(v []*string) *DescribeDisksFullStatusRequest { s.DiskId = v return s } func (s *DescribeDisksFullStatusRequest) SetEventId(v []*string) *DescribeDisksFullStatusRequest { s.EventId = v return s } func (s *DescribeDisksFullStatusRequest) SetEventType(v string) *DescribeDisksFullStatusRequest { s.EventType = &v return s } func (s *DescribeDisksFullStatusRequest) SetHealthStatus(v string) *DescribeDisksFullStatusRequest { s.HealthStatus = &v return s } func (s *DescribeDisksFullStatusRequest) SetOwnerAccount(v string) *DescribeDisksFullStatusRequest { s.OwnerAccount = &v return s } func (s *DescribeDisksFullStatusRequest) SetOwnerId(v int64) *DescribeDisksFullStatusRequest { s.OwnerId = &v return s } func (s *DescribeDisksFullStatusRequest) SetPageNumber(v int32) *DescribeDisksFullStatusRequest { s.PageNumber = &v return s } func (s *DescribeDisksFullStatusRequest) SetPageSize(v int32) *DescribeDisksFullStatusRequest { s.PageSize = &v return s } func (s *DescribeDisksFullStatusRequest) SetRegionId(v string) *DescribeDisksFullStatusRequest { s.RegionId = &v return s } func (s *DescribeDisksFullStatusRequest) SetResourceGroupId(v string) *DescribeDisksFullStatusRequest { s.ResourceGroupId = &v return s } func (s *DescribeDisksFullStatusRequest) SetResourceOwnerAccount(v string) *DescribeDisksFullStatusRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeDisksFullStatusRequest) SetResourceOwnerId(v int64) *DescribeDisksFullStatusRequest { s.ResourceOwnerId = &v return s } func (s *DescribeDisksFullStatusRequest) SetStatus(v string) *DescribeDisksFullStatusRequest { s.Status = &v return s } func (s *DescribeDisksFullStatusRequest) SetTag(v []*DescribeDisksFullStatusRequestTag) *DescribeDisksFullStatusRequest { s.Tag = v return s } type DescribeDisksFullStatusRequestEventTime struct { // The end of the time range to query occurred events. // // Specify the time in the [ISO 8601](~~25696~~) standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC. End *string `json:"End,omitempty" xml:"End,omitempty"` // The beginning of the time range to query occurred events. // // Specify the time in the [ISO 8601](~~25696~~) standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC. Start *string `json:"Start,omitempty" xml:"Start,omitempty"` } func (s DescribeDisksFullStatusRequestEventTime) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusRequestEventTime) GoString() string { return s.String() } func (s *DescribeDisksFullStatusRequestEventTime) SetEnd(v string) *DescribeDisksFullStatusRequestEventTime { s.End = &v return s } func (s *DescribeDisksFullStatusRequestEventTime) SetStart(v string) *DescribeDisksFullStatusRequestEventTime { s.Start = &v return s } type DescribeDisksFullStatusRequestTag struct { // The key of tag N to add to the EBS device. A key-value pair consists of a key specified by the Tag.N.Key parameter and a value specified by the `Tag.N.Value` parameter. The two parameters are associated with each other. Valid values of N: 1 to 20. // // Up to 1,000 resources with the specified tags can be returned in the response. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the EBS device. A key-value pair consists of a key specified by the `Tag.N.Key` parameter and a value specified by the Tag.N.Value parameter. The two parameters are associated with each other. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeDisksFullStatusRequestTag) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusRequestTag) GoString() string { return s.String() } func (s *DescribeDisksFullStatusRequestTag) SetKey(v string) *DescribeDisksFullStatusRequestTag { s.Key = &v return s } func (s *DescribeDisksFullStatusRequestTag) SetValue(v string) *DescribeDisksFullStatusRequestTag { s.Value = &v return s } type DescribeDisksFullStatusResponseBody struct { // The collection of full status information of the EBS devices. DiskFullStatusSet *DescribeDisksFullStatusResponseBodyDiskFullStatusSet `json:"DiskFullStatusSet,omitempty" xml:"DiskFullStatusSet,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of EBS devices for which full status information is returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeDisksFullStatusResponseBody) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBody) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBody) SetDiskFullStatusSet(v *DescribeDisksFullStatusResponseBodyDiskFullStatusSet) *DescribeDisksFullStatusResponseBody { s.DiskFullStatusSet = v return s } func (s *DescribeDisksFullStatusResponseBody) SetPageNumber(v int32) *DescribeDisksFullStatusResponseBody { s.PageNumber = &v return s } func (s *DescribeDisksFullStatusResponseBody) SetPageSize(v int32) *DescribeDisksFullStatusResponseBody { s.PageSize = &v return s } func (s *DescribeDisksFullStatusResponseBody) SetRequestId(v string) *DescribeDisksFullStatusResponseBody { s.RequestId = &v return s } func (s *DescribeDisksFullStatusResponseBody) SetTotalCount(v int32) *DescribeDisksFullStatusResponseBody { s.TotalCount = &v return s } type DescribeDisksFullStatusResponseBodyDiskFullStatusSet struct { DiskFullStatusType []*DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType `json:"DiskFullStatusType,omitempty" xml:"DiskFullStatusType,omitempty" type:"Repeated"` } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSet) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSet) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSet) SetDiskFullStatusType(v []*DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) *DescribeDisksFullStatusResponseBodyDiskFullStatusSet { s.DiskFullStatusType = v return s } type DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType struct { // The name of the EBS device that is attached to an instance. Example: /dev/xvdb. // // This parameter has a value only when the value of `Status` is `In_use`. // // > This parameter will be deprecated in the future. To ensure future compatibility, we recommend that you do not use this parameter. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The events about the EBS device. DiskEventSet *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSet `json:"DiskEventSet,omitempty" xml:"DiskEventSet,omitempty" type:"Struct"` // The EBS device ID. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The health status of the EBS device. HealthStatus *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus `json:"HealthStatus,omitempty" xml:"HealthStatus,omitempty" type:"Struct"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The lifecycle status of the EBS device. Status *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus `json:"Status,omitempty" xml:"Status,omitempty" type:"Struct"` } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) SetDevice(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType { s.Device = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) SetDiskEventSet(v *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSet) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType { s.DiskEventSet = v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) SetDiskId(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType { s.DiskId = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) SetHealthStatus(v *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType { s.HealthStatus = v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) SetInstanceId(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType { s.InstanceId = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType) SetStatus(v *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusType { s.Status = v return s } type DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSet struct { DiskEventType []*DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType `json:"DiskEventType,omitempty" xml:"DiskEventType,omitempty" type:"Repeated"` } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSet) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSet) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSet) SetDiskEventType(v []*DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSet { s.DiskEventType = v return s } type DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType struct { // The time when the event ended. EventEndTime *string `json:"EventEndTime,omitempty" xml:"EventEndTime,omitempty"` // The ID of the event. EventId *string `json:"EventId,omitempty" xml:"EventId,omitempty"` // The time when the event occurred. EventTime *string `json:"EventTime,omitempty" xml:"EventTime,omitempty"` // The type of the event. EventType *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType `json:"EventType,omitempty" xml:"EventType,omitempty" type:"Struct"` // The impact level of the event. ImpactLevel *string `json:"ImpactLevel,omitempty" xml:"ImpactLevel,omitempty"` } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) SetEventEndTime(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType { s.EventEndTime = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) SetEventId(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType { s.EventId = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) SetEventTime(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType { s.EventTime = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) SetEventType(v *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType { s.EventType = v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType) SetImpactLevel(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType { s.ImpactLevel = &v return s } type DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType struct { // The code of the event type. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the event type. Valid values: // // * Degraded: The performance of the EBS device is degraded. // * SeverelyDegraded: The performance of the EBS device is severely degraded. // * Stalled: The performance of the EBS device is severely affected. // * ErrorDetected: The local disk is damaged. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType) SetCode(v int32) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType { s.Code = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType) SetName(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventTypeEventType { s.Name = &v return s } type DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus struct { // The code of the health status of the EBS device. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the health status of the EBS device. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus) SetCode(v int32) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus { s.Code = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus) SetName(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeHealthStatus { s.Name = &v return s } type DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus struct { // The code of the lifecycle status of the EBS device. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the lifecycle status of the EBS device. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus) SetCode(v int32) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus { s.Code = &v return s } func (s *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus) SetName(v string) *DescribeDisksFullStatusResponseBodyDiskFullStatusSetDiskFullStatusTypeStatus { s.Name = &v return s } type DescribeDisksFullStatusResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeDisksFullStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeDisksFullStatusResponse) String() string { return tea.Prettify(s) } func (s DescribeDisksFullStatusResponse) GoString() string { return s.String() } func (s *DescribeDisksFullStatusResponse) SetHeaders(v map[string]*string) *DescribeDisksFullStatusResponse { s.Headers = v return s } func (s *DescribeDisksFullStatusResponse) SetStatusCode(v int32) *DescribeDisksFullStatusResponse { s.StatusCode = &v return s } func (s *DescribeDisksFullStatusResponse) SetBody(v *DescribeDisksFullStatusResponseBody) *DescribeDisksFullStatusResponse { s.Body = v return s } type DescribeEipAddressesRequest struct { Filter []*DescribeEipAddressesRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` AssociatedInstanceId *string `json:"AssociatedInstanceId,omitempty" xml:"AssociatedInstanceId,omitempty"` AssociatedInstanceType *string `json:"AssociatedInstanceType,omitempty" xml:"AssociatedInstanceType,omitempty"` ChargeType *string `json:"ChargeType,omitempty" xml:"ChargeType,omitempty"` EipAddress *string `json:"EipAddress,omitempty" xml:"EipAddress,omitempty"` ISP *string `json:"ISP,omitempty" xml:"ISP,omitempty"` LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeEipAddressesRequest) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesRequest) GoString() string { return s.String() } func (s *DescribeEipAddressesRequest) SetFilter(v []*DescribeEipAddressesRequestFilter) *DescribeEipAddressesRequest { s.Filter = v return s } func (s *DescribeEipAddressesRequest) SetAllocationId(v string) *DescribeEipAddressesRequest { s.AllocationId = &v return s } func (s *DescribeEipAddressesRequest) SetAssociatedInstanceId(v string) *DescribeEipAddressesRequest { s.AssociatedInstanceId = &v return s } func (s *DescribeEipAddressesRequest) SetAssociatedInstanceType(v string) *DescribeEipAddressesRequest { s.AssociatedInstanceType = &v return s } func (s *DescribeEipAddressesRequest) SetChargeType(v string) *DescribeEipAddressesRequest { s.ChargeType = &v return s } func (s *DescribeEipAddressesRequest) SetEipAddress(v string) *DescribeEipAddressesRequest { s.EipAddress = &v return s } func (s *DescribeEipAddressesRequest) SetISP(v string) *DescribeEipAddressesRequest { s.ISP = &v return s } func (s *DescribeEipAddressesRequest) SetLockReason(v string) *DescribeEipAddressesRequest { s.LockReason = &v return s } func (s *DescribeEipAddressesRequest) SetOwnerAccount(v string) *DescribeEipAddressesRequest { s.OwnerAccount = &v return s } func (s *DescribeEipAddressesRequest) SetOwnerId(v int64) *DescribeEipAddressesRequest { s.OwnerId = &v return s } func (s *DescribeEipAddressesRequest) SetPageNumber(v int32) *DescribeEipAddressesRequest { s.PageNumber = &v return s } func (s *DescribeEipAddressesRequest) SetPageSize(v int32) *DescribeEipAddressesRequest { s.PageSize = &v return s } func (s *DescribeEipAddressesRequest) SetRegionId(v string) *DescribeEipAddressesRequest { s.RegionId = &v return s } func (s *DescribeEipAddressesRequest) SetResourceOwnerAccount(v string) *DescribeEipAddressesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeEipAddressesRequest) SetResourceOwnerId(v int64) *DescribeEipAddressesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeEipAddressesRequest) SetStatus(v string) *DescribeEipAddressesRequest { s.Status = &v return s } type DescribeEipAddressesRequestFilter struct { Key *string `json:"Key,omitempty" xml:"Key,omitempty"` Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeEipAddressesRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesRequestFilter) GoString() string { return s.String() } func (s *DescribeEipAddressesRequestFilter) SetKey(v string) *DescribeEipAddressesRequestFilter { s.Key = &v return s } func (s *DescribeEipAddressesRequestFilter) SetValue(v string) *DescribeEipAddressesRequestFilter { s.Value = &v return s } type DescribeEipAddressesResponseBody struct { EipAddresses *DescribeEipAddressesResponseBodyEipAddresses `json:"EipAddresses,omitempty" xml:"EipAddresses,omitempty" type:"Struct"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeEipAddressesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesResponseBody) GoString() string { return s.String() } func (s *DescribeEipAddressesResponseBody) SetEipAddresses(v *DescribeEipAddressesResponseBodyEipAddresses) *DescribeEipAddressesResponseBody { s.EipAddresses = v return s } func (s *DescribeEipAddressesResponseBody) SetPageNumber(v int32) *DescribeEipAddressesResponseBody { s.PageNumber = &v return s } func (s *DescribeEipAddressesResponseBody) SetPageSize(v int32) *DescribeEipAddressesResponseBody { s.PageSize = &v return s } func (s *DescribeEipAddressesResponseBody) SetRequestId(v string) *DescribeEipAddressesResponseBody { s.RequestId = &v return s } func (s *DescribeEipAddressesResponseBody) SetTotalCount(v int32) *DescribeEipAddressesResponseBody { s.TotalCount = &v return s } type DescribeEipAddressesResponseBodyEipAddresses struct { EipAddress []*DescribeEipAddressesResponseBodyEipAddressesEipAddress `json:"EipAddress,omitempty" xml:"EipAddress,omitempty" type:"Repeated"` } func (s DescribeEipAddressesResponseBodyEipAddresses) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesResponseBodyEipAddresses) GoString() string { return s.String() } func (s *DescribeEipAddressesResponseBodyEipAddresses) SetEipAddress(v []*DescribeEipAddressesResponseBodyEipAddressesEipAddress) *DescribeEipAddressesResponseBodyEipAddresses { s.EipAddress = v return s } type DescribeEipAddressesResponseBodyEipAddressesEipAddress struct { AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` AllocationTime *string `json:"AllocationTime,omitempty" xml:"AllocationTime,omitempty"` Bandwidth *string `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` ChargeType *string `json:"ChargeType,omitempty" xml:"ChargeType,omitempty"` EipBandwidth *string `json:"EipBandwidth,omitempty" xml:"EipBandwidth,omitempty"` ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` OperationLocks *DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty" type:"Struct"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeEipAddressesResponseBodyEipAddressesEipAddress) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesResponseBodyEipAddressesEipAddress) GoString() string { return s.String() } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetAllocationId(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.AllocationId = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetAllocationTime(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.AllocationTime = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetBandwidth(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.Bandwidth = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetChargeType(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.ChargeType = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetEipBandwidth(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.EipBandwidth = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetExpiredTime(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.ExpiredTime = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetInstanceId(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.InstanceId = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetInstanceType(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.InstanceType = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetInternetChargeType(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.InternetChargeType = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetIpAddress(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.IpAddress = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetOperationLocks(v *DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.OperationLocks = v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetRegionId(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.RegionId = &v return s } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddress) SetStatus(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddress { s.Status = &v return s } type DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks struct { LockReason []*DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason `json:"LockReason,omitempty" xml:"LockReason,omitempty" type:"Repeated"` } func (s DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks) GoString() string { return s.String() } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks) SetLockReason(v []*DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason) *DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks { s.LockReason = v return s } type DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason struct { LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` } func (s DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason) GoString() string { return s.String() } func (s *DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason) SetLockReason(v string) *DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocksLockReason { s.LockReason = &v return s } type DescribeEipAddressesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeEipAddressesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeEipAddressesResponse) String() string { return tea.Prettify(s) } func (s DescribeEipAddressesResponse) GoString() string { return s.String() } func (s *DescribeEipAddressesResponse) SetHeaders(v map[string]*string) *DescribeEipAddressesResponse { s.Headers = v return s } func (s *DescribeEipAddressesResponse) SetStatusCode(v int32) *DescribeEipAddressesResponse { s.StatusCode = &v return s } func (s *DescribeEipAddressesResponse) SetBody(v *DescribeEipAddressesResponseBody) *DescribeEipAddressesResponse { s.Body = v return s } type DescribeEipMonitorDataRequest struct { AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeEipMonitorDataRequest) String() string { return tea.Prettify(s) } func (s DescribeEipMonitorDataRequest) GoString() string { return s.String() } func (s *DescribeEipMonitorDataRequest) SetAllocationId(v string) *DescribeEipMonitorDataRequest { s.AllocationId = &v return s } func (s *DescribeEipMonitorDataRequest) SetEndTime(v string) *DescribeEipMonitorDataRequest { s.EndTime = &v return s } func (s *DescribeEipMonitorDataRequest) SetOwnerAccount(v string) *DescribeEipMonitorDataRequest { s.OwnerAccount = &v return s } func (s *DescribeEipMonitorDataRequest) SetOwnerId(v int64) *DescribeEipMonitorDataRequest { s.OwnerId = &v return s } func (s *DescribeEipMonitorDataRequest) SetPeriod(v int32) *DescribeEipMonitorDataRequest { s.Period = &v return s } func (s *DescribeEipMonitorDataRequest) SetRegionId(v string) *DescribeEipMonitorDataRequest { s.RegionId = &v return s } func (s *DescribeEipMonitorDataRequest) SetResourceOwnerAccount(v string) *DescribeEipMonitorDataRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeEipMonitorDataRequest) SetResourceOwnerId(v int64) *DescribeEipMonitorDataRequest { s.ResourceOwnerId = &v return s } func (s *DescribeEipMonitorDataRequest) SetStartTime(v string) *DescribeEipMonitorDataRequest { s.StartTime = &v return s } type DescribeEipMonitorDataResponseBody struct { EipMonitorDatas *DescribeEipMonitorDataResponseBodyEipMonitorDatas `json:"EipMonitorDatas,omitempty" xml:"EipMonitorDatas,omitempty" type:"Struct"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeEipMonitorDataResponseBody) String() string { return tea.Prettify(s) } func (s DescribeEipMonitorDataResponseBody) GoString() string { return s.String() } func (s *DescribeEipMonitorDataResponseBody) SetEipMonitorDatas(v *DescribeEipMonitorDataResponseBodyEipMonitorDatas) *DescribeEipMonitorDataResponseBody { s.EipMonitorDatas = v return s } func (s *DescribeEipMonitorDataResponseBody) SetRequestId(v string) *DescribeEipMonitorDataResponseBody { s.RequestId = &v return s } type DescribeEipMonitorDataResponseBodyEipMonitorDatas struct { EipMonitorData []*DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData `json:"EipMonitorData,omitempty" xml:"EipMonitorData,omitempty" type:"Repeated"` } func (s DescribeEipMonitorDataResponseBodyEipMonitorDatas) String() string { return tea.Prettify(s) } func (s DescribeEipMonitorDataResponseBodyEipMonitorDatas) GoString() string { return s.String() } func (s *DescribeEipMonitorDataResponseBodyEipMonitorDatas) SetEipMonitorData(v []*DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) *DescribeEipMonitorDataResponseBodyEipMonitorDatas { s.EipMonitorData = v return s } type DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData struct { EipBandwidth *int32 `json:"EipBandwidth,omitempty" xml:"EipBandwidth,omitempty"` EipFlow *int32 `json:"EipFlow,omitempty" xml:"EipFlow,omitempty"` EipPackets *int32 `json:"EipPackets,omitempty" xml:"EipPackets,omitempty"` EipRX *int32 `json:"EipRX,omitempty" xml:"EipRX,omitempty"` EipTX *int32 `json:"EipTX,omitempty" xml:"EipTX,omitempty"` TimeStamp *string `json:"TimeStamp,omitempty" xml:"TimeStamp,omitempty"` } func (s DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) String() string { return tea.Prettify(s) } func (s DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) GoString() string { return s.String() } func (s *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipBandwidth(v int32) *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipBandwidth = &v return s } func (s *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipFlow(v int32) *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipFlow = &v return s } func (s *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipPackets(v int32) *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipPackets = &v return s } func (s *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipRX(v int32) *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipRX = &v return s } func (s *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipTX(v int32) *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipTX = &v return s } func (s *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetTimeStamp(v string) *DescribeEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.TimeStamp = &v return s } type DescribeEipMonitorDataResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeEipMonitorDataResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeEipMonitorDataResponse) String() string { return tea.Prettify(s) } func (s DescribeEipMonitorDataResponse) GoString() string { return s.String() } func (s *DescribeEipMonitorDataResponse) SetHeaders(v map[string]*string) *DescribeEipMonitorDataResponse { s.Headers = v return s } func (s *DescribeEipMonitorDataResponse) SetStatusCode(v int32) *DescribeEipMonitorDataResponse { s.StatusCode = &v return s } func (s *DescribeEipMonitorDataResponse) SetBody(v *DescribeEipMonitorDataResponseBody) *DescribeEipMonitorDataResponse { s.Body = v return s } type DescribeElasticityAssuranceInstancesRequest struct { PrivatePoolOptions *DescribeElasticityAssuranceInstancesRequestPrivatePoolOptions `json:"PrivatePoolOptions,omitempty" xml:"PrivatePoolOptions,omitempty" type:"Struct"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The token used to start the query. Set the value to the NextToken value obtained from the response to the preceding request. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the elasticity assurance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeElasticityAssuranceInstancesRequest) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssuranceInstancesRequest) GoString() string { return s.String() } func (s *DescribeElasticityAssuranceInstancesRequest) SetPrivatePoolOptions(v *DescribeElasticityAssuranceInstancesRequestPrivatePoolOptions) *DescribeElasticityAssuranceInstancesRequest { s.PrivatePoolOptions = v return s } func (s *DescribeElasticityAssuranceInstancesRequest) SetMaxResults(v int32) *DescribeElasticityAssuranceInstancesRequest { s.MaxResults = &v return s } func (s *DescribeElasticityAssuranceInstancesRequest) SetNextToken(v string) *DescribeElasticityAssuranceInstancesRequest { s.NextToken = &v return s } func (s *DescribeElasticityAssuranceInstancesRequest) SetOwnerAccount(v string) *DescribeElasticityAssuranceInstancesRequest { s.OwnerAccount = &v return s } func (s *DescribeElasticityAssuranceInstancesRequest) SetOwnerId(v int64) *DescribeElasticityAssuranceInstancesRequest { s.OwnerId = &v return s } func (s *DescribeElasticityAssuranceInstancesRequest) SetRegionId(v string) *DescribeElasticityAssuranceInstancesRequest { s.RegionId = &v return s } func (s *DescribeElasticityAssuranceInstancesRequest) SetResourceOwnerAccount(v string) *DescribeElasticityAssuranceInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeElasticityAssuranceInstancesRequest) SetResourceOwnerId(v int64) *DescribeElasticityAssuranceInstancesRequest { s.ResourceOwnerId = &v return s } type DescribeElasticityAssuranceInstancesRequestPrivatePoolOptions struct { // The ID of the elasticity assurance. Id *string `json:"Id,omitempty" xml:"Id,omitempty"` } func (s DescribeElasticityAssuranceInstancesRequestPrivatePoolOptions) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssuranceInstancesRequestPrivatePoolOptions) GoString() string { return s.String() } func (s *DescribeElasticityAssuranceInstancesRequestPrivatePoolOptions) SetId(v string) *DescribeElasticityAssuranceInstancesRequestPrivatePoolOptions { s.Id = &v return s } type DescribeElasticityAssuranceInstancesResponseBody struct { // Details about the instances that match and use the elasticity assurance. ElasticityAssuranceItem *DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItem `json:"ElasticityAssuranceItem,omitempty" xml:"ElasticityAssuranceItem,omitempty" type:"Struct"` // The number of entries returned per page. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The token used to start the next query. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeElasticityAssuranceInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssuranceInstancesResponseBody) GoString() string { return s.String() } func (s *DescribeElasticityAssuranceInstancesResponseBody) SetElasticityAssuranceItem(v *DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItem) *DescribeElasticityAssuranceInstancesResponseBody { s.ElasticityAssuranceItem = v return s } func (s *DescribeElasticityAssuranceInstancesResponseBody) SetMaxResults(v int32) *DescribeElasticityAssuranceInstancesResponseBody { s.MaxResults = &v return s } func (s *DescribeElasticityAssuranceInstancesResponseBody) SetNextToken(v string) *DescribeElasticityAssuranceInstancesResponseBody { s.NextToken = &v return s } func (s *DescribeElasticityAssuranceInstancesResponseBody) SetRequestId(v string) *DescribeElasticityAssuranceInstancesResponseBody { s.RequestId = &v return s } func (s *DescribeElasticityAssuranceInstancesResponseBody) SetTotalCount(v int32) *DescribeElasticityAssuranceInstancesResponseBody { s.TotalCount = &v return s } type DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItem struct { InstanceIdSet []*DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItemInstanceIdSet `json:"InstanceIdSet,omitempty" xml:"InstanceIdSet,omitempty" type:"Repeated"` } func (s DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItem) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItem) GoString() string { return s.String() } func (s *DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItem) SetInstanceIdSet(v []*DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItemInstanceIdSet) *DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItem { s.InstanceIdSet = v return s } type DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItemInstanceIdSet struct { // The instance ID InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` } func (s DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItemInstanceIdSet) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItemInstanceIdSet) GoString() string { return s.String() } func (s *DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItemInstanceIdSet) SetInstanceId(v string) *DescribeElasticityAssuranceInstancesResponseBodyElasticityAssuranceItemInstanceIdSet { s.InstanceId = &v return s } type DescribeElasticityAssuranceInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeElasticityAssuranceInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeElasticityAssuranceInstancesResponse) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssuranceInstancesResponse) GoString() string { return s.String() } func (s *DescribeElasticityAssuranceInstancesResponse) SetHeaders(v map[string]*string) *DescribeElasticityAssuranceInstancesResponse { s.Headers = v return s } func (s *DescribeElasticityAssuranceInstancesResponse) SetStatusCode(v int32) *DescribeElasticityAssuranceInstancesResponse { s.StatusCode = &v return s } func (s *DescribeElasticityAssuranceInstancesResponse) SetBody(v *DescribeElasticityAssuranceInstancesResponseBody) *DescribeElasticityAssuranceInstancesResponse { s.Body = v return s } type DescribeElasticityAssurancesRequest struct { PrivatePoolOptions *DescribeElasticityAssurancesRequestPrivatePoolOptions `json:"PrivatePoolOptions,omitempty" xml:"PrivatePoolOptions,omitempty" type:"Struct"` // The billing method of the instance. Set the value to PostPaid. Only pay-as-you-go instances can be created by using elasticity assurances. // // Default value: PostPaid. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The maximum number of entries per page. // // Maximum value: 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // > This parameter is deprecated. Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The region ID of the elasticity assurances. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. If you configure this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of whether you configure this parameter. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The status of the elasticity assurances. Valid values: // // * All // * Preparing // * Prepared // * Active // * Released // // Default value: Active. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags. Tag []*DescribeElasticityAssurancesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The zone ID of the elasticity assurances. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeElasticityAssurancesRequest) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesRequest) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesRequest) SetPrivatePoolOptions(v *DescribeElasticityAssurancesRequestPrivatePoolOptions) *DescribeElasticityAssurancesRequest { s.PrivatePoolOptions = v return s } func (s *DescribeElasticityAssurancesRequest) SetInstanceChargeType(v string) *DescribeElasticityAssurancesRequest { s.InstanceChargeType = &v return s } func (s *DescribeElasticityAssurancesRequest) SetInstanceType(v string) *DescribeElasticityAssurancesRequest { s.InstanceType = &v return s } func (s *DescribeElasticityAssurancesRequest) SetMaxResults(v int32) *DescribeElasticityAssurancesRequest { s.MaxResults = &v return s } func (s *DescribeElasticityAssurancesRequest) SetNextToken(v string) *DescribeElasticityAssurancesRequest { s.NextToken = &v return s } func (s *DescribeElasticityAssurancesRequest) SetOwnerAccount(v string) *DescribeElasticityAssurancesRequest { s.OwnerAccount = &v return s } func (s *DescribeElasticityAssurancesRequest) SetOwnerId(v int64) *DescribeElasticityAssurancesRequest { s.OwnerId = &v return s } func (s *DescribeElasticityAssurancesRequest) SetPlatform(v string) *DescribeElasticityAssurancesRequest { s.Platform = &v return s } func (s *DescribeElasticityAssurancesRequest) SetRegionId(v string) *DescribeElasticityAssurancesRequest { s.RegionId = &v return s } func (s *DescribeElasticityAssurancesRequest) SetResourceGroupId(v string) *DescribeElasticityAssurancesRequest { s.ResourceGroupId = &v return s } func (s *DescribeElasticityAssurancesRequest) SetResourceOwnerAccount(v string) *DescribeElasticityAssurancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeElasticityAssurancesRequest) SetResourceOwnerId(v int64) *DescribeElasticityAssurancesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeElasticityAssurancesRequest) SetStatus(v string) *DescribeElasticityAssurancesRequest { s.Status = &v return s } func (s *DescribeElasticityAssurancesRequest) SetTag(v []*DescribeElasticityAssurancesRequestTag) *DescribeElasticityAssurancesRequest { s.Tag = v return s } func (s *DescribeElasticityAssurancesRequest) SetZoneId(v string) *DescribeElasticityAssurancesRequest { s.ZoneId = &v return s } type DescribeElasticityAssurancesRequestPrivatePoolOptions struct { // The IDs of the elasticity assurances. The value can be a JSON array that consists of up to 100 elasticity assurance IDs. Separate the IDs with commas (,). Ids *string `json:"Ids,omitempty" xml:"Ids,omitempty"` } func (s DescribeElasticityAssurancesRequestPrivatePoolOptions) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesRequestPrivatePoolOptions) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesRequestPrivatePoolOptions) SetIds(v string) *DescribeElasticityAssurancesRequestPrivatePoolOptions { s.Ids = &v return s } type DescribeElasticityAssurancesRequestTag struct { // The key of tag N. Valid values of N: 1 to 20. // // If you specify a tag to query resources, up to 1,000 resources with this tag are returned in the response. If you specify multiple tags to query resources, up to 1,000 resources with all these tags are returned in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeElasticityAssurancesRequestTag) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesRequestTag) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesRequestTag) SetKey(v string) *DescribeElasticityAssurancesRequestTag { s.Key = &v return s } func (s *DescribeElasticityAssurancesRequestTag) SetValue(v string) *DescribeElasticityAssurancesRequestTag { s.Value = &v return s } type DescribeElasticityAssurancesResponseBody struct { // Details about the elasticity assurances. ElasticityAssuranceSet *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet `json:"ElasticityAssuranceSet,omitempty" xml:"ElasticityAssuranceSet,omitempty" type:"Struct"` // The maximum number of entries returned per page. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeElasticityAssurancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponseBody) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponseBody) SetElasticityAssuranceSet(v *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet) *DescribeElasticityAssurancesResponseBody { s.ElasticityAssuranceSet = v return s } func (s *DescribeElasticityAssurancesResponseBody) SetMaxResults(v int32) *DescribeElasticityAssurancesResponseBody { s.MaxResults = &v return s } func (s *DescribeElasticityAssurancesResponseBody) SetNextToken(v string) *DescribeElasticityAssurancesResponseBody { s.NextToken = &v return s } func (s *DescribeElasticityAssurancesResponseBody) SetRequestId(v string) *DescribeElasticityAssurancesResponseBody { s.RequestId = &v return s } func (s *DescribeElasticityAssurancesResponseBody) SetTotalCount(v int32) *DescribeElasticityAssurancesResponseBody { s.TotalCount = &v return s } type DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet struct { ElasticityAssuranceItem []*DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem `json:"ElasticityAssuranceItem,omitempty" xml:"ElasticityAssuranceItem,omitempty" type:"Repeated"` } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet) SetElasticityAssuranceItem(v []*DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSet { s.ElasticityAssuranceItem = v return s } type DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem struct { // Details about the allocated resources. AllocatedResources *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources `json:"AllocatedResources,omitempty" xml:"AllocatedResources,omitempty" type:"Struct"` // The description of the elasticity assurance. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The time when the elasticity assurance expires. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The billing method of the instance. The value can be only PostPaid. Only pay-as-you-go instances can be created by using elasticity assurances. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // > This parameter is not publicly available. LatestStartTime *string `json:"LatestStartTime,omitempty" xml:"LatestStartTime,omitempty"` // The ID of the elasticity assurance. PrivatePoolOptionsId *string `json:"PrivatePoolOptionsId,omitempty" xml:"PrivatePoolOptionsId,omitempty"` // The type of the private pool associated with the elasticity assurance. Valid values: // // * Open: open private pool // * Target: specific private pool PrivatePoolOptionsMatchCriteria *string `json:"PrivatePoolOptionsMatchCriteria,omitempty" xml:"PrivatePoolOptionsMatchCriteria,omitempty"` // The name of the elasticity assurance. PrivatePoolOptionsName *string `json:"PrivatePoolOptionsName,omitempty" xml:"PrivatePoolOptionsName,omitempty"` // The region ID of the elasticity assurance. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The time when the elasticity assurance takes effect. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // Indicates when the elasticity assurance takes effect. Valid values: // // * Now: The elasticity assurance takes effect immediately after it is created. // * Later: The elasticity assurance takes effect at a specified time. StartTimeType *string `json:"StartTimeType,omitempty" xml:"StartTimeType,omitempty"` // The status of the elasticity assurance. Valid values: // // * Preparing // * Prepared // * Active // * Released Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the elasticity assurance. Tags *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The total number of times that the elasticity assurance is applied. TotalAssuranceTimes *string `json:"TotalAssuranceTimes,omitempty" xml:"TotalAssuranceTimes,omitempty"` // > This parameter is not publicly available. UsedAssuranceTimes *int32 `json:"UsedAssuranceTimes,omitempty" xml:"UsedAssuranceTimes,omitempty"` } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetAllocatedResources(v *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.AllocatedResources = v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetDescription(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.Description = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetEndTime(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.EndTime = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetInstanceChargeType(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.InstanceChargeType = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetLatestStartTime(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.LatestStartTime = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetPrivatePoolOptionsId(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.PrivatePoolOptionsId = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetPrivatePoolOptionsMatchCriteria(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.PrivatePoolOptionsMatchCriteria = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetPrivatePoolOptionsName(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.PrivatePoolOptionsName = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetRegionId(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.RegionId = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetResourceGroupId(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.ResourceGroupId = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetStartTime(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.StartTime = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetStartTimeType(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.StartTimeType = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetStatus(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.Status = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetTags(v *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.Tags = v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetTotalAssuranceTimes(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.TotalAssuranceTimes = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem) SetUsedAssuranceTimes(v int32) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItem { s.UsedAssuranceTimes = &v return s } type DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources struct { AllocatedResource []*DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource `json:"AllocatedResource,omitempty" xml:"AllocatedResource,omitempty" type:"Repeated"` } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources) SetAllocatedResource(v []*DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResources { s.AllocatedResource = v return s } type DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource struct { // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The total number of instances for which capacity of an instance type is reserved. TotalAmount *int32 `json:"TotalAmount,omitempty" xml:"TotalAmount,omitempty"` // The number of instances that have used the elasticity assurance. UsedAmount *int32 `json:"UsedAmount,omitempty" xml:"UsedAmount,omitempty"` // The zone ID. ZoneId *string `json:"zoneId,omitempty" xml:"zoneId,omitempty"` } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource) SetInstanceType(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource { s.InstanceType = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource) SetTotalAmount(v int32) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource { s.TotalAmount = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource) SetUsedAmount(v int32) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource { s.UsedAmount = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource) SetZoneId(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource { s.ZoneId = &v return s } type DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags struct { Tag []*DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags) SetTag(v []*DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTags { s.Tag = v return s } type DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag struct { // The key of the tag. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The value of the tag. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag) SetTagKey(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag { s.TagKey = &v return s } func (s *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag) SetTagValue(v string) *DescribeElasticityAssurancesResponseBodyElasticityAssuranceSetElasticityAssuranceItemTagsTag { s.TagValue = &v return s } type DescribeElasticityAssurancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeElasticityAssurancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeElasticityAssurancesResponse) String() string { return tea.Prettify(s) } func (s DescribeElasticityAssurancesResponse) GoString() string { return s.String() } func (s *DescribeElasticityAssurancesResponse) SetHeaders(v map[string]*string) *DescribeElasticityAssurancesResponse { s.Headers = v return s } func (s *DescribeElasticityAssurancesResponse) SetStatusCode(v int32) *DescribeElasticityAssurancesResponse { s.StatusCode = &v return s } func (s *DescribeElasticityAssurancesResponse) SetBody(v *DescribeElasticityAssurancesResponseBody) *DescribeElasticityAssurancesResponse { s.Body = v return s } type DescribeEniMonitorDataRequest struct { // The end of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The secondary ENI ID. By default, all secondary ENIs that are bound to the specified instance are queried. EniId *string `json:"EniId,omitempty" xml:"EniId,omitempty"` // The ID of the instance to which the secondary ENI is bound. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The interval at which to retrieve monitoring data. Unit: seconds. Valid values: // // * 60 // * 600 // * 3600 // // Default value: 60. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The beginning of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeEniMonitorDataRequest) String() string { return tea.Prettify(s) } func (s DescribeEniMonitorDataRequest) GoString() string { return s.String() } func (s *DescribeEniMonitorDataRequest) SetEndTime(v string) *DescribeEniMonitorDataRequest { s.EndTime = &v return s } func (s *DescribeEniMonitorDataRequest) SetEniId(v string) *DescribeEniMonitorDataRequest { s.EniId = &v return s } func (s *DescribeEniMonitorDataRequest) SetInstanceId(v string) *DescribeEniMonitorDataRequest { s.InstanceId = &v return s } func (s *DescribeEniMonitorDataRequest) SetOwnerAccount(v string) *DescribeEniMonitorDataRequest { s.OwnerAccount = &v return s } func (s *DescribeEniMonitorDataRequest) SetOwnerId(v int64) *DescribeEniMonitorDataRequest { s.OwnerId = &v return s } func (s *DescribeEniMonitorDataRequest) SetPeriod(v int32) *DescribeEniMonitorDataRequest { s.Period = &v return s } func (s *DescribeEniMonitorDataRequest) SetRegionId(v string) *DescribeEniMonitorDataRequest { s.RegionId = &v return s } func (s *DescribeEniMonitorDataRequest) SetResourceOwnerAccount(v string) *DescribeEniMonitorDataRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeEniMonitorDataRequest) SetResourceOwnerId(v int64) *DescribeEniMonitorDataRequest { s.ResourceOwnerId = &v return s } func (s *DescribeEniMonitorDataRequest) SetStartTime(v string) *DescribeEniMonitorDataRequest { s.StartTime = &v return s } type DescribeEniMonitorDataResponseBody struct { // The monitoring data of the secondary ENI. MonitorData *DescribeEniMonitorDataResponseBodyMonitorData `json:"MonitorData,omitempty" xml:"MonitorData,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeEniMonitorDataResponseBody) String() string { return tea.Prettify(s) } func (s DescribeEniMonitorDataResponseBody) GoString() string { return s.String() } func (s *DescribeEniMonitorDataResponseBody) SetMonitorData(v *DescribeEniMonitorDataResponseBodyMonitorData) *DescribeEniMonitorDataResponseBody { s.MonitorData = v return s } func (s *DescribeEniMonitorDataResponseBody) SetRequestId(v string) *DescribeEniMonitorDataResponseBody { s.RequestId = &v return s } func (s *DescribeEniMonitorDataResponseBody) SetTotalCount(v int32) *DescribeEniMonitorDataResponseBody { s.TotalCount = &v return s } type DescribeEniMonitorDataResponseBodyMonitorData struct { EniMonitorData []*DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData `json:"EniMonitorData,omitempty" xml:"EniMonitorData,omitempty" type:"Repeated"` } func (s DescribeEniMonitorDataResponseBodyMonitorData) String() string { return tea.Prettify(s) } func (s DescribeEniMonitorDataResponseBodyMonitorData) GoString() string { return s.String() } func (s *DescribeEniMonitorDataResponseBodyMonitorData) SetEniMonitorData(v []*DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) *DescribeEniMonitorDataResponseBodyMonitorData { s.EniMonitorData = v return s } type DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData struct { // The number of received packets that were dropped by the secondary ENI over the internal network. DropPacketRx *string `json:"DropPacketRx,omitempty" xml:"DropPacketRx,omitempty"` // The number of sent packets that were dropped by the secondary ENI over the internal network. DropPacketTx *string `json:"DropPacketTx,omitempty" xml:"DropPacketTx,omitempty"` // The ID of the secondary ENI. EniId *string `json:"EniId,omitempty" xml:"EniId,omitempty"` // The average rate at which the secondary ENI received data over the internal network. Unit: Kbit/s. IntranetRx *string `json:"IntranetRx,omitempty" xml:"IntranetRx,omitempty"` // The average rate at which the secondary ENI sent data over the internal network. Unit: Kbit/s. IntranetTx *string `json:"IntranetTx,omitempty" xml:"IntranetTx,omitempty"` // The number of packets received by the secondary ENI over the internal network. PacketRx *string `json:"PacketRx,omitempty" xml:"PacketRx,omitempty"` // The number of packets sent by the secondary ENI over the internal network. PacketTx *string `json:"PacketTx,omitempty" xml:"PacketTx,omitempty"` // The timestamp of the monitoring data. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. TimeStamp *string `json:"TimeStamp,omitempty" xml:"TimeStamp,omitempty"` } func (s DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) String() string { return tea.Prettify(s) } func (s DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) GoString() string { return s.String() } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetDropPacketRx(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.DropPacketRx = &v return s } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetDropPacketTx(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.DropPacketTx = &v return s } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetEniId(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.EniId = &v return s } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetIntranetRx(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.IntranetRx = &v return s } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetIntranetTx(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.IntranetTx = &v return s } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetPacketRx(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.PacketRx = &v return s } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetPacketTx(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.PacketTx = &v return s } func (s *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData) SetTimeStamp(v string) *DescribeEniMonitorDataResponseBodyMonitorDataEniMonitorData { s.TimeStamp = &v return s } type DescribeEniMonitorDataResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeEniMonitorDataResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeEniMonitorDataResponse) String() string { return tea.Prettify(s) } func (s DescribeEniMonitorDataResponse) GoString() string { return s.String() } func (s *DescribeEniMonitorDataResponse) SetHeaders(v map[string]*string) *DescribeEniMonitorDataResponse { s.Headers = v return s } func (s *DescribeEniMonitorDataResponse) SetStatusCode(v int32) *DescribeEniMonitorDataResponse { s.StatusCode = &v return s } func (s *DescribeEniMonitorDataResponse) SetBody(v *DescribeEniMonitorDataResponseBody) *DescribeEniMonitorDataResponse { s.Body = v return s } type DescribeForwardTableEntriesRequest struct { ForwardEntryId *string `json:"ForwardEntryId,omitempty" xml:"ForwardEntryId,omitempty"` ForwardTableId *string `json:"ForwardTableId,omitempty" xml:"ForwardTableId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeForwardTableEntriesRequest) String() string { return tea.Prettify(s) } func (s DescribeForwardTableEntriesRequest) GoString() string { return s.String() } func (s *DescribeForwardTableEntriesRequest) SetForwardEntryId(v string) *DescribeForwardTableEntriesRequest { s.ForwardEntryId = &v return s } func (s *DescribeForwardTableEntriesRequest) SetForwardTableId(v string) *DescribeForwardTableEntriesRequest { s.ForwardTableId = &v return s } func (s *DescribeForwardTableEntriesRequest) SetOwnerAccount(v string) *DescribeForwardTableEntriesRequest { s.OwnerAccount = &v return s } func (s *DescribeForwardTableEntriesRequest) SetOwnerId(v int64) *DescribeForwardTableEntriesRequest { s.OwnerId = &v return s } func (s *DescribeForwardTableEntriesRequest) SetPageNumber(v int32) *DescribeForwardTableEntriesRequest { s.PageNumber = &v return s } func (s *DescribeForwardTableEntriesRequest) SetPageSize(v int32) *DescribeForwardTableEntriesRequest { s.PageSize = &v return s } func (s *DescribeForwardTableEntriesRequest) SetRegionId(v string) *DescribeForwardTableEntriesRequest { s.RegionId = &v return s } func (s *DescribeForwardTableEntriesRequest) SetResourceOwnerAccount(v string) *DescribeForwardTableEntriesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeForwardTableEntriesRequest) SetResourceOwnerId(v int64) *DescribeForwardTableEntriesRequest { s.ResourceOwnerId = &v return s } type DescribeForwardTableEntriesResponseBody struct { ForwardTableEntries *DescribeForwardTableEntriesResponseBodyForwardTableEntries `json:"ForwardTableEntries,omitempty" xml:"ForwardTableEntries,omitempty" type:"Struct"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeForwardTableEntriesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeForwardTableEntriesResponseBody) GoString() string { return s.String() } func (s *DescribeForwardTableEntriesResponseBody) SetForwardTableEntries(v *DescribeForwardTableEntriesResponseBodyForwardTableEntries) *DescribeForwardTableEntriesResponseBody { s.ForwardTableEntries = v return s } func (s *DescribeForwardTableEntriesResponseBody) SetPageNumber(v int32) *DescribeForwardTableEntriesResponseBody { s.PageNumber = &v return s } func (s *DescribeForwardTableEntriesResponseBody) SetPageSize(v int32) *DescribeForwardTableEntriesResponseBody { s.PageSize = &v return s } func (s *DescribeForwardTableEntriesResponseBody) SetRequestId(v string) *DescribeForwardTableEntriesResponseBody { s.RequestId = &v return s } func (s *DescribeForwardTableEntriesResponseBody) SetTotalCount(v int32) *DescribeForwardTableEntriesResponseBody { s.TotalCount = &v return s } type DescribeForwardTableEntriesResponseBodyForwardTableEntries struct { ForwardTableEntry []*DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry `json:"ForwardTableEntry,omitempty" xml:"ForwardTableEntry,omitempty" type:"Repeated"` } func (s DescribeForwardTableEntriesResponseBodyForwardTableEntries) String() string { return tea.Prettify(s) } func (s DescribeForwardTableEntriesResponseBodyForwardTableEntries) GoString() string { return s.String() } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntries) SetForwardTableEntry(v []*DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) *DescribeForwardTableEntriesResponseBodyForwardTableEntries { s.ForwardTableEntry = v return s } type DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry struct { ExternalIp *string `json:"ExternalIp,omitempty" xml:"ExternalIp,omitempty"` ExternalPort *string `json:"ExternalPort,omitempty" xml:"ExternalPort,omitempty"` ForwardEntryId *string `json:"ForwardEntryId,omitempty" xml:"ForwardEntryId,omitempty"` ForwardTableId *string `json:"ForwardTableId,omitempty" xml:"ForwardTableId,omitempty"` InternalIp *string `json:"InternalIp,omitempty" xml:"InternalIp,omitempty"` InternalPort *string `json:"InternalPort,omitempty" xml:"InternalPort,omitempty"` IpProtocol *string `json:"IpProtocol,omitempty" xml:"IpProtocol,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) String() string { return tea.Prettify(s) } func (s DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) GoString() string { return s.String() } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetExternalIp(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.ExternalIp = &v return s } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetExternalPort(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.ExternalPort = &v return s } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetForwardEntryId(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.ForwardEntryId = &v return s } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetForwardTableId(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.ForwardTableId = &v return s } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetInternalIp(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.InternalIp = &v return s } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetInternalPort(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.InternalPort = &v return s } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetIpProtocol(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.IpProtocol = &v return s } func (s *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry) SetStatus(v string) *DescribeForwardTableEntriesResponseBodyForwardTableEntriesForwardTableEntry { s.Status = &v return s } type DescribeForwardTableEntriesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeForwardTableEntriesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeForwardTableEntriesResponse) String() string { return tea.Prettify(s) } func (s DescribeForwardTableEntriesResponse) GoString() string { return s.String() } func (s *DescribeForwardTableEntriesResponse) SetHeaders(v map[string]*string) *DescribeForwardTableEntriesResponse { s.Headers = v return s } func (s *DescribeForwardTableEntriesResponse) SetStatusCode(v int32) *DescribeForwardTableEntriesResponse { s.StatusCode = &v return s } func (s *DescribeForwardTableEntriesResponse) SetBody(v *DescribeForwardTableEntriesResponseBody) *DescribeForwardTableEntriesResponse { s.Body = v return s } type DescribeHaVipsRequest struct { Filter []*DescribeHaVipsRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeHaVipsRequest) String() string { return tea.Prettify(s) } func (s DescribeHaVipsRequest) GoString() string { return s.String() } func (s *DescribeHaVipsRequest) SetFilter(v []*DescribeHaVipsRequestFilter) *DescribeHaVipsRequest { s.Filter = v return s } func (s *DescribeHaVipsRequest) SetOwnerAccount(v string) *DescribeHaVipsRequest { s.OwnerAccount = &v return s } func (s *DescribeHaVipsRequest) SetOwnerId(v int64) *DescribeHaVipsRequest { s.OwnerId = &v return s } func (s *DescribeHaVipsRequest) SetPageNumber(v int32) *DescribeHaVipsRequest { s.PageNumber = &v return s } func (s *DescribeHaVipsRequest) SetPageSize(v int32) *DescribeHaVipsRequest { s.PageSize = &v return s } func (s *DescribeHaVipsRequest) SetRegionId(v string) *DescribeHaVipsRequest { s.RegionId = &v return s } func (s *DescribeHaVipsRequest) SetResourceOwnerAccount(v string) *DescribeHaVipsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeHaVipsRequest) SetResourceOwnerId(v int64) *DescribeHaVipsRequest { s.ResourceOwnerId = &v return s } type DescribeHaVipsRequestFilter struct { Key *string `json:"Key,omitempty" xml:"Key,omitempty"` Value []*string `json:"Value,omitempty" xml:"Value,omitempty" type:"Repeated"` } func (s DescribeHaVipsRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeHaVipsRequestFilter) GoString() string { return s.String() } func (s *DescribeHaVipsRequestFilter) SetKey(v string) *DescribeHaVipsRequestFilter { s.Key = &v return s } func (s *DescribeHaVipsRequestFilter) SetValue(v []*string) *DescribeHaVipsRequestFilter { s.Value = v return s } type DescribeHaVipsResponseBody struct { HaVips *DescribeHaVipsResponseBodyHaVips `json:"HaVips,omitempty" xml:"HaVips,omitempty" type:"Struct"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeHaVipsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeHaVipsResponseBody) GoString() string { return s.String() } func (s *DescribeHaVipsResponseBody) SetHaVips(v *DescribeHaVipsResponseBodyHaVips) *DescribeHaVipsResponseBody { s.HaVips = v return s } func (s *DescribeHaVipsResponseBody) SetPageNumber(v int32) *DescribeHaVipsResponseBody { s.PageNumber = &v return s } func (s *DescribeHaVipsResponseBody) SetPageSize(v int32) *DescribeHaVipsResponseBody { s.PageSize = &v return s } func (s *DescribeHaVipsResponseBody) SetRequestId(v string) *DescribeHaVipsResponseBody { s.RequestId = &v return s } func (s *DescribeHaVipsResponseBody) SetTotalCount(v int32) *DescribeHaVipsResponseBody { s.TotalCount = &v return s } type DescribeHaVipsResponseBodyHaVips struct { HaVip []*DescribeHaVipsResponseBodyHaVipsHaVip `json:"HaVip,omitempty" xml:"HaVip,omitempty" type:"Repeated"` } func (s DescribeHaVipsResponseBodyHaVips) String() string { return tea.Prettify(s) } func (s DescribeHaVipsResponseBodyHaVips) GoString() string { return s.String() } func (s *DescribeHaVipsResponseBodyHaVips) SetHaVip(v []*DescribeHaVipsResponseBodyHaVipsHaVip) *DescribeHaVipsResponseBodyHaVips { s.HaVip = v return s } type DescribeHaVipsResponseBodyHaVipsHaVip struct { AssociatedEipAddresses *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedEipAddresses `json:"AssociatedEipAddresses,omitempty" xml:"AssociatedEipAddresses,omitempty" type:"Struct"` AssociatedInstances *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedInstances `json:"AssociatedInstances,omitempty" xml:"AssociatedInstances,omitempty" type:"Struct"` CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` HaVipId *string `json:"HaVipId,omitempty" xml:"HaVipId,omitempty"` IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` MasterInstanceId *string `json:"MasterInstanceId,omitempty" xml:"MasterInstanceId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeHaVipsResponseBodyHaVipsHaVip) String() string { return tea.Prettify(s) } func (s DescribeHaVipsResponseBodyHaVipsHaVip) GoString() string { return s.String() } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetAssociatedEipAddresses(v *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedEipAddresses) *DescribeHaVipsResponseBodyHaVipsHaVip { s.AssociatedEipAddresses = v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetAssociatedInstances(v *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedInstances) *DescribeHaVipsResponseBodyHaVipsHaVip { s.AssociatedInstances = v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetCreateTime(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.CreateTime = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetDescription(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.Description = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetHaVipId(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.HaVipId = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetIpAddress(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.IpAddress = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetMasterInstanceId(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.MasterInstanceId = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetRegionId(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.RegionId = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetStatus(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.Status = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetVSwitchId(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.VSwitchId = &v return s } func (s *DescribeHaVipsResponseBodyHaVipsHaVip) SetVpcId(v string) *DescribeHaVipsResponseBodyHaVipsHaVip { s.VpcId = &v return s } type DescribeHaVipsResponseBodyHaVipsHaVipAssociatedEipAddresses struct { AssociatedEipAddresse []*string `json:"associatedEipAddresse,omitempty" xml:"associatedEipAddresse,omitempty" type:"Repeated"` } func (s DescribeHaVipsResponseBodyHaVipsHaVipAssociatedEipAddresses) String() string { return tea.Prettify(s) } func (s DescribeHaVipsResponseBodyHaVipsHaVipAssociatedEipAddresses) GoString() string { return s.String() } func (s *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedEipAddresses) SetAssociatedEipAddresse(v []*string) *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedEipAddresses { s.AssociatedEipAddresse = v return s } type DescribeHaVipsResponseBodyHaVipsHaVipAssociatedInstances struct { AssociatedInstance []*string `json:"associatedInstance,omitempty" xml:"associatedInstance,omitempty" type:"Repeated"` } func (s DescribeHaVipsResponseBodyHaVipsHaVipAssociatedInstances) String() string { return tea.Prettify(s) } func (s DescribeHaVipsResponseBodyHaVipsHaVipAssociatedInstances) GoString() string { return s.String() } func (s *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedInstances) SetAssociatedInstance(v []*string) *DescribeHaVipsResponseBodyHaVipsHaVipAssociatedInstances { s.AssociatedInstance = v return s } type DescribeHaVipsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeHaVipsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeHaVipsResponse) String() string { return tea.Prettify(s) } func (s DescribeHaVipsResponse) GoString() string { return s.String() } func (s *DescribeHaVipsResponse) SetHeaders(v map[string]*string) *DescribeHaVipsResponse { s.Headers = v return s } func (s *DescribeHaVipsResponse) SetStatusCode(v int32) *DescribeHaVipsResponse { s.StatusCode = &v return s } func (s *DescribeHaVipsResponse) SetBody(v *DescribeHaVipsResponseBody) *DescribeHaVipsResponse { s.Body = v return s } type DescribeHpcClustersRequest struct { // The page number. // // Pages start from page 1. // // Default value: 1. ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The number of entries per page. // // Maximum value: 100. // // Default value: 10. HpcClusterIds *string `json:"HpcClusterIds,omitempty" xml:"HpcClusterIds,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of entries per page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The request ID. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The IDs of HPC clusters. The value is a JSON array that consists of up to 100 HPC cluster IDs. Separate the HPC cluster IDs with commas (,). RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeHpcClustersRequest) String() string { return tea.Prettify(s) } func (s DescribeHpcClustersRequest) GoString() string { return s.String() } func (s *DescribeHpcClustersRequest) SetClientToken(v string) *DescribeHpcClustersRequest { s.ClientToken = &v return s } func (s *DescribeHpcClustersRequest) SetHpcClusterIds(v string) *DescribeHpcClustersRequest { s.HpcClusterIds = &v return s } func (s *DescribeHpcClustersRequest) SetOwnerAccount(v string) *DescribeHpcClustersRequest { s.OwnerAccount = &v return s } func (s *DescribeHpcClustersRequest) SetOwnerId(v int64) *DescribeHpcClustersRequest { s.OwnerId = &v return s } func (s *DescribeHpcClustersRequest) SetPageNumber(v int32) *DescribeHpcClustersRequest { s.PageNumber = &v return s } func (s *DescribeHpcClustersRequest) SetPageSize(v int32) *DescribeHpcClustersRequest { s.PageSize = &v return s } func (s *DescribeHpcClustersRequest) SetRegionId(v string) *DescribeHpcClustersRequest { s.RegionId = &v return s } func (s *DescribeHpcClustersRequest) SetResourceOwnerAccount(v string) *DescribeHpcClustersRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeHpcClustersRequest) SetResourceOwnerId(v int64) *DescribeHpcClustersRequest { s.ResourceOwnerId = &v return s } type DescribeHpcClustersResponseBody struct { // The name of the HPC cluster. HpcClusters *DescribeHpcClustersResponseBodyHpcClusters `json:"HpcClusters,omitempty" xml:"HpcClusters,omitempty" type:"Struct"` // Details about the HPC clusters. The value is an array that consists of the information of each HPC cluster. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The page number. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The total number of HPC clusters. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the HPC cluster. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeHpcClustersResponseBody) String() string { return tea.Prettify(s) } func (s DescribeHpcClustersResponseBody) GoString() string { return s.String() } func (s *DescribeHpcClustersResponseBody) SetHpcClusters(v *DescribeHpcClustersResponseBodyHpcClusters) *DescribeHpcClustersResponseBody { s.HpcClusters = v return s } func (s *DescribeHpcClustersResponseBody) SetPageNumber(v int32) *DescribeHpcClustersResponseBody { s.PageNumber = &v return s } func (s *DescribeHpcClustersResponseBody) SetPageSize(v int32) *DescribeHpcClustersResponseBody { s.PageSize = &v return s } func (s *DescribeHpcClustersResponseBody) SetRequestId(v string) *DescribeHpcClustersResponseBody { s.RequestId = &v return s } func (s *DescribeHpcClustersResponseBody) SetTotalCount(v int32) *DescribeHpcClustersResponseBody { s.TotalCount = &v return s } type DescribeHpcClustersResponseBodyHpcClusters struct { HpcCluster []*DescribeHpcClustersResponseBodyHpcClustersHpcCluster `json:"HpcCluster,omitempty" xml:"HpcCluster,omitempty" type:"Repeated"` } func (s DescribeHpcClustersResponseBodyHpcClusters) String() string { return tea.Prettify(s) } func (s DescribeHpcClustersResponseBodyHpcClusters) GoString() string { return s.String() } func (s *DescribeHpcClustersResponseBodyHpcClusters) SetHpcCluster(v []*DescribeHpcClustersResponseBodyHpcClustersHpcCluster) *DescribeHpcClustersResponseBodyHpcClusters { s.HpcCluster = v return s } type DescribeHpcClustersResponseBodyHpcClustersHpcCluster struct { Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The description of the HPC cluster. HpcClusterId *string `json:"HpcClusterId,omitempty" xml:"HpcClusterId,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeHpcClustersResponseBodyHpcClustersHpcCluster) String() string { return tea.Prettify(s) } func (s DescribeHpcClustersResponseBodyHpcClustersHpcCluster) GoString() string { return s.String() } func (s *DescribeHpcClustersResponseBodyHpcClustersHpcCluster) SetDescription(v string) *DescribeHpcClustersResponseBodyHpcClustersHpcCluster { s.Description = &v return s } func (s *DescribeHpcClustersResponseBodyHpcClustersHpcCluster) SetHpcClusterId(v string) *DescribeHpcClustersResponseBodyHpcClustersHpcCluster { s.HpcClusterId = &v return s } func (s *DescribeHpcClustersResponseBodyHpcClustersHpcCluster) SetName(v string) *DescribeHpcClustersResponseBodyHpcClustersHpcCluster { s.Name = &v return s } type DescribeHpcClustersResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeHpcClustersResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeHpcClustersResponse) String() string { return tea.Prettify(s) } func (s DescribeHpcClustersResponse) GoString() string { return s.String() } func (s *DescribeHpcClustersResponse) SetHeaders(v map[string]*string) *DescribeHpcClustersResponse { s.Headers = v return s } func (s *DescribeHpcClustersResponse) SetStatusCode(v int32) *DescribeHpcClustersResponse { s.StatusCode = &v return s } func (s *DescribeHpcClustersResponse) SetBody(v *DescribeHpcClustersResponseBody) *DescribeHpcClustersResponse { s.Body = v return s } type DescribeImageComponentsRequest struct { // The IDs of the image components. You can specify up to 20 image components. ImageComponentId []*string `json:"ImageComponentId,omitempty" xml:"ImageComponentId,omitempty" type:"Repeated"` // The maximum number of entries to return on each page. Valid values: 1 to 500. // // Default value: 50. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The name of the image component. You must specify an exact name to search for the image component. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The query token. Set the value to the `NextToken` value returned in the last call to the DescribeImageComponents operation. Leave this parameter empty the first time you call this operation. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The type of the image component. Valid values: // // * SELF: the custom component that you created. // * ALIYUN: the system component provided by Alibaba Cloud. Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the image component. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags Tag []*DescribeImageComponentsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImageComponentsRequest) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsRequest) GoString() string { return s.String() } func (s *DescribeImageComponentsRequest) SetImageComponentId(v []*string) *DescribeImageComponentsRequest { s.ImageComponentId = v return s } func (s *DescribeImageComponentsRequest) SetMaxResults(v int32) *DescribeImageComponentsRequest { s.MaxResults = &v return s } func (s *DescribeImageComponentsRequest) SetName(v string) *DescribeImageComponentsRequest { s.Name = &v return s } func (s *DescribeImageComponentsRequest) SetNextToken(v string) *DescribeImageComponentsRequest { s.NextToken = &v return s } func (s *DescribeImageComponentsRequest) SetOwner(v string) *DescribeImageComponentsRequest { s.Owner = &v return s } func (s *DescribeImageComponentsRequest) SetOwnerAccount(v string) *DescribeImageComponentsRequest { s.OwnerAccount = &v return s } func (s *DescribeImageComponentsRequest) SetOwnerId(v int64) *DescribeImageComponentsRequest { s.OwnerId = &v return s } func (s *DescribeImageComponentsRequest) SetRegionId(v string) *DescribeImageComponentsRequest { s.RegionId = &v return s } func (s *DescribeImageComponentsRequest) SetResourceGroupId(v string) *DescribeImageComponentsRequest { s.ResourceGroupId = &v return s } func (s *DescribeImageComponentsRequest) SetResourceOwnerAccount(v string) *DescribeImageComponentsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeImageComponentsRequest) SetResourceOwnerId(v int64) *DescribeImageComponentsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeImageComponentsRequest) SetTag(v []*DescribeImageComponentsRequestTag) *DescribeImageComponentsRequest { s.Tag = v return s } type DescribeImageComponentsRequestTag struct { // The key of tag N of the image component. Valid values of N: 1 to 20. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the image component. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeImageComponentsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsRequestTag) GoString() string { return s.String() } func (s *DescribeImageComponentsRequestTag) SetKey(v string) *DescribeImageComponentsRequestTag { s.Key = &v return s } func (s *DescribeImageComponentsRequestTag) SetValue(v string) *DescribeImageComponentsRequestTag { s.Value = &v return s } type DescribeImageComponentsResponseBody struct { // Details about the image components. ImageComponent *DescribeImageComponentsResponseBodyImageComponent `json:"ImageComponent,omitempty" xml:"ImageComponent,omitempty" type:"Struct"` // The maximum number of entries returned per page. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The query token returned in this call. For information about how to use this return value, see the "Description" section in this topic. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of image components returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeImageComponentsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsResponseBody) GoString() string { return s.String() } func (s *DescribeImageComponentsResponseBody) SetImageComponent(v *DescribeImageComponentsResponseBodyImageComponent) *DescribeImageComponentsResponseBody { s.ImageComponent = v return s } func (s *DescribeImageComponentsResponseBody) SetMaxResults(v int32) *DescribeImageComponentsResponseBody { s.MaxResults = &v return s } func (s *DescribeImageComponentsResponseBody) SetNextToken(v string) *DescribeImageComponentsResponseBody { s.NextToken = &v return s } func (s *DescribeImageComponentsResponseBody) SetRequestId(v string) *DescribeImageComponentsResponseBody { s.RequestId = &v return s } func (s *DescribeImageComponentsResponseBody) SetTotalCount(v int32) *DescribeImageComponentsResponseBody { s.TotalCount = &v return s } type DescribeImageComponentsResponseBodyImageComponent struct { ImageComponentSet []*DescribeImageComponentsResponseBodyImageComponentImageComponentSet `json:"ImageComponentSet,omitempty" xml:"ImageComponentSet,omitempty" type:"Repeated"` } func (s DescribeImageComponentsResponseBodyImageComponent) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsResponseBodyImageComponent) GoString() string { return s.String() } func (s *DescribeImageComponentsResponseBodyImageComponent) SetImageComponentSet(v []*DescribeImageComponentsResponseBodyImageComponentImageComponentSet) *DescribeImageComponentsResponseBodyImageComponent { s.ImageComponentSet = v return s } type DescribeImageComponentsResponseBodyImageComponentImageComponentSet struct { // The type of the image component. ComponentType *string `json:"ComponentType,omitempty" xml:"ComponentType,omitempty"` // The content of the image component. Content *string `json:"Content,omitempty" xml:"Content,omitempty"` // The time when the image component was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the image component. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the image component. ImageComponentId *string `json:"ImageComponentId,omitempty" xml:"ImageComponentId,omitempty"` // The name of the image component. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The type of the image component. Valid values: // // * SELF: the custom component that you created. // * ALIYUN: the system component provided by Alibaba Cloud. Owner *string `json:"Owner,omitempty" xml:"Owner,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The operating system type supported by the image component. SystemType *string `json:"SystemType,omitempty" xml:"SystemType,omitempty"` // The tags of the image component. Tags *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` } func (s DescribeImageComponentsResponseBodyImageComponentImageComponentSet) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsResponseBodyImageComponentImageComponentSet) GoString() string { return s.String() } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetComponentType(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.ComponentType = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetContent(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.Content = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetCreationTime(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.CreationTime = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetDescription(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.Description = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetImageComponentId(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.ImageComponentId = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetName(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.Name = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetOwner(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.Owner = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetResourceGroupId(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.ResourceGroupId = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetSystemType(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.SystemType = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSet) SetTags(v *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags) *DescribeImageComponentsResponseBodyImageComponentImageComponentSet { s.Tags = v return s } type DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags struct { Tag []*DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags) GoString() string { return s.String() } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags) SetTag(v []*DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag) *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags { s.Tag = v return s } type DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag struct { // The tag key of the image component. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the image component. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag) GoString() string { return s.String() } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag) SetTagKey(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag { s.TagKey = &v return s } func (s *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag) SetTagValue(v string) *DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag { s.TagValue = &v return s } type DescribeImageComponentsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeImageComponentsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeImageComponentsResponse) String() string { return tea.Prettify(s) } func (s DescribeImageComponentsResponse) GoString() string { return s.String() } func (s *DescribeImageComponentsResponse) SetHeaders(v map[string]*string) *DescribeImageComponentsResponse { s.Headers = v return s } func (s *DescribeImageComponentsResponse) SetStatusCode(v int32) *DescribeImageComponentsResponse { s.StatusCode = &v return s } func (s *DescribeImageComponentsResponse) SetBody(v *DescribeImageComponentsResponseBody) *DescribeImageComponentsResponse { s.Body = v return s } type DescribeImageFromFamilyRequest struct { // The name of the image family. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (\_), and hyphens (-). It must start with a letter and cannot start with http://, https://, acs:, or aliyun. ImageFamily *string `json:"ImageFamily,omitempty" xml:"ImageFamily,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeImageFromFamilyRequest) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyRequest) GoString() string { return s.String() } func (s *DescribeImageFromFamilyRequest) SetImageFamily(v string) *DescribeImageFromFamilyRequest { s.ImageFamily = &v return s } func (s *DescribeImageFromFamilyRequest) SetOwnerAccount(v string) *DescribeImageFromFamilyRequest { s.OwnerAccount = &v return s } func (s *DescribeImageFromFamilyRequest) SetOwnerId(v int64) *DescribeImageFromFamilyRequest { s.OwnerId = &v return s } func (s *DescribeImageFromFamilyRequest) SetRegionId(v string) *DescribeImageFromFamilyRequest { s.RegionId = &v return s } func (s *DescribeImageFromFamilyRequest) SetResourceOwnerAccount(v string) *DescribeImageFromFamilyRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeImageFromFamilyRequest) SetResourceOwnerId(v int64) *DescribeImageFromFamilyRequest { s.ResourceOwnerId = &v return s } type DescribeImageFromFamilyResponseBody struct { // The image information. Image *DescribeImageFromFamilyResponseBodyImage `json:"Image,omitempty" xml:"Image,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeImageFromFamilyResponseBody) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyResponseBody) GoString() string { return s.String() } func (s *DescribeImageFromFamilyResponseBody) SetImage(v *DescribeImageFromFamilyResponseBodyImage) *DescribeImageFromFamilyResponseBody { s.Image = v return s } func (s *DescribeImageFromFamilyResponseBody) SetRequestId(v string) *DescribeImageFromFamilyResponseBody { s.RequestId = &v return s } type DescribeImageFromFamilyResponseBodyImage struct { // The image architecture. Valid values: // // * i386 // * x86\_64 Architecture *string `json:"Architecture,omitempty" xml:"Architecture,omitempty"` // The time when the image was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the image. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The mappings between the disks and snapshots under the image. DiskDeviceMappings *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings `json:"DiskDeviceMappings,omitempty" xml:"DiskDeviceMappings,omitempty" type:"Struct"` // The name of the image family. ImageFamily *string `json:"ImageFamily,omitempty" xml:"ImageFamily,omitempty"` // The ID of the image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The name of the image. ImageName *string `json:"ImageName,omitempty" xml:"ImageName,omitempty"` // The alias of the image owner. Valid values: // // - system: public images provided by Alibaba Cloud // - self: your custom images // - others: shared images from other Alibaba Cloud accounts // - marketplace: Alibaba Cloud Marketplace images ImageOwnerAlias *string `json:"ImageOwnerAlias,omitempty" xml:"ImageOwnerAlias,omitempty"` // The version of the image. ImageVersion *string `json:"ImageVersion,omitempty" xml:"ImageVersion,omitempty"` // Indicates whether the image is a copy of another image. IsCopied *bool `json:"IsCopied,omitempty" xml:"IsCopied,omitempty"` // Indicates whether the image has been shared to other Alibaba Cloud accounts. IsSelfShared *string `json:"IsSelfShared,omitempty" xml:"IsSelfShared,omitempty"` // Indicates whether you have subscribed to the image corresponding to the specified product code. IsSubscribed *bool `json:"IsSubscribed,omitempty" xml:"IsSubscribed,omitempty"` // Indicates whether the image supports cloud-init. IsSupportCloudinit *bool `json:"IsSupportCloudinit,omitempty" xml:"IsSupportCloudinit,omitempty"` // Indicates whether the image can be used on I/O optimized instances. IsSupportIoOptimized *bool `json:"IsSupportIoOptimized,omitempty" xml:"IsSupportIoOptimized,omitempty"` // The name of the operating system. OSName *string `json:"OSName,omitempty" xml:"OSName,omitempty"` // The type of the operating system. Valid values: // // - windows // - linux OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` // The platform of the operating system. Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The product code of the Alibaba Cloud Marketplace image. ProductCode *string `json:"ProductCode,omitempty" xml:"ProductCode,omitempty"` // The image creation progress. Unit: percent (%). Progress *string `json:"Progress,omitempty" xml:"Progress,omitempty"` // The size of the image. Unit: GiB. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The status of the image. Valid values: // // - UnAvailable: The image is unavailable. // - Available: The image is available. // - Creating: The image is being created. // - CreateFailed: The image failed to be created. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // An array that consists of Tag data. Tags *DescribeImageFromFamilyResponseBodyImageTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // Indicates whether the image has been used to create ECS instances. Valid values: // // - instance: The image has been used to create one or more ECS instances. // - none: The image has not been used to create ECS instances. Usage *string `json:"Usage,omitempty" xml:"Usage,omitempty"` } func (s DescribeImageFromFamilyResponseBodyImage) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyResponseBodyImage) GoString() string { return s.String() } func (s *DescribeImageFromFamilyResponseBodyImage) SetArchitecture(v string) *DescribeImageFromFamilyResponseBodyImage { s.Architecture = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetCreationTime(v string) *DescribeImageFromFamilyResponseBodyImage { s.CreationTime = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetDescription(v string) *DescribeImageFromFamilyResponseBodyImage { s.Description = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetDiskDeviceMappings(v *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings) *DescribeImageFromFamilyResponseBodyImage { s.DiskDeviceMappings = v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetImageFamily(v string) *DescribeImageFromFamilyResponseBodyImage { s.ImageFamily = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetImageId(v string) *DescribeImageFromFamilyResponseBodyImage { s.ImageId = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetImageName(v string) *DescribeImageFromFamilyResponseBodyImage { s.ImageName = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetImageOwnerAlias(v string) *DescribeImageFromFamilyResponseBodyImage { s.ImageOwnerAlias = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetImageVersion(v string) *DescribeImageFromFamilyResponseBodyImage { s.ImageVersion = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetIsCopied(v bool) *DescribeImageFromFamilyResponseBodyImage { s.IsCopied = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetIsSelfShared(v string) *DescribeImageFromFamilyResponseBodyImage { s.IsSelfShared = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetIsSubscribed(v bool) *DescribeImageFromFamilyResponseBodyImage { s.IsSubscribed = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetIsSupportCloudinit(v bool) *DescribeImageFromFamilyResponseBodyImage { s.IsSupportCloudinit = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetIsSupportIoOptimized(v bool) *DescribeImageFromFamilyResponseBodyImage { s.IsSupportIoOptimized = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetOSName(v string) *DescribeImageFromFamilyResponseBodyImage { s.OSName = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetOSType(v string) *DescribeImageFromFamilyResponseBodyImage { s.OSType = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetPlatform(v string) *DescribeImageFromFamilyResponseBodyImage { s.Platform = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetProductCode(v string) *DescribeImageFromFamilyResponseBodyImage { s.ProductCode = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetProgress(v string) *DescribeImageFromFamilyResponseBodyImage { s.Progress = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetSize(v int32) *DescribeImageFromFamilyResponseBodyImage { s.Size = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetStatus(v string) *DescribeImageFromFamilyResponseBodyImage { s.Status = &v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetTags(v *DescribeImageFromFamilyResponseBodyImageTags) *DescribeImageFromFamilyResponseBodyImage { s.Tags = v return s } func (s *DescribeImageFromFamilyResponseBodyImage) SetUsage(v string) *DescribeImageFromFamilyResponseBodyImage { s.Usage = &v return s } type DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings struct { DiskDeviceMapping []*DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping `json:"DiskDeviceMapping,omitempty" xml:"DiskDeviceMapping,omitempty" type:"Repeated"` } func (s DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings) GoString() string { return s.String() } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings) SetDiskDeviceMapping(v []*DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings { s.DiskDeviceMapping = v return s } type DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping struct { // The device name of the disk. Example: /dev/xvdb. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The format of the image. Format *string `json:"Format,omitempty" xml:"Format,omitempty"` // The OSS bucket that contains the imported image file. ImportOSSBucket *string `json:"ImportOSSBucket,omitempty" xml:"ImportOSSBucket,omitempty"` // The OSS object corresponding to the imported image file. ImportOSSObject *string `json:"ImportOSSObject,omitempty" xml:"ImportOSSObject,omitempty"` // The size of the disk. Unit: GiB. Size *string `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The type of the image. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) GoString() string { return s.String() } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) SetDevice(v string) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping { s.Device = &v return s } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) SetFormat(v string) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping { s.Format = &v return s } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) SetImportOSSBucket(v string) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping { s.ImportOSSBucket = &v return s } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) SetImportOSSObject(v string) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping { s.ImportOSSObject = &v return s } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) SetSize(v string) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping { s.Size = &v return s } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) SetSnapshotId(v string) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping { s.SnapshotId = &v return s } func (s *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping) SetType(v string) *DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping { s.Type = &v return s } type DescribeImageFromFamilyResponseBodyImageTags struct { Tag []*DescribeImageFromFamilyResponseBodyImageTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImageFromFamilyResponseBodyImageTags) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyResponseBodyImageTags) GoString() string { return s.String() } func (s *DescribeImageFromFamilyResponseBodyImageTags) SetTag(v []*DescribeImageFromFamilyResponseBodyImageTagsTag) *DescribeImageFromFamilyResponseBodyImageTags { s.Tag = v return s } type DescribeImageFromFamilyResponseBodyImageTagsTag struct { // The tag key of the image. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the image. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeImageFromFamilyResponseBodyImageTagsTag) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyResponseBodyImageTagsTag) GoString() string { return s.String() } func (s *DescribeImageFromFamilyResponseBodyImageTagsTag) SetTagKey(v string) *DescribeImageFromFamilyResponseBodyImageTagsTag { s.TagKey = &v return s } func (s *DescribeImageFromFamilyResponseBodyImageTagsTag) SetTagValue(v string) *DescribeImageFromFamilyResponseBodyImageTagsTag { s.TagValue = &v return s } type DescribeImageFromFamilyResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeImageFromFamilyResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeImageFromFamilyResponse) String() string { return tea.Prettify(s) } func (s DescribeImageFromFamilyResponse) GoString() string { return s.String() } func (s *DescribeImageFromFamilyResponse) SetHeaders(v map[string]*string) *DescribeImageFromFamilyResponse { s.Headers = v return s } func (s *DescribeImageFromFamilyResponse) SetStatusCode(v int32) *DescribeImageFromFamilyResponse { s.StatusCode = &v return s } func (s *DescribeImageFromFamilyResponse) SetBody(v *DescribeImageFromFamilyResponseBody) *DescribeImageFromFamilyResponse { s.Body = v return s } type DescribeImagePipelineExecutionsRequest struct { // The ID of the image creation task. ExecutionId *string `json:"ExecutionId,omitempty" xml:"ExecutionId,omitempty"` // The ID of the image template. ImagePipelineId *string `json:"ImagePipelineId,omitempty" xml:"ImagePipelineId,omitempty"` // The maximum number of entries per page. Valid values: 1 to 500. // // Default value: 50. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of `NextToken`. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The status of the image creation task. You can specify multiple values. Separate the values with commas (,). Example: `BUILDING,DISTRIBUTING`. Valid values: // // * BUILDING // * DISTRIBUTING // * RELEASING // * SUCCESS // * FAILED // * CANCELLING // * CANCELLED // // > If you want to query the image creation tasks in all states, specify all values. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // > This parameter is not publicly available. Tag []*DescribeImagePipelineExecutionsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImagePipelineExecutionsRequest) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsRequest) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsRequest) SetExecutionId(v string) *DescribeImagePipelineExecutionsRequest { s.ExecutionId = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetImagePipelineId(v string) *DescribeImagePipelineExecutionsRequest { s.ImagePipelineId = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetMaxResults(v int32) *DescribeImagePipelineExecutionsRequest { s.MaxResults = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetNextToken(v string) *DescribeImagePipelineExecutionsRequest { s.NextToken = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetOwnerAccount(v string) *DescribeImagePipelineExecutionsRequest { s.OwnerAccount = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetOwnerId(v int64) *DescribeImagePipelineExecutionsRequest { s.OwnerId = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetRegionId(v string) *DescribeImagePipelineExecutionsRequest { s.RegionId = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetResourceOwnerAccount(v string) *DescribeImagePipelineExecutionsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetResourceOwnerId(v int64) *DescribeImagePipelineExecutionsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetStatus(v string) *DescribeImagePipelineExecutionsRequest { s.Status = &v return s } func (s *DescribeImagePipelineExecutionsRequest) SetTag(v []*DescribeImagePipelineExecutionsRequestTag) *DescribeImagePipelineExecutionsRequest { s.Tag = v return s } type DescribeImagePipelineExecutionsRequestTag struct { // > This parameter is not publicly available. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // > This parameter is not publicly available. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeImagePipelineExecutionsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsRequestTag) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsRequestTag) SetKey(v string) *DescribeImagePipelineExecutionsRequestTag { s.Key = &v return s } func (s *DescribeImagePipelineExecutionsRequestTag) SetValue(v string) *DescribeImagePipelineExecutionsRequestTag { s.Value = &v return s } type DescribeImagePipelineExecutionsResponseBody struct { // Details of the image creation task. ImagePipelineExecution *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecution `json:"ImagePipelineExecution,omitempty" xml:"ImagePipelineExecution,omitempty" type:"Struct"` // The maximum number of entries per page. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. For information about how to use the returned value, see the "Usage notes" section in this topic. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of returned image components. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeImagePipelineExecutionsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsResponseBody) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsResponseBody) SetImagePipelineExecution(v *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecution) *DescribeImagePipelineExecutionsResponseBody { s.ImagePipelineExecution = v return s } func (s *DescribeImagePipelineExecutionsResponseBody) SetMaxResults(v int32) *DescribeImagePipelineExecutionsResponseBody { s.MaxResults = &v return s } func (s *DescribeImagePipelineExecutionsResponseBody) SetNextToken(v string) *DescribeImagePipelineExecutionsResponseBody { s.NextToken = &v return s } func (s *DescribeImagePipelineExecutionsResponseBody) SetRequestId(v string) *DescribeImagePipelineExecutionsResponseBody { s.RequestId = &v return s } func (s *DescribeImagePipelineExecutionsResponseBody) SetTotalCount(v int32) *DescribeImagePipelineExecutionsResponseBody { s.TotalCount = &v return s } type DescribeImagePipelineExecutionsResponseBodyImagePipelineExecution struct { ImagePipelineExecutionSet []*DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet `json:"ImagePipelineExecutionSet,omitempty" xml:"ImagePipelineExecutionSet,omitempty" type:"Repeated"` } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecution) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecution) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecution) SetImagePipelineExecutionSet(v []*DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecution { s.ImagePipelineExecutionSet = v return s } type DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet struct { // The time when the image creation task was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The ID of the image creation task. ExecutionId *string `json:"ExecutionId,omitempty" xml:"ExecutionId,omitempty"` // The ID of the image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The ID of the image template. ImagePipelineId *string `json:"ImagePipelineId,omitempty" xml:"ImagePipelineId,omitempty"` // The data returned. Message *string `json:"Message,omitempty" xml:"Message,omitempty"` // The last modification time of the image creation task. ModifiedTime *string `json:"ModifiedTime,omitempty" xml:"ModifiedTime,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The status of the image creation task. Valid values: // // * BUILDING // * DISTRIBUTING // * RELEASING // * SUCCESS // * FAILED // * CANCELLING // * CANCELLED Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // > This parameter is not publicly available. Tags *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetCreationTime(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.CreationTime = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetExecutionId(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.ExecutionId = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetImageId(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.ImageId = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetImagePipelineId(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.ImagePipelineId = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetMessage(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.Message = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetModifiedTime(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.ModifiedTime = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetResourceGroupId(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.ResourceGroupId = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetStatus(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.Status = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet) SetTags(v *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTags) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSet { s.Tags = v return s } type DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTags struct { Tag []*DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTags) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTags) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTags) SetTag(v []*DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTags { s.Tag = v return s } type DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag struct { // > This parameter is not publicly available. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // > This parameter is not publicly available. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag) SetTagKey(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag { s.TagKey = &v return s } func (s *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag) SetTagValue(v string) *DescribeImagePipelineExecutionsResponseBodyImagePipelineExecutionImagePipelineExecutionSetTagsTag { s.TagValue = &v return s } type DescribeImagePipelineExecutionsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeImagePipelineExecutionsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeImagePipelineExecutionsResponse) String() string { return tea.Prettify(s) } func (s DescribeImagePipelineExecutionsResponse) GoString() string { return s.String() } func (s *DescribeImagePipelineExecutionsResponse) SetHeaders(v map[string]*string) *DescribeImagePipelineExecutionsResponse { s.Headers = v return s } func (s *DescribeImagePipelineExecutionsResponse) SetStatusCode(v int32) *DescribeImagePipelineExecutionsResponse { s.StatusCode = &v return s } func (s *DescribeImagePipelineExecutionsResponse) SetBody(v *DescribeImagePipelineExecutionsResponseBody) *DescribeImagePipelineExecutionsResponse { s.Body = v return s } type DescribeImagePipelinesRequest struct { // The ID of image template N. Valid values of N: 1 to 20. ImagePipelineId []*string `json:"ImagePipelineId,omitempty" xml:"ImagePipelineId,omitempty" type:"Repeated"` // The maximum number of entries to return on each page. Valid values: 1 to 500. // // Default value: 50. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The name of the image template. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The query token. Set the value to the `NextToken` value returned in the last call to the DescribeImagePipelines operation. Leave this parameter empty the first time you call this operation. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the image template. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The key of tag N of the image template. Valid values of N: 1 to 20. Tag []*DescribeImagePipelinesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImagePipelinesRequest) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesRequest) GoString() string { return s.String() } func (s *DescribeImagePipelinesRequest) SetImagePipelineId(v []*string) *DescribeImagePipelinesRequest { s.ImagePipelineId = v return s } func (s *DescribeImagePipelinesRequest) SetMaxResults(v int32) *DescribeImagePipelinesRequest { s.MaxResults = &v return s } func (s *DescribeImagePipelinesRequest) SetName(v string) *DescribeImagePipelinesRequest { s.Name = &v return s } func (s *DescribeImagePipelinesRequest) SetNextToken(v string) *DescribeImagePipelinesRequest { s.NextToken = &v return s } func (s *DescribeImagePipelinesRequest) SetOwnerAccount(v string) *DescribeImagePipelinesRequest { s.OwnerAccount = &v return s } func (s *DescribeImagePipelinesRequest) SetOwnerId(v int64) *DescribeImagePipelinesRequest { s.OwnerId = &v return s } func (s *DescribeImagePipelinesRequest) SetRegionId(v string) *DescribeImagePipelinesRequest { s.RegionId = &v return s } func (s *DescribeImagePipelinesRequest) SetResourceGroupId(v string) *DescribeImagePipelinesRequest { s.ResourceGroupId = &v return s } func (s *DescribeImagePipelinesRequest) SetResourceOwnerAccount(v string) *DescribeImagePipelinesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeImagePipelinesRequest) SetResourceOwnerId(v int64) *DescribeImagePipelinesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeImagePipelinesRequest) SetTag(v []*DescribeImagePipelinesRequestTag) *DescribeImagePipelinesRequest { s.Tag = v return s } type DescribeImagePipelinesRequestTag struct { // The key of tag N of the image template. Valid values of N: 1 to 20. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the image template. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeImagePipelinesRequestTag) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesRequestTag) GoString() string { return s.String() } func (s *DescribeImagePipelinesRequestTag) SetKey(v string) *DescribeImagePipelinesRequestTag { s.Key = &v return s } func (s *DescribeImagePipelinesRequestTag) SetValue(v string) *DescribeImagePipelinesRequestTag { s.Value = &v return s } type DescribeImagePipelinesResponseBody struct { // Details of the image templates. ImagePipeline *DescribeImagePipelinesResponseBodyImagePipeline `json:"ImagePipeline,omitempty" xml:"ImagePipeline,omitempty" type:"Struct"` // The maximum number of entries returned per page. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The query token returned in this call. For information about how to use this return value, see the "Description" section in this topic. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of image templates returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeImagePipelinesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponseBody) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponseBody) SetImagePipeline(v *DescribeImagePipelinesResponseBodyImagePipeline) *DescribeImagePipelinesResponseBody { s.ImagePipeline = v return s } func (s *DescribeImagePipelinesResponseBody) SetMaxResults(v int32) *DescribeImagePipelinesResponseBody { s.MaxResults = &v return s } func (s *DescribeImagePipelinesResponseBody) SetNextToken(v string) *DescribeImagePipelinesResponseBody { s.NextToken = &v return s } func (s *DescribeImagePipelinesResponseBody) SetRequestId(v string) *DescribeImagePipelinesResponseBody { s.RequestId = &v return s } func (s *DescribeImagePipelinesResponseBody) SetTotalCount(v int32) *DescribeImagePipelinesResponseBody { s.TotalCount = &v return s } type DescribeImagePipelinesResponseBodyImagePipeline struct { ImagePipelineSet []*DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet `json:"ImagePipelineSet,omitempty" xml:"ImagePipelineSet,omitempty" type:"Repeated"` } func (s DescribeImagePipelinesResponseBodyImagePipeline) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponseBodyImagePipeline) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponseBodyImagePipeline) SetImagePipelineSet(v []*DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) *DescribeImagePipelinesResponseBodyImagePipeline { s.ImagePipelineSet = v return s } type DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet struct { // The IDs of Alibaba Cloud accounts to which to share the created image. AddAccounts *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetAddAccounts `json:"AddAccounts,omitempty" xml:"AddAccounts,omitempty" type:"Struct"` // The source image. // // * When `BaseImageType` is set to IMAGE, the value of this parameter is the ID of a custom image. // * When `BaseImageType` is set to IMAGE_FAMILY, the value of this parameter is the name of an image family. BaseImage *string `json:"BaseImage,omitempty" xml:"BaseImage,omitempty"` // The type of the source image. Valid values: // // * IMAGE: custom image // * IMAGE_FAMILY: image family BaseImageType *string `json:"BaseImageType,omitempty" xml:"BaseImageType,omitempty"` // The content of the image template. BuildContent *string `json:"BuildContent,omitempty" xml:"BuildContent,omitempty"` // The time when the image template was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // Indicates whether to release the intermediate instance when the image fails to be created. DeleteInstanceOnFailure *bool `json:"DeleteInstanceOnFailure,omitempty" xml:"DeleteInstanceOnFailure,omitempty"` // The description of the image template. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The name prefix of the created image. ImageName *string `json:"ImageName,omitempty" xml:"ImageName,omitempty"` // The ID of the image template. ImagePipelineId *string `json:"ImagePipelineId,omitempty" xml:"ImagePipelineId,omitempty"` // The instance type of the intermediate instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The size of the outbound public bandwidth for the intermediate instance. Unit: Mbit/s. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // The name of the image template. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The system disk size of the intermediate instance. Unit: GiB. SystemDiskSize *int32 `json:"SystemDiskSize,omitempty" xml:"SystemDiskSize,omitempty"` // The tags of the image template. Tags *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The IDs of regions to which to distribute the created image. ToRegionIds *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds `json:"ToRegionIds,omitempty" xml:"ToRegionIds,omitempty" type:"Struct"` // The ID of the vSwitch. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetAddAccounts(v *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetAddAccounts) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.AddAccounts = v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetBaseImage(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.BaseImage = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetBaseImageType(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.BaseImageType = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetBuildContent(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.BuildContent = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetCreationTime(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.CreationTime = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetDeleteInstanceOnFailure(v bool) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.DeleteInstanceOnFailure = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetDescription(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.Description = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetImageName(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.ImageName = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetImagePipelineId(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.ImagePipelineId = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetInstanceType(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.InstanceType = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetInternetMaxBandwidthOut(v int32) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.InternetMaxBandwidthOut = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetName(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.Name = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetResourceGroupId(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.ResourceGroupId = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetSystemDiskSize(v int32) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.SystemDiskSize = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetTags(v *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.Tags = v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetToRegionIds(v *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.ToRegionIds = v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet) SetVSwitchId(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet { s.VSwitchId = &v return s } type DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetAddAccounts struct { AddAccount []*string `json:"AddAccount,omitempty" xml:"AddAccount,omitempty" type:"Repeated"` } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetAddAccounts) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetAddAccounts) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetAddAccounts) SetAddAccount(v []*string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetAddAccounts { s.AddAccount = v return s } type DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags struct { Tag []*DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags) SetTag(v []*DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags { s.Tag = v return s } type DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag struct { // The tag key of the image template. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the image template. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag) SetTagKey(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag { s.TagKey = &v return s } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag) SetTagValue(v string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTagsTag { s.TagValue = &v return s } type DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds struct { ToRegionId []*string `json:"ToRegionId,omitempty" xml:"ToRegionId,omitempty" type:"Repeated"` } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds) SetToRegionId(v []*string) *DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds { s.ToRegionId = v return s } type DescribeImagePipelinesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeImagePipelinesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeImagePipelinesResponse) String() string { return tea.Prettify(s) } func (s DescribeImagePipelinesResponse) GoString() string { return s.String() } func (s *DescribeImagePipelinesResponse) SetHeaders(v map[string]*string) *DescribeImagePipelinesResponse { s.Headers = v return s } func (s *DescribeImagePipelinesResponse) SetStatusCode(v int32) *DescribeImagePipelinesResponse { s.StatusCode = &v return s } func (s *DescribeImagePipelinesResponse) SetBody(v *DescribeImagePipelinesResponseBody) *DescribeImagePipelinesResponse { s.Body = v return s } type DescribeImageSharePermissionRequest struct { // The ID of the custom image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. Pages start from page 1. // // Default value: 1 PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. Valid values: 1 to 100. // // Default value: 10 PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the custom image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeImageSharePermissionRequest) String() string { return tea.Prettify(s) } func (s DescribeImageSharePermissionRequest) GoString() string { return s.String() } func (s *DescribeImageSharePermissionRequest) SetImageId(v string) *DescribeImageSharePermissionRequest { s.ImageId = &v return s } func (s *DescribeImageSharePermissionRequest) SetOwnerAccount(v string) *DescribeImageSharePermissionRequest { s.OwnerAccount = &v return s } func (s *DescribeImageSharePermissionRequest) SetOwnerId(v int64) *DescribeImageSharePermissionRequest { s.OwnerId = &v return s } func (s *DescribeImageSharePermissionRequest) SetPageNumber(v int32) *DescribeImageSharePermissionRequest { s.PageNumber = &v return s } func (s *DescribeImageSharePermissionRequest) SetPageSize(v int32) *DescribeImageSharePermissionRequest { s.PageSize = &v return s } func (s *DescribeImageSharePermissionRequest) SetRegionId(v string) *DescribeImageSharePermissionRequest { s.RegionId = &v return s } func (s *DescribeImageSharePermissionRequest) SetResourceOwnerAccount(v string) *DescribeImageSharePermissionRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeImageSharePermissionRequest) SetResourceOwnerId(v int64) *DescribeImageSharePermissionRequest { s.ResourceOwnerId = &v return s } type DescribeImageSharePermissionResponseBody struct { // The Alibaba Cloud accounts. Accounts *DescribeImageSharePermissionResponseBodyAccounts `json:"Accounts,omitempty" xml:"Accounts,omitempty" type:"Struct"` // The ID of the custom image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the image. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The shared groups. ShareGroups *DescribeImageSharePermissionResponseBodyShareGroups `json:"ShareGroups,omitempty" xml:"ShareGroups,omitempty" type:"Struct"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeImageSharePermissionResponseBody) String() string { return tea.Prettify(s) } func (s DescribeImageSharePermissionResponseBody) GoString() string { return s.String() } func (s *DescribeImageSharePermissionResponseBody) SetAccounts(v *DescribeImageSharePermissionResponseBodyAccounts) *DescribeImageSharePermissionResponseBody { s.Accounts = v return s } func (s *DescribeImageSharePermissionResponseBody) SetImageId(v string) *DescribeImageSharePermissionResponseBody { s.ImageId = &v return s } func (s *DescribeImageSharePermissionResponseBody) SetPageNumber(v int32) *DescribeImageSharePermissionResponseBody { s.PageNumber = &v return s } func (s *DescribeImageSharePermissionResponseBody) SetPageSize(v int32) *DescribeImageSharePermissionResponseBody { s.PageSize = &v return s } func (s *DescribeImageSharePermissionResponseBody) SetRegionId(v string) *DescribeImageSharePermissionResponseBody { s.RegionId = &v return s } func (s *DescribeImageSharePermissionResponseBody) SetRequestId(v string) *DescribeImageSharePermissionResponseBody { s.RequestId = &v return s } func (s *DescribeImageSharePermissionResponseBody) SetShareGroups(v *DescribeImageSharePermissionResponseBodyShareGroups) *DescribeImageSharePermissionResponseBody { s.ShareGroups = v return s } func (s *DescribeImageSharePermissionResponseBody) SetTotalCount(v int32) *DescribeImageSharePermissionResponseBody { s.TotalCount = &v return s } type DescribeImageSharePermissionResponseBodyAccounts struct { Account []*DescribeImageSharePermissionResponseBodyAccountsAccount `json:"Account,omitempty" xml:"Account,omitempty" type:"Repeated"` } func (s DescribeImageSharePermissionResponseBodyAccounts) String() string { return tea.Prettify(s) } func (s DescribeImageSharePermissionResponseBodyAccounts) GoString() string { return s.String() } func (s *DescribeImageSharePermissionResponseBodyAccounts) SetAccount(v []*DescribeImageSharePermissionResponseBodyAccountsAccount) *DescribeImageSharePermissionResponseBodyAccounts { s.Account = v return s } type DescribeImageSharePermissionResponseBodyAccountsAccount struct { // The ID of the Alibaba Cloud account. AliyunId *string `json:"AliyunId,omitempty" xml:"AliyunId,omitempty"` // The time when the image was shared. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddThh:mmZ format. The time is displayed in UTC. SharedTime *string `json:"SharedTime,omitempty" xml:"SharedTime,omitempty"` } func (s DescribeImageSharePermissionResponseBodyAccountsAccount) String() string { return tea.Prettify(s) } func (s DescribeImageSharePermissionResponseBodyAccountsAccount) GoString() string { return s.String() } func (s *DescribeImageSharePermissionResponseBodyAccountsAccount) SetAliyunId(v string) *DescribeImageSharePermissionResponseBodyAccountsAccount { s.AliyunId = &v return s } func (s *DescribeImageSharePermissionResponseBodyAccountsAccount) SetSharedTime(v string) *DescribeImageSharePermissionResponseBodyAccountsAccount { s.SharedTime = &v return s } type DescribeImageSharePermissionResponseBodyShareGroups struct { ShareGroup []*DescribeImageSharePermissionResponseBodyShareGroupsShareGroup `json:"ShareGroup,omitempty" xml:"ShareGroup,omitempty" type:"Repeated"` } func (s DescribeImageSharePermissionResponseBodyShareGroups) String() string { return tea.Prettify(s) } func (s DescribeImageSharePermissionResponseBodyShareGroups) GoString() string { return s.String() } func (s *DescribeImageSharePermissionResponseBodyShareGroups) SetShareGroup(v []*DescribeImageSharePermissionResponseBodyShareGroupsShareGroup) *DescribeImageSharePermissionResponseBodyShareGroups { s.ShareGroup = v return s } type DescribeImageSharePermissionResponseBodyShareGroupsShareGroup struct { // The shared group. Group *string `json:"Group,omitempty" xml:"Group,omitempty"` } func (s DescribeImageSharePermissionResponseBodyShareGroupsShareGroup) String() string { return tea.Prettify(s) } func (s DescribeImageSharePermissionResponseBodyShareGroupsShareGroup) GoString() string { return s.String() } func (s *DescribeImageSharePermissionResponseBodyShareGroupsShareGroup) SetGroup(v string) *DescribeImageSharePermissionResponseBodyShareGroupsShareGroup { s.Group = &v return s } type DescribeImageSharePermissionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeImageSharePermissionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeImageSharePermissionResponse) String() string { return tea.Prettify(s) } func (s DescribeImageSharePermissionResponse) GoString() string { return s.String() } func (s *DescribeImageSharePermissionResponse) SetHeaders(v map[string]*string) *DescribeImageSharePermissionResponse { s.Headers = v return s } func (s *DescribeImageSharePermissionResponse) SetStatusCode(v int32) *DescribeImageSharePermissionResponse { s.StatusCode = &v return s } func (s *DescribeImageSharePermissionResponse) SetBody(v *DescribeImageSharePermissionResponseBody) *DescribeImageSharePermissionResponse { s.Body = v return s } type DescribeImageSupportInstanceTypesRequest struct { // The scenario in which you want to use the image. Valid values: // // - CreateEcs (default): instance creation // - ChangeOS: replacement of the system disk or operating system ActionType *string `json:"ActionType,omitempty" xml:"ActionType,omitempty"` // The number of vCPUs of the instance type. Filter []*DescribeImageSupportInstanceTypesRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` // The region ID of the image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // Details about the instance types that are supported by the image. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeImageSupportInstanceTypesRequest) String() string { return tea.Prettify(s) } func (s DescribeImageSupportInstanceTypesRequest) GoString() string { return s.String() } func (s *DescribeImageSupportInstanceTypesRequest) SetActionType(v string) *DescribeImageSupportInstanceTypesRequest { s.ActionType = &v return s } func (s *DescribeImageSupportInstanceTypesRequest) SetFilter(v []*DescribeImageSupportInstanceTypesRequestFilter) *DescribeImageSupportInstanceTypesRequest { s.Filter = v return s } func (s *DescribeImageSupportInstanceTypesRequest) SetImageId(v string) *DescribeImageSupportInstanceTypesRequest { s.ImageId = &v return s } func (s *DescribeImageSupportInstanceTypesRequest) SetOwnerId(v int64) *DescribeImageSupportInstanceTypesRequest { s.OwnerId = &v return s } func (s *DescribeImageSupportInstanceTypesRequest) SetRegionId(v string) *DescribeImageSupportInstanceTypesRequest { s.RegionId = &v return s } func (s *DescribeImageSupportInstanceTypesRequest) SetResourceOwnerAccount(v string) *DescribeImageSupportInstanceTypesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeImageSupportInstanceTypesRequest) SetResourceOwnerId(v int64) *DescribeImageSupportInstanceTypesRequest { s.ResourceOwnerId = &v return s } type DescribeImageSupportInstanceTypesRequestFilter struct { // Filter N used to filter instance types. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The ID of the image. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeImageSupportInstanceTypesRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeImageSupportInstanceTypesRequestFilter) GoString() string { return s.String() } func (s *DescribeImageSupportInstanceTypesRequestFilter) SetKey(v string) *DescribeImageSupportInstanceTypesRequestFilter { s.Key = &v return s } func (s *DescribeImageSupportInstanceTypesRequestFilter) SetValue(v string) *DescribeImageSupportInstanceTypesRequestFilter { s.Value = &v return s } type DescribeImageSupportInstanceTypesResponseBody struct { // The key of filter N. Only the image ID can be used to filter instance types. Valid values: // // * imagId: image ID // * filter: image ID ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // { // "RequestId": "CF661E2D-4AFE-4BCD-959A-A65E14416B44", // "RegionId": "cn-hangzhou", // "ImageId": "ubuntu_16_0402_64_20G_alibase_20180409.vhd", // "InstanceTypes": { // "InstanceType": [{ // "InstanceTypeId": "ecs.t1.xsmall", // "CpuCoreCount": 1, // "MemorySize": 0.5, // "InstanceTypeFamily": "ecs.t1" // }, // { // "InstanceTypeId": "ecs.t1.small", // "CpuCoreCount": 1, // "MemorySize": 1, // "InstanceTypeFamily": "ecs.t1" // }] // } // } InstanceTypes *DescribeImageSupportInstanceTypesResponseBodyInstanceTypes `json:"InstanceTypes,omitempty" xml:"InstanceTypes,omitempty" type:"Struct"` // { // "RequestId": "CF661E2D-4AFE-4BCD-959A-A65E14416B44", // "RegionId": "cn-hangzhou", // "ImageId": "ubuntu_16_0402_64_20G_alibase_20180409.vhd", // "InstanceTypes": { // "InstanceType": [{ // "InstanceTypeId": "ecs.t1.xsmall", // "CpuCoreCount": 1, // "MemorySize": 0.5, // "InstanceTypeFamily": "ecs.t1" // }, // { // "InstanceTypeId": "ecs.t1.small", // "CpuCoreCount": 1, // "MemorySize": 1, // "InstanceTypeFamily": "ecs.t1" // }] // } // } RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeImageSupportInstanceTypesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeImageSupportInstanceTypesResponseBody) GoString() string { return s.String() } func (s *DescribeImageSupportInstanceTypesResponseBody) SetImageId(v string) *DescribeImageSupportInstanceTypesResponseBody { s.ImageId = &v return s } func (s *DescribeImageSupportInstanceTypesResponseBody) SetInstanceTypes(v *DescribeImageSupportInstanceTypesResponseBodyInstanceTypes) *DescribeImageSupportInstanceTypesResponseBody { s.InstanceTypes = v return s } func (s *DescribeImageSupportInstanceTypesResponseBody) SetRegionId(v string) *DescribeImageSupportInstanceTypesResponseBody { s.RegionId = &v return s } func (s *DescribeImageSupportInstanceTypesResponseBody) SetRequestId(v string) *DescribeImageSupportInstanceTypesResponseBody { s.RequestId = &v return s } type DescribeImageSupportInstanceTypesResponseBodyInstanceTypes struct { InstanceType []*DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType `json:"InstanceType,omitempty" xml:"InstanceType,omitempty" type:"Repeated"` } func (s DescribeImageSupportInstanceTypesResponseBodyInstanceTypes) String() string { return tea.Prettify(s) } func (s DescribeImageSupportInstanceTypesResponseBodyInstanceTypes) GoString() string { return s.String() } func (s *DescribeImageSupportInstanceTypesResponseBodyInstanceTypes) SetInstanceType(v []*DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType) *DescribeImageSupportInstanceTypesResponseBodyInstanceTypes { s.InstanceType = v return s } type DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType struct { // The number of vCPUs of the instance type. CpuCoreCount *int32 `json:"CpuCoreCount,omitempty" xml:"CpuCoreCount,omitempty"` // DescribeImageSupportInstanceTypes InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // Queries the instance types supported by an image. InstanceTypeId *string `json:"InstanceTypeId,omitempty" xml:"InstanceTypeId,omitempty"` // The memory size of the instance type. Unit: GiB. MemorySize *float32 `json:"MemorySize,omitempty" xml:"MemorySize,omitempty"` } func (s DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType) String() string { return tea.Prettify(s) } func (s DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType) GoString() string { return s.String() } func (s *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType) SetCpuCoreCount(v int32) *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType { s.CpuCoreCount = &v return s } func (s *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceTypeFamily(v string) *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceTypeFamily = &v return s } func (s *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceTypeId(v string) *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceTypeId = &v return s } func (s *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType) SetMemorySize(v float32) *DescribeImageSupportInstanceTypesResponseBodyInstanceTypesInstanceType { s.MemorySize = &v return s } type DescribeImageSupportInstanceTypesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeImageSupportInstanceTypesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeImageSupportInstanceTypesResponse) String() string { return tea.Prettify(s) } func (s DescribeImageSupportInstanceTypesResponse) GoString() string { return s.String() } func (s *DescribeImageSupportInstanceTypesResponse) SetHeaders(v map[string]*string) *DescribeImageSupportInstanceTypesResponse { s.Headers = v return s } func (s *DescribeImageSupportInstanceTypesResponse) SetStatusCode(v int32) *DescribeImageSupportInstanceTypesResponse { s.StatusCode = &v return s } func (s *DescribeImageSupportInstanceTypesResponse) SetBody(v *DescribeImageSupportInstanceTypesResponseBody) *DescribeImageSupportInstanceTypesResponse { s.Body = v return s } type DescribeImagesRequest struct { // The scenario in which the image is used. Valid values: // // * CreateEcs: instance creation // * ChangeOS: replacement of the system disk or OS ActionType *string `json:"ActionType,omitempty" xml:"ActionType,omitempty"` // The architecture of the image. Valid values: // // * i386 // * x86\_64 // * arm64 Architecture *string `json:"Architecture,omitempty" xml:"Architecture,omitempty"` // Specifies whether to perform only a dry run without performing the actual request. // // * true: performs only a dry run. The system checks whether your AccessKey pair is valid, whether RAM users are granted required permissions, and whether the required parameters are specified. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned. // * false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. // // Default value: false. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // The list of filter conditions used to query resources. Filter []*DescribeImagesRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` // The name of the image family. You can set this parameter to query images of the specified image family. // // This parameter is empty by default. // // > For information about image families that are associated with Alibaba Cloud official images, see [Overview of public images](~~108393~~). ImageFamily *string `json:"ImageFamily,omitempty" xml:"ImageFamily,omitempty"` // The image IDs. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The image name. ImageName *string `json:"ImageName,omitempty" xml:"ImageName,omitempty"` // The image source. Valid values: // // * system: images that are provided by Alibaba Cloud and are not released in Alibaba Cloud Marketplace, which are different from public images in the Elastic Compute Service (ECS) console. // // * self: your custom images // // * others: shared images (images shared by other Alibaba Cloud accounts) and community images (publicly available custom images that are published by other Alibaba Cloud accounts). Take note of the following items: // // * To query community images, you must set IsPublic to true. // * To query shared images, you must set IsPublic to false or leave IsPublic empty. // // * marketplace: images released by Alibaba Cloud or independent software vendors (ISVs) in the Alibaba Cloud Marketplace, which must be purchased together with ECS instances. Take note of the billing details of the images. // // This parameter is empty by default. // // > By default, this parameter is empty, which indicates that the following images are queried: public images provided by Alibaba Cloud, custom images in your repository, shared images from other Alibaba Cloud accounts, and community images that are published by other Alibaba Cloud accounts. ImageOwnerAlias *string `json:"ImageOwnerAlias,omitempty" xml:"ImageOwnerAlias,omitempty"` // The ID of the Alibaba Cloud account to which the image belongs. This parameter takes effect only when you query shared images or community images. ImageOwnerId *int64 `json:"ImageOwnerId,omitempty" xml:"ImageOwnerId,omitempty"` // The instance type for which the image can be used. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // Specifies whether to query published community images. Valid values: // // * true: queries published community images. When you set this parameter to true, you must set ImageOwnerAlias to others. // * false: queries image types other than the community images type. The specific image types to be queried are determined by the ImageOwnerAlias value. // // Default value: false. IsPublic *bool `json:"IsPublic,omitempty" xml:"IsPublic,omitempty"` // Specifies whether the image supports cloud-init. IsSupportCloudinit *bool `json:"IsSupportCloudinit,omitempty" xml:"IsSupportCloudinit,omitempty"` // Specifies whether the image can be used on I/O optimized instances. IsSupportIoOptimized *bool `json:"IsSupportIoOptimized,omitempty" xml:"IsSupportIoOptimized,omitempty"` // The operating system type of the image. Valid values: // // * windows // * linux OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the custom image belongs. If you specify this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be returned. // // > Resources in the default resource group are displayed in the response regardless of whether you specify this parameter. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether the subscription image has expired. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. ShowExpired *bool `json:"ShowExpired,omitempty" xml:"ShowExpired,omitempty"` // The ID of the snapshot used to create the custom image. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The status of the image. By default, if you do not specify this parameter, only images in the Available state are returned. Valid values: // // * Creating: The image is being created. // * Waiting: The image is waiting to be processed. // * Available: The image is available. // * UnAvailable: The image is unavailable. // * CreateFailed: The image fails to be created. // * Deprecated: The image is no longer used. // // Default value: Available. You can specify multiple values for this parameter. Separate the values with commas (,). Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags list. Tag []*DescribeImagesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // Specifies whether the image is running on an Elastic Compute Service (ECS) instance. Valid values: // // * instance: The image is already in use and running on an ECS instance. // * none: The image is idle. Usage *string `json:"Usage,omitempty" xml:"Usage,omitempty"` } func (s DescribeImagesRequest) String() string { return tea.Prettify(s) } func (s DescribeImagesRequest) GoString() string { return s.String() } func (s *DescribeImagesRequest) SetActionType(v string) *DescribeImagesRequest { s.ActionType = &v return s } func (s *DescribeImagesRequest) SetArchitecture(v string) *DescribeImagesRequest { s.Architecture = &v return s } func (s *DescribeImagesRequest) SetDryRun(v bool) *DescribeImagesRequest { s.DryRun = &v return s } func (s *DescribeImagesRequest) SetFilter(v []*DescribeImagesRequestFilter) *DescribeImagesRequest { s.Filter = v return s } func (s *DescribeImagesRequest) SetImageFamily(v string) *DescribeImagesRequest { s.ImageFamily = &v return s } func (s *DescribeImagesRequest) SetImageId(v string) *DescribeImagesRequest { s.ImageId = &v return s } func (s *DescribeImagesRequest) SetImageName(v string) *DescribeImagesRequest { s.ImageName = &v return s } func (s *DescribeImagesRequest) SetImageOwnerAlias(v string) *DescribeImagesRequest { s.ImageOwnerAlias = &v return s } func (s *DescribeImagesRequest) SetImageOwnerId(v int64) *DescribeImagesRequest { s.ImageOwnerId = &v return s } func (s *DescribeImagesRequest) SetInstanceType(v string) *DescribeImagesRequest { s.InstanceType = &v return s } func (s *DescribeImagesRequest) SetIsPublic(v bool) *DescribeImagesRequest { s.IsPublic = &v return s } func (s *DescribeImagesRequest) SetIsSupportCloudinit(v bool) *DescribeImagesRequest { s.IsSupportCloudinit = &v return s } func (s *DescribeImagesRequest) SetIsSupportIoOptimized(v bool) *DescribeImagesRequest { s.IsSupportIoOptimized = &v return s } func (s *DescribeImagesRequest) SetOSType(v string) *DescribeImagesRequest { s.OSType = &v return s } func (s *DescribeImagesRequest) SetOwnerAccount(v string) *DescribeImagesRequest { s.OwnerAccount = &v return s } func (s *DescribeImagesRequest) SetOwnerId(v int64) *DescribeImagesRequest { s.OwnerId = &v return s } func (s *DescribeImagesRequest) SetPageNumber(v int32) *DescribeImagesRequest { s.PageNumber = &v return s } func (s *DescribeImagesRequest) SetPageSize(v int32) *DescribeImagesRequest { s.PageSize = &v return s } func (s *DescribeImagesRequest) SetRegionId(v string) *DescribeImagesRequest { s.RegionId = &v return s } func (s *DescribeImagesRequest) SetResourceGroupId(v string) *DescribeImagesRequest { s.ResourceGroupId = &v return s } func (s *DescribeImagesRequest) SetResourceOwnerAccount(v string) *DescribeImagesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeImagesRequest) SetResourceOwnerId(v int64) *DescribeImagesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeImagesRequest) SetShowExpired(v bool) *DescribeImagesRequest { s.ShowExpired = &v return s } func (s *DescribeImagesRequest) SetSnapshotId(v string) *DescribeImagesRequest { s.SnapshotId = &v return s } func (s *DescribeImagesRequest) SetStatus(v string) *DescribeImagesRequest { s.Status = &v return s } func (s *DescribeImagesRequest) SetTag(v []*DescribeImagesRequestTag) *DescribeImagesRequest { s.Tag = v return s } func (s *DescribeImagesRequest) SetUsage(v string) *DescribeImagesRequest { s.Usage = &v return s } type DescribeImagesRequestFilter struct { // The key of the filter condition used to query resources. Valid values: // // * If you set this parameter to `CreationStartTime`, you can query the resources that were created after the point in time specified by the `Filter.N.Value` value. // * If you set this parameter to `CreationEndTime`, you can query the resources that were created before the point in time as specified by the `Filter.N.Value` value. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of filter N used to query resources. When you specify this parameter, you must also specify `Filter.N.Key`. Make sure the time is in the `yyyy-MM-ddTHH:mmZ` format and in UTC. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeImagesRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeImagesRequestFilter) GoString() string { return s.String() } func (s *DescribeImagesRequestFilter) SetKey(v string) *DescribeImagesRequestFilter { s.Key = &v return s } func (s *DescribeImagesRequestFilter) SetValue(v string) *DescribeImagesRequestFilter { s.Value = &v return s } type DescribeImagesRequestTag struct { // The tag N key of the image. Valid values of N: 1 to 20. // // Up to 1,000 resources that match the specified tags can be returned in the response. To query more than 1,000 resources that match the specified tags, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The tag value of the image. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeImagesRequestTag) String() string { return tea.Prettify(s) } func (s DescribeImagesRequestTag) GoString() string { return s.String() } func (s *DescribeImagesRequestTag) SetKey(v string) *DescribeImagesRequestTag { s.Key = &v return s } func (s *DescribeImagesRequestTag) SetValue(v string) *DescribeImagesRequestTag { s.Value = &v return s } type DescribeImagesResponseBody struct { // The information of the images. Images *DescribeImagesResponseBodyImages `json:"Images,omitempty" xml:"Images,omitempty" type:"Struct"` // The page number returned. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the image. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of images. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeImagesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBody) GoString() string { return s.String() } func (s *DescribeImagesResponseBody) SetImages(v *DescribeImagesResponseBodyImages) *DescribeImagesResponseBody { s.Images = v return s } func (s *DescribeImagesResponseBody) SetPageNumber(v int32) *DescribeImagesResponseBody { s.PageNumber = &v return s } func (s *DescribeImagesResponseBody) SetPageSize(v int32) *DescribeImagesResponseBody { s.PageSize = &v return s } func (s *DescribeImagesResponseBody) SetRegionId(v string) *DescribeImagesResponseBody { s.RegionId = &v return s } func (s *DescribeImagesResponseBody) SetRequestId(v string) *DescribeImagesResponseBody { s.RequestId = &v return s } func (s *DescribeImagesResponseBody) SetTotalCount(v int32) *DescribeImagesResponseBody { s.TotalCount = &v return s } type DescribeImagesResponseBodyImages struct { Image []*DescribeImagesResponseBodyImagesImage `json:"Image,omitempty" xml:"Image,omitempty" type:"Repeated"` } func (s DescribeImagesResponseBodyImages) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImages) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImages) SetImage(v []*DescribeImagesResponseBodyImagesImage) *DescribeImagesResponseBodyImages { s.Image = v return s } type DescribeImagesResponseBodyImagesImage struct { // The architecture of the image. Valid values: // // * i386 // * x86\_64 // * arm64 Architecture *string `json:"Architecture,omitempty" xml:"Architecture,omitempty"` // The boot mode of the image. Valid values: // // * BIOS: Basic Input/Output System (BIOS) // * UEFI: Unified Extensible Firmware Interface (UEFI) BootMode *string `json:"BootMode,omitempty" xml:"BootMode,omitempty"` // The time when the image was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the image. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Details about the check performed on the image. DetectionOptions *DescribeImagesResponseBodyImagesImageDetectionOptions `json:"DetectionOptions,omitempty" xml:"DetectionOptions,omitempty" type:"Struct"` // The mappings between disks and snapshots in the image. DiskDeviceMappings *DescribeImagesResponseBodyImagesImageDiskDeviceMappings `json:"DiskDeviceMappings,omitempty" xml:"DiskDeviceMappings,omitempty" type:"Struct"` // The attributes of the image. Features *DescribeImagesResponseBodyImagesImageFeatures `json:"Features,omitempty" xml:"Features,omitempty" type:"Struct"` // The name of the image family. ImageFamily *string `json:"ImageFamily,omitempty" xml:"ImageFamily,omitempty"` // The ID of the image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The name of the image. ImageName *string `json:"ImageName,omitempty" xml:"ImageName,omitempty"` // The source of the image. Valid values: // // * system: a public image provided by Alibaba Cloud // * self: a custom image that you created // * others: a shared image from another Alibaba Cloud account or a community image published by another Alibaba Cloud account // * marketplace: an Alibaba Cloud Marketplace image ImageOwnerAlias *string `json:"ImageOwnerAlias,omitempty" xml:"ImageOwnerAlias,omitempty"` // The ID of the Alibaba Cloud account to which the image belongs. This parameter takes effect only if you query shared images or community images. ImageOwnerId *int64 `json:"ImageOwnerId,omitempty" xml:"ImageOwnerId,omitempty"` // The version of the image. ImageVersion *string `json:"ImageVersion,omitempty" xml:"ImageVersion,omitempty"` // Indicates whether the image is a copy of another image. IsCopied *bool `json:"IsCopied,omitempty" xml:"IsCopied,omitempty"` // Indicates whether the image is publicly available. Publicly available images include public images provided by Alibaba Cloud and custom images published as community images. Valid values: // // * true: The image is publicly available. // * false: The image is publicly unavailable. IsPublic *bool `json:"IsPublic,omitempty" xml:"IsPublic,omitempty"` // Indicates whether the custom image was shared to other Alibaba Cloud accounts. IsSelfShared *string `json:"IsSelfShared,omitempty" xml:"IsSelfShared,omitempty"` // Indicates whether you accepted the Terms of Service of the image service that corresponds to the product code. IsSubscribed *bool `json:"IsSubscribed,omitempty" xml:"IsSubscribed,omitempty"` // Indicates whether the image supports cloud-init. IsSupportCloudinit *bool `json:"IsSupportCloudinit,omitempty" xml:"IsSupportCloudinit,omitempty"` // Indicates whether the image can be used on I/O optimized instances. IsSupportIoOptimized *bool `json:"IsSupportIoOptimized,omitempty" xml:"IsSupportIoOptimized,omitempty"` // Indicates whether the image supports logons of non-root users. Valid values: // // * true: The image supports logons of non-root users. // * false: The image does not support logons of non-root users. LoginAsNonRootSupported *bool `json:"LoginAsNonRootSupported,omitempty" xml:"LoginAsNonRootSupported,omitempty"` // The display name of the operating system in Chinese. OSName *string `json:"OSName,omitempty" xml:"OSName,omitempty"` // The display name of the operating system in English. OSNameEn *string `json:"OSNameEn,omitempty" xml:"OSNameEn,omitempty"` // The type of the operating system. Valid values: // // * windows // * linux OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` // The operating system platform. Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The Alibaba Cloud Marketplace product code of the image. ProductCode *string `json:"ProductCode,omitempty" xml:"ProductCode,omitempty"` // The creation progress of the image. Unit: percent (%). Progress *string `json:"Progress,omitempty" xml:"Progress,omitempty"` // The ID of the resource group to which the image belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The size of the image. Unit: GiB. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The state of the image. Valid values: // // * UnAvailable: The image is unavailable. // * Available: The image is available. // * Creating: The image is being created. // * CreateFailed: The image failed to be created. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The name of the supplier that published the community image. SupplierName *string `json:"SupplierName,omitempty" xml:"SupplierName,omitempty"` // The tags of the image. Tags *DescribeImagesResponseBodyImagesImageTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // Indicates whether the image was used to create ECS instances. Valid values: // // * instance: The image was used to create one or more ECS instances. // * none: The image was not used to create ECS instances. Usage *string `json:"Usage,omitempty" xml:"Usage,omitempty"` } func (s DescribeImagesResponseBodyImagesImage) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImage) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImage) SetArchitecture(v string) *DescribeImagesResponseBodyImagesImage { s.Architecture = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetBootMode(v string) *DescribeImagesResponseBodyImagesImage { s.BootMode = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetCreationTime(v string) *DescribeImagesResponseBodyImagesImage { s.CreationTime = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetDescription(v string) *DescribeImagesResponseBodyImagesImage { s.Description = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetDetectionOptions(v *DescribeImagesResponseBodyImagesImageDetectionOptions) *DescribeImagesResponseBodyImagesImage { s.DetectionOptions = v return s } func (s *DescribeImagesResponseBodyImagesImage) SetDiskDeviceMappings(v *DescribeImagesResponseBodyImagesImageDiskDeviceMappings) *DescribeImagesResponseBodyImagesImage { s.DiskDeviceMappings = v return s } func (s *DescribeImagesResponseBodyImagesImage) SetFeatures(v *DescribeImagesResponseBodyImagesImageFeatures) *DescribeImagesResponseBodyImagesImage { s.Features = v return s } func (s *DescribeImagesResponseBodyImagesImage) SetImageFamily(v string) *DescribeImagesResponseBodyImagesImage { s.ImageFamily = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetImageId(v string) *DescribeImagesResponseBodyImagesImage { s.ImageId = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetImageName(v string) *DescribeImagesResponseBodyImagesImage { s.ImageName = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetImageOwnerAlias(v string) *DescribeImagesResponseBodyImagesImage { s.ImageOwnerAlias = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetImageOwnerId(v int64) *DescribeImagesResponseBodyImagesImage { s.ImageOwnerId = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetImageVersion(v string) *DescribeImagesResponseBodyImagesImage { s.ImageVersion = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetIsCopied(v bool) *DescribeImagesResponseBodyImagesImage { s.IsCopied = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetIsPublic(v bool) *DescribeImagesResponseBodyImagesImage { s.IsPublic = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetIsSelfShared(v string) *DescribeImagesResponseBodyImagesImage { s.IsSelfShared = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetIsSubscribed(v bool) *DescribeImagesResponseBodyImagesImage { s.IsSubscribed = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetIsSupportCloudinit(v bool) *DescribeImagesResponseBodyImagesImage { s.IsSupportCloudinit = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetIsSupportIoOptimized(v bool) *DescribeImagesResponseBodyImagesImage { s.IsSupportIoOptimized = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetLoginAsNonRootSupported(v bool) *DescribeImagesResponseBodyImagesImage { s.LoginAsNonRootSupported = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetOSName(v string) *DescribeImagesResponseBodyImagesImage { s.OSName = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetOSNameEn(v string) *DescribeImagesResponseBodyImagesImage { s.OSNameEn = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetOSType(v string) *DescribeImagesResponseBodyImagesImage { s.OSType = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetPlatform(v string) *DescribeImagesResponseBodyImagesImage { s.Platform = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetProductCode(v string) *DescribeImagesResponseBodyImagesImage { s.ProductCode = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetProgress(v string) *DescribeImagesResponseBodyImagesImage { s.Progress = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetResourceGroupId(v string) *DescribeImagesResponseBodyImagesImage { s.ResourceGroupId = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetSize(v int32) *DescribeImagesResponseBodyImagesImage { s.Size = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetStatus(v string) *DescribeImagesResponseBodyImagesImage { s.Status = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetSupplierName(v string) *DescribeImagesResponseBodyImagesImage { s.SupplierName = &v return s } func (s *DescribeImagesResponseBodyImagesImage) SetTags(v *DescribeImagesResponseBodyImagesImageTags) *DescribeImagesResponseBodyImagesImage { s.Tags = v return s } func (s *DescribeImagesResponseBodyImagesImage) SetUsage(v string) *DescribeImagesResponseBodyImagesImage { s.Usage = &v return s } type DescribeImagesResponseBodyImagesImageDetectionOptions struct { // The check items. Items *DescribeImagesResponseBodyImagesImageDetectionOptionsItems `json:"Items,omitempty" xml:"Items,omitempty" type:"Struct"` // The state of the image check task. Valid values: // // * Processing // * Finished Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeImagesResponseBodyImagesImageDetectionOptions) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageDetectionOptions) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageDetectionOptions) SetItems(v *DescribeImagesResponseBodyImagesImageDetectionOptionsItems) *DescribeImagesResponseBodyImagesImageDetectionOptions { s.Items = v return s } func (s *DescribeImagesResponseBodyImagesImageDetectionOptions) SetStatus(v string) *DescribeImagesResponseBodyImagesImageDetectionOptions { s.Status = &v return s } type DescribeImagesResponseBodyImagesImageDetectionOptionsItems struct { Item []*DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem `json:"Item,omitempty" xml:"Item,omitempty" type:"Repeated"` } func (s DescribeImagesResponseBodyImagesImageDetectionOptionsItems) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageDetectionOptionsItems) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageDetectionOptionsItems) SetItem(v []*DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem) *DescribeImagesResponseBodyImagesImageDetectionOptionsItems { s.Item = v return s } type DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem struct { // The name of the check item. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The risk that the check item may have. RiskCode *string `json:"RiskCode,omitempty" xml:"RiskCode,omitempty"` // The severity of the risk that the check item of the imported custom image has. If the check item is at risk, this parameter is returned. If the check item is not at risk, this parameter is not returned. // // Valid values: // // * High: The check item is a high-risk item that may affect the startup of the instance. We recommend that you handle the risk. // * Medium: The check item is a medium-risk item that may affect the startup performance or configurations of the instance. We recommend that you handle the risk. RiskLevel *string `json:"RiskLevel,omitempty" xml:"RiskLevel,omitempty"` // The result of the check item. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem) SetName(v string) *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem { s.Name = &v return s } func (s *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem) SetRiskCode(v string) *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem { s.RiskCode = &v return s } func (s *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem) SetRiskLevel(v string) *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem { s.RiskLevel = &v return s } func (s *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem) SetValue(v string) *DescribeImagesResponseBodyImagesImageDetectionOptionsItemsItem { s.Value = &v return s } type DescribeImagesResponseBodyImagesImageDiskDeviceMappings struct { DiskDeviceMapping []*DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping `json:"DiskDeviceMapping,omitempty" xml:"DiskDeviceMapping,omitempty" type:"Repeated"` } func (s DescribeImagesResponseBodyImagesImageDiskDeviceMappings) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageDiskDeviceMappings) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappings) SetDiskDeviceMapping(v []*DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) *DescribeImagesResponseBodyImagesImageDiskDeviceMappings { s.DiskDeviceMapping = v return s } type DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping struct { // The device name of the disk. Example: /dev/xvdb. // // > This parameter will be removed in the future. To ensure compatibility, we recommend that you use other parameters. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The format of the image. Format *string `json:"Format,omitempty" xml:"Format,omitempty"` // The Object Storage Service (OSS) bucket that contains the imported image file. ImportOSSBucket *string `json:"ImportOSSBucket,omitempty" xml:"ImportOSSBucket,omitempty"` // The OSS object that corresponds to the imported image file. ImportOSSObject *string `json:"ImportOSSObject,omitempty" xml:"ImportOSSObject,omitempty"` // The progress of the image copy task. Progress *string `json:"Progress,omitempty" xml:"Progress,omitempty"` // The remaining time of the image copy task. Unit: seconds. RemainTime *int32 `json:"RemainTime,omitempty" xml:"RemainTime,omitempty"` // The size of the disk. Unit: GiB. Size *string `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The type of the image. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetDevice(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.Device = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetFormat(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.Format = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetImportOSSBucket(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.ImportOSSBucket = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetImportOSSObject(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.ImportOSSObject = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetProgress(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.Progress = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetRemainTime(v int32) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.RemainTime = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetSize(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.Size = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetSnapshotId(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.SnapshotId = &v return s } func (s *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping) SetType(v string) *DescribeImagesResponseBodyImagesImageDiskDeviceMappingsDiskDeviceMapping { s.Type = &v return s } type DescribeImagesResponseBodyImagesImageFeatures struct { // Indicates whether the image supports the Non-Volatile Memory Express (NVMe) protocol. Valid values: // // * supported: The image supports the NVMe protocol. Instances created from the image also support the NVMe protocol. // * unsupported: The image does not support the NVMe protocol. Instances created from the image do not support the NVMe protocol. NvmeSupport *string `json:"NvmeSupport,omitempty" xml:"NvmeSupport,omitempty"` } func (s DescribeImagesResponseBodyImagesImageFeatures) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageFeatures) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageFeatures) SetNvmeSupport(v string) *DescribeImagesResponseBodyImagesImageFeatures { s.NvmeSupport = &v return s } type DescribeImagesResponseBodyImagesImageTags struct { Tag []*DescribeImagesResponseBodyImagesImageTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeImagesResponseBodyImagesImageTags) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageTags) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageTags) SetTag(v []*DescribeImagesResponseBodyImagesImageTagsTag) *DescribeImagesResponseBodyImagesImageTags { s.Tag = v return s } type DescribeImagesResponseBodyImagesImageTagsTag struct { // The tag key of the image. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the image. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeImagesResponseBodyImagesImageTagsTag) String() string { return tea.Prettify(s) } func (s DescribeImagesResponseBodyImagesImageTagsTag) GoString() string { return s.String() } func (s *DescribeImagesResponseBodyImagesImageTagsTag) SetTagKey(v string) *DescribeImagesResponseBodyImagesImageTagsTag { s.TagKey = &v return s } func (s *DescribeImagesResponseBodyImagesImageTagsTag) SetTagValue(v string) *DescribeImagesResponseBodyImagesImageTagsTag { s.TagValue = &v return s } type DescribeImagesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeImagesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeImagesResponse) String() string { return tea.Prettify(s) } func (s DescribeImagesResponse) GoString() string { return s.String() } func (s *DescribeImagesResponse) SetHeaders(v map[string]*string) *DescribeImagesResponse { s.Headers = v return s } func (s *DescribeImagesResponse) SetStatusCode(v int32) *DescribeImagesResponse { s.StatusCode = &v return s } func (s *DescribeImagesResponse) SetBody(v *DescribeImagesResponseBody) *DescribeImagesResponse { s.Body = v return s } type DescribeInstanceAttachmentAttributesRequest struct { // The IDs of the instances. The value can be a JSON array that consists of up to 100 instance IDs. Separate the IDs with commas (,). InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the elasticity assurance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceAttachmentAttributesRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttachmentAttributesRequest) GoString() string { return s.String() } func (s *DescribeInstanceAttachmentAttributesRequest) SetInstanceIds(v string) *DescribeInstanceAttachmentAttributesRequest { s.InstanceIds = &v return s } func (s *DescribeInstanceAttachmentAttributesRequest) SetOwnerAccount(v string) *DescribeInstanceAttachmentAttributesRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceAttachmentAttributesRequest) SetOwnerId(v int64) *DescribeInstanceAttachmentAttributesRequest { s.OwnerId = &v return s } func (s *DescribeInstanceAttachmentAttributesRequest) SetPageNumber(v int32) *DescribeInstanceAttachmentAttributesRequest { s.PageNumber = &v return s } func (s *DescribeInstanceAttachmentAttributesRequest) SetPageSize(v int32) *DescribeInstanceAttachmentAttributesRequest { s.PageSize = &v return s } func (s *DescribeInstanceAttachmentAttributesRequest) SetRegionId(v string) *DescribeInstanceAttachmentAttributesRequest { s.RegionId = &v return s } func (s *DescribeInstanceAttachmentAttributesRequest) SetResourceOwnerAccount(v string) *DescribeInstanceAttachmentAttributesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceAttachmentAttributesRequest) SetResourceOwnerId(v int64) *DescribeInstanceAttachmentAttributesRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceAttachmentAttributesResponseBody struct { // Details about the private pools that the instances match. Instances *DescribeInstanceAttachmentAttributesResponseBodyInstances `json:"Instances,omitempty" xml:"Instances,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstanceAttachmentAttributesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttachmentAttributesResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceAttachmentAttributesResponseBody) SetInstances(v *DescribeInstanceAttachmentAttributesResponseBodyInstances) *DescribeInstanceAttachmentAttributesResponseBody { s.Instances = v return s } func (s *DescribeInstanceAttachmentAttributesResponseBody) SetPageNumber(v int32) *DescribeInstanceAttachmentAttributesResponseBody { s.PageNumber = &v return s } func (s *DescribeInstanceAttachmentAttributesResponseBody) SetPageSize(v int32) *DescribeInstanceAttachmentAttributesResponseBody { s.PageSize = &v return s } func (s *DescribeInstanceAttachmentAttributesResponseBody) SetRequestId(v string) *DescribeInstanceAttachmentAttributesResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceAttachmentAttributesResponseBody) SetTotalCount(v int32) *DescribeInstanceAttachmentAttributesResponseBody { s.TotalCount = &v return s } type DescribeInstanceAttachmentAttributesResponseBodyInstances struct { Instance []*DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance `json:"Instance,omitempty" xml:"Instance,omitempty" type:"Repeated"` } func (s DescribeInstanceAttachmentAttributesResponseBodyInstances) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttachmentAttributesResponseBodyInstances) GoString() string { return s.String() } func (s *DescribeInstanceAttachmentAttributesResponseBodyInstances) SetInstance(v []*DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance) *DescribeInstanceAttachmentAttributesResponseBodyInstances { s.Instance = v return s } type DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance struct { // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The ID of the private pool. If the value of `PrivatePoolOptionsMatchCriteria` is `Open`, the value of PrivatePoolOptionsId is the ID of the private pool that is automatically matched to the instance. PrivatePoolOptionsId *string `json:"PrivatePoolOptionsId,omitempty" xml:"PrivatePoolOptionsId,omitempty"` // The match mode of the private pool. Valid values: // // * Open: open private pool. Instances automatically match an open private pool. // * Target: specified private pool. Instances match a specified private pool. // * None: no private pool. Instances do not use private pools. PrivatePoolOptionsMatchCriteria *string `json:"PrivatePoolOptionsMatchCriteria,omitempty" xml:"PrivatePoolOptionsMatchCriteria,omitempty"` } func (s DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance) GoString() string { return s.String() } func (s *DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance) SetInstanceId(v string) *DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance { s.InstanceId = &v return s } func (s *DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance) SetPrivatePoolOptionsId(v string) *DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance { s.PrivatePoolOptionsId = &v return s } func (s *DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance) SetPrivatePoolOptionsMatchCriteria(v string) *DescribeInstanceAttachmentAttributesResponseBodyInstancesInstance { s.PrivatePoolOptionsMatchCriteria = &v return s } type DescribeInstanceAttachmentAttributesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceAttachmentAttributesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceAttachmentAttributesResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttachmentAttributesResponse) GoString() string { return s.String() } func (s *DescribeInstanceAttachmentAttributesResponse) SetHeaders(v map[string]*string) *DescribeInstanceAttachmentAttributesResponse { s.Headers = v return s } func (s *DescribeInstanceAttachmentAttributesResponse) SetStatusCode(v int32) *DescribeInstanceAttachmentAttributesResponse { s.StatusCode = &v return s } func (s *DescribeInstanceAttachmentAttributesResponse) SetBody(v *DescribeInstanceAttachmentAttributesResponseBody) *DescribeInstanceAttachmentAttributesResponse { s.Body = v return s } type DescribeInstanceAttributeRequest struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceAttributeRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeRequest) GoString() string { return s.String() } func (s *DescribeInstanceAttributeRequest) SetInstanceId(v string) *DescribeInstanceAttributeRequest { s.InstanceId = &v return s } func (s *DescribeInstanceAttributeRequest) SetOwnerAccount(v string) *DescribeInstanceAttributeRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceAttributeRequest) SetOwnerId(v int64) *DescribeInstanceAttributeRequest { s.OwnerId = &v return s } func (s *DescribeInstanceAttributeRequest) SetResourceOwnerAccount(v string) *DescribeInstanceAttributeRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceAttributeRequest) SetResourceOwnerId(v int64) *DescribeInstanceAttributeRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceAttributeResponseBody struct { // The ID of the cluster to which the instance belongs. // // > This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters. ClusterId *string `json:"ClusterId,omitempty" xml:"ClusterId,omitempty"` // The number of vCPUs. Cpu *int32 `json:"Cpu,omitempty" xml:"Cpu,omitempty"` // The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. For more information, see [ISO 8601](~~25696~~). CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The performance mode of the burstable instance. Valid values: // // * Standard: standard mode. For more information, see the "Standard mode" section in [Overview](~~59977#section-svb-w9d-dju~~). // * Unlimited: unlimited mode. For more information, see the "Unlimited mode" section in [Overview](~~59977#section-svb-w9d-dju~~). CreditSpecification *string `json:"CreditSpecification,omitempty" xml:"CreditSpecification,omitempty"` // Details about the dedicated host. It is an array that consists of the DedicatedHostClusterId, DedicatedHostId, and DedicatedHostName parameters. DedicatedHostAttribute *DescribeInstanceAttributeResponseBodyDedicatedHostAttribute `json:"DedicatedHostAttribute,omitempty" xml:"DedicatedHostAttribute,omitempty" type:"Struct"` // The description of the instance. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Details about the elastic IP address (EIP) associated with the instance. EipAddress *DescribeInstanceAttributeResponseBodyEipAddress `json:"EipAddress,omitempty" xml:"EipAddress,omitempty" type:"Struct"` // ECS实例是否开启了Jumbo frame特性。 可能值: // // - true:开启。 // // - false:不开启。 // // 更多信息,请参见[ECS实例MTU](~~200512~~)。 EnableJumboFrame *bool `json:"EnableJumboFrame,omitempty" xml:"EnableJumboFrame,omitempty"` // The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. For more information, see [ISO 8601](~~25696~~). ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` // The hostname of the instance. HostName *string `json:"HostName,omitempty" xml:"HostName,omitempty"` // The ID of the image that the instance is running. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The internal IP address of the instance located in the classic network. InnerIpAddress *DescribeInstanceAttributeResponseBodyInnerIpAddress `json:"InnerIpAddress,omitempty" xml:"InnerIpAddress,omitempty" type:"Struct"` // The billing method of the instance. Valid values: // // * PrePaid: subscription. // * PostPaid: pay-as-you-go InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The instance ID InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The instance name. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The network type of the instance. Valid values: // // * classic: classic network // * vpc: VPC InstanceNetworkType *string `json:"InstanceNetworkType,omitempty" xml:"InstanceNetworkType,omitempty"` // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The metering method for network usage. Valid values: // // * PayByBandwidth // * PayByTraffic // // > When the **pay-by-traffic** method is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** metering method for network usage. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum inbound public bandwidth. Unit: Mbit/s. InternetMaxBandwidthIn *int32 `json:"InternetMaxBandwidthIn,omitempty" xml:"InternetMaxBandwidthIn,omitempty"` // The maximum outbound public bandwidth. Unit: Mbit/s. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Indicates whether the instance is I/O optimized. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The memory size of the instance. Unit: MiB. Memory *int32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // The reason why the instance was locked. Valid values: // // * financial: The dedicated host was locked due to overdue payments. // * security: The instance was locked due to security reasons. // * recycling: The preemptible instance was locked and pending release. // * dedicatedhostfinancial: The instance was locked due to overdue payments for the dedicated host. // * refunded: The instance was locked because a refund was made for the instance. OperationLocks *DescribeInstanceAttributeResponseBodyOperationLocks `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty" type:"Struct"` // The public IP address of the instance. PublicIpAddress *DescribeInstanceAttributeResponseBodyPublicIpAddress `json:"PublicIpAddress,omitempty" xml:"PublicIpAddress,omitempty" type:"Struct"` // The ID of the region in which the instance resides. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The IDs of the security groups to which the instance belongs. SecurityGroupIds *DescribeInstanceAttributeResponseBodySecurityGroupIds `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Struct"` // The serial number of the instance. SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"` // The status of the instance. Valid values: // // * Pending: The instance is being created. // * Running: The instance is running. // * Starting: The instance is being started. // * Stopping: The instance is being stopped. // * Stopped: The instance is stopped. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // Indicates whether the system implements billing after the instance is stopped. Valid values: // // * KeepCharging: The instance is stopped in standard mode. The billing of the instance continues after the instance is stopped, and resources are retained for the instance. // * StopCharging: The instance is stopped in economical mode. The billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. The instance may be unable to start again if some required resources are out of stock in the current region. // * Not-applicable: The instance does not support economical mode. StoppedMode *string `json:"StoppedMode,omitempty" xml:"StoppedMode,omitempty"` // The virtual LAN (VLAN) ID of the instance. // // > This parameter will be removed in the future. To ensure future compatibility, we recommend that you use other parameters. VlanId *string `json:"VlanId,omitempty" xml:"VlanId,omitempty"` // The VPC attributes of the instance. VpcAttributes *DescribeInstanceAttributeResponseBodyVpcAttributes `json:"VpcAttributes,omitempty" xml:"VpcAttributes,omitempty" type:"Struct"` // The ID of the zone in which the instance resides. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeInstanceAttributeResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBody) SetClusterId(v string) *DescribeInstanceAttributeResponseBody { s.ClusterId = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetCpu(v int32) *DescribeInstanceAttributeResponseBody { s.Cpu = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetCreationTime(v string) *DescribeInstanceAttributeResponseBody { s.CreationTime = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetCreditSpecification(v string) *DescribeInstanceAttributeResponseBody { s.CreditSpecification = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetDedicatedHostAttribute(v *DescribeInstanceAttributeResponseBodyDedicatedHostAttribute) *DescribeInstanceAttributeResponseBody { s.DedicatedHostAttribute = v return s } func (s *DescribeInstanceAttributeResponseBody) SetDescription(v string) *DescribeInstanceAttributeResponseBody { s.Description = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetEipAddress(v *DescribeInstanceAttributeResponseBodyEipAddress) *DescribeInstanceAttributeResponseBody { s.EipAddress = v return s } func (s *DescribeInstanceAttributeResponseBody) SetEnableJumboFrame(v bool) *DescribeInstanceAttributeResponseBody { s.EnableJumboFrame = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetExpiredTime(v string) *DescribeInstanceAttributeResponseBody { s.ExpiredTime = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetHostName(v string) *DescribeInstanceAttributeResponseBody { s.HostName = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetImageId(v string) *DescribeInstanceAttributeResponseBody { s.ImageId = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInnerIpAddress(v *DescribeInstanceAttributeResponseBodyInnerIpAddress) *DescribeInstanceAttributeResponseBody { s.InnerIpAddress = v return s } func (s *DescribeInstanceAttributeResponseBody) SetInstanceChargeType(v string) *DescribeInstanceAttributeResponseBody { s.InstanceChargeType = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInstanceId(v string) *DescribeInstanceAttributeResponseBody { s.InstanceId = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInstanceName(v string) *DescribeInstanceAttributeResponseBody { s.InstanceName = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInstanceNetworkType(v string) *DescribeInstanceAttributeResponseBody { s.InstanceNetworkType = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInstanceType(v string) *DescribeInstanceAttributeResponseBody { s.InstanceType = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInternetChargeType(v string) *DescribeInstanceAttributeResponseBody { s.InternetChargeType = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInternetMaxBandwidthIn(v int32) *DescribeInstanceAttributeResponseBody { s.InternetMaxBandwidthIn = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetInternetMaxBandwidthOut(v int32) *DescribeInstanceAttributeResponseBody { s.InternetMaxBandwidthOut = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetIoOptimized(v string) *DescribeInstanceAttributeResponseBody { s.IoOptimized = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetMemory(v int32) *DescribeInstanceAttributeResponseBody { s.Memory = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetOperationLocks(v *DescribeInstanceAttributeResponseBodyOperationLocks) *DescribeInstanceAttributeResponseBody { s.OperationLocks = v return s } func (s *DescribeInstanceAttributeResponseBody) SetPublicIpAddress(v *DescribeInstanceAttributeResponseBodyPublicIpAddress) *DescribeInstanceAttributeResponseBody { s.PublicIpAddress = v return s } func (s *DescribeInstanceAttributeResponseBody) SetRegionId(v string) *DescribeInstanceAttributeResponseBody { s.RegionId = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetRequestId(v string) *DescribeInstanceAttributeResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetSecurityGroupIds(v *DescribeInstanceAttributeResponseBodySecurityGroupIds) *DescribeInstanceAttributeResponseBody { s.SecurityGroupIds = v return s } func (s *DescribeInstanceAttributeResponseBody) SetSerialNumber(v string) *DescribeInstanceAttributeResponseBody { s.SerialNumber = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetStatus(v string) *DescribeInstanceAttributeResponseBody { s.Status = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetStoppedMode(v string) *DescribeInstanceAttributeResponseBody { s.StoppedMode = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetVlanId(v string) *DescribeInstanceAttributeResponseBody { s.VlanId = &v return s } func (s *DescribeInstanceAttributeResponseBody) SetVpcAttributes(v *DescribeInstanceAttributeResponseBodyVpcAttributes) *DescribeInstanceAttributeResponseBody { s.VpcAttributes = v return s } func (s *DescribeInstanceAttributeResponseBody) SetZoneId(v string) *DescribeInstanceAttributeResponseBody { s.ZoneId = &v return s } type DescribeInstanceAttributeResponseBodyDedicatedHostAttribute struct { // The ID of the dedicated host. DedicatedHostId *string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty"` // The name of the dedicated host. DedicatedHostName *string `json:"DedicatedHostName,omitempty" xml:"DedicatedHostName,omitempty"` } func (s DescribeInstanceAttributeResponseBodyDedicatedHostAttribute) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyDedicatedHostAttribute) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyDedicatedHostAttribute) SetDedicatedHostId(v string) *DescribeInstanceAttributeResponseBodyDedicatedHostAttribute { s.DedicatedHostId = &v return s } func (s *DescribeInstanceAttributeResponseBodyDedicatedHostAttribute) SetDedicatedHostName(v string) *DescribeInstanceAttributeResponseBodyDedicatedHostAttribute { s.DedicatedHostName = &v return s } type DescribeInstanceAttributeResponseBodyEipAddress struct { // The ID of the EIP. AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` // The maximum public bandwidth of the EIP. Unit: Mbit/s. Bandwidth *int32 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` // The metering method for network usage. Valid values: // // * PayByBandwidth // * PayByTraffic // // > When the **pay-by-traffic** method is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the **pay-by-bandwidth** metering method for network usage. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The ID of the elastic IP address (EIP). IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` } func (s DescribeInstanceAttributeResponseBodyEipAddress) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyEipAddress) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyEipAddress) SetAllocationId(v string) *DescribeInstanceAttributeResponseBodyEipAddress { s.AllocationId = &v return s } func (s *DescribeInstanceAttributeResponseBodyEipAddress) SetBandwidth(v int32) *DescribeInstanceAttributeResponseBodyEipAddress { s.Bandwidth = &v return s } func (s *DescribeInstanceAttributeResponseBodyEipAddress) SetInternetChargeType(v string) *DescribeInstanceAttributeResponseBodyEipAddress { s.InternetChargeType = &v return s } func (s *DescribeInstanceAttributeResponseBodyEipAddress) SetIpAddress(v string) *DescribeInstanceAttributeResponseBodyEipAddress { s.IpAddress = &v return s } type DescribeInstanceAttributeResponseBodyInnerIpAddress struct { IpAddress []*string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty" type:"Repeated"` } func (s DescribeInstanceAttributeResponseBodyInnerIpAddress) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyInnerIpAddress) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyInnerIpAddress) SetIpAddress(v []*string) *DescribeInstanceAttributeResponseBodyInnerIpAddress { s.IpAddress = v return s } type DescribeInstanceAttributeResponseBodyOperationLocks struct { LockReason []*DescribeInstanceAttributeResponseBodyOperationLocksLockReason `json:"LockReason,omitempty" xml:"LockReason,omitempty" type:"Repeated"` } func (s DescribeInstanceAttributeResponseBodyOperationLocks) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyOperationLocks) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyOperationLocks) SetLockReason(v []*DescribeInstanceAttributeResponseBodyOperationLocksLockReason) *DescribeInstanceAttributeResponseBodyOperationLocks { s.LockReason = v return s } type DescribeInstanceAttributeResponseBodyOperationLocksLockReason struct { // The reason why the instance was locked. Valid values: // // * financial: The dedicated host was locked due to overdue payments. // * security: The instance was locked due to security reasons. // * recycling: The preemptible instance was locked and pending release. // * dedicatedhostfinancial: The instance was locked due to overdue payments for the dedicated host. // * refunded: The instance was locked because a refund was made for the instance. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` } func (s DescribeInstanceAttributeResponseBodyOperationLocksLockReason) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyOperationLocksLockReason) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyOperationLocksLockReason) SetLockReason(v string) *DescribeInstanceAttributeResponseBodyOperationLocksLockReason { s.LockReason = &v return s } type DescribeInstanceAttributeResponseBodyPublicIpAddress struct { IpAddress []*string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty" type:"Repeated"` } func (s DescribeInstanceAttributeResponseBodyPublicIpAddress) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyPublicIpAddress) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyPublicIpAddress) SetIpAddress(v []*string) *DescribeInstanceAttributeResponseBodyPublicIpAddress { s.IpAddress = v return s } type DescribeInstanceAttributeResponseBodySecurityGroupIds struct { SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s DescribeInstanceAttributeResponseBodySecurityGroupIds) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodySecurityGroupIds) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodySecurityGroupIds) SetSecurityGroupId(v []*string) *DescribeInstanceAttributeResponseBodySecurityGroupIds { s.SecurityGroupId = v return s } type DescribeInstanceAttributeResponseBodyVpcAttributes struct { // The NAT IP address of the instance. It is used by ECS instances in different VPCs for communication. NatIpAddress *string `json:"NatIpAddress,omitempty" xml:"NatIpAddress,omitempty"` // The private IP address of the instance. PrivateIpAddress *DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty" type:"Struct"` // The ID of the vSwitch to which the instance is connected. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the VPC. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeInstanceAttributeResponseBodyVpcAttributes) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyVpcAttributes) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyVpcAttributes) SetNatIpAddress(v string) *DescribeInstanceAttributeResponseBodyVpcAttributes { s.NatIpAddress = &v return s } func (s *DescribeInstanceAttributeResponseBodyVpcAttributes) SetPrivateIpAddress(v *DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress) *DescribeInstanceAttributeResponseBodyVpcAttributes { s.PrivateIpAddress = v return s } func (s *DescribeInstanceAttributeResponseBodyVpcAttributes) SetVSwitchId(v string) *DescribeInstanceAttributeResponseBodyVpcAttributes { s.VSwitchId = &v return s } func (s *DescribeInstanceAttributeResponseBodyVpcAttributes) SetVpcId(v string) *DescribeInstanceAttributeResponseBodyVpcAttributes { s.VpcId = &v return s } type DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress struct { IpAddress []*string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty" type:"Repeated"` } func (s DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress) SetIpAddress(v []*string) *DescribeInstanceAttributeResponseBodyVpcAttributesPrivateIpAddress { s.IpAddress = v return s } type DescribeInstanceAttributeResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceAttributeResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceAttributeResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceAttributeResponse) GoString() string { return s.String() } func (s *DescribeInstanceAttributeResponse) SetHeaders(v map[string]*string) *DescribeInstanceAttributeResponse { s.Headers = v return s } func (s *DescribeInstanceAttributeResponse) SetStatusCode(v int32) *DescribeInstanceAttributeResponse { s.StatusCode = &v return s } func (s *DescribeInstanceAttributeResponse) SetBody(v *DescribeInstanceAttributeResponseBody) *DescribeInstanceAttributeResponse { s.Body = v return s } type DescribeInstanceAutoRenewAttributeRequest struct { // The IDs of the instances. You can specify up to 100 subscription instance IDs in a single request. Separate multiple instance IDs with commas (,). // // > `InstanceId` and `RenewalStatus` cannot be empty at the same time. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *string `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 100. // // Default value: 10. PageSize *string `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The auto-renewal state of the instance. Valid values: // // * AutoRenewal: Auto-renewal is enabled for the instance. // * Normal: Auto-renewal is disabled for the instance. // * NotRenewal: The instance is not to be renewed. The system sends no more expiration reminders, but sends only a non-renewal reminder three days before the expiration date. For an instance that is not to be renewed, you can call the [ModifyInstanceAutoRenewAttribute](~~52843~~) operation to change its auto-renewal status to `Normal`. Then, you can manually renew the instance or enable auto-renewal for the instance. RenewalStatus *string `json:"RenewalStatus,omitempty" xml:"RenewalStatus,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceAutoRenewAttributeRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceAutoRenewAttributeRequest) GoString() string { return s.String() } func (s *DescribeInstanceAutoRenewAttributeRequest) SetInstanceId(v string) *DescribeInstanceAutoRenewAttributeRequest { s.InstanceId = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetOwnerAccount(v string) *DescribeInstanceAutoRenewAttributeRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetOwnerId(v int64) *DescribeInstanceAutoRenewAttributeRequest { s.OwnerId = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetPageNumber(v string) *DescribeInstanceAutoRenewAttributeRequest { s.PageNumber = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetPageSize(v string) *DescribeInstanceAutoRenewAttributeRequest { s.PageSize = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetRegionId(v string) *DescribeInstanceAutoRenewAttributeRequest { s.RegionId = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetRenewalStatus(v string) *DescribeInstanceAutoRenewAttributeRequest { s.RenewalStatus = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetResourceOwnerAccount(v string) *DescribeInstanceAutoRenewAttributeRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceAutoRenewAttributeRequest) SetResourceOwnerId(v int64) *DescribeInstanceAutoRenewAttributeRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceAutoRenewAttributeResponseBody struct { // The renewal attributes of instances. InstanceRenewAttributes *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributes `json:"InstanceRenewAttributes,omitempty" xml:"InstanceRenewAttributes,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of queried instances. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstanceAutoRenewAttributeResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceAutoRenewAttributeResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceAutoRenewAttributeResponseBody) SetInstanceRenewAttributes(v *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributes) *DescribeInstanceAutoRenewAttributeResponseBody { s.InstanceRenewAttributes = v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBody) SetPageNumber(v int32) *DescribeInstanceAutoRenewAttributeResponseBody { s.PageNumber = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBody) SetPageSize(v int32) *DescribeInstanceAutoRenewAttributeResponseBody { s.PageSize = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBody) SetRequestId(v string) *DescribeInstanceAutoRenewAttributeResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBody) SetTotalCount(v int32) *DescribeInstanceAutoRenewAttributeResponseBody { s.TotalCount = &v return s } type DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributes struct { InstanceRenewAttribute []*DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute `json:"InstanceRenewAttribute,omitempty" xml:"InstanceRenewAttribute,omitempty" type:"Repeated"` } func (s DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributes) String() string { return tea.Prettify(s) } func (s DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributes) GoString() string { return s.String() } func (s *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributes) SetInstanceRenewAttribute(v []*DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributes { s.InstanceRenewAttribute = v return s } type DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute struct { // Indicates whether auto-renewal is enabled. AutoRenewEnabled *bool `json:"AutoRenewEnabled,omitempty" xml:"AutoRenewEnabled,omitempty"` // The auto-renewal duration. Duration *int32 `json:"Duration,omitempty" xml:"Duration,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The unit of the auto-renewal duration. PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // The auto-renewal state of the instance. Valid values: // // * AutoRenewal: Auto-renewal is enabled for the instance. // * Normal: Auto-renewal is disabled for the instance. // * NotRenewal: The instance is not to be renewed. The system sends no more expiration reminders, but sends only a non-renewal reminder three days before the expiration date. For an instance that is not to be renewed, you can call the [ModifyInstanceAutoRenewAttribute](~~52843~~) operation to change its auto-renewal status to `Normal`. Then, you can manually renew the instance or enable auto-renewal for the instance. RenewalStatus *string `json:"RenewalStatus,omitempty" xml:"RenewalStatus,omitempty"` } func (s DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) String() string { return tea.Prettify(s) } func (s DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) GoString() string { return s.String() } func (s *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) SetAutoRenewEnabled(v bool) *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute { s.AutoRenewEnabled = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) SetDuration(v int32) *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute { s.Duration = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) SetInstanceId(v string) *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute { s.InstanceId = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) SetPeriodUnit(v string) *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute { s.PeriodUnit = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute) SetRenewalStatus(v string) *DescribeInstanceAutoRenewAttributeResponseBodyInstanceRenewAttributesInstanceRenewAttribute { s.RenewalStatus = &v return s } type DescribeInstanceAutoRenewAttributeResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceAutoRenewAttributeResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceAutoRenewAttributeResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceAutoRenewAttributeResponse) GoString() string { return s.String() } func (s *DescribeInstanceAutoRenewAttributeResponse) SetHeaders(v map[string]*string) *DescribeInstanceAutoRenewAttributeResponse { s.Headers = v return s } func (s *DescribeInstanceAutoRenewAttributeResponse) SetStatusCode(v int32) *DescribeInstanceAutoRenewAttributeResponse { s.StatusCode = &v return s } func (s *DescribeInstanceAutoRenewAttributeResponse) SetBody(v *DescribeInstanceAutoRenewAttributeResponseBody) *DescribeInstanceAutoRenewAttributeResponse { s.Body = v return s } type DescribeInstanceHistoryEventsRequest struct { EventPublishTime *DescribeInstanceHistoryEventsRequestEventPublishTime `json:"EventPublishTime,omitempty" xml:"EventPublishTime,omitempty" type:"Struct"` NotBefore *DescribeInstanceHistoryEventsRequestNotBefore `json:"NotBefore,omitempty" xml:"NotBefore,omitempty" type:"Struct"` // The lifecycle state of the system event. This parameter takes effect only when InstanceEventCycleStatus.N is not specified. Valid values: // // * Scheduled // * Avoided // * Executing // * Executed // * Canceled // * Failed // * Inquiring EventCycleStatus *string `json:"EventCycleStatus,omitempty" xml:"EventCycleStatus,omitempty"` // The ID of system event N. Valid values of N: 1 to 100. You can repeat this parameter to pass multiple values. EventId []*string `json:"EventId,omitempty" xml:"EventId,omitempty" type:"Repeated"` // The type of the system event. This parameter takes effect only when InstanceEventType.N is not specified. Valid values: // // * SystemMaintenance.Reboot: The instance is restarted due to system maintenance. // * SystemMaintenance.Redeploy: The instance is redeployed due to system maintenance. // * SystemFailure.Reboot: The instance is restarted due to a system error. // * SystemFailure.Redeploy: The instance is redeployed due to a system error. // * SystemFailure.Delete: The instance is released due to an instance creation failure. // * InstanceFailure.Reboot: The instance is restarted due to an instance error. // * InstanceExpiration.Stop: The subscription instance is stopped due to expiration. // * InstanceExpiration.Delete: The subscription instance is released due to expiration. // * AccountUnbalanced.Stop: The pay-as-you-go instance is stopped due to an overdue payment. // * AccountUnbalanced.Delete: The pay-as-you-go instance is released due to an overdue payment. // // > For more information, see [Overview](~~66574~~). The values of this parameter are applicable only to instance system events, but not to disk system events. EventType *string `json:"EventType,omitempty" xml:"EventType,omitempty"` // > This parameter is not publicly available. ImpactLevel *string `json:"ImpactLevel,omitempty" xml:"ImpactLevel,omitempty"` // The lifecycle state of system event N. Valid values of N: 1 to 7. You can repeat this parameter to pass multiple values. Valid values: // // * Scheduled // * Avoided // * Executing // * Executed // * Canceled // * Failed // * Inquiring InstanceEventCycleStatus []*string `json:"InstanceEventCycleStatus,omitempty" xml:"InstanceEventCycleStatus,omitempty" type:"Repeated"` // The type of system event N. Valid values of N: 1 to 30. You can repeat this parameter to pass multiple values. Valid values: // // * SystemMaintenance.Reboot: The instance is restarted due to system maintenance. // * SystemMaintenance.Redeploy: The instance is redeployed due to system maintenance. // * SystemFailure.Reboot: The instance is restarted due to a system error. // * SystemFailure.Redeploy: The instance is redeployed due to a system error. // * SystemFailure.Delete: The instance is released due to an instance creation failure. // * InstanceFailure.Reboot: The instance is restarted due to an instance error. // * InstanceExpiration.Stop: The subscription instance is stopped due to expiration. // * InstanceExpiration.Delete: The subscription instance is released due to expiration. // * AccountUnbalanced.Stop: The pay-as-you-go instance is stopped due to an overdue payment. // * AccountUnbalanced.Delete: The pay-as-you-go instance is released due to an overdue payment. // // > For more information, see [Overview](~~66574~~). The values of this parameter are applicable only to instance system events, but not to disk system events. InstanceEventType []*string `json:"InstanceEventType,omitempty" xml:"InstanceEventType,omitempty" type:"Repeated"` // The ID of the instance. If this parameter is not specified, the system events of all instances in the specified region are queried. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the resource. You can call [DescribeRegions](~~25609~~) to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the resource belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The ID of resource N. Valid values of N: 1 to 100. You can repeat this parameter to pass multiple values. Valid values: // // * When `ResourceType` is set to instance, ResourceId.N specifies the ID of instance N. // * When `ResourceType` is set to ddh, ResourceId.N specifies the ID of dedicated host N. // * When `ResourceType` is set to managedhost, ResourceId.N specifies the ID of physical machine N from a smart hosting pool. // // If this parameter is not specified, the system events of all resources of the type specified by `ResourceType` in the region specified by `RegionId` are queried. // // > We recommend that you use `ResourceId.N` to specify one or more resource IDs. If you specify both `ResourceId.N` and `InstanceId`, `ResourceId.N` takes precedence by default. ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The type of the resource. Valid values: // // * instance: ECS instance // * ddh: dedicated host // * managehost: physical machine in a smart hosting pool // // Default value: instance. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The list of tags. Tag []*DescribeInstanceHistoryEventsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeInstanceHistoryEventsRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsRequest) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsRequest) SetEventPublishTime(v *DescribeInstanceHistoryEventsRequestEventPublishTime) *DescribeInstanceHistoryEventsRequest { s.EventPublishTime = v return s } func (s *DescribeInstanceHistoryEventsRequest) SetNotBefore(v *DescribeInstanceHistoryEventsRequestNotBefore) *DescribeInstanceHistoryEventsRequest { s.NotBefore = v return s } func (s *DescribeInstanceHistoryEventsRequest) SetEventCycleStatus(v string) *DescribeInstanceHistoryEventsRequest { s.EventCycleStatus = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetEventId(v []*string) *DescribeInstanceHistoryEventsRequest { s.EventId = v return s } func (s *DescribeInstanceHistoryEventsRequest) SetEventType(v string) *DescribeInstanceHistoryEventsRequest { s.EventType = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetImpactLevel(v string) *DescribeInstanceHistoryEventsRequest { s.ImpactLevel = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetInstanceEventCycleStatus(v []*string) *DescribeInstanceHistoryEventsRequest { s.InstanceEventCycleStatus = v return s } func (s *DescribeInstanceHistoryEventsRequest) SetInstanceEventType(v []*string) *DescribeInstanceHistoryEventsRequest { s.InstanceEventType = v return s } func (s *DescribeInstanceHistoryEventsRequest) SetInstanceId(v string) *DescribeInstanceHistoryEventsRequest { s.InstanceId = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetOwnerAccount(v string) *DescribeInstanceHistoryEventsRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetOwnerId(v int64) *DescribeInstanceHistoryEventsRequest { s.OwnerId = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetPageNumber(v int32) *DescribeInstanceHistoryEventsRequest { s.PageNumber = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetPageSize(v int32) *DescribeInstanceHistoryEventsRequest { s.PageSize = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetRegionId(v string) *DescribeInstanceHistoryEventsRequest { s.RegionId = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetResourceGroupId(v string) *DescribeInstanceHistoryEventsRequest { s.ResourceGroupId = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetResourceId(v []*string) *DescribeInstanceHistoryEventsRequest { s.ResourceId = v return s } func (s *DescribeInstanceHistoryEventsRequest) SetResourceOwnerAccount(v string) *DescribeInstanceHistoryEventsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetResourceOwnerId(v int64) *DescribeInstanceHistoryEventsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetResourceType(v string) *DescribeInstanceHistoryEventsRequest { s.ResourceType = &v return s } func (s *DescribeInstanceHistoryEventsRequest) SetTag(v []*DescribeInstanceHistoryEventsRequestTag) *DescribeInstanceHistoryEventsRequest { s.Tag = v return s } type DescribeInstanceHistoryEventsRequestEventPublishTime struct { // The end of the time range in which to query published system events. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. End *string `json:"End,omitempty" xml:"End,omitempty"` // The beginning of the time range in which to query published system events. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Start *string `json:"Start,omitempty" xml:"Start,omitempty"` } func (s DescribeInstanceHistoryEventsRequestEventPublishTime) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsRequestEventPublishTime) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsRequestEventPublishTime) SetEnd(v string) *DescribeInstanceHistoryEventsRequestEventPublishTime { s.End = &v return s } func (s *DescribeInstanceHistoryEventsRequestEventPublishTime) SetStart(v string) *DescribeInstanceHistoryEventsRequestEventPublishTime { s.Start = &v return s } type DescribeInstanceHistoryEventsRequestNotBefore struct { // The latest scheduled end time for the system event. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. End *string `json:"End,omitempty" xml:"End,omitempty"` // The earliest scheduled start time for the system event. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Start *string `json:"Start,omitempty" xml:"Start,omitempty"` } func (s DescribeInstanceHistoryEventsRequestNotBefore) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsRequestNotBefore) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsRequestNotBefore) SetEnd(v string) *DescribeInstanceHistoryEventsRequestNotBefore { s.End = &v return s } func (s *DescribeInstanceHistoryEventsRequestNotBefore) SetStart(v string) *DescribeInstanceHistoryEventsRequestNotBefore { s.Start = &v return s } type DescribeInstanceHistoryEventsRequestTag struct { // The key of tag N of the resource. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the resource. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeInstanceHistoryEventsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsRequestTag) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsRequestTag) SetKey(v string) *DescribeInstanceHistoryEventsRequestTag { s.Key = &v return s } func (s *DescribeInstanceHistoryEventsRequestTag) SetValue(v string) *DescribeInstanceHistoryEventsRequestTag { s.Value = &v return s } type DescribeInstanceHistoryEventsResponseBody struct { // The information about instance system events. InstanceSystemEventSet *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet `json:"InstanceSystemEventSet,omitempty" xml:"InstanceSystemEventSet,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of instances returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstanceHistoryEventsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBody) SetInstanceSystemEventSet(v *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet) *DescribeInstanceHistoryEventsResponseBody { s.InstanceSystemEventSet = v return s } func (s *DescribeInstanceHistoryEventsResponseBody) SetPageNumber(v int32) *DescribeInstanceHistoryEventsResponseBody { s.PageNumber = &v return s } func (s *DescribeInstanceHistoryEventsResponseBody) SetPageSize(v int32) *DescribeInstanceHistoryEventsResponseBody { s.PageSize = &v return s } func (s *DescribeInstanceHistoryEventsResponseBody) SetRequestId(v string) *DescribeInstanceHistoryEventsResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceHistoryEventsResponseBody) SetTotalCount(v int32) *DescribeInstanceHistoryEventsResponseBody { s.TotalCount = &v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet struct { InstanceSystemEventType []*DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType `json:"InstanceSystemEventType,omitempty" xml:"InstanceSystemEventType,omitempty" type:"Repeated"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet) SetInstanceSystemEventType(v []*DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSet { s.InstanceSystemEventType = v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType struct { // The lifecycle state of the system event. EventCycleStatus *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus `json:"EventCycleStatus,omitempty" xml:"EventCycleStatus,omitempty" type:"Struct"` // The time when the system event ended. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. EventFinishTime *string `json:"EventFinishTime,omitempty" xml:"EventFinishTime,omitempty"` // The ID of the system event. EventId *string `json:"EventId,omitempty" xml:"EventId,omitempty"` // The time when the system event was published. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. EventPublishTime *string `json:"EventPublishTime,omitempty" xml:"EventPublishTime,omitempty"` // The type of the system event. EventType *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType `json:"EventType,omitempty" xml:"EventType,omitempty" type:"Struct"` // The extended attribute of the system event. ExtendedAttribute *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute `json:"ExtendedAttribute,omitempty" xml:"ExtendedAttribute,omitempty" type:"Struct"` // The impact level of the system event. ImpactLevel *string `json:"ImpactLevel,omitempty" xml:"ImpactLevel,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The scheduled start time of the system event. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"` // The reason why the system event was scheduled. Reason *string `json:"Reason,omitempty" xml:"Reason,omitempty"` // The type of the resource. Valid values: // // * instance: ECS instance // * ddh: dedicated host // * managehost: physical machine in a smart hosting pool ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetEventCycleStatus(v *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.EventCycleStatus = v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetEventFinishTime(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.EventFinishTime = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetEventId(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.EventId = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetEventPublishTime(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.EventPublishTime = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetEventType(v *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.EventType = v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetExtendedAttribute(v *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.ExtendedAttribute = v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetImpactLevel(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.ImpactLevel = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetInstanceId(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.InstanceId = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetNotBefore(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.NotBefore = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetReason(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.Reason = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType) SetResourceType(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventType { s.ResourceType = &v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus struct { // The state code of the system event. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The state name of the system event. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus) SetCode(v int32) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus { s.Code = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus) SetName(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventCycleStatus { s.Name = &v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType struct { // The code of the system event type. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the system event type. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType) SetCode(v int32) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType { s.Code = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType) SetName(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeEventType { s.Name = &v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute struct { // Indicates whether the event can be handled. CanAccept *string `json:"CanAccept,omitempty" xml:"CanAccept,omitempty"` // The code of the security violation. Code *string `json:"Code,omitempty" xml:"Code,omitempty"` // The device name of the local disk. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The ID of the local disk. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The ID of the host. HostId *string `json:"HostId,omitempty" xml:"HostId,omitempty"` // The type of the host. Valid values: // // - ddh: dedicated host // - managehost: physical machine in a smart hosting pool HostType *string `json:"HostType,omitempty" xml:"HostType,omitempty"` // The information about the inactive disks that have been released and must be cleared. InactiveDisks *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks `json:"InactiveDisks,omitempty" xml:"InactiveDisks,omitempty" type:"Struct"` // The migration solution of the instance. Valid value: MigrationPlan, which indicates that instances can be migrated only by using migration plans. MigrationOptions *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions `json:"MigrationOptions,omitempty" xml:"MigrationOptions,omitempty" type:"Struct"` // The online repair policy for the damaged disk. Valid value: IsolateOnly, which indicates that damaged disks are isolated but not repaired. OnlineRepairPolicy *string `json:"OnlineRepairPolicy,omitempty" xml:"OnlineRepairPolicy,omitempty"` // The illegal domain name. PunishDomain *string `json:"PunishDomain,omitempty" xml:"PunishDomain,omitempty"` // The type of the penalty. PunishType *string `json:"PunishType,omitempty" xml:"PunishType,omitempty"` // The illegal URL. PunishUrl *string `json:"PunishUrl,omitempty" xml:"PunishUrl,omitempty"` // The rack number of the cloud box. Rack *string `json:"Rack,omitempty" xml:"Rack,omitempty"` // The response result of the event. Valid values: // // - true: The event was handled. // - false: The event failed to be handled. ResponseResult *string `json:"ResponseResult,omitempty" xml:"ResponseResult,omitempty"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetCanAccept(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.CanAccept = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetCode(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.Code = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetDevice(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.Device = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetDiskId(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.DiskId = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetHostId(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.HostId = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetHostType(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.HostType = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetInactiveDisks(v *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.InactiveDisks = v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetMigrationOptions(v *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.MigrationOptions = v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetOnlineRepairPolicy(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.OnlineRepairPolicy = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetPunishDomain(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.PunishDomain = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetPunishType(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.PunishType = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetPunishUrl(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.PunishUrl = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetRack(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.Rack = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute) SetResponseResult(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttribute { s.ResponseResult = &v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks struct { InactiveDisk []*DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk `json:"InactiveDisk,omitempty" xml:"InactiveDisk,omitempty" type:"Repeated"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks) SetInactiveDisk(v []*DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks { s.InactiveDisk = v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk struct { // The time when the disk was created. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The category of the disk. Valid values: // // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: enhanced SSD (ESSD) // * local_ssd_pro: I/O-intensive local disk // * local_hdd_pro: throughput-intensive local disk // * ephemeral: retired local disk // * ephemeral_ssd: retired local SSD DeviceCategory *string `json:"DeviceCategory,omitempty" xml:"DeviceCategory,omitempty"` // The size of the disk. Unit: GiB. DeviceSize *string `json:"DeviceSize,omitempty" xml:"DeviceSize,omitempty"` // The type of the disk. Valid values: // // * system: system disk // * data: data disk DeviceType *string `json:"DeviceType,omitempty" xml:"DeviceType,omitempty"` // The time when the disk was released. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. ReleaseTime *string `json:"ReleaseTime,omitempty" xml:"ReleaseTime,omitempty"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetCreationTime(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.CreationTime = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetDeviceCategory(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.DeviceCategory = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetDeviceSize(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.DeviceSize = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetDeviceType(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.DeviceType = &v return s } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetReleaseTime(v string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.ReleaseTime = &v return s } type DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions struct { MigrationOption []*string `json:"MigrationOption,omitempty" xml:"MigrationOption,omitempty" type:"Repeated"` } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions) SetMigrationOption(v []*string) *DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions { s.MigrationOption = v return s } type DescribeInstanceHistoryEventsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceHistoryEventsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceHistoryEventsResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceHistoryEventsResponse) GoString() string { return s.String() } func (s *DescribeInstanceHistoryEventsResponse) SetHeaders(v map[string]*string) *DescribeInstanceHistoryEventsResponse { s.Headers = v return s } func (s *DescribeInstanceHistoryEventsResponse) SetStatusCode(v int32) *DescribeInstanceHistoryEventsResponse { s.StatusCode = &v return s } func (s *DescribeInstanceHistoryEventsResponse) SetBody(v *DescribeInstanceHistoryEventsResponseBody) *DescribeInstanceHistoryEventsResponse { s.Body = v return s } type DescribeInstanceMaintenanceAttributesRequest struct { // The instance IDs. You can specify up to 100 instance IDs. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 100. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceMaintenanceAttributesRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesRequest) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesRequest) SetInstanceId(v []*string) *DescribeInstanceMaintenanceAttributesRequest { s.InstanceId = v return s } func (s *DescribeInstanceMaintenanceAttributesRequest) SetOwnerAccount(v string) *DescribeInstanceMaintenanceAttributesRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceMaintenanceAttributesRequest) SetOwnerId(v int64) *DescribeInstanceMaintenanceAttributesRequest { s.OwnerId = &v return s } func (s *DescribeInstanceMaintenanceAttributesRequest) SetPageNumber(v int64) *DescribeInstanceMaintenanceAttributesRequest { s.PageNumber = &v return s } func (s *DescribeInstanceMaintenanceAttributesRequest) SetPageSize(v int64) *DescribeInstanceMaintenanceAttributesRequest { s.PageSize = &v return s } func (s *DescribeInstanceMaintenanceAttributesRequest) SetRegionId(v string) *DescribeInstanceMaintenanceAttributesRequest { s.RegionId = &v return s } func (s *DescribeInstanceMaintenanceAttributesRequest) SetResourceOwnerAccount(v string) *DescribeInstanceMaintenanceAttributesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceMaintenanceAttributesRequest) SetResourceOwnerId(v int64) *DescribeInstanceMaintenanceAttributesRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceMaintenanceAttributesResponseBody struct { // The maintenance attributes. MaintenanceAttributes *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes `json:"MaintenanceAttributes,omitempty" xml:"MaintenanceAttributes,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of queried maintenance attributes. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstanceMaintenanceAttributesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponseBody) SetMaintenanceAttributes(v *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes) *DescribeInstanceMaintenanceAttributesResponseBody { s.MaintenanceAttributes = v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBody) SetPageNumber(v int32) *DescribeInstanceMaintenanceAttributesResponseBody { s.PageNumber = &v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBody) SetPageSize(v int32) *DescribeInstanceMaintenanceAttributesResponseBody { s.PageSize = &v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBody) SetRequestId(v string) *DescribeInstanceMaintenanceAttributesResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBody) SetTotalCount(v int32) *DescribeInstanceMaintenanceAttributesResponseBody { s.TotalCount = &v return s } type DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes struct { MaintenanceAttribute []*DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute `json:"MaintenanceAttribute,omitempty" xml:"MaintenanceAttribute,omitempty" type:"Repeated"` } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes) SetMaintenanceAttribute(v []*DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributes { s.MaintenanceAttribute = v return s } type DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute struct { // The attributes of the maintenance action of the instance. ActionOnMaintenance *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance `json:"ActionOnMaintenance,omitempty" xml:"ActionOnMaintenance,omitempty" type:"Struct"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The maintenance windows. MaintenanceWindows *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows `json:"MaintenanceWindows,omitempty" xml:"MaintenanceWindows,omitempty" type:"Struct"` // Indicates whether an event notification was sent before maintenance. NotifyOnMaintenance *bool `json:"NotifyOnMaintenance,omitempty" xml:"NotifyOnMaintenance,omitempty"` } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute) SetActionOnMaintenance(v *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute { s.ActionOnMaintenance = v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute) SetInstanceId(v string) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute { s.InstanceId = &v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute) SetMaintenanceWindows(v *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute { s.MaintenanceWindows = v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute) SetNotifyOnMaintenance(v bool) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttribute { s.NotifyOnMaintenance = &v return s } type DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance struct { // The default maintenance action. DefaultValue *string `json:"DefaultValue,omitempty" xml:"DefaultValue,omitempty"` // The supported maintenance actions. SupportedValues *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues `json:"SupportedValues,omitempty" xml:"SupportedValues,omitempty" type:"Struct"` // The current maintenance action. Valid values: // // * Stop: stops the instance. // * AutoRecover: automatically recovers the instance. // * AutoRedeploy: redeploys the instance, which may damage the data disks attached to the instance. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance) SetDefaultValue(v string) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance { s.DefaultValue = &v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance) SetSupportedValues(v *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance { s.SupportedValues = v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance) SetValue(v string) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenance { s.Value = &v return s } type DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues struct { SupportedValue []*string `json:"SupportedValue,omitempty" xml:"SupportedValue,omitempty" type:"Repeated"` } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues) SetSupportedValue(v []*string) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeActionOnMaintenanceSupportedValues { s.SupportedValue = v return s } type DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows struct { MaintenanceWindow []*DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow `json:"MaintenanceWindow,omitempty" xml:"MaintenanceWindow,omitempty" type:"Repeated"` } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows) SetMaintenanceWindow(v []*DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindows { s.MaintenanceWindow = v return s } type DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow struct { // The end time of the maintenance window. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The start time of the maintenance window. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow) SetEndTime(v string) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow { s.EndTime = &v return s } func (s *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow) SetStartTime(v string) *DescribeInstanceMaintenanceAttributesResponseBodyMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow { s.StartTime = &v return s } type DescribeInstanceMaintenanceAttributesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceMaintenanceAttributesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceMaintenanceAttributesResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceMaintenanceAttributesResponse) GoString() string { return s.String() } func (s *DescribeInstanceMaintenanceAttributesResponse) SetHeaders(v map[string]*string) *DescribeInstanceMaintenanceAttributesResponse { s.Headers = v return s } func (s *DescribeInstanceMaintenanceAttributesResponse) SetStatusCode(v int32) *DescribeInstanceMaintenanceAttributesResponse { s.StatusCode = &v return s } func (s *DescribeInstanceMaintenanceAttributesResponse) SetBody(v *DescribeInstanceMaintenanceAttributesResponseBody) *DescribeInstanceMaintenanceAttributesResponse { s.Body = v return s } type DescribeInstanceModificationPriceRequest struct { SystemDisk *DescribeInstanceModificationPriceRequestSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // The information about the data disk. DataDisk []*DescribeInstanceModificationPriceRequestDataDisk `json:"DataDisk,omitempty" xml:"DataDisk,omitempty" type:"Repeated"` // The ID of the instance for which you want to query pricing information for a configuration upgrade. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The new instance type. We recommend that you call the [DescribeResourcesModification](~~66187~~) operation to query the instance types available for configuration upgrades in a specified zone. // // > When you call the DescribeInstanceModificationPrice operation, you must specify at least one of the following parameters: `InstanceType` and `DataDisk.N.*`. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceModificationPriceRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceRequest) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceRequest) SetSystemDisk(v *DescribeInstanceModificationPriceRequestSystemDisk) *DescribeInstanceModificationPriceRequest { s.SystemDisk = v return s } func (s *DescribeInstanceModificationPriceRequest) SetDataDisk(v []*DescribeInstanceModificationPriceRequestDataDisk) *DescribeInstanceModificationPriceRequest { s.DataDisk = v return s } func (s *DescribeInstanceModificationPriceRequest) SetInstanceId(v string) *DescribeInstanceModificationPriceRequest { s.InstanceId = &v return s } func (s *DescribeInstanceModificationPriceRequest) SetInstanceType(v string) *DescribeInstanceModificationPriceRequest { s.InstanceType = &v return s } func (s *DescribeInstanceModificationPriceRequest) SetOwnerAccount(v string) *DescribeInstanceModificationPriceRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceModificationPriceRequest) SetOwnerId(v int64) *DescribeInstanceModificationPriceRequest { s.OwnerId = &v return s } func (s *DescribeInstanceModificationPriceRequest) SetRegionId(v string) *DescribeInstanceModificationPriceRequest { s.RegionId = &v return s } func (s *DescribeInstanceModificationPriceRequest) SetResourceOwnerAccount(v string) *DescribeInstanceModificationPriceRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceModificationPriceRequest) SetResourceOwnerId(v int64) *DescribeInstanceModificationPriceRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceModificationPriceRequestSystemDisk struct { // The category of the system disk. You must specify this parameter only when you upgrade a non-I/O optimized instance of a retired instance type to an I/O optimized instance of an available instance type. For more information about instance types, see [Instance families](~~25378~~) and [Retired instance types](~~55263~~). // // Valid values: // // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // // This parameter is empty by default. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` } func (s DescribeInstanceModificationPriceRequestSystemDisk) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceRequestSystemDisk) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceRequestSystemDisk) SetCategory(v string) *DescribeInstanceModificationPriceRequestSystemDisk { s.Category = &v return s } type DescribeInstanceModificationPriceRequestDataDisk struct { // The category of data disk N. You can specify this parameter if you want to query the pricing information about newly attached subscription data disks. Valid values of N: 1 to 16. Valid values: // // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * cloud_essd: ESSD // * cloud: basic disk // // This parameter is empty by default. // // > When you call the DescribeInstanceModificationPrice operation, you must specify at least one of the following parameters: `InstanceType` and `DataDisk.N.*`. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The performance level of data disk N that is an enhanced SSD (ESSD). The value of N must be the same as that in `DataDisk.N.Category` when DataDisk.N.Category is set to cloud_essd. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. // // Default value: PL1. // // For more information about ESSD performance levels, see [ESSDs](~~122389~~). PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The capacity of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values: // // * Valid values when DataDisk.N.Category is set to cloud_efficiency: 20 to 32768. // // * Valid values when DataDisk.N.Category is set to cloud_ssd: 20 to 32768. // // * Valid values when DataDisk.N.Category is set to cloud_essd: depends on the value of `DataDisk.N.PerformanceLevel`. // // * Valid values when DataDisk.N.PerformanceLevel is set to PL0: 40 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL3: 1261 to 32768. // // * Valid values when DataDisk.N.Category is set to cloud: 5 to 2000. // // The default value is the minimum capacity allowed for the specified data disk category. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` } func (s DescribeInstanceModificationPriceRequestDataDisk) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceRequestDataDisk) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceRequestDataDisk) SetCategory(v string) *DescribeInstanceModificationPriceRequestDataDisk { s.Category = &v return s } func (s *DescribeInstanceModificationPriceRequestDataDisk) SetPerformanceLevel(v string) *DescribeInstanceModificationPriceRequestDataDisk { s.PerformanceLevel = &v return s } func (s *DescribeInstanceModificationPriceRequestDataDisk) SetSize(v int32) *DescribeInstanceModificationPriceRequestDataDisk { s.Size = &v return s } type DescribeInstanceModificationPriceResponseBody struct { // Details about the prices and promotion rules. PriceInfo *DescribeInstanceModificationPriceResponseBodyPriceInfo `json:"PriceInfo,omitempty" xml:"PriceInfo,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeInstanceModificationPriceResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceResponseBody) SetPriceInfo(v *DescribeInstanceModificationPriceResponseBodyPriceInfo) *DescribeInstanceModificationPriceResponseBody { s.PriceInfo = v return s } func (s *DescribeInstanceModificationPriceResponseBody) SetRequestId(v string) *DescribeInstanceModificationPriceResponseBody { s.RequestId = &v return s } type DescribeInstanceModificationPriceResponseBodyPriceInfo struct { // The price. Price *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice `json:"Price,omitempty" xml:"Price,omitempty" type:"Struct"` // The promotion rules. Rules *DescribeInstanceModificationPriceResponseBodyPriceInfoRules `json:"Rules,omitempty" xml:"Rules,omitempty" type:"Struct"` } func (s DescribeInstanceModificationPriceResponseBodyPriceInfo) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceResponseBodyPriceInfo) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfo) SetPrice(v *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice) *DescribeInstanceModificationPriceResponseBodyPriceInfo { s.Price = v return s } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfo) SetRules(v *DescribeInstanceModificationPriceResponseBodyPriceInfoRules) *DescribeInstanceModificationPriceResponseBodyPriceInfo { s.Rules = v return s } type DescribeInstanceModificationPriceResponseBodyPriceInfoPrice struct { // The currency unit. // // Alibaba Cloud China site (aliyun.com): CNY // // Alibaba Cloud International site (alibabacloud.com): USD Currency *string `json:"Currency,omitempty" xml:"Currency,omitempty"` // The discount. DiscountPrice *float32 `json:"DiscountPrice,omitempty" xml:"DiscountPrice,omitempty"` // The original price. OriginalPrice *float32 `json:"OriginalPrice,omitempty" xml:"OriginalPrice,omitempty"` // The transaction price, which is equal to the original price minus the discount. TradePrice *float32 `json:"TradePrice,omitempty" xml:"TradePrice,omitempty"` } func (s DescribeInstanceModificationPriceResponseBodyPriceInfoPrice) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceResponseBodyPriceInfoPrice) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice) SetCurrency(v string) *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice { s.Currency = &v return s } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice) SetDiscountPrice(v float32) *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice { s.DiscountPrice = &v return s } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice) SetOriginalPrice(v float32) *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice { s.OriginalPrice = &v return s } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice) SetTradePrice(v float32) *DescribeInstanceModificationPriceResponseBodyPriceInfoPrice { s.TradePrice = &v return s } type DescribeInstanceModificationPriceResponseBodyPriceInfoRules struct { Rule []*DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule `json:"Rule,omitempty" xml:"Rule,omitempty" type:"Repeated"` } func (s DescribeInstanceModificationPriceResponseBodyPriceInfoRules) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceResponseBodyPriceInfoRules) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfoRules) SetRule(v []*DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule) *DescribeInstanceModificationPriceResponseBodyPriceInfoRules { s.Rule = v return s } type DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule struct { // The description of the promotion rule. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the promotion rule. RuleId *int64 `json:"RuleId,omitempty" xml:"RuleId,omitempty"` } func (s DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule) SetDescription(v string) *DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule { s.Description = &v return s } func (s *DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule) SetRuleId(v int64) *DescribeInstanceModificationPriceResponseBodyPriceInfoRulesRule { s.RuleId = &v return s } type DescribeInstanceModificationPriceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceModificationPriceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceModificationPriceResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceModificationPriceResponse) GoString() string { return s.String() } func (s *DescribeInstanceModificationPriceResponse) SetHeaders(v map[string]*string) *DescribeInstanceModificationPriceResponse { s.Headers = v return s } func (s *DescribeInstanceModificationPriceResponse) SetStatusCode(v int32) *DescribeInstanceModificationPriceResponse { s.StatusCode = &v return s } func (s *DescribeInstanceModificationPriceResponse) SetBody(v *DescribeInstanceModificationPriceResponseBody) *DescribeInstanceModificationPriceResponse { s.Body = v return s } type DescribeInstanceMonitorDataRequest struct { // The end of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (`ss`) is not `00`, the time is rounded up to the next minute. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The interval at which to retrieve monitoring data. Unit: seconds. Valid values: // // * 60 // * 600 // * 3600 // // Default value: 60. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The beginning of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (`ss`) is not `00`, the time is rounded up to the next minute. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeInstanceMonitorDataRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceMonitorDataRequest) GoString() string { return s.String() } func (s *DescribeInstanceMonitorDataRequest) SetEndTime(v string) *DescribeInstanceMonitorDataRequest { s.EndTime = &v return s } func (s *DescribeInstanceMonitorDataRequest) SetInstanceId(v string) *DescribeInstanceMonitorDataRequest { s.InstanceId = &v return s } func (s *DescribeInstanceMonitorDataRequest) SetOwnerAccount(v string) *DescribeInstanceMonitorDataRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceMonitorDataRequest) SetOwnerId(v int64) *DescribeInstanceMonitorDataRequest { s.OwnerId = &v return s } func (s *DescribeInstanceMonitorDataRequest) SetPeriod(v int32) *DescribeInstanceMonitorDataRequest { s.Period = &v return s } func (s *DescribeInstanceMonitorDataRequest) SetResourceOwnerAccount(v string) *DescribeInstanceMonitorDataRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceMonitorDataRequest) SetResourceOwnerId(v int64) *DescribeInstanceMonitorDataRequest { s.ResourceOwnerId = &v return s } func (s *DescribeInstanceMonitorDataRequest) SetStartTime(v string) *DescribeInstanceMonitorDataRequest { s.StartTime = &v return s } type DescribeInstanceMonitorDataResponseBody struct { // The monitoring data of the instance. MonitorData *DescribeInstanceMonitorDataResponseBodyMonitorData `json:"MonitorData,omitempty" xml:"MonitorData,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeInstanceMonitorDataResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceMonitorDataResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceMonitorDataResponseBody) SetMonitorData(v *DescribeInstanceMonitorDataResponseBodyMonitorData) *DescribeInstanceMonitorDataResponseBody { s.MonitorData = v return s } func (s *DescribeInstanceMonitorDataResponseBody) SetRequestId(v string) *DescribeInstanceMonitorDataResponseBody { s.RequestId = &v return s } type DescribeInstanceMonitorDataResponseBodyMonitorData struct { InstanceMonitorData []*DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData `json:"InstanceMonitorData,omitempty" xml:"InstanceMonitorData,omitempty" type:"Repeated"` } func (s DescribeInstanceMonitorDataResponseBodyMonitorData) String() string { return tea.Prettify(s) } func (s DescribeInstanceMonitorDataResponseBodyMonitorData) GoString() string { return s.String() } func (s *DescribeInstanceMonitorDataResponseBodyMonitorData) SetInstanceMonitorData(v []*DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) *DescribeInstanceMonitorDataResponseBodyMonitorData { s.InstanceMonitorData = v return s } type DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData struct { // The read bandwidth of the cloud disks (system disk and data disks). Unit: Byte/s. BPSRead *int32 `json:"BPSRead,omitempty" xml:"BPSRead,omitempty"` // The write bandwidth of the cloud disks (system disk and data disks). Unit: Byte/s. BPSWrite *int32 `json:"BPSWrite,omitempty" xml:"BPSWrite,omitempty"` // The vCPU utilization of the instance. Unit: percent (%). CPU *int32 `json:"CPU,omitempty" xml:"CPU,omitempty"` // The overdrawn CPU credits of the burstable instance. CPUAdvanceCreditBalance *float32 `json:"CPUAdvanceCreditBalance,omitempty" xml:"CPUAdvanceCreditBalance,omitempty"` // The total number of CPU credits of the burstable instance. CPUCreditBalance *float32 `json:"CPUCreditBalance,omitempty" xml:"CPUCreditBalance,omitempty"` // The number of CPU credits consumed by the burstable instance. CPUCreditUsage *float32 `json:"CPUCreditUsage,omitempty" xml:"CPUCreditUsage,omitempty"` // The unpaid overdrawn CPU credits. CPUNotpaidSurplusCreditUsage *float32 `json:"CPUNotpaidSurplusCreditUsage,omitempty" xml:"CPUNotpaidSurplusCreditUsage,omitempty"` // The number of read I/O operations per second on the cloud disks (system disk and data disks). IOPSRead *int32 `json:"IOPSRead,omitempty" xml:"IOPSRead,omitempty"` // The number of write I/O operations per second on the cloud disks (system disk and data disks). IOPSWrite *int32 `json:"IOPSWrite,omitempty" xml:"IOPSWrite,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The public bandwidth of the instance. Unit: Kbit/s. InternetBandwidth *int32 `json:"InternetBandwidth,omitempty" xml:"InternetBandwidth,omitempty"` // The Internet traffic received by the instance during the period that is specified by the `Period` parameter. The period starts from the point in time that is specified by the `TimeStamp` parameter. Unit: Kbit. InternetRX *int32 `json:"InternetRX,omitempty" xml:"InternetRX,omitempty"` // The Internet traffic sent by the instance during the period that is specified by the `Period` parameter. The period starts from the point in time that is specified by the `TimeStamp` parameter. Unit: Kbit. InternetTX *int32 `json:"InternetTX,omitempty" xml:"InternetTX,omitempty"` // The internal bandwidth of the instance. Unit: Kbit/s. IntranetBandwidth *int32 `json:"IntranetBandwidth,omitempty" xml:"IntranetBandwidth,omitempty"` // The internal data traffic received by the instance during the period that is specified by the `Period` parameter. The period starts from the point in time that is specified by the `TimeStamp` parameter. Unit: Kbit. IntranetRX *int32 `json:"IntranetRX,omitempty" xml:"IntranetRX,omitempty"` // The internal data traffic sent by the instance during the period that is specified by the `Period` parameter. The period starts from the point in time that is specified by the `TimeStamp` parameter. Unit: Kbit. IntranetTX *int32 `json:"IntranetTX,omitempty" xml:"IntranetTX,omitempty"` // The timestamp of the monitoring data. TimeStamp *string `json:"TimeStamp,omitempty" xml:"TimeStamp,omitempty"` } func (s DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) String() string { return tea.Prettify(s) } func (s DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) GoString() string { return s.String() } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetBPSRead(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.BPSRead = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetBPSWrite(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.BPSWrite = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetCPU(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.CPU = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetCPUAdvanceCreditBalance(v float32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.CPUAdvanceCreditBalance = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetCPUCreditBalance(v float32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.CPUCreditBalance = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetCPUCreditUsage(v float32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.CPUCreditUsage = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetCPUNotpaidSurplusCreditUsage(v float32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.CPUNotpaidSurplusCreditUsage = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetIOPSRead(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.IOPSRead = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetIOPSWrite(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.IOPSWrite = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetInstanceId(v string) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.InstanceId = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetInternetBandwidth(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.InternetBandwidth = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetInternetRX(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.InternetRX = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetInternetTX(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.InternetTX = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetIntranetBandwidth(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.IntranetBandwidth = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetIntranetRX(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.IntranetRX = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetIntranetTX(v int32) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.IntranetTX = &v return s } func (s *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData) SetTimeStamp(v string) *DescribeInstanceMonitorDataResponseBodyMonitorDataInstanceMonitorData { s.TimeStamp = &v return s } type DescribeInstanceMonitorDataResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceMonitorDataResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceMonitorDataResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceMonitorDataResponse) GoString() string { return s.String() } func (s *DescribeInstanceMonitorDataResponse) SetHeaders(v map[string]*string) *DescribeInstanceMonitorDataResponse { s.Headers = v return s } func (s *DescribeInstanceMonitorDataResponse) SetStatusCode(v int32) *DescribeInstanceMonitorDataResponse { s.StatusCode = &v return s } func (s *DescribeInstanceMonitorDataResponse) SetBody(v *DescribeInstanceMonitorDataResponseBody) *DescribeInstanceMonitorDataResponse { s.Body = v return s } type DescribeInstanceRamRoleRequest struct { // The IDs of instances. You can specify up to 100 instance IDs in a single request. You must specify at least one of the `InstanceIds` and `RamRoleName` parameters. InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 50. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The name of the instance RAM role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created. You must specify at least one of the `InstanceIds` and `RamRoleName` parameters. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The region ID of the instance RAM role. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceRamRoleRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceRamRoleRequest) GoString() string { return s.String() } func (s *DescribeInstanceRamRoleRequest) SetInstanceIds(v string) *DescribeInstanceRamRoleRequest { s.InstanceIds = &v return s } func (s *DescribeInstanceRamRoleRequest) SetOwnerId(v int64) *DescribeInstanceRamRoleRequest { s.OwnerId = &v return s } func (s *DescribeInstanceRamRoleRequest) SetPageNumber(v int32) *DescribeInstanceRamRoleRequest { s.PageNumber = &v return s } func (s *DescribeInstanceRamRoleRequest) SetPageSize(v int32) *DescribeInstanceRamRoleRequest { s.PageSize = &v return s } func (s *DescribeInstanceRamRoleRequest) SetRamRoleName(v string) *DescribeInstanceRamRoleRequest { s.RamRoleName = &v return s } func (s *DescribeInstanceRamRoleRequest) SetRegionId(v string) *DescribeInstanceRamRoleRequest { s.RegionId = &v return s } func (s *DescribeInstanceRamRoleRequest) SetResourceOwnerAccount(v string) *DescribeInstanceRamRoleRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceRamRoleRequest) SetResourceOwnerId(v int64) *DescribeInstanceRamRoleRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceRamRoleResponseBody struct { // Details about the instance RAM roles. InstanceRamRoleSets *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSets `json:"InstanceRamRoleSets,omitempty" xml:"InstanceRamRoleSets,omitempty" type:"Struct"` // The region ID of the instance RAM role. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of instance RAM roles returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstanceRamRoleResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceRamRoleResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceRamRoleResponseBody) SetInstanceRamRoleSets(v *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSets) *DescribeInstanceRamRoleResponseBody { s.InstanceRamRoleSets = v return s } func (s *DescribeInstanceRamRoleResponseBody) SetRegionId(v string) *DescribeInstanceRamRoleResponseBody { s.RegionId = &v return s } func (s *DescribeInstanceRamRoleResponseBody) SetRequestId(v string) *DescribeInstanceRamRoleResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceRamRoleResponseBody) SetTotalCount(v int32) *DescribeInstanceRamRoleResponseBody { s.TotalCount = &v return s } type DescribeInstanceRamRoleResponseBodyInstanceRamRoleSets struct { InstanceRamRoleSet []*DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet `json:"InstanceRamRoleSet,omitempty" xml:"InstanceRamRoleSet,omitempty" type:"Repeated"` } func (s DescribeInstanceRamRoleResponseBodyInstanceRamRoleSets) String() string { return tea.Prettify(s) } func (s DescribeInstanceRamRoleResponseBodyInstanceRamRoleSets) GoString() string { return s.String() } func (s *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSets) SetInstanceRamRoleSet(v []*DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet) *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSets { s.InstanceRamRoleSet = v return s } type DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet struct { // The ID of the instance InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the instance RAM role. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` } func (s DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet) String() string { return tea.Prettify(s) } func (s DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet) GoString() string { return s.String() } func (s *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet) SetInstanceId(v string) *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet { s.InstanceId = &v return s } func (s *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet) SetRamRoleName(v string) *DescribeInstanceRamRoleResponseBodyInstanceRamRoleSetsInstanceRamRoleSet { s.RamRoleName = &v return s } type DescribeInstanceRamRoleResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceRamRoleResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceRamRoleResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceRamRoleResponse) GoString() string { return s.String() } func (s *DescribeInstanceRamRoleResponse) SetHeaders(v map[string]*string) *DescribeInstanceRamRoleResponse { s.Headers = v return s } func (s *DescribeInstanceRamRoleResponse) SetStatusCode(v int32) *DescribeInstanceRamRoleResponse { s.StatusCode = &v return s } func (s *DescribeInstanceRamRoleResponse) SetBody(v *DescribeInstanceRamRoleResponseBody) *DescribeInstanceRamRoleResponse { s.Body = v return s } type DescribeInstanceStatusRequest struct { // The cluster ID of the instances. ClusterId *string `json:"ClusterId,omitempty" xml:"ClusterId,omitempty"` // The IDs of the instances. When you use this parameter to specify multiple instance IDs, separate the IDs with commas(,). Example: `InstanceId.1=i-bp1j4i2jdf3owlhe****, InstanceId.2=i-bp1j4i2jdf3o1234****`. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 50. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the instances. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The zone ID of the instances. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeInstanceStatusRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceStatusRequest) GoString() string { return s.String() } func (s *DescribeInstanceStatusRequest) SetClusterId(v string) *DescribeInstanceStatusRequest { s.ClusterId = &v return s } func (s *DescribeInstanceStatusRequest) SetInstanceId(v []*string) *DescribeInstanceStatusRequest { s.InstanceId = v return s } func (s *DescribeInstanceStatusRequest) SetOwnerAccount(v string) *DescribeInstanceStatusRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceStatusRequest) SetOwnerId(v int64) *DescribeInstanceStatusRequest { s.OwnerId = &v return s } func (s *DescribeInstanceStatusRequest) SetPageNumber(v int32) *DescribeInstanceStatusRequest { s.PageNumber = &v return s } func (s *DescribeInstanceStatusRequest) SetPageSize(v int32) *DescribeInstanceStatusRequest { s.PageSize = &v return s } func (s *DescribeInstanceStatusRequest) SetRegionId(v string) *DescribeInstanceStatusRequest { s.RegionId = &v return s } func (s *DescribeInstanceStatusRequest) SetResourceOwnerAccount(v string) *DescribeInstanceStatusRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceStatusRequest) SetResourceOwnerId(v int64) *DescribeInstanceStatusRequest { s.ResourceOwnerId = &v return s } func (s *DescribeInstanceStatusRequest) SetZoneId(v string) *DescribeInstanceStatusRequest { s.ZoneId = &v return s } type DescribeInstanceStatusResponseBody struct { // The status information of the instances. InstanceStatuses *DescribeInstanceStatusResponseBodyInstanceStatuses `json:"InstanceStatuses,omitempty" xml:"InstanceStatuses,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of instances. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstanceStatusResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceStatusResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceStatusResponseBody) SetInstanceStatuses(v *DescribeInstanceStatusResponseBodyInstanceStatuses) *DescribeInstanceStatusResponseBody { s.InstanceStatuses = v return s } func (s *DescribeInstanceStatusResponseBody) SetPageNumber(v int32) *DescribeInstanceStatusResponseBody { s.PageNumber = &v return s } func (s *DescribeInstanceStatusResponseBody) SetPageSize(v int32) *DescribeInstanceStatusResponseBody { s.PageSize = &v return s } func (s *DescribeInstanceStatusResponseBody) SetRequestId(v string) *DescribeInstanceStatusResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceStatusResponseBody) SetTotalCount(v int32) *DescribeInstanceStatusResponseBody { s.TotalCount = &v return s } type DescribeInstanceStatusResponseBodyInstanceStatuses struct { InstanceStatus []*DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus `json:"InstanceStatus,omitempty" xml:"InstanceStatus,omitempty" type:"Repeated"` } func (s DescribeInstanceStatusResponseBodyInstanceStatuses) String() string { return tea.Prettify(s) } func (s DescribeInstanceStatusResponseBodyInstanceStatuses) GoString() string { return s.String() } func (s *DescribeInstanceStatusResponseBodyInstanceStatuses) SetInstanceStatus(v []*DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus) *DescribeInstanceStatusResponseBodyInstanceStatuses { s.InstanceStatus = v return s } type DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus struct { // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The status of the instance. Valid values: // // * Pending: The instance is being created. // * Running: The instance is running. // * Starting: The instance is being started. // * Stopping: The instance is being stopped. // * Stopped: The instance is stopped. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus) String() string { return tea.Prettify(s) } func (s DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus) GoString() string { return s.String() } func (s *DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus) SetInstanceId(v string) *DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus { s.InstanceId = &v return s } func (s *DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus) SetStatus(v string) *DescribeInstanceStatusResponseBodyInstanceStatusesInstanceStatus { s.Status = &v return s } type DescribeInstanceStatusResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceStatusResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceStatusResponse) GoString() string { return s.String() } func (s *DescribeInstanceStatusResponse) SetHeaders(v map[string]*string) *DescribeInstanceStatusResponse { s.Headers = v return s } func (s *DescribeInstanceStatusResponse) SetStatusCode(v int32) *DescribeInstanceStatusResponse { s.StatusCode = &v return s } func (s *DescribeInstanceStatusResponse) SetBody(v *DescribeInstanceStatusResponseBody) *DescribeInstanceStatusResponse { s.Body = v return s } type DescribeInstanceTopologyRequest struct { // The IDs of one or more ECS instances. You can specify a maximum of 100 instance IDs. InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the ECS instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceTopologyRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceTopologyRequest) GoString() string { return s.String() } func (s *DescribeInstanceTopologyRequest) SetInstanceIds(v string) *DescribeInstanceTopologyRequest { s.InstanceIds = &v return s } func (s *DescribeInstanceTopologyRequest) SetOwnerId(v int64) *DescribeInstanceTopologyRequest { s.OwnerId = &v return s } func (s *DescribeInstanceTopologyRequest) SetRegionId(v string) *DescribeInstanceTopologyRequest { s.RegionId = &v return s } func (s *DescribeInstanceTopologyRequest) SetResourceOwnerAccount(v string) *DescribeInstanceTopologyRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceTopologyRequest) SetResourceOwnerId(v int64) *DescribeInstanceTopologyRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceTopologyResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details about the topology. Topologys *DescribeInstanceTopologyResponseBodyTopologys `json:"Topologys,omitempty" xml:"Topologys,omitempty" type:"Struct"` } func (s DescribeInstanceTopologyResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceTopologyResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceTopologyResponseBody) SetRequestId(v string) *DescribeInstanceTopologyResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceTopologyResponseBody) SetTopologys(v *DescribeInstanceTopologyResponseBodyTopologys) *DescribeInstanceTopologyResponseBody { s.Topologys = v return s } type DescribeInstanceTopologyResponseBodyTopologys struct { Topology []*DescribeInstanceTopologyResponseBodyTopologysTopology `json:"Topology,omitempty" xml:"Topology,omitempty" type:"Repeated"` } func (s DescribeInstanceTopologyResponseBodyTopologys) String() string { return tea.Prettify(s) } func (s DescribeInstanceTopologyResponseBodyTopologys) GoString() string { return s.String() } func (s *DescribeInstanceTopologyResponseBodyTopologys) SetTopology(v []*DescribeInstanceTopologyResponseBodyTopologysTopology) *DescribeInstanceTopologyResponseBodyTopologys { s.Topology = v return s } type DescribeInstanceTopologyResponseBodyTopologysTopology struct { // The ID of the host where the ECS instance resides. This parameter is encrypted and cannot match the ID of the ECS instance. However, if the values of this parameter for different ECS instances are the same, the ECS instances reside on the same host. HostId *string `json:"HostId,omitempty" xml:"HostId,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` } func (s DescribeInstanceTopologyResponseBodyTopologysTopology) String() string { return tea.Prettify(s) } func (s DescribeInstanceTopologyResponseBodyTopologysTopology) GoString() string { return s.String() } func (s *DescribeInstanceTopologyResponseBodyTopologysTopology) SetHostId(v string) *DescribeInstanceTopologyResponseBodyTopologysTopology { s.HostId = &v return s } func (s *DescribeInstanceTopologyResponseBodyTopologysTopology) SetInstanceId(v string) *DescribeInstanceTopologyResponseBodyTopologysTopology { s.InstanceId = &v return s } type DescribeInstanceTopologyResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceTopologyResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceTopologyResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceTopologyResponse) GoString() string { return s.String() } func (s *DescribeInstanceTopologyResponse) SetHeaders(v map[string]*string) *DescribeInstanceTopologyResponse { s.Headers = v return s } func (s *DescribeInstanceTopologyResponse) SetStatusCode(v int32) *DescribeInstanceTopologyResponse { s.StatusCode = &v return s } func (s *DescribeInstanceTopologyResponse) SetBody(v *DescribeInstanceTopologyResponseBody) *DescribeInstanceTopologyResponse { s.Body = v return s } type DescribeInstanceTypeFamiliesRequest struct { // The generation of the instance family. For more information, see [Instance families](~~25378~~). Valid values: // // * ecs-1: Generation I, which consists of the earliest and cost-effective instance types // * ecs-2: Generation II, which provides upgraded software and hardware and higher performance than Generation I // * ecs-3: Generation III, which consists of high-performance instance families and is suitable for different business scenarios // * ecs-4: Generation IV, which consists of enterprise-level instance families (such as g5, c5, and r5), Bare Metal Instance families (such as ebmc5s, ebmg5s, and ebmr5s), and burstable instance families (such as t5) that can meet a wide variety of business requirements with lower latency // * ecs-5: Generation V, which consists of enterprise-level instance families (such as g6, c6, and r6), Bare Metal Instance families (such as ebmg6, ebmg6e, and ebmc6), and storage enhanced instance families (such as g6e) and delivers quick response and higher performance // * ecs-6: Generation VI, which consists of enterprise-level instance families (such as hfc7, hfg7, and hfr7) and Bare Metal Instance families (such as ebmhfg7) and is in invitational preview Generation *string `json:"Generation,omitempty" xml:"Generation,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceTypeFamiliesRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypeFamiliesRequest) GoString() string { return s.String() } func (s *DescribeInstanceTypeFamiliesRequest) SetGeneration(v string) *DescribeInstanceTypeFamiliesRequest { s.Generation = &v return s } func (s *DescribeInstanceTypeFamiliesRequest) SetOwnerAccount(v string) *DescribeInstanceTypeFamiliesRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceTypeFamiliesRequest) SetOwnerId(v int64) *DescribeInstanceTypeFamiliesRequest { s.OwnerId = &v return s } func (s *DescribeInstanceTypeFamiliesRequest) SetRegionId(v string) *DescribeInstanceTypeFamiliesRequest { s.RegionId = &v return s } func (s *DescribeInstanceTypeFamiliesRequest) SetResourceOwnerAccount(v string) *DescribeInstanceTypeFamiliesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceTypeFamiliesRequest) SetResourceOwnerId(v int64) *DescribeInstanceTypeFamiliesRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceTypeFamiliesResponseBody struct { // Details about instance families. InstanceTypeFamilies *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamilies `json:"InstanceTypeFamilies,omitempty" xml:"InstanceTypeFamilies,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeInstanceTypeFamiliesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypeFamiliesResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceTypeFamiliesResponseBody) SetInstanceTypeFamilies(v *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamilies) *DescribeInstanceTypeFamiliesResponseBody { s.InstanceTypeFamilies = v return s } func (s *DescribeInstanceTypeFamiliesResponseBody) SetRequestId(v string) *DescribeInstanceTypeFamiliesResponseBody { s.RequestId = &v return s } type DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamilies struct { InstanceTypeFamily []*DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty" type:"Repeated"` } func (s DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamilies) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamilies) GoString() string { return s.String() } func (s *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamilies) SetInstanceTypeFamily(v []*DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily) *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamilies { s.InstanceTypeFamily = v return s } type DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily struct { // The generation of the instance family. Generation *string `json:"Generation,omitempty" xml:"Generation,omitempty"` // The ID of the instance family. InstanceTypeFamilyId *string `json:"InstanceTypeFamilyId,omitempty" xml:"InstanceTypeFamilyId,omitempty"` } func (s DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily) GoString() string { return s.String() } func (s *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily) SetGeneration(v string) *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily { s.Generation = &v return s } func (s *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily) SetInstanceTypeFamilyId(v string) *DescribeInstanceTypeFamiliesResponseBodyInstanceTypeFamiliesInstanceTypeFamily { s.InstanceTypeFamilyId = &v return s } type DescribeInstanceTypeFamiliesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceTypeFamiliesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceTypeFamiliesResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypeFamiliesResponse) GoString() string { return s.String() } func (s *DescribeInstanceTypeFamiliesResponse) SetHeaders(v map[string]*string) *DescribeInstanceTypeFamiliesResponse { s.Headers = v return s } func (s *DescribeInstanceTypeFamiliesResponse) SetStatusCode(v int32) *DescribeInstanceTypeFamiliesResponse { s.StatusCode = &v return s } func (s *DescribeInstanceTypeFamiliesResponse) SetBody(v *DescribeInstanceTypeFamiliesResponseBody) *DescribeInstanceTypeFamiliesResponse { s.Body = v return s } type DescribeInstanceTypesRequest struct { // The CPU architecture. Valid values: // // * X86: x86 // * ARM: ARM CpuArchitecture *string `json:"CpuArchitecture,omitempty" xml:"CpuArchitecture,omitempty"` CpuArchitectures []*string `json:"CpuArchitectures,omitempty" xml:"CpuArchitectures,omitempty" type:"Repeated"` // The GPU model. // // > Fuzzy match is supported. For example, if an instance type provides NVIDIA V100 GPUs and you set this parameter to NVIDIA, information about the instance type is queried. GPUSpec *string `json:"GPUSpec,omitempty" xml:"GPUSpec,omitempty"` GpuSpecs []*string `json:"GpuSpecs,omitempty" xml:"GpuSpecs,omitempty" type:"Repeated"` InstanceCategories []*string `json:"InstanceCategories,omitempty" xml:"InstanceCategories,omitempty" type:"Repeated"` // The category of the instance type. Valid values: // // * General-purpose: general-purpose instance type // * Compute-optimized: compute-optimized instance type // * Memory-optimized: memory-optimized instance type // * Big data: big data instance type // * Local SSDs: instance type with local SSDs // * High Clock Speed: instance type with high clock speeds // * Enhanced: enhanced instance type // * Shared: shared instance type // * Compute-optimized with GPU: GPU-accelerated compute-optimized instance type // * Visual Compute-optimized: visual compute-optimized instance type // * Heterogeneous Service: heterogeneous service instance type // * Compute-optimized with FPGA: FPGA-accelerated compute-optimized instance type // * Compute-optimized with NPU: NPU-accelerated compute-optimized instance type // * ECS Bare Metal: ECS Bare Metal Instance type // * Super Computing Cluster: Super Computing Cluster (SCC) instance type // - High Performance Compute. // - Cloud Physical Server. InstanceCategory *string `json:"InstanceCategory,omitempty" xml:"InstanceCategory,omitempty"` // The level of the instance family. Valid values: // // * EntryLevel: entry level (shared) // * EnterpriseLevel: enterprise level // * CreditEntryLevel: credit-based entry level InstanceFamilyLevel *string `json:"InstanceFamilyLevel,omitempty" xml:"InstanceFamilyLevel,omitempty"` InstanceTypeFamilies []*string `json:"InstanceTypeFamilies,omitempty" xml:"InstanceTypeFamilies,omitempty" type:"Repeated"` // The instance family to which the instance type belongs. For information about the valid values of this parameter, see [DescribeInstanceTypeFamilies](~~25621~~). // // For more information about instance families, see [Instance families](~~25378~~). InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // Instance type N. Valid values of N: 1 to 10. If this parameter is left empty, information about all instance types is queried. InstanceTypes []*string `json:"InstanceTypes,omitempty" xml:"InstanceTypes,omitempty" type:"Repeated"` LocalStorageCategories []*string `json:"LocalStorageCategories,omitempty" xml:"LocalStorageCategories,omitempty" type:"Repeated"` // The category of local disks. For more information, see [Local disks](~~63138#section_n2w\_8yc\_5u1~~). Valid values: // // * local_hdd_pro: local Serial Advanced Technology Attachment (SATA) HDDs, which are used by d1ne or d1 instances // * local_ssd_pro: local Non-Volatile Memory Express (NVMe) SSDs, which are used by i2, i2g, i1, ga1, or gn5 instances LocalStorageCategory *string `json:"LocalStorageCategory,omitempty" xml:"LocalStorageCategory,omitempty"` // The maximum number of entries to return on each page. Maximum value: 1600. // // Default value: 1600. MaxResults *int64 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The maximum number of vCPUs. The value must be a positive integer. // // > If an instance type has more vCPUs than the specified value, information about the instance type is not queried. MaximumCpuCoreCount *int32 `json:"MaximumCpuCoreCount,omitempty" xml:"MaximumCpuCoreCount,omitempty"` // The maximum clock speed. // // > If an instance type uses processors that have a higher clock speed than the specified value, information about the instance type is not queried. MaximumCpuSpeedFrequency *float32 `json:"MaximumCpuSpeedFrequency,omitempty" xml:"MaximumCpuSpeedFrequency,omitempty"` // The maximum turbo frequency. // // > If an instance type uses processors that deliver a higher turbo frequency than the specified value, information about the instance type is not queried. MaximumCpuTurboFrequency *float32 `json:"MaximumCpuTurboFrequency,omitempty" xml:"MaximumCpuTurboFrequency,omitempty"` // The maximum number of GPUs. The value must be a positive integer. // // > If an instance type provides more GPUs than the specified value, information about the instance type is not queried. MaximumGPUAmount *int32 `json:"MaximumGPUAmount,omitempty" xml:"MaximumGPUAmount,omitempty"` // The maximum memory size. Unit: GiB. // // > If the memory size of an instance type is larger than the specified value, information about the instance type is not queried. MaximumMemorySize *float32 `json:"MaximumMemorySize,omitempty" xml:"MaximumMemorySize,omitempty"` // The minimum baseline CPU performance (overall baseline performance of all vCPUs) of a t5 or t6 burstable instance. // // > If a t5 or t6 instance type provides baseline CPU performance lower than the specified value, information about the instance type is not queried. MinimumBaselineCredit *int32 `json:"MinimumBaselineCredit,omitempty" xml:"MinimumBaselineCredit,omitempty"` // The minimum number of vCPUs. The value must be a positive integer. // // > If an instance type has fewer vCPUs than the specified value, information about the instance type is not queried. MinimumCpuCoreCount *int32 `json:"MinimumCpuCoreCount,omitempty" xml:"MinimumCpuCoreCount,omitempty"` // The minimum clock speed. // // > If an instance type uses processors that have a lower clock speed than the specified value, information about the instance type is not queried. MinimumCpuSpeedFrequency *float32 `json:"MinimumCpuSpeedFrequency,omitempty" xml:"MinimumCpuSpeedFrequency,omitempty"` // The minimum turbo frequency. // // > If an instance type uses processors that deliver a lower turbo frequency than the specified value, information about the instance type is not queried. MinimumCpuTurboFrequency *float32 `json:"MinimumCpuTurboFrequency,omitempty" xml:"MinimumCpuTurboFrequency,omitempty"` // The minimum number of cloud disks per instance. // // > If an instance type supports fewer cloud disks than the specified value, information about the instance type is not queried. MinimumDiskQuantity *int32 `json:"MinimumDiskQuantity,omitempty" xml:"MinimumDiskQuantity,omitempty"` // The minimum number of IPv6 addresses per ENI. // // > If an instance type supports fewer IPv6 addresses per ENI than the specified value, information about the instance type is not queried. MinimumEniIpv6AddressQuantity *int32 `json:"MinimumEniIpv6AddressQuantity,omitempty" xml:"MinimumEniIpv6AddressQuantity,omitempty"` // The minimum number of IPv4 addresses per ENI. // // > If an instance type supports fewer IPv4 addresses per ENI than the specified value, information about the instance type is not queried. MinimumEniPrivateIpAddressQuantity *int32 `json:"MinimumEniPrivateIpAddressQuantity,omitempty" xml:"MinimumEniPrivateIpAddressQuantity,omitempty"` // The minimum number of elastic network interfaces (ENIs) per instance. // // > If an instance type supports fewer ENIs than the specified value, information about the instance type is not queried. MinimumEniQuantity *int32 `json:"MinimumEniQuantity,omitempty" xml:"MinimumEniQuantity,omitempty"` // The minimum number of ERIs per instance. // // > If an instance type supports fewer ERIs than the specified value, information about the instance type is not queried. MinimumEriQuantity *int32 `json:"MinimumEriQuantity,omitempty" xml:"MinimumEriQuantity,omitempty"` // The minimum number of GPUs. The value must be a positive integer. // // > If an instance type provides fewer GPUs than the specified value, information about the instance type is not queried. MinimumGPUAmount *int32 `json:"MinimumGPUAmount,omitempty" xml:"MinimumGPUAmount,omitempty"` // The minimum initial CPU credits of a t5 or t6 burstable instance. // // > If a t5 or t6 instance type provides less initial vCPU credits than the specified value, information about the instance type is not queried. MinimumInitialCredit *int32 `json:"MinimumInitialCredit,omitempty" xml:"MinimumInitialCredit,omitempty"` // The minimum inbound internal bandwidth. Unit: Kbit/s. // // > If an instance type provides an inbound internal bandwidth that is lower than the specified value, information about the instance type is not queried. MinimumInstanceBandwidthRx *int32 `json:"MinimumInstanceBandwidthRx,omitempty" xml:"MinimumInstanceBandwidthRx,omitempty"` // The minimum outbound internal bandwidth. Unit: Kbit/s. // // > If an instance type provides an outbound internal bandwidth that is lower than the specified value, information about the instance type is not queried. MinimumInstanceBandwidthTx *int32 `json:"MinimumInstanceBandwidthTx,omitempty" xml:"MinimumInstanceBandwidthTx,omitempty"` // The minimum inbound packet forwarding rate over the internal network. Unit: pps. // // > If an instance type provides an inbound packet forwarding rate over the internal network that is lower than the specified value, information about the instance type is not queried. MinimumInstancePpsRx *int64 `json:"MinimumInstancePpsRx,omitempty" xml:"MinimumInstancePpsRx,omitempty"` // The minimum outbound packet forwarding rate over the internal network. Unit: pps. // // > If an instance type provides an outbound packet forwarding rate over the internal network that is lower than the specified value, information about the instance type is not queried. MinimumInstancePpsTx *int64 `json:"MinimumInstancePpsTx,omitempty" xml:"MinimumInstancePpsTx,omitempty"` // The minimum number of local disks per instance. // // > If an instance type supports fewer local disks than the specified value, information about the instance type is not queried. MinimumLocalStorageAmount *int32 `json:"MinimumLocalStorageAmount,omitempty" xml:"MinimumLocalStorageAmount,omitempty"` // The capacity of each local disk attached per instance. Unit: GiB. MinimumLocalStorageCapacity *int64 `json:"MinimumLocalStorageCapacity,omitempty" xml:"MinimumLocalStorageCapacity,omitempty"` // The minimum memory size. Unit: GiB. // // > If the memory size of an instance type is smaller than the specified value, information about the instance type is not queried. MinimumMemorySize *float32 `json:"MinimumMemorySize,omitempty" xml:"MinimumMemorySize,omitempty"` // The minimum default number of queues per primary network interface controller (NIC). // // > If an instance type supports fewer queues per primary NIC than the specified value, information about the instance type is not queried. MinimumPrimaryEniQueueNumber *int32 `json:"MinimumPrimaryEniQueueNumber,omitempty" xml:"MinimumPrimaryEniQueueNumber,omitempty"` // The minimum number of queue pair (QP) queues per elastic RDMA interface (ERI). // // > If an instance type supports fewer QP queues per ERI than the specified value, information about the instance type is not queried. MinimumQueuePairNumber *int32 `json:"MinimumQueuePairNumber,omitempty" xml:"MinimumQueuePairNumber,omitempty"` // The minimum default number of queues per secondary NIC. // // > If an instance type supports fewer queues per secondary NIC than the specified value, information about the instance type is not queried. MinimumSecondaryEniQueueNumber *int32 `json:"MinimumSecondaryEniQueueNumber,omitempty" xml:"MinimumSecondaryEniQueueNumber,omitempty"` // The query token. Set the value to the NextToken value returned in the previous call to the DescribeInstanceTypes operation. You do not need to specify this parameter for the first request. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // Specifies whether cloud disks can be attached by using the NVMe protocol. Valid values: // // * required: The cloud disk can be attached by using the NVMe protocol. // * unsupported: The cloud disk cannot be attached by using the NVMe protocol. NvmeSupport *string `json:"NvmeSupport,omitempty" xml:"NvmeSupport,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The CPU model. // // > Fuzzy match is supported. For example, if an instance type uses Intel Xeon (Ice Lake) Platinum 8369B processors and you set this parameter to Intel, information about the instance type is queried. PhysicalProcessorModel *string `json:"PhysicalProcessorModel,omitempty" xml:"PhysicalProcessorModel,omitempty"` PhysicalProcessorModels []*string `json:"PhysicalProcessorModels,omitempty" xml:"PhysicalProcessorModels,omitempty" type:"Repeated"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceTypesRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesRequest) GoString() string { return s.String() } func (s *DescribeInstanceTypesRequest) SetCpuArchitecture(v string) *DescribeInstanceTypesRequest { s.CpuArchitecture = &v return s } func (s *DescribeInstanceTypesRequest) SetCpuArchitectures(v []*string) *DescribeInstanceTypesRequest { s.CpuArchitectures = v return s } func (s *DescribeInstanceTypesRequest) SetGPUSpec(v string) *DescribeInstanceTypesRequest { s.GPUSpec = &v return s } func (s *DescribeInstanceTypesRequest) SetGpuSpecs(v []*string) *DescribeInstanceTypesRequest { s.GpuSpecs = v return s } func (s *DescribeInstanceTypesRequest) SetInstanceCategories(v []*string) *DescribeInstanceTypesRequest { s.InstanceCategories = v return s } func (s *DescribeInstanceTypesRequest) SetInstanceCategory(v string) *DescribeInstanceTypesRequest { s.InstanceCategory = &v return s } func (s *DescribeInstanceTypesRequest) SetInstanceFamilyLevel(v string) *DescribeInstanceTypesRequest { s.InstanceFamilyLevel = &v return s } func (s *DescribeInstanceTypesRequest) SetInstanceTypeFamilies(v []*string) *DescribeInstanceTypesRequest { s.InstanceTypeFamilies = v return s } func (s *DescribeInstanceTypesRequest) SetInstanceTypeFamily(v string) *DescribeInstanceTypesRequest { s.InstanceTypeFamily = &v return s } func (s *DescribeInstanceTypesRequest) SetInstanceTypes(v []*string) *DescribeInstanceTypesRequest { s.InstanceTypes = v return s } func (s *DescribeInstanceTypesRequest) SetLocalStorageCategories(v []*string) *DescribeInstanceTypesRequest { s.LocalStorageCategories = v return s } func (s *DescribeInstanceTypesRequest) SetLocalStorageCategory(v string) *DescribeInstanceTypesRequest { s.LocalStorageCategory = &v return s } func (s *DescribeInstanceTypesRequest) SetMaxResults(v int64) *DescribeInstanceTypesRequest { s.MaxResults = &v return s } func (s *DescribeInstanceTypesRequest) SetMaximumCpuCoreCount(v int32) *DescribeInstanceTypesRequest { s.MaximumCpuCoreCount = &v return s } func (s *DescribeInstanceTypesRequest) SetMaximumCpuSpeedFrequency(v float32) *DescribeInstanceTypesRequest { s.MaximumCpuSpeedFrequency = &v return s } func (s *DescribeInstanceTypesRequest) SetMaximumCpuTurboFrequency(v float32) *DescribeInstanceTypesRequest { s.MaximumCpuTurboFrequency = &v return s } func (s *DescribeInstanceTypesRequest) SetMaximumGPUAmount(v int32) *DescribeInstanceTypesRequest { s.MaximumGPUAmount = &v return s } func (s *DescribeInstanceTypesRequest) SetMaximumMemorySize(v float32) *DescribeInstanceTypesRequest { s.MaximumMemorySize = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumBaselineCredit(v int32) *DescribeInstanceTypesRequest { s.MinimumBaselineCredit = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumCpuCoreCount(v int32) *DescribeInstanceTypesRequest { s.MinimumCpuCoreCount = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumCpuSpeedFrequency(v float32) *DescribeInstanceTypesRequest { s.MinimumCpuSpeedFrequency = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumCpuTurboFrequency(v float32) *DescribeInstanceTypesRequest { s.MinimumCpuTurboFrequency = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumDiskQuantity(v int32) *DescribeInstanceTypesRequest { s.MinimumDiskQuantity = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumEniIpv6AddressQuantity(v int32) *DescribeInstanceTypesRequest { s.MinimumEniIpv6AddressQuantity = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumEniPrivateIpAddressQuantity(v int32) *DescribeInstanceTypesRequest { s.MinimumEniPrivateIpAddressQuantity = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumEniQuantity(v int32) *DescribeInstanceTypesRequest { s.MinimumEniQuantity = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumEriQuantity(v int32) *DescribeInstanceTypesRequest { s.MinimumEriQuantity = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumGPUAmount(v int32) *DescribeInstanceTypesRequest { s.MinimumGPUAmount = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumInitialCredit(v int32) *DescribeInstanceTypesRequest { s.MinimumInitialCredit = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumInstanceBandwidthRx(v int32) *DescribeInstanceTypesRequest { s.MinimumInstanceBandwidthRx = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumInstanceBandwidthTx(v int32) *DescribeInstanceTypesRequest { s.MinimumInstanceBandwidthTx = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumInstancePpsRx(v int64) *DescribeInstanceTypesRequest { s.MinimumInstancePpsRx = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumInstancePpsTx(v int64) *DescribeInstanceTypesRequest { s.MinimumInstancePpsTx = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumLocalStorageAmount(v int32) *DescribeInstanceTypesRequest { s.MinimumLocalStorageAmount = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumLocalStorageCapacity(v int64) *DescribeInstanceTypesRequest { s.MinimumLocalStorageCapacity = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumMemorySize(v float32) *DescribeInstanceTypesRequest { s.MinimumMemorySize = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumPrimaryEniQueueNumber(v int32) *DescribeInstanceTypesRequest { s.MinimumPrimaryEniQueueNumber = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumQueuePairNumber(v int32) *DescribeInstanceTypesRequest { s.MinimumQueuePairNumber = &v return s } func (s *DescribeInstanceTypesRequest) SetMinimumSecondaryEniQueueNumber(v int32) *DescribeInstanceTypesRequest { s.MinimumSecondaryEniQueueNumber = &v return s } func (s *DescribeInstanceTypesRequest) SetNextToken(v string) *DescribeInstanceTypesRequest { s.NextToken = &v return s } func (s *DescribeInstanceTypesRequest) SetNvmeSupport(v string) *DescribeInstanceTypesRequest { s.NvmeSupport = &v return s } func (s *DescribeInstanceTypesRequest) SetOwnerAccount(v string) *DescribeInstanceTypesRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceTypesRequest) SetOwnerId(v int64) *DescribeInstanceTypesRequest { s.OwnerId = &v return s } func (s *DescribeInstanceTypesRequest) SetPhysicalProcessorModel(v string) *DescribeInstanceTypesRequest { s.PhysicalProcessorModel = &v return s } func (s *DescribeInstanceTypesRequest) SetPhysicalProcessorModels(v []*string) *DescribeInstanceTypesRequest { s.PhysicalProcessorModels = v return s } func (s *DescribeInstanceTypesRequest) SetResourceOwnerAccount(v string) *DescribeInstanceTypesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceTypesRequest) SetResourceOwnerId(v int64) *DescribeInstanceTypesRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceTypesResponseBody struct { // Details about the instance types. InstanceTypes *DescribeInstanceTypesResponseBodyInstanceTypes `json:"InstanceTypes,omitempty" xml:"InstanceTypes,omitempty" type:"Struct"` // The query token returned in this call. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeInstanceTypesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceTypesResponseBody) SetInstanceTypes(v *DescribeInstanceTypesResponseBodyInstanceTypes) *DescribeInstanceTypesResponseBody { s.InstanceTypes = v return s } func (s *DescribeInstanceTypesResponseBody) SetNextToken(v string) *DescribeInstanceTypesResponseBody { s.NextToken = &v return s } func (s *DescribeInstanceTypesResponseBody) SetRequestId(v string) *DescribeInstanceTypesResponseBody { s.RequestId = &v return s } type DescribeInstanceTypesResponseBodyInstanceTypes struct { InstanceType []*DescribeInstanceTypesResponseBodyInstanceTypesInstanceType `json:"InstanceType,omitempty" xml:"InstanceType,omitempty" type:"Repeated"` } func (s DescribeInstanceTypesResponseBodyInstanceTypes) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesResponseBodyInstanceTypes) GoString() string { return s.String() } func (s *DescribeInstanceTypesResponseBodyInstanceTypes) SetInstanceType(v []*DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) *DescribeInstanceTypesResponseBodyInstanceTypes { s.InstanceType = v return s } type DescribeInstanceTypesResponseBodyInstanceTypesInstanceType struct { // The baseline vCPU computing performance (overall computing performance of all vCPUs) of the t5 or t6 burstable instance. BaselineCredit *int32 `json:"BaselineCredit,omitempty" xml:"BaselineCredit,omitempty"` // The CPU architecture. Valid values: // // * X86: x86 // * ARM: ARM CpuArchitecture *string `json:"CpuArchitecture,omitempty" xml:"CpuArchitecture,omitempty"` // The number of vCPUs. CpuCoreCount *int32 `json:"CpuCoreCount,omitempty" xml:"CpuCoreCount,omitempty"` // The CPU base frequency. Unit: GHz. CpuSpeedFrequency *float32 `json:"CpuSpeedFrequency,omitempty" xml:"CpuSpeedFrequency,omitempty"` // The CPU turbo frequency. Unit: GHz. CpuTurboFrequency *float32 `json:"CpuTurboFrequency,omitempty" xml:"CpuTurboFrequency,omitempty"` // The maximum number of cloud disks per instance. DiskQuantity *int32 `json:"DiskQuantity,omitempty" xml:"DiskQuantity,omitempty"` // The maximum number of IPv6 addresses per ENI. EniIpv6AddressQuantity *int32 `json:"EniIpv6AddressQuantity,omitempty" xml:"EniIpv6AddressQuantity,omitempty"` // The maximum number of IPv4 addresses per ENI. EniPrivateIpAddressQuantity *int32 `json:"EniPrivateIpAddressQuantity,omitempty" xml:"EniPrivateIpAddressQuantity,omitempty"` // The maximum number of ENIs. EniQuantity *int32 `json:"EniQuantity,omitempty" xml:"EniQuantity,omitempty"` // The maximum number of NICs, including the primary NIC, ENIs, and trunk NICs. // // > This parameter is in invitational preview and unavailable for general users. EniTotalQuantity *int32 `json:"EniTotalQuantity,omitempty" xml:"EniTotalQuantity,omitempty"` // Indicates whether NICs on instances of the instance type support trunking. // // > This parameter is in invitational preview and unavailable for general users. EniTrunkSupported *bool `json:"EniTrunkSupported,omitempty" xml:"EniTrunkSupported,omitempty"` // The number of ERIs. // // > This parameter is in invitational preview and unavailable for general users. EriQuantity *int32 `json:"EriQuantity,omitempty" xml:"EriQuantity,omitempty"` // The number of GPUs. GPUAmount *int32 `json:"GPUAmount,omitempty" xml:"GPUAmount,omitempty"` // The amount of GPU memory per GPU. Unit: GiB. GPUMemorySize *float32 `json:"GPUMemorySize,omitempty" xml:"GPUMemorySize,omitempty"` // The GPU model. GPUSpec *string `json:"GPUSpec,omitempty" xml:"GPUSpec,omitempty"` // The initial vCPU credits of a t5 or t6 burstable instance. InitialCredit *int32 `json:"InitialCredit,omitempty" xml:"InitialCredit,omitempty"` // The maximum inbound internal bandwidth. Unit: Kbit/s. InstanceBandwidthRx *int32 `json:"InstanceBandwidthRx,omitempty" xml:"InstanceBandwidthRx,omitempty"` // The maximum outbound internal bandwidth. Unit: Kbit/s. InstanceBandwidthTx *int32 `json:"InstanceBandwidthTx,omitempty" xml:"InstanceBandwidthTx,omitempty"` // The category of the instance type. Valid values: // // * General-purpose: general-purpose instance type // * Compute-optimized: compute-optimized instance type // * Memory-optimized: memory-optimized instance type // * Big data: big data instance type // * Local SSDs: instance type with local SSDs // * High Clock Speed: instance type with high clock speeds // * Enhanced: enhanced instance type // * Shared: shared instance type // * Compute-optimized with GPU: GPU-accelerated compute-optimized instance type // * Visual Compute-optimized: visual compute-optimized instance type // * Heterogeneous Service: heterogeneous service instance type // * Compute-optimized with FPGA: FPGA-accelerated compute-optimized instance type // * Compute-optimized with NPU: NPU-accelerated compute-optimized instance type // * ECS Bare Metal: ECS Bare Metal Instance type // * Super Computing Cluster: SCC instance type // - High Performance Compute. // - Cloud Physical Server. InstanceCategory *string `json:"InstanceCategory,omitempty" xml:"InstanceCategory,omitempty"` // The level of the instance family. Valid values: // // * EntryLevel: entry level (shared). // * EnterpriseLevel: enterprise level. // * CreditEntryLevel: credit-based entry level. For more information about instance families of this level, see [Overview](~~59977~~). InstanceFamilyLevel *string `json:"InstanceFamilyLevel,omitempty" xml:"InstanceFamilyLevel,omitempty"` // The inbound packet forwarding rate of the internal network. Unit: pps. InstancePpsRx *int64 `json:"InstancePpsRx,omitempty" xml:"InstancePpsRx,omitempty"` // The outbound packet forwarding rate over the internal network. Unit: pps. InstancePpsTx *int64 `json:"InstancePpsTx,omitempty" xml:"InstancePpsTx,omitempty"` // The instance family. InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // The ID of the instance type. InstanceTypeId *string `json:"InstanceTypeId,omitempty" xml:"InstanceTypeId,omitempty"` // The number of local disks per instance. LocalStorageAmount *int32 `json:"LocalStorageAmount,omitempty" xml:"LocalStorageAmount,omitempty"` // The capacity of each local disk. Unit: GiB. LocalStorageCapacity *int64 `json:"LocalStorageCapacity,omitempty" xml:"LocalStorageCapacity,omitempty"` // The category of local disks. For more information, see [Local disks](~~63138~~). Valid values: // // * local_hdd_pro: local SATA HDDs, which are used by d1ne or d1 instances // * local_ssd_pro: local NVMe SSDs, which are used by i2, i2g, i1, ga1, or gn5 instances LocalStorageCategory *string `json:"LocalStorageCategory,omitempty" xml:"LocalStorageCategory,omitempty"` // The maximum number of queues per ENI (including primary and secondary ENIs). MaximumQueueNumberPerEni *int32 `json:"MaximumQueueNumberPerEni,omitempty" xml:"MaximumQueueNumberPerEni,omitempty"` // The memory size. Unit: GiB. MemorySize *float32 `json:"MemorySize,omitempty" xml:"MemorySize,omitempty"` // The maximum number of network cards that the instance type supports. NetworkCardQuantity *int32 `json:"NetworkCardQuantity,omitempty" xml:"NetworkCardQuantity,omitempty"` // Details about the network cards. NetworkCards *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCards `json:"NetworkCards,omitempty" xml:"NetworkCards,omitempty" type:"Struct"` // Indicates whether to allow network traffic transmitted over virtual private clouds (VPCs) to be encrypted. Valid values: // // * true: allows network traffic transmitted over VPCs to be encrypted. // * false: does not allow network traffic transmitted over VPCs to be encrypted. NetworkEncryptionSupport *bool `json:"NetworkEncryptionSupport,omitempty" xml:"NetworkEncryptionSupport,omitempty"` // Indicates whether the cloud disk can be attached by using the NVMe protocol. Valid values: // // * required: The cloud disk can be attached by using the NVMe protocol. // * unsupported: The cloud disk cannot be attached by using the NVMe protocol. NvmeSupport *string `json:"NvmeSupport,omitempty" xml:"NvmeSupport,omitempty"` // The CPU model. PhysicalProcessorModel *string `json:"PhysicalProcessorModel,omitempty" xml:"PhysicalProcessorModel,omitempty"` // The default number of queues per primary NIC. PrimaryEniQueueNumber *int32 `json:"PrimaryEniQueueNumber,omitempty" xml:"PrimaryEniQueueNumber,omitempty"` // The maximum number of QP queues per ERI. QueuePairNumber *int32 `json:"QueuePairNumber,omitempty" xml:"QueuePairNumber,omitempty"` // The default number of queues supported by the secondary ENI. SecondaryEniQueueNumber *int32 `json:"SecondaryEniQueueNumber,omitempty" xml:"SecondaryEniQueueNumber,omitempty"` SupportedBootModes *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes `json:"SupportedBootModes,omitempty" xml:"SupportedBootModes,omitempty" type:"Struct"` // The maximum number of queues on ENIs that the instance type supports. TotalEniQueueQuantity *int32 `json:"TotalEniQueueQuantity,omitempty" xml:"TotalEniQueueQuantity,omitempty"` } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) GoString() string { return s.String() } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetBaselineCredit(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.BaselineCredit = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetCpuArchitecture(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.CpuArchitecture = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetCpuCoreCount(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.CpuCoreCount = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetCpuSpeedFrequency(v float32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.CpuSpeedFrequency = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetCpuTurboFrequency(v float32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.CpuTurboFrequency = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetDiskQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.DiskQuantity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetEniIpv6AddressQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.EniIpv6AddressQuantity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetEniPrivateIpAddressQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.EniPrivateIpAddressQuantity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetEniQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.EniQuantity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetEniTotalQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.EniTotalQuantity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetEniTrunkSupported(v bool) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.EniTrunkSupported = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetEriQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.EriQuantity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetGPUAmount(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.GPUAmount = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetGPUMemorySize(v float32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.GPUMemorySize = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetGPUSpec(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.GPUSpec = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInitialCredit(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InitialCredit = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceBandwidthRx(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceBandwidthRx = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceBandwidthTx(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceBandwidthTx = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceCategory(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceCategory = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceFamilyLevel(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceFamilyLevel = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstancePpsRx(v int64) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstancePpsRx = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstancePpsTx(v int64) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstancePpsTx = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceTypeFamily(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceTypeFamily = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetInstanceTypeId(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.InstanceTypeId = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetLocalStorageAmount(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.LocalStorageAmount = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetLocalStorageCapacity(v int64) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.LocalStorageCapacity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetLocalStorageCategory(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.LocalStorageCategory = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetMaximumQueueNumberPerEni(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.MaximumQueueNumberPerEni = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetMemorySize(v float32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.MemorySize = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetNetworkCardQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.NetworkCardQuantity = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetNetworkCards(v *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCards) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.NetworkCards = v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetNetworkEncryptionSupport(v bool) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.NetworkEncryptionSupport = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetNvmeSupport(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.NvmeSupport = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetPhysicalProcessorModel(v string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.PhysicalProcessorModel = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetPrimaryEniQueueNumber(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.PrimaryEniQueueNumber = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetQueuePairNumber(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.QueuePairNumber = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetSecondaryEniQueueNumber(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.SecondaryEniQueueNumber = &v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetSupportedBootModes(v *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.SupportedBootModes = v return s } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType) SetTotalEniQueueQuantity(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceType { s.TotalEniQueueQuantity = &v return s } type DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCards struct { NetworkCardInfo []*DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo `json:"NetworkCardInfo,omitempty" xml:"NetworkCardInfo,omitempty" type:"Repeated"` } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCards) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCards) GoString() string { return s.String() } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCards) SetNetworkCardInfo(v []*DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCards { s.NetworkCardInfo = v return s } type DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo struct { // The index of the network card. NetworkCardIndex *int32 `json:"NetworkCardIndex,omitempty" xml:"NetworkCardIndex,omitempty"` } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo) GoString() string { return s.String() } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo) SetNetworkCardIndex(v int32) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeNetworkCardsNetworkCardInfo { s.NetworkCardIndex = &v return s } type DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes struct { SupportedBootMode []*string `json:"SupportedBootMode,omitempty" xml:"SupportedBootMode,omitempty" type:"Repeated"` } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes) GoString() string { return s.String() } func (s *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes) SetSupportedBootMode(v []*string) *DescribeInstanceTypesResponseBodyInstanceTypesInstanceTypeSupportedBootModes { s.SupportedBootMode = v return s } type DescribeInstanceTypesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceTypesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceTypesResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceTypesResponse) GoString() string { return s.String() } func (s *DescribeInstanceTypesResponse) SetHeaders(v map[string]*string) *DescribeInstanceTypesResponse { s.Headers = v return s } func (s *DescribeInstanceTypesResponse) SetStatusCode(v int32) *DescribeInstanceTypesResponse { s.StatusCode = &v return s } func (s *DescribeInstanceTypesResponse) SetBody(v *DescribeInstanceTypesResponseBody) *DescribeInstanceTypesResponse { s.Body = v return s } type DescribeInstanceVncUrlRequest struct { // The ID of the instance InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeInstanceVncUrlRequest) String() string { return tea.Prettify(s) } func (s DescribeInstanceVncUrlRequest) GoString() string { return s.String() } func (s *DescribeInstanceVncUrlRequest) SetInstanceId(v string) *DescribeInstanceVncUrlRequest { s.InstanceId = &v return s } func (s *DescribeInstanceVncUrlRequest) SetOwnerAccount(v string) *DescribeInstanceVncUrlRequest { s.OwnerAccount = &v return s } func (s *DescribeInstanceVncUrlRequest) SetOwnerId(v int64) *DescribeInstanceVncUrlRequest { s.OwnerId = &v return s } func (s *DescribeInstanceVncUrlRequest) SetRegionId(v string) *DescribeInstanceVncUrlRequest { s.RegionId = &v return s } func (s *DescribeInstanceVncUrlRequest) SetResourceOwnerAccount(v string) *DescribeInstanceVncUrlRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstanceVncUrlRequest) SetResourceOwnerId(v int64) *DescribeInstanceVncUrlRequest { s.ResourceOwnerId = &v return s } type DescribeInstanceVncUrlResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The VNC logon address. // // > **The address returned is valid only for 15 seconds. If a connection is not established within 15 seconds after a successful call, the address expires and you must recall the operation to obtain a new address. VncUrl *string `json:"VncUrl,omitempty" xml:"VncUrl,omitempty"` } func (s DescribeInstanceVncUrlResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstanceVncUrlResponseBody) GoString() string { return s.String() } func (s *DescribeInstanceVncUrlResponseBody) SetRequestId(v string) *DescribeInstanceVncUrlResponseBody { s.RequestId = &v return s } func (s *DescribeInstanceVncUrlResponseBody) SetVncUrl(v string) *DescribeInstanceVncUrlResponseBody { s.VncUrl = &v return s } type DescribeInstanceVncUrlResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstanceVncUrlResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstanceVncUrlResponse) String() string { return tea.Prettify(s) } func (s DescribeInstanceVncUrlResponse) GoString() string { return s.String() } func (s *DescribeInstanceVncUrlResponse) SetHeaders(v map[string]*string) *DescribeInstanceVncUrlResponse { s.Headers = v return s } func (s *DescribeInstanceVncUrlResponse) SetStatusCode(v int32) *DescribeInstanceVncUrlResponse { s.StatusCode = &v return s } func (s *DescribeInstanceVncUrlResponse) SetBody(v *DescribeInstanceVncUrlResponseBody) *DescribeInstanceVncUrlResponse { s.Body = v return s } type DescribeInstancesRequest struct { Filter []*DescribeInstancesRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` // The value of attribute N. Valid values of N: 1 to 20. AdditionalAttributes []*string `json:"AdditionalAttributes,omitempty" xml:"AdditionalAttributes,omitempty" type:"Repeated"` // > This parameter is currently in invitational preview and unavailable for general users. DeviceAvailable *bool `json:"DeviceAvailable,omitempty" xml:"DeviceAvailable,omitempty"` // Specifies whether to check the validity of the request without actually making the request. Default value: false. Valid values: // // * true: The validity of the request is checked but the request is not made. Check items include whether your AccessKey pair is valid, whether RAM users are granted required permissions, and whether the required parameters are specified. If the check fails, the corresponding error is returned. If the check succeeds, the DryRunOperation error code is returned. // * false: The validity of the request is checked. If the check succeeds, a 2XX HTTP status code is returned and the request is made. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // The elastic IP addresses (EIPs) of instances. This parameter is valid when InstanceNetworkType is set to vpc. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). EipAddresses *string `json:"EipAddresses,omitempty" xml:"EipAddresses,omitempty"` // The ID of the High Performance Computing (HPC) cluster to which the instance belongs. HpcClusterId *string `json:"HpcClusterId,omitempty" xml:"HpcClusterId,omitempty"` // Specifies whether the access channel is enabled for instance metadata. Valid values: // // * enabled // * disabled // // Default value: enabled. // // > For more information about instance metadata, see [Overview of ECS instance metadata](~~49122~~). HttpEndpoint *string `json:"HttpEndpoint,omitempty" xml:"HttpEndpoint,omitempty"` // > This parameter is currently in invitational preview and unavailable for general users. HttpPutResponseHopLimit *int32 `json:"HttpPutResponseHopLimit,omitempty" xml:"HttpPutResponseHopLimit,omitempty"` // Specifies whether the security hardening mode (IMDSv2) is forcefully used to access instance metadata. Valid values: // // * optional: The security hardening mode (IMDSv2) is not forcefully used. // * required: The security hardening mode (IMDSv2) is forcefully used. After you set this parameter to required, you cannot access instance metadata in normal mode. // // Default value: optional. // // > For more information about modes of accessing instance metadata, see [Access mode of instance metadata](~~150575~~). HttpTokens *string `json:"HttpTokens,omitempty" xml:"HttpTokens,omitempty"` // The ID of the image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The internal IP addresses of instances located in the classic network. This parameter is valid when InstanceNetworkType is set to classic. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). InnerIpAddresses *string `json:"InnerIpAddresses,omitempty" xml:"InnerIpAddresses,omitempty"` // The billing method of the instance. Valid values: // // * PostPaid: pay-as-you-go // * PrePaid: subscription InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The IDs of instances. The value can be a JSON array that consists of up to 100 instance IDs. Separate the IDs with commas (,). InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` // The name of the instance. Fuzzy search with the asterisk (\*) wildcard characters is supported. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The network type of the instance. Valid values: // // * classic: classic network // * vpc: VPC InstanceNetworkType *string `json:"InstanceNetworkType,omitempty" xml:"InstanceNetworkType,omitempty"` // The instance type of the instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The instance family of the instance. InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // The billing method for network usage. Valid values: // // * PayByBandwidth: pay-by-bandwidth // * PayByTraffic: pay-by-traffic // // > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidth values are used as upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instances, use the **pay-by-bandwidth** billing method for network usage. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // Specifies whether the instance is I/O optimized. IoOptimized *bool `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // IPv6 address N of the elastic network interface (ENI). You can specify multiple IPv6 addresses. Valid values of N: 1 to 100. Ipv6Address []*string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty" type:"Repeated"` // The name of the SSH key pair bound to the instance. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The reason why the instance is locked. Valid values: // // * financial: The instance is locked due to overdue payments. // * security: The instance is locked due to security reasons. // * recycling: The preemptible instance is locked and pending release. // * dedicatedhostfinancial: The instance is locked due to overdue payments for the dedicated host. // * refunded: The instance is locked because a refund is made for the instance. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` // The maximum number of entries to return on each page. Maximum value: 100. // // Default value: // // * If this parameter is not specified or is set to a value smaller than 10, the default value is 10. // * If this parameter is set to a value greater than 100, the default value is 100. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // > This parameter is currently in invitational preview and unavailable for general users. NeedSaleCycle *bool `json:"NeedSaleCycle,omitempty" xml:"NeedSaleCycle,omitempty"` // The query token. Set the value to the `NextToken` value returned in the last call to the DescribeInstances operation. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The private IP addresses of instances located in VPCs. This parameter is valid when InstanceNetworkType is set to vpc. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). PrivateIpAddresses *string `json:"PrivateIpAddresses,omitempty" xml:"PrivateIpAddresses,omitempty"` // The public IP addresses of instances. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). PublicIpAddresses *string `json:"PublicIpAddresses,omitempty" xml:"PublicIpAddresses,omitempty"` // The Remote Direct Memory Access (RDMA) IP address of the HPC instance. RdmaIpAddresses *string `json:"RdmaIpAddresses,omitempty" xml:"RdmaIpAddresses,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the instance belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the security group to which the instance belongs. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The state of the instance. Valid values: // // * Pending: The instance is being created. // * Running: The instance is running. // * Starting: The instance is being started. // * Stopping: The instance is being stopped. // * Stopped: The instance is stopped. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags. Tag []*DescribeInstancesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the vSwitch to which the instance is connected. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the virtual private cloud (VPC) to which the instance belongs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` // The zone ID of the instance. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeInstancesRequest) String() string { return tea.Prettify(s) } func (s DescribeInstancesRequest) GoString() string { return s.String() } func (s *DescribeInstancesRequest) SetFilter(v []*DescribeInstancesRequestFilter) *DescribeInstancesRequest { s.Filter = v return s } func (s *DescribeInstancesRequest) SetAdditionalAttributes(v []*string) *DescribeInstancesRequest { s.AdditionalAttributes = v return s } func (s *DescribeInstancesRequest) SetDeviceAvailable(v bool) *DescribeInstancesRequest { s.DeviceAvailable = &v return s } func (s *DescribeInstancesRequest) SetDryRun(v bool) *DescribeInstancesRequest { s.DryRun = &v return s } func (s *DescribeInstancesRequest) SetEipAddresses(v string) *DescribeInstancesRequest { s.EipAddresses = &v return s } func (s *DescribeInstancesRequest) SetHpcClusterId(v string) *DescribeInstancesRequest { s.HpcClusterId = &v return s } func (s *DescribeInstancesRequest) SetHttpEndpoint(v string) *DescribeInstancesRequest { s.HttpEndpoint = &v return s } func (s *DescribeInstancesRequest) SetHttpPutResponseHopLimit(v int32) *DescribeInstancesRequest { s.HttpPutResponseHopLimit = &v return s } func (s *DescribeInstancesRequest) SetHttpTokens(v string) *DescribeInstancesRequest { s.HttpTokens = &v return s } func (s *DescribeInstancesRequest) SetImageId(v string) *DescribeInstancesRequest { s.ImageId = &v return s } func (s *DescribeInstancesRequest) SetInnerIpAddresses(v string) *DescribeInstancesRequest { s.InnerIpAddresses = &v return s } func (s *DescribeInstancesRequest) SetInstanceChargeType(v string) *DescribeInstancesRequest { s.InstanceChargeType = &v return s } func (s *DescribeInstancesRequest) SetInstanceIds(v string) *DescribeInstancesRequest { s.InstanceIds = &v return s } func (s *DescribeInstancesRequest) SetInstanceName(v string) *DescribeInstancesRequest { s.InstanceName = &v return s } func (s *DescribeInstancesRequest) SetInstanceNetworkType(v string) *DescribeInstancesRequest { s.InstanceNetworkType = &v return s } func (s *DescribeInstancesRequest) SetInstanceType(v string) *DescribeInstancesRequest { s.InstanceType = &v return s } func (s *DescribeInstancesRequest) SetInstanceTypeFamily(v string) *DescribeInstancesRequest { s.InstanceTypeFamily = &v return s } func (s *DescribeInstancesRequest) SetInternetChargeType(v string) *DescribeInstancesRequest { s.InternetChargeType = &v return s } func (s *DescribeInstancesRequest) SetIoOptimized(v bool) *DescribeInstancesRequest { s.IoOptimized = &v return s } func (s *DescribeInstancesRequest) SetIpv6Address(v []*string) *DescribeInstancesRequest { s.Ipv6Address = v return s } func (s *DescribeInstancesRequest) SetKeyPairName(v string) *DescribeInstancesRequest { s.KeyPairName = &v return s } func (s *DescribeInstancesRequest) SetLockReason(v string) *DescribeInstancesRequest { s.LockReason = &v return s } func (s *DescribeInstancesRequest) SetMaxResults(v int32) *DescribeInstancesRequest { s.MaxResults = &v return s } func (s *DescribeInstancesRequest) SetNeedSaleCycle(v bool) *DescribeInstancesRequest { s.NeedSaleCycle = &v return s } func (s *DescribeInstancesRequest) SetNextToken(v string) *DescribeInstancesRequest { s.NextToken = &v return s } func (s *DescribeInstancesRequest) SetOwnerAccount(v string) *DescribeInstancesRequest { s.OwnerAccount = &v return s } func (s *DescribeInstancesRequest) SetOwnerId(v int64) *DescribeInstancesRequest { s.OwnerId = &v return s } func (s *DescribeInstancesRequest) SetPageNumber(v int32) *DescribeInstancesRequest { s.PageNumber = &v return s } func (s *DescribeInstancesRequest) SetPageSize(v int32) *DescribeInstancesRequest { s.PageSize = &v return s } func (s *DescribeInstancesRequest) SetPrivateIpAddresses(v string) *DescribeInstancesRequest { s.PrivateIpAddresses = &v return s } func (s *DescribeInstancesRequest) SetPublicIpAddresses(v string) *DescribeInstancesRequest { s.PublicIpAddresses = &v return s } func (s *DescribeInstancesRequest) SetRdmaIpAddresses(v string) *DescribeInstancesRequest { s.RdmaIpAddresses = &v return s } func (s *DescribeInstancesRequest) SetRegionId(v string) *DescribeInstancesRequest { s.RegionId = &v return s } func (s *DescribeInstancesRequest) SetResourceGroupId(v string) *DescribeInstancesRequest { s.ResourceGroupId = &v return s } func (s *DescribeInstancesRequest) SetResourceOwnerAccount(v string) *DescribeInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstancesRequest) SetResourceOwnerId(v int64) *DescribeInstancesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeInstancesRequest) SetSecurityGroupId(v string) *DescribeInstancesRequest { s.SecurityGroupId = &v return s } func (s *DescribeInstancesRequest) SetStatus(v string) *DescribeInstancesRequest { s.Status = &v return s } func (s *DescribeInstancesRequest) SetTag(v []*DescribeInstancesRequestTag) *DescribeInstancesRequest { s.Tag = v return s } func (s *DescribeInstancesRequest) SetVSwitchId(v string) *DescribeInstancesRequest { s.VSwitchId = &v return s } func (s *DescribeInstancesRequest) SetVpcId(v string) *DescribeInstancesRequest { s.VpcId = &v return s } func (s *DescribeInstancesRequest) SetZoneId(v string) *DescribeInstancesRequest { s.ZoneId = &v return s } type DescribeInstancesRequestFilter struct { // The key of filter 1 used to query resources. Set the value to `CreationStartTime`. You can specify a time by setting both `Filter.1.Key` and `Filter.1.Value` to query resources that were created after the time. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of filter 1 used to query resources. Set the value to a time. If you specify this parameter, you must also specify the `Filter.1.Key` parameter. Specify the time in the `yyyy-MM-ddTHH:mmZ` format. The time must be in UTC. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeInstancesRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeInstancesRequestFilter) GoString() string { return s.String() } func (s *DescribeInstancesRequestFilter) SetKey(v string) *DescribeInstancesRequestFilter { s.Key = &v return s } func (s *DescribeInstancesRequestFilter) SetValue(v string) *DescribeInstancesRequestFilter { s.Value = &v return s } type DescribeInstancesRequestTag struct { // The key of tag N of the instance. Valid values of N: 1 to 20. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the instance. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeInstancesRequestTag) String() string { return tea.Prettify(s) } func (s DescribeInstancesRequestTag) GoString() string { return s.String() } func (s *DescribeInstancesRequestTag) SetKey(v string) *DescribeInstancesRequestTag { s.Key = &v return s } func (s *DescribeInstancesRequestTag) SetValue(v string) *DescribeInstancesRequestTag { s.Value = &v return s } type DescribeInstancesResponseBody struct { // Details about the instances. Instances *DescribeInstancesResponseBodyInstances `json:"Instances,omitempty" xml:"Instances,omitempty" type:"Struct"` // The query token returned in this call. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of instances returned. // // > If you specify the `MaxResults` and `NextToken` parameters to perform a paged query, the value of the `TotalCount` response parameter is invalid. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBody) GoString() string { return s.String() } func (s *DescribeInstancesResponseBody) SetInstances(v *DescribeInstancesResponseBodyInstances) *DescribeInstancesResponseBody { s.Instances = v return s } func (s *DescribeInstancesResponseBody) SetNextToken(v string) *DescribeInstancesResponseBody { s.NextToken = &v return s } func (s *DescribeInstancesResponseBody) SetPageNumber(v int32) *DescribeInstancesResponseBody { s.PageNumber = &v return s } func (s *DescribeInstancesResponseBody) SetPageSize(v int32) *DescribeInstancesResponseBody { s.PageSize = &v return s } func (s *DescribeInstancesResponseBody) SetRequestId(v string) *DescribeInstancesResponseBody { s.RequestId = &v return s } func (s *DescribeInstancesResponseBody) SetTotalCount(v int32) *DescribeInstancesResponseBody { s.TotalCount = &v return s } type DescribeInstancesResponseBodyInstances struct { Instance []*DescribeInstancesResponseBodyInstancesInstance `json:"Instance,omitempty" xml:"Instance,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstances) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstances) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstances) SetInstance(v []*DescribeInstancesResponseBodyInstancesInstance) *DescribeInstancesResponseBodyInstances { s.Instance = v return s } type DescribeInstancesResponseBodyInstancesInstance struct { // The time when to automatically release the pay-as-you-go instance. AutoReleaseTime *string `json:"AutoReleaseTime,omitempty" xml:"AutoReleaseTime,omitempty"` // The ID of the cluster to which the instance belongs. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. ClusterId *string `json:"ClusterId,omitempty" xml:"ClusterId,omitempty"` // The number of vCPUs. Cpu *int32 `json:"Cpu,omitempty" xml:"Cpu,omitempty"` // Details about the CPU options. CpuOptions *DescribeInstancesResponseBodyInstancesInstanceCpuOptions `json:"CpuOptions,omitempty" xml:"CpuOptions,omitempty" type:"Struct"` // The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. For more information, see [ISO 8601](~~25696~~). CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The performance mode of the burstable instance. Valid values: // // * Standard: standard mode. For more information, see the "Standard mode" section in [Overview](~~59977~~). // * Unlimited: unlimited mode. For more information, see the "Unlimited mode" section in [Overview](~~59977~~). CreditSpecification *string `json:"CreditSpecification,omitempty" xml:"CreditSpecification,omitempty"` // Details about the dedicated host. It is an array that consists of the DedicatedHostClusterId, DedicatedHostId, and DedicatedHostName parameters. DedicatedHostAttribute *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute `json:"DedicatedHostAttribute,omitempty" xml:"DedicatedHostAttribute,omitempty" type:"Struct"` // The attributes of the instance on the dedicated host. DedicatedInstanceAttribute *DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute `json:"DedicatedInstanceAttribute,omitempty" xml:"DedicatedInstanceAttribute,omitempty" type:"Struct"` // The release protection attribute of the instance. This parameter indicates whether you can use the ECS console or call the DeleteInstance operation to release the instance. // // * true: Release protection is enabled for the instance. // * false: Release protection is disabled for the instance. // // > This parameter is applicable only to pay-as-you-go instances. It can protect instances against manual releases, but not against automatic releases. DeletionProtection *bool `json:"DeletionProtection,omitempty" xml:"DeletionProtection,omitempty"` // The number of the deployment set group to which the instance belongs in a deployment set. DeploymentSetGroupNo *int32 `json:"DeploymentSetGroupNo,omitempty" xml:"DeploymentSetGroupNo,omitempty"` // The ID of the deployment set in which the instance is deployed. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` // The description of the instance. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Indicates whether data disks can be attached to the instance. DeviceAvailable *bool `json:"DeviceAvailable,omitempty" xml:"DeviceAvailable,omitempty"` // Details about the capacity reservation related to the instance. EcsCapacityReservationAttr *DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr `json:"EcsCapacityReservationAttr,omitempty" xml:"EcsCapacityReservationAttr,omitempty" type:"Struct"` // Details about the EIP associated with the instance. EipAddress *DescribeInstancesResponseBodyInstancesInstanceEipAddress `json:"EipAddress,omitempty" xml:"EipAddress,omitempty" type:"Struct"` // The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. For more information, see [ISO 8601](~~25696~~). ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` // The number of GPUs for the instance type. GPUAmount *int32 `json:"GPUAmount,omitempty" xml:"GPUAmount,omitempty"` // The category of GPUs for the instance type. GPUSpec *string `json:"GPUSpec,omitempty" xml:"GPUSpec,omitempty"` // > This parameter is in invitational preview and is unavailable for general users. HibernationOptions *DescribeInstancesResponseBodyInstancesInstanceHibernationOptions `json:"HibernationOptions,omitempty" xml:"HibernationOptions,omitempty" type:"Struct"` // The hostname of the instance. HostName *string `json:"HostName,omitempty" xml:"HostName,omitempty"` // The ID of the HPC cluster to which the instance belongs. HpcClusterId *string `json:"HpcClusterId,omitempty" xml:"HpcClusterId,omitempty"` // > This parameter is in invitational preview and is unavailable for general users. ISP *string `json:"ISP,omitempty" xml:"ISP,omitempty"` // The ID of the image that the instance is running. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // Details about the image options. ImageOptions *DescribeInstancesResponseBodyInstancesInstanceImageOptions `json:"ImageOptions,omitempty" xml:"ImageOptions,omitempty" type:"Struct"` // The internal IP addresses of the instance located in the classic network. InnerIpAddress *DescribeInstancesResponseBodyInstancesInstanceInnerIpAddress `json:"InnerIpAddress,omitempty" xml:"InnerIpAddress,omitempty" type:"Struct"` // The billing method of the instance. Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the instance. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The network type of the instance. Valid values: // // * classic // * vpc InstanceNetworkType *string `json:"InstanceNetworkType,omitempty" xml:"InstanceNetworkType,omitempty"` // The instance type of the instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The instance family of the instance. InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // The billing method for network usage. Valid values: // // * PayByBandwidth: pay-by-bandwidth // * PayByTraffic: pay-by-traffic InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum inbound public bandwidth. Unit: Mbit/s. InternetMaxBandwidthIn *int32 `json:"InternetMaxBandwidthIn,omitempty" xml:"InternetMaxBandwidthIn,omitempty"` // The maximum outbound public bandwidth. Unit: Mbit/s. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Indicates whether the instance is I/O optimized. IoOptimized *bool `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The name of the key pair bound to the instance. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The number of local disks attached to the instance. LocalStorageAmount *int32 `json:"LocalStorageAmount,omitempty" xml:"LocalStorageAmount,omitempty"` // The capacity of local disks attached to the instance. LocalStorageCapacity *int64 `json:"LocalStorageCapacity,omitempty" xml:"LocalStorageCapacity,omitempty"` // The memory size of the instance. Unit: MiB. Memory *int32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // Details about the metadata options. MetadataOptions *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions `json:"MetadataOptions,omitempty" xml:"MetadataOptions,omitempty" type:"Struct"` // Details about the ENIs bound to the instance. NetworkInterfaces *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfaces `json:"NetworkInterfaces,omitempty" xml:"NetworkInterfaces,omitempty" type:"Struct"` // The name of the operating system of the instance. OSName *string `json:"OSName,omitempty" xml:"OSName,omitempty"` // The English name of the operating system of the instance. OSNameEn *string `json:"OSNameEn,omitempty" xml:"OSNameEn,omitempty"` // The type of the operating system of the instance. Valid values: // // * windows // * linux OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` // The reasons why the instance was locked. OperationLocks *DescribeInstancesResponseBodyInstancesInstanceOperationLocks `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty" type:"Struct"` // The public IP addresses of the instance. PublicIpAddress *DescribeInstancesResponseBodyInstancesInstancePublicIpAddress `json:"PublicIpAddress,omitempty" xml:"PublicIpAddress,omitempty" type:"Struct"` // The RDMA IP addresses of the HPC instance. RdmaIpAddress *DescribeInstancesResponseBodyInstancesInstanceRdmaIpAddress `json:"RdmaIpAddress,omitempty" xml:"RdmaIpAddress,omitempty" type:"Struct"` // Indicates whether the instance can be recycled. Recyclable *bool `json:"Recyclable,omitempty" xml:"Recyclable,omitempty"` // The region ID of the instance. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the instance belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // > The parameter is discontinued. SaleCycle *string `json:"SaleCycle,omitempty" xml:"SaleCycle,omitempty"` // The IDs of the security groups to which the instance belongs. SecurityGroupIds *DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Struct"` // The serial number of the instance. SerialNumber *string `json:"SerialNumber,omitempty" xml:"SerialNumber,omitempty"` // The protection period of the preemptible instance. Unit: hours. Valid values: 0, 1, 2, 3, 4, 5, and 6. // // * Protection periods of 2, 3, 4, 5, and 6 hours are in invitational preview. If you want to set this parameter to one of these values, submit a ticket. // * A value of 0 indicates that the preemptible instance has no protection period. // // > This parameter is returned when the SpotStrategy parameter is set to SpotWithPriceLimit or SpotAsPriceGo. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The interruption mode of the preemptible instance when the system initiates a preemptible instance interruption operation. Valid values: // // - Terminate: releases the instance. // // - Stop: stops the instance in economical mode. SpotInterruptionBehavior *string `json:"SpotInterruptionBehavior,omitempty" xml:"SpotInterruptionBehavior,omitempty"` // The maximum hourly price of the instance. It can be accurate to three decimal places. This parameter is valid only when the SpotStrategy parameter is set to SpotWithPriceLimit. SpotPriceLimit *float32 `json:"SpotPriceLimit,omitempty" xml:"SpotPriceLimit,omitempty"` // The bidding policy for the pay-as-you-go instance. Valid values: // // * NoSpot: The instance is a regular pay-as-you-go instance. // * SpotWithPriceLimit: The instance is a preemptible instance with a user-defined maximum hourly price. // * SpotAsPriceGo: The instance is a preemptible instance for which the market price is automatically used as the bid price. The market price can be up to the pay-as-you-go price. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The time when the instance was last started. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. For more information, see [ISO 8601](~~25696~~). StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The state of the instance. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // Indicates whether the instance continues to be billed after it is stopped. Valid values: // // * KeepCharging: The instance is stopped in standard mode. The billing of the instance continues after the instance is stopped, and resources are retained for the instance. // * StopCharging: The instance is stopped in economical mode. The billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. The instance may be unable to start again if some required resources are out of stock in the current region. // * Not-applicable: The instance does not support economical mode. StoppedMode *string `json:"StoppedMode,omitempty" xml:"StoppedMode,omitempty"` // The tags of the instance. Tags *DescribeInstancesResponseBodyInstancesInstanceTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The virtual LAN (VLAN) ID of the instance. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. VlanId *string `json:"VlanId,omitempty" xml:"VlanId,omitempty"` // The VPC attributes of the instance. VpcAttributes *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes `json:"VpcAttributes,omitempty" xml:"VpcAttributes,omitempty" type:"Struct"` // The zone ID of the instance. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstance) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstance) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstance) SetAutoReleaseTime(v string) *DescribeInstancesResponseBodyInstancesInstance { s.AutoReleaseTime = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetClusterId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.ClusterId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetCpu(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.Cpu = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetCpuOptions(v *DescribeInstancesResponseBodyInstancesInstanceCpuOptions) *DescribeInstancesResponseBodyInstancesInstance { s.CpuOptions = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetCreationTime(v string) *DescribeInstancesResponseBodyInstancesInstance { s.CreationTime = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetCreditSpecification(v string) *DescribeInstancesResponseBodyInstancesInstance { s.CreditSpecification = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetDedicatedHostAttribute(v *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute) *DescribeInstancesResponseBodyInstancesInstance { s.DedicatedHostAttribute = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetDedicatedInstanceAttribute(v *DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute) *DescribeInstancesResponseBodyInstancesInstance { s.DedicatedInstanceAttribute = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetDeletionProtection(v bool) *DescribeInstancesResponseBodyInstancesInstance { s.DeletionProtection = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetDeploymentSetGroupNo(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.DeploymentSetGroupNo = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetDeploymentSetId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.DeploymentSetId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetDescription(v string) *DescribeInstancesResponseBodyInstancesInstance { s.Description = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetDeviceAvailable(v bool) *DescribeInstancesResponseBodyInstancesInstance { s.DeviceAvailable = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetEcsCapacityReservationAttr(v *DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr) *DescribeInstancesResponseBodyInstancesInstance { s.EcsCapacityReservationAttr = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetEipAddress(v *DescribeInstancesResponseBodyInstancesInstanceEipAddress) *DescribeInstancesResponseBodyInstancesInstance { s.EipAddress = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetExpiredTime(v string) *DescribeInstancesResponseBodyInstancesInstance { s.ExpiredTime = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetGPUAmount(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.GPUAmount = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetGPUSpec(v string) *DescribeInstancesResponseBodyInstancesInstance { s.GPUSpec = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetHibernationOptions(v *DescribeInstancesResponseBodyInstancesInstanceHibernationOptions) *DescribeInstancesResponseBodyInstancesInstance { s.HibernationOptions = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetHostName(v string) *DescribeInstancesResponseBodyInstancesInstance { s.HostName = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetHpcClusterId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.HpcClusterId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetISP(v string) *DescribeInstancesResponseBodyInstancesInstance { s.ISP = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetImageId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.ImageId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetImageOptions(v *DescribeInstancesResponseBodyInstancesInstanceImageOptions) *DescribeInstancesResponseBodyInstancesInstance { s.ImageOptions = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInnerIpAddress(v *DescribeInstancesResponseBodyInstancesInstanceInnerIpAddress) *DescribeInstancesResponseBodyInstancesInstance { s.InnerIpAddress = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInstanceChargeType(v string) *DescribeInstancesResponseBodyInstancesInstance { s.InstanceChargeType = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInstanceId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.InstanceId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInstanceName(v string) *DescribeInstancesResponseBodyInstancesInstance { s.InstanceName = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInstanceNetworkType(v string) *DescribeInstancesResponseBodyInstancesInstance { s.InstanceNetworkType = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInstanceType(v string) *DescribeInstancesResponseBodyInstancesInstance { s.InstanceType = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInstanceTypeFamily(v string) *DescribeInstancesResponseBodyInstancesInstance { s.InstanceTypeFamily = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInternetChargeType(v string) *DescribeInstancesResponseBodyInstancesInstance { s.InternetChargeType = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInternetMaxBandwidthIn(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.InternetMaxBandwidthIn = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetInternetMaxBandwidthOut(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.InternetMaxBandwidthOut = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetIoOptimized(v bool) *DescribeInstancesResponseBodyInstancesInstance { s.IoOptimized = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetKeyPairName(v string) *DescribeInstancesResponseBodyInstancesInstance { s.KeyPairName = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetLocalStorageAmount(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.LocalStorageAmount = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetLocalStorageCapacity(v int64) *DescribeInstancesResponseBodyInstancesInstance { s.LocalStorageCapacity = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetMemory(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.Memory = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetMetadataOptions(v *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions) *DescribeInstancesResponseBodyInstancesInstance { s.MetadataOptions = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetNetworkInterfaces(v *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfaces) *DescribeInstancesResponseBodyInstancesInstance { s.NetworkInterfaces = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetOSName(v string) *DescribeInstancesResponseBodyInstancesInstance { s.OSName = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetOSNameEn(v string) *DescribeInstancesResponseBodyInstancesInstance { s.OSNameEn = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetOSType(v string) *DescribeInstancesResponseBodyInstancesInstance { s.OSType = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetOperationLocks(v *DescribeInstancesResponseBodyInstancesInstanceOperationLocks) *DescribeInstancesResponseBodyInstancesInstance { s.OperationLocks = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetPublicIpAddress(v *DescribeInstancesResponseBodyInstancesInstancePublicIpAddress) *DescribeInstancesResponseBodyInstancesInstance { s.PublicIpAddress = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetRdmaIpAddress(v *DescribeInstancesResponseBodyInstancesInstanceRdmaIpAddress) *DescribeInstancesResponseBodyInstancesInstance { s.RdmaIpAddress = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetRecyclable(v bool) *DescribeInstancesResponseBodyInstancesInstance { s.Recyclable = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetRegionId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.RegionId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetResourceGroupId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.ResourceGroupId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetSaleCycle(v string) *DescribeInstancesResponseBodyInstancesInstance { s.SaleCycle = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetSecurityGroupIds(v *DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds) *DescribeInstancesResponseBodyInstancesInstance { s.SecurityGroupIds = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetSerialNumber(v string) *DescribeInstancesResponseBodyInstancesInstance { s.SerialNumber = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetSpotDuration(v int32) *DescribeInstancesResponseBodyInstancesInstance { s.SpotDuration = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetSpotInterruptionBehavior(v string) *DescribeInstancesResponseBodyInstancesInstance { s.SpotInterruptionBehavior = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetSpotPriceLimit(v float32) *DescribeInstancesResponseBodyInstancesInstance { s.SpotPriceLimit = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetSpotStrategy(v string) *DescribeInstancesResponseBodyInstancesInstance { s.SpotStrategy = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetStartTime(v string) *DescribeInstancesResponseBodyInstancesInstance { s.StartTime = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetStatus(v string) *DescribeInstancesResponseBodyInstancesInstance { s.Status = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetStoppedMode(v string) *DescribeInstancesResponseBodyInstancesInstance { s.StoppedMode = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetTags(v *DescribeInstancesResponseBodyInstancesInstanceTags) *DescribeInstancesResponseBodyInstancesInstance { s.Tags = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetVlanId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.VlanId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetVpcAttributes(v *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes) *DescribeInstancesResponseBodyInstancesInstance { s.VpcAttributes = v return s } func (s *DescribeInstancesResponseBodyInstancesInstance) SetZoneId(v string) *DescribeInstancesResponseBodyInstancesInstance { s.ZoneId = &v return s } type DescribeInstancesResponseBodyInstancesInstanceCpuOptions struct { // The number of physical CPU cores. CoreCount *int32 `json:"CoreCount,omitempty" xml:"CoreCount,omitempty"` // The number of threads allocated. Valid value: 2. Numa *string `json:"Numa,omitempty" xml:"Numa,omitempty"` // The number of threads per CPU core. ThreadsPerCore *int32 `json:"ThreadsPerCore,omitempty" xml:"ThreadsPerCore,omitempty"` // The CPU topology type of the instance. Valid values: // // - ContinuousCoreToHTMapping: Hyper-Threading (HT) continuous mode // // - DiscreteCoreToHTMapping: HT discrete mode TopologyType *string `json:"TopologyType,omitempty" xml:"TopologyType,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceCpuOptions) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceCpuOptions) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceCpuOptions) SetCoreCount(v int32) *DescribeInstancesResponseBodyInstancesInstanceCpuOptions { s.CoreCount = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceCpuOptions) SetNuma(v string) *DescribeInstancesResponseBodyInstancesInstanceCpuOptions { s.Numa = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceCpuOptions) SetThreadsPerCore(v int32) *DescribeInstancesResponseBodyInstancesInstanceCpuOptions { s.ThreadsPerCore = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceCpuOptions) SetTopologyType(v string) *DescribeInstancesResponseBodyInstancesInstanceCpuOptions { s.TopologyType = &v return s } type DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute struct { // The ID of the dedicated host cluster. DedicatedHostClusterId *string `json:"DedicatedHostClusterId,omitempty" xml:"DedicatedHostClusterId,omitempty"` // The ID of the dedicated host. DedicatedHostId *string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty"` // The name of the dedicated host. DedicatedHostName *string `json:"DedicatedHostName,omitempty" xml:"DedicatedHostName,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute) SetDedicatedHostClusterId(v string) *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute { s.DedicatedHostClusterId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute) SetDedicatedHostId(v string) *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute { s.DedicatedHostId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute) SetDedicatedHostName(v string) *DescribeInstancesResponseBodyInstancesInstanceDedicatedHostAttribute { s.DedicatedHostName = &v return s } type DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute struct { // Indicates whether the instance on the dedicated host is associated with the dedicated host. Valid values: // // - default: The instance is not associated with the dedicated host. When the instance is started from economical mode, the instance may be automatically deployed on another dedicated host in the automatic deployment resource pool. // - host: The instance is associated with the dedicated host. When the instance is started from economical mode, the instance is still deployed on the original dedicated host. Affinity *string `json:"Affinity,omitempty" xml:"Affinity,omitempty"` // Indicates whether the instance is hosted on a dedicated host. Valid values: // // - default: The instance is not hosted on a dedicated host. // - host: The instance is hosted on a dedicated host. Tenancy *string `json:"Tenancy,omitempty" xml:"Tenancy,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute) SetAffinity(v string) *DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute { s.Affinity = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute) SetTenancy(v string) *DescribeInstancesResponseBodyInstancesInstanceDedicatedInstanceAttribute { s.Tenancy = &v return s } type DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr struct { // The ID of the capacity reservation. CapacityReservationId *string `json:"CapacityReservationId,omitempty" xml:"CapacityReservationId,omitempty"` // The preference of the capacity reservation. CapacityReservationPreference *string `json:"CapacityReservationPreference,omitempty" xml:"CapacityReservationPreference,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr) SetCapacityReservationId(v string) *DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr { s.CapacityReservationId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr) SetCapacityReservationPreference(v string) *DescribeInstancesResponseBodyInstancesInstanceEcsCapacityReservationAttr { s.CapacityReservationPreference = &v return s } type DescribeInstancesResponseBodyInstancesInstanceEipAddress struct { // The ID of the EIP. AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` // The maximum public bandwidth of the EIP. Unit: Mbit/s. Bandwidth *int32 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` // The billing method of the EIP. Valid values: // // - PayByBandwidth // - PayByTraffic InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The EIP. IpAddress *string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty"` // Indicates whether the EIP can be disassociated. IsSupportUnassociate *bool `json:"IsSupportUnassociate,omitempty" xml:"IsSupportUnassociate,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceEipAddress) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceEipAddress) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceEipAddress) SetAllocationId(v string) *DescribeInstancesResponseBodyInstancesInstanceEipAddress { s.AllocationId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceEipAddress) SetBandwidth(v int32) *DescribeInstancesResponseBodyInstancesInstanceEipAddress { s.Bandwidth = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceEipAddress) SetInternetChargeType(v string) *DescribeInstancesResponseBodyInstancesInstanceEipAddress { s.InternetChargeType = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceEipAddress) SetIpAddress(v string) *DescribeInstancesResponseBodyInstancesInstanceEipAddress { s.IpAddress = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceEipAddress) SetIsSupportUnassociate(v bool) *DescribeInstancesResponseBodyInstancesInstanceEipAddress { s.IsSupportUnassociate = &v return s } type DescribeInstancesResponseBodyInstancesInstanceHibernationOptions struct { // > This parameter is in invitational preview and is unavailable for general users. Configured *bool `json:"Configured,omitempty" xml:"Configured,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceHibernationOptions) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceHibernationOptions) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceHibernationOptions) SetConfigured(v bool) *DescribeInstancesResponseBodyInstancesInstanceHibernationOptions { s.Configured = &v return s } type DescribeInstancesResponseBodyInstancesInstanceImageOptions struct { // Indicates whether the instance that uses the image supports logons of the ecs-user user. Valid values: // // - true: The instance that uses the image supports logons of the ecs-user user. // - false: The instance that uses the image does not support logons of the ecs-user user. LoginAsNonRoot *bool `json:"LoginAsNonRoot,omitempty" xml:"LoginAsNonRoot,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceImageOptions) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceImageOptions) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceImageOptions) SetLoginAsNonRoot(v bool) *DescribeInstancesResponseBodyInstancesInstanceImageOptions { s.LoginAsNonRoot = &v return s } type DescribeInstancesResponseBodyInstancesInstanceInnerIpAddress struct { IpAddress []*string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceInnerIpAddress) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceInnerIpAddress) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceInnerIpAddress) SetIpAddress(v []*string) *DescribeInstancesResponseBodyInstancesInstanceInnerIpAddress { s.IpAddress = v return s } type DescribeInstancesResponseBodyInstancesInstanceMetadataOptions struct { // Indicates whether the access channel is enabled for instance metadata. Valid values: // // - enabled // - disabled HttpEndpoint *string `json:"HttpEndpoint,omitempty" xml:"HttpEndpoint,omitempty"` // > This parameter is unavailable. HttpPutResponseHopLimit *int32 `json:"HttpPutResponseHopLimit,omitempty" xml:"HttpPutResponseHopLimit,omitempty"` // Indicates whether the security hardening mode (IMDSv2) is forcefully used to access instance metadata. Valid values: // // - optional: The security hardening mode (IMDSv2) is not forcefully used. // - required: The security hardening mode (IMDSv2) is forcefully used. HttpTokens *string `json:"HttpTokens,omitempty" xml:"HttpTokens,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceMetadataOptions) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceMetadataOptions) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions) SetHttpEndpoint(v string) *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions { s.HttpEndpoint = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions) SetHttpPutResponseHopLimit(v int32) *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions { s.HttpPutResponseHopLimit = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions) SetHttpTokens(v string) *DescribeInstancesResponseBodyInstancesInstanceMetadataOptions { s.HttpTokens = &v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfaces struct { NetworkInterface []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface `json:"NetworkInterface,omitempty" xml:"NetworkInterface,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfaces) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfaces) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfaces) SetNetworkInterface(v []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfaces { s.NetworkInterface = v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface struct { // The sets of IPv4 prefix. Ipv4PrefixSets *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSets `json:"Ipv4PrefixSets,omitempty" xml:"Ipv4PrefixSets,omitempty" type:"Struct"` // The sets of IPv6 prefix. Ipv6PrefixSets *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSets `json:"Ipv6PrefixSets,omitempty" xml:"Ipv6PrefixSets,omitempty" type:"Struct"` // The IPv6 addresses assigned to the ENI. This parameter has a value only when the `AdditionalAttributes.N` request parameter is set to `NETWORK_PRIMARY_ENI_IP`. Ipv6Sets *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6Sets `json:"Ipv6Sets,omitempty" xml:"Ipv6Sets,omitempty" type:"Struct"` // The media access control (MAC) address of the ENI. MacAddress *string `json:"MacAddress,omitempty" xml:"MacAddress,omitempty"` // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The primary private IP address of the ENI. PrimaryIpAddress *string `json:"PrimaryIpAddress,omitempty" xml:"PrimaryIpAddress,omitempty"` // Details about the private IP address. PrivateIpSets *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSets `json:"PrivateIpSets,omitempty" xml:"PrivateIpSets,omitempty" type:"Struct"` // The type of the ENI. Valid values: // // * Primary // * Secondary Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetIpv4PrefixSets(v *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSets) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.Ipv4PrefixSets = v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetIpv6PrefixSets(v *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSets) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.Ipv6PrefixSets = v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetIpv6Sets(v *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6Sets) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.Ipv6Sets = v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetMacAddress(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.MacAddress = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetNetworkInterfaceId(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.NetworkInterfaceId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetPrimaryIpAddress(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.PrimaryIpAddress = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetPrivateIpSets(v *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSets) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.PrivateIpSets = v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface) SetType(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterface { s.Type = &v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSets struct { Ipv4PrefixSet []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet `json:"Ipv4PrefixSet,omitempty" xml:"Ipv4PrefixSet,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSets) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSets) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSets) SetIpv4PrefixSet(v []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSets { s.Ipv4PrefixSet = v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet struct { // The IPv4 prefix. Ipv4Prefix *string `json:"Ipv4Prefix,omitempty" xml:"Ipv4Prefix,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet) SetIpv4Prefix(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv4PrefixSetsIpv4PrefixSet { s.Ipv4Prefix = &v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSets struct { Ipv6PrefixSet []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet `json:"Ipv6PrefixSet,omitempty" xml:"Ipv6PrefixSet,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSets) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSets) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSets) SetIpv6PrefixSet(v []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSets { s.Ipv6PrefixSet = v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet struct { // The IPv6 prefix. Ipv6Prefix *string `json:"Ipv6Prefix,omitempty" xml:"Ipv6Prefix,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet) SetIpv6Prefix(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6PrefixSetsIpv6PrefixSet { s.Ipv6Prefix = &v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6Sets struct { Ipv6Set []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set `json:"Ipv6Set,omitempty" xml:"Ipv6Set,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6Sets) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6Sets) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6Sets) SetIpv6Set(v []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6Sets { s.Ipv6Set = v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set struct { // The IPv6 address assigned to the ENI. Ipv6Address *string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set) SetIpv6Address(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set { s.Ipv6Address = &v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSets struct { PrivateIpSet []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet `json:"PrivateIpSet,omitempty" xml:"PrivateIpSet,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSets) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSets) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSets) SetPrivateIpSet(v []*DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSets { s.PrivateIpSet = v return s } type DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet struct { // Indicates whether the IP address is the primary private IP address. Primary *bool `json:"Primary,omitempty" xml:"Primary,omitempty"` // The private IP address of the instance to which the ENI is bound. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet) SetPrimary(v bool) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet { s.Primary = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet) SetPrivateIpAddress(v string) *DescribeInstancesResponseBodyInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet { s.PrivateIpAddress = &v return s } type DescribeInstancesResponseBodyInstancesInstanceOperationLocks struct { LockReason []*DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason `json:"LockReason,omitempty" xml:"LockReason,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceOperationLocks) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceOperationLocks) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceOperationLocks) SetLockReason(v []*DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason) *DescribeInstancesResponseBodyInstancesInstanceOperationLocks { s.LockReason = v return s } type DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason struct { // The message returned when the instance was locked. LockMsg *string `json:"LockMsg,omitempty" xml:"LockMsg,omitempty"` // The reason why the instance was locked. Valid values: // // - financial: The instance was locked due to overdue payments. // - security: The instance was locked due to security reasons. // - recycling: The preemptible instance was locked and pending release. // - dedicatedhostfinancial: The instance was locked due to overdue payments for the dedicated host. // - refunded: The instance was locked because a refund was made for the instance. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason) SetLockMsg(v string) *DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason { s.LockMsg = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason) SetLockReason(v string) *DescribeInstancesResponseBodyInstancesInstanceOperationLocksLockReason { s.LockReason = &v return s } type DescribeInstancesResponseBodyInstancesInstancePublicIpAddress struct { IpAddress []*string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstancePublicIpAddress) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstancePublicIpAddress) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstancePublicIpAddress) SetIpAddress(v []*string) *DescribeInstancesResponseBodyInstancesInstancePublicIpAddress { s.IpAddress = v return s } type DescribeInstancesResponseBodyInstancesInstanceRdmaIpAddress struct { IpAddress []*string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceRdmaIpAddress) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceRdmaIpAddress) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceRdmaIpAddress) SetIpAddress(v []*string) *DescribeInstancesResponseBodyInstancesInstanceRdmaIpAddress { s.IpAddress = v return s } type DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds struct { SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds) SetSecurityGroupId(v []*string) *DescribeInstancesResponseBodyInstancesInstanceSecurityGroupIds { s.SecurityGroupId = v return s } type DescribeInstancesResponseBodyInstancesInstanceTags struct { Tag []*DescribeInstancesResponseBodyInstancesInstanceTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceTags) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceTags) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceTags) SetTag(v []*DescribeInstancesResponseBodyInstancesInstanceTagsTag) *DescribeInstancesResponseBodyInstancesInstanceTags { s.Tag = v return s } type DescribeInstancesResponseBodyInstancesInstanceTagsTag struct { // The tag key of the instance. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the instance. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceTagsTag) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceTagsTag) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceTagsTag) SetTagKey(v string) *DescribeInstancesResponseBodyInstancesInstanceTagsTag { s.TagKey = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceTagsTag) SetTagValue(v string) *DescribeInstancesResponseBodyInstancesInstanceTagsTag { s.TagValue = &v return s } type DescribeInstancesResponseBodyInstancesInstanceVpcAttributes struct { // The NAT IP address of the instance. It is used by ECS instances in different VPCs for communication. NatIpAddress *string `json:"NatIpAddress,omitempty" xml:"NatIpAddress,omitempty"` // The private IP addresses of the instance. PrivateIpAddress *DescribeInstancesResponseBodyInstancesInstanceVpcAttributesPrivateIpAddress `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty" type:"Struct"` // The ID of the vSwitch. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the VPC. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeInstancesResponseBodyInstancesInstanceVpcAttributes) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceVpcAttributes) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes) SetNatIpAddress(v string) *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes { s.NatIpAddress = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes) SetPrivateIpAddress(v *DescribeInstancesResponseBodyInstancesInstanceVpcAttributesPrivateIpAddress) *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes { s.PrivateIpAddress = v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes) SetVSwitchId(v string) *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes { s.VSwitchId = &v return s } func (s *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes) SetVpcId(v string) *DescribeInstancesResponseBodyInstancesInstanceVpcAttributes { s.VpcId = &v return s } type DescribeInstancesResponseBodyInstancesInstanceVpcAttributesPrivateIpAddress struct { IpAddress []*string `json:"IpAddress,omitempty" xml:"IpAddress,omitempty" type:"Repeated"` } func (s DescribeInstancesResponseBodyInstancesInstanceVpcAttributesPrivateIpAddress) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponseBodyInstancesInstanceVpcAttributesPrivateIpAddress) GoString() string { return s.String() } func (s *DescribeInstancesResponseBodyInstancesInstanceVpcAttributesPrivateIpAddress) SetIpAddress(v []*string) *DescribeInstancesResponseBodyInstancesInstanceVpcAttributesPrivateIpAddress { s.IpAddress = v return s } type DescribeInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstancesResponse) String() string { return tea.Prettify(s) } func (s DescribeInstancesResponse) GoString() string { return s.String() } func (s *DescribeInstancesResponse) SetHeaders(v map[string]*string) *DescribeInstancesResponse { s.Headers = v return s } func (s *DescribeInstancesResponse) SetStatusCode(v int32) *DescribeInstancesResponse { s.StatusCode = &v return s } func (s *DescribeInstancesResponse) SetBody(v *DescribeInstancesResponseBody) *DescribeInstancesResponse { s.Body = v return s } type DescribeInstancesFullStatusRequest struct { EventPublishTime *DescribeInstancesFullStatusRequestEventPublishTime `json:"EventPublishTime,omitempty" xml:"EventPublishTime,omitempty" type:"Struct"` NotBefore *DescribeInstancesFullStatusRequestNotBefore `json:"NotBefore,omitempty" xml:"NotBefore,omitempty" type:"Struct"` // The IDs of the system events. You can specify up to 100 event IDs in a single request. EventId []*string `json:"EventId,omitempty" xml:"EventId,omitempty" type:"Repeated"` // The type of the system event. This parameter is valid only when InstanceEventType.N is not specified. Valid values: // // * SystemMaintenance.Reboot: The instance is restarted due to system maintenance. // * SystemFailure.Reboot: The instance is restarted due to a system failure. // * InstanceFailure.Reboot: The instance is restarted due to an instance failure. // * InstanceExpiration.Stop: The subscription instance is stopped due to expiration. // * InstanceExpiration.Delete: The subscription instance is released due to expiration. // * AccountUnbalanced.Stop: The pay-as-you-go instance is stopped due to an overdue payment. // * AccountUnbalanced.Delete: The pay-as-you-go instance is released due to an overdue payment. EventType *string `json:"EventType,omitempty" xml:"EventType,omitempty"` // The health state of the instance. Valid values: // // * Impaired: The instance is impaired. // * Warning: The performance of the instance is degraded. // * Maintaining: The instance is being maintained. // * Initializing: The instance is being initialized. // * InsufficientData: The state cannot be determined due to insufficient data. // * NotApplicable: The state is not applicable. // // All these values are case-sensitive. HealthStatus *string `json:"HealthStatus,omitempty" xml:"HealthStatus,omitempty"` // The types of system events. You can specify up to 30 event types in a single request. InstanceEventType []*string `json:"InstanceEventType,omitempty" xml:"InstanceEventType,omitempty" type:"Repeated"` // The IDs of the instances. You can specify up to 100 instance IDs in a single request. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. The value must be a positive integer. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The lifecycle state of the instance. Valid values: // // * Starting: The instance is being started. // * Running: The instance is running. // * Stopped: The instance is stopped. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeInstancesFullStatusRequest) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusRequest) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusRequest) SetEventPublishTime(v *DescribeInstancesFullStatusRequestEventPublishTime) *DescribeInstancesFullStatusRequest { s.EventPublishTime = v return s } func (s *DescribeInstancesFullStatusRequest) SetNotBefore(v *DescribeInstancesFullStatusRequestNotBefore) *DescribeInstancesFullStatusRequest { s.NotBefore = v return s } func (s *DescribeInstancesFullStatusRequest) SetEventId(v []*string) *DescribeInstancesFullStatusRequest { s.EventId = v return s } func (s *DescribeInstancesFullStatusRequest) SetEventType(v string) *DescribeInstancesFullStatusRequest { s.EventType = &v return s } func (s *DescribeInstancesFullStatusRequest) SetHealthStatus(v string) *DescribeInstancesFullStatusRequest { s.HealthStatus = &v return s } func (s *DescribeInstancesFullStatusRequest) SetInstanceEventType(v []*string) *DescribeInstancesFullStatusRequest { s.InstanceEventType = v return s } func (s *DescribeInstancesFullStatusRequest) SetInstanceId(v []*string) *DescribeInstancesFullStatusRequest { s.InstanceId = v return s } func (s *DescribeInstancesFullStatusRequest) SetOwnerAccount(v string) *DescribeInstancesFullStatusRequest { s.OwnerAccount = &v return s } func (s *DescribeInstancesFullStatusRequest) SetOwnerId(v int64) *DescribeInstancesFullStatusRequest { s.OwnerId = &v return s } func (s *DescribeInstancesFullStatusRequest) SetPageNumber(v int32) *DescribeInstancesFullStatusRequest { s.PageNumber = &v return s } func (s *DescribeInstancesFullStatusRequest) SetPageSize(v int32) *DescribeInstancesFullStatusRequest { s.PageSize = &v return s } func (s *DescribeInstancesFullStatusRequest) SetRegionId(v string) *DescribeInstancesFullStatusRequest { s.RegionId = &v return s } func (s *DescribeInstancesFullStatusRequest) SetResourceOwnerAccount(v string) *DescribeInstancesFullStatusRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInstancesFullStatusRequest) SetResourceOwnerId(v int64) *DescribeInstancesFullStatusRequest { s.ResourceOwnerId = &v return s } func (s *DescribeInstancesFullStatusRequest) SetStatus(v string) *DescribeInstancesFullStatusRequest { s.Status = &v return s } type DescribeInstancesFullStatusRequestEventPublishTime struct { // The end of the time range during which system events are published. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. End *string `json:"End,omitempty" xml:"End,omitempty"` // The beginning of the time range during which system events are published. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Start *string `json:"Start,omitempty" xml:"Start,omitempty"` } func (s DescribeInstancesFullStatusRequestEventPublishTime) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusRequestEventPublishTime) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusRequestEventPublishTime) SetEnd(v string) *DescribeInstancesFullStatusRequestEventPublishTime { s.End = &v return s } func (s *DescribeInstancesFullStatusRequestEventPublishTime) SetStart(v string) *DescribeInstancesFullStatusRequestEventPublishTime { s.Start = &v return s } type DescribeInstancesFullStatusRequestNotBefore struct { // The end of the time range during which O\&M tasks related to scheduled system events are executed. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. End *string `json:"End,omitempty" xml:"End,omitempty"` // The beginning of the time range during which O\&M tasks related to scheduled system events are executed. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Start *string `json:"Start,omitempty" xml:"Start,omitempty"` } func (s DescribeInstancesFullStatusRequestNotBefore) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusRequestNotBefore) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusRequestNotBefore) SetEnd(v string) *DescribeInstancesFullStatusRequestNotBefore { s.End = &v return s } func (s *DescribeInstancesFullStatusRequestNotBefore) SetStart(v string) *DescribeInstancesFullStatusRequestNotBefore { s.Start = &v return s } type DescribeInstancesFullStatusResponseBody struct { // The full status information of the instances. InstanceFullStatusSet *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSet `json:"InstanceFullStatusSet,omitempty" xml:"InstanceFullStatusSet,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInstancesFullStatusResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBody) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBody) SetInstanceFullStatusSet(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSet) *DescribeInstancesFullStatusResponseBody { s.InstanceFullStatusSet = v return s } func (s *DescribeInstancesFullStatusResponseBody) SetPageNumber(v int32) *DescribeInstancesFullStatusResponseBody { s.PageNumber = &v return s } func (s *DescribeInstancesFullStatusResponseBody) SetPageSize(v int32) *DescribeInstancesFullStatusResponseBody { s.PageSize = &v return s } func (s *DescribeInstancesFullStatusResponseBody) SetRequestId(v string) *DescribeInstancesFullStatusResponseBody { s.RequestId = &v return s } func (s *DescribeInstancesFullStatusResponseBody) SetTotalCount(v int32) *DescribeInstancesFullStatusResponseBody { s.TotalCount = &v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSet struct { InstanceFullStatusType []*DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType `json:"InstanceFullStatusType,omitempty" xml:"InstanceFullStatusType,omitempty" type:"Repeated"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSet) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSet) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSet) SetInstanceFullStatusType(v []*DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSet { s.InstanceFullStatusType = v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType struct { // The health state of the instance. HealthStatus *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus `json:"HealthStatus,omitempty" xml:"HealthStatus,omitempty" type:"Struct"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // Details about the scheduled system events. ScheduledSystemEventSet *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSet `json:"ScheduledSystemEventSet,omitempty" xml:"ScheduledSystemEventSet,omitempty" type:"Struct"` // The lifecycle state of the instance. Status *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus `json:"Status,omitempty" xml:"Status,omitempty" type:"Struct"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType) SetHealthStatus(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType { s.HealthStatus = v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType) SetInstanceId(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType { s.InstanceId = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType) SetScheduledSystemEventSet(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSet) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType { s.ScheduledSystemEventSet = v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType) SetStatus(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusType { s.Status = v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus struct { // The code of the health state. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the health state. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus) SetCode(v int32) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus { s.Code = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus) SetName(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeHealthStatus { s.Name = &v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSet struct { ScheduledSystemEventType []*DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType `json:"ScheduledSystemEventType,omitempty" xml:"ScheduledSystemEventType,omitempty" type:"Repeated"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSet) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSet) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSet) SetScheduledSystemEventType(v []*DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSet { s.ScheduledSystemEventType = v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType struct { // The state of the system event. EventCycleStatus *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus `json:"EventCycleStatus,omitempty" xml:"EventCycleStatus,omitempty" type:"Struct"` // The ID of the system event. EventId *string `json:"EventId,omitempty" xml:"EventId,omitempty"` // The time when the system event was published. The time is displayed in UTC. EventPublishTime *string `json:"EventPublishTime,omitempty" xml:"EventPublishTime,omitempty"` // The type of the system event. EventType *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType `json:"EventType,omitempty" xml:"EventType,omitempty" type:"Struct"` // The extended attributes of system events generated for instances that have local disks attached. ExtendedAttribute *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute `json:"ExtendedAttribute,omitempty" xml:"ExtendedAttribute,omitempty" type:"Struct"` // The impact level of the system event. ImpactLevel *string `json:"ImpactLevel,omitempty" xml:"ImpactLevel,omitempty"` // The scheduled O\&M time of the system event. The time is displayed in UTC. NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"` // The reason why the system event was scheduled. Reason *string `json:"Reason,omitempty" xml:"Reason,omitempty"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetEventCycleStatus(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.EventCycleStatus = v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetEventId(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.EventId = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetEventPublishTime(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.EventPublishTime = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetEventType(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.EventType = v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetExtendedAttribute(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.ExtendedAttribute = v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetImpactLevel(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.ImpactLevel = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetNotBefore(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.NotBefore = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType) SetReason(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType { s.Reason = &v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus struct { // The code of the system event state. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the system event state. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus) SetCode(v int32) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus { s.Code = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus) SetName(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventCycleStatus { s.Name = &v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType struct { // The code of the system event type. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the system event type. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType) SetCode(v int32) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType { s.Code = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType) SetName(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeEventType { s.Name = &v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute struct { // The device name of the local disk. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The ID of the local disk. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The inactive cloud disks or local disks that have been released and must be cleared. InactiveDisks *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisks `json:"InactiveDisks,omitempty" xml:"InactiveDisks,omitempty" type:"Struct"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute) SetDevice(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute { s.Device = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute) SetDiskId(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute { s.DiskId = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute) SetInactiveDisks(v *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisks) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttribute { s.InactiveDisks = v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisks struct { InactiveDisk []*DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk `json:"InactiveDisk,omitempty" xml:"InactiveDisk,omitempty" type:"Repeated"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisks) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisks) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisks) SetInactiveDisk(v []*DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisks { s.InactiveDisk = v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk struct { // The time when the cloud disk or local disk was created. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The category of the cloud disk or local disk. Valid values: // // * cloud: basic disk. // * cloud_efficiency: ultra disk. // * cloud_ssd: standard SSD. // * cloud_essd: enhanced SSD (ESSD). // * local_ssd_pro: I/O-intensive local disk. // * local_hdd_pro: throughput-intensive local disk. // * ephemeral: retired local disk. // * ephemeral_ssd: retired local SSD. DeviceCategory *string `json:"DeviceCategory,omitempty" xml:"DeviceCategory,omitempty"` // The size of the cloud disk or local disk. Unit: GiB. DeviceSize *string `json:"DeviceSize,omitempty" xml:"DeviceSize,omitempty"` // The type of the cloud disk or local disk. Valid values: // // * system: system disk. // * data: data disk. DeviceType *string `json:"DeviceType,omitempty" xml:"DeviceType,omitempty"` // The time when the cloud disk or local disk was released. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. ReleaseTime *string `json:"ReleaseTime,omitempty" xml:"ReleaseTime,omitempty"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetCreationTime(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.CreationTime = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetDeviceCategory(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.DeviceCategory = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetDeviceSize(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.DeviceSize = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetDeviceType(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.DeviceType = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk) SetReleaseTime(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventTypeExtendedAttributeInactiveDisksInactiveDisk { s.ReleaseTime = &v return s } type DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus struct { // The code of the instance lifecycle state. Code *int32 `json:"Code,omitempty" xml:"Code,omitempty"` // The name of the instance lifecycle state. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus) SetCode(v int32) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus { s.Code = &v return s } func (s *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus) SetName(v string) *DescribeInstancesFullStatusResponseBodyInstanceFullStatusSetInstanceFullStatusTypeStatus { s.Name = &v return s } type DescribeInstancesFullStatusResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInstancesFullStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInstancesFullStatusResponse) String() string { return tea.Prettify(s) } func (s DescribeInstancesFullStatusResponse) GoString() string { return s.String() } func (s *DescribeInstancesFullStatusResponse) SetHeaders(v map[string]*string) *DescribeInstancesFullStatusResponse { s.Headers = v return s } func (s *DescribeInstancesFullStatusResponse) SetStatusCode(v int32) *DescribeInstancesFullStatusResponse { s.StatusCode = &v return s } func (s *DescribeInstancesFullStatusResponse) SetBody(v *DescribeInstancesFullStatusResponseBody) *DescribeInstancesFullStatusResponse { s.Body = v return s } type DescribeInvocationResultsRequest struct { // The ID of the command. CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The encoding mode of the `CommandContent` and `Output` values in the response. Valid values: // // * PlainText: returns the original command content and command output. // * Base64: returns the Base64-encoded command content and command output. // // Default value: Base64. ContentEncoding *string `json:"ContentEncoding,omitempty" xml:"ContentEncoding,omitempty"` // Specifies whether to return the results of historical scheduled executions. Valid values: // // * true: returns the results of historical scheduled executions. If you set this parameter to true, you must set InvokeId to the ID of a task that is run on a schedule (RepeatMode set to Period) or on each system startup (RepeatMode set to EveryReboot). // * false: does not return the results of historical scheduled executions. // // Default value: false. IncludeHistory *bool `json:"IncludeHistory,omitempty" xml:"IncludeHistory,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The ID of the command task. You can call the [DescribeInvocations](~~64840~~) operation to query the IDs of all command tasks. InvokeId *string `json:"InvokeId,omitempty" xml:"InvokeId,omitempty"` // The execution status of the command task. Valid values: // // * Running: // // * Scheduled task: Before you stop the scheduled execution of the command, the execution state is always Running. // * One-time task: If the command is being run on instances, the execution state is Running. // // * Finished: // // * Scheduled task: The execution state can never be Finished. // * One-time task: The execution is complete on all instances, or the execution is stopped on some instances and is complete on the other instances. // // * Success: // // * One-time task: The execution is complete, and the exit code is 0. // * Scheduled task: The last execution is complete, the exit code is 0, and the specified period ends. // // * Failed: // // * Scheduled task: The execution state can never be Failed. // * One-time task: The execution fails on all instances. // // * PartialFailed: // // * Scheduled task: The execution state can never be PartialFailed. // * One-time task: The execution fails on some instances. // // * Stopped: The task is stopped. // // * Stopping: The task is being stopped. InvokeRecordStatus *string `json:"InvokeRecordStatus,omitempty" xml:"InvokeRecordStatus,omitempty"` // The maximum number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the command. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. After you set this parameter, command execution results in the specified resource group are queried. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags of the command task. Tag []*DescribeInvocationResultsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeInvocationResultsRequest) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsRequest) GoString() string { return s.String() } func (s *DescribeInvocationResultsRequest) SetCommandId(v string) *DescribeInvocationResultsRequest { s.CommandId = &v return s } func (s *DescribeInvocationResultsRequest) SetContentEncoding(v string) *DescribeInvocationResultsRequest { s.ContentEncoding = &v return s } func (s *DescribeInvocationResultsRequest) SetIncludeHistory(v bool) *DescribeInvocationResultsRequest { s.IncludeHistory = &v return s } func (s *DescribeInvocationResultsRequest) SetInstanceId(v string) *DescribeInvocationResultsRequest { s.InstanceId = &v return s } func (s *DescribeInvocationResultsRequest) SetInvokeId(v string) *DescribeInvocationResultsRequest { s.InvokeId = &v return s } func (s *DescribeInvocationResultsRequest) SetInvokeRecordStatus(v string) *DescribeInvocationResultsRequest { s.InvokeRecordStatus = &v return s } func (s *DescribeInvocationResultsRequest) SetMaxResults(v int32) *DescribeInvocationResultsRequest { s.MaxResults = &v return s } func (s *DescribeInvocationResultsRequest) SetNextToken(v string) *DescribeInvocationResultsRequest { s.NextToken = &v return s } func (s *DescribeInvocationResultsRequest) SetOwnerAccount(v string) *DescribeInvocationResultsRequest { s.OwnerAccount = &v return s } func (s *DescribeInvocationResultsRequest) SetOwnerId(v int64) *DescribeInvocationResultsRequest { s.OwnerId = &v return s } func (s *DescribeInvocationResultsRequest) SetPageNumber(v int64) *DescribeInvocationResultsRequest { s.PageNumber = &v return s } func (s *DescribeInvocationResultsRequest) SetPageSize(v int64) *DescribeInvocationResultsRequest { s.PageSize = &v return s } func (s *DescribeInvocationResultsRequest) SetRegionId(v string) *DescribeInvocationResultsRequest { s.RegionId = &v return s } func (s *DescribeInvocationResultsRequest) SetResourceGroupId(v string) *DescribeInvocationResultsRequest { s.ResourceGroupId = &v return s } func (s *DescribeInvocationResultsRequest) SetResourceOwnerAccount(v string) *DescribeInvocationResultsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInvocationResultsRequest) SetResourceOwnerId(v int64) *DescribeInvocationResultsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeInvocationResultsRequest) SetTag(v []*DescribeInvocationResultsRequestTag) *DescribeInvocationResultsRequest { s.Tag = v return s } type DescribeInvocationResultsRequestTag struct { // The key of tag N of the command task. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the command 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://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeInvocationResultsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsRequestTag) GoString() string { return s.String() } func (s *DescribeInvocationResultsRequestTag) SetKey(v string) *DescribeInvocationResultsRequestTag { s.Key = &v return s } func (s *DescribeInvocationResultsRequestTag) SetValue(v string) *DescribeInvocationResultsRequestTag { s.Value = &v return s } type DescribeInvocationResultsResponseBody struct { // Details about the execution results. Invocation *DescribeInvocationResultsResponseBodyInvocation `json:"Invocation,omitempty" xml:"Invocation,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeInvocationResultsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsResponseBody) GoString() string { return s.String() } func (s *DescribeInvocationResultsResponseBody) SetInvocation(v *DescribeInvocationResultsResponseBodyInvocation) *DescribeInvocationResultsResponseBody { s.Invocation = v return s } func (s *DescribeInvocationResultsResponseBody) SetRequestId(v string) *DescribeInvocationResultsResponseBody { s.RequestId = &v return s } type DescribeInvocationResultsResponseBodyInvocation struct { // The execution results. InvocationResults *DescribeInvocationResultsResponseBodyInvocationInvocationResults `json:"InvocationResults,omitempty" xml:"InvocationResults,omitempty" type:"Struct"` // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The total number of the commands. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInvocationResultsResponseBodyInvocation) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsResponseBodyInvocation) GoString() string { return s.String() } func (s *DescribeInvocationResultsResponseBodyInvocation) SetInvocationResults(v *DescribeInvocationResultsResponseBodyInvocationInvocationResults) *DescribeInvocationResultsResponseBodyInvocation { s.InvocationResults = v return s } func (s *DescribeInvocationResultsResponseBodyInvocation) SetNextToken(v string) *DescribeInvocationResultsResponseBodyInvocation { s.NextToken = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocation) SetPageNumber(v int64) *DescribeInvocationResultsResponseBodyInvocation { s.PageNumber = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocation) SetPageSize(v int64) *DescribeInvocationResultsResponseBodyInvocation { s.PageSize = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocation) SetTotalCount(v int64) *DescribeInvocationResultsResponseBodyInvocation { s.TotalCount = &v return s } type DescribeInvocationResultsResponseBodyInvocationInvocationResults struct { InvocationResult []*DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult `json:"InvocationResult,omitempty" xml:"InvocationResult,omitempty" type:"Repeated"` } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResults) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResults) GoString() string { return s.String() } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResults) SetInvocationResult(v []*DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) *DescribeInvocationResultsResponseBodyInvocationInvocationResults { s.InvocationResult = v return s } type DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult struct { // The command ID. CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The container ID. ContainerId *string `json:"ContainerId,omitempty" xml:"ContainerId,omitempty"` // The container name. ContainerName *string `json:"ContainerName,omitempty" xml:"ContainerName,omitempty"` // The size of the Output text that was truncated and discarded because the `Output` value exceeded 24 KB in size. Dropped *int32 `json:"Dropped,omitempty" xml:"Dropped,omitempty"` // The error code for the failure to send or run the command. Valid values: // // * If this parameter is empty, the command was run as expected. // * InstanceNotExists: The specified instance did not exist or was released. // * InstanceReleased: The instance was released while the command was being run. // * InstanceNotRunning: The instance was not running when the command started to be run. // * CommandNotApplicable: The command was not applicable to the specified instance. // * AccountNotExists: The specified account did not exist. // * DirectoryNotExists: The specified directory did not exist. // * BadCronExpression: The specified cron expression for the execution schedule was invalid. // * ClientNotRunning: Cloud Assistant Agent was not running. // * ClientNotResponse: Cloud Assistant Agent did not respond. // * ClientIsUpgrading: Cloud Assistant Agent was being upgraded. // * ClientNeedUpgrade: Cloud Assistant Agent needed to be upgraded. // * DeliveryTimeout: The request to send the command timed out. // * ExecutionTimeout: The execution timed out. // * ExecutionException: An exception occurred while the command was being run. // * ExecutionInterrupted: The execution was interrupted. // * ExitCodeNonzero: The execution was complete, but the exit code was not 0. ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` // The error message returned when the command failed to be sent or run. Valid values: // // * If this parameter is empty, the command was run as expected. // * the specified instance does not exists // * the instance has released when create task // * the instance is not running when create task // * the command is not applicable // * the specified account does not exists // * the specified directory does not exists // * the cron job expression is invalid // * the aliyun service is not running on the instance // * the aliyun service in the instance does not response // * the aliyun service in the instance is upgrading now // * the aliyun service in the instance need upgrade // * the command delivery has been timeout // * the command execution has been timeout // * the command execution got an exception // * the command execution has been interrupted // * the command execution exit code is not zero // * the specified instance has been released ErrorInfo *string `json:"ErrorInfo,omitempty" xml:"ErrorInfo,omitempty"` // The exit code of the command task. // // * For Linux instances, the value is the exit code of the shell command. // * For Windows instances, the value is the exit code of the batch or PowerShell command. ExitCode *int64 `json:"ExitCode,omitempty" xml:"ExitCode,omitempty"` // The time when the command task was complete. If the command task times out, the end time is equal to the start time of the command task specified by `StartTime` plus the timeout period specified by `Timeout`. FinishedTime *string `json:"FinishedTime,omitempty" xml:"FinishedTime,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The execution state on a single instance. Valid values: // // * Pending: The command was being verified or sent. // // * Invalid: The specified command type or parameter was invalid. // // * Aborted: The command failed to be sent to the instance. To send a command to an instance, make sure that the instance is in the Running state and the command can be sent to the instance within 1 minute. // // * Running: The command was being run on the instance. // // * Success: // // * One-time task: The execution was complete, and the exit code was 0. // * Scheduled task: The last execution was complete, the exit code was 0, and the specified period ended. // // * Failed: // // * One-time task: The execution was complete, but the exit code was not 0. // * Scheduled task: The last execution was complete, but the exit code was not 0. The specified period was about to end. // // * Error: The execution cannot proceed due to an exception. // // * Timeout: The execution timed out. // // * Cancelled: The execution was canceled, and the command was not run. // // * Stopping: The command task was being stopped. // // * Terminated: The execution was terminated before completion. // // * Scheduled: // // * One-time task: The execution state can never be Scheduled. // * Scheduled task: The command was waiting to be run. InvocationStatus *string `json:"InvocationStatus,omitempty" xml:"InvocationStatus,omitempty"` // The ID of the command task. InvokeId *string `json:"InvokeId,omitempty" xml:"InvokeId,omitempty"` // The execution state of the command. Valid values: // // * Running: // // * Scheduled task: Before you stop the scheduled execution of the command, the execution state is always Running. // * One-time task: If the command is being run on instances, the execution state is Running. // // * Finished: // // * Scheduled task: The execution state can never be Finished. // * One-time task: The execution was complete on all instances, or the execution was stopped on some instances and was complete on the other instances. // // * Failed: // // * Scheduled task: The execution state can never be Failed. // * One-time task: The execution failed on all instances. // // * PartialFailed: // // * Scheduled task: The execution state can never be PartialFailed. // * One-time task: The execution failed on some instances. // // * Stopped: The task was stopped. // // * Stopping: The task was being stopped. InvokeRecordStatus *string `json:"InvokeRecordStatus,omitempty" xml:"InvokeRecordStatus,omitempty"` // The command output. // // * If ContentEncoding is set to PlainText in the request, the original command output is returned. // * If ContentEncoding is set to Base64 in the request, the Base64-encoded command output is returned. Output *string `json:"Output,omitempty" xml:"Output,omitempty"` // The number of times that the command was run on the instance. // // * If the command is set to run only once, the value is 0 or 1. // * If the command is set to run on a schedule, the value is the number of times that the command has been run on the instance. Repeats *int32 `json:"Repeats,omitempty" xml:"Repeats,omitempty"` // The time when the command started to be run on the instance. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The time when the command task was stopped. If you call the `StopInvocation` operation to stop the command task, the value of this parameter is the time when the operation is called. StopTime *string `json:"StopTime,omitempty" xml:"StopTime,omitempty"` // The tags of the command task. Tags *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The username used to run the command on the instance. Username *string `json:"Username,omitempty" xml:"Username,omitempty"` } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) GoString() string { return s.String() } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetCommandId(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.CommandId = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetContainerId(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.ContainerId = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetContainerName(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.ContainerName = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetDropped(v int32) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.Dropped = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetErrorCode(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.ErrorCode = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetErrorInfo(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.ErrorInfo = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetExitCode(v int64) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.ExitCode = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetFinishedTime(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.FinishedTime = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetInstanceId(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.InstanceId = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetInvocationStatus(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.InvocationStatus = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetInvokeId(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.InvokeId = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetInvokeRecordStatus(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.InvokeRecordStatus = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetOutput(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.Output = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetRepeats(v int32) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.Repeats = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetStartTime(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.StartTime = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetStopTime(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.StopTime = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetTags(v *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTags) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.Tags = v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult) SetUsername(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResult { s.Username = &v return s } type DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTags struct { Tag []*DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTags) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTags) GoString() string { return s.String() } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTags) SetTag(v []*DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTags { s.Tag = v return s } type DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag struct { // The tag key of the command task. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the command task. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag) GoString() string { return s.String() } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag) SetTagKey(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag { s.TagKey = &v return s } func (s *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag) SetTagValue(v string) *DescribeInvocationResultsResponseBodyInvocationInvocationResultsInvocationResultTagsTag { s.TagValue = &v return s } type DescribeInvocationResultsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInvocationResultsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInvocationResultsResponse) String() string { return tea.Prettify(s) } func (s DescribeInvocationResultsResponse) GoString() string { return s.String() } func (s *DescribeInvocationResultsResponse) SetHeaders(v map[string]*string) *DescribeInvocationResultsResponse { s.Headers = v return s } func (s *DescribeInvocationResultsResponse) SetStatusCode(v int32) *DescribeInvocationResultsResponse { s.StatusCode = &v return s } func (s *DescribeInvocationResultsResponse) SetBody(v *DescribeInvocationResultsResponseBody) *DescribeInvocationResultsResponse { s.Body = v return s } type DescribeInvocationsRequest struct { // The command ID. You can call the [DescribeCommands](~~64843~~) operation to query all available command IDs. CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The command name. If you specify both this parameter and `InstanceId`, this parameter does not take effect. CommandName *string `json:"CommandName,omitempty" xml:"CommandName,omitempty"` // The command type. Valid values: // // * RunBatScript: batch command, applicable to Windows instances. // * RunPowerShellScript: PowerShell command, applicable to Windows instances. // * RunShellScript: shell command, applicable to Linux instances. CommandType *string `json:"CommandType,omitempty" xml:"CommandType,omitempty"` // The encoding mode of the `CommandContent` and `Output` response parameters. Valid values: // // * PlainText: returns the original command content and command outputs. // * Base64: returns the Base64-encoded command content and command outputs. // // Default value: Base64. ContentEncoding *string `json:"ContentEncoding,omitempty" xml:"ContentEncoding,omitempty"` // Specifies whether to return the command outputs in the response. // // * true: The command outputs are returned. When this parameter is set to true, you must specify `InvokeId`, `InstanceId`, or both. // * false: The command outputs are not returned. // // Default value: false IncludeOutput *bool `json:"IncludeOutput,omitempty" xml:"IncludeOutput,omitempty"` // The ID of instance N. When you specify this parameter, the system queries all the execution records of all the commands that run on the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The command task ID. InvokeId *string `json:"InvokeId,omitempty" xml:"InvokeId,omitempty"` // The overall execution status of the command task. The value of this parameter depends on the execution states of the command task on all involved instances. Valid values: // // * Running: // // * Scheduled task: Before you stop the scheduled execution of the command, the overall execution state is always Running. // * One-time task: If the command is being run on instances, the overall execution state is Running. // // * Finished: // // * Scheduled task: The overall execution state can never be Finished. // * One-time task: The execution is complete on all instances, or the execution is stopped on some instances and is complete on the other instances. // // * Success: If the execution state on at least one instance is Success and the execution state on the other instances is Stopped or Success, the overall execution state is Success. // // * One-time task: The execution is complete, and the exit code is 0. // * Scheduled task: The last execution is complete, the exit code is 0, and the specified period ends. // // * Failed: // // * Scheduled task: The overall execution state can never be Failed. // * One-time task: The execution fails on all instances. // // * Stopped: The task is stopped. // // * Stopping: The task is being stopped. // // * PartialFailed: The task fails on some instances. If you specify both this parameter and `InstanceId`, this parameter does not take effect. InvokeStatus *string `json:"InvokeStatus,omitempty" xml:"InvokeStatus,omitempty"` // The maximum number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number of the page to return. // // Page numbers start from 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return per page. // // Maximum value: 50. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The execution mode of the command. If you specify both this parameter and `InstanceId`, this parameter does not take effect. Valid values: // // * Once: The command is immediately run. // * Period: The command is run on a schedule. // * NextRebootOnly: The command is run the next time the instances start. // * EveryReboot: The command is run every time the instances start. // // This parameter is empty by default, which indicates that commands run in all modes are queried. RepeatMode *string `json:"RepeatMode,omitempty" xml:"RepeatMode,omitempty"` // The ID of the resource group. After you set this parameter, command execution results in the specified resource group are queried. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags that are added to the command. Tag []*DescribeInvocationsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // Specifies whether the command is to be automatically run. Valid values: // // * true: The command is run by calling the `RunCommand` or `InvokeCommand` operation with `RepeatMode` set to `Period`, `NextRebootOnly`, or `EveryReboot`. // // * false: The command meets one of the following requirements: // // * The command is run by calling the `RunCommand` or `InvokeCommand` operation with `RepeatMode` set to `Once`. // * The command task is canceled, stopped, or completed. // // Default value: false. Timed *bool `json:"Timed,omitempty" xml:"Timed,omitempty"` } func (s DescribeInvocationsRequest) String() string { return tea.Prettify(s) } func (s DescribeInvocationsRequest) GoString() string { return s.String() } func (s *DescribeInvocationsRequest) SetCommandId(v string) *DescribeInvocationsRequest { s.CommandId = &v return s } func (s *DescribeInvocationsRequest) SetCommandName(v string) *DescribeInvocationsRequest { s.CommandName = &v return s } func (s *DescribeInvocationsRequest) SetCommandType(v string) *DescribeInvocationsRequest { s.CommandType = &v return s } func (s *DescribeInvocationsRequest) SetContentEncoding(v string) *DescribeInvocationsRequest { s.ContentEncoding = &v return s } func (s *DescribeInvocationsRequest) SetIncludeOutput(v bool) *DescribeInvocationsRequest { s.IncludeOutput = &v return s } func (s *DescribeInvocationsRequest) SetInstanceId(v string) *DescribeInvocationsRequest { s.InstanceId = &v return s } func (s *DescribeInvocationsRequest) SetInvokeId(v string) *DescribeInvocationsRequest { s.InvokeId = &v return s } func (s *DescribeInvocationsRequest) SetInvokeStatus(v string) *DescribeInvocationsRequest { s.InvokeStatus = &v return s } func (s *DescribeInvocationsRequest) SetMaxResults(v int32) *DescribeInvocationsRequest { s.MaxResults = &v return s } func (s *DescribeInvocationsRequest) SetNextToken(v string) *DescribeInvocationsRequest { s.NextToken = &v return s } func (s *DescribeInvocationsRequest) SetOwnerAccount(v string) *DescribeInvocationsRequest { s.OwnerAccount = &v return s } func (s *DescribeInvocationsRequest) SetOwnerId(v int64) *DescribeInvocationsRequest { s.OwnerId = &v return s } func (s *DescribeInvocationsRequest) SetPageNumber(v int64) *DescribeInvocationsRequest { s.PageNumber = &v return s } func (s *DescribeInvocationsRequest) SetPageSize(v int64) *DescribeInvocationsRequest { s.PageSize = &v return s } func (s *DescribeInvocationsRequest) SetRegionId(v string) *DescribeInvocationsRequest { s.RegionId = &v return s } func (s *DescribeInvocationsRequest) SetRepeatMode(v string) *DescribeInvocationsRequest { s.RepeatMode = &v return s } func (s *DescribeInvocationsRequest) SetResourceGroupId(v string) *DescribeInvocationsRequest { s.ResourceGroupId = &v return s } func (s *DescribeInvocationsRequest) SetResourceOwnerAccount(v string) *DescribeInvocationsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeInvocationsRequest) SetResourceOwnerId(v int64) *DescribeInvocationsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeInvocationsRequest) SetTag(v []*DescribeInvocationsRequestTag) *DescribeInvocationsRequest { s.Tag = v return s } func (s *DescribeInvocationsRequest) SetTimed(v bool) *DescribeInvocationsRequest { s.Timed = &v return s } type DescribeInvocationsRequestTag struct { // The key of tag N of the command. You can specify up to 20 tag keys for the command. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) 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`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the command. You can specify up to 20 tag values for the command. The tag value can be an empty string. It can be up to 128 characters in length and cannot contain `http://` or `https://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeInvocationsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeInvocationsRequestTag) GoString() string { return s.String() } func (s *DescribeInvocationsRequestTag) SetKey(v string) *DescribeInvocationsRequestTag { s.Key = &v return s } func (s *DescribeInvocationsRequestTag) SetValue(v string) *DescribeInvocationsRequestTag { s.Value = &v return s } type DescribeInvocationsResponseBody struct { // Details about the command executions. Invocations *DescribeInvocationsResponseBodyInvocations `json:"Invocations,omitempty" xml:"Invocations,omitempty" type:"Struct"` // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number of the returned page. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned on each page. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of the commands. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeInvocationsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponseBody) GoString() string { return s.String() } func (s *DescribeInvocationsResponseBody) SetInvocations(v *DescribeInvocationsResponseBodyInvocations) *DescribeInvocationsResponseBody { s.Invocations = v return s } func (s *DescribeInvocationsResponseBody) SetNextToken(v string) *DescribeInvocationsResponseBody { s.NextToken = &v return s } func (s *DescribeInvocationsResponseBody) SetPageNumber(v int64) *DescribeInvocationsResponseBody { s.PageNumber = &v return s } func (s *DescribeInvocationsResponseBody) SetPageSize(v int64) *DescribeInvocationsResponseBody { s.PageSize = &v return s } func (s *DescribeInvocationsResponseBody) SetRequestId(v string) *DescribeInvocationsResponseBody { s.RequestId = &v return s } func (s *DescribeInvocationsResponseBody) SetTotalCount(v int64) *DescribeInvocationsResponseBody { s.TotalCount = &v return s } type DescribeInvocationsResponseBodyInvocations struct { Invocation []*DescribeInvocationsResponseBodyInvocationsInvocation `json:"Invocation,omitempty" xml:"Invocation,omitempty" type:"Repeated"` } func (s DescribeInvocationsResponseBodyInvocations) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponseBodyInvocations) GoString() string { return s.String() } func (s *DescribeInvocationsResponseBodyInvocations) SetInvocation(v []*DescribeInvocationsResponseBodyInvocationsInvocation) *DescribeInvocationsResponseBodyInvocations { s.Invocation = v return s } type DescribeInvocationsResponseBodyInvocationsInvocation struct { // The command content. // // * If ContentEncoding is set to PlainText in the request, the original command content is returned. // * If ContentEncoding is set to Base64 in the request, the Base64-encoded command content is returned. CommandContent *string `json:"CommandContent,omitempty" xml:"CommandContent,omitempty"` // The command description. CommandDescription *string `json:"CommandDescription,omitempty" xml:"CommandDescription,omitempty"` // The command ID. CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The command name. CommandName *string `json:"CommandName,omitempty" xml:"CommandName,omitempty"` // The command type. CommandType *string `json:"CommandType,omitempty" xml:"CommandType,omitempty"` // The container ID. ContainerId *string `json:"ContainerId,omitempty" xml:"ContainerId,omitempty"` // The container name. ContainerName *string `json:"ContainerName,omitempty" xml:"ContainerName,omitempty"` // The time when the command task was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The schedule on which the command was run. Frequency *string `json:"Frequency,omitempty" xml:"Frequency,omitempty"` // The overall execution state of the command task. The value of this parameter depends on the execution states of the command task on all the involved instances. Valid values: // // * Pending: The command was being verified or sent. When the execution state on at least one instance is Pending, the overall execution state is Pending. // // * Scheduled: The command that is set to run on a schedule was sent and waiting to be run. When the execution state on at least one instance is Scheduled, the overall execution state is Scheduled. // // * Running: The command was being run on the instances. When the execution state on at least one instance is Running, the overall execution state is Running. // // * Success: When the execution state on at least one instance is Success and the execution state on the other instances is Stopped or Success, the overall execution state is Success. // // * One-time task: The execution was complete, and the exit code was 0. // * Scheduled task: The last execution was complete, the exit code was 0, and the specified period ended. // // * Failed: When the execution state on all instances is Stopped or Failed, the overall execution state is Failed. When the execution state on an instance is one of the following values, Failed is returned as the overall execution state: // // * Invalid: The command was invalid. // * Aborted: The command failed to be sent. // * Failed: The execution was complete, but the exit code was not 0. // * Timeout: The execution timed out. // * Error: An error occurred while the command was being run. // // * Stopping: The command task was being stopped. When the execution state on at least one instance is Stopping, the overall execution state is Stopping. // // * Stopped: The task was stopped. When the execution state on all instances is Stopped, the overall execution state is Stopped. When the execution state on an instance is one of the following values, Stopped is returned as the overall execution state: // // * Cancelled: The task was canceled. // * Terminated: The task was terminated. // // * PartialFailed: The execution was complete on some instances and failed on other instances. When the execution state is Success on some instances and is Failed or Stopped on the other instances, the overall execution state is PartialFailed. // // > `InvokeStatus` in the response functions similarly to this parameter. We recommend that you check the value of this parameter. InvocationStatus *string `json:"InvocationStatus,omitempty" xml:"InvocationStatus,omitempty"` // The ID of the command task. InvokeId *string `json:"InvokeId,omitempty" xml:"InvokeId,omitempty"` // The instances on which the command was run. InvokeInstances *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstances `json:"InvokeInstances,omitempty" xml:"InvokeInstances,omitempty" type:"Struct"` // The overall execution state of the command task. // // > We recommend that you ignore this parameter and check the value of `InvocationStatus` in the response to obtain the overall execution state. InvokeStatus *string `json:"InvokeStatus,omitempty" xml:"InvokeStatus,omitempty"` // The custom parameters in the command. Parameters *string `json:"Parameters,omitempty" xml:"Parameters,omitempty"` // The execution mode of the command. Valid values: // // * Once: The command is immediately run. // * Period: The command is run on a schedule. // * NextRebootOnly: The command is run the next time the instances start. // * EveryReboot: The command is run every time the instances start. RepeatMode *string `json:"RepeatMode,omitempty" xml:"RepeatMode,omitempty"` // The tags of the command task. Tags *DescribeInvocationsResponseBodyInvocationsInvocationTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // Indicates whether the command is to be automatically run. Timed *bool `json:"Timed,omitempty" xml:"Timed,omitempty"` // The maximum timeout period for the command execution. Unit: seconds. // // When a command cannot be run, the command execution times out. When a command execution times out, Cloud Assistant Agent forcefully terminates the command process by canceling the process ID (PID) of the command. Timeout *int64 `json:"Timeout,omitempty" xml:"Timeout,omitempty"` // The username used to run the command on the instances. Username *string `json:"Username,omitempty" xml:"Username,omitempty"` // The execution path of the command. WorkingDir *string `json:"WorkingDir,omitempty" xml:"WorkingDir,omitempty"` } func (s DescribeInvocationsResponseBodyInvocationsInvocation) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponseBodyInvocationsInvocation) GoString() string { return s.String() } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetCommandContent(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.CommandContent = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetCommandDescription(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.CommandDescription = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetCommandId(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.CommandId = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetCommandName(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.CommandName = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetCommandType(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.CommandType = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetContainerId(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.ContainerId = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetContainerName(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.ContainerName = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetCreationTime(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.CreationTime = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetFrequency(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.Frequency = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetInvocationStatus(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.InvocationStatus = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetInvokeId(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.InvokeId = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetInvokeInstances(v *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstances) *DescribeInvocationsResponseBodyInvocationsInvocation { s.InvokeInstances = v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetInvokeStatus(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.InvokeStatus = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetParameters(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.Parameters = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetRepeatMode(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.RepeatMode = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetTags(v *DescribeInvocationsResponseBodyInvocationsInvocationTags) *DescribeInvocationsResponseBodyInvocationsInvocation { s.Tags = v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetTimed(v bool) *DescribeInvocationsResponseBodyInvocationsInvocation { s.Timed = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetTimeout(v int64) *DescribeInvocationsResponseBodyInvocationsInvocation { s.Timeout = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetUsername(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.Username = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocation) SetWorkingDir(v string) *DescribeInvocationsResponseBodyInvocationsInvocation { s.WorkingDir = &v return s } type DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstances struct { InvokeInstance []*DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance `json:"InvokeInstance,omitempty" xml:"InvokeInstance,omitempty" type:"Repeated"` } func (s DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstances) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstances) GoString() string { return s.String() } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstances) SetInvokeInstance(v []*DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstances { s.InvokeInstance = v return s } type DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance struct { // The time when the command task was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The size of the Output text that was truncated and discarded because the Output value exceeded 24 KB in size. Dropped *int32 `json:"Dropped,omitempty" xml:"Dropped,omitempty"` // The error code for the failure to send or run the command. Valid values: // // * If this parameter is empty, the command was run as expected. // * InstanceNotExists: The specified instance did not exist or was released. // * InstanceReleased: The instance was released while the command was being run. // * InstanceNotRunning: The instance was not running when the command started to be run. // * CommandNotApplicable: The command was not applicable to the specified instance. // * AccountNotExists: The specified account did not exist. // * DirectoryNotExists: The specified directory did not exist. // * BadCronExpression: The specified cron expression for the execution schedule was invalid. // * ClientNotRunning: Cloud Assistant Agent was not running. // * ClientNotResponse: Cloud Assistant Agent did not respond. // * ClientIsUpgrading: Cloud Assistant Agent was being upgraded. // * ClientNeedUpgrade: Cloud Assistant Agent needed to be upgraded. // * DeliveryTimeout: The request to send the command timed out. // * ExecutionTimeout: The execution timed out. // * ExecutionException: An exception occurred while the command was being run. // * ExecutionInterrupted: The command task was interrupted. // * ExitCodeNonzero: The execution was complete, but the exit code was not 0. ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` // The error message returned when the command failed to be sent or run. Valid values: // // * If this parameter is empty, the command was run as expected. // * the specified instance does not exists // * the instance has released when create task // * the instance is not running when create task // * the command is not applicable // * the specified account does not exists // * the specified directory does not exists // * the cron job expression is invalid // * the aliyun service is not running on the instance // * the aliyun service in the instance does not response // * the aliyun service in the instance is upgrading now // * the aliyun service in the instance need upgrade // * the command delivery has been timeout // * the command execution has been timeout // * the command execution got an exception // * the command execution has been interrupted // * the command execution exit code is not zero // * the specified instance has been released ErrorInfo *string `json:"ErrorInfo,omitempty" xml:"ErrorInfo,omitempty"` // The exit code of the execution. Valid values: // // * For Linux instances, the value is the exit code of the shell process. // * For Windows instances, the value is the exit code of the batch or PowerShell process. ExitCode *int64 `json:"ExitCode,omitempty" xml:"ExitCode,omitempty"` // The time when the execution ended. FinishTime *string `json:"FinishTime,omitempty" xml:"FinishTime,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The execution state on a single instance. // // > We recommend that you ignore this parameter and check the value of `InvocationStatus` in the response to obtain the execution state. InstanceInvokeStatus *string `json:"InstanceInvokeStatus,omitempty" xml:"InstanceInvokeStatus,omitempty"` // The execution state on a single instance. Valid values: // // * Pending: The command was being verified or sent. // // * Invalid: The specified command type or parameter was invalid. // // * Aborted: The command failed to be sent to the instance. To send a command to an instance, make sure that the instance is in the Running state and the command can be sent to the instance within 1 minute. // // * Running: The command was being run on the instance. // // * Success: // // * One-time task: The execution was complete, and the exit code was 0. // * Scheduled task: The last execution was complete, the exit code was 0, and the specified period ended. // // * Failed: // // * One-time task: The execution was complete, but the exit code was not 0. // * Scheduled task: The last execution was complete, but the exit code was not 0. The specified period is about to end. // // * Error: The execution cannot proceed due to an exception. // // * Timeout: The execution timed out. // // * Cancelled: The execution was canceled, and the command was not run. // // * Stopping: The command task was being stopped. // // * Terminated: The execution was terminated before completion. // // * Scheduled: // // * One-time task: The execution state can never be Scheduled. // * Scheduled task: The command was waiting to be run. InvocationStatus *string `json:"InvocationStatus,omitempty" xml:"InvocationStatus,omitempty"` // The command output. // // * If ContentEncoding is set to PlainText in the request, the original command output is returned. // * If ContentEncoding is set to Base64 in the request, the Base64-encoded command output is returned. Output *string `json:"Output,omitempty" xml:"Output,omitempty"` // The number of times that the command was run on the instance. // // * If the command is set to run only once, the value is 0 or 1. // * If the command is set to run on a schedule, the value is the number of times that the command has been run on the instance. Repeats *int32 `json:"Repeats,omitempty" xml:"Repeats,omitempty"` // The time when the command started to be run on the instance. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The time when the command task was stopped. If you call the `StopInvocation` operation to stop the command task, the value of this parameter is the time when the operation is called. StopTime *string `json:"StopTime,omitempty" xml:"StopTime,omitempty"` // Indicates whether the command is to be automatically run. Timed *bool `json:"Timed,omitempty" xml:"Timed,omitempty"` // The time when the execution status was updated. UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"` } func (s DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) GoString() string { return s.String() } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetCreationTime(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.CreationTime = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetDropped(v int32) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.Dropped = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetErrorCode(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.ErrorCode = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetErrorInfo(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.ErrorInfo = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetExitCode(v int64) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.ExitCode = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetFinishTime(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.FinishTime = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetInstanceId(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.InstanceId = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetInstanceInvokeStatus(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.InstanceInvokeStatus = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetInvocationStatus(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.InvocationStatus = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetOutput(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.Output = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetRepeats(v int32) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.Repeats = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetStartTime(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.StartTime = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetStopTime(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.StopTime = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetTimed(v bool) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.Timed = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetUpdateTime(v string) *DescribeInvocationsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.UpdateTime = &v return s } type DescribeInvocationsResponseBodyInvocationsInvocationTags struct { Tag []*DescribeInvocationsResponseBodyInvocationsInvocationTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeInvocationsResponseBodyInvocationsInvocationTags) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponseBodyInvocationsInvocationTags) GoString() string { return s.String() } func (s *DescribeInvocationsResponseBodyInvocationsInvocationTags) SetTag(v []*DescribeInvocationsResponseBodyInvocationsInvocationTagsTag) *DescribeInvocationsResponseBodyInvocationsInvocationTags { s.Tag = v return s } type DescribeInvocationsResponseBodyInvocationsInvocationTagsTag struct { // The tag key of the command task. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the command task. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeInvocationsResponseBodyInvocationsInvocationTagsTag) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponseBodyInvocationsInvocationTagsTag) GoString() string { return s.String() } func (s *DescribeInvocationsResponseBodyInvocationsInvocationTagsTag) SetTagKey(v string) *DescribeInvocationsResponseBodyInvocationsInvocationTagsTag { s.TagKey = &v return s } func (s *DescribeInvocationsResponseBodyInvocationsInvocationTagsTag) SetTagValue(v string) *DescribeInvocationsResponseBodyInvocationsInvocationTagsTag { s.TagValue = &v return s } type DescribeInvocationsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeInvocationsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeInvocationsResponse) String() string { return tea.Prettify(s) } func (s DescribeInvocationsResponse) GoString() string { return s.String() } func (s *DescribeInvocationsResponse) SetHeaders(v map[string]*string) *DescribeInvocationsResponse { s.Headers = v return s } func (s *DescribeInvocationsResponse) SetStatusCode(v int32) *DescribeInvocationsResponse { s.StatusCode = &v return s } func (s *DescribeInvocationsResponse) SetBody(v *DescribeInvocationsResponseBody) *DescribeInvocationsResponse { s.Body = v return s } type DescribeKeyPairsRequest struct { // Specifies whether to include PublicKey in the response. Default value: false. IncludePublicKey *bool `json:"IncludePublicKey,omitempty" xml:"IncludePublicKey,omitempty"` // The fingerprint of the key pair. The message-digest algorithm 5 (MD5) is used based on the public key fingerprint format defined in RFC 4716. For more information, see [RFC 4716](https://tools.ietf.org/html/rfc4716). KeyPairFingerPrint *string `json:"KeyPairFingerPrint,omitempty" xml:"KeyPairFingerPrint,omitempty"` // The name of the key pair. You can use the asterisk (\*) symbol as a wildcard in regular expressions to perform a fuzzy search for key pairs. Sample patterns: // // * `*SshKey`: queries key pairs whose names end with SshKey, including the key pair named SshKey. // * `SshKey*`: queries key pairs whose names start with SshKey, including the key pair named SshKey. // * `*SshKey*`: queries key pairs whose names include SshKey, including the key pair named SshKey. // * `SshKey`: queries the key pair named SshKey. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. Maximum value: 50. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the key pair. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags. Tag []*DescribeKeyPairsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeKeyPairsRequest) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsRequest) GoString() string { return s.String() } func (s *DescribeKeyPairsRequest) SetIncludePublicKey(v bool) *DescribeKeyPairsRequest { s.IncludePublicKey = &v return s } func (s *DescribeKeyPairsRequest) SetKeyPairFingerPrint(v string) *DescribeKeyPairsRequest { s.KeyPairFingerPrint = &v return s } func (s *DescribeKeyPairsRequest) SetKeyPairName(v string) *DescribeKeyPairsRequest { s.KeyPairName = &v return s } func (s *DescribeKeyPairsRequest) SetOwnerId(v int64) *DescribeKeyPairsRequest { s.OwnerId = &v return s } func (s *DescribeKeyPairsRequest) SetPageNumber(v int32) *DescribeKeyPairsRequest { s.PageNumber = &v return s } func (s *DescribeKeyPairsRequest) SetPageSize(v int32) *DescribeKeyPairsRequest { s.PageSize = &v return s } func (s *DescribeKeyPairsRequest) SetRegionId(v string) *DescribeKeyPairsRequest { s.RegionId = &v return s } func (s *DescribeKeyPairsRequest) SetResourceGroupId(v string) *DescribeKeyPairsRequest { s.ResourceGroupId = &v return s } func (s *DescribeKeyPairsRequest) SetResourceOwnerAccount(v string) *DescribeKeyPairsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeKeyPairsRequest) SetResourceOwnerId(v int64) *DescribeKeyPairsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeKeyPairsRequest) SetTag(v []*DescribeKeyPairsRequestTag) *DescribeKeyPairsRequest { s.Tag = v return s } type DescribeKeyPairsRequestTag struct { // The key of tag N of the key pair. Valid values of N: 1 to 20. // // If a single tag is specified to query resources, up to 1,000 resources that are bound with this tag can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that are bound with all these tags can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the key pair. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeKeyPairsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsRequestTag) GoString() string { return s.String() } func (s *DescribeKeyPairsRequestTag) SetKey(v string) *DescribeKeyPairsRequestTag { s.Key = &v return s } func (s *DescribeKeyPairsRequestTag) SetValue(v string) *DescribeKeyPairsRequestTag { s.Value = &v return s } type DescribeKeyPairsResponseBody struct { // The information of the key pairs. KeyPairs *DescribeKeyPairsResponseBodyKeyPairs `json:"KeyPairs,omitempty" xml:"KeyPairs,omitempty" type:"Struct"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of key pairs. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeKeyPairsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsResponseBody) GoString() string { return s.String() } func (s *DescribeKeyPairsResponseBody) SetKeyPairs(v *DescribeKeyPairsResponseBodyKeyPairs) *DescribeKeyPairsResponseBody { s.KeyPairs = v return s } func (s *DescribeKeyPairsResponseBody) SetPageNumber(v int32) *DescribeKeyPairsResponseBody { s.PageNumber = &v return s } func (s *DescribeKeyPairsResponseBody) SetPageSize(v int32) *DescribeKeyPairsResponseBody { s.PageSize = &v return s } func (s *DescribeKeyPairsResponseBody) SetRequestId(v string) *DescribeKeyPairsResponseBody { s.RequestId = &v return s } func (s *DescribeKeyPairsResponseBody) SetTotalCount(v int32) *DescribeKeyPairsResponseBody { s.TotalCount = &v return s } type DescribeKeyPairsResponseBodyKeyPairs struct { KeyPair []*DescribeKeyPairsResponseBodyKeyPairsKeyPair `json:"KeyPair,omitempty" xml:"KeyPair,omitempty" type:"Repeated"` } func (s DescribeKeyPairsResponseBodyKeyPairs) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsResponseBodyKeyPairs) GoString() string { return s.String() } func (s *DescribeKeyPairsResponseBodyKeyPairs) SetKeyPair(v []*DescribeKeyPairsResponseBodyKeyPairsKeyPair) *DescribeKeyPairsResponseBodyKeyPairs { s.KeyPair = v return s } type DescribeKeyPairsResponseBodyKeyPairsKeyPair struct { // The time when the key pair was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The fingerprint of the key pair. KeyPairFingerPrint *string `json:"KeyPairFingerPrint,omitempty" xml:"KeyPairFingerPrint,omitempty"` // The name of the key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The content of the public key. PublicKey *string `json:"PublicKey,omitempty" xml:"PublicKey,omitempty"` // The ID of the resource group. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The tags of the key pair. Tags *DescribeKeyPairsResponseBodyKeyPairsKeyPairTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` } func (s DescribeKeyPairsResponseBodyKeyPairsKeyPair) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsResponseBodyKeyPairsKeyPair) GoString() string { return s.String() } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPair) SetCreationTime(v string) *DescribeKeyPairsResponseBodyKeyPairsKeyPair { s.CreationTime = &v return s } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPair) SetKeyPairFingerPrint(v string) *DescribeKeyPairsResponseBodyKeyPairsKeyPair { s.KeyPairFingerPrint = &v return s } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPair) SetKeyPairName(v string) *DescribeKeyPairsResponseBodyKeyPairsKeyPair { s.KeyPairName = &v return s } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPair) SetPublicKey(v string) *DescribeKeyPairsResponseBodyKeyPairsKeyPair { s.PublicKey = &v return s } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPair) SetResourceGroupId(v string) *DescribeKeyPairsResponseBodyKeyPairsKeyPair { s.ResourceGroupId = &v return s } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPair) SetTags(v *DescribeKeyPairsResponseBodyKeyPairsKeyPairTags) *DescribeKeyPairsResponseBodyKeyPairsKeyPair { s.Tags = v return s } type DescribeKeyPairsResponseBodyKeyPairsKeyPairTags struct { Tag []*DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeKeyPairsResponseBodyKeyPairsKeyPairTags) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsResponseBodyKeyPairsKeyPairTags) GoString() string { return s.String() } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPairTags) SetTag(v []*DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag) *DescribeKeyPairsResponseBodyKeyPairsKeyPairTags { s.Tag = v return s } type DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag struct { // The tag key of the key pair. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the key pair. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag) GoString() string { return s.String() } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag) SetTagKey(v string) *DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag { s.TagKey = &v return s } func (s *DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag) SetTagValue(v string) *DescribeKeyPairsResponseBodyKeyPairsKeyPairTagsTag { s.TagValue = &v return s } type DescribeKeyPairsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeKeyPairsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeKeyPairsResponse) String() string { return tea.Prettify(s) } func (s DescribeKeyPairsResponse) GoString() string { return s.String() } func (s *DescribeKeyPairsResponse) SetHeaders(v map[string]*string) *DescribeKeyPairsResponse { s.Headers = v return s } func (s *DescribeKeyPairsResponse) SetStatusCode(v int32) *DescribeKeyPairsResponse { s.StatusCode = &v return s } func (s *DescribeKeyPairsResponse) SetBody(v *DescribeKeyPairsResponseBody) *DescribeKeyPairsResponse { s.Body = v return s } type DescribeLaunchTemplateVersionsRequest struct { // Specifies whether to query the default version. DefaultVersion *bool `json:"DefaultVersion,omitempty" xml:"DefaultVersion,omitempty"` // Specifies whether to query the configurations of the launch template. Valid values: // // * true: queries the basic information and other details of the launch template. The details include the image ID and system disk size. // * false: queries only the basic information of the launch template. The basic information includes the template ID, template name, and default version. // // Default value: true. DetailFlag *bool `json:"DetailFlag,omitempty" xml:"DetailFlag,omitempty"` // The ID of the launch template. // // You must set LaunchTemplateId or LaunchTemplateName to specify a launch template. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The name of the launch template. LaunchTemplateName *string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty"` // Version N of the launch template. LaunchTemplateVersion []*int64 `json:"LaunchTemplateVersion,omitempty" xml:"LaunchTemplateVersion,omitempty" type:"Repeated"` // The maximum version number in the version range to query. MaxVersion *int64 `json:"MaxVersion,omitempty" xml:"MaxVersion,omitempty"` // The minimum version number in the version range to query. MinVersion *int64 `json:"MinVersion,omitempty" xml:"MinVersion,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the launch template. // // You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeLaunchTemplateVersionsRequest) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsRequest) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsRequest) SetDefaultVersion(v bool) *DescribeLaunchTemplateVersionsRequest { s.DefaultVersion = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetDetailFlag(v bool) *DescribeLaunchTemplateVersionsRequest { s.DetailFlag = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetLaunchTemplateId(v string) *DescribeLaunchTemplateVersionsRequest { s.LaunchTemplateId = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetLaunchTemplateName(v string) *DescribeLaunchTemplateVersionsRequest { s.LaunchTemplateName = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetLaunchTemplateVersion(v []*int64) *DescribeLaunchTemplateVersionsRequest { s.LaunchTemplateVersion = v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetMaxVersion(v int64) *DescribeLaunchTemplateVersionsRequest { s.MaxVersion = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetMinVersion(v int64) *DescribeLaunchTemplateVersionsRequest { s.MinVersion = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetOwnerAccount(v string) *DescribeLaunchTemplateVersionsRequest { s.OwnerAccount = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetOwnerId(v int64) *DescribeLaunchTemplateVersionsRequest { s.OwnerId = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetPageNumber(v int32) *DescribeLaunchTemplateVersionsRequest { s.PageNumber = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetPageSize(v int32) *DescribeLaunchTemplateVersionsRequest { s.PageSize = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetRegionId(v string) *DescribeLaunchTemplateVersionsRequest { s.RegionId = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetResourceOwnerAccount(v string) *DescribeLaunchTemplateVersionsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeLaunchTemplateVersionsRequest) SetResourceOwnerId(v int64) *DescribeLaunchTemplateVersionsRequest { s.ResourceOwnerId = &v return s } type DescribeLaunchTemplateVersionsResponseBody struct { // Details about the launch template versions. LaunchTemplateVersionSets *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets `json:"LaunchTemplateVersionSets,omitempty" xml:"LaunchTemplateVersionSets,omitempty" type:"Struct"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of launch templates. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeLaunchTemplateVersionsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBody) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBody) SetLaunchTemplateVersionSets(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets) *DescribeLaunchTemplateVersionsResponseBody { s.LaunchTemplateVersionSets = v return s } func (s *DescribeLaunchTemplateVersionsResponseBody) SetPageNumber(v int32) *DescribeLaunchTemplateVersionsResponseBody { s.PageNumber = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBody) SetPageSize(v int32) *DescribeLaunchTemplateVersionsResponseBody { s.PageSize = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBody) SetRequestId(v string) *DescribeLaunchTemplateVersionsResponseBody { s.RequestId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBody) SetTotalCount(v int32) *DescribeLaunchTemplateVersionsResponseBody { s.TotalCount = &v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets struct { LaunchTemplateVersionSet []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet `json:"LaunchTemplateVersionSet,omitempty" xml:"LaunchTemplateVersionSet,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets) SetLaunchTemplateVersionSet(v []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets { s.LaunchTemplateVersionSet = v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet struct { // The time when the launch template was created. CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` // The creator of the launch template. CreatedBy *string `json:"CreatedBy,omitempty" xml:"CreatedBy,omitempty"` // Indicates whether the launch template version is the default version. DefaultVersion *bool `json:"DefaultVersion,omitempty" xml:"DefaultVersion,omitempty"` // The configurations of the launch template. LaunchTemplateData *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData `json:"LaunchTemplateData,omitempty" xml:"LaunchTemplateData,omitempty" type:"Struct"` // The ID of the launch template. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The name of the launch template. LaunchTemplateName *string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty"` // The time when the launch template was modified. ModifiedTime *string `json:"ModifiedTime,omitempty" xml:"ModifiedTime,omitempty"` // The description of the launch template version. VersionDescription *string `json:"VersionDescription,omitempty" xml:"VersionDescription,omitempty"` // The number of the launch template version. VersionNumber *int64 `json:"VersionNumber,omitempty" xml:"VersionNumber,omitempty"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetCreateTime(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.CreateTime = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetCreatedBy(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.CreatedBy = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetDefaultVersion(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.DefaultVersion = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetLaunchTemplateData(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.LaunchTemplateData = v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetLaunchTemplateId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.LaunchTemplateId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetLaunchTemplateName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.LaunchTemplateName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetModifiedTime(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.ModifiedTime = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetVersionDescription(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.VersionDescription = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet) SetVersionNumber(v int64) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSet { s.VersionNumber = &v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData struct { SystemDisk *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // The automatic release time of the instance. AutoReleaseTime *string `json:"AutoReleaseTime,omitempty" xml:"AutoReleaseTime,omitempty"` // The performance mode of the burstable instance. Valid values: // // * Standard: standard mode. For more information, see the "Standard mode" section in [Overview](~~59977#section-svb-w9d-dju~~). // * Unlimited: unlimited mode. For more information, see the "Unlimited mode" section in [Overview](~~59977#section-svb-w9d-dju~~). CreditSpecification *string `json:"CreditSpecification,omitempty" xml:"CreditSpecification,omitempty"` // Details about the data disks. DataDisks *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks `json:"DataDisks,omitempty" xml:"DataDisks,omitempty" type:"Struct"` // Specifies whether to enable release protection for the instance. This parameter determines whether you can use the ECS console or call the [DeleteInstance](~~25507~~) operation to release the instance. Valid values: // // - true // - false // // Default value: false. // // >This parameter is applicable only to pay-as-you-go instances. It can protect instances against manual releases, but not against automatic releases. DeletionProtection *bool `json:"DeletionProtection,omitempty" xml:"DeletionProtection,omitempty"` // The ID of the deployment set. DeploymentSetId *string `json:"DeploymentSetId,omitempty" xml:"DeploymentSetId,omitempty"` // The description of the instance. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Indicates whether to enable the operating system configuration of the instance. EnableVmOsConfig *bool `json:"EnableVmOsConfig,omitempty" xml:"EnableVmOsConfig,omitempty"` // The hostname of the instance. HostName *string `json:"HostName,omitempty" xml:"HostName,omitempty"` // The ID of the image. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The source of the image. Valid values: // // * system: public images provided by Alibaba Cloud // * self: custom images that you create // * others: shared images from other Alibaba Cloud accounts // * marketplace: Alibaba Cloud Marketplace images ImageOwnerAlias *string `json:"ImageOwnerAlias,omitempty" xml:"ImageOwnerAlias,omitempty"` // The billing method of the instance. Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The name of the instance. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The billing method for network usage. InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum inbound public bandwidth. InternetMaxBandwidthIn *int32 `json:"InternetMaxBandwidthIn,omitempty" xml:"InternetMaxBandwidthIn,omitempty"` // The maximum outbound public bandwidth. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Indicates whether the instance is I/O optimized. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The number of IPv6 addresses to assign to the instance. Ipv6AddressCount *int32 `json:"Ipv6AddressCount,omitempty" xml:"Ipv6AddressCount,omitempty"` // The name of the key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // Details about the secondary elastic network interfaces (ENIs). NetworkInterfaces *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces `json:"NetworkInterfaces,omitempty" xml:"NetworkInterfaces,omitempty" type:"Struct"` // The network type. Valid values: // // * classic: classic network // * vpc: VPC NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` // Indicates whether to use the password preset in the image. PasswordInherit *bool `json:"PasswordInherit,omitempty" xml:"PasswordInherit,omitempty"` // The subscription duration. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The private IP address to assign to the instance. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // The name of the instance RAM role. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The ID of the resource group to which the launch template belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // Indicates whether to enable security hardening. SecurityEnhancementStrategy *string `json:"SecurityEnhancementStrategy,omitempty" xml:"SecurityEnhancementStrategy,omitempty"` // The ID of the security group to which to assign the instance. // // > The `SecurityGroupId` and `SecurityGroupIds` parameters are mutually exclusive in the response. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The IDs of the security groups to which to assign the instance. The valid values of N are based on the maximum number of security groups to which the instance can belong. For more information, see the "Security group limits" section in [Limits](~~25412~~). // // > You cannot specify both the `SecurityGroupId` and `SecurityGroupIds.N` parameters. SecurityGroupIds *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Struct"` // The protection period of the preemptible instance. Unit: hours. Valid values: // // - 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market prices and checks the resource inventory to determine whether to retain or release the instance. // - 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance can run for one hour. The system compares the biding price with the market prices and checks the resource inventory to determine whether to retain or release the instance. // // Alibaba Cloud sent ECS system events to notify you 5 minutes before the instance is released. Preemptible instances were billed by second. We recommend that you specify an appropriate protection period based on your business requirements. // // >This parameter was returned when the SpotStrategy parameter was set to SpotWithPriceLimit or SpotAsPriceGo. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The maximum hourly price of the preemptible instance. SpotPriceLimit *float32 `json:"SpotPriceLimit,omitempty" xml:"SpotPriceLimit,omitempty"` // The bidding policy for the pay-as-you-go instance. Valid values: // // * NoSpot: The instance is created as a regular pay-as-you-go instance. // * SpotWithPriceLimit: The instance is created as a preemptible instance with a user-defined maximum hourly price. // * SpotAsPriceGo: The instance is created as a preemptible instance for which the market price at the time of purchase is automatically used as the bid price. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The tags to add to the instance. Tags *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The user data of the instance, which is Base64-encoded. UserData *string `json:"UserData,omitempty" xml:"UserData,omitempty"` // The ID of the vSwitch to which to connect the instance. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the virtual private cloud (VPC). VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` // The ID of the zone. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetSystemDisk(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.SystemDisk = v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetAutoReleaseTime(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.AutoReleaseTime = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetCreditSpecification(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.CreditSpecification = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetDataDisks(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.DataDisks = v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetDeletionProtection(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.DeletionProtection = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetDeploymentSetId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.DeploymentSetId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetDescription(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.Description = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetEnableVmOsConfig(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.EnableVmOsConfig = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetHostName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.HostName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetImageId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.ImageId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetImageOwnerAlias(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.ImageOwnerAlias = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetInstanceChargeType(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.InstanceChargeType = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetInstanceName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.InstanceName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetInstanceType(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.InstanceType = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetInternetChargeType(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.InternetChargeType = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetInternetMaxBandwidthIn(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.InternetMaxBandwidthIn = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetInternetMaxBandwidthOut(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.InternetMaxBandwidthOut = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetIoOptimized(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.IoOptimized = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetIpv6AddressCount(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.Ipv6AddressCount = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetKeyPairName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.KeyPairName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetNetworkInterfaces(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.NetworkInterfaces = v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetNetworkType(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.NetworkType = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetPasswordInherit(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.PasswordInherit = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetPeriod(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.Period = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetPrivateIpAddress(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.PrivateIpAddress = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetRamRoleName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.RamRoleName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetResourceGroupId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.ResourceGroupId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetSecurityEnhancementStrategy(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.SecurityEnhancementStrategy = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetSecurityGroupId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.SecurityGroupId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetSecurityGroupIds(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.SecurityGroupIds = v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetSpotDuration(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.SpotDuration = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetSpotPriceLimit(v float32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.SpotPriceLimit = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetSpotStrategy(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.SpotStrategy = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetTags(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.Tags = v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetUserData(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.UserData = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetVSwitchId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.VSwitchId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetVpcId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.VpcId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData) SetZoneId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData { s.ZoneId = &v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk struct { AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` Category *string `json:"Category,omitempty" xml:"Category,omitempty"` DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` Encrypted *string `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` Iops *int32 `json:"Iops,omitempty" xml:"Iops,omitempty"` PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetAutoSnapshotPolicyId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.AutoSnapshotPolicyId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetBurstingEnabled(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.BurstingEnabled = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetCategory(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.Category = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetDeleteWithInstance(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.DeleteWithInstance = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetDescription(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.Description = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetDiskName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.DiskName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetEncrypted(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.Encrypted = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetIops(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.Iops = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetPerformanceLevel(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.PerformanceLevel = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetProvisionedIops(v int64) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.ProvisionedIops = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk) SetSize(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSystemDisk { s.Size = &v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks struct { DataDisk []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk `json:"DataDisk,omitempty" xml:"DataDisk,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks) SetDataDisk(v []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisks { s.DataDisk = v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk struct { // The ID of the automatic snapshot policy. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" xml:"AutoSnapshotPolicyId,omitempty"` // Indicates whether to enable the performance burst feature. Valid values: // // * true: enables the performance burst feature. // * false: does not enable the performance burst feature. BurstingEnabled *bool `json:"BurstingEnabled,omitempty" xml:"BurstingEnabled,omitempty"` // The category of the data disk. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // Indicates whether to release the data disk when the instance is released. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The description of the data disk. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The device name of the data disk. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The name of the data disk. DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // Indicates whether to encrypt the data disk. Encrypted *string `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The performance level of ESSD to use as the data disk. This parameter is returned only when tne value of `Category` is cloud_essd. Valid values: // // * PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. // * PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. // * PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. // * PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS. PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS} // // Baseline IOPS = min{1,800 + 50 × Capacity, 50,000} // // > This parameter is available only if the corresponding disk category parameter is set to cloud_auto. For more information, see [ESSD AutoPL disks](~~368372~~) and [Modify the performance configurations of an ESSD AutoPL disk](~~413275~~). ProvisionedIops *int64 `json:"ProvisionedIops,omitempty" xml:"ProvisionedIops,omitempty"` // The size of the data disk. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` // The ID of the snapshot to use to create the data disk. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetAutoSnapshotPolicyId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.AutoSnapshotPolicyId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetBurstingEnabled(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.BurstingEnabled = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetCategory(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.Category = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetDeleteWithInstance(v bool) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.DeleteWithInstance = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetDescription(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.Description = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetDevice(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.Device = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetDiskName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.DiskName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetEncrypted(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.Encrypted = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetPerformanceLevel(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.PerformanceLevel = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetProvisionedIops(v int64) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.ProvisionedIops = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetSize(v int32) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.Size = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk) SetSnapshotId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataDataDisksDataDisk { s.SnapshotId = &v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces struct { NetworkInterface []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface `json:"NetworkInterface,omitempty" xml:"NetworkInterface,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces) SetNetworkInterface(v []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces { s.NetworkInterface = v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface struct { // The description of the secondary ENI. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The name of the secondary ENI. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The communication mode of the ENI. Valid values: // // * Standard: The TCP communication mode is used. // * HighPerformance: Elastic RDMA Interface (ERI) is enabled and the remote direct memory access (RDMA) communication mode is used. // // > This parameter can have a value of HighPerformance only when the ENI is attached to a c7re RDMA-enhanced instance that resides in Beijing Zone K. NetworkInterfaceTrafficMode *string `json:"NetworkInterfaceTrafficMode,omitempty" xml:"NetworkInterfaceTrafficMode,omitempty"` // The primary private IP address of the secondary ENI. PrimaryIpAddress *string `json:"PrimaryIpAddress,omitempty" xml:"PrimaryIpAddress,omitempty"` // The ID of the security group to which to assign the ENI. The security group and the ENI must belong to the same VPC. // // > You must specify `SecurityGroupId` or `SecurityGroupIds.N` but not both. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The ID of security group *N* with which you want to associate the ECS instance. Valid values of *N* vary based on the maximum number of security groups with which the instance can be associated. For more information, see the "Security group limits" section in the [Limits](~~25412~~) topic. // // > You cannot specify the **SecurityGroupId** and **SecurityGroupIds.N** parameters at the same time. SecurityGroupIds *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterfaceSecurityGroupIds `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Struct"` // The ID of the vSwitch to which to connect the secondary ENI. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetDescription(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.Description = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetInstanceType(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.InstanceType = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetNetworkInterfaceName(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.NetworkInterfaceName = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetNetworkInterfaceTrafficMode(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.NetworkInterfaceTrafficMode = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetPrimaryIpAddress(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.PrimaryIpAddress = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetSecurityGroupId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.SecurityGroupId = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetSecurityGroupIds(v *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterfaceSecurityGroupIds) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.SecurityGroupIds = v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface) SetVSwitchId(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface { s.VSwitchId = &v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterfaceSecurityGroupIds struct { SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterfaceSecurityGroupIds) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterfaceSecurityGroupIds) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterfaceSecurityGroupIds) SetSecurityGroupId(v []*string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterfaceSecurityGroupIds { s.SecurityGroupId = v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds struct { SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds) SetSecurityGroupId(v []*string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds { s.SecurityGroupId = v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags struct { InstanceTag []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag `json:"InstanceTag,omitempty" xml:"InstanceTag,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags) SetInstanceTag(v []*DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags { s.InstanceTag = v return s } type DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag struct { // The key of the tag to add to the instance. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of the tag to add to the instance. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag) SetKey(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag { s.Key = &v return s } func (s *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag) SetValue(v string) *DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag { s.Value = &v return s } type DescribeLaunchTemplateVersionsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeLaunchTemplateVersionsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeLaunchTemplateVersionsResponse) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplateVersionsResponse) GoString() string { return s.String() } func (s *DescribeLaunchTemplateVersionsResponse) SetHeaders(v map[string]*string) *DescribeLaunchTemplateVersionsResponse { s.Headers = v return s } func (s *DescribeLaunchTemplateVersionsResponse) SetStatusCode(v int32) *DescribeLaunchTemplateVersionsResponse { s.StatusCode = &v return s } func (s *DescribeLaunchTemplateVersionsResponse) SetBody(v *DescribeLaunchTemplateVersionsResponseBody) *DescribeLaunchTemplateVersionsResponse { s.Body = v return s } type DescribeLaunchTemplatesRequest struct { // The IDs of launch templates. You can specify up to 100 launch template IDs. You must specify LaunchTemplateId or LaunchTemplateName to determine a launch template. LaunchTemplateId []*string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty" type:"Repeated"` // The names of launch templates. You can specify up to 100 launch template names. LaunchTemplateName []*string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of entries to return on each page. // // Default value: 10. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The ID of the resource group to which the launch template belongs. If you specify this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be returned. // // > Resources in the default resource group are displayed in the response regardless of whether you specify this parameter. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The tags of the launch template. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The IDs of launch templates. You can specify up to 100 launch template IDs. You must specify LaunchTemplateId or LaunchTemplateName to determine a launch template. TemplateResourceGroupId *string `json:"TemplateResourceGroupId,omitempty" xml:"TemplateResourceGroupId,omitempty"` // The tag of the launch template. TemplateTag []*DescribeLaunchTemplatesRequestTemplateTag `json:"TemplateTag,omitempty" xml:"TemplateTag,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplatesRequest) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesRequest) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesRequest) SetLaunchTemplateId(v []*string) *DescribeLaunchTemplatesRequest { s.LaunchTemplateId = v return s } func (s *DescribeLaunchTemplatesRequest) SetLaunchTemplateName(v []*string) *DescribeLaunchTemplatesRequest { s.LaunchTemplateName = v return s } func (s *DescribeLaunchTemplatesRequest) SetOwnerAccount(v string) *DescribeLaunchTemplatesRequest { s.OwnerAccount = &v return s } func (s *DescribeLaunchTemplatesRequest) SetOwnerId(v int64) *DescribeLaunchTemplatesRequest { s.OwnerId = &v return s } func (s *DescribeLaunchTemplatesRequest) SetPageNumber(v int32) *DescribeLaunchTemplatesRequest { s.PageNumber = &v return s } func (s *DescribeLaunchTemplatesRequest) SetPageSize(v int32) *DescribeLaunchTemplatesRequest { s.PageSize = &v return s } func (s *DescribeLaunchTemplatesRequest) SetRegionId(v string) *DescribeLaunchTemplatesRequest { s.RegionId = &v return s } func (s *DescribeLaunchTemplatesRequest) SetResourceOwnerAccount(v string) *DescribeLaunchTemplatesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeLaunchTemplatesRequest) SetResourceOwnerId(v int64) *DescribeLaunchTemplatesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeLaunchTemplatesRequest) SetTemplateResourceGroupId(v string) *DescribeLaunchTemplatesRequest { s.TemplateResourceGroupId = &v return s } func (s *DescribeLaunchTemplatesRequest) SetTemplateTag(v []*DescribeLaunchTemplatesRequestTemplateTag) *DescribeLaunchTemplatesRequest { s.TemplateTag = v return s } type DescribeLaunchTemplatesRequestTemplateTag struct { // The value of tag N of the launch template. Valid values of N: 1 to 20. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The number of the page to return. Pages start from page 1. // // Default value: 1. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeLaunchTemplatesRequestTemplateTag) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesRequestTemplateTag) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesRequestTemplateTag) SetKey(v string) *DescribeLaunchTemplatesRequestTemplateTag { s.Key = &v return s } func (s *DescribeLaunchTemplatesRequestTemplateTag) SetValue(v string) *DescribeLaunchTemplatesRequestTemplateTag { s.Value = &v return s } type DescribeLaunchTemplatesResponseBody struct { // The information about the launch template. LaunchTemplateSets *DescribeLaunchTemplatesResponseBodyLaunchTemplateSets `json:"LaunchTemplateSets,omitempty" xml:"LaunchTemplateSets,omitempty" type:"Struct"` // The total number of launch templates. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The ID of the request. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The page number of the returned page. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The information about the launch templates. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeLaunchTemplatesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesResponseBody) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesResponseBody) SetLaunchTemplateSets(v *DescribeLaunchTemplatesResponseBodyLaunchTemplateSets) *DescribeLaunchTemplatesResponseBody { s.LaunchTemplateSets = v return s } func (s *DescribeLaunchTemplatesResponseBody) SetPageNumber(v int32) *DescribeLaunchTemplatesResponseBody { s.PageNumber = &v return s } func (s *DescribeLaunchTemplatesResponseBody) SetPageSize(v int32) *DescribeLaunchTemplatesResponseBody { s.PageSize = &v return s } func (s *DescribeLaunchTemplatesResponseBody) SetRequestId(v string) *DescribeLaunchTemplatesResponseBody { s.RequestId = &v return s } func (s *DescribeLaunchTemplatesResponseBody) SetTotalCount(v int32) *DescribeLaunchTemplatesResponseBody { s.TotalCount = &v return s } type DescribeLaunchTemplatesResponseBodyLaunchTemplateSets struct { LaunchTemplateSet []*DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet `json:"LaunchTemplateSet,omitempty" xml:"LaunchTemplateSet,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSets) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSets) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSets) SetLaunchTemplateSet(v []*DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSets { s.LaunchTemplateSet = v return s } type DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet struct { // The ID of the resource group to which the launch template belongs. CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` // The latest version number of the launch template. CreatedBy *string `json:"CreatedBy,omitempty" xml:"CreatedBy,omitempty"` // The time when the launch template was modified. DefaultVersionNumber *int64 `json:"DefaultVersionNumber,omitempty" xml:"DefaultVersionNumber,omitempty"` // The tags of the launch template. LatestVersionNumber *int64 `json:"LatestVersionNumber,omitempty" xml:"LatestVersionNumber,omitempty"` // The time when the launch template was created. LaunchTemplateId *string `json:"LaunchTemplateId,omitempty" xml:"LaunchTemplateId,omitempty"` // The default version number of the launch template. LaunchTemplateName *string `json:"LaunchTemplateName,omitempty" xml:"LaunchTemplateName,omitempty"` // The ID of the launch template. ModifiedTime *string `json:"ModifiedTime,omitempty" xml:"ModifiedTime,omitempty"` // The creator of the launch template. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The tag of the launch template. Tags *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetCreateTime(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.CreateTime = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetCreatedBy(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.CreatedBy = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetDefaultVersionNumber(v int64) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.DefaultVersionNumber = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetLatestVersionNumber(v int64) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.LatestVersionNumber = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetLaunchTemplateId(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.LaunchTemplateId = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetLaunchTemplateName(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.LaunchTemplateName = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetModifiedTime(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.ModifiedTime = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetResourceGroupId(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.ResourceGroupId = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet) SetTags(v *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTags) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSet { s.Tags = v return s } type DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTags struct { Tag []*DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTags) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTags) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTags) SetTag(v []*DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTags { s.Tag = v return s } type DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag struct { TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The key of tag N of the launch template. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag) SetTagKey(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag { s.TagKey = &v return s } func (s *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag) SetTagValue(v string) *DescribeLaunchTemplatesResponseBodyLaunchTemplateSetsLaunchTemplateSetTagsTag { s.TagValue = &v return s } type DescribeLaunchTemplatesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeLaunchTemplatesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeLaunchTemplatesResponse) String() string { return tea.Prettify(s) } func (s DescribeLaunchTemplatesResponse) GoString() string { return s.String() } func (s *DescribeLaunchTemplatesResponse) SetHeaders(v map[string]*string) *DescribeLaunchTemplatesResponse { s.Headers = v return s } func (s *DescribeLaunchTemplatesResponse) SetStatusCode(v int32) *DescribeLaunchTemplatesResponse { s.StatusCode = &v return s } func (s *DescribeLaunchTemplatesResponse) SetBody(v *DescribeLaunchTemplatesResponseBody) *DescribeLaunchTemplatesResponse { s.Body = v return s } type DescribeLimitationRequest struct { Limitation *string `json:"Limitation,omitempty" xml:"Limitation,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeLimitationRequest) String() string { return tea.Prettify(s) } func (s DescribeLimitationRequest) GoString() string { return s.String() } func (s *DescribeLimitationRequest) SetLimitation(v string) *DescribeLimitationRequest { s.Limitation = &v return s } func (s *DescribeLimitationRequest) SetOwnerAccount(v string) *DescribeLimitationRequest { s.OwnerAccount = &v return s } func (s *DescribeLimitationRequest) SetOwnerId(v int64) *DescribeLimitationRequest { s.OwnerId = &v return s } func (s *DescribeLimitationRequest) SetResourceOwnerAccount(v string) *DescribeLimitationRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeLimitationRequest) SetResourceOwnerId(v int64) *DescribeLimitationRequest { s.ResourceOwnerId = &v return s } type DescribeLimitationResponseBody struct { Limitation *string `json:"Limitation,omitempty" xml:"Limitation,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeLimitationResponseBody) String() string { return tea.Prettify(s) } func (s DescribeLimitationResponseBody) GoString() string { return s.String() } func (s *DescribeLimitationResponseBody) SetLimitation(v string) *DescribeLimitationResponseBody { s.Limitation = &v return s } func (s *DescribeLimitationResponseBody) SetRequestId(v string) *DescribeLimitationResponseBody { s.RequestId = &v return s } func (s *DescribeLimitationResponseBody) SetValue(v string) *DescribeLimitationResponseBody { s.Value = &v return s } type DescribeLimitationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeLimitationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeLimitationResponse) String() string { return tea.Prettify(s) } func (s DescribeLimitationResponse) GoString() string { return s.String() } func (s *DescribeLimitationResponse) SetHeaders(v map[string]*string) *DescribeLimitationResponse { s.Headers = v return s } func (s *DescribeLimitationResponse) SetStatusCode(v int32) *DescribeLimitationResponse { s.StatusCode = &v return s } func (s *DescribeLimitationResponse) SetBody(v *DescribeLimitationResponseBody) *DescribeLimitationResponse { s.Body = v return s } type DescribeManagedInstancesRequest struct { // The ID of the activation code. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The ID of managed instance N. Valid values of N: 1 to 50. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` // The internal or public IP address of the managed instance. InstanceIp *string `json:"InstanceIp,omitempty" xml:"InstanceIp,omitempty"` // The name of the managed instance. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The maximum number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The operating system type of the managed instance. Valid values: // // * windows // * linux OsType *string `json:"OsType,omitempty" xml:"OsType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the managed instance. Supported regions: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), and China (Hong Kong). // // You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the managed instance belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags of the managed instance. Tag []*DescribeManagedInstancesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeManagedInstancesRequest) String() string { return tea.Prettify(s) } func (s DescribeManagedInstancesRequest) GoString() string { return s.String() } func (s *DescribeManagedInstancesRequest) SetActivationId(v string) *DescribeManagedInstancesRequest { s.ActivationId = &v return s } func (s *DescribeManagedInstancesRequest) SetInstanceId(v []*string) *DescribeManagedInstancesRequest { s.InstanceId = v return s } func (s *DescribeManagedInstancesRequest) SetInstanceIp(v string) *DescribeManagedInstancesRequest { s.InstanceIp = &v return s } func (s *DescribeManagedInstancesRequest) SetInstanceName(v string) *DescribeManagedInstancesRequest { s.InstanceName = &v return s } func (s *DescribeManagedInstancesRequest) SetMaxResults(v int32) *DescribeManagedInstancesRequest { s.MaxResults = &v return s } func (s *DescribeManagedInstancesRequest) SetNextToken(v string) *DescribeManagedInstancesRequest { s.NextToken = &v return s } func (s *DescribeManagedInstancesRequest) SetOsType(v string) *DescribeManagedInstancesRequest { s.OsType = &v return s } func (s *DescribeManagedInstancesRequest) SetOwnerAccount(v string) *DescribeManagedInstancesRequest { s.OwnerAccount = &v return s } func (s *DescribeManagedInstancesRequest) SetOwnerId(v int64) *DescribeManagedInstancesRequest { s.OwnerId = &v return s } func (s *DescribeManagedInstancesRequest) SetPageNumber(v int64) *DescribeManagedInstancesRequest { s.PageNumber = &v return s } func (s *DescribeManagedInstancesRequest) SetPageSize(v int64) *DescribeManagedInstancesRequest { s.PageSize = &v return s } func (s *DescribeManagedInstancesRequest) SetRegionId(v string) *DescribeManagedInstancesRequest { s.RegionId = &v return s } func (s *DescribeManagedInstancesRequest) SetResourceGroupId(v string) *DescribeManagedInstancesRequest { s.ResourceGroupId = &v return s } func (s *DescribeManagedInstancesRequest) SetResourceOwnerAccount(v string) *DescribeManagedInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeManagedInstancesRequest) SetResourceOwnerId(v int64) *DescribeManagedInstancesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeManagedInstancesRequest) SetTag(v []*DescribeManagedInstancesRequestTag) *DescribeManagedInstancesRequest { s.Tag = v return s } type DescribeManagedInstancesRequestTag struct { // The key of tag N of the managed instance. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the managed instance. 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://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeManagedInstancesRequestTag) String() string { return tea.Prettify(s) } func (s DescribeManagedInstancesRequestTag) GoString() string { return s.String() } func (s *DescribeManagedInstancesRequestTag) SetKey(v string) *DescribeManagedInstancesRequestTag { s.Key = &v return s } func (s *DescribeManagedInstancesRequestTag) SetValue(v string) *DescribeManagedInstancesRequestTag { s.Value = &v return s } type DescribeManagedInstancesResponseBody struct { // The queried managed instances. Instances []*DescribeManagedInstancesResponseBodyInstances `json:"Instances,omitempty" xml:"Instances,omitempty" type:"Repeated"` // The query token returned in the call. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of queried managed instances. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeManagedInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeManagedInstancesResponseBody) GoString() string { return s.String() } func (s *DescribeManagedInstancesResponseBody) SetInstances(v []*DescribeManagedInstancesResponseBodyInstances) *DescribeManagedInstancesResponseBody { s.Instances = v return s } func (s *DescribeManagedInstancesResponseBody) SetNextToken(v string) *DescribeManagedInstancesResponseBody { s.NextToken = &v return s } func (s *DescribeManagedInstancesResponseBody) SetPageNumber(v int64) *DescribeManagedInstancesResponseBody { s.PageNumber = &v return s } func (s *DescribeManagedInstancesResponseBody) SetPageSize(v int64) *DescribeManagedInstancesResponseBody { s.PageSize = &v return s } func (s *DescribeManagedInstancesResponseBody) SetRequestId(v string) *DescribeManagedInstancesResponseBody { s.RequestId = &v return s } func (s *DescribeManagedInstancesResponseBody) SetTotalCount(v int64) *DescribeManagedInstancesResponseBody { s.TotalCount = &v return s } type DescribeManagedInstancesResponseBodyInstances struct { // The ID of the activation code. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The version number of Cloud Assistant Agent. AgentVersion *string `json:"AgentVersion,omitempty" xml:"AgentVersion,omitempty"` // Indicates whether the managed instance is connected. Valid values: // // * true: The managed instance is connected and you can manage the instance by using Cloud Assistant. // * false: The managed instance is not connected because the managed instance is down or because Cloud Assistant Agent is not installed correctly. Connected *bool `json:"Connected,omitempty" xml:"Connected,omitempty"` // The hostname of the managed instance. Hostname *string `json:"Hostname,omitempty" xml:"Hostname,omitempty"` // The ID of the managed instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the managed instance. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The public IP address of the managed instance. InternetIp *string `json:"InternetIp,omitempty" xml:"InternetIp,omitempty"` // The internal IP address of the managed instance. IntranetIp *string `json:"IntranetIp,omitempty" xml:"IntranetIp,omitempty"` // The number of times that Cloud Assistant tasks were executed on the managed instance. InvocationCount *int64 `json:"InvocationCount,omitempty" xml:"InvocationCount,omitempty"` // The time when the Cloud Assistant task was last executed. LastInvokedTime *string `json:"LastInvokedTime,omitempty" xml:"LastInvokedTime,omitempty"` // The machine code of the managed instance. MachineId *string `json:"MachineId,omitempty" xml:"MachineId,omitempty"` // The operating system type of the managed instance. OsType *string `json:"OsType,omitempty" xml:"OsType,omitempty"` // The version information of the operating system. OsVersion *string `json:"OsVersion,omitempty" xml:"OsVersion,omitempty"` // The time when the managed instance was registered. RegistrationTime *string `json:"RegistrationTime,omitempty" xml:"RegistrationTime,omitempty"` // The ID of the resource group to which the managed instance belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The tags of the managed instance. Tags []*DescribeManagedInstancesResponseBodyInstancesTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"` } func (s DescribeManagedInstancesResponseBodyInstances) String() string { return tea.Prettify(s) } func (s DescribeManagedInstancesResponseBodyInstances) GoString() string { return s.String() } func (s *DescribeManagedInstancesResponseBodyInstances) SetActivationId(v string) *DescribeManagedInstancesResponseBodyInstances { s.ActivationId = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetAgentVersion(v string) *DescribeManagedInstancesResponseBodyInstances { s.AgentVersion = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetConnected(v bool) *DescribeManagedInstancesResponseBodyInstances { s.Connected = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetHostname(v string) *DescribeManagedInstancesResponseBodyInstances { s.Hostname = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetInstanceId(v string) *DescribeManagedInstancesResponseBodyInstances { s.InstanceId = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetInstanceName(v string) *DescribeManagedInstancesResponseBodyInstances { s.InstanceName = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetInternetIp(v string) *DescribeManagedInstancesResponseBodyInstances { s.InternetIp = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetIntranetIp(v string) *DescribeManagedInstancesResponseBodyInstances { s.IntranetIp = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetInvocationCount(v int64) *DescribeManagedInstancesResponseBodyInstances { s.InvocationCount = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetLastInvokedTime(v string) *DescribeManagedInstancesResponseBodyInstances { s.LastInvokedTime = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetMachineId(v string) *DescribeManagedInstancesResponseBodyInstances { s.MachineId = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetOsType(v string) *DescribeManagedInstancesResponseBodyInstances { s.OsType = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetOsVersion(v string) *DescribeManagedInstancesResponseBodyInstances { s.OsVersion = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetRegistrationTime(v string) *DescribeManagedInstancesResponseBodyInstances { s.RegistrationTime = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetResourceGroupId(v string) *DescribeManagedInstancesResponseBodyInstances { s.ResourceGroupId = &v return s } func (s *DescribeManagedInstancesResponseBodyInstances) SetTags(v []*DescribeManagedInstancesResponseBodyInstancesTags) *DescribeManagedInstancesResponseBodyInstances { s.Tags = v return s } type DescribeManagedInstancesResponseBodyInstancesTags struct { // The key of tag N of the managed instance. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The value of tag N of the managed instance. 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://`. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeManagedInstancesResponseBodyInstancesTags) String() string { return tea.Prettify(s) } func (s DescribeManagedInstancesResponseBodyInstancesTags) GoString() string { return s.String() } func (s *DescribeManagedInstancesResponseBodyInstancesTags) SetTagKey(v string) *DescribeManagedInstancesResponseBodyInstancesTags { s.TagKey = &v return s } func (s *DescribeManagedInstancesResponseBodyInstancesTags) SetTagValue(v string) *DescribeManagedInstancesResponseBodyInstancesTags { s.TagValue = &v return s } type DescribeManagedInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeManagedInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeManagedInstancesResponse) String() string { return tea.Prettify(s) } func (s DescribeManagedInstancesResponse) GoString() string { return s.String() } func (s *DescribeManagedInstancesResponse) SetHeaders(v map[string]*string) *DescribeManagedInstancesResponse { s.Headers = v return s } func (s *DescribeManagedInstancesResponse) SetStatusCode(v int32) *DescribeManagedInstancesResponse { s.StatusCode = &v return s } func (s *DescribeManagedInstancesResponse) SetBody(v *DescribeManagedInstancesResponseBody) *DescribeManagedInstancesResponse { s.Body = v return s } type DescribeNatGatewaysRequest struct { NatGatewayId *string `json:"NatGatewayId,omitempty" xml:"NatGatewayId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeNatGatewaysRequest) String() string { return tea.Prettify(s) } func (s DescribeNatGatewaysRequest) GoString() string { return s.String() } func (s *DescribeNatGatewaysRequest) SetNatGatewayId(v string) *DescribeNatGatewaysRequest { s.NatGatewayId = &v return s } func (s *DescribeNatGatewaysRequest) SetOwnerAccount(v string) *DescribeNatGatewaysRequest { s.OwnerAccount = &v return s } func (s *DescribeNatGatewaysRequest) SetOwnerId(v int64) *DescribeNatGatewaysRequest { s.OwnerId = &v return s } func (s *DescribeNatGatewaysRequest) SetPageNumber(v int32) *DescribeNatGatewaysRequest { s.PageNumber = &v return s } func (s *DescribeNatGatewaysRequest) SetPageSize(v int32) *DescribeNatGatewaysRequest { s.PageSize = &v return s } func (s *DescribeNatGatewaysRequest) SetRegionId(v string) *DescribeNatGatewaysRequest { s.RegionId = &v return s } func (s *DescribeNatGatewaysRequest) SetResourceOwnerAccount(v string) *DescribeNatGatewaysRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeNatGatewaysRequest) SetResourceOwnerId(v int64) *DescribeNatGatewaysRequest { s.ResourceOwnerId = &v return s } func (s *DescribeNatGatewaysRequest) SetVpcId(v string) *DescribeNatGatewaysRequest { s.VpcId = &v return s } type DescribeNatGatewaysResponseBody struct { NatGateways *DescribeNatGatewaysResponseBodyNatGateways `json:"NatGateways,omitempty" xml:"NatGateways,omitempty" type:"Struct"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeNatGatewaysResponseBody) String() string { return tea.Prettify(s) } func (s DescribeNatGatewaysResponseBody) GoString() string { return s.String() } func (s *DescribeNatGatewaysResponseBody) SetNatGateways(v *DescribeNatGatewaysResponseBodyNatGateways) *DescribeNatGatewaysResponseBody { s.NatGateways = v return s } func (s *DescribeNatGatewaysResponseBody) SetPageNumber(v int32) *DescribeNatGatewaysResponseBody { s.PageNumber = &v return s } func (s *DescribeNatGatewaysResponseBody) SetPageSize(v int32) *DescribeNatGatewaysResponseBody { s.PageSize = &v return s } func (s *DescribeNatGatewaysResponseBody) SetRequestId(v string) *DescribeNatGatewaysResponseBody { s.RequestId = &v return s } func (s *DescribeNatGatewaysResponseBody) SetTotalCount(v int32) *DescribeNatGatewaysResponseBody { s.TotalCount = &v return s } type DescribeNatGatewaysResponseBodyNatGateways struct { NatGateway []*DescribeNatGatewaysResponseBodyNatGatewaysNatGateway `json:"NatGateway,omitempty" xml:"NatGateway,omitempty" type:"Repeated"` } func (s DescribeNatGatewaysResponseBodyNatGateways) String() string { return tea.Prettify(s) } func (s DescribeNatGatewaysResponseBodyNatGateways) GoString() string { return s.String() } func (s *DescribeNatGatewaysResponseBodyNatGateways) SetNatGateway(v []*DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) *DescribeNatGatewaysResponseBodyNatGateways { s.NatGateway = v return s } type DescribeNatGatewaysResponseBodyNatGatewaysNatGateway struct { BandwidthPackageIds *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayBandwidthPackageIds `json:"BandwidthPackageIds,omitempty" xml:"BandwidthPackageIds,omitempty" type:"Struct"` BusinessStatus *string `json:"BusinessStatus,omitempty" xml:"BusinessStatus,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` ForwardTableIds *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds `json:"ForwardTableIds,omitempty" xml:"ForwardTableIds,omitempty" type:"Struct"` InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` NatGatewayId *string `json:"NatGatewayId,omitempty" xml:"NatGatewayId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` Spec *string `json:"Spec,omitempty" xml:"Spec,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) String() string { return tea.Prettify(s) } func (s DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) GoString() string { return s.String() } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetBandwidthPackageIds(v *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayBandwidthPackageIds) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.BandwidthPackageIds = v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetBusinessStatus(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.BusinessStatus = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetCreationTime(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.CreationTime = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetDescription(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.Description = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetForwardTableIds(v *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.ForwardTableIds = v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetInstanceChargeType(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.InstanceChargeType = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetName(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.Name = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetNatGatewayId(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.NatGatewayId = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetRegionId(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.RegionId = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetSpec(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.Spec = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetStatus(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.Status = &v return s } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway) SetVpcId(v string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGateway { s.VpcId = &v return s } type DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayBandwidthPackageIds struct { BandwidthPackageId []*string `json:"BandwidthPackageId,omitempty" xml:"BandwidthPackageId,omitempty" type:"Repeated"` } func (s DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayBandwidthPackageIds) String() string { return tea.Prettify(s) } func (s DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayBandwidthPackageIds) GoString() string { return s.String() } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayBandwidthPackageIds) SetBandwidthPackageId(v []*string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayBandwidthPackageIds { s.BandwidthPackageId = v return s } type DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds struct { ForwardTableId []*string `json:"ForwardTableId,omitempty" xml:"ForwardTableId,omitempty" type:"Repeated"` } func (s DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds) String() string { return tea.Prettify(s) } func (s DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds) GoString() string { return s.String() } func (s *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds) SetForwardTableId(v []*string) *DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds { s.ForwardTableId = v return s } type DescribeNatGatewaysResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeNatGatewaysResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeNatGatewaysResponse) String() string { return tea.Prettify(s) } func (s DescribeNatGatewaysResponse) GoString() string { return s.String() } func (s *DescribeNatGatewaysResponse) SetHeaders(v map[string]*string) *DescribeNatGatewaysResponse { s.Headers = v return s } func (s *DescribeNatGatewaysResponse) SetStatusCode(v int32) *DescribeNatGatewaysResponse { s.StatusCode = &v return s } func (s *DescribeNatGatewaysResponse) SetBody(v *DescribeNatGatewaysResponseBody) *DescribeNatGatewaysResponse { s.Body = v return s } type DescribeNetworkInterfaceAttributeRequest struct { // The attribute of the ENI. Valid values: // // attachment: attachment information about the ENI // // >This parameter is in invitational preview and is not publicly available. Attribute *string `json:"Attribute,omitempty" xml:"Attribute,omitempty"` // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // > This parameter is unavailable. Tag []*DescribeNetworkInterfaceAttributeRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeRequest) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeRequest) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeRequest) SetAttribute(v string) *DescribeNetworkInterfaceAttributeRequest { s.Attribute = &v return s } func (s *DescribeNetworkInterfaceAttributeRequest) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeRequest { s.NetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfaceAttributeRequest) SetOwnerAccount(v string) *DescribeNetworkInterfaceAttributeRequest { s.OwnerAccount = &v return s } func (s *DescribeNetworkInterfaceAttributeRequest) SetOwnerId(v int64) *DescribeNetworkInterfaceAttributeRequest { s.OwnerId = &v return s } func (s *DescribeNetworkInterfaceAttributeRequest) SetRegionId(v string) *DescribeNetworkInterfaceAttributeRequest { s.RegionId = &v return s } func (s *DescribeNetworkInterfaceAttributeRequest) SetResourceOwnerAccount(v string) *DescribeNetworkInterfaceAttributeRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeNetworkInterfaceAttributeRequest) SetResourceOwnerId(v int64) *DescribeNetworkInterfaceAttributeRequest { s.ResourceOwnerId = &v return s } func (s *DescribeNetworkInterfaceAttributeRequest) SetTag(v []*DescribeNetworkInterfaceAttributeRequestTag) *DescribeNetworkInterfaceAttributeRequest { s.Tag = v return s } type DescribeNetworkInterfaceAttributeRequestTag struct { // > This parameter is unavailable. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // > This parameter is unavailable. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeNetworkInterfaceAttributeRequestTag) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeRequestTag) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeRequestTag) SetKey(v string) *DescribeNetworkInterfaceAttributeRequestTag { s.Key = &v return s } func (s *DescribeNetworkInterfaceAttributeRequestTag) SetValue(v string) *DescribeNetworkInterfaceAttributeRequestTag { s.Value = &v return s } type DescribeNetworkInterfaceAttributeResponseBody struct { // Details about the elastic IP address (EIP) that is associated with the secondary private IP address of the ENI. AssociatedPublicIp *DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp `json:"AssociatedPublicIp,omitempty" xml:"AssociatedPublicIp,omitempty" type:"Struct"` // > This parameter is in invitational preview and unavailable for general users. Attachment *DescribeNetworkInterfaceAttributeResponseBodyAttachment `json:"Attachment,omitempty" xml:"Attachment,omitempty" type:"Struct"` // > This parameter is in invitational preview and unavailable for general users. BondInterfaceSpecification *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification `json:"BondInterfaceSpecification,omitempty" xml:"BondInterfaceSpecification,omitempty" type:"Struct"` // The time when the ENI was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // Indicates whether to retain the ENI when the associated instance is released. Valid values: // // * true // * false DeleteOnRelease *bool `json:"DeleteOnRelease,omitempty" xml:"DeleteOnRelease,omitempty"` // The description of the ENI. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the instance to which the ENI is attached. // // > If the ENI is managed and controlled by other Alibaba Cloud services, no instance ID is returned. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The IPv4 prefixes of the ENI. Ipv4PrefixSets *DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSets `json:"Ipv4PrefixSets,omitempty" xml:"Ipv4PrefixSets,omitempty" type:"Struct"` // The IPv6 prefixes of the ENI. Ipv6PrefixSets *DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSets `json:"Ipv6PrefixSets,omitempty" xml:"Ipv6PrefixSets,omitempty" type:"Struct"` // The IPv6 addresses of the ENI. Ipv6Sets *DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets `json:"Ipv6Sets,omitempty" xml:"Ipv6Sets,omitempty" type:"Struct"` // The media access control (MAC) address of the ENI. MacAddress *string `json:"MacAddress,omitempty" xml:"MacAddress,omitempty"` // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The name of the ENI. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The communication model of the ENI. Valid values: // // * Standard: The TCP communication mode is used. // * HighPerformance: The Elastic RDMA Interface (ERI) is enabled and the remote direct memory access (RDMA) communication mode is used. // // > This parameter can have a value of HighPerformance only when the ENI is attached to a c7re RDMA-enhanced instance that resides in Beijing Zone K. NetworkInterfaceTrafficMode *string `json:"NetworkInterfaceTrafficMode,omitempty" xml:"NetworkInterfaceTrafficMode,omitempty"` // The ID of the account to which the ENI belongs. OwnerId *string `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The private IP address of the ENI. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // The private IP addresses of the ENI. PrivateIpSets *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets `json:"PrivateIpSets,omitempty" xml:"PrivateIpSets,omitempty" type:"Struct"` // The number of queues supported by the ENI. // // * For a primary ENI: The default number of queues that the instance type supports for the ENI is returned. // // * For a secondary ENI: // // * When the ENI is in the InUse state, the following situations occur for the QueueNumber parameter: // // * If the number of queues supported by the ENI has not been modified, the default number of queues that the instance type supports for the ENI is returned. // * If the number of queues supported by the ENI has been modified, the new number of queues is returned. // // * When the ENI is in the Available state, the following situations occur for the QueueNumber parameter: // // * If the number of queues supported by the ENI has not been modified, the return value is empty. // * If the number of queues supported by the ENI has been modified, the new number of queues is returned. QueueNumber *int32 `json:"QueueNumber,omitempty" xml:"QueueNumber,omitempty"` // > This parameter is in invitational preview and unavailable for general users. QueuePairNumber *int32 `json:"QueuePairNumber,omitempty" xml:"QueuePairNumber,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the resource group to which the instance belongs. If this parameter is specified to query ENIs, up to 1,000 ENIs that belong to the specified resource group can be displayed in the response. // // > ENIs in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The IDs of the security groups to which the ENI belongs. SecurityGroupIds *DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Struct"` // The ID of the distributor to which the ENI belongs. ServiceID *int64 `json:"ServiceID,omitempty" xml:"ServiceID,omitempty"` // Indicates whether the user of the ENI is an Alibaba Cloud service or a distributor. ServiceManaged *bool `json:"ServiceManaged,omitempty" xml:"ServiceManaged,omitempty"` // > This parameter is in invitational preview and unavailable for general users. SlaveInterfaceSpecification *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification `json:"SlaveInterfaceSpecification,omitempty" xml:"SlaveInterfaceSpecification,omitempty" type:"Struct"` // The state of the ENI. Valid values: // // * Available: The ENI is not attached to an instance. // * Attaching: The ENI is being attached to an instance. // * InUse: The ENI is attached to an instance. // * Detaching: The ENI is being detached from an instance. // * Deleting: The ENI is being deleted. // // This parameter is empty by default, which indicates that all states are queried. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tag value of the ENI. Tags *DescribeNetworkInterfaceAttributeResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // > This parameter is in invitational preview and unavailable for general users. TcpOptionAddressEnabled *string `json:"TcpOptionAddressEnabled,omitempty" xml:"TcpOptionAddressEnabled,omitempty"` // The type of the ENI. Valid values: // // * Primary // * Secondary Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The ID of the vSwitch to which the ENI is connected. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the virtual private cloud (VPC) to which the ENI belongs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` // The zone ID of the ENI. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBody) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBody) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetAssociatedPublicIp(v *DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp) *DescribeNetworkInterfaceAttributeResponseBody { s.AssociatedPublicIp = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetAttachment(v *DescribeNetworkInterfaceAttributeResponseBodyAttachment) *DescribeNetworkInterfaceAttributeResponseBody { s.Attachment = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetBondInterfaceSpecification(v *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification) *DescribeNetworkInterfaceAttributeResponseBody { s.BondInterfaceSpecification = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetCreationTime(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.CreationTime = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetDeleteOnRelease(v bool) *DescribeNetworkInterfaceAttributeResponseBody { s.DeleteOnRelease = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetDescription(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.Description = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetInstanceId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.InstanceId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetIpv4PrefixSets(v *DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSets) *DescribeNetworkInterfaceAttributeResponseBody { s.Ipv4PrefixSets = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetIpv6PrefixSets(v *DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSets) *DescribeNetworkInterfaceAttributeResponseBody { s.Ipv6PrefixSets = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetIpv6Sets(v *DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets) *DescribeNetworkInterfaceAttributeResponseBody { s.Ipv6Sets = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetMacAddress(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.MacAddress = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.NetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetNetworkInterfaceName(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.NetworkInterfaceName = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetNetworkInterfaceTrafficMode(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.NetworkInterfaceTrafficMode = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetOwnerId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.OwnerId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetPrivateIpAddress(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.PrivateIpAddress = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetPrivateIpSets(v *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets) *DescribeNetworkInterfaceAttributeResponseBody { s.PrivateIpSets = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetQueueNumber(v int32) *DescribeNetworkInterfaceAttributeResponseBody { s.QueueNumber = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetQueuePairNumber(v int32) *DescribeNetworkInterfaceAttributeResponseBody { s.QueuePairNumber = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetRequestId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.RequestId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetResourceGroupId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.ResourceGroupId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetSecurityGroupIds(v *DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds) *DescribeNetworkInterfaceAttributeResponseBody { s.SecurityGroupIds = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetServiceID(v int64) *DescribeNetworkInterfaceAttributeResponseBody { s.ServiceID = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetServiceManaged(v bool) *DescribeNetworkInterfaceAttributeResponseBody { s.ServiceManaged = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetSlaveInterfaceSpecification(v *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification) *DescribeNetworkInterfaceAttributeResponseBody { s.SlaveInterfaceSpecification = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetStatus(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.Status = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetTags(v *DescribeNetworkInterfaceAttributeResponseBodyTags) *DescribeNetworkInterfaceAttributeResponseBody { s.Tags = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetTcpOptionAddressEnabled(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.TcpOptionAddressEnabled = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetType(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.Type = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetVSwitchId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.VSwitchId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetVpcId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.VpcId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBody) SetZoneId(v string) *DescribeNetworkInterfaceAttributeResponseBody { s.ZoneId = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp struct { // The ID of the EIP. AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` // The EIP. PublicIpAddress *string `json:"PublicIpAddress,omitempty" xml:"PublicIpAddress,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp) SetAllocationId(v string) *DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp { s.AllocationId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp) SetPublicIpAddress(v string) *DescribeNetworkInterfaceAttributeResponseBodyAssociatedPublicIp { s.PublicIpAddress = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyAttachment struct { // > This parameter is in invitational preview and unavailable for general users. DeviceIndex *int32 `json:"DeviceIndex,omitempty" xml:"DeviceIndex,omitempty"` // > This parameter is in invitational preview and unavailable for general users. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // > This parameter is in invitational preview and unavailable for general users. MemberNetworkInterfaceIds *DescribeNetworkInterfaceAttributeResponseBodyAttachmentMemberNetworkInterfaceIds `json:"MemberNetworkInterfaceIds,omitempty" xml:"MemberNetworkInterfaceIds,omitempty" type:"Struct"` // The index of the network interface controller (NIC). // // * If the ENI is in the Available state or if no NIC index was specified when the ENI was attached, this parameter has no value. // * If the ENI is in the InUse state and an NIC index was specified when the ENI was attached, the specified NIC index is returned as the value of this parameter. NetworkCardIndex *int32 `json:"NetworkCardIndex,omitempty" xml:"NetworkCardIndex,omitempty"` // > This parameter is in invitational preview and unavailable for general users. TrunkNetworkInterfaceId *string `json:"TrunkNetworkInterfaceId,omitempty" xml:"TrunkNetworkInterfaceId,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyAttachment) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyAttachment) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyAttachment) SetDeviceIndex(v int32) *DescribeNetworkInterfaceAttributeResponseBodyAttachment { s.DeviceIndex = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyAttachment) SetInstanceId(v string) *DescribeNetworkInterfaceAttributeResponseBodyAttachment { s.InstanceId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyAttachment) SetMemberNetworkInterfaceIds(v *DescribeNetworkInterfaceAttributeResponseBodyAttachmentMemberNetworkInterfaceIds) *DescribeNetworkInterfaceAttributeResponseBodyAttachment { s.MemberNetworkInterfaceIds = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyAttachment) SetNetworkCardIndex(v int32) *DescribeNetworkInterfaceAttributeResponseBodyAttachment { s.NetworkCardIndex = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyAttachment) SetTrunkNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeResponseBodyAttachment { s.TrunkNetworkInterfaceId = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyAttachmentMemberNetworkInterfaceIds struct { MemberNetworkInterfaceId []*string `json:"MemberNetworkInterfaceId,omitempty" xml:"MemberNetworkInterfaceId,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodyAttachmentMemberNetworkInterfaceIds) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyAttachmentMemberNetworkInterfaceIds) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyAttachmentMemberNetworkInterfaceIds) SetMemberNetworkInterfaceId(v []*string) *DescribeNetworkInterfaceAttributeResponseBodyAttachmentMemberNetworkInterfaceIds { s.MemberNetworkInterfaceId = v return s } type DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification struct { // > This parameter is in invitational preview and unavailable for general users. BondMode *string `json:"BondMode,omitempty" xml:"BondMode,omitempty"` // > This parameter is in invitational preview and unavailable for general users. SlaveInterfaceSpecification *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecification `json:"SlaveInterfaceSpecification,omitempty" xml:"SlaveInterfaceSpecification,omitempty" type:"Struct"` } func (s DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification) SetBondMode(v string) *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification { s.BondMode = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification) SetSlaveInterfaceSpecification(v *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecification) *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecification { s.SlaveInterfaceSpecification = v return s } type DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecification struct { SlaveInterfaceSpecificationSet []*DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet `json:"SlaveInterfaceSpecificationSet,omitempty" xml:"SlaveInterfaceSpecificationSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecification) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecification) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecification) SetSlaveInterfaceSpecificationSet(v []*DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet) *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecification { s.SlaveInterfaceSpecificationSet = v return s } type DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet struct { // > This parameter is in invitational preview and is not publicly available. BondNetworkInterfaceId *string `json:"BondNetworkInterfaceId,omitempty" xml:"BondNetworkInterfaceId,omitempty"` // > This parameter is in invitational preview and is not publicly available. SlaveNetworkInterfaceId *string `json:"SlaveNetworkInterfaceId,omitempty" xml:"SlaveNetworkInterfaceId,omitempty"` // > This parameter is in invitational preview and is not publicly available. WorkState *string `json:"WorkState,omitempty" xml:"WorkState,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet) SetBondNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet { s.BondNetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet) SetSlaveNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet { s.SlaveNetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet) SetWorkState(v string) *DescribeNetworkInterfaceAttributeResponseBodyBondInterfaceSpecificationSlaveInterfaceSpecificationSlaveInterfaceSpecificationSet { s.WorkState = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSets struct { Ipv4PrefixSet []*DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSetsIpv4PrefixSet `json:"Ipv4PrefixSet,omitempty" xml:"Ipv4PrefixSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSets) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSets) SetIpv4PrefixSet(v []*DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSetsIpv4PrefixSet) *DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSets { s.Ipv4PrefixSet = v return s } type DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSetsIpv4PrefixSet struct { // The IPv4 prefix of the ENI. Ipv4Prefix *string `json:"Ipv4Prefix,omitempty" xml:"Ipv4Prefix,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSetsIpv4PrefixSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSetsIpv4PrefixSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSetsIpv4PrefixSet) SetIpv4Prefix(v string) *DescribeNetworkInterfaceAttributeResponseBodyIpv4PrefixSetsIpv4PrefixSet { s.Ipv4Prefix = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSets struct { Ipv6PrefixSet []*DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSetsIpv6PrefixSet `json:"Ipv6PrefixSet,omitempty" xml:"Ipv6PrefixSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSets) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSets) SetIpv6PrefixSet(v []*DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSetsIpv6PrefixSet) *DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSets { s.Ipv6PrefixSet = v return s } type DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSetsIpv6PrefixSet struct { // The IPv6 prefix of the ENI. Ipv6Prefix *string `json:"Ipv6Prefix,omitempty" xml:"Ipv6Prefix,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSetsIpv6PrefixSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSetsIpv6PrefixSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSetsIpv6PrefixSet) SetIpv6Prefix(v string) *DescribeNetworkInterfaceAttributeResponseBodyIpv6PrefixSetsIpv6PrefixSet { s.Ipv6Prefix = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets struct { Ipv6Set []*DescribeNetworkInterfaceAttributeResponseBodyIpv6SetsIpv6Set `json:"Ipv6Set,omitempty" xml:"Ipv6Set,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets) SetIpv6Set(v []*DescribeNetworkInterfaceAttributeResponseBodyIpv6SetsIpv6Set) *DescribeNetworkInterfaceAttributeResponseBodyIpv6Sets { s.Ipv6Set = v return s } type DescribeNetworkInterfaceAttributeResponseBodyIpv6SetsIpv6Set struct { // The IPv6 address of the ENI. Ipv6Address *string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6SetsIpv6Set) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyIpv6SetsIpv6Set) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyIpv6SetsIpv6Set) SetIpv6Address(v string) *DescribeNetworkInterfaceAttributeResponseBodyIpv6SetsIpv6Set { s.Ipv6Address = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets struct { PrivateIpSet []*DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet `json:"PrivateIpSet,omitempty" xml:"PrivateIpSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets) SetPrivateIpSet(v []*DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet) *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets { s.PrivateIpSet = v return s } type DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet struct { // The elastic IP address (EIP) that is associated with the secondary private IP address of the ENI. AssociatedPublicIp *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp `json:"AssociatedPublicIp,omitempty" xml:"AssociatedPublicIp,omitempty" type:"Struct"` // Indicates whether the IP address is the primary private IP address. Valid values: // // * true: The IP address is the primary private IP address. // * false: The IP address is a secondary private IP address. Primary *bool `json:"Primary,omitempty" xml:"Primary,omitempty"` // The private IP address of the ENI. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet) SetAssociatedPublicIp(v *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp) *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet { s.AssociatedPublicIp = v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet) SetPrimary(v bool) *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet { s.Primary = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet) SetPrivateIpAddress(v string) *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet { s.PrivateIpAddress = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp struct { // > This parameter is in invitational preview and is not publicly available. AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` // The EIP. PublicIpAddress *string `json:"PublicIpAddress,omitempty" xml:"PublicIpAddress,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp) SetAllocationId(v string) *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp { s.AllocationId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp) SetPublicIpAddress(v string) *DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp { s.PublicIpAddress = &v return s } type DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds struct { SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds) SetSecurityGroupId(v []*string) *DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds { s.SecurityGroupId = v return s } type DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification struct { // > This parameter is in invitational preview and unavailable for general users. BondNetworkInterfaceId *string `json:"BondNetworkInterfaceId,omitempty" xml:"BondNetworkInterfaceId,omitempty"` // > This parameter is in invitational preview and unavailable for general users. SlaveNetworkInterfaceId *string `json:"SlaveNetworkInterfaceId,omitempty" xml:"SlaveNetworkInterfaceId,omitempty"` // > This parameter is in invitational preview and unavailable for general users. WorkState *string `json:"WorkState,omitempty" xml:"WorkState,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification) SetBondNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification { s.BondNetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification) SetSlaveNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification { s.SlaveNetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification) SetWorkState(v string) *DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification { s.WorkState = &v return s } type DescribeNetworkInterfaceAttributeResponseBodyTags struct { Tag []*DescribeNetworkInterfaceAttributeResponseBodyTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfaceAttributeResponseBodyTags) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyTags) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyTags) SetTag(v []*DescribeNetworkInterfaceAttributeResponseBodyTagsTag) *DescribeNetworkInterfaceAttributeResponseBodyTags { s.Tag = v return s } type DescribeNetworkInterfaceAttributeResponseBodyTagsTag struct { // The key of the tag. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The value of the tag. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponseBodyTagsTag) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponseBodyTagsTag) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponseBodyTagsTag) SetTagKey(v string) *DescribeNetworkInterfaceAttributeResponseBodyTagsTag { s.TagKey = &v return s } func (s *DescribeNetworkInterfaceAttributeResponseBodyTagsTag) SetTagValue(v string) *DescribeNetworkInterfaceAttributeResponseBodyTagsTag { s.TagValue = &v return s } type DescribeNetworkInterfaceAttributeResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeNetworkInterfaceAttributeResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeNetworkInterfaceAttributeResponse) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfaceAttributeResponse) GoString() string { return s.String() } func (s *DescribeNetworkInterfaceAttributeResponse) SetHeaders(v map[string]*string) *DescribeNetworkInterfaceAttributeResponse { s.Headers = v return s } func (s *DescribeNetworkInterfaceAttributeResponse) SetStatusCode(v int32) *DescribeNetworkInterfaceAttributeResponse { s.StatusCode = &v return s } func (s *DescribeNetworkInterfaceAttributeResponse) SetBody(v *DescribeNetworkInterfaceAttributeResponseBody) *DescribeNetworkInterfaceAttributeResponse { s.Body = v return s } type DescribeNetworkInterfacePermissionsRequest struct { // The ID of ENI N. You must specify `NetworkInterfaceId` or `NetworkInterfacePermissionId.N` to determine the query range. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The IDs of ENI permissions. You can specify up to 100 ENI permission IDs. NetworkInterfacePermissionId []*string `json:"NetworkInterfacePermissionId,omitempty" xml:"NetworkInterfacePermissionId,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the ENI permission. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeNetworkInterfacePermissionsRequest) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacePermissionsRequest) GoString() string { return s.String() } func (s *DescribeNetworkInterfacePermissionsRequest) SetNetworkInterfaceId(v string) *DescribeNetworkInterfacePermissionsRequest { s.NetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetNetworkInterfacePermissionId(v []*string) *DescribeNetworkInterfacePermissionsRequest { s.NetworkInterfacePermissionId = v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetOwnerAccount(v string) *DescribeNetworkInterfacePermissionsRequest { s.OwnerAccount = &v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetOwnerId(v int64) *DescribeNetworkInterfacePermissionsRequest { s.OwnerId = &v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetPageNumber(v int32) *DescribeNetworkInterfacePermissionsRequest { s.PageNumber = &v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetPageSize(v int32) *DescribeNetworkInterfacePermissionsRequest { s.PageSize = &v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetRegionId(v string) *DescribeNetworkInterfacePermissionsRequest { s.RegionId = &v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetResourceOwnerAccount(v string) *DescribeNetworkInterfacePermissionsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeNetworkInterfacePermissionsRequest) SetResourceOwnerId(v int64) *DescribeNetworkInterfacePermissionsRequest { s.ResourceOwnerId = &v return s } type DescribeNetworkInterfacePermissionsResponseBody struct { // Details about the ENI permissions. NetworkInterfacePermissions *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissions `json:"NetworkInterfacePermissions,omitempty" xml:"NetworkInterfacePermissions,omitempty" type:"Struct"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeNetworkInterfacePermissionsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacePermissionsResponseBody) GoString() string { return s.String() } func (s *DescribeNetworkInterfacePermissionsResponseBody) SetNetworkInterfacePermissions(v *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissions) *DescribeNetworkInterfacePermissionsResponseBody { s.NetworkInterfacePermissions = v return s } func (s *DescribeNetworkInterfacePermissionsResponseBody) SetPageNumber(v int32) *DescribeNetworkInterfacePermissionsResponseBody { s.PageNumber = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBody) SetPageSize(v int32) *DescribeNetworkInterfacePermissionsResponseBody { s.PageSize = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBody) SetRequestId(v string) *DescribeNetworkInterfacePermissionsResponseBody { s.RequestId = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBody) SetTotalCount(v int32) *DescribeNetworkInterfacePermissionsResponseBody { s.TotalCount = &v return s } type DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissions struct { NetworkInterfacePermission []*DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission `json:"NetworkInterfacePermission,omitempty" xml:"NetworkInterfacePermission,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissions) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissions) GoString() string { return s.String() } func (s *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissions) SetNetworkInterfacePermission(v []*DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissions { s.NetworkInterfacePermission = v return s } type DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission struct { // The ID of the Alibaba Cloud partner (a certified ISV) or individual user. AccountId *int64 `json:"AccountId,omitempty" xml:"AccountId,omitempty"` // The ID of ENI N. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The ID of the ENI permission. NetworkInterfacePermissionId *string `json:"NetworkInterfacePermissionId,omitempty" xml:"NetworkInterfacePermissionId,omitempty"` // The ENI permission. Permission *string `json:"Permission,omitempty" xml:"Permission,omitempty"` // The status of the ENI permission. Valid values: // // * Pending: The permission is being granted. // * Granted: The permission is granted. // * Revoking: The permission is being revoked. // * Revoked: The permission is revoked. PermissionState *string `json:"PermissionState,omitempty" xml:"PermissionState,omitempty"` // The name of the Alibaba Cloud service. ServiceName *string `json:"ServiceName,omitempty" xml:"ServiceName,omitempty"` } func (s DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) GoString() string { return s.String() } func (s *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) SetAccountId(v int64) *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission { s.AccountId = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) SetNetworkInterfaceId(v string) *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission { s.NetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) SetNetworkInterfacePermissionId(v string) *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission { s.NetworkInterfacePermissionId = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) SetPermission(v string) *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission { s.Permission = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) SetPermissionState(v string) *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission { s.PermissionState = &v return s } func (s *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission) SetServiceName(v string) *DescribeNetworkInterfacePermissionsResponseBodyNetworkInterfacePermissionsNetworkInterfacePermission { s.ServiceName = &v return s } type DescribeNetworkInterfacePermissionsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeNetworkInterfacePermissionsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeNetworkInterfacePermissionsResponse) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacePermissionsResponse) GoString() string { return s.String() } func (s *DescribeNetworkInterfacePermissionsResponse) SetHeaders(v map[string]*string) *DescribeNetworkInterfacePermissionsResponse { s.Headers = v return s } func (s *DescribeNetworkInterfacePermissionsResponse) SetStatusCode(v int32) *DescribeNetworkInterfacePermissionsResponse { s.StatusCode = &v return s } func (s *DescribeNetworkInterfacePermissionsResponse) SetBody(v *DescribeNetworkInterfacePermissionsResponseBody) *DescribeNetworkInterfacePermissionsResponse { s.Body = v return s } type DescribeNetworkInterfacesRequest struct { // The ID of the instance to which the ENI is attached. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // An array that consists of the IPv6 address of the ENI. You can specify multiple IPv6 addresses. Valid values of N: 1 to 100. Ipv6Address []*string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty" type:"Repeated"` // The maximum number of entries to return on each page. Valid values: 10 to 500. // // Default values: // // * If this parameter is not specified or if this parameter is set to a value less than 10, the default value is 10. // * If this parameter is set to a value greater than 500, the default value is 500. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // An array that consists of the IDs of the ENIs. You specify multiple ENI IDs. Valid values of N: 1 to 100. NetworkInterfaceId []*string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty" type:"Repeated"` // The name of the ENI. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The query token. Set the value to the `NextToken` value returned in the last call to this operation. // // For more information about how to check the responses returned by this operation, see the preceding "Description" section. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // Deprecated // The page number. // // Pages start from page 1. // // Default value: 1. // // > This parameter will be removed in the future. We recommend that you use NextToken and MaxResults for a paged query. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // Deprecated // The number of entries per page. // // Valid values: 1 to 1000. // // Default value: 10. // // > This parameter will be removed in the future. We recommend that you use NextToken and MaxResults for a paged query. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The primary private IPv4 address of the ENI. PrimaryIpAddress *string `json:"PrimaryIpAddress,omitempty" xml:"PrimaryIpAddress,omitempty"` // An array that consists of the secondary private IPv4 addresses of the ENI. You can specify multiple secondary private IPv4 addresses. Valid values of N: 1 to 100. PrivateIpAddress []*string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty" type:"Repeated"` // The region ID of the ENI. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the ENI belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be returned. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is set. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the security group to which the secondary ENI belongs. // // * To query the details of secondary ENIs based on the ID of a security group, specify this parameter. // * To query the details of primary ENIs based on the ID of a security group, call the [DescribeInstances](~~25506~~) operation and specify the `SecurityGroupId` parameter. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // Specifies whether the user of the ENI is an Alibaba Cloud service or a distributor. ServiceManaged *bool `json:"ServiceManaged,omitempty" xml:"ServiceManaged,omitempty"` // The state of the ENI. Valid values: // // * Available: The ENI is available. // * Attaching: The ENI is being attached to an instance. // * InUse: The ENI is attached to an instance. // * Detaching: The ENI is being detached from an instance. // * Deleting: The ENI is being deleted. // // This parameter is empty by default, which indicates that ENIs in all states are queried. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags to use for query. Tag []*DescribeNetworkInterfacesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The type of the ENI. Valid values: // // * Primary // * Secondary // // This parameter is empty by default, which indicates that both primary and secondary ENIs are queried. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The ID of the vSwitch with which the ENI is associated. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the virtual private cloud (VPC) to which the elastic network interface (ENI) belongs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeNetworkInterfacesRequest) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesRequest) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesRequest) SetInstanceId(v string) *DescribeNetworkInterfacesRequest { s.InstanceId = &v return s } func (s *DescribeNetworkInterfacesRequest) SetIpv6Address(v []*string) *DescribeNetworkInterfacesRequest { s.Ipv6Address = v return s } func (s *DescribeNetworkInterfacesRequest) SetMaxResults(v int32) *DescribeNetworkInterfacesRequest { s.MaxResults = &v return s } func (s *DescribeNetworkInterfacesRequest) SetNetworkInterfaceId(v []*string) *DescribeNetworkInterfacesRequest { s.NetworkInterfaceId = v return s } func (s *DescribeNetworkInterfacesRequest) SetNetworkInterfaceName(v string) *DescribeNetworkInterfacesRequest { s.NetworkInterfaceName = &v return s } func (s *DescribeNetworkInterfacesRequest) SetNextToken(v string) *DescribeNetworkInterfacesRequest { s.NextToken = &v return s } func (s *DescribeNetworkInterfacesRequest) SetOwnerAccount(v string) *DescribeNetworkInterfacesRequest { s.OwnerAccount = &v return s } func (s *DescribeNetworkInterfacesRequest) SetOwnerId(v int64) *DescribeNetworkInterfacesRequest { s.OwnerId = &v return s } func (s *DescribeNetworkInterfacesRequest) SetPageNumber(v int32) *DescribeNetworkInterfacesRequest { s.PageNumber = &v return s } func (s *DescribeNetworkInterfacesRequest) SetPageSize(v int32) *DescribeNetworkInterfacesRequest { s.PageSize = &v return s } func (s *DescribeNetworkInterfacesRequest) SetPrimaryIpAddress(v string) *DescribeNetworkInterfacesRequest { s.PrimaryIpAddress = &v return s } func (s *DescribeNetworkInterfacesRequest) SetPrivateIpAddress(v []*string) *DescribeNetworkInterfacesRequest { s.PrivateIpAddress = v return s } func (s *DescribeNetworkInterfacesRequest) SetRegionId(v string) *DescribeNetworkInterfacesRequest { s.RegionId = &v return s } func (s *DescribeNetworkInterfacesRequest) SetResourceGroupId(v string) *DescribeNetworkInterfacesRequest { s.ResourceGroupId = &v return s } func (s *DescribeNetworkInterfacesRequest) SetResourceOwnerAccount(v string) *DescribeNetworkInterfacesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeNetworkInterfacesRequest) SetResourceOwnerId(v int64) *DescribeNetworkInterfacesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeNetworkInterfacesRequest) SetSecurityGroupId(v string) *DescribeNetworkInterfacesRequest { s.SecurityGroupId = &v return s } func (s *DescribeNetworkInterfacesRequest) SetServiceManaged(v bool) *DescribeNetworkInterfacesRequest { s.ServiceManaged = &v return s } func (s *DescribeNetworkInterfacesRequest) SetStatus(v string) *DescribeNetworkInterfacesRequest { s.Status = &v return s } func (s *DescribeNetworkInterfacesRequest) SetTag(v []*DescribeNetworkInterfacesRequestTag) *DescribeNetworkInterfacesRequest { s.Tag = v return s } func (s *DescribeNetworkInterfacesRequest) SetType(v string) *DescribeNetworkInterfacesRequest { s.Type = &v return s } func (s *DescribeNetworkInterfacesRequest) SetVSwitchId(v string) *DescribeNetworkInterfacesRequest { s.VSwitchId = &v return s } func (s *DescribeNetworkInterfacesRequest) SetVpcId(v string) *DescribeNetworkInterfacesRequest { s.VpcId = &v return s } type DescribeNetworkInterfacesRequestTag struct { // The key of tag N of the ENI. Valid values of N: 1 to 20. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the ENI. Valid values of N: 1 to 20. // // If a single tag is specified to query ENIs, up to 1,000 ENIs that have this tag can be returned. If multiple tags are specified to query ENIs, up to 1,000 ENIs that have all these tags can be returned. To query more than 1,000 resources that have specified tags, call the [ListTagResources](~~110425~~) operation. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeNetworkInterfacesRequestTag) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesRequestTag) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesRequestTag) SetKey(v string) *DescribeNetworkInterfacesRequestTag { s.Key = &v return s } func (s *DescribeNetworkInterfacesRequestTag) SetValue(v string) *DescribeNetworkInterfacesRequestTag { s.Value = &v return s } type DescribeNetworkInterfacesResponseBody struct { // Details about the ENIs. NetworkInterfaceSets *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSets `json:"NetworkInterfaceSets,omitempty" xml:"NetworkInterfaceSets,omitempty" type:"Struct"` // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number of the returned page. // // > This parameter will be removed in the future. We recommend that you use the NextToken and MaxResults parameters for a paged query. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. // // > This parameter will be removed in the future. We recommend that you use the NextToken and MaxResults parameters for a paged query. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of ENIs. // // > If you specify the `MaxResults` and `NextToken` parameters to perform a paged query, the value of the `TotalCount` response parameter is invalid. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeNetworkInterfacesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBody) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBody) SetNetworkInterfaceSets(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSets) *DescribeNetworkInterfacesResponseBody { s.NetworkInterfaceSets = v return s } func (s *DescribeNetworkInterfacesResponseBody) SetNextToken(v string) *DescribeNetworkInterfacesResponseBody { s.NextToken = &v return s } func (s *DescribeNetworkInterfacesResponseBody) SetPageNumber(v int32) *DescribeNetworkInterfacesResponseBody { s.PageNumber = &v return s } func (s *DescribeNetworkInterfacesResponseBody) SetPageSize(v int32) *DescribeNetworkInterfacesResponseBody { s.PageSize = &v return s } func (s *DescribeNetworkInterfacesResponseBody) SetRequestId(v string) *DescribeNetworkInterfacesResponseBody { s.RequestId = &v return s } func (s *DescribeNetworkInterfacesResponseBody) SetTotalCount(v int32) *DescribeNetworkInterfacesResponseBody { s.TotalCount = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSets struct { NetworkInterfaceSet []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet `json:"NetworkInterfaceSet,omitempty" xml:"NetworkInterfaceSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSets) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSets) SetNetworkInterfaceSet(v []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSets { s.NetworkInterfaceSet = v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet struct { // The EIPs that are associated with the secondary private IP addresses of the ENI. AssociatedPublicIp *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp `json:"AssociatedPublicIp,omitempty" xml:"AssociatedPublicIp,omitempty" type:"Struct"` // > This parameter is in invitational preview and is not publicly available. Attachment *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment `json:"Attachment,omitempty" xml:"Attachment,omitempty" type:"Struct"` // The time when the ENI was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // Indicates whether to retain the ENI when the associated instance is released. Valid values: // // * true // * false DeleteOnRelease *bool `json:"DeleteOnRelease,omitempty" xml:"DeleteOnRelease,omitempty"` // The description of the ENI. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the Elastic Compute Service (ECS) instance to which the ENI is attached. // // > If the ENI is managed by other Alibaba Cloud services, no instance ID is returned. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The IPv4 prefixes of the ENI. Ipv4PrefixSets *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSets `json:"Ipv4PrefixSets,omitempty" xml:"Ipv4PrefixSets,omitempty" type:"Struct"` // The IPv6 prefixes of the ENI. Ipv6PrefixSets *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSets `json:"Ipv6PrefixSets,omitempty" xml:"Ipv6PrefixSets,omitempty" type:"Struct"` // The IPv6 addresses of the ENI. Ipv6Sets *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6Sets `json:"Ipv6Sets,omitempty" xml:"Ipv6Sets,omitempty" type:"Struct"` // The MAC address of the ENI. MacAddress *string `json:"MacAddress,omitempty" xml:"MacAddress,omitempty"` // The ID of the ENI. NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` // The name of the ENI. NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" xml:"NetworkInterfaceName,omitempty"` // The communication mode of the ENI. Valid values: // // * Standard: The TCP communication mode is used. // * HighPerformance: The Elastic RDMA Interface (ERI) is enabled and the remote direct memory access (RDMA) communication mode is used. // // > This parameter can have a value of HighPerformance only when the ENI is attached to a c7re RDMA-enhanced instance that resides in Beijing Zone K. NetworkInterfaceTrafficMode *string `json:"NetworkInterfaceTrafficMode,omitempty" xml:"NetworkInterfaceTrafficMode,omitempty"` // The ID of the account to which the ENI belongs. OwnerId *string `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The primary private IP address of the ENI. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` // Details about the private IP addresses of the ENI. PrivateIpSets *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSets `json:"PrivateIpSets,omitempty" xml:"PrivateIpSets,omitempty" type:"Struct"` // The number of queues supported by the ENI. // // * If the ENI is a secondary ENI in the InUse state and the number of queues supported by the ENI has never been modified, the default number of queues per secondary ENI that the instance type supports is returned. // * If the ENI is a secondary ENI and the number of queues supported by the ENI has been modified, the new number of queues is returned. // * If the ENI is a secondary ENI in the Available state and the number of queues supported by the ENI has never been modified, an empty value is returned. // * If the ENI is a primary ENI, the default number of queues per primary ENI that the instance type supports is returned. QueueNumber *int32 `json:"QueueNumber,omitempty" xml:"QueueNumber,omitempty"` // > This parameter is in invitational preview and is not publicly available. QueuePairNumber *int32 `json:"QueuePairNumber,omitempty" xml:"QueuePairNumber,omitempty"` // The ID of the resource group to which the ENI belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The security groups to which the ENI belongs. SecurityGroupIds *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetSecurityGroupIds `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty" type:"Struct"` // The ID of the distributor to which the ENI belongs. ServiceID *int64 `json:"ServiceID,omitempty" xml:"ServiceID,omitempty"` // Indicates whether the user of the ENI is an Alibaba Cloud service or a distributor. ServiceManaged *bool `json:"ServiceManaged,omitempty" xml:"ServiceManaged,omitempty"` // The state of the ENI. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the ENI. Tags *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The type of the ENI. Type *string `json:"Type,omitempty" xml:"Type,omitempty"` // The ID of the vSwitch. VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the VPC to which the ENI belongs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` // The zone ID of the ENI. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetAssociatedPublicIp(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.AssociatedPublicIp = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetAttachment(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Attachment = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetCreationTime(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.CreationTime = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetDeleteOnRelease(v bool) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.DeleteOnRelease = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetDescription(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Description = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetInstanceId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.InstanceId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetIpv4PrefixSets(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSets) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Ipv4PrefixSets = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetIpv6PrefixSets(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSets) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Ipv6PrefixSets = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetIpv6Sets(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6Sets) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Ipv6Sets = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetMacAddress(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.MacAddress = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetNetworkInterfaceId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.NetworkInterfaceId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetNetworkInterfaceName(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.NetworkInterfaceName = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetNetworkInterfaceTrafficMode(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.NetworkInterfaceTrafficMode = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetOwnerId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.OwnerId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetPrivateIpAddress(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.PrivateIpAddress = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetPrivateIpSets(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSets) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.PrivateIpSets = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetQueueNumber(v int32) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.QueueNumber = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetQueuePairNumber(v int32) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.QueuePairNumber = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetResourceGroupId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.ResourceGroupId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetSecurityGroupIds(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetSecurityGroupIds) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.SecurityGroupIds = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetServiceID(v int64) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.ServiceID = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetServiceManaged(v bool) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.ServiceManaged = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetStatus(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Status = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetTags(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTags) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Tags = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetType(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.Type = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetVSwitchId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.VSwitchId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetVpcId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.VpcId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet) SetZoneId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet { s.ZoneId = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp struct { // > This parameter is in invitational preview and is not publicly available. AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` // The EIP. PublicIpAddress *string `json:"PublicIpAddress,omitempty" xml:"PublicIpAddress,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp) SetAllocationId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp { s.AllocationId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp) SetPublicIpAddress(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAssociatedPublicIp { s.PublicIpAddress = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment struct { // > This parameter is in invitational preview and is not publicly available. DeviceIndex *int32 `json:"DeviceIndex,omitempty" xml:"DeviceIndex,omitempty"` // > This parameter is in invitational preview and is not publicly available. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The index of the network card. // // * If the ENI is in the Available state or if no network card index was specified when the ENI was attached, this parameter is empty. // * If the ENI is in the InUse state and a network card index was specified when the ENI was attached, the specified network card index is returned as the value of this parameter. NetworkCardIndex *int32 `json:"NetworkCardIndex,omitempty" xml:"NetworkCardIndex,omitempty"` // > This parameter is in invitational preview and is not publicly available. TrunkNetworkInterfaceId *string `json:"TrunkNetworkInterfaceId,omitempty" xml:"TrunkNetworkInterfaceId,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment) SetDeviceIndex(v int32) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment { s.DeviceIndex = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment) SetInstanceId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment { s.InstanceId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment) SetNetworkCardIndex(v int32) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment { s.NetworkCardIndex = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment) SetTrunkNetworkInterfaceId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetAttachment { s.TrunkNetworkInterfaceId = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSets struct { Ipv4PrefixSet []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet `json:"Ipv4PrefixSet,omitempty" xml:"Ipv4PrefixSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSets) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSets) SetIpv4PrefixSet(v []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSets { s.Ipv4PrefixSet = v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet struct { // The IPv4 prefix of the ENI. Ipv4Prefix *string `json:"Ipv4Prefix,omitempty" xml:"Ipv4Prefix,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet) SetIpv4Prefix(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv4PrefixSetsIpv4PrefixSet { s.Ipv4Prefix = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSets struct { Ipv6PrefixSet []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet `json:"Ipv6PrefixSet,omitempty" xml:"Ipv6PrefixSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSets) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSets) SetIpv6PrefixSet(v []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSets { s.Ipv6PrefixSet = v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet struct { // The IPv6 prefix of the ENI. Ipv6Prefix *string `json:"Ipv6Prefix,omitempty" xml:"Ipv6Prefix,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet) SetIpv6Prefix(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6PrefixSetsIpv6PrefixSet { s.Ipv6Prefix = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6Sets struct { Ipv6Set []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set `json:"Ipv6Set,omitempty" xml:"Ipv6Set,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6Sets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6Sets) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6Sets) SetIpv6Set(v []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6Sets { s.Ipv6Set = v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set struct { // The IPv6 address of the ENI. Ipv6Address *string `json:"Ipv6Address,omitempty" xml:"Ipv6Address,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set) SetIpv6Address(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetIpv6SetsIpv6Set { s.Ipv6Address = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSets struct { PrivateIpSet []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet `json:"PrivateIpSet,omitempty" xml:"PrivateIpSet,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSets) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSets) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSets) SetPrivateIpSet(v []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSets { s.PrivateIpSet = v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet struct { // The elastic IP address (EIP) that is associated with the private IP address. AssociatedPublicIp *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp `json:"AssociatedPublicIp,omitempty" xml:"AssociatedPublicIp,omitempty" type:"Struct"` // Indicates whether the private IP address is the primary private IP address. Valid values: // // * true: The IP address is the primary private IP address. // * false: The IP address is a secondary private IP address. Primary *bool `json:"Primary,omitempty" xml:"Primary,omitempty"` // The private IP address of the ENI. PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet) SetAssociatedPublicIp(v *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet { s.AssociatedPublicIp = v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet) SetPrimary(v bool) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet { s.Primary = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet) SetPrivateIpAddress(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSet { s.PrivateIpAddress = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp struct { // > This parameter is in invitational preview and is not publicly available. AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` // The EIP. PublicIpAddress *string `json:"PublicIpAddress,omitempty" xml:"PublicIpAddress,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp) SetAllocationId(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp { s.AllocationId = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp) SetPublicIpAddress(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetPrivateIpSetsPrivateIpSetAssociatedPublicIp { s.PublicIpAddress = &v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetSecurityGroupIds struct { SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetSecurityGroupIds) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetSecurityGroupIds) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetSecurityGroupIds) SetSecurityGroupId(v []*string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetSecurityGroupIds { s.SecurityGroupId = v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTags struct { Tag []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTags) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTags) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTags) SetTag(v []*DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTags { s.Tag = v return s } type DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag struct { // The tag key. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag) SetTagKey(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag { s.TagKey = &v return s } func (s *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag) SetTagValue(v string) *DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSetTagsTag { s.TagValue = &v return s } type DescribeNetworkInterfacesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeNetworkInterfacesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeNetworkInterfacesResponse) String() string { return tea.Prettify(s) } func (s DescribeNetworkInterfacesResponse) GoString() string { return s.String() } func (s *DescribeNetworkInterfacesResponse) SetHeaders(v map[string]*string) *DescribeNetworkInterfacesResponse { s.Headers = v return s } func (s *DescribeNetworkInterfacesResponse) SetStatusCode(v int32) *DescribeNetworkInterfacesResponse { s.StatusCode = &v return s } func (s *DescribeNetworkInterfacesResponse) SetBody(v *DescribeNetworkInterfacesResponseBody) *DescribeNetworkInterfacesResponse { s.Body = v return s } type DescribeNewProjectEipMonitorDataRequest struct { AllocationId *string `json:"AllocationId,omitempty" xml:"AllocationId,omitempty"` EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeNewProjectEipMonitorDataRequest) String() string { return tea.Prettify(s) } func (s DescribeNewProjectEipMonitorDataRequest) GoString() string { return s.String() } func (s *DescribeNewProjectEipMonitorDataRequest) SetAllocationId(v string) *DescribeNewProjectEipMonitorDataRequest { s.AllocationId = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetEndTime(v string) *DescribeNewProjectEipMonitorDataRequest { s.EndTime = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetOwnerAccount(v string) *DescribeNewProjectEipMonitorDataRequest { s.OwnerAccount = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetOwnerId(v int64) *DescribeNewProjectEipMonitorDataRequest { s.OwnerId = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetPeriod(v int32) *DescribeNewProjectEipMonitorDataRequest { s.Period = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetRegionId(v string) *DescribeNewProjectEipMonitorDataRequest { s.RegionId = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetResourceOwnerAccount(v string) *DescribeNewProjectEipMonitorDataRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetResourceOwnerId(v int64) *DescribeNewProjectEipMonitorDataRequest { s.ResourceOwnerId = &v return s } func (s *DescribeNewProjectEipMonitorDataRequest) SetStartTime(v string) *DescribeNewProjectEipMonitorDataRequest { s.StartTime = &v return s } type DescribeNewProjectEipMonitorDataResponseBody struct { EipMonitorDatas *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatas `json:"EipMonitorDatas,omitempty" xml:"EipMonitorDatas,omitempty" type:"Struct"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeNewProjectEipMonitorDataResponseBody) String() string { return tea.Prettify(s) } func (s DescribeNewProjectEipMonitorDataResponseBody) GoString() string { return s.String() } func (s *DescribeNewProjectEipMonitorDataResponseBody) SetEipMonitorDatas(v *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatas) *DescribeNewProjectEipMonitorDataResponseBody { s.EipMonitorDatas = v return s } func (s *DescribeNewProjectEipMonitorDataResponseBody) SetRequestId(v string) *DescribeNewProjectEipMonitorDataResponseBody { s.RequestId = &v return s } type DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatas struct { EipMonitorData []*DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData `json:"EipMonitorData,omitempty" xml:"EipMonitorData,omitempty" type:"Repeated"` } func (s DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatas) String() string { return tea.Prettify(s) } func (s DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatas) GoString() string { return s.String() } func (s *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatas) SetEipMonitorData(v []*DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatas { s.EipMonitorData = v return s } type DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData struct { EipBandwidth *int32 `json:"EipBandwidth,omitempty" xml:"EipBandwidth,omitempty"` EipFlow *int32 `json:"EipFlow,omitempty" xml:"EipFlow,omitempty"` EipPackets *int32 `json:"EipPackets,omitempty" xml:"EipPackets,omitempty"` EipRX *int32 `json:"EipRX,omitempty" xml:"EipRX,omitempty"` EipTX *int32 `json:"EipTX,omitempty" xml:"EipTX,omitempty"` TimeStamp *string `json:"TimeStamp,omitempty" xml:"TimeStamp,omitempty"` } func (s DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) String() string { return tea.Prettify(s) } func (s DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) GoString() string { return s.String() } func (s *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipBandwidth(v int32) *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipBandwidth = &v return s } func (s *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipFlow(v int32) *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipFlow = &v return s } func (s *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipPackets(v int32) *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipPackets = &v return s } func (s *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipRX(v int32) *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipRX = &v return s } func (s *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetEipTX(v int32) *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.EipTX = &v return s } func (s *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData) SetTimeStamp(v string) *DescribeNewProjectEipMonitorDataResponseBodyEipMonitorDatasEipMonitorData { s.TimeStamp = &v return s } type DescribeNewProjectEipMonitorDataResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeNewProjectEipMonitorDataResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeNewProjectEipMonitorDataResponse) String() string { return tea.Prettify(s) } func (s DescribeNewProjectEipMonitorDataResponse) GoString() string { return s.String() } func (s *DescribeNewProjectEipMonitorDataResponse) SetHeaders(v map[string]*string) *DescribeNewProjectEipMonitorDataResponse { s.Headers = v return s } func (s *DescribeNewProjectEipMonitorDataResponse) SetStatusCode(v int32) *DescribeNewProjectEipMonitorDataResponse { s.StatusCode = &v return s } func (s *DescribeNewProjectEipMonitorDataResponse) SetBody(v *DescribeNewProjectEipMonitorDataResponseBody) *DescribeNewProjectEipMonitorDataResponse { s.Body = v return s } type DescribePhysicalConnectionsRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` Filter []*DescribePhysicalConnectionsRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` } func (s DescribePhysicalConnectionsRequest) String() string { return tea.Prettify(s) } func (s DescribePhysicalConnectionsRequest) GoString() string { return s.String() } func (s *DescribePhysicalConnectionsRequest) SetClientToken(v string) *DescribePhysicalConnectionsRequest { s.ClientToken = &v return s } func (s *DescribePhysicalConnectionsRequest) SetFilter(v []*DescribePhysicalConnectionsRequestFilter) *DescribePhysicalConnectionsRequest { s.Filter = v return s } func (s *DescribePhysicalConnectionsRequest) SetOwnerAccount(v string) *DescribePhysicalConnectionsRequest { s.OwnerAccount = &v return s } func (s *DescribePhysicalConnectionsRequest) SetOwnerId(v int64) *DescribePhysicalConnectionsRequest { s.OwnerId = &v return s } func (s *DescribePhysicalConnectionsRequest) SetPageNumber(v int32) *DescribePhysicalConnectionsRequest { s.PageNumber = &v return s } func (s *DescribePhysicalConnectionsRequest) SetPageSize(v int32) *DescribePhysicalConnectionsRequest { s.PageSize = &v return s } func (s *DescribePhysicalConnectionsRequest) SetRegionId(v string) *DescribePhysicalConnectionsRequest { s.RegionId = &v return s } func (s *DescribePhysicalConnectionsRequest) SetResourceOwnerAccount(v string) *DescribePhysicalConnectionsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribePhysicalConnectionsRequest) SetResourceOwnerId(v int64) *DescribePhysicalConnectionsRequest { s.ResourceOwnerId = &v return s } func (s *DescribePhysicalConnectionsRequest) SetUserCidr(v string) *DescribePhysicalConnectionsRequest { s.UserCidr = &v return s } type DescribePhysicalConnectionsRequestFilter struct { Key *string `json:"Key,omitempty" xml:"Key,omitempty"` Value []*string `json:"Value,omitempty" xml:"Value,omitempty" type:"Repeated"` } func (s DescribePhysicalConnectionsRequestFilter) String() string { return tea.Prettify(s) } func (s DescribePhysicalConnectionsRequestFilter) GoString() string { return s.String() } func (s *DescribePhysicalConnectionsRequestFilter) SetKey(v string) *DescribePhysicalConnectionsRequestFilter { s.Key = &v return s } func (s *DescribePhysicalConnectionsRequestFilter) SetValue(v []*string) *DescribePhysicalConnectionsRequestFilter { s.Value = v return s } type DescribePhysicalConnectionsResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` PhysicalConnectionSet *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSet `json:"PhysicalConnectionSet,omitempty" xml:"PhysicalConnectionSet,omitempty" type:"Struct"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribePhysicalConnectionsResponseBody) String() string { return tea.Prettify(s) } func (s DescribePhysicalConnectionsResponseBody) GoString() string { return s.String() } func (s *DescribePhysicalConnectionsResponseBody) SetPageNumber(v int32) *DescribePhysicalConnectionsResponseBody { s.PageNumber = &v return s } func (s *DescribePhysicalConnectionsResponseBody) SetPageSize(v int32) *DescribePhysicalConnectionsResponseBody { s.PageSize = &v return s } func (s *DescribePhysicalConnectionsResponseBody) SetPhysicalConnectionSet(v *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSet) *DescribePhysicalConnectionsResponseBody { s.PhysicalConnectionSet = v return s } func (s *DescribePhysicalConnectionsResponseBody) SetRequestId(v string) *DescribePhysicalConnectionsResponseBody { s.RequestId = &v return s } func (s *DescribePhysicalConnectionsResponseBody) SetTotalCount(v int32) *DescribePhysicalConnectionsResponseBody { s.TotalCount = &v return s } type DescribePhysicalConnectionsResponseBodyPhysicalConnectionSet struct { PhysicalConnectionType []*DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType `json:"PhysicalConnectionType,omitempty" xml:"PhysicalConnectionType,omitempty" type:"Repeated"` } func (s DescribePhysicalConnectionsResponseBodyPhysicalConnectionSet) String() string { return tea.Prettify(s) } func (s DescribePhysicalConnectionsResponseBodyPhysicalConnectionSet) GoString() string { return s.String() } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSet) SetPhysicalConnectionType(v []*DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSet { s.PhysicalConnectionType = v return s } type DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType struct { AccessPointId *string `json:"AccessPointId,omitempty" xml:"AccessPointId,omitempty"` AdLocation *string `json:"AdLocation,omitempty" xml:"AdLocation,omitempty"` Bandwidth *int64 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` BusinessStatus *string `json:"BusinessStatus,omitempty" xml:"BusinessStatus,omitempty"` CircuitCode *string `json:"CircuitCode,omitempty" xml:"CircuitCode,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` EnabledTime *string `json:"EnabledTime,omitempty" xml:"EnabledTime,omitempty"` LineOperator *string `json:"LineOperator,omitempty" xml:"LineOperator,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` PeerLocation *string `json:"PeerLocation,omitempty" xml:"PeerLocation,omitempty"` PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` PortNumber *string `json:"PortNumber,omitempty" xml:"PortNumber,omitempty"` PortType *string `json:"PortType,omitempty" xml:"PortType,omitempty"` RedundantPhysicalConnectionId *string `json:"RedundantPhysicalConnectionId,omitempty" xml:"RedundantPhysicalConnectionId,omitempty"` Spec *string `json:"Spec,omitempty" xml:"Spec,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) String() string { return tea.Prettify(s) } func (s DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) GoString() string { return s.String() } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetAccessPointId(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.AccessPointId = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetAdLocation(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.AdLocation = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetBandwidth(v int64) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.Bandwidth = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetBusinessStatus(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.BusinessStatus = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetCircuitCode(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.CircuitCode = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetCreationTime(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.CreationTime = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetDescription(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.Description = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetEnabledTime(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.EnabledTime = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetLineOperator(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.LineOperator = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetName(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.Name = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetPeerLocation(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.PeerLocation = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetPhysicalConnectionId(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.PhysicalConnectionId = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetPortNumber(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.PortNumber = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetPortType(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.PortType = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetRedundantPhysicalConnectionId(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.RedundantPhysicalConnectionId = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetSpec(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.Spec = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetStatus(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.Status = &v return s } func (s *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType) SetType(v string) *DescribePhysicalConnectionsResponseBodyPhysicalConnectionSetPhysicalConnectionType { s.Type = &v return s } type DescribePhysicalConnectionsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribePhysicalConnectionsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribePhysicalConnectionsResponse) String() string { return tea.Prettify(s) } func (s DescribePhysicalConnectionsResponse) GoString() string { return s.String() } func (s *DescribePhysicalConnectionsResponse) SetHeaders(v map[string]*string) *DescribePhysicalConnectionsResponse { s.Headers = v return s } func (s *DescribePhysicalConnectionsResponse) SetStatusCode(v int32) *DescribePhysicalConnectionsResponse { s.StatusCode = &v return s } func (s *DescribePhysicalConnectionsResponse) SetBody(v *DescribePhysicalConnectionsResponseBody) *DescribePhysicalConnectionsResponse { s.Body = v return s } type DescribePrefixListAssociationsRequest struct { // The query token that is returned in this call. If the return value is empty, no more data is returned. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The query token. Set the value to the `NextToken` value returned in the previous call to the DescribePrefixListAssociations operation. Leave this parameter empty the first time you call this operation. PrefixListId *string `json:"PrefixListId,omitempty" xml:"PrefixListId,omitempty"` // The ID of the prefix list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribePrefixListAssociationsRequest) String() string { return tea.Prettify(s) } func (s DescribePrefixListAssociationsRequest) GoString() string { return s.String() } func (s *DescribePrefixListAssociationsRequest) SetMaxResults(v int32) *DescribePrefixListAssociationsRequest { s.MaxResults = &v return s } func (s *DescribePrefixListAssociationsRequest) SetNextToken(v string) *DescribePrefixListAssociationsRequest { s.NextToken = &v return s } func (s *DescribePrefixListAssociationsRequest) SetOwnerAccount(v string) *DescribePrefixListAssociationsRequest { s.OwnerAccount = &v return s } func (s *DescribePrefixListAssociationsRequest) SetOwnerId(v int64) *DescribePrefixListAssociationsRequest { s.OwnerId = &v return s } func (s *DescribePrefixListAssociationsRequest) SetPrefixListId(v string) *DescribePrefixListAssociationsRequest { s.PrefixListId = &v return s } func (s *DescribePrefixListAssociationsRequest) SetRegionId(v string) *DescribePrefixListAssociationsRequest { s.RegionId = &v return s } func (s *DescribePrefixListAssociationsRequest) SetResourceOwnerAccount(v string) *DescribePrefixListAssociationsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribePrefixListAssociationsRequest) SetResourceOwnerId(v int64) *DescribePrefixListAssociationsRequest { s.ResourceOwnerId = &v return s } type DescribePrefixListAssociationsResponseBody struct { // The ID of the request. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The ID of the resource. PrefixListAssociations *DescribePrefixListAssociationsResponseBodyPrefixListAssociations `json:"PrefixListAssociations,omitempty" xml:"PrefixListAssociations,omitempty" type:"Struct"` // Details about the resources that are associated with the prefix list. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribePrefixListAssociationsResponseBody) String() string { return tea.Prettify(s) } func (s DescribePrefixListAssociationsResponseBody) GoString() string { return s.String() } func (s *DescribePrefixListAssociationsResponseBody) SetNextToken(v string) *DescribePrefixListAssociationsResponseBody { s.NextToken = &v return s } func (s *DescribePrefixListAssociationsResponseBody) SetPrefixListAssociations(v *DescribePrefixListAssociationsResponseBodyPrefixListAssociations) *DescribePrefixListAssociationsResponseBody { s.PrefixListAssociations = v return s } func (s *DescribePrefixListAssociationsResponseBody) SetRequestId(v string) *DescribePrefixListAssociationsResponseBody { s.RequestId = &v return s } type DescribePrefixListAssociationsResponseBodyPrefixListAssociations struct { PrefixListAssociation []*DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation `json:"PrefixListAssociation,omitempty" xml:"PrefixListAssociation,omitempty" type:"Repeated"` } func (s DescribePrefixListAssociationsResponseBodyPrefixListAssociations) String() string { return tea.Prettify(s) } func (s DescribePrefixListAssociationsResponseBodyPrefixListAssociations) GoString() string { return s.String() } func (s *DescribePrefixListAssociationsResponseBodyPrefixListAssociations) SetPrefixListAssociation(v []*DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation) *DescribePrefixListAssociationsResponseBodyPrefixListAssociations { s.PrefixListAssociation = v return s } type DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation struct { // The type of the resource. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` } func (s DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation) String() string { return tea.Prettify(s) } func (s DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation) GoString() string { return s.String() } func (s *DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation) SetResourceId(v string) *DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation { s.ResourceId = &v return s } func (s *DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation) SetResourceType(v string) *DescribePrefixListAssociationsResponseBodyPrefixListAssociationsPrefixListAssociation { s.ResourceType = &v return s } type DescribePrefixListAssociationsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribePrefixListAssociationsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribePrefixListAssociationsResponse) String() string { return tea.Prettify(s) } func (s DescribePrefixListAssociationsResponse) GoString() string { return s.String() } func (s *DescribePrefixListAssociationsResponse) SetHeaders(v map[string]*string) *DescribePrefixListAssociationsResponse { s.Headers = v return s } func (s *DescribePrefixListAssociationsResponse) SetStatusCode(v int32) *DescribePrefixListAssociationsResponse { s.StatusCode = &v return s } func (s *DescribePrefixListAssociationsResponse) SetBody(v *DescribePrefixListAssociationsResponseBody) *DescribePrefixListAssociationsResponse { s.Body = v return s } type DescribePrefixListAttributesRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The time when the prefix list was created. PrefixListId *string `json:"PrefixListId,omitempty" xml:"PrefixListId,omitempty"` // The ID of the prefix list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribePrefixListAttributesRequest) String() string { return tea.Prettify(s) } func (s DescribePrefixListAttributesRequest) GoString() string { return s.String() } func (s *DescribePrefixListAttributesRequest) SetOwnerAccount(v string) *DescribePrefixListAttributesRequest { s.OwnerAccount = &v return s } func (s *DescribePrefixListAttributesRequest) SetOwnerId(v int64) *DescribePrefixListAttributesRequest { s.OwnerId = &v return s } func (s *DescribePrefixListAttributesRequest) SetPrefixListId(v string) *DescribePrefixListAttributesRequest { s.PrefixListId = &v return s } func (s *DescribePrefixListAttributesRequest) SetRegionId(v string) *DescribePrefixListAttributesRequest { s.RegionId = &v return s } func (s *DescribePrefixListAttributesRequest) SetResourceOwnerAccount(v string) *DescribePrefixListAttributesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribePrefixListAttributesRequest) SetResourceOwnerId(v int64) *DescribePrefixListAttributesRequest { s.ResourceOwnerId = &v return s } type DescribePrefixListAttributesResponseBody struct { // The name of the prefix list. AddressFamily *string `json:"AddressFamily,omitempty" xml:"AddressFamily,omitempty"` // The maximum number of entries that the prefix list can contain. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The IP address family of the prefix list. Valid values: // // * IPv4 // * IPv6 Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The description of the entry in the prefix list. Entries *DescribePrefixListAttributesResponseBodyEntries `json:"Entries,omitempty" xml:"Entries,omitempty" type:"Struct"` // The ID of the request. MaxEntries *int32 `json:"MaxEntries,omitempty" xml:"MaxEntries,omitempty"` // Details about the entries in the prefix list. PrefixListId *string `json:"PrefixListId,omitempty" xml:"PrefixListId,omitempty"` // The ID of the prefix list. PrefixListName *string `json:"PrefixListName,omitempty" xml:"PrefixListName,omitempty"` // The description of the prefix list. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribePrefixListAttributesResponseBody) String() string { return tea.Prettify(s) } func (s DescribePrefixListAttributesResponseBody) GoString() string { return s.String() } func (s *DescribePrefixListAttributesResponseBody) SetAddressFamily(v string) *DescribePrefixListAttributesResponseBody { s.AddressFamily = &v return s } func (s *DescribePrefixListAttributesResponseBody) SetCreationTime(v string) *DescribePrefixListAttributesResponseBody { s.CreationTime = &v return s } func (s *DescribePrefixListAttributesResponseBody) SetDescription(v string) *DescribePrefixListAttributesResponseBody { s.Description = &v return s } func (s *DescribePrefixListAttributesResponseBody) SetEntries(v *DescribePrefixListAttributesResponseBodyEntries) *DescribePrefixListAttributesResponseBody { s.Entries = v return s } func (s *DescribePrefixListAttributesResponseBody) SetMaxEntries(v int32) *DescribePrefixListAttributesResponseBody { s.MaxEntries = &v return s } func (s *DescribePrefixListAttributesResponseBody) SetPrefixListId(v string) *DescribePrefixListAttributesResponseBody { s.PrefixListId = &v return s } func (s *DescribePrefixListAttributesResponseBody) SetPrefixListName(v string) *DescribePrefixListAttributesResponseBody { s.PrefixListName = &v return s } func (s *DescribePrefixListAttributesResponseBody) SetRequestId(v string) *DescribePrefixListAttributesResponseBody { s.RequestId = &v return s } type DescribePrefixListAttributesResponseBodyEntries struct { Entry []*DescribePrefixListAttributesResponseBodyEntriesEntry `json:"Entry,omitempty" xml:"Entry,omitempty" type:"Repeated"` } func (s DescribePrefixListAttributesResponseBodyEntries) String() string { return tea.Prettify(s) } func (s DescribePrefixListAttributesResponseBodyEntries) GoString() string { return s.String() } func (s *DescribePrefixListAttributesResponseBodyEntries) SetEntry(v []*DescribePrefixListAttributesResponseBodyEntriesEntry) *DescribePrefixListAttributesResponseBodyEntries { s.Entry = v return s } type DescribePrefixListAttributesResponseBodyEntriesEntry struct { Cidr *string `json:"Cidr,omitempty" xml:"Cidr,omitempty"` // The CIDR block in the entry in the prefix list. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` } func (s DescribePrefixListAttributesResponseBodyEntriesEntry) String() string { return tea.Prettify(s) } func (s DescribePrefixListAttributesResponseBodyEntriesEntry) GoString() string { return s.String() } func (s *DescribePrefixListAttributesResponseBodyEntriesEntry) SetCidr(v string) *DescribePrefixListAttributesResponseBodyEntriesEntry { s.Cidr = &v return s } func (s *DescribePrefixListAttributesResponseBodyEntriesEntry) SetDescription(v string) *DescribePrefixListAttributesResponseBodyEntriesEntry { s.Description = &v return s } type DescribePrefixListAttributesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribePrefixListAttributesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribePrefixListAttributesResponse) String() string { return tea.Prettify(s) } func (s DescribePrefixListAttributesResponse) GoString() string { return s.String() } func (s *DescribePrefixListAttributesResponse) SetHeaders(v map[string]*string) *DescribePrefixListAttributesResponse { s.Headers = v return s } func (s *DescribePrefixListAttributesResponse) SetStatusCode(v int32) *DescribePrefixListAttributesResponse { s.StatusCode = &v return s } func (s *DescribePrefixListAttributesResponse) SetBody(v *DescribePrefixListAttributesResponseBody) *DescribePrefixListAttributesResponse { s.Body = v return s } type DescribePrefixListsRequest struct { // The IP address family of the prefix list. Valid values: // // * IPv4 // * IPv6 // // This parameter is empty by default, which indicates that all prefix lists are queried. AddressFamily *string `json:"AddressFamily,omitempty" xml:"AddressFamily,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The query token. Set the value to the `NextToken` value returned in the previous call to the DescribePrefixLists operation. Leave this parameter empty the first time you call this operation. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The IDs of prefix list. PrefixListId []*string `json:"PrefixListId,omitempty" xml:"PrefixListId,omitempty" type:"Repeated"` // The name of the prefix list. PrefixListName *string `json:"PrefixListName,omitempty" xml:"PrefixListName,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribePrefixListsRequest) String() string { return tea.Prettify(s) } func (s DescribePrefixListsRequest) GoString() string { return s.String() } func (s *DescribePrefixListsRequest) SetAddressFamily(v string) *DescribePrefixListsRequest { s.AddressFamily = &v return s } func (s *DescribePrefixListsRequest) SetMaxResults(v int32) *DescribePrefixListsRequest { s.MaxResults = &v return s } func (s *DescribePrefixListsRequest) SetNextToken(v string) *DescribePrefixListsRequest { s.NextToken = &v return s } func (s *DescribePrefixListsRequest) SetOwnerAccount(v string) *DescribePrefixListsRequest { s.OwnerAccount = &v return s } func (s *DescribePrefixListsRequest) SetOwnerId(v int64) *DescribePrefixListsRequest { s.OwnerId = &v return s } func (s *DescribePrefixListsRequest) SetPrefixListId(v []*string) *DescribePrefixListsRequest { s.PrefixListId = v return s } func (s *DescribePrefixListsRequest) SetPrefixListName(v string) *DescribePrefixListsRequest { s.PrefixListName = &v return s } func (s *DescribePrefixListsRequest) SetRegionId(v string) *DescribePrefixListsRequest { s.RegionId = &v return s } func (s *DescribePrefixListsRequest) SetResourceOwnerAccount(v string) *DescribePrefixListsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribePrefixListsRequest) SetResourceOwnerId(v int64) *DescribePrefixListsRequest { s.ResourceOwnerId = &v return s } type DescribePrefixListsResponseBody struct { // The query token returned in this call. If the return value is empty, no more data is returned. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // Details about the prefix lists. PrefixLists *DescribePrefixListsResponseBodyPrefixLists `json:"PrefixLists,omitempty" xml:"PrefixLists,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribePrefixListsResponseBody) String() string { return tea.Prettify(s) } func (s DescribePrefixListsResponseBody) GoString() string { return s.String() } func (s *DescribePrefixListsResponseBody) SetNextToken(v string) *DescribePrefixListsResponseBody { s.NextToken = &v return s } func (s *DescribePrefixListsResponseBody) SetPrefixLists(v *DescribePrefixListsResponseBodyPrefixLists) *DescribePrefixListsResponseBody { s.PrefixLists = v return s } func (s *DescribePrefixListsResponseBody) SetRequestId(v string) *DescribePrefixListsResponseBody { s.RequestId = &v return s } type DescribePrefixListsResponseBodyPrefixLists struct { PrefixList []*DescribePrefixListsResponseBodyPrefixListsPrefixList `json:"PrefixList,omitempty" xml:"PrefixList,omitempty" type:"Repeated"` } func (s DescribePrefixListsResponseBodyPrefixLists) String() string { return tea.Prettify(s) } func (s DescribePrefixListsResponseBodyPrefixLists) GoString() string { return s.String() } func (s *DescribePrefixListsResponseBodyPrefixLists) SetPrefixList(v []*DescribePrefixListsResponseBodyPrefixListsPrefixList) *DescribePrefixListsResponseBodyPrefixLists { s.PrefixList = v return s } type DescribePrefixListsResponseBodyPrefixListsPrefixList struct { // The IP address family of the prefix list. Valid values: // // * IPv4 // * IPv6 AddressFamily *string `json:"AddressFamily,omitempty" xml:"AddressFamily,omitempty"` // The number of associated resources. AssociationCount *int32 `json:"AssociationCount,omitempty" xml:"AssociationCount,omitempty"` // The time when the prefix list was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the prefix list. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The maximum number of entries that the prefix list can contain. MaxEntries *int32 `json:"MaxEntries,omitempty" xml:"MaxEntries,omitempty"` // The ID of the prefix list. PrefixListId *string `json:"PrefixListId,omitempty" xml:"PrefixListId,omitempty"` // The name of the prefix list. PrefixListName *string `json:"PrefixListName,omitempty" xml:"PrefixListName,omitempty"` } func (s DescribePrefixListsResponseBodyPrefixListsPrefixList) String() string { return tea.Prettify(s) } func (s DescribePrefixListsResponseBodyPrefixListsPrefixList) GoString() string { return s.String() } func (s *DescribePrefixListsResponseBodyPrefixListsPrefixList) SetAddressFamily(v string) *DescribePrefixListsResponseBodyPrefixListsPrefixList { s.AddressFamily = &v return s } func (s *DescribePrefixListsResponseBodyPrefixListsPrefixList) SetAssociationCount(v int32) *DescribePrefixListsResponseBodyPrefixListsPrefixList { s.AssociationCount = &v return s } func (s *DescribePrefixListsResponseBodyPrefixListsPrefixList) SetCreationTime(v string) *DescribePrefixListsResponseBodyPrefixListsPrefixList { s.CreationTime = &v return s } func (s *DescribePrefixListsResponseBodyPrefixListsPrefixList) SetDescription(v string) *DescribePrefixListsResponseBodyPrefixListsPrefixList { s.Description = &v return s } func (s *DescribePrefixListsResponseBodyPrefixListsPrefixList) SetMaxEntries(v int32) *DescribePrefixListsResponseBodyPrefixListsPrefixList { s.MaxEntries = &v return s } func (s *DescribePrefixListsResponseBodyPrefixListsPrefixList) SetPrefixListId(v string) *DescribePrefixListsResponseBodyPrefixListsPrefixList { s.PrefixListId = &v return s } func (s *DescribePrefixListsResponseBodyPrefixListsPrefixList) SetPrefixListName(v string) *DescribePrefixListsResponseBodyPrefixListsPrefixList { s.PrefixListName = &v return s } type DescribePrefixListsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribePrefixListsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribePrefixListsResponse) String() string { return tea.Prettify(s) } func (s DescribePrefixListsResponse) GoString() string { return s.String() } func (s *DescribePrefixListsResponse) SetHeaders(v map[string]*string) *DescribePrefixListsResponse { s.Headers = v return s } func (s *DescribePrefixListsResponse) SetStatusCode(v int32) *DescribePrefixListsResponse { s.StatusCode = &v return s } func (s *DescribePrefixListsResponse) SetBody(v *DescribePrefixListsResponseBody) *DescribePrefixListsResponse { s.Body = v return s } type DescribePriceRequest struct { DataDisk []*DescribePriceRequestDataDisk `json:"DataDisk,omitempty" xml:"DataDisk,omitempty" type:"Repeated"` SchedulerOptions *DescribePriceRequestSchedulerOptions `json:"SchedulerOptions,omitempty" xml:"SchedulerOptions,omitempty" type:"Struct"` SystemDisk *DescribePriceRequestSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // The number of ECS instances. You can specify this parameter when you want to query the prices of multiple instances that have specific specifications. Valid values: 1 to 1000. // // Default value: 1. Amount *int32 `json:"Amount,omitempty" xml:"Amount,omitempty"` // The total number of times that the elasticity assurance can be applied. Set the value to Unlimited. This value indicates that the elasticity assurance can be applied an unlimited number of times within its effective period. // // Default value: Unlimited. AssuranceTimes *string `json:"AssuranceTimes,omitempty" xml:"AssuranceTimes,omitempty"` // The storage capacity. Unit: GiB. Capacity *int32 `json:"Capacity,omitempty" xml:"Capacity,omitempty"` // The type of the dedicated host. You can call the [DescribeDedicatedHostTypes](~~134240~~) operation to query the most recent list of dedicated host types. DedicatedHostType *string `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty"` // The image ID. An image contains the runtime environment to load when an instance is started. You can call the [DescribeImages](~~25534~~) operation to query the available images. If you do not specify this parameter, the system queries the prices of Linux images. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The total number of reserved instances for an instance type. // // Valid values: 1 to 1000. InstanceAmount *int32 `json:"InstanceAmount,omitempty" xml:"InstanceAmount,omitempty"` // The total number of vCPUs supported by the elasticity assurance. When you call this API operation, the system calculates the number of instances that an elasticity assurance must support based on the specified value of InstanceType. The calculated value is rounded up to the nearest integer. // // > When you call this API operation to query the price of an elasticity assurance, you can only specify either InstanceCoreCpuCount or InstanceAmount. InstanceCpuCoreCount *int32 `json:"InstanceCpuCoreCount,omitempty" xml:"InstanceCpuCoreCount,omitempty"` // The network type of the instance. Valid values: // // * classic: classic network // * vpc: Virtual Private Cloud (VPC) // // Default value: vpc. InstanceNetworkType *string `json:"InstanceNetworkType,omitempty" xml:"InstanceNetworkType,omitempty"` // The instance type. When `ResourceType` is set to `instance`, you must specify this parameter. For more information, see [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent list of instance types. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The instance types. You can select only a single instance type when you configure an elasticity assurance in unlimited mode. InstanceTypeList []*string `json:"InstanceTypeList,omitempty" xml:"InstanceTypeList,omitempty" type:"Repeated"` // The billing method for network usage. Valid values: // // * PayByBandwidth: pay-by-bandwidth // * PayByTraffic: pay-by-traffic // // Default value: PayByTraffic InternetChargeType *string `json:"InternetChargeType,omitempty" xml:"InternetChargeType,omitempty"` // The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. // // Default value: 0. InternetMaxBandwidthOut *int32 `json:"InternetMaxBandwidthOut,omitempty" xml:"InternetMaxBandwidthOut,omitempty"` // Specifies whether the instance is I/O optimized. Valid values: // // * none: The instance is not I/O optimized. // * optimized: The instance is I/O optimized. // // When the instance type specified by the InstanceType parameter belongs to [Generation I instance families](~~55263~~), the default value of this parameter is none. // // When the instance type specified by the InstanceType parameter does not belong to [Generation I instance families](~~55263~~), the default value of this parameter is optimized. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The Internet service provider (ISP). Valid values: // // * cmcc: China Mobile // * telecom: China Telecom // * unicom: China Unicom // * multiCarrier: multi-line ISP Isp *string `json:"Isp,omitempty" xml:"Isp,omitempty"` // The payment option of the reserved instance. Valid values: // // * No Upfront // * Partial Upfront // * All Upfront OfferingType *string `json:"OfferingType,omitempty" xml:"OfferingType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The billing cycle of the ECS instance. Valid values: // // * Valid values when PriceUnit is set to Month: 1, 2, 3, 4, 5, 6, 7, 8, and 9. // * Valid values when PriceUnit is set to Year: 1, 2, 3, 4, and 5. // * Set the value to 1 when PriceUnit is set to Hour. // // Default value: 1. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The operating system of the image that is used by the instance. Valid values: // // * Windows: Windows Server operating system // * Linux: Linux and UNIX-like operating system Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The pricing unit of the ECS resource. Valid values: // // * Month // * Year // * Hour (default) PriceUnit *string `json:"PriceUnit,omitempty" xml:"PriceUnit,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The resource type. Valid values: // // * instance: queries the most recent prices of ECS instances. When this parameter is set to `instance`, you must specify `InstanceType`. // * disk: queries the most recent prices of cloud disks. When this parameter is set to `disk`, you must specify `DataDisk.1.Category` and `DataDisk.1.Size`. // * bandwidth: queries the most recent prices of network usage. // * ddh: queries the most recent prices of dedicated hosts. // * ElasticityAssurance: queries the most recent prices of elasticity assurances. When this parameter is set to `ElasticityAssurance`, you must specify `InstanceType`. // * CapacityReservation: queries the most recent prices of capacity reservations. When this parameter is set to `CapacityReservation`, you must specify `InstanceType`. // // Default value: instance. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The scope of the reserved instance. Valid values: // // * Region: regional // * Zone: zonal // // Default value: Region. Scope *string `json:"Scope,omitempty" xml:"Scope,omitempty"` // The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values: // // - 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bidding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // - 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the biding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // Alibaba Cloud sends ECS system events to notify you 5 minutes before the instance is released. Preemptible instances are billed by second. We recommend that you specify a protection period based on your business requirements. // // >If you set SpotStrategy to SpotWithPriceLimit or SpotAsPriceGo, this parameter takes effect. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The preemption policy for the pay-as-you-go instance. Valid values: // // * NoSpot: The instance is created as a pay-as-you-go instance. // * SpotWithPriceLimit: The instance is a preemptible instance with a user-defined maximum hourly price. // * SpotAsPriceGo: The instance is a preemptible instance for which the market price is automatically used as the bid price. The market price can be up to the pay-as-you-go price. // // Default value: NoSpot // // > This parameter is valid only when `PriceUnit` is set to Hour and `Period` is set to 1. The default value of `PriceUnit` is `Hour` and the default value of `Period` is `1`. Therefore, you do not need to set `PriceUnit` and `Period` when you set SpotStrategy. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The zone ID. // // > Prices of preemptible instances vary based on zones. When you query the price of a preemptible instance, specify ZoneId. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribePriceRequest) String() string { return tea.Prettify(s) } func (s DescribePriceRequest) GoString() string { return s.String() } func (s *DescribePriceRequest) SetDataDisk(v []*DescribePriceRequestDataDisk) *DescribePriceRequest { s.DataDisk = v return s } func (s *DescribePriceRequest) SetSchedulerOptions(v *DescribePriceRequestSchedulerOptions) *DescribePriceRequest { s.SchedulerOptions = v return s } func (s *DescribePriceRequest) SetSystemDisk(v *DescribePriceRequestSystemDisk) *DescribePriceRequest { s.SystemDisk = v return s } func (s *DescribePriceRequest) SetAmount(v int32) *DescribePriceRequest { s.Amount = &v return s } func (s *DescribePriceRequest) SetAssuranceTimes(v string) *DescribePriceRequest { s.AssuranceTimes = &v return s } func (s *DescribePriceRequest) SetCapacity(v int32) *DescribePriceRequest { s.Capacity = &v return s } func (s *DescribePriceRequest) SetDedicatedHostType(v string) *DescribePriceRequest { s.DedicatedHostType = &v return s } func (s *DescribePriceRequest) SetImageId(v string) *DescribePriceRequest { s.ImageId = &v return s } func (s *DescribePriceRequest) SetInstanceAmount(v int32) *DescribePriceRequest { s.InstanceAmount = &v return s } func (s *DescribePriceRequest) SetInstanceCpuCoreCount(v int32) *DescribePriceRequest { s.InstanceCpuCoreCount = &v return s } func (s *DescribePriceRequest) SetInstanceNetworkType(v string) *DescribePriceRequest { s.InstanceNetworkType = &v return s } func (s *DescribePriceRequest) SetInstanceType(v string) *DescribePriceRequest { s.InstanceType = &v return s } func (s *DescribePriceRequest) SetInstanceTypeList(v []*string) *DescribePriceRequest { s.InstanceTypeList = v return s } func (s *DescribePriceRequest) SetInternetChargeType(v string) *DescribePriceRequest { s.InternetChargeType = &v return s } func (s *DescribePriceRequest) SetInternetMaxBandwidthOut(v int32) *DescribePriceRequest { s.InternetMaxBandwidthOut = &v return s } func (s *DescribePriceRequest) SetIoOptimized(v string) *DescribePriceRequest { s.IoOptimized = &v return s } func (s *DescribePriceRequest) SetIsp(v string) *DescribePriceRequest { s.Isp = &v return s } func (s *DescribePriceRequest) SetOfferingType(v string) *DescribePriceRequest { s.OfferingType = &v return s } func (s *DescribePriceRequest) SetOwnerAccount(v string) *DescribePriceRequest { s.OwnerAccount = &v return s } func (s *DescribePriceRequest) SetOwnerId(v int64) *DescribePriceRequest { s.OwnerId = &v return s } func (s *DescribePriceRequest) SetPeriod(v int32) *DescribePriceRequest { s.Period = &v return s } func (s *DescribePriceRequest) SetPlatform(v string) *DescribePriceRequest { s.Platform = &v return s } func (s *DescribePriceRequest) SetPriceUnit(v string) *DescribePriceRequest { s.PriceUnit = &v return s } func (s *DescribePriceRequest) SetRegionId(v string) *DescribePriceRequest { s.RegionId = &v return s } func (s *DescribePriceRequest) SetResourceOwnerAccount(v string) *DescribePriceRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribePriceRequest) SetResourceOwnerId(v int64) *DescribePriceRequest { s.ResourceOwnerId = &v return s } func (s *DescribePriceRequest) SetResourceType(v string) *DescribePriceRequest { s.ResourceType = &v return s } func (s *DescribePriceRequest) SetScope(v string) *DescribePriceRequest { s.Scope = &v return s } func (s *DescribePriceRequest) SetSpotDuration(v int32) *DescribePriceRequest { s.SpotDuration = &v return s } func (s *DescribePriceRequest) SetSpotStrategy(v string) *DescribePriceRequest { s.SpotStrategy = &v return s } func (s *DescribePriceRequest) SetZoneId(v string) *DescribePriceRequest { s.ZoneId = &v return s } type DescribePriceRequestDataDisk struct { // The type of data disk N. Valid values: // // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * ephemeral_ssd: local SSD // * cloud_essd: ESSD // // Valid values of N: 1 to 16. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The performance level of data disk N when the disk is an ESSD. This parameter is valid only when `DataDisk.N.Category` is set to cloud_essd. Valid values: // // * PL0 // * PL1 (default) // * PL2 // * PL3 // // Valid values of N: 1 to 16. PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The size of data disk N. Unit: GiB. Valid values: // // * Valid values when Category is set to cloud: 5 to 2000. // // * Valid values when Category is set to cloud_efficiency: 20 to 32768. // // * Valid values when DataDisk.N.Category is set to cloud_ssd: 20 to 32768. // // * Valid values when DataDisk.N.Category is set to cloud_essd: depend on the value of `DataDisk.N.PerformanceLevel`. // // * Valid values when DataDisk.N.PerformanceLevel is set to PL0: 40 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL1: 20 to 32768. // * Valid values when DataDisk.N.PerformanceLevel is set to PL2: 461 to 32768. // * Valid values when DataDisk.4.PerformanceLevel is set to PL3: 1261 to 32768. // // * Valid values when DataDisk.N.Category is set to ephemeral_ssd: 5 to 800. // // Valid values of N: 1 to 16. Size *int64 `json:"Size,omitempty" xml:"Size,omitempty"` } func (s DescribePriceRequestDataDisk) String() string { return tea.Prettify(s) } func (s DescribePriceRequestDataDisk) GoString() string { return s.String() } func (s *DescribePriceRequestDataDisk) SetCategory(v string) *DescribePriceRequestDataDisk { s.Category = &v return s } func (s *DescribePriceRequestDataDisk) SetPerformanceLevel(v string) *DescribePriceRequestDataDisk { s.PerformanceLevel = &v return s } func (s *DescribePriceRequestDataDisk) SetSize(v int64) *DescribePriceRequestDataDisk { s.Size = &v return s } type DescribePriceRequestSchedulerOptions struct { // 专有宿主机ID。您可以通过[DescribeDedicatedHosts ](~~134242~~)查询专有宿主机ID列表。 DedicatedHostId *string `json:"DedicatedHostId,omitempty" xml:"DedicatedHostId,omitempty"` } func (s DescribePriceRequestSchedulerOptions) String() string { return tea.Prettify(s) } func (s DescribePriceRequestSchedulerOptions) GoString() string { return s.String() } func (s *DescribePriceRequestSchedulerOptions) SetDedicatedHostId(v string) *DescribePriceRequestSchedulerOptions { s.DedicatedHostId = &v return s } type DescribePriceRequestSystemDisk struct { // The type of the system disk. Valid values: // // * cloud: basic disk // * cloud_efficiency: ultra disk // * cloud_ssd: standard SSD // * ephemeral_ssd: local SSD // * cloud_essd: enhanced SSD (ESSD) // // Description of the default values: // // * When the InstanceType parameter is set to a retired instance type and `IoOptimized` is set to `none`, the default value of this parameter is `cloud`. // * In other cases, the default value of this parameter is `cloud_efficiency`. // // > If you want to query the prices of system disks, you must also specify `ImageId`. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The performance level of the system disk when the disk is an ESSD. This parameter is valid only when `SystemDiskCategory` is set to cloud_essd. Valid values: // // PL0, PL1 (default), PL2, PL3. PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"` // The size of the system disk. Unit: GiB. Valid values: 20 to 500. // // Default value: 20 or the image size, whichever is greater. Size *int32 `json:"Size,omitempty" xml:"Size,omitempty"` } func (s DescribePriceRequestSystemDisk) String() string { return tea.Prettify(s) } func (s DescribePriceRequestSystemDisk) GoString() string { return s.String() } func (s *DescribePriceRequestSystemDisk) SetCategory(v string) *DescribePriceRequestSystemDisk { s.Category = &v return s } func (s *DescribePriceRequestSystemDisk) SetPerformanceLevel(v string) *DescribePriceRequestSystemDisk { s.PerformanceLevel = &v return s } func (s *DescribePriceRequestSystemDisk) SetSize(v int32) *DescribePriceRequestSystemDisk { s.Size = &v return s } type DescribePriceResponseBody struct { // Details about the prices and promotion rules. PriceInfo *DescribePriceResponseBodyPriceInfo `json:"PriceInfo,omitempty" xml:"PriceInfo,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribePriceResponseBody) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBody) GoString() string { return s.String() } func (s *DescribePriceResponseBody) SetPriceInfo(v *DescribePriceResponseBodyPriceInfo) *DescribePriceResponseBody { s.PriceInfo = v return s } func (s *DescribePriceResponseBody) SetRequestId(v string) *DescribePriceResponseBody { s.RequestId = &v return s } type DescribePriceResponseBodyPriceInfo struct { // The price. Price *DescribePriceResponseBodyPriceInfoPrice `json:"Price,omitempty" xml:"Price,omitempty" type:"Struct"` // Details about the promotion rules. Rules *DescribePriceResponseBodyPriceInfoRules `json:"Rules,omitempty" xml:"Rules,omitempty" type:"Struct"` } func (s DescribePriceResponseBodyPriceInfo) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfo) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfo) SetPrice(v *DescribePriceResponseBodyPriceInfoPrice) *DescribePriceResponseBodyPriceInfo { s.Price = v return s } func (s *DescribePriceResponseBodyPriceInfo) SetRules(v *DescribePriceResponseBodyPriceInfoRules) *DescribePriceResponseBodyPriceInfo { s.Rules = v return s } type DescribePriceResponseBodyPriceInfoPrice struct { // The currency unit. // // Alibaba Cloud China site (aliyun.com): CNY. // // Alibaba Cloud International site (alibabacloud.com): USD. Currency *string `json:"Currency,omitempty" xml:"Currency,omitempty"` // Details about the price. // // > This parameter is in invitational preview and is unavailable for public use. DetailInfos *DescribePriceResponseBodyPriceInfoPriceDetailInfos `json:"DetailInfos,omitempty" xml:"DetailInfos,omitempty" type:"Struct"` // The discount. DiscountPrice *float32 `json:"DiscountPrice,omitempty" xml:"DiscountPrice,omitempty"` // The original price. OriginalPrice *float32 `json:"OriginalPrice,omitempty" xml:"OriginalPrice,omitempty"` // The hourly price of the reserved instance for which the No Upfront or Partial Upfront payment option is used. ReservedInstanceHourPrice *float32 `json:"ReservedInstanceHourPrice,omitempty" xml:"ReservedInstanceHourPrice,omitempty"` // The transaction price of the order. The transaction price is equal to the original price minus the discount. TradePrice *float32 `json:"TradePrice,omitempty" xml:"TradePrice,omitempty"` } func (s DescribePriceResponseBodyPriceInfoPrice) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfoPrice) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfoPrice) SetCurrency(v string) *DescribePriceResponseBodyPriceInfoPrice { s.Currency = &v return s } func (s *DescribePriceResponseBodyPriceInfoPrice) SetDetailInfos(v *DescribePriceResponseBodyPriceInfoPriceDetailInfos) *DescribePriceResponseBodyPriceInfoPrice { s.DetailInfos = v return s } func (s *DescribePriceResponseBodyPriceInfoPrice) SetDiscountPrice(v float32) *DescribePriceResponseBodyPriceInfoPrice { s.DiscountPrice = &v return s } func (s *DescribePriceResponseBodyPriceInfoPrice) SetOriginalPrice(v float32) *DescribePriceResponseBodyPriceInfoPrice { s.OriginalPrice = &v return s } func (s *DescribePriceResponseBodyPriceInfoPrice) SetReservedInstanceHourPrice(v float32) *DescribePriceResponseBodyPriceInfoPrice { s.ReservedInstanceHourPrice = &v return s } func (s *DescribePriceResponseBodyPriceInfoPrice) SetTradePrice(v float32) *DescribePriceResponseBodyPriceInfoPrice { s.TradePrice = &v return s } type DescribePriceResponseBodyPriceInfoPriceDetailInfos struct { ResourcePriceModel []*DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel `json:"ResourcePriceModel,omitempty" xml:"ResourcePriceModel,omitempty" type:"Repeated"` } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfos) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfos) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfos) SetResourcePriceModel(v []*DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) *DescribePriceResponseBodyPriceInfoPriceDetailInfos { s.ResourcePriceModel = v return s } type DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel struct { // The discount. DiscountPrice *float32 `json:"DiscountPrice,omitempty" xml:"DiscountPrice,omitempty"` // The original price. OriginalPrice *float32 `json:"OriginalPrice,omitempty" xml:"OriginalPrice,omitempty"` // The resource name. Resource *string `json:"Resource,omitempty" xml:"Resource,omitempty"` // Details about the pricing rules. SubRules *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules `json:"SubRules,omitempty" xml:"SubRules,omitempty" type:"Struct"` // The transaction price. TradePrice *float32 `json:"TradePrice,omitempty" xml:"TradePrice,omitempty"` } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetDiscountPrice(v float32) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.DiscountPrice = &v return s } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetOriginalPrice(v float32) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.OriginalPrice = &v return s } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetResource(v string) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.Resource = &v return s } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetSubRules(v *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.SubRules = v return s } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetTradePrice(v float32) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.TradePrice = &v return s } type DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules struct { Rule []*DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule `json:"Rule,omitempty" xml:"Rule,omitempty" type:"Repeated"` } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) SetRule(v []*DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules { s.Rule = v return s } type DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule struct { // The description of the pricing rule. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the pricing rule. RuleId *int64 `json:"RuleId,omitempty" xml:"RuleId,omitempty"` } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) SetDescription(v string) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule { s.Description = &v return s } func (s *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) SetRuleId(v int64) *DescribePriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule { s.RuleId = &v return s } type DescribePriceResponseBodyPriceInfoRules struct { Rule []*DescribePriceResponseBodyPriceInfoRulesRule `json:"Rule,omitempty" xml:"Rule,omitempty" type:"Repeated"` } func (s DescribePriceResponseBodyPriceInfoRules) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfoRules) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfoRules) SetRule(v []*DescribePriceResponseBodyPriceInfoRulesRule) *DescribePriceResponseBodyPriceInfoRules { s.Rule = v return s } type DescribePriceResponseBodyPriceInfoRulesRule struct { // The description of the promotion rule. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the pricing rule. RuleId *int64 `json:"RuleId,omitempty" xml:"RuleId,omitempty"` } func (s DescribePriceResponseBodyPriceInfoRulesRule) String() string { return tea.Prettify(s) } func (s DescribePriceResponseBodyPriceInfoRulesRule) GoString() string { return s.String() } func (s *DescribePriceResponseBodyPriceInfoRulesRule) SetDescription(v string) *DescribePriceResponseBodyPriceInfoRulesRule { s.Description = &v return s } func (s *DescribePriceResponseBodyPriceInfoRulesRule) SetRuleId(v int64) *DescribePriceResponseBodyPriceInfoRulesRule { s.RuleId = &v return s } type DescribePriceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribePriceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribePriceResponse) String() string { return tea.Prettify(s) } func (s DescribePriceResponse) GoString() string { return s.String() } func (s *DescribePriceResponse) SetHeaders(v map[string]*string) *DescribePriceResponse { s.Headers = v return s } func (s *DescribePriceResponse) SetStatusCode(v int32) *DescribePriceResponse { s.StatusCode = &v return s } func (s *DescribePriceResponse) SetBody(v *DescribePriceResponseBody) *DescribePriceResponse { s.Body = v return s } type DescribeRecommendInstanceTypeRequest struct { // The number of vCPUs of the instance. // // > If you specify both `Cores` and `Memory`, the system returns all instance types that match the values of the parameters. Cores *int32 `json:"Cores,omitempty" xml:"Cores,omitempty"` // The billing method of the ECS instance. For more information, see [Billing overview](~~25398~~). Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go // // Default value: PostPaid. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The level of the instance family. Valid values: // // * EntryLevel // * EnterpriseLevel // * CreditEntryLevel For more information, see [Burstable instance families](~~59977~~). InstanceFamilyLevel *string `json:"InstanceFamilyLevel,omitempty" xml:"InstanceFamilyLevel,omitempty"` // The instance type. For more information, see [Instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list. // // > If you specify `InstanceType`, the `Cores` and `Memory` parameters are ignored. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // Specifies the instance families from which the alternative instance types are selected. You can specify up to 10 instance families. InstanceTypeFamily []*string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty" type:"Repeated"` // Specifies whether the instance is I/O optimized. The IoOptimized parameter cannot be specified when the instance is not I/O optimized. Valid values: // // * optimized: The instance is I/O optimized. // * none: The instance is not I/O optimized. // // Default value: optimized. // // If you query alternative instance types for retired instance types, this parameter is set to none by default. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The maximum hourly price for pay-as-you-go instances or preemptible instances. // // > This parameter takes effect only when `SpotStrategy` is set to `SpotWithPriceLimit`. MaxPrice *float32 `json:"MaxPrice,omitempty" xml:"MaxPrice,omitempty"` // The memory size of the instance. Unit: GiB. // // > If you specify both `Cores` and `Memory`, the system returns all instance types that match the values of the parameters. Memory *float32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // The network type of the instance. Valid values: // // * classic // * vpc // // Default value: vpc. NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The policy that is used to recommend instance types. Valid values: // // * InventoryFirst: recommends instance types in descending order of resource availability. // * PriceFirst: recommends the most cost-effective instance type. Recommended instance types appear based on the hourly prices of vCPUs in ascending order. // * NewProductFirst: recommends the latest instance types first. // // Default value: InventoryFirst. PriorityStrategy *string `json:"PriorityStrategy,omitempty" xml:"PriorityStrategy,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies the scenarios in which the instance type is recommended. Valid values: // // * UPGRADE: instance type upgrade or downgrade // * CREATE: instance creation // // Default value: CREATE. Scene *string `json:"Scene,omitempty" xml:"Scene,omitempty"` // The bidding policy of preemptible instances. Valid values: // // * NoSpot: The instance is a pay-as-you-go instance. // * SpotWithPriceLimit: The instance is a preemptible instance for which you can specify the maximum hourly price. // * SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is automatically used as the bid price. The market price can be up to the pay-as-you-go price. // // > If the `SpotStrategy` parameter is specified, the `InstanceChargeType` parameter must be set to `PostPaid`. // // Default value: NoSpot. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The category of the system disk. Valid values: // // * cloud_efficiency: ultra disk // * cloud_ssd: SSD // * cloud_essd: ESSD // * cloud: basic disk // // For non-I/O optimized instances, the default value is cloud. // // For I/O optimized instances, the default value is cloud_efficiency. SystemDiskCategory *string `json:"SystemDiskCategory,omitempty" xml:"SystemDiskCategory,omitempty"` // The zone ID. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. // // We recommend that you set the value of ZoneMatchMode to Include, which is the default value. This way, the system recommends instance types that are available in the zone specified by the ZoneId parameter based on priority. The system also recommends instance types that are available in other zones within the same region. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` // Specifies whether to recommend only instance types in the zone specified by ZoneId. Valid values: // // * Strict: recommends only instance types that are available in zones specified by the ZoneId parameter. // * Include: recommends instance types that are available in zones specified by the ZoneId parameter and other zones within the same region. // // If `ZoneId` is specified, the default value of this parameter is Strict. This value indicates that only alternative instance types in the zone specified by ZoneId are recommended. ZoneMatchMode *string `json:"ZoneMatchMode,omitempty" xml:"ZoneMatchMode,omitempty"` } func (s DescribeRecommendInstanceTypeRequest) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeRequest) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeRequest) SetCores(v int32) *DescribeRecommendInstanceTypeRequest { s.Cores = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetInstanceChargeType(v string) *DescribeRecommendInstanceTypeRequest { s.InstanceChargeType = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetInstanceFamilyLevel(v string) *DescribeRecommendInstanceTypeRequest { s.InstanceFamilyLevel = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetInstanceType(v string) *DescribeRecommendInstanceTypeRequest { s.InstanceType = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetInstanceTypeFamily(v []*string) *DescribeRecommendInstanceTypeRequest { s.InstanceTypeFamily = v return s } func (s *DescribeRecommendInstanceTypeRequest) SetIoOptimized(v string) *DescribeRecommendInstanceTypeRequest { s.IoOptimized = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetMaxPrice(v float32) *DescribeRecommendInstanceTypeRequest { s.MaxPrice = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetMemory(v float32) *DescribeRecommendInstanceTypeRequest { s.Memory = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetNetworkType(v string) *DescribeRecommendInstanceTypeRequest { s.NetworkType = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetOwnerAccount(v string) *DescribeRecommendInstanceTypeRequest { s.OwnerAccount = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetOwnerId(v int64) *DescribeRecommendInstanceTypeRequest { s.OwnerId = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetPriorityStrategy(v string) *DescribeRecommendInstanceTypeRequest { s.PriorityStrategy = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetRegionId(v string) *DescribeRecommendInstanceTypeRequest { s.RegionId = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetResourceOwnerAccount(v string) *DescribeRecommendInstanceTypeRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetResourceOwnerId(v int64) *DescribeRecommendInstanceTypeRequest { s.ResourceOwnerId = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetScene(v string) *DescribeRecommendInstanceTypeRequest { s.Scene = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetSpotStrategy(v string) *DescribeRecommendInstanceTypeRequest { s.SpotStrategy = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetSystemDiskCategory(v string) *DescribeRecommendInstanceTypeRequest { s.SystemDiskCategory = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetZoneId(v string) *DescribeRecommendInstanceTypeRequest { s.ZoneId = &v return s } func (s *DescribeRecommendInstanceTypeRequest) SetZoneMatchMode(v string) *DescribeRecommendInstanceTypeRequest { s.ZoneMatchMode = &v return s } type DescribeRecommendInstanceTypeResponseBody struct { // The details of the recommended instance types. Data *DescribeRecommendInstanceTypeResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeRecommendInstanceTypeResponseBody) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponseBody) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponseBody) SetData(v *DescribeRecommendInstanceTypeResponseBodyData) *DescribeRecommendInstanceTypeResponseBody { s.Data = v return s } func (s *DescribeRecommendInstanceTypeResponseBody) SetRequestId(v string) *DescribeRecommendInstanceTypeResponseBody { s.RequestId = &v return s } type DescribeRecommendInstanceTypeResponseBodyData struct { RecommendInstanceType []*DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType `json:"RecommendInstanceType,omitempty" xml:"RecommendInstanceType,omitempty" type:"Repeated"` } func (s DescribeRecommendInstanceTypeResponseBodyData) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponseBodyData) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponseBodyData) SetRecommendInstanceType(v []*DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) *DescribeRecommendInstanceTypeResponseBodyData { s.RecommendInstanceType = v return s } type DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType struct { // The commodity code of the instance type. CommodityCode *string `json:"CommodityCode,omitempty" xml:"CommodityCode,omitempty"` // The billing method of the instance. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` // The name of the instance type. InstanceType *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType `json:"InstanceType,omitempty" xml:"InstanceType,omitempty" type:"Struct"` // The network type of the instance. NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` // The priority based on which the system sorts the instance types. Priority *int32 `json:"Priority,omitempty" xml:"Priority,omitempty"` // The region ID of the instance type. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The scenarios in which the instance type is recommended. Scene *string `json:"Scene,omitempty" xml:"Scene,omitempty"` // The bidding policy for the preemptible instance. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // The ID of the zone in which the instance type is available. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` // The details of the zones where the instance types resides. Zones *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones `json:"Zones,omitempty" xml:"Zones,omitempty" type:"Struct"` } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetCommodityCode(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.CommodityCode = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetInstanceChargeType(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.InstanceChargeType = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetInstanceType(v *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.InstanceType = v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetNetworkType(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.NetworkType = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetPriority(v int32) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.Priority = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetRegionId(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.RegionId = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetScene(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.Scene = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetSpotStrategy(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.SpotStrategy = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetZoneId(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.ZoneId = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType) SetZones(v *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType { s.Zones = v return s } type DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType struct { // The number of vCPUs of the instance type. Cores *int32 `json:"Cores,omitempty" xml:"Cores,omitempty"` // The generation of the instance family. Generation *string `json:"Generation,omitempty" xml:"Generation,omitempty"` // The name of the instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The instance family. InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // The memory size of the instance type. Unit: MB. Memory *int32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // Indicates whether the instance type supports I/O optimization. SupportIoOptimized *string `json:"SupportIoOptimized,omitempty" xml:"SupportIoOptimized,omitempty"` } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) SetCores(v int32) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType { s.Cores = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) SetGeneration(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType { s.Generation = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) SetInstanceType(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType { s.InstanceType = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) SetInstanceTypeFamily(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType { s.InstanceTypeFamily = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) SetMemory(v int32) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType { s.Memory = &v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType) SetSupportIoOptimized(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType { s.SupportIoOptimized = &v return s } type DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones struct { Zone []*DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone `json:"zone,omitempty" xml:"zone,omitempty" type:"Repeated"` } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones) SetZone(v []*DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones { s.Zone = v return s } type DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone struct { // The details of network types of instance types. NetworkTypes *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes `json:"NetworkTypes,omitempty" xml:"NetworkTypes,omitempty" type:"Struct"` // The ID of the zone where the instance type is available. ZoneNo *string `json:"ZoneNo,omitempty" xml:"ZoneNo,omitempty"` } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone) SetNetworkTypes(v *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone { s.NetworkTypes = v return s } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone) SetZoneNo(v string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone { s.ZoneNo = &v return s } type DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes struct { NetworkType []*string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty" type:"Repeated"` } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes) SetNetworkType(v []*string) *DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes { s.NetworkType = v return s } type DescribeRecommendInstanceTypeResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeRecommendInstanceTypeResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeRecommendInstanceTypeResponse) String() string { return tea.Prettify(s) } func (s DescribeRecommendInstanceTypeResponse) GoString() string { return s.String() } func (s *DescribeRecommendInstanceTypeResponse) SetHeaders(v map[string]*string) *DescribeRecommendInstanceTypeResponse { s.Headers = v return s } func (s *DescribeRecommendInstanceTypeResponse) SetStatusCode(v int32) *DescribeRecommendInstanceTypeResponse { s.StatusCode = &v return s } func (s *DescribeRecommendInstanceTypeResponse) SetBody(v *DescribeRecommendInstanceTypeResponseBody) *DescribeRecommendInstanceTypeResponse { s.Body = v return s } type DescribeRegionsRequest struct { // The natural language that is used to filter responses. For more information, visit [RFC 7231](https://tools.ietf.org/html/rfc7231). Valid values: // // * zh-CN: Chinese // * en-US: English // * ja: Japanese // // Default value: zh-CN. AcceptLanguage *string `json:"AcceptLanguage,omitempty" xml:"AcceptLanguage,omitempty"` // The billing method of the instance. For more information, see [Billing overview](~~25398~~). Valid values: // // * PrePaid: subscription. If this parameter is set to PrePaid, make sure that you have sufficient balance or credits in your account. Otherwise, the InvalidPayMethod error code is returned. // * PostPaid: pay-as-you-go. // // Default value: PostPaid. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The type of the resource. Valid values: // // * instance: Elastic Compute Service (ECS) instance // * disk: disk // * reservedinstance: reserved instance // * scu: storage capacity unit (SCU) // // Default value: instance. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` } func (s DescribeRegionsRequest) String() string { return tea.Prettify(s) } func (s DescribeRegionsRequest) GoString() string { return s.String() } func (s *DescribeRegionsRequest) SetAcceptLanguage(v string) *DescribeRegionsRequest { s.AcceptLanguage = &v return s } func (s *DescribeRegionsRequest) SetInstanceChargeType(v string) *DescribeRegionsRequest { s.InstanceChargeType = &v return s } func (s *DescribeRegionsRequest) SetOwnerAccount(v string) *DescribeRegionsRequest { s.OwnerAccount = &v return s } func (s *DescribeRegionsRequest) SetOwnerId(v int64) *DescribeRegionsRequest { s.OwnerId = &v return s } func (s *DescribeRegionsRequest) SetResourceOwnerAccount(v string) *DescribeRegionsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeRegionsRequest) SetResourceOwnerId(v int64) *DescribeRegionsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeRegionsRequest) SetResourceType(v string) *DescribeRegionsRequest { s.ResourceType = &v return s } type DescribeRegionsResponseBody struct { // Details about the regions. Regions *DescribeRegionsResponseBodyRegions `json:"Regions,omitempty" xml:"Regions,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeRegionsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeRegionsResponseBody) GoString() string { return s.String() } func (s *DescribeRegionsResponseBody) SetRegions(v *DescribeRegionsResponseBodyRegions) *DescribeRegionsResponseBody { s.Regions = v return s } func (s *DescribeRegionsResponseBody) SetRequestId(v string) *DescribeRegionsResponseBody { s.RequestId = &v return s } type DescribeRegionsResponseBodyRegions struct { Region []*DescribeRegionsResponseBodyRegionsRegion `json:"Region,omitempty" xml:"Region,omitempty" type:"Repeated"` } func (s DescribeRegionsResponseBodyRegions) String() string { return tea.Prettify(s) } func (s DescribeRegionsResponseBodyRegions) GoString() string { return s.String() } func (s *DescribeRegionsResponseBodyRegions) SetRegion(v []*DescribeRegionsResponseBodyRegionsRegion) *DescribeRegionsResponseBodyRegions { s.Region = v return s } type DescribeRegionsResponseBodyRegionsRegion struct { // The name of the region. LocalName *string `json:"LocalName,omitempty" xml:"LocalName,omitempty"` // The endpoint of the region. RegionEndpoint *string `json:"RegionEndpoint,omitempty" xml:"RegionEndpoint,omitempty"` // The ID of the region. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // Indicates whether clusters are sold out. Valid values: // // * available // * soldOut Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeRegionsResponseBodyRegionsRegion) String() string { return tea.Prettify(s) } func (s DescribeRegionsResponseBodyRegionsRegion) GoString() string { return s.String() } func (s *DescribeRegionsResponseBodyRegionsRegion) SetLocalName(v string) *DescribeRegionsResponseBodyRegionsRegion { s.LocalName = &v return s } func (s *DescribeRegionsResponseBodyRegionsRegion) SetRegionEndpoint(v string) *DescribeRegionsResponseBodyRegionsRegion { s.RegionEndpoint = &v return s } func (s *DescribeRegionsResponseBodyRegionsRegion) SetRegionId(v string) *DescribeRegionsResponseBodyRegionsRegion { s.RegionId = &v return s } func (s *DescribeRegionsResponseBodyRegionsRegion) SetStatus(v string) *DescribeRegionsResponseBodyRegionsRegion { s.Status = &v return s } type DescribeRegionsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeRegionsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeRegionsResponse) String() string { return tea.Prettify(s) } func (s DescribeRegionsResponse) GoString() string { return s.String() } func (s *DescribeRegionsResponse) SetHeaders(v map[string]*string) *DescribeRegionsResponse { s.Headers = v return s } func (s *DescribeRegionsResponse) SetStatusCode(v int32) *DescribeRegionsResponse { s.StatusCode = &v return s } func (s *DescribeRegionsResponse) SetBody(v *DescribeRegionsResponseBody) *DescribeRegionsResponse { s.Body = v return s } type DescribeRenewalPriceRequest struct { // The synchronized expiration date. If you specify this parameter, the price for renewing a specified instance to the specified synchronized expiration date is queried. Valid values: 1 to 28. // // For information about how to synchronize the expiration dates of instances, see [Synchronize the expiration dates of instances](~~108486~~). // // > The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the `ExpectedRenewDay` parameter are mutually exclusive. ExpectedRenewDay *int32 `json:"ExpectedRenewDay,omitempty" xml:"ExpectedRenewDay,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The renewal period. Valid values: // // * Valid values when the `PriceUnit` parameter is set to `Month`: 1, 2, 3, 4, 5, 6, 7, 8, and 9. // * Valid values when the `PriceUnit` parameter is set to `Year`: 1, 2, 3. // // Default value: 1. // // > The renewal period-related parameter pair (`Period` and `PeriodUnit`) and the `ExpectedRenewDay` parameter are mutually exclusive. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The unit of the renewal period. Valid values: // // * Month // * Year // // Default value: Month. PriceUnit *string `json:"PriceUnit,omitempty" xml:"PriceUnit,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource. If the `ResourceType` parameter is set to` instance `, the value of the `ResourceId` parameter is the ID of the specified instance.`` ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The type of the resource. Set the value to instance. // // Default value: instance. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` } func (s DescribeRenewalPriceRequest) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceRequest) GoString() string { return s.String() } func (s *DescribeRenewalPriceRequest) SetExpectedRenewDay(v int32) *DescribeRenewalPriceRequest { s.ExpectedRenewDay = &v return s } func (s *DescribeRenewalPriceRequest) SetOwnerAccount(v string) *DescribeRenewalPriceRequest { s.OwnerAccount = &v return s } func (s *DescribeRenewalPriceRequest) SetOwnerId(v int64) *DescribeRenewalPriceRequest { s.OwnerId = &v return s } func (s *DescribeRenewalPriceRequest) SetPeriod(v int32) *DescribeRenewalPriceRequest { s.Period = &v return s } func (s *DescribeRenewalPriceRequest) SetPriceUnit(v string) *DescribeRenewalPriceRequest { s.PriceUnit = &v return s } func (s *DescribeRenewalPriceRequest) SetRegionId(v string) *DescribeRenewalPriceRequest { s.RegionId = &v return s } func (s *DescribeRenewalPriceRequest) SetResourceId(v string) *DescribeRenewalPriceRequest { s.ResourceId = &v return s } func (s *DescribeRenewalPriceRequest) SetResourceOwnerAccount(v string) *DescribeRenewalPriceRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeRenewalPriceRequest) SetResourceOwnerId(v int64) *DescribeRenewalPriceRequest { s.ResourceOwnerId = &v return s } func (s *DescribeRenewalPriceRequest) SetResourceType(v string) *DescribeRenewalPriceRequest { s.ResourceType = &v return s } type DescribeRenewalPriceResponseBody struct { // Details about the prices and promotion rules. PriceInfo *DescribeRenewalPriceResponseBodyPriceInfo `json:"PriceInfo,omitempty" xml:"PriceInfo,omitempty" type:"Struct"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeRenewalPriceResponseBody) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBody) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBody) SetPriceInfo(v *DescribeRenewalPriceResponseBodyPriceInfo) *DescribeRenewalPriceResponseBody { s.PriceInfo = v return s } func (s *DescribeRenewalPriceResponseBody) SetRequestId(v string) *DescribeRenewalPriceResponseBody { s.RequestId = &v return s } type DescribeRenewalPriceResponseBodyPriceInfo struct { // The price. Price *DescribeRenewalPriceResponseBodyPriceInfoPrice `json:"Price,omitempty" xml:"Price,omitempty" type:"Struct"` // Details about the promotion rules. Rules *DescribeRenewalPriceResponseBodyPriceInfoRules `json:"Rules,omitempty" xml:"Rules,omitempty" type:"Struct"` } func (s DescribeRenewalPriceResponseBodyPriceInfo) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfo) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfo) SetPrice(v *DescribeRenewalPriceResponseBodyPriceInfoPrice) *DescribeRenewalPriceResponseBodyPriceInfo { s.Price = v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfo) SetRules(v *DescribeRenewalPriceResponseBodyPriceInfoRules) *DescribeRenewalPriceResponseBodyPriceInfo { s.Rules = v return s } type DescribeRenewalPriceResponseBodyPriceInfoPrice struct { // The currency unit. // // Alibaba Cloud China site (aliyun.com): CNY. // // Alibaba Cloud International site (alibabacloud.com): USD. Currency *string `json:"Currency,omitempty" xml:"Currency,omitempty"` // Details about the resource prices. DetailInfos *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos `json:"DetailInfos,omitempty" xml:"DetailInfos,omitempty" type:"Struct"` // The discount. DiscountPrice *float32 `json:"DiscountPrice,omitempty" xml:"DiscountPrice,omitempty"` // The original price. OriginalPrice *float32 `json:"OriginalPrice,omitempty" xml:"OriginalPrice,omitempty"` // The transaction price, which is equal to the original price minus the discount. TradePrice *float32 `json:"TradePrice,omitempty" xml:"TradePrice,omitempty"` } func (s DescribeRenewalPriceResponseBodyPriceInfoPrice) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfoPrice) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfoPrice) SetCurrency(v string) *DescribeRenewalPriceResponseBodyPriceInfoPrice { s.Currency = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPrice) SetDetailInfos(v *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos) *DescribeRenewalPriceResponseBodyPriceInfoPrice { s.DetailInfos = v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPrice) SetDiscountPrice(v float32) *DescribeRenewalPriceResponseBodyPriceInfoPrice { s.DiscountPrice = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPrice) SetOriginalPrice(v float32) *DescribeRenewalPriceResponseBodyPriceInfoPrice { s.OriginalPrice = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPrice) SetTradePrice(v float32) *DescribeRenewalPriceResponseBodyPriceInfoPrice { s.TradePrice = &v return s } type DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos struct { ResourcePriceModel []*DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel `json:"ResourcePriceModel,omitempty" xml:"ResourcePriceModel,omitempty" type:"Repeated"` } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos) SetResourcePriceModel(v []*DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfos { s.ResourcePriceModel = v return s } type DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel struct { // The discount. DiscountPrice *float32 `json:"DiscountPrice,omitempty" xml:"DiscountPrice,omitempty"` // The original price. OriginalPrice *float32 `json:"OriginalPrice,omitempty" xml:"OriginalPrice,omitempty"` // The name of the resource that corresponds to the price. Resource *string `json:"Resource,omitempty" xml:"Resource,omitempty"` // Details about the pricing rules. SubRules *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules `json:"SubRules,omitempty" xml:"SubRules,omitempty" type:"Struct"` // The transaction price. TradePrice *float32 `json:"TradePrice,omitempty" xml:"TradePrice,omitempty"` } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetDiscountPrice(v float32) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.DiscountPrice = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetOriginalPrice(v float32) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.OriginalPrice = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetResource(v string) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.Resource = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetSubRules(v *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.SubRules = v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel) SetTradePrice(v float32) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModel { s.TradePrice = &v return s } type DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules struct { Rule []*DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule `json:"Rule,omitempty" xml:"Rule,omitempty" type:"Repeated"` } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules) SetRule(v []*DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRules { s.Rule = v return s } type DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule struct { // The description of the pricing rule. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the pricing rule. RuleId *int64 `json:"RuleId,omitempty" xml:"RuleId,omitempty"` } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) SetDescription(v string) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule { s.Description = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule) SetRuleId(v int64) *DescribeRenewalPriceResponseBodyPriceInfoPriceDetailInfosResourcePriceModelSubRulesRule { s.RuleId = &v return s } type DescribeRenewalPriceResponseBodyPriceInfoRules struct { Rule []*DescribeRenewalPriceResponseBodyPriceInfoRulesRule `json:"Rule,omitempty" xml:"Rule,omitempty" type:"Repeated"` } func (s DescribeRenewalPriceResponseBodyPriceInfoRules) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfoRules) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfoRules) SetRule(v []*DescribeRenewalPriceResponseBodyPriceInfoRulesRule) *DescribeRenewalPriceResponseBodyPriceInfoRules { s.Rule = v return s } type DescribeRenewalPriceResponseBodyPriceInfoRulesRule struct { // The description of the promotion rule. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the promotion rule. RuleId *int64 `json:"RuleId,omitempty" xml:"RuleId,omitempty"` } func (s DescribeRenewalPriceResponseBodyPriceInfoRulesRule) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponseBodyPriceInfoRulesRule) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponseBodyPriceInfoRulesRule) SetDescription(v string) *DescribeRenewalPriceResponseBodyPriceInfoRulesRule { s.Description = &v return s } func (s *DescribeRenewalPriceResponseBodyPriceInfoRulesRule) SetRuleId(v int64) *DescribeRenewalPriceResponseBodyPriceInfoRulesRule { s.RuleId = &v return s } type DescribeRenewalPriceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeRenewalPriceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeRenewalPriceResponse) String() string { return tea.Prettify(s) } func (s DescribeRenewalPriceResponse) GoString() string { return s.String() } func (s *DescribeRenewalPriceResponse) SetHeaders(v map[string]*string) *DescribeRenewalPriceResponse { s.Headers = v return s } func (s *DescribeRenewalPriceResponse) SetStatusCode(v int32) *DescribeRenewalPriceResponse { s.StatusCode = &v return s } func (s *DescribeRenewalPriceResponse) SetBody(v *DescribeRenewalPriceResponseBody) *DescribeRenewalPriceResponse { s.Body = v return s } type DescribeReservedInstanceAutoRenewAttributeRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the reserved instances. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The IDs of the reserved instances. ReservedInstanceId []*string `json:"ReservedInstanceId,omitempty" xml:"ReservedInstanceId,omitempty" type:"Repeated"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeReservedInstanceAutoRenewAttributeRequest) String() string { return tea.Prettify(s) } func (s DescribeReservedInstanceAutoRenewAttributeRequest) GoString() string { return s.String() } func (s *DescribeReservedInstanceAutoRenewAttributeRequest) SetOwnerAccount(v string) *DescribeReservedInstanceAutoRenewAttributeRequest { s.OwnerAccount = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeRequest) SetOwnerId(v int64) *DescribeReservedInstanceAutoRenewAttributeRequest { s.OwnerId = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeRequest) SetRegionId(v string) *DescribeReservedInstanceAutoRenewAttributeRequest { s.RegionId = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeRequest) SetReservedInstanceId(v []*string) *DescribeReservedInstanceAutoRenewAttributeRequest { s.ReservedInstanceId = v return s } func (s *DescribeReservedInstanceAutoRenewAttributeRequest) SetResourceOwnerAccount(v string) *DescribeReservedInstanceAutoRenewAttributeRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeRequest) SetResourceOwnerId(v int64) *DescribeReservedInstanceAutoRenewAttributeRequest { s.ResourceOwnerId = &v return s } type DescribeReservedInstanceAutoRenewAttributeResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details about the auto-renewal settings of the reserved instances. ReservedInstanceRenewAttributes *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributes `json:"ReservedInstanceRenewAttributes,omitempty" xml:"ReservedInstanceRenewAttributes,omitempty" type:"Struct"` } func (s DescribeReservedInstanceAutoRenewAttributeResponseBody) String() string { return tea.Prettify(s) } func (s DescribeReservedInstanceAutoRenewAttributeResponseBody) GoString() string { return s.String() } func (s *DescribeReservedInstanceAutoRenewAttributeResponseBody) SetRequestId(v string) *DescribeReservedInstanceAutoRenewAttributeResponseBody { s.RequestId = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeResponseBody) SetReservedInstanceRenewAttributes(v *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributes) *DescribeReservedInstanceAutoRenewAttributeResponseBody { s.ReservedInstanceRenewAttributes = v return s } type DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributes struct { ReservedInstanceRenewAttribute []*DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute `json:"ReservedInstanceRenewAttribute,omitempty" xml:"ReservedInstanceRenewAttribute,omitempty" type:"Repeated"` } func (s DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributes) String() string { return tea.Prettify(s) } func (s DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributes) GoString() string { return s.String() } func (s *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributes) SetReservedInstanceRenewAttribute(v []*DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute) *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributes { s.ReservedInstanceRenewAttribute = v return s } type DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute struct { // The auto-renewal duration. Duration *int32 `json:"Duration,omitempty" xml:"Duration,omitempty"` // The unit of the auto-renewal duration. // // Valid values: Year and Month. PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` // The auto-renewal status of the reserved instance. Valid values: // // * AutoRenewal: The reserved instance is automatically renewed. // * Normal: You must manually renew the reserved instance. RenewalStatus *string `json:"RenewalStatus,omitempty" xml:"RenewalStatus,omitempty"` // The ID of the reserved instance. ReservedInstanceId *string `json:"ReservedInstanceId,omitempty" xml:"ReservedInstanceId,omitempty"` } func (s DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute) String() string { return tea.Prettify(s) } func (s DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute) GoString() string { return s.String() } func (s *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute) SetDuration(v int32) *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute { s.Duration = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute) SetPeriodUnit(v string) *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute { s.PeriodUnit = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute) SetRenewalStatus(v string) *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute { s.RenewalStatus = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute) SetReservedInstanceId(v string) *DescribeReservedInstanceAutoRenewAttributeResponseBodyReservedInstanceRenewAttributesReservedInstanceRenewAttribute { s.ReservedInstanceId = &v return s } type DescribeReservedInstanceAutoRenewAttributeResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeReservedInstanceAutoRenewAttributeResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeReservedInstanceAutoRenewAttributeResponse) String() string { return tea.Prettify(s) } func (s DescribeReservedInstanceAutoRenewAttributeResponse) GoString() string { return s.String() } func (s *DescribeReservedInstanceAutoRenewAttributeResponse) SetHeaders(v map[string]*string) *DescribeReservedInstanceAutoRenewAttributeResponse { s.Headers = v return s } func (s *DescribeReservedInstanceAutoRenewAttributeResponse) SetStatusCode(v int32) *DescribeReservedInstanceAutoRenewAttributeResponse { s.StatusCode = &v return s } func (s *DescribeReservedInstanceAutoRenewAttributeResponse) SetBody(v *DescribeReservedInstanceAutoRenewAttributeResponseBody) *DescribeReservedInstanceAutoRenewAttributeResponse { s.Body = v return s } type DescribeReservedInstancesRequest struct { // The allocation type. Valid values: // // * Normal: queries all reserved instances that belong to the current account. // * Shared: queries reserved instances that are shared between the main account and linked accounts. // // Default value: Normal. AllocationType *string `json:"AllocationType,omitempty" xml:"AllocationType,omitempty"` // The instance type. For more information, see [Instance families](~~25378~~). InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The instance family. For more information, see [Instance families](~~25378~~). InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // The reason why the instance is locked. Valid values: // // * financial: You have an overdue payment in your account, or the reserved instance has expired. // * security: The reserved instance is locked for security reasons. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` // The payment option of the reserved instances. Valid values: // // * No Upfront // * Partial Upfront // * All Upfront OfferingType *string `json:"OfferingType,omitempty" xml:"OfferingType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the instances. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of reserved instance N. Valid values of N: 1 to 100. ReservedInstanceId []*string `json:"ReservedInstanceId,omitempty" xml:"ReservedInstanceId,omitempty" type:"Repeated"` // The name of the reserved instance. ReservedInstanceName *string `json:"ReservedInstanceName,omitempty" xml:"ReservedInstanceName,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The scope of the reserved instances. Valid values: // // * Region // * Zone // // Default value: Region. Scope *string `json:"Scope,omitempty" xml:"Scope,omitempty"` // The status of reserved instance N. Valid values of N: 1 to 100. Valid values: // // * Creating // * Active // * Expired // * Updating Status []*string `json:"Status,omitempty" xml:"Status,omitempty" type:"Repeated"` // The tags to add to the instances. Tag []*DescribeReservedInstancesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The zone ID of the reserved instances. This parameter is required when Scope is set to Zone. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeReservedInstancesRequest) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesRequest) GoString() string { return s.String() } func (s *DescribeReservedInstancesRequest) SetAllocationType(v string) *DescribeReservedInstancesRequest { s.AllocationType = &v return s } func (s *DescribeReservedInstancesRequest) SetInstanceType(v string) *DescribeReservedInstancesRequest { s.InstanceType = &v return s } func (s *DescribeReservedInstancesRequest) SetInstanceTypeFamily(v string) *DescribeReservedInstancesRequest { s.InstanceTypeFamily = &v return s } func (s *DescribeReservedInstancesRequest) SetLockReason(v string) *DescribeReservedInstancesRequest { s.LockReason = &v return s } func (s *DescribeReservedInstancesRequest) SetOfferingType(v string) *DescribeReservedInstancesRequest { s.OfferingType = &v return s } func (s *DescribeReservedInstancesRequest) SetOwnerAccount(v string) *DescribeReservedInstancesRequest { s.OwnerAccount = &v return s } func (s *DescribeReservedInstancesRequest) SetOwnerId(v int64) *DescribeReservedInstancesRequest { s.OwnerId = &v return s } func (s *DescribeReservedInstancesRequest) SetPageNumber(v int32) *DescribeReservedInstancesRequest { s.PageNumber = &v return s } func (s *DescribeReservedInstancesRequest) SetPageSize(v int32) *DescribeReservedInstancesRequest { s.PageSize = &v return s } func (s *DescribeReservedInstancesRequest) SetRegionId(v string) *DescribeReservedInstancesRequest { s.RegionId = &v return s } func (s *DescribeReservedInstancesRequest) SetReservedInstanceId(v []*string) *DescribeReservedInstancesRequest { s.ReservedInstanceId = v return s } func (s *DescribeReservedInstancesRequest) SetReservedInstanceName(v string) *DescribeReservedInstancesRequest { s.ReservedInstanceName = &v return s } func (s *DescribeReservedInstancesRequest) SetResourceOwnerAccount(v string) *DescribeReservedInstancesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeReservedInstancesRequest) SetResourceOwnerId(v int64) *DescribeReservedInstancesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeReservedInstancesRequest) SetScope(v string) *DescribeReservedInstancesRequest { s.Scope = &v return s } func (s *DescribeReservedInstancesRequest) SetStatus(v []*string) *DescribeReservedInstancesRequest { s.Status = v return s } func (s *DescribeReservedInstancesRequest) SetTag(v []*DescribeReservedInstancesRequestTag) *DescribeReservedInstancesRequest { s.Tag = v return s } func (s *DescribeReservedInstancesRequest) SetZoneId(v string) *DescribeReservedInstancesRequest { s.ZoneId = &v return s } type DescribeReservedInstancesRequestTag struct { // The key of tag N to add to the reserved instance. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain [http:// or https://](http://https://。). The tag key cannot start with acs: or aliyun. // // Up to 1,000 resources with the specified tags can be returned in the response. To query more than 1,000 resources with the specified tags, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the reserved instance. 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://](http://https://。). The tag value cannot start with acs:. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeReservedInstancesRequestTag) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesRequestTag) GoString() string { return s.String() } func (s *DescribeReservedInstancesRequestTag) SetKey(v string) *DescribeReservedInstancesRequestTag { s.Key = &v return s } func (s *DescribeReservedInstancesRequestTag) SetValue(v string) *DescribeReservedInstancesRequestTag { s.Value = &v return s } type DescribeReservedInstancesResponseBody struct { // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details about the reserved instances. ReservedInstances *DescribeReservedInstancesResponseBodyReservedInstances `json:"ReservedInstances,omitempty" xml:"ReservedInstances,omitempty" type:"Struct"` // The total number of reserved instances. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeReservedInstancesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponseBody) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponseBody) SetPageNumber(v int32) *DescribeReservedInstancesResponseBody { s.PageNumber = &v return s } func (s *DescribeReservedInstancesResponseBody) SetPageSize(v int32) *DescribeReservedInstancesResponseBody { s.PageSize = &v return s } func (s *DescribeReservedInstancesResponseBody) SetRequestId(v string) *DescribeReservedInstancesResponseBody { s.RequestId = &v return s } func (s *DescribeReservedInstancesResponseBody) SetReservedInstances(v *DescribeReservedInstancesResponseBodyReservedInstances) *DescribeReservedInstancesResponseBody { s.ReservedInstances = v return s } func (s *DescribeReservedInstancesResponseBody) SetTotalCount(v int32) *DescribeReservedInstancesResponseBody { s.TotalCount = &v return s } type DescribeReservedInstancesResponseBodyReservedInstances struct { ReservedInstance []*DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance `json:"ReservedInstance,omitempty" xml:"ReservedInstance,omitempty" type:"Repeated"` } func (s DescribeReservedInstancesResponseBodyReservedInstances) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponseBodyReservedInstances) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponseBodyReservedInstances) SetReservedInstance(v []*DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) *DescribeReservedInstancesResponseBodyReservedInstances { s.ReservedInstance = v return s } type DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance struct { // Indicates the sharing status of the reserved instance when the AllocationType parameter is set to Shared. Valid values: // // * allocated: The reserved instance is allocated to another account. // * beAllocated: The reserved instance is allocated by another account. AllocationStatus *string `json:"AllocationStatus,omitempty" xml:"AllocationStatus,omitempty"` // The creation time. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The expiration time. ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` // The number of pay-as-you-go instances that are of the same instance type as the reserved instance and can be matched to the reserved instance. InstanceAmount *int32 `json:"InstanceAmount,omitempty" xml:"InstanceAmount,omitempty"` // The instance type of the pay-as-you-go instances that can be matched to the reserved instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The payment option. OfferingType *string `json:"OfferingType,omitempty" xml:"OfferingType,omitempty"` // Details about the lock status of the reserved instance. OperationLocks *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty" type:"Struct"` // The operating system of the image used by the instance. Valid values: // // * Windows // * Linux Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The region ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The reserved instance ID. ReservedInstanceId *string `json:"ReservedInstanceId,omitempty" xml:"ReservedInstanceId,omitempty"` // The name. ReservedInstanceName *string `json:"ReservedInstanceName,omitempty" xml:"ReservedInstanceName,omitempty"` // The resource group ID. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The scope. Scope *string `json:"Scope,omitempty" xml:"Scope,omitempty"` // The effective time. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The status. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // Details about the tags of the reserved instance. Tags *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The zone ID. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetAllocationStatus(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.AllocationStatus = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetCreationTime(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.CreationTime = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetDescription(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.Description = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetExpiredTime(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.ExpiredTime = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetInstanceAmount(v int32) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.InstanceAmount = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetInstanceType(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.InstanceType = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetOfferingType(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.OfferingType = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetOperationLocks(v *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.OperationLocks = v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetPlatform(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.Platform = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetRegionId(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.RegionId = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetReservedInstanceId(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.ReservedInstanceId = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetReservedInstanceName(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.ReservedInstanceName = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetResourceGroupId(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.ResourceGroupId = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetScope(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.Scope = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetStartTime(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.StartTime = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetStatus(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.Status = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetTags(v *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.Tags = v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance) SetZoneId(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance { s.ZoneId = &v return s } type DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks struct { OperationLock []*DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock `json:"OperationLock,omitempty" xml:"OperationLock,omitempty" type:"Repeated"` } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks) SetOperationLock(v []*DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks { s.OperationLock = v return s } type DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock struct { // The reason why the instance is locked. LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"` } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock) SetLockReason(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock { s.LockReason = &v return s } type DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags struct { Tag []*DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags) SetTag(v []*DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags { s.Tag = v return s } type DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag struct { // The tag key. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag) SetTagKey(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag { s.TagKey = &v return s } func (s *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag) SetTagValue(v string) *DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag { s.TagValue = &v return s } type DescribeReservedInstancesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeReservedInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeReservedInstancesResponse) String() string { return tea.Prettify(s) } func (s DescribeReservedInstancesResponse) GoString() string { return s.String() } func (s *DescribeReservedInstancesResponse) SetHeaders(v map[string]*string) *DescribeReservedInstancesResponse { s.Headers = v return s } func (s *DescribeReservedInstancesResponse) SetStatusCode(v int32) *DescribeReservedInstancesResponse { s.StatusCode = &v return s } func (s *DescribeReservedInstancesResponse) SetBody(v *DescribeReservedInstancesResponseBody) *DescribeReservedInstancesResponse { s.Body = v return s } type DescribeResourceByTagsRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. Valid values: 1 to 100. // // Default value: 50. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the resource. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The type of the resource. Valid values: // // * instance: ECS instance // * disk: disk // * snapshot: snapshot // * image: image // * securitygroup: security group // * volume: storage volume // * eni: elastic network interface (ENI) // * ddh: dedicated host // * keypair: SSH key pair // * launchtemplate: launch template // // All the preceding values must be lowercase. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The tags. Tag []*DescribeResourceByTagsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeResourceByTagsRequest) String() string { return tea.Prettify(s) } func (s DescribeResourceByTagsRequest) GoString() string { return s.String() } func (s *DescribeResourceByTagsRequest) SetOwnerId(v int64) *DescribeResourceByTagsRequest { s.OwnerId = &v return s } func (s *DescribeResourceByTagsRequest) SetPageNumber(v int32) *DescribeResourceByTagsRequest { s.PageNumber = &v return s } func (s *DescribeResourceByTagsRequest) SetPageSize(v int32) *DescribeResourceByTagsRequest { s.PageSize = &v return s } func (s *DescribeResourceByTagsRequest) SetRegionId(v string) *DescribeResourceByTagsRequest { s.RegionId = &v return s } func (s *DescribeResourceByTagsRequest) SetResourceOwnerAccount(v string) *DescribeResourceByTagsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeResourceByTagsRequest) SetResourceOwnerId(v int64) *DescribeResourceByTagsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeResourceByTagsRequest) SetResourceType(v string) *DescribeResourceByTagsRequest { s.ResourceType = &v return s } func (s *DescribeResourceByTagsRequest) SetTag(v []*DescribeResourceByTagsRequestTag) *DescribeResourceByTagsRequest { s.Tag = v return s } type DescribeResourceByTagsRequestTag struct { // The key of tag N of the resource. Valid values of N: 1 to 20 The tag key cannot be an empty string. It can be up to 128 characters in length. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the resource. Valid values of N: 1 to 20 The tag value can be an empty string. It can be up to 128 characters in length. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeResourceByTagsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeResourceByTagsRequestTag) GoString() string { return s.String() } func (s *DescribeResourceByTagsRequestTag) SetKey(v string) *DescribeResourceByTagsRequestTag { s.Key = &v return s } func (s *DescribeResourceByTagsRequestTag) SetValue(v string) *DescribeResourceByTagsRequestTag { s.Value = &v return s } type DescribeResourceByTagsResponseBody struct { // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // An array consisting of Resource data. Resources *DescribeResourceByTagsResponseBodyResources `json:"Resources,omitempty" xml:"Resources,omitempty" type:"Struct"` // The total number of resources returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeResourceByTagsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeResourceByTagsResponseBody) GoString() string { return s.String() } func (s *DescribeResourceByTagsResponseBody) SetPageNumber(v int32) *DescribeResourceByTagsResponseBody { s.PageNumber = &v return s } func (s *DescribeResourceByTagsResponseBody) SetPageSize(v int32) *DescribeResourceByTagsResponseBody { s.PageSize = &v return s } func (s *DescribeResourceByTagsResponseBody) SetRequestId(v string) *DescribeResourceByTagsResponseBody { s.RequestId = &v return s } func (s *DescribeResourceByTagsResponseBody) SetResources(v *DescribeResourceByTagsResponseBodyResources) *DescribeResourceByTagsResponseBody { s.Resources = v return s } func (s *DescribeResourceByTagsResponseBody) SetTotalCount(v int32) *DescribeResourceByTagsResponseBody { s.TotalCount = &v return s } type DescribeResourceByTagsResponseBodyResources struct { Resource []*DescribeResourceByTagsResponseBodyResourcesResource `json:"Resource,omitempty" xml:"Resource,omitempty" type:"Repeated"` } func (s DescribeResourceByTagsResponseBodyResources) String() string { return tea.Prettify(s) } func (s DescribeResourceByTagsResponseBodyResources) GoString() string { return s.String() } func (s *DescribeResourceByTagsResponseBodyResources) SetResource(v []*DescribeResourceByTagsResponseBodyResourcesResource) *DescribeResourceByTagsResponseBodyResources { s.Resource = v return s } type DescribeResourceByTagsResponseBodyResourcesResource struct { // The region ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` // The type of the resource. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` } func (s DescribeResourceByTagsResponseBodyResourcesResource) String() string { return tea.Prettify(s) } func (s DescribeResourceByTagsResponseBodyResourcesResource) GoString() string { return s.String() } func (s *DescribeResourceByTagsResponseBodyResourcesResource) SetRegionId(v string) *DescribeResourceByTagsResponseBodyResourcesResource { s.RegionId = &v return s } func (s *DescribeResourceByTagsResponseBodyResourcesResource) SetResourceId(v string) *DescribeResourceByTagsResponseBodyResourcesResource { s.ResourceId = &v return s } func (s *DescribeResourceByTagsResponseBodyResourcesResource) SetResourceType(v string) *DescribeResourceByTagsResponseBodyResourcesResource { s.ResourceType = &v return s } type DescribeResourceByTagsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeResourceByTagsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeResourceByTagsResponse) String() string { return tea.Prettify(s) } func (s DescribeResourceByTagsResponse) GoString() string { return s.String() } func (s *DescribeResourceByTagsResponse) SetHeaders(v map[string]*string) *DescribeResourceByTagsResponse { s.Headers = v return s } func (s *DescribeResourceByTagsResponse) SetStatusCode(v int32) *DescribeResourceByTagsResponse { s.StatusCode = &v return s } func (s *DescribeResourceByTagsResponse) SetBody(v *DescribeResourceByTagsResponseBody) *DescribeResourceByTagsResponse { s.Body = v return s } type DescribeResourcesModificationRequest struct { // The condition. If you specify this parameter, the system queries the resource types that the resource can be changed to after the resource meets the specified condition. // // Set the value to DiskCategory, which indicates a disk category change. When you set this parameter to DiskCategory, the system queries the instance types that the instance can be changed to after a disk category change. Conditions []*string `json:"Conditions,omitempty" xml:"Conditions,omitempty" type:"Repeated"` // The number of vCPU cores of the instance type. For information about the values, see [Overview of instance families](~~25378~~). This parameter takes effect only when DestinationResource is set to InstanceType. Cores *int32 `json:"Cores,omitempty" xml:"Cores,omitempty"` // The target resource type. Valid values: // // * InstanceType // * SystemDisk DestinationResource *string `json:"DestinationResource,omitempty" xml:"DestinationResource,omitempty"` // The instance type. For more information, see [Overview of instance families](~~25378~~) or call the [DescribeInstanceTypes](~~25620~~) operation to query the most recent instance type list. This parameter is required when DestinationResource is set to SystemDisk. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The memory size of the instance type. Unit: GiB. For information about the values, see [Overview of instance families](~~25378~~). This parameter takes effect only when DestinationResource is set to InstanceType. Memory *float32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // Specifies whether cross-cluster instance type upgrades are supported. Valid values: // // * true // * false // // Default value: false. // // When MigrateAcrossZone is set to true and you upgrade the instance type of an Elastic Compute Service (ECS) instance based on the returned information, take note of the following items: // // * Instances that reside in the classic network: // // * For [retired instance types](~~55263~~), when a non-I/O-optimized instance is upgraded to an I/O-optimized instance, the private IP address, disk device names, and software authorization codes of the instance change. For Linux instances, basic disks (cloud) are identified as xvd\* such as xvda and xvdb, and ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified as vd\* such as vda and vdb. // * For [instance families available for purchase](~~25378~~), when the instance type of an instance is changed, the private IP address of the instance changes. // // * Instances that reside in virtual private clouds (VPCs): For [retired instance types](~~55263~~), when a non-I/O-optimized instance is upgraded to an I/O-optimized instance, the disk device names and software authorization codes of the instance change. For Linux instances, basic disks (cloud) are identified as xvd\* such as xvda and xvdb, and ultra disks (cloud_efficiency) and standard SSDs (cloud_ssd) are identified as vd\* such as vda and vdb. MigrateAcrossZone *bool `json:"MigrateAcrossZone,omitempty" xml:"MigrateAcrossZone,omitempty"` // The operation of changing resource configurations. // // * Valid values for subscription resources: // // * Upgrade // * Downgrade // * RenewDowngrade // * RenewModify // // * Valid values for pay-as-you-go resources: Upgrade // // Default value: Upgrade. OperationType *string `json:"OperationType,omitempty" xml:"OperationType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource. For example, when DestinationResource is set to InstanceType, this parameter can be interpreted as InstanceId. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the zone. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeResourcesModificationRequest) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationRequest) GoString() string { return s.String() } func (s *DescribeResourcesModificationRequest) SetConditions(v []*string) *DescribeResourcesModificationRequest { s.Conditions = v return s } func (s *DescribeResourcesModificationRequest) SetCores(v int32) *DescribeResourcesModificationRequest { s.Cores = &v return s } func (s *DescribeResourcesModificationRequest) SetDestinationResource(v string) *DescribeResourcesModificationRequest { s.DestinationResource = &v return s } func (s *DescribeResourcesModificationRequest) SetInstanceType(v string) *DescribeResourcesModificationRequest { s.InstanceType = &v return s } func (s *DescribeResourcesModificationRequest) SetMemory(v float32) *DescribeResourcesModificationRequest { s.Memory = &v return s } func (s *DescribeResourcesModificationRequest) SetMigrateAcrossZone(v bool) *DescribeResourcesModificationRequest { s.MigrateAcrossZone = &v return s } func (s *DescribeResourcesModificationRequest) SetOperationType(v string) *DescribeResourcesModificationRequest { s.OperationType = &v return s } func (s *DescribeResourcesModificationRequest) SetOwnerAccount(v string) *DescribeResourcesModificationRequest { s.OwnerAccount = &v return s } func (s *DescribeResourcesModificationRequest) SetOwnerId(v int64) *DescribeResourcesModificationRequest { s.OwnerId = &v return s } func (s *DescribeResourcesModificationRequest) SetRegionId(v string) *DescribeResourcesModificationRequest { s.RegionId = &v return s } func (s *DescribeResourcesModificationRequest) SetResourceId(v string) *DescribeResourcesModificationRequest { s.ResourceId = &v return s } func (s *DescribeResourcesModificationRequest) SetResourceOwnerAccount(v string) *DescribeResourcesModificationRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeResourcesModificationRequest) SetResourceOwnerId(v int64) *DescribeResourcesModificationRequest { s.ResourceOwnerId = &v return s } func (s *DescribeResourcesModificationRequest) SetZoneId(v string) *DescribeResourcesModificationRequest { s.ZoneId = &v return s } type DescribeResourcesModificationResponseBody struct { // The information about the queried zones. AvailableZones *DescribeResourcesModificationResponseBodyAvailableZones `json:"AvailableZones,omitempty" xml:"AvailableZones,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeResourcesModificationResponseBody) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBody) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBody) SetAvailableZones(v *DescribeResourcesModificationResponseBodyAvailableZones) *DescribeResourcesModificationResponseBody { s.AvailableZones = v return s } func (s *DescribeResourcesModificationResponseBody) SetRequestId(v string) *DescribeResourcesModificationResponseBody { s.RequestId = &v return s } type DescribeResourcesModificationResponseBodyAvailableZones struct { AvailableZone []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone `json:"AvailableZone,omitempty" xml:"AvailableZone,omitempty" type:"Repeated"` } func (s DescribeResourcesModificationResponseBodyAvailableZones) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZones) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZones) SetAvailableZone(v []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) *DescribeResourcesModificationResponseBodyAvailableZones { s.AvailableZone = v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone struct { // The resources that are available in the zone. AvailableResources *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResources `json:"AvailableResources,omitempty" xml:"AvailableResources,omitempty" type:"Struct"` // The ID of the region. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The status of the resource. Valid values: // // * Available // * SoldOut Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The category of resource based on stock status. Valid values: // // * WithStock: resources that are in sufficient stock // * ClosedWithStock: resources that are in insufficient stock // * WithoutStock: resources that are out of stock StatusCategory *string `json:"StatusCategory,omitempty" xml:"StatusCategory,omitempty"` // The ID of the zone. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) SetAvailableResources(v *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResources) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone { s.AvailableResources = v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) SetRegionId(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone { s.RegionId = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) SetStatus(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone { s.Status = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) SetStatusCategory(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone { s.StatusCategory = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone) SetZoneId(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZone { s.ZoneId = &v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResources struct { AvailableResource []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource `json:"AvailableResource,omitempty" xml:"AvailableResource,omitempty" type:"Repeated"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResources) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResources) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResources) SetAvailableResource(v []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResources { s.AvailableResource = v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource struct { // The resource types that resources can be changed to after the resources meet specified conditions. ConditionSupportedResources *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources `json:"ConditionSupportedResources,omitempty" xml:"ConditionSupportedResources,omitempty" type:"Struct"` // The information about the resources. SupportedResources *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources `json:"SupportedResources,omitempty" xml:"SupportedResources,omitempty" type:"Struct"` // The type of resource. Valid values: // // * Zone // * IoOptimized // * InstanceType // * SystemDisk // * DataDisk // * Network Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) SetConditionSupportedResources(v *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource { s.ConditionSupportedResources = v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) SetSupportedResources(v *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource { s.SupportedResources = v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource) SetType(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResource { s.Type = &v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources struct { ConditionSupportedResource []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource `json:"ConditionSupportedResource,omitempty" xml:"ConditionSupportedResource,omitempty" type:"Repeated"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources) SetConditionSupportedResource(v []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResources { s.ConditionSupportedResource = v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource struct { // The conditions. Conditions *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions `json:"Conditions,omitempty" xml:"Conditions,omitempty" type:"Struct"` // The maximum resource specification value. This parameter is not returned if it has no value. Max *int32 `json:"Max,omitempty" xml:"Max,omitempty"` // The minimum resource specification value. This parameter is not returned if it has no value. Min *int32 `json:"Min,omitempty" xml:"Min,omitempty"` // The stock status of the resource. Valid values: // // - Available // - SoldOut Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The category of resource based on stock status. Valid values: // // - WithStock: resources that are in sufficient stock // - ClosedWithStock: resources that are in insufficient stock // - WithoutStock: resources that are out of stock StatusCategory *string `json:"StatusCategory,omitempty" xml:"StatusCategory,omitempty"` // The resource specification unit. This parameter is not returned if it has no value. Unit *string `json:"Unit,omitempty" xml:"Unit,omitempty"` // The resource type. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) SetConditions(v *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource { s.Conditions = v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) SetMax(v int32) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource { s.Max = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) SetMin(v int32) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource { s.Min = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) SetStatus(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource { s.Status = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) SetStatusCategory(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource { s.StatusCategory = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) SetUnit(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource { s.Unit = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource) SetValue(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResource { s.Value = &v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions struct { Condition []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition `json:"Condition,omitempty" xml:"Condition,omitempty" type:"Repeated"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions) SetCondition(v []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditions { s.Condition = v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition struct { // The condition name. Valid value: // // DiskCategory, which indicates a disk category change. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition) SetKey(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceConditionSupportedResourcesConditionSupportedResourceConditionsCondition { s.Key = &v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources struct { SupportedResource []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource `json:"SupportedResource,omitempty" xml:"SupportedResource,omitempty" type:"Repeated"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources) SetSupportedResource(v []*DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResources { s.SupportedResource = v return s } type DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource struct { // The maximum resource specification value. This parameter is not returned if it has no value. Max *int32 `json:"Max,omitempty" xml:"Max,omitempty"` // The minimum resource specification value. This parameter is not returned if it has no value. Min *int32 `json:"Min,omitempty" xml:"Min,omitempty"` // The status of the resource. Valid values: // // * Available // * SoldOut Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The category of resource based on stock status. Valid values: // // * WithStock: resources that are in sufficient stock // * ClosedWithStock: resources that are in insufficient stock // * WithoutStock: resources that are out of stock StatusCategory *string `json:"StatusCategory,omitempty" xml:"StatusCategory,omitempty"` // The resource specification unit. This parameter is not returned if it has no value. Unit *string `json:"Unit,omitempty" xml:"Unit,omitempty"` // The resource type. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetMax(v int32) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Max = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetMin(v int32) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Min = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetStatus(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Status = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetStatusCategory(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.StatusCategory = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetUnit(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Unit = &v return s } func (s *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource) SetValue(v string) *DescribeResourcesModificationResponseBodyAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource { s.Value = &v return s } type DescribeResourcesModificationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeResourcesModificationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeResourcesModificationResponse) String() string { return tea.Prettify(s) } func (s DescribeResourcesModificationResponse) GoString() string { return s.String() } func (s *DescribeResourcesModificationResponse) SetHeaders(v map[string]*string) *DescribeResourcesModificationResponse { s.Headers = v return s } func (s *DescribeResourcesModificationResponse) SetStatusCode(v int32) *DescribeResourcesModificationResponse { s.StatusCode = &v return s } func (s *DescribeResourcesModificationResponse) SetBody(v *DescribeResourcesModificationResponseBody) *DescribeResourcesModificationResponse { s.Body = v return s } type DescribeRouteTablesRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RouteTableId *string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty"` RouteTableName *string `json:"RouteTableName,omitempty" xml:"RouteTableName,omitempty"` RouterId *string `json:"RouterId,omitempty" xml:"RouterId,omitempty"` RouterType *string `json:"RouterType,omitempty" xml:"RouterType,omitempty"` VRouterId *string `json:"VRouterId,omitempty" xml:"VRouterId,omitempty"` } func (s DescribeRouteTablesRequest) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesRequest) GoString() string { return s.String() } func (s *DescribeRouteTablesRequest) SetOwnerAccount(v string) *DescribeRouteTablesRequest { s.OwnerAccount = &v return s } func (s *DescribeRouteTablesRequest) SetOwnerId(v int64) *DescribeRouteTablesRequest { s.OwnerId = &v return s } func (s *DescribeRouteTablesRequest) SetPageNumber(v int32) *DescribeRouteTablesRequest { s.PageNumber = &v return s } func (s *DescribeRouteTablesRequest) SetPageSize(v int32) *DescribeRouteTablesRequest { s.PageSize = &v return s } func (s *DescribeRouteTablesRequest) SetRegionId(v string) *DescribeRouteTablesRequest { s.RegionId = &v return s } func (s *DescribeRouteTablesRequest) SetResourceOwnerAccount(v string) *DescribeRouteTablesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeRouteTablesRequest) SetResourceOwnerId(v int64) *DescribeRouteTablesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeRouteTablesRequest) SetRouteTableId(v string) *DescribeRouteTablesRequest { s.RouteTableId = &v return s } func (s *DescribeRouteTablesRequest) SetRouteTableName(v string) *DescribeRouteTablesRequest { s.RouteTableName = &v return s } func (s *DescribeRouteTablesRequest) SetRouterId(v string) *DescribeRouteTablesRequest { s.RouterId = &v return s } func (s *DescribeRouteTablesRequest) SetRouterType(v string) *DescribeRouteTablesRequest { s.RouterType = &v return s } func (s *DescribeRouteTablesRequest) SetVRouterId(v string) *DescribeRouteTablesRequest { s.VRouterId = &v return s } type DescribeRouteTablesResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` RouteTables *DescribeRouteTablesResponseBodyRouteTables `json:"RouteTables,omitempty" xml:"RouteTables,omitempty" type:"Struct"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeRouteTablesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponseBody) GoString() string { return s.String() } func (s *DescribeRouteTablesResponseBody) SetPageNumber(v int32) *DescribeRouteTablesResponseBody { s.PageNumber = &v return s } func (s *DescribeRouteTablesResponseBody) SetPageSize(v int32) *DescribeRouteTablesResponseBody { s.PageSize = &v return s } func (s *DescribeRouteTablesResponseBody) SetRequestId(v string) *DescribeRouteTablesResponseBody { s.RequestId = &v return s } func (s *DescribeRouteTablesResponseBody) SetRouteTables(v *DescribeRouteTablesResponseBodyRouteTables) *DescribeRouteTablesResponseBody { s.RouteTables = v return s } func (s *DescribeRouteTablesResponseBody) SetTotalCount(v int32) *DescribeRouteTablesResponseBody { s.TotalCount = &v return s } type DescribeRouteTablesResponseBodyRouteTables struct { RouteTable []*DescribeRouteTablesResponseBodyRouteTablesRouteTable `json:"RouteTable,omitempty" xml:"RouteTable,omitempty" type:"Repeated"` } func (s DescribeRouteTablesResponseBodyRouteTables) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponseBodyRouteTables) GoString() string { return s.String() } func (s *DescribeRouteTablesResponseBodyRouteTables) SetRouteTable(v []*DescribeRouteTablesResponseBodyRouteTablesRouteTable) *DescribeRouteTablesResponseBodyRouteTables { s.RouteTable = v return s } type DescribeRouteTablesResponseBodyRouteTablesRouteTable struct { CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` RouteEntrys *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrys `json:"RouteEntrys,omitempty" xml:"RouteEntrys,omitempty" type:"Struct"` RouteTableId *string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty"` RouteTableType *string `json:"RouteTableType,omitempty" xml:"RouteTableType,omitempty"` VRouterId *string `json:"VRouterId,omitempty" xml:"VRouterId,omitempty"` } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTable) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTable) GoString() string { return s.String() } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTable) SetCreationTime(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTable { s.CreationTime = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTable) SetResourceGroupId(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTable { s.ResourceGroupId = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTable) SetRouteEntrys(v *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrys) *DescribeRouteTablesResponseBodyRouteTablesRouteTable { s.RouteEntrys = v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTable) SetRouteTableId(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTable { s.RouteTableId = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTable) SetRouteTableType(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTable { s.RouteTableType = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTable) SetVRouterId(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTable { s.VRouterId = &v return s } type DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrys struct { RouteEntry []*DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry `json:"RouteEntry,omitempty" xml:"RouteEntry,omitempty" type:"Repeated"` } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrys) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrys) GoString() string { return s.String() } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrys) SetRouteEntry(v []*DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrys { s.RouteEntry = v return s } type DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry struct { DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" xml:"DestinationCidrBlock,omitempty"` InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` NextHopType *string `json:"NextHopType,omitempty" xml:"NextHopType,omitempty"` NextHops *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHops `json:"NextHops,omitempty" xml:"NextHops,omitempty" type:"Struct"` RouteTableId *string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` Type *string `json:"Type,omitempty" xml:"Type,omitempty"` } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) GoString() string { return s.String() } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) SetDestinationCidrBlock(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry { s.DestinationCidrBlock = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) SetInstanceId(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry { s.InstanceId = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) SetNextHopType(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry { s.NextHopType = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) SetNextHops(v *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHops) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry { s.NextHops = v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) SetRouteTableId(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry { s.RouteTableId = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) SetStatus(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry { s.Status = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry) SetType(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntry { s.Type = &v return s } type DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHops struct { NextHop []*DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop `json:"NextHop,omitempty" xml:"NextHop,omitempty" type:"Repeated"` } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHops) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHops) GoString() string { return s.String() } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHops) SetNextHop(v []*DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHops { s.NextHop = v return s } type DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop struct { Enabled *int32 `json:"Enabled,omitempty" xml:"Enabled,omitempty"` NextHopId *string `json:"NextHopId,omitempty" xml:"NextHopId,omitempty"` NextHopType *string `json:"NextHopType,omitempty" xml:"NextHopType,omitempty"` Weight *int32 `json:"Weight,omitempty" xml:"Weight,omitempty"` } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop) GoString() string { return s.String() } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop) SetEnabled(v int32) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop { s.Enabled = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop) SetNextHopId(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop { s.NextHopId = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop) SetNextHopType(v string) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop { s.NextHopType = &v return s } func (s *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop) SetWeight(v int32) *DescribeRouteTablesResponseBodyRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop { s.Weight = &v return s } type DescribeRouteTablesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeRouteTablesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeRouteTablesResponse) String() string { return tea.Prettify(s) } func (s DescribeRouteTablesResponse) GoString() string { return s.String() } func (s *DescribeRouteTablesResponse) SetHeaders(v map[string]*string) *DescribeRouteTablesResponse { s.Headers = v return s } func (s *DescribeRouteTablesResponse) SetStatusCode(v int32) *DescribeRouteTablesResponse { s.StatusCode = &v return s } func (s *DescribeRouteTablesResponse) SetBody(v *DescribeRouteTablesResponseBody) *DescribeRouteTablesResponse { s.Body = v return s } type DescribeRouterInterfacesRequest struct { Filter []*DescribeRouterInterfacesRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeRouterInterfacesRequest) String() string { return tea.Prettify(s) } func (s DescribeRouterInterfacesRequest) GoString() string { return s.String() } func (s *DescribeRouterInterfacesRequest) SetFilter(v []*DescribeRouterInterfacesRequestFilter) *DescribeRouterInterfacesRequest { s.Filter = v return s } func (s *DescribeRouterInterfacesRequest) SetOwnerId(v int64) *DescribeRouterInterfacesRequest { s.OwnerId = &v return s } func (s *DescribeRouterInterfacesRequest) SetPageNumber(v int32) *DescribeRouterInterfacesRequest { s.PageNumber = &v return s } func (s *DescribeRouterInterfacesRequest) SetPageSize(v int32) *DescribeRouterInterfacesRequest { s.PageSize = &v return s } func (s *DescribeRouterInterfacesRequest) SetRegionId(v string) *DescribeRouterInterfacesRequest { s.RegionId = &v return s } func (s *DescribeRouterInterfacesRequest) SetResourceOwnerAccount(v string) *DescribeRouterInterfacesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeRouterInterfacesRequest) SetResourceOwnerId(v int64) *DescribeRouterInterfacesRequest { s.ResourceOwnerId = &v return s } type DescribeRouterInterfacesRequestFilter struct { Key *string `json:"Key,omitempty" xml:"Key,omitempty"` Value []*string `json:"Value,omitempty" xml:"Value,omitempty" type:"Repeated"` } func (s DescribeRouterInterfacesRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeRouterInterfacesRequestFilter) GoString() string { return s.String() } func (s *DescribeRouterInterfacesRequestFilter) SetKey(v string) *DescribeRouterInterfacesRequestFilter { s.Key = &v return s } func (s *DescribeRouterInterfacesRequestFilter) SetValue(v []*string) *DescribeRouterInterfacesRequestFilter { s.Value = v return s } type DescribeRouterInterfacesResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` RouterInterfaceSet *DescribeRouterInterfacesResponseBodyRouterInterfaceSet `json:"RouterInterfaceSet,omitempty" xml:"RouterInterfaceSet,omitempty" type:"Struct"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeRouterInterfacesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeRouterInterfacesResponseBody) GoString() string { return s.String() } func (s *DescribeRouterInterfacesResponseBody) SetPageNumber(v int32) *DescribeRouterInterfacesResponseBody { s.PageNumber = &v return s } func (s *DescribeRouterInterfacesResponseBody) SetPageSize(v int32) *DescribeRouterInterfacesResponseBody { s.PageSize = &v return s } func (s *DescribeRouterInterfacesResponseBody) SetRequestId(v string) *DescribeRouterInterfacesResponseBody { s.RequestId = &v return s } func (s *DescribeRouterInterfacesResponseBody) SetRouterInterfaceSet(v *DescribeRouterInterfacesResponseBodyRouterInterfaceSet) *DescribeRouterInterfacesResponseBody { s.RouterInterfaceSet = v return s } func (s *DescribeRouterInterfacesResponseBody) SetTotalCount(v int32) *DescribeRouterInterfacesResponseBody { s.TotalCount = &v return s } type DescribeRouterInterfacesResponseBodyRouterInterfaceSet struct { RouterInterfaceType []*DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType `json:"RouterInterfaceType,omitempty" xml:"RouterInterfaceType,omitempty" type:"Repeated"` } func (s DescribeRouterInterfacesResponseBodyRouterInterfaceSet) String() string { return tea.Prettify(s) } func (s DescribeRouterInterfacesResponseBodyRouterInterfaceSet) GoString() string { return s.String() } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSet) SetRouterInterfaceType(v []*DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) *DescribeRouterInterfacesResponseBodyRouterInterfaceSet { s.RouterInterfaceType = v return s } type DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType struct { AccessPointId *string `json:"AccessPointId,omitempty" xml:"AccessPointId,omitempty"` BusinessStatus *string `json:"BusinessStatus,omitempty" xml:"BusinessStatus,omitempty"` ChargeType *string `json:"ChargeType,omitempty" xml:"ChargeType,omitempty"` ConnectedTime *string `json:"ConnectedTime,omitempty" xml:"ConnectedTime,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` HealthCheckSourceIp *string `json:"HealthCheckSourceIp,omitempty" xml:"HealthCheckSourceIp,omitempty"` HealthCheckTargetIp *string `json:"HealthCheckTargetIp,omitempty" xml:"HealthCheckTargetIp,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OppositeAccessPointId *string `json:"OppositeAccessPointId,omitempty" xml:"OppositeAccessPointId,omitempty"` OppositeInterfaceBusinessStatus *string `json:"OppositeInterfaceBusinessStatus,omitempty" xml:"OppositeInterfaceBusinessStatus,omitempty"` OppositeInterfaceId *string `json:"OppositeInterfaceId,omitempty" xml:"OppositeInterfaceId,omitempty"` OppositeInterfaceOwnerId *string `json:"OppositeInterfaceOwnerId,omitempty" xml:"OppositeInterfaceOwnerId,omitempty"` OppositeInterfaceSpec *string `json:"OppositeInterfaceSpec,omitempty" xml:"OppositeInterfaceSpec,omitempty"` OppositeInterfaceStatus *string `json:"OppositeInterfaceStatus,omitempty" xml:"OppositeInterfaceStatus,omitempty"` OppositeRegionId *string `json:"OppositeRegionId,omitempty" xml:"OppositeRegionId,omitempty"` OppositeRouterId *string `json:"OppositeRouterId,omitempty" xml:"OppositeRouterId,omitempty"` OppositeRouterType *string `json:"OppositeRouterType,omitempty" xml:"OppositeRouterType,omitempty"` Role *string `json:"Role,omitempty" xml:"Role,omitempty"` RouterId *string `json:"RouterId,omitempty" xml:"RouterId,omitempty"` RouterInterfaceId *string `json:"RouterInterfaceId,omitempty" xml:"RouterInterfaceId,omitempty"` RouterType *string `json:"RouterType,omitempty" xml:"RouterType,omitempty"` Spec *string `json:"Spec,omitempty" xml:"Spec,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) String() string { return tea.Prettify(s) } func (s DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) GoString() string { return s.String() } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetAccessPointId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.AccessPointId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetBusinessStatus(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.BusinessStatus = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetChargeType(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.ChargeType = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetConnectedTime(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.ConnectedTime = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetCreationTime(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.CreationTime = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetDescription(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.Description = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetEndTime(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.EndTime = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetHealthCheckSourceIp(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.HealthCheckSourceIp = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetHealthCheckTargetIp(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.HealthCheckTargetIp = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetName(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.Name = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeAccessPointId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeAccessPointId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeInterfaceBusinessStatus(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeInterfaceBusinessStatus = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeInterfaceId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeInterfaceId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeInterfaceOwnerId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeInterfaceOwnerId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeInterfaceSpec(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeInterfaceSpec = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeInterfaceStatus(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeInterfaceStatus = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeRegionId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeRegionId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeRouterId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeRouterId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetOppositeRouterType(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.OppositeRouterType = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetRole(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.Role = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetRouterId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.RouterId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetRouterInterfaceId(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.RouterInterfaceId = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetRouterType(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.RouterType = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetSpec(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.Spec = &v return s } func (s *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType) SetStatus(v string) *DescribeRouterInterfacesResponseBodyRouterInterfaceSetRouterInterfaceType { s.Status = &v return s } type DescribeRouterInterfacesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeRouterInterfacesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeRouterInterfacesResponse) String() string { return tea.Prettify(s) } func (s DescribeRouterInterfacesResponse) GoString() string { return s.String() } func (s *DescribeRouterInterfacesResponse) SetHeaders(v map[string]*string) *DescribeRouterInterfacesResponse { s.Headers = v return s } func (s *DescribeRouterInterfacesResponse) SetStatusCode(v int32) *DescribeRouterInterfacesResponse { s.StatusCode = &v return s } func (s *DescribeRouterInterfacesResponse) SetBody(v *DescribeRouterInterfacesResponseBody) *DescribeRouterInterfacesResponse { s.Body = v return s } type DescribeSavingsPlanEstimationRequest struct { OfferingType *string `json:"OfferingType,omitempty" xml:"OfferingType,omitempty"` Period *string `json:"Period,omitempty" xml:"Period,omitempty"` PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` PlanType *string `json:"PlanType,omitempty" xml:"PlanType,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` } func (s DescribeSavingsPlanEstimationRequest) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanEstimationRequest) GoString() string { return s.String() } func (s *DescribeSavingsPlanEstimationRequest) SetOfferingType(v string) *DescribeSavingsPlanEstimationRequest { s.OfferingType = &v return s } func (s *DescribeSavingsPlanEstimationRequest) SetPeriod(v string) *DescribeSavingsPlanEstimationRequest { s.Period = &v return s } func (s *DescribeSavingsPlanEstimationRequest) SetPeriodUnit(v string) *DescribeSavingsPlanEstimationRequest { s.PeriodUnit = &v return s } func (s *DescribeSavingsPlanEstimationRequest) SetPlanType(v string) *DescribeSavingsPlanEstimationRequest { s.PlanType = &v return s } func (s *DescribeSavingsPlanEstimationRequest) SetRegionId(v string) *DescribeSavingsPlanEstimationRequest { s.RegionId = &v return s } func (s *DescribeSavingsPlanEstimationRequest) SetResourceId(v string) *DescribeSavingsPlanEstimationRequest { s.ResourceId = &v return s } type DescribeSavingsPlanEstimationResponseBody struct { CommittedAmount *string `json:"CommittedAmount,omitempty" xml:"CommittedAmount,omitempty"` Currency *string `json:"Currency,omitempty" xml:"Currency,omitempty"` InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` OfferingType *string `json:"OfferingType,omitempty" xml:"OfferingType,omitempty"` Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` PlanType *string `json:"PlanType,omitempty" xml:"PlanType,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` } func (s DescribeSavingsPlanEstimationResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanEstimationResponseBody) GoString() string { return s.String() } func (s *DescribeSavingsPlanEstimationResponseBody) SetCommittedAmount(v string) *DescribeSavingsPlanEstimationResponseBody { s.CommittedAmount = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetCurrency(v string) *DescribeSavingsPlanEstimationResponseBody { s.Currency = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetInstanceTypeFamily(v string) *DescribeSavingsPlanEstimationResponseBody { s.InstanceTypeFamily = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetOfferingType(v string) *DescribeSavingsPlanEstimationResponseBody { s.OfferingType = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetPeriod(v int32) *DescribeSavingsPlanEstimationResponseBody { s.Period = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetPeriodUnit(v string) *DescribeSavingsPlanEstimationResponseBody { s.PeriodUnit = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetPlanType(v string) *DescribeSavingsPlanEstimationResponseBody { s.PlanType = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetRequestId(v string) *DescribeSavingsPlanEstimationResponseBody { s.RequestId = &v return s } func (s *DescribeSavingsPlanEstimationResponseBody) SetResourceId(v string) *DescribeSavingsPlanEstimationResponseBody { s.ResourceId = &v return s } type DescribeSavingsPlanEstimationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSavingsPlanEstimationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSavingsPlanEstimationResponse) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanEstimationResponse) GoString() string { return s.String() } func (s *DescribeSavingsPlanEstimationResponse) SetHeaders(v map[string]*string) *DescribeSavingsPlanEstimationResponse { s.Headers = v return s } func (s *DescribeSavingsPlanEstimationResponse) SetStatusCode(v int32) *DescribeSavingsPlanEstimationResponse { s.StatusCode = &v return s } func (s *DescribeSavingsPlanEstimationResponse) SetBody(v *DescribeSavingsPlanEstimationResponseBody) *DescribeSavingsPlanEstimationResponse { s.Body = v return s } type DescribeSavingsPlanPriceRequest struct { CommittedAmount *string `json:"CommittedAmount,omitempty" xml:"CommittedAmount,omitempty"` InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` OfferingType *string `json:"OfferingType,omitempty" xml:"OfferingType,omitempty"` Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` PeriodUnit *string `json:"PeriodUnit,omitempty" xml:"PeriodUnit,omitempty"` PlanType *string `json:"PlanType,omitempty" xml:"PlanType,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"` } func (s DescribeSavingsPlanPriceRequest) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanPriceRequest) GoString() string { return s.String() } func (s *DescribeSavingsPlanPriceRequest) SetCommittedAmount(v string) *DescribeSavingsPlanPriceRequest { s.CommittedAmount = &v return s } func (s *DescribeSavingsPlanPriceRequest) SetInstanceTypeFamily(v string) *DescribeSavingsPlanPriceRequest { s.InstanceTypeFamily = &v return s } func (s *DescribeSavingsPlanPriceRequest) SetOfferingType(v string) *DescribeSavingsPlanPriceRequest { s.OfferingType = &v return s } func (s *DescribeSavingsPlanPriceRequest) SetPeriod(v int32) *DescribeSavingsPlanPriceRequest { s.Period = &v return s } func (s *DescribeSavingsPlanPriceRequest) SetPeriodUnit(v string) *DescribeSavingsPlanPriceRequest { s.PeriodUnit = &v return s } func (s *DescribeSavingsPlanPriceRequest) SetPlanType(v string) *DescribeSavingsPlanPriceRequest { s.PlanType = &v return s } func (s *DescribeSavingsPlanPriceRequest) SetRegionId(v string) *DescribeSavingsPlanPriceRequest { s.RegionId = &v return s } func (s *DescribeSavingsPlanPriceRequest) SetResourceId(v []*string) *DescribeSavingsPlanPriceRequest { s.ResourceId = v return s } type DescribeSavingsPlanPriceResponseBody struct { PriceInfo *DescribeSavingsPlanPriceResponseBodyPriceInfo `json:"PriceInfo,omitempty" xml:"PriceInfo,omitempty" type:"Struct"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeSavingsPlanPriceResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanPriceResponseBody) GoString() string { return s.String() } func (s *DescribeSavingsPlanPriceResponseBody) SetPriceInfo(v *DescribeSavingsPlanPriceResponseBodyPriceInfo) *DescribeSavingsPlanPriceResponseBody { s.PriceInfo = v return s } func (s *DescribeSavingsPlanPriceResponseBody) SetRequestId(v string) *DescribeSavingsPlanPriceResponseBody { s.RequestId = &v return s } type DescribeSavingsPlanPriceResponseBodyPriceInfo struct { Price *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice `json:"Price,omitempty" xml:"Price,omitempty" type:"Struct"` Rules []*DescribeSavingsPlanPriceResponseBodyPriceInfoRules `json:"Rules,omitempty" xml:"Rules,omitempty" type:"Repeated"` } func (s DescribeSavingsPlanPriceResponseBodyPriceInfo) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanPriceResponseBodyPriceInfo) GoString() string { return s.String() } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfo) SetPrice(v *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice) *DescribeSavingsPlanPriceResponseBodyPriceInfo { s.Price = v return s } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfo) SetRules(v []*DescribeSavingsPlanPriceResponseBodyPriceInfoRules) *DescribeSavingsPlanPriceResponseBodyPriceInfo { s.Rules = v return s } type DescribeSavingsPlanPriceResponseBodyPriceInfoPrice struct { Currency *string `json:"Currency,omitempty" xml:"Currency,omitempty"` DiscountPrice *float32 `json:"DiscountPrice,omitempty" xml:"DiscountPrice,omitempty"` OriginalPrice *float32 `json:"OriginalPrice,omitempty" xml:"OriginalPrice,omitempty"` TradePrice *float32 `json:"TradePrice,omitempty" xml:"TradePrice,omitempty"` } func (s DescribeSavingsPlanPriceResponseBodyPriceInfoPrice) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanPriceResponseBodyPriceInfoPrice) GoString() string { return s.String() } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice) SetCurrency(v string) *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice { s.Currency = &v return s } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice) SetDiscountPrice(v float32) *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice { s.DiscountPrice = &v return s } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice) SetOriginalPrice(v float32) *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice { s.OriginalPrice = &v return s } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice) SetTradePrice(v float32) *DescribeSavingsPlanPriceResponseBodyPriceInfoPrice { s.TradePrice = &v return s } type DescribeSavingsPlanPriceResponseBodyPriceInfoRules struct { Description *string `json:"Description,omitempty" xml:"Description,omitempty"` RuleId *string `json:"RuleId,omitempty" xml:"RuleId,omitempty"` } func (s DescribeSavingsPlanPriceResponseBodyPriceInfoRules) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanPriceResponseBodyPriceInfoRules) GoString() string { return s.String() } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfoRules) SetDescription(v string) *DescribeSavingsPlanPriceResponseBodyPriceInfoRules { s.Description = &v return s } func (s *DescribeSavingsPlanPriceResponseBodyPriceInfoRules) SetRuleId(v string) *DescribeSavingsPlanPriceResponseBodyPriceInfoRules { s.RuleId = &v return s } type DescribeSavingsPlanPriceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSavingsPlanPriceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSavingsPlanPriceResponse) String() string { return tea.Prettify(s) } func (s DescribeSavingsPlanPriceResponse) GoString() string { return s.String() } func (s *DescribeSavingsPlanPriceResponse) SetHeaders(v map[string]*string) *DescribeSavingsPlanPriceResponse { s.Headers = v return s } func (s *DescribeSavingsPlanPriceResponse) SetStatusCode(v int32) *DescribeSavingsPlanPriceResponse { s.StatusCode = &v return s } func (s *DescribeSavingsPlanPriceResponse) SetBody(v *DescribeSavingsPlanPriceResponseBody) *DescribeSavingsPlanPriceResponse { s.Body = v return s } type DescribeSecurityGroupAttributeRequest struct { // The direction in which the security group rule is applied. Valid values: // // * egress: outbound. // * ingress: inbound. // * all: outbound and inbound. // // Default value: all. Direction *string `json:"Direction,omitempty" xml:"Direction,omitempty"` // The network interface card (NIC) type of the security group rule. // // * Valid values for rules of security groups in the classic network: // // * internet (default) // * intranet // // ** // // **Note**You can query security group rules of only one NIC type in a single call. To query security group rules of both NIC types, call the operation twice. // // * If the security group is in a virtual private cloud (VPC), set the value to intranet. This is also the default value. // // ** // // **Note**If you set this parameter to internet or leave this parameter empty, the value of intranet is automatically used. NicType *string `json:"NicType,omitempty" xml:"NicType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the security group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the security group. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` } func (s DescribeSecurityGroupAttributeRequest) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupAttributeRequest) GoString() string { return s.String() } func (s *DescribeSecurityGroupAttributeRequest) SetDirection(v string) *DescribeSecurityGroupAttributeRequest { s.Direction = &v return s } func (s *DescribeSecurityGroupAttributeRequest) SetNicType(v string) *DescribeSecurityGroupAttributeRequest { s.NicType = &v return s } func (s *DescribeSecurityGroupAttributeRequest) SetOwnerAccount(v string) *DescribeSecurityGroupAttributeRequest { s.OwnerAccount = &v return s } func (s *DescribeSecurityGroupAttributeRequest) SetOwnerId(v int64) *DescribeSecurityGroupAttributeRequest { s.OwnerId = &v return s } func (s *DescribeSecurityGroupAttributeRequest) SetRegionId(v string) *DescribeSecurityGroupAttributeRequest { s.RegionId = &v return s } func (s *DescribeSecurityGroupAttributeRequest) SetResourceOwnerAccount(v string) *DescribeSecurityGroupAttributeRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSecurityGroupAttributeRequest) SetResourceOwnerId(v int64) *DescribeSecurityGroupAttributeRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSecurityGroupAttributeRequest) SetSecurityGroupId(v string) *DescribeSecurityGroupAttributeRequest { s.SecurityGroupId = &v return s } type DescribeSecurityGroupAttributeResponseBody struct { // The description of the security group. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The access control policy of the security group. Valid values: // // * Accept: All instances in the security group can communicate with each other. // * Drop: All instances in the security group are isolated from each other. InnerAccessPolicy *string `json:"InnerAccessPolicy,omitempty" xml:"InnerAccessPolicy,omitempty"` // Details about the security group rules. Permissions *DescribeSecurityGroupAttributeResponseBodyPermissions `json:"Permissions,omitempty" xml:"Permissions,omitempty" type:"Struct"` // The ID of the region. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the destination security group. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The name of the destination security group. SecurityGroupName *string `json:"SecurityGroupName,omitempty" xml:"SecurityGroupName,omitempty"` // The ID of the VPC. If a VPC ID is returned, the network type of the security group is VPC. If no VPC ID is returned, the network type of the security group is classic network. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeSecurityGroupAttributeResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupAttributeResponseBody) GoString() string { return s.String() } func (s *DescribeSecurityGroupAttributeResponseBody) SetDescription(v string) *DescribeSecurityGroupAttributeResponseBody { s.Description = &v return s } func (s *DescribeSecurityGroupAttributeResponseBody) SetInnerAccessPolicy(v string) *DescribeSecurityGroupAttributeResponseBody { s.InnerAccessPolicy = &v return s } func (s *DescribeSecurityGroupAttributeResponseBody) SetPermissions(v *DescribeSecurityGroupAttributeResponseBodyPermissions) *DescribeSecurityGroupAttributeResponseBody { s.Permissions = v return s } func (s *DescribeSecurityGroupAttributeResponseBody) SetRegionId(v string) *DescribeSecurityGroupAttributeResponseBody { s.RegionId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBody) SetRequestId(v string) *DescribeSecurityGroupAttributeResponseBody { s.RequestId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBody) SetSecurityGroupId(v string) *DescribeSecurityGroupAttributeResponseBody { s.SecurityGroupId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBody) SetSecurityGroupName(v string) *DescribeSecurityGroupAttributeResponseBody { s.SecurityGroupName = &v return s } func (s *DescribeSecurityGroupAttributeResponseBody) SetVpcId(v string) *DescribeSecurityGroupAttributeResponseBody { s.VpcId = &v return s } type DescribeSecurityGroupAttributeResponseBodyPermissions struct { Permission []*DescribeSecurityGroupAttributeResponseBodyPermissionsPermission `json:"Permission,omitempty" xml:"Permission,omitempty" type:"Repeated"` } func (s DescribeSecurityGroupAttributeResponseBodyPermissions) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupAttributeResponseBodyPermissions) GoString() string { return s.String() } func (s *DescribeSecurityGroupAttributeResponseBodyPermissions) SetPermission(v []*DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) *DescribeSecurityGroupAttributeResponseBodyPermissions { s.Permission = v return s } type DescribeSecurityGroupAttributeResponseBodyPermissionsPermission struct { // The time at which the security group rule was created. The time is displayed in UTC. CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` // The description of the security group. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The destination CIDR block for outbound access control. DestCidrIp *string `json:"DestCidrIp,omitempty" xml:"DestCidrIp,omitempty"` // The ID of the destination security group for outbound access control. DestGroupId *string `json:"DestGroupId,omitempty" xml:"DestGroupId,omitempty"` // The name of the destination security group. DestGroupName *string `json:"DestGroupName,omitempty" xml:"DestGroupName,omitempty"` // The Alibaba Cloud account that manages the destination security group. DestGroupOwnerAccount *string `json:"DestGroupOwnerAccount,omitempty" xml:"DestGroupOwnerAccount,omitempty"` // The ID of the destination prefix list for outbound access control. DestPrefixListId *string `json:"DestPrefixListId,omitempty" xml:"DestPrefixListId,omitempty"` // The name of the destination prefix list. DestPrefixListName *string `json:"DestPrefixListName,omitempty" xml:"DestPrefixListName,omitempty"` // The direction in which the security group rule is applied. Direction *string `json:"Direction,omitempty" xml:"Direction,omitempty"` // The transport layer protocol. IpProtocol *string `json:"IpProtocol,omitempty" xml:"IpProtocol,omitempty"` // The destination IPv6 CIDR block. Ipv6DestCidrIp *string `json:"Ipv6DestCidrIp,omitempty" xml:"Ipv6DestCidrIp,omitempty"` // The source IPv6 CIDR block. Ipv6SourceCidrIp *string `json:"Ipv6SourceCidrIp,omitempty" xml:"Ipv6SourceCidrIp,omitempty"` // The network type. NicType *string `json:"NicType,omitempty" xml:"NicType,omitempty"` // The access control policy. Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"` // The port range. PortRange *string `json:"PortRange,omitempty" xml:"PortRange,omitempty"` // The priority of the rule. Priority *string `json:"Priority,omitempty" xml:"Priority,omitempty"` // The ID of the security group rule. SecurityGroupRuleId *string `json:"SecurityGroupRuleId,omitempty" xml:"SecurityGroupRuleId,omitempty"` // The source CIDR block for inbound access control. SourceCidrIp *string `json:"SourceCidrIp,omitempty" xml:"SourceCidrIp,omitempty"` // The source security group for inbound access control. SourceGroupId *string `json:"SourceGroupId,omitempty" xml:"SourceGroupId,omitempty"` // The name of the source security group. SourceGroupName *string `json:"SourceGroupName,omitempty" xml:"SourceGroupName,omitempty"` // The Alibaba Cloud account that manages the source security group. SourceGroupOwnerAccount *string `json:"SourceGroupOwnerAccount,omitempty" xml:"SourceGroupOwnerAccount,omitempty"` // The source port range. SourcePortRange *string `json:"SourcePortRange,omitempty" xml:"SourcePortRange,omitempty"` // The ID of the source prefix list for inbound access control. SourcePrefixListId *string `json:"SourcePrefixListId,omitempty" xml:"SourcePrefixListId,omitempty"` // The name of the source prefix list. SourcePrefixListName *string `json:"SourcePrefixListName,omitempty" xml:"SourcePrefixListName,omitempty"` } func (s DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) GoString() string { return s.String() } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetCreateTime(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.CreateTime = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDescription(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.Description = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDestCidrIp(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.DestCidrIp = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDestGroupId(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.DestGroupId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDestGroupName(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.DestGroupName = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDestGroupOwnerAccount(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.DestGroupOwnerAccount = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDestPrefixListId(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.DestPrefixListId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDestPrefixListName(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.DestPrefixListName = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetDirection(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.Direction = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetIpProtocol(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.IpProtocol = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetIpv6DestCidrIp(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.Ipv6DestCidrIp = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetIpv6SourceCidrIp(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.Ipv6SourceCidrIp = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetNicType(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.NicType = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetPolicy(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.Policy = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetPortRange(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.PortRange = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetPriority(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.Priority = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSecurityGroupRuleId(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SecurityGroupRuleId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSourceCidrIp(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SourceCidrIp = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSourceGroupId(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SourceGroupId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSourceGroupName(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SourceGroupName = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSourceGroupOwnerAccount(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SourceGroupOwnerAccount = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSourcePortRange(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SourcePortRange = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSourcePrefixListId(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SourcePrefixListId = &v return s } func (s *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission) SetSourcePrefixListName(v string) *DescribeSecurityGroupAttributeResponseBodyPermissionsPermission { s.SourcePrefixListName = &v return s } type DescribeSecurityGroupAttributeResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSecurityGroupAttributeResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSecurityGroupAttributeResponse) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupAttributeResponse) GoString() string { return s.String() } func (s *DescribeSecurityGroupAttributeResponse) SetHeaders(v map[string]*string) *DescribeSecurityGroupAttributeResponse { s.Headers = v return s } func (s *DescribeSecurityGroupAttributeResponse) SetStatusCode(v int32) *DescribeSecurityGroupAttributeResponse { s.StatusCode = &v return s } func (s *DescribeSecurityGroupAttributeResponse) SetBody(v *DescribeSecurityGroupAttributeResponseBody) *DescribeSecurityGroupAttributeResponse { s.Body = v return s } type DescribeSecurityGroupReferencesRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the security group. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of security group N. Valid values of N: 1 to 10. SecurityGroupId []*string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty" type:"Repeated"` } func (s DescribeSecurityGroupReferencesRequest) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupReferencesRequest) GoString() string { return s.String() } func (s *DescribeSecurityGroupReferencesRequest) SetOwnerAccount(v string) *DescribeSecurityGroupReferencesRequest { s.OwnerAccount = &v return s } func (s *DescribeSecurityGroupReferencesRequest) SetOwnerId(v int64) *DescribeSecurityGroupReferencesRequest { s.OwnerId = &v return s } func (s *DescribeSecurityGroupReferencesRequest) SetRegionId(v string) *DescribeSecurityGroupReferencesRequest { s.RegionId = &v return s } func (s *DescribeSecurityGroupReferencesRequest) SetResourceOwnerAccount(v string) *DescribeSecurityGroupReferencesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSecurityGroupReferencesRequest) SetResourceOwnerId(v int64) *DescribeSecurityGroupReferencesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSecurityGroupReferencesRequest) SetSecurityGroupId(v []*string) *DescribeSecurityGroupReferencesRequest { s.SecurityGroupId = v return s } type DescribeSecurityGroupReferencesResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details about the references to the specified security groups. SecurityGroupReferences *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferences `json:"SecurityGroupReferences,omitempty" xml:"SecurityGroupReferences,omitempty" type:"Struct"` } func (s DescribeSecurityGroupReferencesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupReferencesResponseBody) GoString() string { return s.String() } func (s *DescribeSecurityGroupReferencesResponseBody) SetRequestId(v string) *DescribeSecurityGroupReferencesResponseBody { s.RequestId = &v return s } func (s *DescribeSecurityGroupReferencesResponseBody) SetSecurityGroupReferences(v *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferences) *DescribeSecurityGroupReferencesResponseBody { s.SecurityGroupReferences = v return s } type DescribeSecurityGroupReferencesResponseBodySecurityGroupReferences struct { SecurityGroupReference []*DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference `json:"SecurityGroupReference,omitempty" xml:"SecurityGroupReference,omitempty" type:"Repeated"` } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferences) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferences) GoString() string { return s.String() } func (s *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferences) SetSecurityGroupReference(v []*DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference) *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferences { s.SecurityGroupReference = v return s } type DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference struct { // Details about the security groups whose rules are referencing the specified security groups. ReferencingSecurityGroups *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroups `json:"ReferencingSecurityGroups,omitempty" xml:"ReferencingSecurityGroups,omitempty" type:"Struct"` // The ID of the specified security group. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference) GoString() string { return s.String() } func (s *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference) SetReferencingSecurityGroups(v *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroups) *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference { s.ReferencingSecurityGroups = v return s } func (s *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference) SetSecurityGroupId(v string) *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReference { s.SecurityGroupId = &v return s } type DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroups struct { ReferencingSecurityGroup []*DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup `json:"ReferencingSecurityGroup,omitempty" xml:"ReferencingSecurityGroup,omitempty" type:"Repeated"` } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroups) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroups) GoString() string { return s.String() } func (s *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroups) SetReferencingSecurityGroup(v []*DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup) *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroups { s.ReferencingSecurityGroup = v return s } type DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup struct { // The ID of the Alibaba Cloud account to which the security group belongs. AliUid *string `json:"AliUid,omitempty" xml:"AliUid,omitempty"` // The ID of the security group. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup) GoString() string { return s.String() } func (s *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup) SetAliUid(v string) *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup { s.AliUid = &v return s } func (s *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup) SetSecurityGroupId(v string) *DescribeSecurityGroupReferencesResponseBodySecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup { s.SecurityGroupId = &v return s } type DescribeSecurityGroupReferencesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSecurityGroupReferencesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSecurityGroupReferencesResponse) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupReferencesResponse) GoString() string { return s.String() } func (s *DescribeSecurityGroupReferencesResponse) SetHeaders(v map[string]*string) *DescribeSecurityGroupReferencesResponse { s.Headers = v return s } func (s *DescribeSecurityGroupReferencesResponse) SetStatusCode(v int32) *DescribeSecurityGroupReferencesResponse { s.StatusCode = &v return s } func (s *DescribeSecurityGroupReferencesResponse) SetBody(v *DescribeSecurityGroupReferencesResponseBody) *DescribeSecurityGroupReferencesResponse { s.Body = v return s } type DescribeSecurityGroupsRequest struct { // Specifies whether to perform only a dry run, without performing the actual request. Valid values: // // * true: performs only a dry run. The system checks your AccessKey pair, the permissions of the RAM user, and the required parameters. If the request passes the dry run, the DryRunOperation error code is returned. Otherwise, an error message is returned. // * false: performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. // // Default value: false. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // > This parameter is deprecated. FuzzyQuery *bool `json:"FuzzyQuery,omitempty" xml:"FuzzyQuery,omitempty"` // Specifies whether to query the capacity of the security group. If you set this parameter to True, the `EcsCount` and `AvailableInstanceAmount` values in the response are valid. // // > This parameter is deprecated. IsQueryEcsCount *bool `json:"IsQueryEcsCount,omitempty" xml:"IsQueryEcsCount,omitempty"` // The maximum number of entries per page. If you specify this parameter, both `MaxResults` and `NextToken` are used for a paged query. // // Maximum value: 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The network type of the security group. Valid values: // // * vpc // * classic NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. // // > This parameter will be removed in the future. We recommend that you use NextToken and MaxResults for a paged query. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. // // > This parameter will be removed in the future. We recommend that you use NextToken and MaxResults for a paged query. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the security group belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. You can call the [ListResourceGroups](~~158855~~) operation to query the most recent resource group list. // // > Resources in the default resource group are displayed in the response regardless of how this parameter is configured. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The security group ID. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The security group IDs. Set this parameter to a JSON array that consists of up to 100 security group IDs. Separate the security group IDs with commas (,). SecurityGroupIds *string `json:"SecurityGroupIds,omitempty" xml:"SecurityGroupIds,omitempty"` // The name of the security group. SecurityGroupName *string `json:"SecurityGroupName,omitempty" xml:"SecurityGroupName,omitempty"` // The type of the security group. Valid values: // // * normal: basic security group // * enterprise: advanced security group // // > If you do not specify this parameter, both basic and advanced security groups are queried. SecurityGroupType *string `json:"SecurityGroupType,omitempty" xml:"SecurityGroupType,omitempty"` // Specifies whether to query managed security groups. Valid values: // // * true // * false ServiceManaged *bool `json:"ServiceManaged,omitempty" xml:"ServiceManaged,omitempty"` // The tags to add to the security groups. Tag []*DescribeSecurityGroupsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // The ID of the virtual private cloud (VPC) to which the security group belongs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeSecurityGroupsRequest) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsRequest) GoString() string { return s.String() } func (s *DescribeSecurityGroupsRequest) SetDryRun(v bool) *DescribeSecurityGroupsRequest { s.DryRun = &v return s } func (s *DescribeSecurityGroupsRequest) SetFuzzyQuery(v bool) *DescribeSecurityGroupsRequest { s.FuzzyQuery = &v return s } func (s *DescribeSecurityGroupsRequest) SetIsQueryEcsCount(v bool) *DescribeSecurityGroupsRequest { s.IsQueryEcsCount = &v return s } func (s *DescribeSecurityGroupsRequest) SetMaxResults(v int32) *DescribeSecurityGroupsRequest { s.MaxResults = &v return s } func (s *DescribeSecurityGroupsRequest) SetNetworkType(v string) *DescribeSecurityGroupsRequest { s.NetworkType = &v return s } func (s *DescribeSecurityGroupsRequest) SetNextToken(v string) *DescribeSecurityGroupsRequest { s.NextToken = &v return s } func (s *DescribeSecurityGroupsRequest) SetOwnerAccount(v string) *DescribeSecurityGroupsRequest { s.OwnerAccount = &v return s } func (s *DescribeSecurityGroupsRequest) SetOwnerId(v int64) *DescribeSecurityGroupsRequest { s.OwnerId = &v return s } func (s *DescribeSecurityGroupsRequest) SetPageNumber(v int32) *DescribeSecurityGroupsRequest { s.PageNumber = &v return s } func (s *DescribeSecurityGroupsRequest) SetPageSize(v int32) *DescribeSecurityGroupsRequest { s.PageSize = &v return s } func (s *DescribeSecurityGroupsRequest) SetRegionId(v string) *DescribeSecurityGroupsRequest { s.RegionId = &v return s } func (s *DescribeSecurityGroupsRequest) SetResourceGroupId(v string) *DescribeSecurityGroupsRequest { s.ResourceGroupId = &v return s } func (s *DescribeSecurityGroupsRequest) SetResourceOwnerAccount(v string) *DescribeSecurityGroupsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSecurityGroupsRequest) SetResourceOwnerId(v int64) *DescribeSecurityGroupsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSecurityGroupsRequest) SetSecurityGroupId(v string) *DescribeSecurityGroupsRequest { s.SecurityGroupId = &v return s } func (s *DescribeSecurityGroupsRequest) SetSecurityGroupIds(v string) *DescribeSecurityGroupsRequest { s.SecurityGroupIds = &v return s } func (s *DescribeSecurityGroupsRequest) SetSecurityGroupName(v string) *DescribeSecurityGroupsRequest { s.SecurityGroupName = &v return s } func (s *DescribeSecurityGroupsRequest) SetSecurityGroupType(v string) *DescribeSecurityGroupsRequest { s.SecurityGroupType = &v return s } func (s *DescribeSecurityGroupsRequest) SetServiceManaged(v bool) *DescribeSecurityGroupsRequest { s.ServiceManaged = &v return s } func (s *DescribeSecurityGroupsRequest) SetTag(v []*DescribeSecurityGroupsRequestTag) *DescribeSecurityGroupsRequest { s.Tag = v return s } func (s *DescribeSecurityGroupsRequest) SetVpcId(v string) *DescribeSecurityGroupsRequest { s.VpcId = &v return s } type DescribeSecurityGroupsRequestTag struct { // The key of tag N to add to the security group. Valid values of N: 1 to 20. // // Up to 1,000 resources that match the tags specified can be returned in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the security group. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeSecurityGroupsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsRequestTag) GoString() string { return s.String() } func (s *DescribeSecurityGroupsRequestTag) SetKey(v string) *DescribeSecurityGroupsRequestTag { s.Key = &v return s } func (s *DescribeSecurityGroupsRequestTag) SetValue(v string) *DescribeSecurityGroupsRequestTag { s.Value = &v return s } type DescribeSecurityGroupsResponseBody struct { // A pagination token. If the return value of this parameter is empty when MaxResults and NextToken are used for a paged query, no next page exists. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. // // > This parameter will be deprecated in the future. We recommend that you use NextToken and MaxResults for a paged query. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // > This parameter will be deprecated in the future. We recommend that you use NextToken and MaxResults for a paged query. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the security group. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The information about the security groups. SecurityGroups *DescribeSecurityGroupsResponseBodySecurityGroups `json:"SecurityGroups,omitempty" xml:"SecurityGroups,omitempty" type:"Struct"` // The total number of security groups returned. If `MaxResults` and `NextToken` are specified in the request, the value of this parameter is not returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeSecurityGroupsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsResponseBody) GoString() string { return s.String() } func (s *DescribeSecurityGroupsResponseBody) SetNextToken(v string) *DescribeSecurityGroupsResponseBody { s.NextToken = &v return s } func (s *DescribeSecurityGroupsResponseBody) SetPageNumber(v int32) *DescribeSecurityGroupsResponseBody { s.PageNumber = &v return s } func (s *DescribeSecurityGroupsResponseBody) SetPageSize(v int32) *DescribeSecurityGroupsResponseBody { s.PageSize = &v return s } func (s *DescribeSecurityGroupsResponseBody) SetRegionId(v string) *DescribeSecurityGroupsResponseBody { s.RegionId = &v return s } func (s *DescribeSecurityGroupsResponseBody) SetRequestId(v string) *DescribeSecurityGroupsResponseBody { s.RequestId = &v return s } func (s *DescribeSecurityGroupsResponseBody) SetSecurityGroups(v *DescribeSecurityGroupsResponseBodySecurityGroups) *DescribeSecurityGroupsResponseBody { s.SecurityGroups = v return s } func (s *DescribeSecurityGroupsResponseBody) SetTotalCount(v int32) *DescribeSecurityGroupsResponseBody { s.TotalCount = &v return s } type DescribeSecurityGroupsResponseBodySecurityGroups struct { SecurityGroup []*DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup `json:"SecurityGroup,omitempty" xml:"SecurityGroup,omitempty" type:"Repeated"` } func (s DescribeSecurityGroupsResponseBodySecurityGroups) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsResponseBodySecurityGroups) GoString() string { return s.String() } func (s *DescribeSecurityGroupsResponseBodySecurityGroups) SetSecurityGroup(v []*DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) *DescribeSecurityGroupsResponseBodySecurityGroups { s.SecurityGroup = v return s } type DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup struct { // The number of private IP addresses that can be added to the security group. For more information, see the "Security group capacity" section in [Basic security groups and advanced security groups](~~605897#section-kj9-e46-6v5~~). // // If you set IsQueryEcsCount to True, the return value of AvailableInstanceAmount is valid. // // > This parameter is deprecated. The returned quantity is provided only for reference. The actual quantity may differ from the returned quantity. AvailableInstanceAmount *int32 `json:"AvailableInstanceAmount,omitempty" xml:"AvailableInstanceAmount,omitempty"` // The time when the security group was created. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddThh:mmZ format. The time is displayed in UTC. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the security group. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The number of private IP addresses that are contained in the security group. For more information, see the "Security group capacity" section in [Basic security groups and advanced security groups](~~605897#section-kj9-e46-6v5~~). // // If you set IsQueryEcsCount to True, the return value of EcsCount is valid. // // > This parameter is deprecated. The returned quantity is provided only for reference. The actual quantity may differ from the returned quantity. EcsCount *int32 `json:"EcsCount,omitempty" xml:"EcsCount,omitempty"` // The ID of the resource group to which the security group belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The ID of the security group. SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The name of the security group. SecurityGroupName *string `json:"SecurityGroupName,omitempty" xml:"SecurityGroupName,omitempty"` // The type of the security group. Valid values: // // * normal: basic security group // * enterprise: advanced security group SecurityGroupType *string `json:"SecurityGroupType,omitempty" xml:"SecurityGroupType,omitempty"` // The ID of the distributor to which the security group belongs. ServiceID *int64 `json:"ServiceID,omitempty" xml:"ServiceID,omitempty"` // Indicates whether the user of the security group is an Alibaba Cloud service or a distributor. ServiceManaged *bool `json:"ServiceManaged,omitempty" xml:"ServiceManaged,omitempty"` // The tags of the security group. Tags *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The ID of the VPC to which the security group belongs. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) GoString() string { return s.String() } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetAvailableInstanceAmount(v int32) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.AvailableInstanceAmount = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetCreationTime(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.CreationTime = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetDescription(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.Description = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetEcsCount(v int32) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.EcsCount = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetResourceGroupId(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.ResourceGroupId = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetSecurityGroupId(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.SecurityGroupId = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetSecurityGroupName(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.SecurityGroupName = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetSecurityGroupType(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.SecurityGroupType = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetServiceID(v int64) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.ServiceID = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetServiceManaged(v bool) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.ServiceManaged = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetTags(v *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTags) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.Tags = v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup) SetVpcId(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroup { s.VpcId = &v return s } type DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTags struct { Tag []*DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTags) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTags) GoString() string { return s.String() } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTags) SetTag(v []*DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTags { s.Tag = v return s } type DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag struct { // The key of the tag. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The value of the tag. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag) GoString() string { return s.String() } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag) SetTagKey(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag { s.TagKey = &v return s } func (s *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag) SetTagValue(v string) *DescribeSecurityGroupsResponseBodySecurityGroupsSecurityGroupTagsTag { s.TagValue = &v return s } type DescribeSecurityGroupsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSecurityGroupsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSecurityGroupsResponse) String() string { return tea.Prettify(s) } func (s DescribeSecurityGroupsResponse) GoString() string { return s.String() } func (s *DescribeSecurityGroupsResponse) SetHeaders(v map[string]*string) *DescribeSecurityGroupsResponse { s.Headers = v return s } func (s *DescribeSecurityGroupsResponse) SetStatusCode(v int32) *DescribeSecurityGroupsResponse { s.StatusCode = &v return s } func (s *DescribeSecurityGroupsResponse) SetBody(v *DescribeSecurityGroupsResponseBody) *DescribeSecurityGroupsResponse { s.Body = v return s } type DescribeSendFileResultsRequest struct { // The ID of the instance for which you want to query file sending records. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The overall sending state of the file. The overall sending state of the file depends on its sending state on all the destination instances. Valid values: // // - Pending: The file is being verified or sent. // - Invalid: The file is invalid. // - Running: The file is being sent to the instances. // - Aborted: The file failed to be sent to the instances. To send a file to an instance, make sure that the instance is in the Running state and the file can be sent within 1 minute. // - Success: The file is sent. // - Failed: The file failed to be created on the instances. // - Error: An error occurs and interrupts the file sending task. // - Timeout: The file sending task times out. // - Cancelled: The file sending task is canceled. // - Stopping: The file sending task is being stopped. // - Terminated: The file sending task is terminated. InvocationStatus *string `json:"InvocationStatus,omitempty" xml:"InvocationStatus,omitempty"` // The ID of the file sending task. InvokeId *string `json:"InvokeId,omitempty" xml:"InvokeId,omitempty"` // The maximum number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The name of the file whose sending records you want to query. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Pages start from page 1. // // Default value: 1. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 50. // // Default value: 10. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the ECS instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group. After you set this parameter, file sending results in the specified resource group are queried. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags list. Tag []*DescribeSendFileResultsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeSendFileResultsRequest) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsRequest) GoString() string { return s.String() } func (s *DescribeSendFileResultsRequest) SetInstanceId(v string) *DescribeSendFileResultsRequest { s.InstanceId = &v return s } func (s *DescribeSendFileResultsRequest) SetInvocationStatus(v string) *DescribeSendFileResultsRequest { s.InvocationStatus = &v return s } func (s *DescribeSendFileResultsRequest) SetInvokeId(v string) *DescribeSendFileResultsRequest { s.InvokeId = &v return s } func (s *DescribeSendFileResultsRequest) SetMaxResults(v int32) *DescribeSendFileResultsRequest { s.MaxResults = &v return s } func (s *DescribeSendFileResultsRequest) SetName(v string) *DescribeSendFileResultsRequest { s.Name = &v return s } func (s *DescribeSendFileResultsRequest) SetNextToken(v string) *DescribeSendFileResultsRequest { s.NextToken = &v return s } func (s *DescribeSendFileResultsRequest) SetOwnerAccount(v string) *DescribeSendFileResultsRequest { s.OwnerAccount = &v return s } func (s *DescribeSendFileResultsRequest) SetOwnerId(v int64) *DescribeSendFileResultsRequest { s.OwnerId = &v return s } func (s *DescribeSendFileResultsRequest) SetPageNumber(v int64) *DescribeSendFileResultsRequest { s.PageNumber = &v return s } func (s *DescribeSendFileResultsRequest) SetPageSize(v int64) *DescribeSendFileResultsRequest { s.PageSize = &v return s } func (s *DescribeSendFileResultsRequest) SetRegionId(v string) *DescribeSendFileResultsRequest { s.RegionId = &v return s } func (s *DescribeSendFileResultsRequest) SetResourceGroupId(v string) *DescribeSendFileResultsRequest { s.ResourceGroupId = &v return s } func (s *DescribeSendFileResultsRequest) SetResourceOwnerAccount(v string) *DescribeSendFileResultsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSendFileResultsRequest) SetResourceOwnerId(v int64) *DescribeSendFileResultsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSendFileResultsRequest) SetTag(v []*DescribeSendFileResultsRequestTag) *DescribeSendFileResultsRequest { s.Tag = v return s } type DescribeSendFileResultsRequestTag struct { // The key of tag N of the file sending task. Valid values of N: 1 to 20. The tag key cannot be an empty string. // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags, call the [ListTagResources](~~110425~~) operation. // // The tag key can be up to 64 characters in length and cannot start with `acs:` or `aliyun`. It cannot contain `http://` or `https://`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of 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://`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeSendFileResultsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsRequestTag) GoString() string { return s.String() } func (s *DescribeSendFileResultsRequestTag) SetKey(v string) *DescribeSendFileResultsRequestTag { s.Key = &v return s } func (s *DescribeSendFileResultsRequestTag) SetValue(v string) *DescribeSendFileResultsRequestTag { s.Value = &v return s } type DescribeSendFileResultsResponseBody struct { // The queried file sending records. Invocations *DescribeSendFileResultsResponseBodyInvocations `json:"Invocations,omitempty" xml:"Invocations,omitempty" type:"Struct"` // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of file sending tasks queried. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeSendFileResultsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponseBody) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponseBody) SetInvocations(v *DescribeSendFileResultsResponseBodyInvocations) *DescribeSendFileResultsResponseBody { s.Invocations = v return s } func (s *DescribeSendFileResultsResponseBody) SetNextToken(v string) *DescribeSendFileResultsResponseBody { s.NextToken = &v return s } func (s *DescribeSendFileResultsResponseBody) SetPageNumber(v int64) *DescribeSendFileResultsResponseBody { s.PageNumber = &v return s } func (s *DescribeSendFileResultsResponseBody) SetPageSize(v int64) *DescribeSendFileResultsResponseBody { s.PageSize = &v return s } func (s *DescribeSendFileResultsResponseBody) SetRequestId(v string) *DescribeSendFileResultsResponseBody { s.RequestId = &v return s } func (s *DescribeSendFileResultsResponseBody) SetTotalCount(v int64) *DescribeSendFileResultsResponseBody { s.TotalCount = &v return s } type DescribeSendFileResultsResponseBodyInvocations struct { Invocation []*DescribeSendFileResultsResponseBodyInvocationsInvocation `json:"Invocation,omitempty" xml:"Invocation,omitempty" type:"Repeated"` } func (s DescribeSendFileResultsResponseBodyInvocations) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponseBodyInvocations) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponseBodyInvocations) SetInvocation(v []*DescribeSendFileResultsResponseBodyInvocationsInvocation) *DescribeSendFileResultsResponseBodyInvocations { s.Invocation = v return s } type DescribeSendFileResultsResponseBodyInvocationsInvocation struct { // The content of the file. Content *string `json:"Content,omitempty" xml:"Content,omitempty"` // The content type of the file. Valid values: // // * PlainText // * Base64 ContentType *string `json:"ContentType,omitempty" xml:"ContentType,omitempty"` // The time when the file sending task was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the file. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The user group of the file. FileGroup *string `json:"FileGroup,omitempty" xml:"FileGroup,omitempty"` // The permissions on the file. FileMode *string `json:"FileMode,omitempty" xml:"FileMode,omitempty"` // The owner of the file. FileOwner *string `json:"FileOwner,omitempty" xml:"FileOwner,omitempty"` // The overall sending state of the file. The overall sending state of the file depends on its sending state on all the destination instances. Valid values: // // * Pending: The file is being verified or sent. // * Invalid: The file is invalid. // * Running: The file is being sent to the instances. // * Aborted: The file failed to be sent to the instances. To send a file to an instance, make sure that the instance is in the Running state and the file can be sent within 1 minute. // * Success: The file is sent. // * Failed: The file failed to be created on the instances. // * Error: An error occurs and interrupts the file sending task. // * Timeout: The file sending task times out. // * Cancelled: The file sending task is canceled. // * Stopping: The file sending task is being stopped. // * Terminated: The file sending task is terminated. InvocationStatus *string `json:"InvocationStatus,omitempty" xml:"InvocationStatus,omitempty"` // The ID of the file sending task. InvokeId *string `json:"InvokeId,omitempty" xml:"InvokeId,omitempty"` // The destination instances. InvokeInstances *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstances `json:"InvokeInstances,omitempty" xml:"InvokeInstances,omitempty" type:"Struct"` // The name of the file. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // Indicates whether a file in the destination directory is overwritten if the file has the same name as the sent file. Overwrite *string `json:"Overwrite,omitempty" xml:"Overwrite,omitempty"` // The tags of the file sending task. Tags *DescribeSendFileResultsResponseBodyInvocationsInvocationTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The destination directory. TargetDir *string `json:"TargetDir,omitempty" xml:"TargetDir,omitempty"` // The number of instances to which the file was sent. VmCount *int32 `json:"VmCount,omitempty" xml:"VmCount,omitempty"` } func (s DescribeSendFileResultsResponseBodyInvocationsInvocation) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponseBodyInvocationsInvocation) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetContent(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.Content = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetContentType(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.ContentType = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetCreationTime(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.CreationTime = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetDescription(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.Description = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetFileGroup(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.FileGroup = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetFileMode(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.FileMode = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetFileOwner(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.FileOwner = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetInvocationStatus(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.InvocationStatus = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetInvokeId(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.InvokeId = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetInvokeInstances(v *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstances) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.InvokeInstances = v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetName(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.Name = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetOverwrite(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.Overwrite = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetTags(v *DescribeSendFileResultsResponseBodyInvocationsInvocationTags) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.Tags = v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetTargetDir(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.TargetDir = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocation) SetVmCount(v int32) *DescribeSendFileResultsResponseBodyInvocationsInvocation { s.VmCount = &v return s } type DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstances struct { InvokeInstance []*DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance `json:"InvokeInstance,omitempty" xml:"InvokeInstance,omitempty" type:"Repeated"` } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstances) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstances) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstances) SetInvokeInstance(v []*DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstances { s.InvokeInstance = v return s } type DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance struct { // The time when the file sending task was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The error code returned when the file failed to be sent to the instance. Valid values: // // * Null: The file is sent to the instance. // * InstanceNotExists: The instance does not exist or has been released. // * InstanceReleased: The instance is released while the file is being sent. // * InstanceNotRunning: The instance is not running when the file sending task is being created. // * AccountNotExists: The specified account does not exist. // * ClientNotRunning: Cloud Assistant Agent is not running. // * ClientNotResponse: Cloud Assistant Agent does not respond. // * ClientIsUpgrading: Cloud Assistant Agent is being upgraded. // * ClientNeedUpgrade: Cloud Assistant Agent needs to be upgraded. // * DeliveryTimeout: The file sending task timed out. // * FileCreateFail: The file failed to be created. // * FileAlreadyExists: A file with the same name already exists in the specified directory. // * FileContentInvalid: The file content is invalid. // * FileNameInvalid: The file name is invalid. // * FilePathInvalid: The specified directory is invalid. // * FileAuthorityInvalid: The specified permissions on the file are invalid. // * UserGroupNotExists: The specified user group does not exist. ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` // The error message returned when the file failed to be sent or the file sending task failed to be executed. Valid values: // // * Null: The file is sent to the instance. // * the specified instance does not exists // * the specified instance has been released // * the instance is not running when create task // * the specified account does not exists // * the aliyun service is not running on the instance // * the aliyun service in the instance does not response // * the aliyun service in the instance is upgrading now // * the aliyun service in the instance need upgrade // * the command delivery has been timeout // * the file creation is failed due to unknown error // * the authority of file is invalid // * File content is empty // * the content of file is invalid // * File already exists // * File name is invalid // * File path is invalid // * Owner not exists // * Group not exists // * Mode is invalid ErrorInfo *string `json:"ErrorInfo,omitempty" xml:"ErrorInfo,omitempty"` // The time when the file sending task was completed. FinishTime *string `json:"FinishTime,omitempty" xml:"FinishTime,omitempty"` // The ID of the instance InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The state of the file sending task. InvocationStatus *string `json:"InvocationStatus,omitempty" xml:"InvocationStatus,omitempty"` // The time when the file sending task started to be executed on the instance. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The time when the task status was updated. UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"` } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetCreationTime(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.CreationTime = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetErrorCode(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.ErrorCode = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetErrorInfo(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.ErrorInfo = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetFinishTime(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.FinishTime = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetInstanceId(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.InstanceId = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetInvocationStatus(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.InvocationStatus = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetStartTime(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.StartTime = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance) SetUpdateTime(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationInvokeInstancesInvokeInstance { s.UpdateTime = &v return s } type DescribeSendFileResultsResponseBodyInvocationsInvocationTags struct { Tag []*DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationTags) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationTags) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationTags) SetTag(v []*DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag) *DescribeSendFileResultsResponseBodyInvocationsInvocationTags { s.Tag = v return s } type DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag struct { // The tag key of the file sending task. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the file sending task. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag) SetTagKey(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag { s.TagKey = &v return s } func (s *DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag) SetTagValue(v string) *DescribeSendFileResultsResponseBodyInvocationsInvocationTagsTag { s.TagValue = &v return s } type DescribeSendFileResultsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSendFileResultsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSendFileResultsResponse) String() string { return tea.Prettify(s) } func (s DescribeSendFileResultsResponse) GoString() string { return s.String() } func (s *DescribeSendFileResultsResponse) SetHeaders(v map[string]*string) *DescribeSendFileResultsResponse { s.Headers = v return s } func (s *DescribeSendFileResultsResponse) SetStatusCode(v int32) *DescribeSendFileResultsResponse { s.StatusCode = &v return s } func (s *DescribeSendFileResultsResponse) SetBody(v *DescribeSendFileResultsResponseBody) *DescribeSendFileResultsResponse { s.Body = v return s } type DescribeSnapshotGroupsRequest struct { // This parameter is not publicly available. AdditionalAttributes []*string `json:"AdditionalAttributes,omitempty" xml:"AdditionalAttributes,omitempty" type:"Repeated"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The number of entries per page. // // Valid values: 1 to 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The name of the snapshot-consistent group. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The token that determines the start point of the next query. Set the value to the NextToken value that is returned from the last call. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the snapshot-consistent group. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which the snapshot-consistent group belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of snapshot-consistent group N. Valid values of N: 1 to 10. SnapshotGroupId []*string `json:"SnapshotGroupId,omitempty" xml:"SnapshotGroupId,omitempty" type:"Repeated"` // The state of snapshot-consistent group N. Valid values of the second N: 1, 2, and 3. Valid values: // // * progressing: The snapshot-consistent group is being created. // * accomplished: The snapshot-consistent group is created. // * failed: The snapshot-consistent group fails to be created. Status []*string `json:"Status,omitempty" xml:"Status,omitempty" type:"Repeated"` // The tags of the snapshot-consistent group. Tag []*DescribeSnapshotGroupsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeSnapshotGroupsRequest) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsRequest) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsRequest) SetAdditionalAttributes(v []*string) *DescribeSnapshotGroupsRequest { s.AdditionalAttributes = v return s } func (s *DescribeSnapshotGroupsRequest) SetInstanceId(v string) *DescribeSnapshotGroupsRequest { s.InstanceId = &v return s } func (s *DescribeSnapshotGroupsRequest) SetMaxResults(v int32) *DescribeSnapshotGroupsRequest { s.MaxResults = &v return s } func (s *DescribeSnapshotGroupsRequest) SetName(v string) *DescribeSnapshotGroupsRequest { s.Name = &v return s } func (s *DescribeSnapshotGroupsRequest) SetNextToken(v string) *DescribeSnapshotGroupsRequest { s.NextToken = &v return s } func (s *DescribeSnapshotGroupsRequest) SetOwnerAccount(v string) *DescribeSnapshotGroupsRequest { s.OwnerAccount = &v return s } func (s *DescribeSnapshotGroupsRequest) SetOwnerId(v int64) *DescribeSnapshotGroupsRequest { s.OwnerId = &v return s } func (s *DescribeSnapshotGroupsRequest) SetRegionId(v string) *DescribeSnapshotGroupsRequest { s.RegionId = &v return s } func (s *DescribeSnapshotGroupsRequest) SetResourceGroupId(v string) *DescribeSnapshotGroupsRequest { s.ResourceGroupId = &v return s } func (s *DescribeSnapshotGroupsRequest) SetResourceOwnerAccount(v string) *DescribeSnapshotGroupsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSnapshotGroupsRequest) SetResourceOwnerId(v int64) *DescribeSnapshotGroupsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSnapshotGroupsRequest) SetSnapshotGroupId(v []*string) *DescribeSnapshotGroupsRequest { s.SnapshotGroupId = v return s } func (s *DescribeSnapshotGroupsRequest) SetStatus(v []*string) *DescribeSnapshotGroupsRequest { s.Status = v return s } func (s *DescribeSnapshotGroupsRequest) SetTag(v []*DescribeSnapshotGroupsRequestTag) *DescribeSnapshotGroupsRequest { s.Tag = v return s } type DescribeSnapshotGroupsRequestTag struct { // The key of tag N of the snapshot-consistent group. Valid values of N: 1 to 20. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the snapshot-consistent group. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeSnapshotGroupsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsRequestTag) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsRequestTag) SetKey(v string) *DescribeSnapshotGroupsRequestTag { s.Key = &v return s } func (s *DescribeSnapshotGroupsRequestTag) SetValue(v string) *DescribeSnapshotGroupsRequestTag { s.Value = &v return s } type DescribeSnapshotGroupsResponseBody struct { // The token used to start the next query. // // > If the return value is empty, no more data exists. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details of the snapshot-consistent groups. SnapshotGroups *DescribeSnapshotGroupsResponseBodySnapshotGroups `json:"SnapshotGroups,omitempty" xml:"SnapshotGroups,omitempty" type:"Struct"` } func (s DescribeSnapshotGroupsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBody) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBody) SetNextToken(v string) *DescribeSnapshotGroupsResponseBody { s.NextToken = &v return s } func (s *DescribeSnapshotGroupsResponseBody) SetRequestId(v string) *DescribeSnapshotGroupsResponseBody { s.RequestId = &v return s } func (s *DescribeSnapshotGroupsResponseBody) SetSnapshotGroups(v *DescribeSnapshotGroupsResponseBodySnapshotGroups) *DescribeSnapshotGroupsResponseBody { s.SnapshotGroups = v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroups struct { SnapshotGroup []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup `json:"SnapshotGroup,omitempty" xml:"SnapshotGroup,omitempty" type:"Repeated"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroups) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroups) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroups) SetSnapshotGroup(v []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) *DescribeSnapshotGroupsResponseBodySnapshotGroups { s.SnapshotGroup = v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup struct { // The time when the snapshot-consistent group was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the snapshot-consistent group. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the instance to which the snapshot-consistent group belongs. This parameter has a value only when all disk snapshots in the snapshot-consistent group belong to the same instance. If disk snapshots in the snapshot-consistent group belong to different instances, you can check the response parameters that start with `Snapshots.Snapshot.Tags.` to determine the ID of the instance to which each snapshot in the snapshot-consistent group belongs. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the snapshot-consistent group. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // > This parameter is not publicly available. ProgressStatus *string `json:"ProgressStatus,omitempty" xml:"ProgressStatus,omitempty"` // The ID of the resource group to which the snapshot-consistent group belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The ID of the snapshot-consistent group. SnapshotGroupId *string `json:"SnapshotGroupId,omitempty" xml:"SnapshotGroupId,omitempty"` // Details of the snapshots in the snapshot-consistent group. Snapshots *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshots `json:"Snapshots,omitempty" xml:"Snapshots,omitempty" type:"Struct"` // The state of the snapshot-consistent group. Valid values: // // * progressing: The snapshot-consistent group was being created. // * accomplished: The snapshot-consistent group was created. // * failed: The snapshot-consistent group failed to be created. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the snapshot-consistent group. Tags *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetCreationTime(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.CreationTime = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetDescription(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.Description = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetInstanceId(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.InstanceId = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetName(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.Name = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetProgressStatus(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.ProgressStatus = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetResourceGroupId(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.ResourceGroupId = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetSnapshotGroupId(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.SnapshotGroupId = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetSnapshots(v *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshots) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.Snapshots = v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetStatus(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.Status = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup) SetTags(v *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTags) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroup { s.Tags = v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshots struct { Snapshot []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot `json:"Snapshot,omitempty" xml:"Snapshot,omitempty" type:"Repeated"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshots) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshots) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshots) SetSnapshot(v []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshots { s.Snapshot = v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot struct { // Indicates whether the snapshot can be used to create or roll back disks. Valid values: // // * true // * false Available *bool `json:"Available,omitempty" xml:"Available,omitempty"` // Indicates whether the instant access feature is enabled. Valid values: // // * true: The instant access feature is enabled. By default, the instant access feature is enabled for ESSDs. // * false: The instant access feature is disabled. The snapshot is a normal snapshot for which the instant access feature is disabled. InstantAccess *bool `json:"InstantAccess,omitempty" xml:"InstantAccess,omitempty"` // The retention period of the instant access feature. After the retention period ends, the snapshot is automatically released. // // > This parameter is deprecated. The normal snapshots of enhanced SSDs (ESSDs) are upgraded to support the instant access feature by default. No additional configurations are required to enable the feature and you are not charged for the feature. For more information, see [Use the instant access feature](~~193667~~). InstantAccessRetentionDays *int32 `json:"InstantAccessRetentionDays,omitempty" xml:"InstantAccessRetentionDays,omitempty"` // The progress of the snapshot creation task. Unit: percent (%). Progress *string `json:"Progress,omitempty" xml:"Progress,omitempty"` // The ID of the snapshot. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The ID of the source disk. This parameter is retained even after the source disk of the snapshot is released. SourceDiskId *string `json:"SourceDiskId,omitempty" xml:"SourceDiskId,omitempty"` // The type of the source disk. Valid values: // // * system: system disk // * data: data disk SourceDiskType *string `json:"SourceDiskType,omitempty" xml:"SourceDiskType,omitempty"` // The tags of the snapshot. The default values contain snapshot source information. Tags *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetAvailable(v bool) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.Available = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetInstantAccess(v bool) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.InstantAccess = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetInstantAccessRetentionDays(v int32) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.InstantAccessRetentionDays = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetProgress(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.Progress = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetSnapshotId(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.SnapshotId = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetSourceDiskId(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.SourceDiskId = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetSourceDiskType(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.SourceDiskType = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot) SetTags(v *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTags) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot { s.Tags = v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTags struct { Tag []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTags) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTags) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTags) SetTag(v []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTags { s.Tag = v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag struct { // The tag key of the snapshot. The default values of Key and Value contain snapshot source information. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The tag value of the snapshot. The default values of Key and Value contain snapshot source information. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag) SetKey(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag { s.Key = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag) SetValue(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshotTagsTag { s.Value = &v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTags struct { Tag []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTags) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTags) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTags) SetTag(v []*DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTags { s.Tag = v return s } type DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag struct { // The tag key of the snapshot-consistent group. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The tag value of the snapshot-consistent group. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag) SetKey(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag { s.Key = &v return s } func (s *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag) SetValue(v string) *DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupTagsTag { s.Value = &v return s } type DescribeSnapshotGroupsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSnapshotGroupsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSnapshotGroupsResponse) String() string { return tea.Prettify(s) } func (s DescribeSnapshotGroupsResponse) GoString() string { return s.String() } func (s *DescribeSnapshotGroupsResponse) SetHeaders(v map[string]*string) *DescribeSnapshotGroupsResponse { s.Headers = v return s } func (s *DescribeSnapshotGroupsResponse) SetStatusCode(v int32) *DescribeSnapshotGroupsResponse { s.StatusCode = &v return s } func (s *DescribeSnapshotGroupsResponse) SetBody(v *DescribeSnapshotGroupsResponseBody) *DescribeSnapshotGroupsResponse { s.Body = v return s } type DescribeSnapshotLinksRequest struct { // The disk IDs. You can specify a JSON array that contains a maximum of 100 disk IDs. Separate the disk IDs with commas (,). DiskIds *string `json:"DiskIds,omitempty" xml:"DiskIds,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. Page starts from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the disk. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The snapshot chain IDs. You can specify a JSON array that contains a maximum of 100 snapshot chain IDs. Separate the snapshot chain IDs with commas (,). SnapshotLinkIds *string `json:"SnapshotLinkIds,omitempty" xml:"SnapshotLinkIds,omitempty"` } func (s DescribeSnapshotLinksRequest) String() string { return tea.Prettify(s) } func (s DescribeSnapshotLinksRequest) GoString() string { return s.String() } func (s *DescribeSnapshotLinksRequest) SetDiskIds(v string) *DescribeSnapshotLinksRequest { s.DiskIds = &v return s } func (s *DescribeSnapshotLinksRequest) SetInstanceId(v string) *DescribeSnapshotLinksRequest { s.InstanceId = &v return s } func (s *DescribeSnapshotLinksRequest) SetOwnerAccount(v string) *DescribeSnapshotLinksRequest { s.OwnerAccount = &v return s } func (s *DescribeSnapshotLinksRequest) SetOwnerId(v int64) *DescribeSnapshotLinksRequest { s.OwnerId = &v return s } func (s *DescribeSnapshotLinksRequest) SetPageNumber(v int32) *DescribeSnapshotLinksRequest { s.PageNumber = &v return s } func (s *DescribeSnapshotLinksRequest) SetPageSize(v int32) *DescribeSnapshotLinksRequest { s.PageSize = &v return s } func (s *DescribeSnapshotLinksRequest) SetRegionId(v string) *DescribeSnapshotLinksRequest { s.RegionId = &v return s } func (s *DescribeSnapshotLinksRequest) SetResourceOwnerAccount(v string) *DescribeSnapshotLinksRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSnapshotLinksRequest) SetResourceOwnerId(v int64) *DescribeSnapshotLinksRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSnapshotLinksRequest) SetSnapshotLinkIds(v string) *DescribeSnapshotLinksRequest { s.SnapshotLinkIds = &v return s } type DescribeSnapshotLinksResponseBody struct { // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The details of the snapshot chains. SnapshotLinks *DescribeSnapshotLinksResponseBodySnapshotLinks `json:"SnapshotLinks,omitempty" xml:"SnapshotLinks,omitempty" type:"Struct"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeSnapshotLinksResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSnapshotLinksResponseBody) GoString() string { return s.String() } func (s *DescribeSnapshotLinksResponseBody) SetPageNumber(v int32) *DescribeSnapshotLinksResponseBody { s.PageNumber = &v return s } func (s *DescribeSnapshotLinksResponseBody) SetPageSize(v int32) *DescribeSnapshotLinksResponseBody { s.PageSize = &v return s } func (s *DescribeSnapshotLinksResponseBody) SetRequestId(v string) *DescribeSnapshotLinksResponseBody { s.RequestId = &v return s } func (s *DescribeSnapshotLinksResponseBody) SetSnapshotLinks(v *DescribeSnapshotLinksResponseBodySnapshotLinks) *DescribeSnapshotLinksResponseBody { s.SnapshotLinks = v return s } func (s *DescribeSnapshotLinksResponseBody) SetTotalCount(v int32) *DescribeSnapshotLinksResponseBody { s.TotalCount = &v return s } type DescribeSnapshotLinksResponseBodySnapshotLinks struct { SnapshotLink []*DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink `json:"SnapshotLink,omitempty" xml:"SnapshotLink,omitempty" type:"Repeated"` } func (s DescribeSnapshotLinksResponseBodySnapshotLinks) String() string { return tea.Prettify(s) } func (s DescribeSnapshotLinksResponseBodySnapshotLinks) GoString() string { return s.String() } func (s *DescribeSnapshotLinksResponseBodySnapshotLinks) SetSnapshotLink(v []*DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) *DescribeSnapshotLinksResponseBodySnapshotLinks { s.SnapshotLink = v return s } type DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink struct { // The category of the snapshot. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the instance. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // Indicates whether the instant access feature is enabled. Valid values: // // * true: The instant access feature is enabled. This feature can be enabled only for enhanced SSDs (ESSDs). // * false: The instant access feature is disabled. The snapshot is a normal snapshot for which the instant access feature is disabled. // // > This parameter is no longer used. By default, new normal snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see [Use the instant access feature](~~193667~~). InstantAccess *bool `json:"InstantAccess,omitempty" xml:"InstantAccess,omitempty"` // The region ID of the source disk. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the snapshot chain. SnapshotLinkId *string `json:"SnapshotLinkId,omitempty" xml:"SnapshotLinkId,omitempty"` // The ID of the source disk. This parameter is retained even if the source disk is deleted. SourceDiskId *string `json:"SourceDiskId,omitempty" xml:"SourceDiskId,omitempty"` // The name of the source disk. SourceDiskName *string `json:"SourceDiskName,omitempty" xml:"SourceDiskName,omitempty"` // The capacity of the source disk. Unit: GiB. SourceDiskSize *int32 `json:"SourceDiskSize,omitempty" xml:"SourceDiskSize,omitempty"` // The type of the source disk. Valid values: // // * system: system disk // * data: data disk SourceDiskType *string `json:"SourceDiskType,omitempty" xml:"SourceDiskType,omitempty"` // The total number of snapshots. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` // The total size of all snapshots in the snapshot chain. Unit: byte. TotalSize *int64 `json:"TotalSize,omitempty" xml:"TotalSize,omitempty"` } func (s DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) String() string { return tea.Prettify(s) } func (s DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) GoString() string { return s.String() } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetCategory(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.Category = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetInstanceId(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.InstanceId = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetInstanceName(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.InstanceName = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetInstantAccess(v bool) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.InstantAccess = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetRegionId(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.RegionId = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetSnapshotLinkId(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.SnapshotLinkId = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetSourceDiskId(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.SourceDiskId = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetSourceDiskName(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.SourceDiskName = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetSourceDiskSize(v int32) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.SourceDiskSize = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetSourceDiskType(v string) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.SourceDiskType = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetTotalCount(v int32) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.TotalCount = &v return s } func (s *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink) SetTotalSize(v int64) *DescribeSnapshotLinksResponseBodySnapshotLinksSnapshotLink { s.TotalSize = &v return s } type DescribeSnapshotLinksResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSnapshotLinksResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSnapshotLinksResponse) String() string { return tea.Prettify(s) } func (s DescribeSnapshotLinksResponse) GoString() string { return s.String() } func (s *DescribeSnapshotLinksResponse) SetHeaders(v map[string]*string) *DescribeSnapshotLinksResponse { s.Headers = v return s } func (s *DescribeSnapshotLinksResponse) SetStatusCode(v int32) *DescribeSnapshotLinksResponse { s.StatusCode = &v return s } func (s *DescribeSnapshotLinksResponse) SetBody(v *DescribeSnapshotLinksResponseBody) *DescribeSnapshotLinksResponse { s.Body = v return s } type DescribeSnapshotMonitorDataRequest struct { // The category of the snapshot. Valid values: // // * Standard: normal snapshot // * Flash: local snapshot // // Default value: Standard. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The end of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The interval at which to query the monitoring data of snapshot sizes. Unit: seconds. Valid values: // // * 60 // * 600 // * 3600 // // Default value: 60. Period *int32 `json:"Period,omitempty" xml:"Period,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The beginning of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If the value of seconds (ss) is not 00, the time is rounded up to the next minute. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeSnapshotMonitorDataRequest) String() string { return tea.Prettify(s) } func (s DescribeSnapshotMonitorDataRequest) GoString() string { return s.String() } func (s *DescribeSnapshotMonitorDataRequest) SetCategory(v string) *DescribeSnapshotMonitorDataRequest { s.Category = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetEndTime(v string) *DescribeSnapshotMonitorDataRequest { s.EndTime = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetOwnerAccount(v string) *DescribeSnapshotMonitorDataRequest { s.OwnerAccount = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetOwnerId(v int64) *DescribeSnapshotMonitorDataRequest { s.OwnerId = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetPeriod(v int32) *DescribeSnapshotMonitorDataRequest { s.Period = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetRegionId(v string) *DescribeSnapshotMonitorDataRequest { s.RegionId = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetResourceOwnerAccount(v string) *DescribeSnapshotMonitorDataRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetResourceOwnerId(v int64) *DescribeSnapshotMonitorDataRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSnapshotMonitorDataRequest) SetStartTime(v string) *DescribeSnapshotMonitorDataRequest { s.StartTime = &v return s } type DescribeSnapshotMonitorDataResponseBody struct { // The monitoring data of snapshot sizes. MonitorData *DescribeSnapshotMonitorDataResponseBodyMonitorData `json:"MonitorData,omitempty" xml:"MonitorData,omitempty" type:"Struct"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeSnapshotMonitorDataResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSnapshotMonitorDataResponseBody) GoString() string { return s.String() } func (s *DescribeSnapshotMonitorDataResponseBody) SetMonitorData(v *DescribeSnapshotMonitorDataResponseBodyMonitorData) *DescribeSnapshotMonitorDataResponseBody { s.MonitorData = v return s } func (s *DescribeSnapshotMonitorDataResponseBody) SetRequestId(v string) *DescribeSnapshotMonitorDataResponseBody { s.RequestId = &v return s } type DescribeSnapshotMonitorDataResponseBodyMonitorData struct { DataPoint []*DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint `json:"DataPoint,omitempty" xml:"DataPoint,omitempty" type:"Repeated"` } func (s DescribeSnapshotMonitorDataResponseBodyMonitorData) String() string { return tea.Prettify(s) } func (s DescribeSnapshotMonitorDataResponseBodyMonitorData) GoString() string { return s.String() } func (s *DescribeSnapshotMonitorDataResponseBodyMonitorData) SetDataPoint(v []*DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint) *DescribeSnapshotMonitorDataResponseBodyMonitorData { s.DataPoint = v return s } type DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint struct { // The total size of snapshots. Unit: bytes. Size *int64 `json:"Size,omitempty" xml:"Size,omitempty"` // The timestamp that corresponds to a snapshot size. TimeStamp *string `json:"TimeStamp,omitempty" xml:"TimeStamp,omitempty"` } func (s DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint) String() string { return tea.Prettify(s) } func (s DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint) GoString() string { return s.String() } func (s *DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint) SetSize(v int64) *DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint { s.Size = &v return s } func (s *DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint) SetTimeStamp(v string) *DescribeSnapshotMonitorDataResponseBodyMonitorDataDataPoint { s.TimeStamp = &v return s } type DescribeSnapshotMonitorDataResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSnapshotMonitorDataResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSnapshotMonitorDataResponse) String() string { return tea.Prettify(s) } func (s DescribeSnapshotMonitorDataResponse) GoString() string { return s.String() } func (s *DescribeSnapshotMonitorDataResponse) SetHeaders(v map[string]*string) *DescribeSnapshotMonitorDataResponse { s.Headers = v return s } func (s *DescribeSnapshotMonitorDataResponse) SetStatusCode(v int32) *DescribeSnapshotMonitorDataResponse { s.StatusCode = &v return s } func (s *DescribeSnapshotMonitorDataResponse) SetBody(v *DescribeSnapshotMonitorDataResponseBody) *DescribeSnapshotMonitorDataResponse { s.Body = v return s } type DescribeSnapshotPackageRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the snapshot. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeSnapshotPackageRequest) String() string { return tea.Prettify(s) } func (s DescribeSnapshotPackageRequest) GoString() string { return s.String() } func (s *DescribeSnapshotPackageRequest) SetOwnerAccount(v string) *DescribeSnapshotPackageRequest { s.OwnerAccount = &v return s } func (s *DescribeSnapshotPackageRequest) SetOwnerId(v int64) *DescribeSnapshotPackageRequest { s.OwnerId = &v return s } func (s *DescribeSnapshotPackageRequest) SetPageNumber(v int32) *DescribeSnapshotPackageRequest { s.PageNumber = &v return s } func (s *DescribeSnapshotPackageRequest) SetPageSize(v int32) *DescribeSnapshotPackageRequest { s.PageSize = &v return s } func (s *DescribeSnapshotPackageRequest) SetRegionId(v string) *DescribeSnapshotPackageRequest { s.RegionId = &v return s } func (s *DescribeSnapshotPackageRequest) SetResourceOwnerAccount(v string) *DescribeSnapshotPackageRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSnapshotPackageRequest) SetResourceOwnerId(v int64) *DescribeSnapshotPackageRequest { s.ResourceOwnerId = &v return s } type DescribeSnapshotPackageResponseBody struct { // Details about the OSS storage plans. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The page number of the returned page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The total number of returned OSS storage plans. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The time when the OSS storage plan expires. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. SnapshotPackages *DescribeSnapshotPackageResponseBodySnapshotPackages `json:"SnapshotPackages,omitempty" xml:"SnapshotPackages,omitempty" type:"Struct"` // The name of the OSS storage plan. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeSnapshotPackageResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSnapshotPackageResponseBody) GoString() string { return s.String() } func (s *DescribeSnapshotPackageResponseBody) SetPageNumber(v int32) *DescribeSnapshotPackageResponseBody { s.PageNumber = &v return s } func (s *DescribeSnapshotPackageResponseBody) SetPageSize(v int32) *DescribeSnapshotPackageResponseBody { s.PageSize = &v return s } func (s *DescribeSnapshotPackageResponseBody) SetRequestId(v string) *DescribeSnapshotPackageResponseBody { s.RequestId = &v return s } func (s *DescribeSnapshotPackageResponseBody) SetSnapshotPackages(v *DescribeSnapshotPackageResponseBodySnapshotPackages) *DescribeSnapshotPackageResponseBody { s.SnapshotPackages = v return s } func (s *DescribeSnapshotPackageResponseBody) SetTotalCount(v int32) *DescribeSnapshotPackageResponseBody { s.TotalCount = &v return s } type DescribeSnapshotPackageResponseBodySnapshotPackages struct { SnapshotPackage []*DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage `json:"SnapshotPackage,omitempty" xml:"SnapshotPackage,omitempty" type:"Repeated"` } func (s DescribeSnapshotPackageResponseBodySnapshotPackages) String() string { return tea.Prettify(s) } func (s DescribeSnapshotPackageResponseBodySnapshotPackages) GoString() string { return s.String() } func (s *DescribeSnapshotPackageResponseBodySnapshotPackages) SetSnapshotPackage(v []*DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage) *DescribeSnapshotPackageResponseBodySnapshotPackages { s.SnapshotPackage = v return s } type DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage struct { // The time when the OSS storage plan was purchased. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. DisplayName *string `json:"DisplayName,omitempty" xml:"DisplayName,omitempty"` // The maximum storage capacity offered by the OSS storage plan. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` InitCapacity *int64 `json:"InitCapacity,omitempty" xml:"InitCapacity,omitempty"` // DescribeSnapshotPackage StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` } func (s DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage) String() string { return tea.Prettify(s) } func (s DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage) GoString() string { return s.String() } func (s *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage) SetDisplayName(v string) *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage { s.DisplayName = &v return s } func (s *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage) SetEndTime(v string) *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage { s.EndTime = &v return s } func (s *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage) SetInitCapacity(v int64) *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage { s.InitCapacity = &v return s } func (s *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage) SetStartTime(v string) *DescribeSnapshotPackageResponseBodySnapshotPackagesSnapshotPackage { s.StartTime = &v return s } type DescribeSnapshotPackageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSnapshotPackageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSnapshotPackageResponse) String() string { return tea.Prettify(s) } func (s DescribeSnapshotPackageResponse) GoString() string { return s.String() } func (s *DescribeSnapshotPackageResponse) SetHeaders(v map[string]*string) *DescribeSnapshotPackageResponse { s.Headers = v return s } func (s *DescribeSnapshotPackageResponse) SetStatusCode(v int32) *DescribeSnapshotPackageResponse { s.StatusCode = &v return s } func (s *DescribeSnapshotPackageResponse) SetBody(v *DescribeSnapshotPackageResponseBody) *DescribeSnapshotPackageResponse { s.Body = v return s } type DescribeSnapshotsRequest struct { Filter []*DescribeSnapshotsRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` // The category of the snapshot. Valid values: // // * Standard: normal snapshot // * Flash: local snapshot // // The local snapshot feature is replaced by the instant access feature. When you specify this parameter, take note of the following items: // // * If you have used local snapshots before December 14, 2020, you can use this parameter. // * If you have not used local snapshots before December 14, 2020, you cannot use this parameter. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The disk ID. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // Specifies whether to perform only a dry run, without performing the actual request. Valid values: // // * true: performs only a dry run. The system checks your AccessKey pair, the permissions of the RAM user, and the required parameters. If the request passes the dry run, the DryRunOperation error code is returned. Otherwise, an error message is returned. // * false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. DryRun *bool `json:"DryRun,omitempty" xml:"DryRun,omitempty"` // Specifies whether the snapshot is encrypted. Default value: false. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The ID of the Key Management Service (KMS) key that is used for the data disk. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` // The maximum number of entries per page. Valid values: 1 to 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. Page starts from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. Valid values: 1 to 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the disk. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The resource group ID. If you configure this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. // // > Resources in the default resource group are displayed in the response regardless of whether you configure this parameter. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The IDs of snapshots. You can specify a JSON array that consists of up to 100 snapshot IDs. Separate the snapshot IDs with commas (,). SnapshotIds *string `json:"SnapshotIds,omitempty" xml:"SnapshotIds,omitempty"` // The snapshot chain ID. You can specify a JSON array that contains up to 100 snapshot chain IDs. Separate the snapshot chain IDs with commas (,). SnapshotLinkId *string `json:"SnapshotLinkId,omitempty" xml:"SnapshotLinkId,omitempty"` // The name of the snapshot. SnapshotName *string `json:"SnapshotName,omitempty" xml:"SnapshotName,omitempty"` // The type of the snapshot. Valid values: // // * auto: automatic snapshot // * user: manual snapshot // * all (default): all snapshot types SnapshotType *string `json:"SnapshotType,omitempty" xml:"SnapshotType,omitempty"` // The type of the source disk. Valid values: // // * system: system disk // * data: data disk // // > The value of this parameter is not case-sensitive. SourceDiskType *string `json:"SourceDiskType,omitempty" xml:"SourceDiskType,omitempty"` // The status of the snapshot. Valid values: // // * progressing: The snapshot is being created. // * accomplished: The snapshot is created. // * failed: The snapshot fails to be created. // * all (default): This value indicates all snapshot states. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the snapshot. Tag []*DescribeSnapshotsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` // Specifies whether the snapshot has been used to create custom images or disks. Valid values: // // * image: The snapshot has been used to create custom images. // * disk: The snapshot has been used to create disks. // * image_disk: The snapshot has been used to create both custom images and data disks. // * none: The snapshot has not been used to create custom images or disks. Usage *string `json:"Usage,omitempty" xml:"Usage,omitempty"` } func (s DescribeSnapshotsRequest) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsRequest) GoString() string { return s.String() } func (s *DescribeSnapshotsRequest) SetFilter(v []*DescribeSnapshotsRequestFilter) *DescribeSnapshotsRequest { s.Filter = v return s } func (s *DescribeSnapshotsRequest) SetCategory(v string) *DescribeSnapshotsRequest { s.Category = &v return s } func (s *DescribeSnapshotsRequest) SetDiskId(v string) *DescribeSnapshotsRequest { s.DiskId = &v return s } func (s *DescribeSnapshotsRequest) SetDryRun(v bool) *DescribeSnapshotsRequest { s.DryRun = &v return s } func (s *DescribeSnapshotsRequest) SetEncrypted(v bool) *DescribeSnapshotsRequest { s.Encrypted = &v return s } func (s *DescribeSnapshotsRequest) SetInstanceId(v string) *DescribeSnapshotsRequest { s.InstanceId = &v return s } func (s *DescribeSnapshotsRequest) SetKMSKeyId(v string) *DescribeSnapshotsRequest { s.KMSKeyId = &v return s } func (s *DescribeSnapshotsRequest) SetMaxResults(v int32) *DescribeSnapshotsRequest { s.MaxResults = &v return s } func (s *DescribeSnapshotsRequest) SetNextToken(v string) *DescribeSnapshotsRequest { s.NextToken = &v return s } func (s *DescribeSnapshotsRequest) SetOwnerAccount(v string) *DescribeSnapshotsRequest { s.OwnerAccount = &v return s } func (s *DescribeSnapshotsRequest) SetOwnerId(v int64) *DescribeSnapshotsRequest { s.OwnerId = &v return s } func (s *DescribeSnapshotsRequest) SetPageNumber(v int32) *DescribeSnapshotsRequest { s.PageNumber = &v return s } func (s *DescribeSnapshotsRequest) SetPageSize(v int32) *DescribeSnapshotsRequest { s.PageSize = &v return s } func (s *DescribeSnapshotsRequest) SetRegionId(v string) *DescribeSnapshotsRequest { s.RegionId = &v return s } func (s *DescribeSnapshotsRequest) SetResourceGroupId(v string) *DescribeSnapshotsRequest { s.ResourceGroupId = &v return s } func (s *DescribeSnapshotsRequest) SetResourceOwnerAccount(v string) *DescribeSnapshotsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSnapshotsRequest) SetResourceOwnerId(v int64) *DescribeSnapshotsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSnapshotsRequest) SetSnapshotIds(v string) *DescribeSnapshotsRequest { s.SnapshotIds = &v return s } func (s *DescribeSnapshotsRequest) SetSnapshotLinkId(v string) *DescribeSnapshotsRequest { s.SnapshotLinkId = &v return s } func (s *DescribeSnapshotsRequest) SetSnapshotName(v string) *DescribeSnapshotsRequest { s.SnapshotName = &v return s } func (s *DescribeSnapshotsRequest) SetSnapshotType(v string) *DescribeSnapshotsRequest { s.SnapshotType = &v return s } func (s *DescribeSnapshotsRequest) SetSourceDiskType(v string) *DescribeSnapshotsRequest { s.SourceDiskType = &v return s } func (s *DescribeSnapshotsRequest) SetStatus(v string) *DescribeSnapshotsRequest { s.Status = &v return s } func (s *DescribeSnapshotsRequest) SetTag(v []*DescribeSnapshotsRequestTag) *DescribeSnapshotsRequest { s.Tag = v return s } func (s *DescribeSnapshotsRequest) SetUsage(v string) *DescribeSnapshotsRequest { s.Usage = &v return s } type DescribeSnapshotsRequestFilter struct { // The key of filter 1 that is used to query resources. Set the value to `CreationStartTime`. You can specify a time by configuring both `Filter.1.Key` and `Filter.1.Value` to query resources that were created after the time. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of filter 1 that is used to query resources. Set the value to a time. If you configure this parameter, you must also configure `Filter.1.Key`. Specify the time in the `yyyy-MM-ddTHH:mmZ` format. The time must be in UTC. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeSnapshotsRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsRequestFilter) GoString() string { return s.String() } func (s *DescribeSnapshotsRequestFilter) SetKey(v string) *DescribeSnapshotsRequestFilter { s.Key = &v return s } func (s *DescribeSnapshotsRequestFilter) SetValue(v string) *DescribeSnapshotsRequestFilter { s.Value = &v return s } type DescribeSnapshotsRequestTag struct { // The key of tag N of the snapshot. Valid values of N: 1 to 20 // // If a single tag is specified to query resources, up to 1,000 resources that have this tag added are returned. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added are returned. To query more than 1,000 resources with the specified tags, call the [ListTagResources](~~110425~~) operation. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the snapshot. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeSnapshotsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsRequestTag) GoString() string { return s.String() } func (s *DescribeSnapshotsRequestTag) SetKey(v string) *DescribeSnapshotsRequestTag { s.Key = &v return s } func (s *DescribeSnapshotsRequestTag) SetValue(v string) *DescribeSnapshotsRequestTag { s.Value = &v return s } type DescribeSnapshotsResponseBody struct { // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The information about the snapshots. Snapshots *DescribeSnapshotsResponseBodySnapshots `json:"Snapshots,omitempty" xml:"Snapshots,omitempty" type:"Struct"` // The total number of snapshots returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeSnapshotsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsResponseBody) GoString() string { return s.String() } func (s *DescribeSnapshotsResponseBody) SetNextToken(v string) *DescribeSnapshotsResponseBody { s.NextToken = &v return s } func (s *DescribeSnapshotsResponseBody) SetPageNumber(v int32) *DescribeSnapshotsResponseBody { s.PageNumber = &v return s } func (s *DescribeSnapshotsResponseBody) SetPageSize(v int32) *DescribeSnapshotsResponseBody { s.PageSize = &v return s } func (s *DescribeSnapshotsResponseBody) SetRequestId(v string) *DescribeSnapshotsResponseBody { s.RequestId = &v return s } func (s *DescribeSnapshotsResponseBody) SetSnapshots(v *DescribeSnapshotsResponseBodySnapshots) *DescribeSnapshotsResponseBody { s.Snapshots = v return s } func (s *DescribeSnapshotsResponseBody) SetTotalCount(v int32) *DescribeSnapshotsResponseBody { s.TotalCount = &v return s } type DescribeSnapshotsResponseBodySnapshots struct { Snapshot []*DescribeSnapshotsResponseBodySnapshotsSnapshot `json:"Snapshot,omitempty" xml:"Snapshot,omitempty" type:"Repeated"` } func (s DescribeSnapshotsResponseBodySnapshots) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsResponseBodySnapshots) GoString() string { return s.String() } func (s *DescribeSnapshotsResponseBodySnapshots) SetSnapshot(v []*DescribeSnapshotsResponseBodySnapshotsSnapshot) *DescribeSnapshotsResponseBodySnapshots { s.Snapshot = v return s } type DescribeSnapshotsResponseBodySnapshotsSnapshot struct { // Indicates whether the snapshot can be used to create or roll back disks. Valid values: // // * true // * false Available *bool `json:"Available,omitempty" xml:"Available,omitempty"` // The category of the snapshot. // // > This parameter will be removed in the future. We recommend that you use `InstantAccess` to ensure future compatibility. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The time when the snapshot was created. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the snapshot. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // Indicates whether the snapshot is encrypted. Encrypted *bool `json:"Encrypted,omitempty" xml:"Encrypted,omitempty"` // Indicates whether the instant access feature is enabled. Valid values: // // * true: The instant access feature is enabled. The instant access feature can be enabled only for enhanced SSDs (ESSDs). // * false: The instant access feature is disabled. The snapshot is a normal snapshot for which the instant access feature is disabled. InstantAccess *bool `json:"InstantAccess,omitempty" xml:"InstantAccess,omitempty"` // Indicates the validity period of the instant access feature. When the specified period expires, the instant access feature is automatically disabled. // // By default, the value of this parameter is the same as the value of `RetentionDays`. InstantAccessRetentionDays *int32 `json:"InstantAccessRetentionDays,omitempty" xml:"InstantAccessRetentionDays,omitempty"` // The ID of the Key Management Service (KMS) key used for the data disk. KMSKeyId *string `json:"KMSKeyId,omitempty" xml:"KMSKeyId,omitempty"` // The time when the snapshot was last changed. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. LastModifiedTime *string `json:"LastModifiedTime,omitempty" xml:"LastModifiedTime,omitempty"` // The product code of the Alibaba Cloud Marketplace image. ProductCode *string `json:"ProductCode,omitempty" xml:"ProductCode,omitempty"` // The progress of the snapshot creation task. Unit: percent (%). Progress *string `json:"Progress,omitempty" xml:"Progress,omitempty"` // The ID of the region to which the snapshot belongs. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The amount of remaining time required to create the snapshot. Unit: seconds. RemainTime *int32 `json:"RemainTime,omitempty" xml:"RemainTime,omitempty"` // The resource group ID to which the snapshot belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` // The retention period of the automatic snapshot. Unit: days. RetentionDays *int32 `json:"RetentionDays,omitempty" xml:"RetentionDays,omitempty"` // The ID of the snapshot. SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` // The name of the snapshot. This parameter is returned only if a snapshot name was specified when the snapshot was created. SnapshotName *string `json:"SnapshotName,omitempty" xml:"SnapshotName,omitempty"` // The serial number of the snapshot. SnapshotSN *string `json:"SnapshotSN,omitempty" xml:"SnapshotSN,omitempty"` // The type of snapshot. Valid values: // // * auto or timer: automatic snapshot // * user: manual snapshot // * all: all snapshot types SnapshotType *string `json:"SnapshotType,omitempty" xml:"SnapshotType,omitempty"` // The ID of the source disk. This parameter is retained even after the source disk is released. SourceDiskId *string `json:"SourceDiskId,omitempty" xml:"SourceDiskId,omitempty"` // The capacity of the source disk. Unit: GiB. SourceDiskSize *string `json:"SourceDiskSize,omitempty" xml:"SourceDiskSize,omitempty"` // The type of the source disk. Valid values: // // * system // * data SourceDiskType *string `json:"SourceDiskType,omitempty" xml:"SourceDiskType,omitempty"` // The region ID of the source snapshot. SourceRegionId *string `json:"SourceRegionId,omitempty" xml:"SourceRegionId,omitempty"` // The ID of the source snapshot. SourceSnapshotId *string `json:"SourceSnapshotId,omitempty" xml:"SourceSnapshotId,omitempty"` // The category of the source disk. // // > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility. SourceStorageType *string `json:"SourceStorageType,omitempty" xml:"SourceStorageType,omitempty"` // The state of the snapshot. Valid values: // // * progressing // * accomplished // * failed Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The tags of the snapshot. Tags *DescribeSnapshotsResponseBodySnapshotsSnapshotTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // Indicates whether the snapshot has been used to create images or disks. Valid values: // // * image // * disk // * image_disk // * none Usage *string `json:"Usage,omitempty" xml:"Usage,omitempty"` } func (s DescribeSnapshotsResponseBodySnapshotsSnapshot) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsResponseBodySnapshotsSnapshot) GoString() string { return s.String() } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetAvailable(v bool) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Available = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetCategory(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Category = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetCreationTime(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.CreationTime = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetDescription(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Description = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetEncrypted(v bool) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Encrypted = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetInstantAccess(v bool) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.InstantAccess = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetInstantAccessRetentionDays(v int32) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.InstantAccessRetentionDays = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetKMSKeyId(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.KMSKeyId = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetLastModifiedTime(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.LastModifiedTime = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetProductCode(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.ProductCode = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetProgress(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Progress = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetRegionId(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.RegionId = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetRemainTime(v int32) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.RemainTime = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetResourceGroupId(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.ResourceGroupId = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetRetentionDays(v int32) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.RetentionDays = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSnapshotId(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SnapshotId = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSnapshotName(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SnapshotName = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSnapshotSN(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SnapshotSN = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSnapshotType(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SnapshotType = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSourceDiskId(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SourceDiskId = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSourceDiskSize(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SourceDiskSize = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSourceDiskType(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SourceDiskType = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSourceRegionId(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SourceRegionId = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSourceSnapshotId(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SourceSnapshotId = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetSourceStorageType(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.SourceStorageType = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetStatus(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Status = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetTags(v *DescribeSnapshotsResponseBodySnapshotsSnapshotTags) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Tags = v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshot) SetUsage(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshot { s.Usage = &v return s } type DescribeSnapshotsResponseBodySnapshotsSnapshotTags struct { Tag []*DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeSnapshotsResponseBodySnapshotsSnapshotTags) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsResponseBodySnapshotsSnapshotTags) GoString() string { return s.String() } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshotTags) SetTag(v []*DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag) *DescribeSnapshotsResponseBodySnapshotsSnapshotTags { s.Tag = v return s } type DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag struct { // The tag key of the snapshot. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value of the snapshot. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag) GoString() string { return s.String() } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag) SetTagKey(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag { s.TagKey = &v return s } func (s *DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag) SetTagValue(v string) *DescribeSnapshotsResponseBodySnapshotsSnapshotTagsTag { s.TagValue = &v return s } type DescribeSnapshotsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSnapshotsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSnapshotsResponse) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsResponse) GoString() string { return s.String() } func (s *DescribeSnapshotsResponse) SetHeaders(v map[string]*string) *DescribeSnapshotsResponse { s.Headers = v return s } func (s *DescribeSnapshotsResponse) SetStatusCode(v int32) *DescribeSnapshotsResponse { s.StatusCode = &v return s } func (s *DescribeSnapshotsResponse) SetBody(v *DescribeSnapshotsResponseBody) *DescribeSnapshotsResponse { s.Body = v return s } type DescribeSnapshotsUsageRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the snapshot. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeSnapshotsUsageRequest) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsUsageRequest) GoString() string { return s.String() } func (s *DescribeSnapshotsUsageRequest) SetOwnerAccount(v string) *DescribeSnapshotsUsageRequest { s.OwnerAccount = &v return s } func (s *DescribeSnapshotsUsageRequest) SetOwnerId(v int64) *DescribeSnapshotsUsageRequest { s.OwnerId = &v return s } func (s *DescribeSnapshotsUsageRequest) SetRegionId(v string) *DescribeSnapshotsUsageRequest { s.RegionId = &v return s } func (s *DescribeSnapshotsUsageRequest) SetResourceOwnerAccount(v string) *DescribeSnapshotsUsageRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSnapshotsUsageRequest) SetResourceOwnerId(v int64) *DescribeSnapshotsUsageRequest { s.ResourceOwnerId = &v return s } type DescribeSnapshotsUsageResponseBody struct { // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The number of snapshots stored in the current region. SnapshotCount *int32 `json:"SnapshotCount,omitempty" xml:"SnapshotCount,omitempty"` // The total size of snapshots stored in the current region. Unit: bytes. SnapshotSize *int64 `json:"SnapshotSize,omitempty" xml:"SnapshotSize,omitempty"` } func (s DescribeSnapshotsUsageResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsUsageResponseBody) GoString() string { return s.String() } func (s *DescribeSnapshotsUsageResponseBody) SetRequestId(v string) *DescribeSnapshotsUsageResponseBody { s.RequestId = &v return s } func (s *DescribeSnapshotsUsageResponseBody) SetSnapshotCount(v int32) *DescribeSnapshotsUsageResponseBody { s.SnapshotCount = &v return s } func (s *DescribeSnapshotsUsageResponseBody) SetSnapshotSize(v int64) *DescribeSnapshotsUsageResponseBody { s.SnapshotSize = &v return s } type DescribeSnapshotsUsageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSnapshotsUsageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSnapshotsUsageResponse) String() string { return tea.Prettify(s) } func (s DescribeSnapshotsUsageResponse) GoString() string { return s.String() } func (s *DescribeSnapshotsUsageResponse) SetHeaders(v map[string]*string) *DescribeSnapshotsUsageResponse { s.Headers = v return s } func (s *DescribeSnapshotsUsageResponse) SetStatusCode(v int32) *DescribeSnapshotsUsageResponse { s.StatusCode = &v return s } func (s *DescribeSnapshotsUsageResponse) SetBody(v *DescribeSnapshotsUsageResponseBody) *DescribeSnapshotsUsageResponse { s.Body = v return s } type DescribeSpotAdviceRequest struct { // The number of vCPUs of the instance type. For more information, see [Instance families](~~25378~~). Cores *int32 `json:"Cores,omitempty" xml:"Cores,omitempty"` // The number of GPUs that a GPU-accelerated instance has. For information about the valid values, see [GPU-accelerated compute optimized instance types](~~108496~~). GpuAmount *int32 `json:"GpuAmount,omitempty" xml:"GpuAmount,omitempty"` // The GPU type. Valid values: // // * NVIDIA P4 // * NVIDIA T4 // * NVIDIA P100 // * NVIDIA V100 // * NVIDIA A100 // // This parameter is left empty by default, which indicates that all GPU types are queried. For more information, see [GPU-accelerated compute optimized instance types](~~108496~~). GpuSpec *string `json:"GpuSpec,omitempty" xml:"GpuSpec,omitempty"` // The level of the instance family. Valid values: // // * EntryLevel. // * EnterpriseLevel. // * CreditEntryLevel. For more information, see [Overview of burstable instances](~~59977~~). // // This parameter is left empty by default, which indicates that instance families at all levels are queried. InstanceFamilyLevel *string `json:"InstanceFamilyLevel,omitempty" xml:"InstanceFamilyLevel,omitempty"` // The instance family. For more information, see [Instance families](~~25378~~). InstanceTypeFamily *string `json:"InstanceTypeFamily,omitempty" xml:"InstanceTypeFamily,omitempty"` // The instance types. You can specify up to 10 instance types. InstanceTypes []*string `json:"InstanceTypes,omitempty" xml:"InstanceTypes,omitempty" type:"Repeated"` // The memory size of the instance type. Unit: GiB. For more information, see [Instance families](~~25378~~). Memory *float32 `json:"Memory,omitempty" xml:"Memory,omitempty"` // The minimum number of vCPUs of the instance type. For more information, see [Instance families](~~25378~~). MinCores *int32 `json:"MinCores,omitempty" xml:"MinCores,omitempty"` // The minimum memory size of the instance type. For more information, see [Instance families](~~25378~~). MinMemory *float32 `json:"MinMemory,omitempty" xml:"MinMemory,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The zone ID. // // This parameter is left empty by default, which indicates that all zones in the specified region are queried. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeSpotAdviceRequest) String() string { return tea.Prettify(s) } func (s DescribeSpotAdviceRequest) GoString() string { return s.String() } func (s *DescribeSpotAdviceRequest) SetCores(v int32) *DescribeSpotAdviceRequest { s.Cores = &v return s } func (s *DescribeSpotAdviceRequest) SetGpuAmount(v int32) *DescribeSpotAdviceRequest { s.GpuAmount = &v return s } func (s *DescribeSpotAdviceRequest) SetGpuSpec(v string) *DescribeSpotAdviceRequest { s.GpuSpec = &v return s } func (s *DescribeSpotAdviceRequest) SetInstanceFamilyLevel(v string) *DescribeSpotAdviceRequest { s.InstanceFamilyLevel = &v return s } func (s *DescribeSpotAdviceRequest) SetInstanceTypeFamily(v string) *DescribeSpotAdviceRequest { s.InstanceTypeFamily = &v return s } func (s *DescribeSpotAdviceRequest) SetInstanceTypes(v []*string) *DescribeSpotAdviceRequest { s.InstanceTypes = v return s } func (s *DescribeSpotAdviceRequest) SetMemory(v float32) *DescribeSpotAdviceRequest { s.Memory = &v return s } func (s *DescribeSpotAdviceRequest) SetMinCores(v int32) *DescribeSpotAdviceRequest { s.MinCores = &v return s } func (s *DescribeSpotAdviceRequest) SetMinMemory(v float32) *DescribeSpotAdviceRequest { s.MinMemory = &v return s } func (s *DescribeSpotAdviceRequest) SetOwnerAccount(v string) *DescribeSpotAdviceRequest { s.OwnerAccount = &v return s } func (s *DescribeSpotAdviceRequest) SetOwnerId(v int64) *DescribeSpotAdviceRequest { s.OwnerId = &v return s } func (s *DescribeSpotAdviceRequest) SetRegionId(v string) *DescribeSpotAdviceRequest { s.RegionId = &v return s } func (s *DescribeSpotAdviceRequest) SetResourceOwnerAccount(v string) *DescribeSpotAdviceRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSpotAdviceRequest) SetResourceOwnerId(v int64) *DescribeSpotAdviceRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSpotAdviceRequest) SetZoneId(v string) *DescribeSpotAdviceRequest { s.ZoneId = &v return s } type DescribeSpotAdviceResponseBody struct { // Details about preemptible instances in the zones of the specified region. // // > The return values are sorted based on the historical percentages of average prices of preemptible instances of the specified instance type relative to pay-as-you-go instance prices. AvailableSpotZones *DescribeSpotAdviceResponseBodyAvailableSpotZones `json:"AvailableSpotZones,omitempty" xml:"AvailableSpotZones,omitempty" type:"Struct"` // The region ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DescribeSpotAdviceResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSpotAdviceResponseBody) GoString() string { return s.String() } func (s *DescribeSpotAdviceResponseBody) SetAvailableSpotZones(v *DescribeSpotAdviceResponseBodyAvailableSpotZones) *DescribeSpotAdviceResponseBody { s.AvailableSpotZones = v return s } func (s *DescribeSpotAdviceResponseBody) SetRegionId(v string) *DescribeSpotAdviceResponseBody { s.RegionId = &v return s } func (s *DescribeSpotAdviceResponseBody) SetRequestId(v string) *DescribeSpotAdviceResponseBody { s.RequestId = &v return s } type DescribeSpotAdviceResponseBodyAvailableSpotZones struct { AvailableSpotZone []*DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone `json:"AvailableSpotZone,omitempty" xml:"AvailableSpotZone,omitempty" type:"Repeated"` } func (s DescribeSpotAdviceResponseBodyAvailableSpotZones) String() string { return tea.Prettify(s) } func (s DescribeSpotAdviceResponseBodyAvailableSpotZones) GoString() string { return s.String() } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZones) SetAvailableSpotZone(v []*DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone) *DescribeSpotAdviceResponseBodyAvailableSpotZones { s.AvailableSpotZone = v return s } type DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone struct { // Details about preemptible instances in the last 30 days, including the release rate of preemptible instances and percentages of average prices of preemptible instances relative to pay-as-you-go instance prices. AvailableSpotResources *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResources `json:"AvailableSpotResources,omitempty" xml:"AvailableSpotResources,omitempty" type:"Struct"` // The zone ID. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone) String() string { return tea.Prettify(s) } func (s DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone) GoString() string { return s.String() } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone) SetAvailableSpotResources(v *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResources) *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone { s.AvailableSpotResources = v return s } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone) SetZoneId(v string) *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZone { s.ZoneId = &v return s } type DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResources struct { AvailableSpotResource []*DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource `json:"AvailableSpotResource,omitempty" xml:"AvailableSpotResource,omitempty" type:"Repeated"` } func (s DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResources) String() string { return tea.Prettify(s) } func (s DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResources) GoString() string { return s.String() } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResources) SetAvailableSpotResource(v []*DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource) *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResources { s.AvailableSpotResource = v return s } type DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource struct { // The percentage of the average preemptible instance price relative to the pay-as-you-go instance price in the last 30 days. Unit: %. Valid values: 1 to 100. // // You can calculate the average preemptible instance price based on the return value. For example, if the pay-as-you-go instance price is 1 and the return value of this parameter is 20, the average preemptible instance price in the last 30 days is 0.2. AverageSpotDiscount *int32 `json:"AverageSpotDiscount,omitempty" xml:"AverageSpotDiscount,omitempty"` // The instance type. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // The release rate range of preemptible instances in the last 30 days, which corresponds to the value of the `InterruptionRate` parameter. Valid values: // // * 0-3% // * 3-5% // * 5-10% // * 10-100% InterruptRateDesc *string `json:"InterruptRateDesc,omitempty" xml:"InterruptRateDesc,omitempty"` // The average release rate of preemptible instances in the last 30 days. Unit: %. InterruptionRate *float32 `json:"InterruptionRate,omitempty" xml:"InterruptionRate,omitempty"` } func (s DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource) String() string { return tea.Prettify(s) } func (s DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource) GoString() string { return s.String() } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource) SetAverageSpotDiscount(v int32) *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource { s.AverageSpotDiscount = &v return s } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource) SetInstanceType(v string) *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource { s.InstanceType = &v return s } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource) SetInterruptRateDesc(v string) *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource { s.InterruptRateDesc = &v return s } func (s *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource) SetInterruptionRate(v float32) *DescribeSpotAdviceResponseBodyAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource { s.InterruptionRate = &v return s } type DescribeSpotAdviceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSpotAdviceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSpotAdviceResponse) String() string { return tea.Prettify(s) } func (s DescribeSpotAdviceResponse) GoString() string { return s.String() } func (s *DescribeSpotAdviceResponse) SetHeaders(v map[string]*string) *DescribeSpotAdviceResponse { s.Headers = v return s } func (s *DescribeSpotAdviceResponse) SetStatusCode(v int32) *DescribeSpotAdviceResponse { s.StatusCode = &v return s } func (s *DescribeSpotAdviceResponse) SetBody(v *DescribeSpotAdviceResponseBody) *DescribeSpotAdviceResponse { s.Body = v return s } type DescribeSpotPriceHistoryRequest struct { // The type of the operating system platform. Valid values: // // * linux // * windows EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The beginning of the time range to query. Specify the time in the [ISO 8601](~~25696~~) standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time must be in UTC. The specified time can be up to 30 days earlier than the specified EndTime value. // // This parameter is empty by default. If this parameter is empty, the time that is 3 hours earlier than the specified EndTime value is used. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // Specifies whether the instance is I/O optimized. Valid values: // // * optimized: The instance is I/O optimized. // * none: The instance is not I/O optimized. // // For instances of generation I instance families, the default value is none. // // For instances of other instance families, the default value is optimized. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The network type of the preemptible instance. Valid values: // // * classic: classic network // * vpc: Virtual Private Cloud (VPC) NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` // The type of the operating system platform. Valid values: // // - linux // - windows OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` // The line from which the query starts. // // Default value: 0. Offset *int32 `json:"Offset,omitempty" xml:"Offset,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The zone ID of the preemptible instance. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values: // // - 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bidding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // - 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the biding price with the market price and checks the resource inventory to determine whether to retain or release the instance. // // Alibaba Cloud sends Elastic Compute Service (ECS) system events to notify you 5 minutes before the instance is released. Preemptible instances are billed by the second. We recommend that you specify a protection period based on your business requirements. // // >If you set SpotStrategy to SpotWithPriceLimit or SpotAsPriceGo, this parameter takes effect. SpotDuration *int32 `json:"SpotDuration,omitempty" xml:"SpotDuration,omitempty"` // The time that corresponds to the queried spot price. The time is in the `yyyy-MM-ddTHH:mm:ssZ` format. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The spot price (market price) of the preemptible instance. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeSpotPriceHistoryRequest) String() string { return tea.Prettify(s) } func (s DescribeSpotPriceHistoryRequest) GoString() string { return s.String() } func (s *DescribeSpotPriceHistoryRequest) SetEndTime(v string) *DescribeSpotPriceHistoryRequest { s.EndTime = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetInstanceType(v string) *DescribeSpotPriceHistoryRequest { s.InstanceType = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetIoOptimized(v string) *DescribeSpotPriceHistoryRequest { s.IoOptimized = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetNetworkType(v string) *DescribeSpotPriceHistoryRequest { s.NetworkType = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetOSType(v string) *DescribeSpotPriceHistoryRequest { s.OSType = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetOffset(v int32) *DescribeSpotPriceHistoryRequest { s.Offset = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetOwnerAccount(v string) *DescribeSpotPriceHistoryRequest { s.OwnerAccount = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetOwnerId(v int64) *DescribeSpotPriceHistoryRequest { s.OwnerId = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetRegionId(v string) *DescribeSpotPriceHistoryRequest { s.RegionId = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetResourceOwnerAccount(v string) *DescribeSpotPriceHistoryRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetResourceOwnerId(v int64) *DescribeSpotPriceHistoryRequest { s.ResourceOwnerId = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetSpotDuration(v int32) *DescribeSpotPriceHistoryRequest { s.SpotDuration = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetStartTime(v string) *DescribeSpotPriceHistoryRequest { s.StartTime = &v return s } func (s *DescribeSpotPriceHistoryRequest) SetZoneId(v string) *DescribeSpotPriceHistoryRequest { s.ZoneId = &v return s } type DescribeSpotPriceHistoryResponseBody struct { // The instance type of the preemptible instance. Currency *string `json:"Currency,omitempty" xml:"Currency,omitempty"` // The network type of the preemptible instance. NextOffset *int32 `json:"NextOffset,omitempty" xml:"NextOffset,omitempty"` // The instance type of the preemptible instance. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The zone ID of the preemptible instance. SpotPrices *DescribeSpotPriceHistoryResponseBodySpotPrices `json:"SpotPrices,omitempty" xml:"SpotPrices,omitempty" type:"Struct"` } func (s DescribeSpotPriceHistoryResponseBody) String() string { return tea.Prettify(s) } func (s DescribeSpotPriceHistoryResponseBody) GoString() string { return s.String() } func (s *DescribeSpotPriceHistoryResponseBody) SetCurrency(v string) *DescribeSpotPriceHistoryResponseBody { s.Currency = &v return s } func (s *DescribeSpotPriceHistoryResponseBody) SetNextOffset(v int32) *DescribeSpotPriceHistoryResponseBody { s.NextOffset = &v return s } func (s *DescribeSpotPriceHistoryResponseBody) SetRequestId(v string) *DescribeSpotPriceHistoryResponseBody { s.RequestId = &v return s } func (s *DescribeSpotPriceHistoryResponseBody) SetSpotPrices(v *DescribeSpotPriceHistoryResponseBodySpotPrices) *DescribeSpotPriceHistoryResponseBody { s.SpotPrices = v return s } type DescribeSpotPriceHistoryResponseBodySpotPrices struct { SpotPriceType []*DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType `json:"SpotPriceType,omitempty" xml:"SpotPriceType,omitempty" type:"Repeated"` } func (s DescribeSpotPriceHistoryResponseBodySpotPrices) String() string { return tea.Prettify(s) } func (s DescribeSpotPriceHistoryResponseBodySpotPrices) GoString() string { return s.String() } func (s *DescribeSpotPriceHistoryResponseBodySpotPrices) SetSpotPriceType(v []*DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) *DescribeSpotPriceHistoryResponseBodySpotPrices { s.SpotPriceType = v return s } type DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType struct { // The instance type of the preemptible instance. InstanceType *string `json:"InstanceType,omitempty" xml:"InstanceType,omitempty"` // Details about the price history of the preemptible instance. IoOptimized *string `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // Queries the price history of a preemptible instance within the last 30 days. NetworkType *string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` // The price for a pay-as-you-go instance that has the same configuration as the specified preemptible instance. OriginPrice *float32 `json:"OriginPrice,omitempty" xml:"OriginPrice,omitempty"` // The price for a pay-as-you-go instance that has the same configurations as the preemptible instance. SpotPrice *float32 `json:"SpotPrice,omitempty" xml:"SpotPrice,omitempty"` // The currency unit of the price. // // Alibaba Cloud China site (aliyun.com): CNY. // // Alibaba Cloud International site (alibabacloud.com): USD. Timestamp *string `json:"Timestamp,omitempty" xml:"Timestamp,omitempty"` // The ID of the request. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) String() string { return tea.Prettify(s) } func (s DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) GoString() string { return s.String() } func (s *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) SetInstanceType(v string) *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType { s.InstanceType = &v return s } func (s *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) SetIoOptimized(v string) *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType { s.IoOptimized = &v return s } func (s *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) SetNetworkType(v string) *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType { s.NetworkType = &v return s } func (s *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) SetOriginPrice(v float32) *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType { s.OriginPrice = &v return s } func (s *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) SetSpotPrice(v float32) *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType { s.SpotPrice = &v return s } func (s *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) SetTimestamp(v string) *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType { s.Timestamp = &v return s } func (s *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType) SetZoneId(v string) *DescribeSpotPriceHistoryResponseBodySpotPricesSpotPriceType { s.ZoneId = &v return s } type DescribeSpotPriceHistoryResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeSpotPriceHistoryResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeSpotPriceHistoryResponse) String() string { return tea.Prettify(s) } func (s DescribeSpotPriceHistoryResponse) GoString() string { return s.String() } func (s *DescribeSpotPriceHistoryResponse) SetHeaders(v map[string]*string) *DescribeSpotPriceHistoryResponse { s.Headers = v return s } func (s *DescribeSpotPriceHistoryResponse) SetStatusCode(v int32) *DescribeSpotPriceHistoryResponse { s.StatusCode = &v return s } func (s *DescribeSpotPriceHistoryResponse) SetBody(v *DescribeSpotPriceHistoryResponseBody) *DescribeSpotPriceHistoryResponse { s.Body = v return s } type DescribeStorageCapacityUnitsRequest struct { // The allocation type. Valid values: // // * Normal: queries SCUs that belong to the current Alibaba Cloud account. // * Shared: queries SCUs shared between the Alibaba Cloud account and RAM users. // // Default value: Normal. AllocationType *string `json:"AllocationType,omitempty" xml:"AllocationType,omitempty"` // The capacity of the SCU. Unit: GiB. Valid values: 20, 40, 100, 200, 500, 1024, 2048, 5120, 10240, 20480, and 51200. Capacity *int32 `json:"Capacity,omitempty" xml:"Capacity,omitempty"` // The name of the SCU. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). Name *string `json:"Name,omitempty" xml:"Name,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the SCU. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The state of SCUs. You can specify 1 to 4 types of state. Valid values: // // * Creating: The SCUs are being created. // * Active: The SCUs are in effect. // * Expired: The SCUs have expired. // * Pending: The SCUs have not taken effect. Status []*string `json:"Status,omitempty" xml:"Status,omitempty" type:"Repeated"` // One or multiple SCU IDs. You can specify 1 to 100 SCU IDs. StorageCapacityUnitId []*string `json:"StorageCapacityUnitId,omitempty" xml:"StorageCapacityUnitId,omitempty" type:"Repeated"` // The tags of the SCUs. Tag []*DescribeStorageCapacityUnitsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeStorageCapacityUnitsRequest) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsRequest) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsRequest) SetAllocationType(v string) *DescribeStorageCapacityUnitsRequest { s.AllocationType = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetCapacity(v int32) *DescribeStorageCapacityUnitsRequest { s.Capacity = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetName(v string) *DescribeStorageCapacityUnitsRequest { s.Name = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetOwnerAccount(v string) *DescribeStorageCapacityUnitsRequest { s.OwnerAccount = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetOwnerId(v int64) *DescribeStorageCapacityUnitsRequest { s.OwnerId = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetPageNumber(v int32) *DescribeStorageCapacityUnitsRequest { s.PageNumber = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetPageSize(v int32) *DescribeStorageCapacityUnitsRequest { s.PageSize = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetRegionId(v string) *DescribeStorageCapacityUnitsRequest { s.RegionId = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetResourceOwnerAccount(v string) *DescribeStorageCapacityUnitsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetResourceOwnerId(v int64) *DescribeStorageCapacityUnitsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeStorageCapacityUnitsRequest) SetStatus(v []*string) *DescribeStorageCapacityUnitsRequest { s.Status = v return s } func (s *DescribeStorageCapacityUnitsRequest) SetStorageCapacityUnitId(v []*string) *DescribeStorageCapacityUnitsRequest { s.StorageCapacityUnitId = v return s } func (s *DescribeStorageCapacityUnitsRequest) SetTag(v []*DescribeStorageCapacityUnitsRequestTag) *DescribeStorageCapacityUnitsRequest { s.Tag = v return s } type DescribeStorageCapacityUnitsRequestTag struct { // The key of tag N of the SCU. N is the identifier for the tag, which you can use to set and query the tag. Valid values of N: 1 to 20. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the SCU. N is the identifier for the tag, which you can use to set and query the tag. The value of N must coincide with `Tag.N.Key`. Valid values of N: 1 to 20. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeStorageCapacityUnitsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsRequestTag) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsRequestTag) SetKey(v string) *DescribeStorageCapacityUnitsRequestTag { s.Key = &v return s } func (s *DescribeStorageCapacityUnitsRequestTag) SetValue(v string) *DescribeStorageCapacityUnitsRequestTag { s.Value = &v return s } type DescribeStorageCapacityUnitsResponseBody struct { // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details about the SCUs. StorageCapacityUnits *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnits `json:"StorageCapacityUnits,omitempty" xml:"StorageCapacityUnits,omitempty" type:"Struct"` // The total number of SCUs. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeStorageCapacityUnitsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsResponseBody) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsResponseBody) SetPageNumber(v int32) *DescribeStorageCapacityUnitsResponseBody { s.PageNumber = &v return s } func (s *DescribeStorageCapacityUnitsResponseBody) SetPageSize(v int32) *DescribeStorageCapacityUnitsResponseBody { s.PageSize = &v return s } func (s *DescribeStorageCapacityUnitsResponseBody) SetRequestId(v string) *DescribeStorageCapacityUnitsResponseBody { s.RequestId = &v return s } func (s *DescribeStorageCapacityUnitsResponseBody) SetStorageCapacityUnits(v *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnits) *DescribeStorageCapacityUnitsResponseBody { s.StorageCapacityUnits = v return s } func (s *DescribeStorageCapacityUnitsResponseBody) SetTotalCount(v int32) *DescribeStorageCapacityUnitsResponseBody { s.TotalCount = &v return s } type DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnits struct { StorageCapacityUnit []*DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit `json:"StorageCapacityUnit,omitempty" xml:"StorageCapacityUnit,omitempty" type:"Repeated"` } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnits) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnits) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnits) SetStorageCapacityUnit(v []*DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnits { s.StorageCapacityUnit = v return s } type DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit struct { // Indicates the allocation state of the SCU when the AllocationType parameter is set to Shared. Valid values: // // * allocated: The SCU is allocated to other accounts. // * BeAllocated: The SCU is allocated from another account. AllocationStatus *string `json:"AllocationStatus,omitempty" xml:"AllocationStatus,omitempty"` // The capacity of the SCU. Capacity *int32 `json:"Capacity,omitempty" xml:"Capacity,omitempty"` // The time when the SCU was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the SCU. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The time when the SCU expires. ExpiredTime *string `json:"ExpiredTime,omitempty" xml:"ExpiredTime,omitempty"` // The name of the SCU. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The region ID of the SCU. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The time when the SCU took effect. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The state of the SCU. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` // The ID of the SCU. StorageCapacityUnitId *string `json:"StorageCapacityUnitId,omitempty" xml:"StorageCapacityUnitId,omitempty"` // The tag key-value pairs of the SCU. Tags *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetAllocationStatus(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.AllocationStatus = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetCapacity(v int32) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.Capacity = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetCreationTime(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.CreationTime = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetDescription(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.Description = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetExpiredTime(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.ExpiredTime = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetName(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.Name = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetRegionId(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.RegionId = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetStartTime(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.StartTime = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetStatus(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.Status = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetStorageCapacityUnitId(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.StorageCapacityUnitId = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit) SetTags(v *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTags) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnit { s.Tags = v return s } type DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTags struct { Tag []*DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTags) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTags) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTags) SetTag(v []*DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTags { s.Tag = v return s } type DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag struct { // The key of tag N. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The value of tag N. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag) SetTagKey(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag { s.TagKey = &v return s } func (s *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag) SetTagValue(v string) *DescribeStorageCapacityUnitsResponseBodyStorageCapacityUnitsStorageCapacityUnitTagsTag { s.TagValue = &v return s } type DescribeStorageCapacityUnitsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeStorageCapacityUnitsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeStorageCapacityUnitsResponse) String() string { return tea.Prettify(s) } func (s DescribeStorageCapacityUnitsResponse) GoString() string { return s.String() } func (s *DescribeStorageCapacityUnitsResponse) SetHeaders(v map[string]*string) *DescribeStorageCapacityUnitsResponse { s.Headers = v return s } func (s *DescribeStorageCapacityUnitsResponse) SetStatusCode(v int32) *DescribeStorageCapacityUnitsResponse { s.StatusCode = &v return s } func (s *DescribeStorageCapacityUnitsResponse) SetBody(v *DescribeStorageCapacityUnitsResponseBody) *DescribeStorageCapacityUnitsResponse { s.Body = v return s } type DescribeStorageSetDetailsRequest struct { // The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The value of **ClientToken** can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The IDs of disks or Shared Block Storage devices. The value can be a JSON array that consists of up to 100 disk or Shared Block Storage device IDs. Separate the IDs with commas (,). DiskIds *string `json:"DiskIds,omitempty" xml:"DiskIds,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the storage set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the storage set. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` // The maximum number of partitions in the storage set. StorageSetPartitionNumber *int32 `json:"StorageSetPartitionNumber,omitempty" xml:"StorageSetPartitionNumber,omitempty"` } func (s DescribeStorageSetDetailsRequest) String() string { return tea.Prettify(s) } func (s DescribeStorageSetDetailsRequest) GoString() string { return s.String() } func (s *DescribeStorageSetDetailsRequest) SetClientToken(v string) *DescribeStorageSetDetailsRequest { s.ClientToken = &v return s } func (s *DescribeStorageSetDetailsRequest) SetDiskIds(v string) *DescribeStorageSetDetailsRequest { s.DiskIds = &v return s } func (s *DescribeStorageSetDetailsRequest) SetOwnerAccount(v string) *DescribeStorageSetDetailsRequest { s.OwnerAccount = &v return s } func (s *DescribeStorageSetDetailsRequest) SetOwnerId(v int64) *DescribeStorageSetDetailsRequest { s.OwnerId = &v return s } func (s *DescribeStorageSetDetailsRequest) SetPageNumber(v int32) *DescribeStorageSetDetailsRequest { s.PageNumber = &v return s } func (s *DescribeStorageSetDetailsRequest) SetPageSize(v int32) *DescribeStorageSetDetailsRequest { s.PageSize = &v return s } func (s *DescribeStorageSetDetailsRequest) SetRegionId(v string) *DescribeStorageSetDetailsRequest { s.RegionId = &v return s } func (s *DescribeStorageSetDetailsRequest) SetResourceOwnerAccount(v string) *DescribeStorageSetDetailsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeStorageSetDetailsRequest) SetResourceOwnerId(v int64) *DescribeStorageSetDetailsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeStorageSetDetailsRequest) SetStorageSetId(v string) *DescribeStorageSetDetailsRequest { s.StorageSetId = &v return s } func (s *DescribeStorageSetDetailsRequest) SetStorageSetPartitionNumber(v int32) *DescribeStorageSetDetailsRequest { s.StorageSetPartitionNumber = &v return s } type DescribeStorageSetDetailsResponseBody struct { // Details about the disks or Shared Block Storage devices in the storage set. Disks *DescribeStorageSetDetailsResponseBodyDisks `json:"Disks,omitempty" xml:"Disks,omitempty" type:"Struct"` // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of storage sets. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeStorageSetDetailsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeStorageSetDetailsResponseBody) GoString() string { return s.String() } func (s *DescribeStorageSetDetailsResponseBody) SetDisks(v *DescribeStorageSetDetailsResponseBodyDisks) *DescribeStorageSetDetailsResponseBody { s.Disks = v return s } func (s *DescribeStorageSetDetailsResponseBody) SetPageNumber(v int32) *DescribeStorageSetDetailsResponseBody { s.PageNumber = &v return s } func (s *DescribeStorageSetDetailsResponseBody) SetPageSize(v int32) *DescribeStorageSetDetailsResponseBody { s.PageSize = &v return s } func (s *DescribeStorageSetDetailsResponseBody) SetRequestId(v string) *DescribeStorageSetDetailsResponseBody { s.RequestId = &v return s } func (s *DescribeStorageSetDetailsResponseBody) SetTotalCount(v int32) *DescribeStorageSetDetailsResponseBody { s.TotalCount = &v return s } type DescribeStorageSetDetailsResponseBodyDisks struct { Disk []*DescribeStorageSetDetailsResponseBodyDisksDisk `json:"Disk,omitempty" xml:"Disk,omitempty" type:"Repeated"` } func (s DescribeStorageSetDetailsResponseBodyDisks) String() string { return tea.Prettify(s) } func (s DescribeStorageSetDetailsResponseBodyDisks) GoString() string { return s.String() } func (s *DescribeStorageSetDetailsResponseBodyDisks) SetDisk(v []*DescribeStorageSetDetailsResponseBodyDisksDisk) *DescribeStorageSetDetailsResponseBodyDisks { s.Disk = v return s } type DescribeStorageSetDetailsResponseBodyDisksDisk struct { // The category of the disk or Shared Block Storage device. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` // The time when the disk or Shared Block Storage device was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The ID of the disk or Shared Block Storage device. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The name of the disk or Shared Block Storage device. DiskName *string `json:"DiskName,omitempty" xml:"DiskName,omitempty"` // The region to which the disk or Shared Block Storage device belongs. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the storage set. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` // The number of partitions in the storage set. StorageSetPartitionNumber *int32 `json:"StorageSetPartitionNumber,omitempty" xml:"StorageSetPartitionNumber,omitempty"` // The zone to which the disk or Shared Block Storage device belongs. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeStorageSetDetailsResponseBodyDisksDisk) String() string { return tea.Prettify(s) } func (s DescribeStorageSetDetailsResponseBodyDisksDisk) GoString() string { return s.String() } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetCategory(v string) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.Category = &v return s } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetCreationTime(v string) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.CreationTime = &v return s } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetDiskId(v string) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.DiskId = &v return s } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetDiskName(v string) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.DiskName = &v return s } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetRegionId(v string) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.RegionId = &v return s } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetStorageSetId(v string) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.StorageSetId = &v return s } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetStorageSetPartitionNumber(v int32) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.StorageSetPartitionNumber = &v return s } func (s *DescribeStorageSetDetailsResponseBodyDisksDisk) SetZoneId(v string) *DescribeStorageSetDetailsResponseBodyDisksDisk { s.ZoneId = &v return s } type DescribeStorageSetDetailsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeStorageSetDetailsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeStorageSetDetailsResponse) String() string { return tea.Prettify(s) } func (s DescribeStorageSetDetailsResponse) GoString() string { return s.String() } func (s *DescribeStorageSetDetailsResponse) SetHeaders(v map[string]*string) *DescribeStorageSetDetailsResponse { s.Headers = v return s } func (s *DescribeStorageSetDetailsResponse) SetStatusCode(v int32) *DescribeStorageSetDetailsResponse { s.StatusCode = &v return s } func (s *DescribeStorageSetDetailsResponse) SetBody(v *DescribeStorageSetDetailsResponseBody) *DescribeStorageSetDetailsResponse { s.Body = v return s } type DescribeStorageSetsRequest struct { // The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The value of **ClientToken** can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. Pages start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the storage set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The IDs of storage sets. The value is a JSON array that consists of up to 100 storage set IDs. Separate the IDs with commas (,). StorageSetIds *string `json:"StorageSetIds,omitempty" xml:"StorageSetIds,omitempty"` // The name of the storage set. StorageSetName *string `json:"StorageSetName,omitempty" xml:"StorageSetName,omitempty"` // The zone ID of the storage set. You can call the [DescribeZones](~~25610~~) operation to query the most recent zone list. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeStorageSetsRequest) String() string { return tea.Prettify(s) } func (s DescribeStorageSetsRequest) GoString() string { return s.String() } func (s *DescribeStorageSetsRequest) SetClientToken(v string) *DescribeStorageSetsRequest { s.ClientToken = &v return s } func (s *DescribeStorageSetsRequest) SetOwnerAccount(v string) *DescribeStorageSetsRequest { s.OwnerAccount = &v return s } func (s *DescribeStorageSetsRequest) SetOwnerId(v int64) *DescribeStorageSetsRequest { s.OwnerId = &v return s } func (s *DescribeStorageSetsRequest) SetPageNumber(v int32) *DescribeStorageSetsRequest { s.PageNumber = &v return s } func (s *DescribeStorageSetsRequest) SetPageSize(v int32) *DescribeStorageSetsRequest { s.PageSize = &v return s } func (s *DescribeStorageSetsRequest) SetRegionId(v string) *DescribeStorageSetsRequest { s.RegionId = &v return s } func (s *DescribeStorageSetsRequest) SetResourceOwnerAccount(v string) *DescribeStorageSetsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeStorageSetsRequest) SetResourceOwnerId(v int64) *DescribeStorageSetsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeStorageSetsRequest) SetStorageSetIds(v string) *DescribeStorageSetsRequest { s.StorageSetIds = &v return s } func (s *DescribeStorageSetsRequest) SetStorageSetName(v string) *DescribeStorageSetsRequest { s.StorageSetName = &v return s } func (s *DescribeStorageSetsRequest) SetZoneId(v string) *DescribeStorageSetsRequest { s.ZoneId = &v return s } type DescribeStorageSetsResponseBody struct { // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details about the storage sets. The value of this parameter is an array that consists of StorageSet data. StorageSets *DescribeStorageSetsResponseBodyStorageSets `json:"StorageSets,omitempty" xml:"StorageSets,omitempty" type:"Struct"` // The total number of storage sets. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeStorageSetsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeStorageSetsResponseBody) GoString() string { return s.String() } func (s *DescribeStorageSetsResponseBody) SetPageNumber(v int32) *DescribeStorageSetsResponseBody { s.PageNumber = &v return s } func (s *DescribeStorageSetsResponseBody) SetPageSize(v int32) *DescribeStorageSetsResponseBody { s.PageSize = &v return s } func (s *DescribeStorageSetsResponseBody) SetRequestId(v string) *DescribeStorageSetsResponseBody { s.RequestId = &v return s } func (s *DescribeStorageSetsResponseBody) SetStorageSets(v *DescribeStorageSetsResponseBodyStorageSets) *DescribeStorageSetsResponseBody { s.StorageSets = v return s } func (s *DescribeStorageSetsResponseBody) SetTotalCount(v int32) *DescribeStorageSetsResponseBody { s.TotalCount = &v return s } type DescribeStorageSetsResponseBodyStorageSets struct { StorageSet []*DescribeStorageSetsResponseBodyStorageSetsStorageSet `json:"StorageSet,omitempty" xml:"StorageSet,omitempty" type:"Repeated"` } func (s DescribeStorageSetsResponseBodyStorageSets) String() string { return tea.Prettify(s) } func (s DescribeStorageSetsResponseBodyStorageSets) GoString() string { return s.String() } func (s *DescribeStorageSetsResponseBodyStorageSets) SetStorageSet(v []*DescribeStorageSetsResponseBodyStorageSetsStorageSet) *DescribeStorageSetsResponseBodyStorageSets { s.StorageSet = v return s } type DescribeStorageSetsResponseBodyStorageSetsStorageSet struct { // The time when the storage set was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The description of the storage set. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The ID of the region to which the storage set belongs. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the storage set. StorageSetId *string `json:"StorageSetId,omitempty" xml:"StorageSetId,omitempty"` // The name of the storage set. StorageSetName *string `json:"StorageSetName,omitempty" xml:"StorageSetName,omitempty"` // The maximum number of partitions supported by the storage set. StorageSetPartitionNumber *int32 `json:"StorageSetPartitionNumber,omitempty" xml:"StorageSetPartitionNumber,omitempty"` // The ID of the zone to which the storage set belongs. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeStorageSetsResponseBodyStorageSetsStorageSet) String() string { return tea.Prettify(s) } func (s DescribeStorageSetsResponseBodyStorageSetsStorageSet) GoString() string { return s.String() } func (s *DescribeStorageSetsResponseBodyStorageSetsStorageSet) SetCreationTime(v string) *DescribeStorageSetsResponseBodyStorageSetsStorageSet { s.CreationTime = &v return s } func (s *DescribeStorageSetsResponseBodyStorageSetsStorageSet) SetDescription(v string) *DescribeStorageSetsResponseBodyStorageSetsStorageSet { s.Description = &v return s } func (s *DescribeStorageSetsResponseBodyStorageSetsStorageSet) SetRegionId(v string) *DescribeStorageSetsResponseBodyStorageSetsStorageSet { s.RegionId = &v return s } func (s *DescribeStorageSetsResponseBodyStorageSetsStorageSet) SetStorageSetId(v string) *DescribeStorageSetsResponseBodyStorageSetsStorageSet { s.StorageSetId = &v return s } func (s *DescribeStorageSetsResponseBodyStorageSetsStorageSet) SetStorageSetName(v string) *DescribeStorageSetsResponseBodyStorageSetsStorageSet { s.StorageSetName = &v return s } func (s *DescribeStorageSetsResponseBodyStorageSetsStorageSet) SetStorageSetPartitionNumber(v int32) *DescribeStorageSetsResponseBodyStorageSetsStorageSet { s.StorageSetPartitionNumber = &v return s } func (s *DescribeStorageSetsResponseBodyStorageSetsStorageSet) SetZoneId(v string) *DescribeStorageSetsResponseBodyStorageSetsStorageSet { s.ZoneId = &v return s } type DescribeStorageSetsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeStorageSetsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeStorageSetsResponse) String() string { return tea.Prettify(s) } func (s DescribeStorageSetsResponse) GoString() string { return s.String() } func (s *DescribeStorageSetsResponse) SetHeaders(v map[string]*string) *DescribeStorageSetsResponse { s.Headers = v return s } func (s *DescribeStorageSetsResponse) SetStatusCode(v int32) *DescribeStorageSetsResponse { s.StatusCode = &v return s } func (s *DescribeStorageSetsResponse) SetBody(v *DescribeStorageSetsResponseBody) *DescribeStorageSetsResponse { s.Body = v return s } type DescribeTagsRequest struct { // > This parameter will be deprecated in the future. We recommend that you use other parameters to ensure future compatibility. Category *string `json:"Category,omitempty" xml:"Category,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The page number. // // Page starts from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. // // Valid values: 1 to 100. // // Default value: 50. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource to which the tags are added. If the resource is an instance, the value of this parameter is the ID of the instance. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The type of the resource to which the tags are added. Valid values: // // * instance: Elastic Compute Service (ECS) instance. // * disk: disk. // * snapshot: snapshot. // * image: image. // * securitygroup: security group. // * volume: storage volume. // * eni: elastic network interface (ENI). // * ddh: dedicated host. // * keypair: SSH key pair. // * launchtemplate: launch template. // * reservedinstance: reserved instance. // * snapshotpolicy: automatic snapshot policy. // // All values must be in lowercase letters. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` // The tags of the resource. Tag []*DescribeTagsRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeTagsRequest) String() string { return tea.Prettify(s) } func (s DescribeTagsRequest) GoString() string { return s.String() } func (s *DescribeTagsRequest) SetCategory(v string) *DescribeTagsRequest { s.Category = &v return s } func (s *DescribeTagsRequest) SetOwnerId(v int64) *DescribeTagsRequest { s.OwnerId = &v return s } func (s *DescribeTagsRequest) SetPageNumber(v int32) *DescribeTagsRequest { s.PageNumber = &v return s } func (s *DescribeTagsRequest) SetPageSize(v int32) *DescribeTagsRequest { s.PageSize = &v return s } func (s *DescribeTagsRequest) SetRegionId(v string) *DescribeTagsRequest { s.RegionId = &v return s } func (s *DescribeTagsRequest) SetResourceId(v string) *DescribeTagsRequest { s.ResourceId = &v return s } func (s *DescribeTagsRequest) SetResourceOwnerAccount(v string) *DescribeTagsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeTagsRequest) SetResourceOwnerId(v int64) *DescribeTagsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeTagsRequest) SetResourceType(v string) *DescribeTagsRequest { s.ResourceType = &v return s } func (s *DescribeTagsRequest) SetTag(v []*DescribeTagsRequestTag) *DescribeTagsRequest { s.Tag = v return s } type DescribeTagsRequestTag struct { // The key of tag N of the resource. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with acs: or aliyun. It cannot contain [http:// or https://.](http://https://。) Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the resource. 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 start with acs: or aliyun. It cannot contain [http:// or https://.](http://https://。) Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeTagsRequestTag) String() string { return tea.Prettify(s) } func (s DescribeTagsRequestTag) GoString() string { return s.String() } func (s *DescribeTagsRequestTag) SetKey(v string) *DescribeTagsRequestTag { s.Key = &v return s } func (s *DescribeTagsRequestTag) SetValue(v string) *DescribeTagsRequestTag { s.Value = &v return s } type DescribeTagsResponseBody struct { // The page number. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The tags that match all filter conditions. Tags *DescribeTagsResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"` // The total number of tags. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeTagsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeTagsResponseBody) GoString() string { return s.String() } func (s *DescribeTagsResponseBody) SetPageNumber(v int32) *DescribeTagsResponseBody { s.PageNumber = &v return s } func (s *DescribeTagsResponseBody) SetPageSize(v int32) *DescribeTagsResponseBody { s.PageSize = &v return s } func (s *DescribeTagsResponseBody) SetRequestId(v string) *DescribeTagsResponseBody { s.RequestId = &v return s } func (s *DescribeTagsResponseBody) SetTags(v *DescribeTagsResponseBodyTags) *DescribeTagsResponseBody { s.Tags = v return s } func (s *DescribeTagsResponseBody) SetTotalCount(v int32) *DescribeTagsResponseBody { s.TotalCount = &v return s } type DescribeTagsResponseBodyTags struct { Tag []*DescribeTagsResponseBodyTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s DescribeTagsResponseBodyTags) String() string { return tea.Prettify(s) } func (s DescribeTagsResponseBodyTags) GoString() string { return s.String() } func (s *DescribeTagsResponseBodyTags) SetTag(v []*DescribeTagsResponseBodyTagsTag) *DescribeTagsResponseBodyTags { s.Tag = v return s } type DescribeTagsResponseBodyTagsTag struct { // The number of resource types. ResourceTypeCount *DescribeTagsResponseBodyTagsTagResourceTypeCount `json:"ResourceTypeCount,omitempty" xml:"ResourceTypeCount,omitempty" type:"Struct"` // The tag key. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` // The tag value. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } func (s DescribeTagsResponseBodyTagsTag) String() string { return tea.Prettify(s) } func (s DescribeTagsResponseBodyTagsTag) GoString() string { return s.String() } func (s *DescribeTagsResponseBodyTagsTag) SetResourceTypeCount(v *DescribeTagsResponseBodyTagsTagResourceTypeCount) *DescribeTagsResponseBodyTagsTag { s.ResourceTypeCount = v return s } func (s *DescribeTagsResponseBodyTagsTag) SetTagKey(v string) *DescribeTagsResponseBodyTagsTag { s.TagKey = &v return s } func (s *DescribeTagsResponseBodyTagsTag) SetTagValue(v string) *DescribeTagsResponseBodyTagsTag { s.TagValue = &v return s } type DescribeTagsResponseBodyTagsTagResourceTypeCount struct { // The number of dedicated hosts to which the tag is added. Ddh *int32 `json:"Ddh,omitempty" xml:"Ddh,omitempty"` // The number of disks to which the tag is added. Disk *int32 `json:"Disk,omitempty" xml:"Disk,omitempty"` // The number of ENIs to which the tag is added. Eni *int32 `json:"Eni,omitempty" xml:"Eni,omitempty"` // The number of images to which the tag is added. Image *int32 `json:"Image,omitempty" xml:"Image,omitempty"` // The number of instances to which the tag is added. Instance *int32 `json:"Instance,omitempty" xml:"Instance,omitempty"` // The number of key pairs to which the tag is added. KeyPair *int32 `json:"KeyPair,omitempty" xml:"KeyPair,omitempty"` // The number of launch templates to which the tag is added. LaunchTemplate *int32 `json:"LaunchTemplate,omitempty" xml:"LaunchTemplate,omitempty"` // The number of reserved instances to which the tag is added. ReservedInstance *int32 `json:"ReservedInstance,omitempty" xml:"ReservedInstance,omitempty"` // The number of security groups to which the tag is added. Securitygroup *int32 `json:"Securitygroup,omitempty" xml:"Securitygroup,omitempty"` // The number of snapshots to which the tag is added. Snapshot *int32 `json:"Snapshot,omitempty" xml:"Snapshot,omitempty"` // The number of automatic snapshot policies to which the tag is added. SnapshotPolicy *int32 `json:"SnapshotPolicy,omitempty" xml:"SnapshotPolicy,omitempty"` // The number of storage volumes to which the tag is added. Volume *int32 `json:"Volume,omitempty" xml:"Volume,omitempty"` } func (s DescribeTagsResponseBodyTagsTagResourceTypeCount) String() string { return tea.Prettify(s) } func (s DescribeTagsResponseBodyTagsTagResourceTypeCount) GoString() string { return s.String() } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetDdh(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Ddh = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetDisk(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Disk = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetEni(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Eni = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetImage(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Image = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetInstance(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Instance = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetKeyPair(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.KeyPair = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetLaunchTemplate(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.LaunchTemplate = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetReservedInstance(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.ReservedInstance = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetSecuritygroup(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Securitygroup = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetSnapshot(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Snapshot = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetSnapshotPolicy(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.SnapshotPolicy = &v return s } func (s *DescribeTagsResponseBodyTagsTagResourceTypeCount) SetVolume(v int32) *DescribeTagsResponseBodyTagsTagResourceTypeCount { s.Volume = &v return s } type DescribeTagsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeTagsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeTagsResponse) String() string { return tea.Prettify(s) } func (s DescribeTagsResponse) GoString() string { return s.String() } func (s *DescribeTagsResponse) SetHeaders(v map[string]*string) *DescribeTagsResponse { s.Headers = v return s } func (s *DescribeTagsResponse) SetStatusCode(v int32) *DescribeTagsResponse { s.StatusCode = &v return s } func (s *DescribeTagsResponse) SetBody(v *DescribeTagsResponseBody) *DescribeTagsResponse { s.Body = v return s } type DescribeTaskAttributeRequest struct { OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the task. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the task. You can call the [DescribeTasks](~~25622~~) operation to query the list of task IDs. TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` } func (s DescribeTaskAttributeRequest) String() string { return tea.Prettify(s) } func (s DescribeTaskAttributeRequest) GoString() string { return s.String() } func (s *DescribeTaskAttributeRequest) SetOwnerId(v int64) *DescribeTaskAttributeRequest { s.OwnerId = &v return s } func (s *DescribeTaskAttributeRequest) SetRegionId(v string) *DescribeTaskAttributeRequest { s.RegionId = &v return s } func (s *DescribeTaskAttributeRequest) SetResourceOwnerAccount(v string) *DescribeTaskAttributeRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeTaskAttributeRequest) SetResourceOwnerId(v int64) *DescribeTaskAttributeRequest { s.ResourceOwnerId = &v return s } func (s *DescribeTaskAttributeRequest) SetTaskId(v string) *DescribeTaskAttributeRequest { s.TaskId = &v return s } type DescribeTaskAttributeResponseBody struct { // The time when the task was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The number of failed tasks. FailedCount *int32 `json:"FailedCount,omitempty" xml:"FailedCount,omitempty"` // The time when the task was complete. FinishedTime *string `json:"FinishedTime,omitempty" xml:"FinishedTime,omitempty"` // An array consisting of OperationProgress data of each subtask. OperationProgressSet *DescribeTaskAttributeResponseBodyOperationProgressSet `json:"OperationProgressSet,omitempty" xml:"OperationProgressSet,omitempty" type:"Struct"` // The region ID of the task. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The number of completed tasks. SuccessCount *int32 `json:"SuccessCount,omitempty" xml:"SuccessCount,omitempty"` // Indicates whether the task can be canceled ([CancelTask](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/canceltask)). Valid values: // // - true: The task can be canceled. // - false: The task cannot be canceled. SupportCancel *string `json:"SupportCancel,omitempty" xml:"SupportCancel,omitempty"` // The operation name of the task. TaskAction *string `json:"TaskAction,omitempty" xml:"TaskAction,omitempty"` // The ID of the task. TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` // The progress of the task. TaskProcess *string `json:"TaskProcess,omitempty" xml:"TaskProcess,omitempty"` // The status of the task. TaskStatus *string `json:"TaskStatus,omitempty" xml:"TaskStatus,omitempty"` // The total number of tasks. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeTaskAttributeResponseBody) String() string { return tea.Prettify(s) } func (s DescribeTaskAttributeResponseBody) GoString() string { return s.String() } func (s *DescribeTaskAttributeResponseBody) SetCreationTime(v string) *DescribeTaskAttributeResponseBody { s.CreationTime = &v return s } func (s *DescribeTaskAttributeResponseBody) SetFailedCount(v int32) *DescribeTaskAttributeResponseBody { s.FailedCount = &v return s } func (s *DescribeTaskAttributeResponseBody) SetFinishedTime(v string) *DescribeTaskAttributeResponseBody { s.FinishedTime = &v return s } func (s *DescribeTaskAttributeResponseBody) SetOperationProgressSet(v *DescribeTaskAttributeResponseBodyOperationProgressSet) *DescribeTaskAttributeResponseBody { s.OperationProgressSet = v return s } func (s *DescribeTaskAttributeResponseBody) SetRegionId(v string) *DescribeTaskAttributeResponseBody { s.RegionId = &v return s } func (s *DescribeTaskAttributeResponseBody) SetRequestId(v string) *DescribeTaskAttributeResponseBody { s.RequestId = &v return s } func (s *DescribeTaskAttributeResponseBody) SetSuccessCount(v int32) *DescribeTaskAttributeResponseBody { s.SuccessCount = &v return s } func (s *DescribeTaskAttributeResponseBody) SetSupportCancel(v string) *DescribeTaskAttributeResponseBody { s.SupportCancel = &v return s } func (s *DescribeTaskAttributeResponseBody) SetTaskAction(v string) *DescribeTaskAttributeResponseBody { s.TaskAction = &v return s } func (s *DescribeTaskAttributeResponseBody) SetTaskId(v string) *DescribeTaskAttributeResponseBody { s.TaskId = &v return s } func (s *DescribeTaskAttributeResponseBody) SetTaskProcess(v string) *DescribeTaskAttributeResponseBody { s.TaskProcess = &v return s } func (s *DescribeTaskAttributeResponseBody) SetTaskStatus(v string) *DescribeTaskAttributeResponseBody { s.TaskStatus = &v return s } func (s *DescribeTaskAttributeResponseBody) SetTotalCount(v int32) *DescribeTaskAttributeResponseBody { s.TotalCount = &v return s } type DescribeTaskAttributeResponseBodyOperationProgressSet struct { OperationProgress []*DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress `json:"OperationProgress,omitempty" xml:"OperationProgress,omitempty" type:"Repeated"` } func (s DescribeTaskAttributeResponseBodyOperationProgressSet) String() string { return tea.Prettify(s) } func (s DescribeTaskAttributeResponseBodyOperationProgressSet) GoString() string { return s.String() } func (s *DescribeTaskAttributeResponseBodyOperationProgressSet) SetOperationProgress(v []*DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress) *DescribeTaskAttributeResponseBodyOperationProgressSet { s.OperationProgress = v return s } type DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress struct { // The error code. ErrorCode *string `json:"ErrorCode,omitempty" xml:"ErrorCode,omitempty"` // The error message. ErrorMsg *string `json:"ErrorMsg,omitempty" xml:"ErrorMsg,omitempty"` // The status of the operation. OperationStatus *string `json:"OperationStatus,omitempty" xml:"OperationStatus,omitempty"` // An array consisting of RelatedItem data. RelatedItemSet *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSet `json:"RelatedItemSet,omitempty" xml:"RelatedItemSet,omitempty" type:"Struct"` } func (s DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress) String() string { return tea.Prettify(s) } func (s DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress) GoString() string { return s.String() } func (s *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress) SetErrorCode(v string) *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress { s.ErrorCode = &v return s } func (s *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress) SetErrorMsg(v string) *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress { s.ErrorMsg = &v return s } func (s *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress) SetOperationStatus(v string) *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress { s.OperationStatus = &v return s } func (s *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress) SetRelatedItemSet(v *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSet) *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgress { s.RelatedItemSet = v return s } type DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSet struct { RelatedItem []*DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem `json:"RelatedItem,omitempty" xml:"RelatedItem,omitempty" type:"Repeated"` } func (s DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSet) String() string { return tea.Prettify(s) } func (s DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSet) GoString() string { return s.String() } func (s *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSet) SetRelatedItem(v []*DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSet { s.RelatedItem = v return s } type DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem struct { // The name of the related item. Name *string `json:"Name,omitempty" xml:"Name,omitempty"` // The value of the related item. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) String() string { return tea.Prettify(s) } func (s DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) GoString() string { return s.String() } func (s *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) SetName(v string) *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem { s.Name = &v return s } func (s *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem) SetValue(v string) *DescribeTaskAttributeResponseBodyOperationProgressSetOperationProgressRelatedItemSetRelatedItem { s.Value = &v return s } type DescribeTaskAttributeResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeTaskAttributeResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeTaskAttributeResponse) String() string { return tea.Prettify(s) } func (s DescribeTaskAttributeResponse) GoString() string { return s.String() } func (s *DescribeTaskAttributeResponse) SetHeaders(v map[string]*string) *DescribeTaskAttributeResponse { s.Headers = v return s } func (s *DescribeTaskAttributeResponse) SetStatusCode(v int32) *DescribeTaskAttributeResponse { s.StatusCode = &v return s } func (s *DescribeTaskAttributeResponse) SetBody(v *DescribeTaskAttributeResponseBody) *DescribeTaskAttributeResponse { s.Body = v return s } type DescribeTasksRequest struct { // The end point of the time period for which to query created tasks. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The number of the page to return. // // Page start from page 1. // // Default value: 1. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries to return on each page. // // Maximum value: 100. // // Default value: 10. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the task. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of resource N that is associated with the task. Valid values of N: 1 to 100. // // * If TaskAction is set to ImportImage or ExportImage, set the resource ID to an image ID. // * If TaskAction is set to RedeployInstance, set the resource ID to an Elastic Compute Service (ECS) instance ID. // * If TaskAction is set to ModifyDiskSpec, set the resource ID to a disk ID. ResourceIds []*string `json:"ResourceIds,omitempty" xml:"ResourceIds,omitempty" type:"Repeated"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The start point of the time period for which to query created tasks. The time follows the [ISO 8601](~~25696~~) standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The name of the operation that generates the task. Valid values: // // * ImportImage // * ExportImage // * RedeployInstance // * ModifyDiskSpec TaskAction *string `json:"TaskAction,omitempty" xml:"TaskAction,omitempty"` // The ID of the task. You can specify up to 100 task IDs at a time. Separate the task IDs with commas (,). TaskIds *string `json:"TaskIds,omitempty" xml:"TaskIds,omitempty"` // The state of the task. Valid values: // // * Finished // * Processing // * Failed // // This parameter is empty by default. // // > The system only retrieves tasks in the Finished, Processing, and Failed states and ignores other values. TaskStatus *string `json:"TaskStatus,omitempty" xml:"TaskStatus,omitempty"` } func (s DescribeTasksRequest) String() string { return tea.Prettify(s) } func (s DescribeTasksRequest) GoString() string { return s.String() } func (s *DescribeTasksRequest) SetEndTime(v string) *DescribeTasksRequest { s.EndTime = &v return s } func (s *DescribeTasksRequest) SetOwnerAccount(v string) *DescribeTasksRequest { s.OwnerAccount = &v return s } func (s *DescribeTasksRequest) SetOwnerId(v int64) *DescribeTasksRequest { s.OwnerId = &v return s } func (s *DescribeTasksRequest) SetPageNumber(v int32) *DescribeTasksRequest { s.PageNumber = &v return s } func (s *DescribeTasksRequest) SetPageSize(v int32) *DescribeTasksRequest { s.PageSize = &v return s } func (s *DescribeTasksRequest) SetRegionId(v string) *DescribeTasksRequest { s.RegionId = &v return s } func (s *DescribeTasksRequest) SetResourceIds(v []*string) *DescribeTasksRequest { s.ResourceIds = v return s } func (s *DescribeTasksRequest) SetResourceOwnerAccount(v string) *DescribeTasksRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeTasksRequest) SetResourceOwnerId(v int64) *DescribeTasksRequest { s.ResourceOwnerId = &v return s } func (s *DescribeTasksRequest) SetStartTime(v string) *DescribeTasksRequest { s.StartTime = &v return s } func (s *DescribeTasksRequest) SetTaskAction(v string) *DescribeTasksRequest { s.TaskAction = &v return s } func (s *DescribeTasksRequest) SetTaskIds(v string) *DescribeTasksRequest { s.TaskIds = &v return s } func (s *DescribeTasksRequest) SetTaskStatus(v string) *DescribeTasksRequest { s.TaskStatus = &v return s } type DescribeTasksResponseBody struct { // The page number of the returned page. PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` // The number of entries returned per page. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` // The region ID of the task. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details about the tasks. TaskSet *DescribeTasksResponseBodyTaskSet `json:"TaskSet,omitempty" xml:"TaskSet,omitempty" type:"Struct"` // The total number of entries returned. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DescribeTasksResponseBody) String() string { return tea.Prettify(s) } func (s DescribeTasksResponseBody) GoString() string { return s.String() } func (s *DescribeTasksResponseBody) SetPageNumber(v int32) *DescribeTasksResponseBody { s.PageNumber = &v return s } func (s *DescribeTasksResponseBody) SetPageSize(v int32) *DescribeTasksResponseBody { s.PageSize = &v return s } func (s *DescribeTasksResponseBody) SetRegionId(v string) *DescribeTasksResponseBody { s.RegionId = &v return s } func (s *DescribeTasksResponseBody) SetRequestId(v string) *DescribeTasksResponseBody { s.RequestId = &v return s } func (s *DescribeTasksResponseBody) SetTaskSet(v *DescribeTasksResponseBodyTaskSet) *DescribeTasksResponseBody { s.TaskSet = v return s } func (s *DescribeTasksResponseBody) SetTotalCount(v int32) *DescribeTasksResponseBody { s.TotalCount = &v return s } type DescribeTasksResponseBodyTaskSet struct { Task []*DescribeTasksResponseBodyTaskSetTask `json:"Task,omitempty" xml:"Task,omitempty" type:"Repeated"` } func (s DescribeTasksResponseBodyTaskSet) String() string { return tea.Prettify(s) } func (s DescribeTasksResponseBodyTaskSet) GoString() string { return s.String() } func (s *DescribeTasksResponseBodyTaskSet) SetTask(v []*DescribeTasksResponseBodyTaskSetTask) *DescribeTasksResponseBodyTaskSet { s.Task = v return s } type DescribeTasksResponseBodyTaskSetTask struct { // The time when the task was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The time when the task was completed. FinishedTime *string `json:"FinishedTime,omitempty" xml:"FinishedTime,omitempty"` // The ID of the resource. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` // Indicates whether the task can be canceled. SupportCancel *string `json:"SupportCancel,omitempty" xml:"SupportCancel,omitempty"` // The name of the task. TaskAction *string `json:"TaskAction,omitempty" xml:"TaskAction,omitempty"` // The ID of the task. TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` // The state of the task. TaskStatus *string `json:"TaskStatus,omitempty" xml:"TaskStatus,omitempty"` } func (s DescribeTasksResponseBodyTaskSetTask) String() string { return tea.Prettify(s) } func (s DescribeTasksResponseBodyTaskSetTask) GoString() string { return s.String() } func (s *DescribeTasksResponseBodyTaskSetTask) SetCreationTime(v string) *DescribeTasksResponseBodyTaskSetTask { s.CreationTime = &v return s } func (s *DescribeTasksResponseBodyTaskSetTask) SetFinishedTime(v string) *DescribeTasksResponseBodyTaskSetTask { s.FinishedTime = &v return s } func (s *DescribeTasksResponseBodyTaskSetTask) SetResourceId(v string) *DescribeTasksResponseBodyTaskSetTask { s.ResourceId = &v return s } func (s *DescribeTasksResponseBodyTaskSetTask) SetSupportCancel(v string) *DescribeTasksResponseBodyTaskSetTask { s.SupportCancel = &v return s } func (s *DescribeTasksResponseBodyTaskSetTask) SetTaskAction(v string) *DescribeTasksResponseBodyTaskSetTask { s.TaskAction = &v return s } func (s *DescribeTasksResponseBodyTaskSetTask) SetTaskId(v string) *DescribeTasksResponseBodyTaskSetTask { s.TaskId = &v return s } func (s *DescribeTasksResponseBodyTaskSetTask) SetTaskStatus(v string) *DescribeTasksResponseBodyTaskSetTask { s.TaskStatus = &v return s } type DescribeTasksResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeTasksResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeTasksResponse) String() string { return tea.Prettify(s) } func (s DescribeTasksResponse) GoString() string { return s.String() } func (s *DescribeTasksResponse) SetHeaders(v map[string]*string) *DescribeTasksResponse { s.Headers = v return s } func (s *DescribeTasksResponse) SetStatusCode(v int32) *DescribeTasksResponse { s.StatusCode = &v return s } func (s *DescribeTasksResponse) SetBody(v *DescribeTasksResponseBody) *DescribeTasksResponse { s.Body = v return s } type DescribeTerminalSessionsRequest struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The maximum number of entries per page. // // Valid values: 1 to 100. // // Default value: 10. MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` // The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The session ID. SessionId *string `json:"SessionId,omitempty" xml:"SessionId,omitempty"` } func (s DescribeTerminalSessionsRequest) String() string { return tea.Prettify(s) } func (s DescribeTerminalSessionsRequest) GoString() string { return s.String() } func (s *DescribeTerminalSessionsRequest) SetInstanceId(v string) *DescribeTerminalSessionsRequest { s.InstanceId = &v return s } func (s *DescribeTerminalSessionsRequest) SetMaxResults(v int32) *DescribeTerminalSessionsRequest { s.MaxResults = &v return s } func (s *DescribeTerminalSessionsRequest) SetNextToken(v string) *DescribeTerminalSessionsRequest { s.NextToken = &v return s } func (s *DescribeTerminalSessionsRequest) SetOwnerAccount(v string) *DescribeTerminalSessionsRequest { s.OwnerAccount = &v return s } func (s *DescribeTerminalSessionsRequest) SetOwnerId(v int64) *DescribeTerminalSessionsRequest { s.OwnerId = &v return s } func (s *DescribeTerminalSessionsRequest) SetRegionId(v string) *DescribeTerminalSessionsRequest { s.RegionId = &v return s } func (s *DescribeTerminalSessionsRequest) SetResourceOwnerAccount(v string) *DescribeTerminalSessionsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeTerminalSessionsRequest) SetResourceOwnerId(v int64) *DescribeTerminalSessionsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeTerminalSessionsRequest) SetSessionId(v string) *DescribeTerminalSessionsRequest { s.SessionId = &v return s } type DescribeTerminalSessionsResponseBody struct { // A pagination token. It can be used in the next request to retrieve a new page of results. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The information of the sessions. Sessions *DescribeTerminalSessionsResponseBodySessions `json:"Sessions,omitempty" xml:"Sessions,omitempty" type:"Struct"` } func (s DescribeTerminalSessionsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeTerminalSessionsResponseBody) GoString() string { return s.String() } func (s *DescribeTerminalSessionsResponseBody) SetNextToken(v string) *DescribeTerminalSessionsResponseBody { s.NextToken = &v return s } func (s *DescribeTerminalSessionsResponseBody) SetRequestId(v string) *DescribeTerminalSessionsResponseBody { s.RequestId = &v return s } func (s *DescribeTerminalSessionsResponseBody) SetSessions(v *DescribeTerminalSessionsResponseBodySessions) *DescribeTerminalSessionsResponseBody { s.Sessions = v return s } type DescribeTerminalSessionsResponseBodySessions struct { Session []*DescribeTerminalSessionsResponseBodySessionsSession `json:"Session,omitempty" xml:"Session,omitempty" type:"Repeated"` } func (s DescribeTerminalSessionsResponseBodySessions) String() string { return tea.Prettify(s) } func (s DescribeTerminalSessionsResponseBodySessions) GoString() string { return s.String() } func (s *DescribeTerminalSessionsResponseBodySessions) SetSession(v []*DescribeTerminalSessionsResponseBodySessionsSession) *DescribeTerminalSessionsResponseBodySessions { s.Session = v return s } type DescribeTerminalSessionsResponseBodySessionsSession struct { // The IP address of the client used to establish connections. ClientIP *string `json:"ClientIP,omitempty" xml:"ClientIP,omitempty"` // The information of the connections. Connections *DescribeTerminalSessionsResponseBodySessionsSessionConnections `json:"Connections,omitempty" xml:"Connections,omitempty" type:"Struct"` // The time when the session was created. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The principal type. Valid values: // // * Account: an Alibaba Cloud account // * RAMUser: a RAM user // * AssumedRoleUser: a RAM role IdentityType *string `json:"IdentityType,omitempty" xml:"IdentityType,omitempty"` // The port number of the instance, which is used for data forwarding. If no port number was specified for data forwarding when the session was created, this parameter is empty. PortNumber *int32 `json:"PortNumber,omitempty" xml:"PortNumber,omitempty"` // The ID of the principal. Valid values based on the `IdentityType` value: // // * If the requester uses an Alibaba Cloud account to call the operation, the ID of the Alibaba Cloud account is returned. // * If the requester uses a Resource Access Management (RAM) user to call the operation, the ID of the RAM user is returned. // * If the requester uses a RAM role to call the operation, the ID of the principal that actually calls the operation is returned. PrincipalId *string `json:"PrincipalId,omitempty" xml:"PrincipalId,omitempty"` // The session ID. SessionId *string `json:"SessionId,omitempty" xml:"SessionId,omitempty"` // The address of the service that was accessed in a virtual private cloud (VPC) from the instance. TargetServer *string `json:"TargetServer,omitempty" xml:"TargetServer,omitempty"` // The username used to establish connections. Username *string `json:"Username,omitempty" xml:"Username,omitempty"` } func (s DescribeTerminalSessionsResponseBodySessionsSession) String() string { return tea.Prettify(s) } func (s DescribeTerminalSessionsResponseBodySessionsSession) GoString() string { return s.String() } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetClientIP(v string) *DescribeTerminalSessionsResponseBodySessionsSession { s.ClientIP = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetConnections(v *DescribeTerminalSessionsResponseBodySessionsSessionConnections) *DescribeTerminalSessionsResponseBodySessionsSession { s.Connections = v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetCreationTime(v string) *DescribeTerminalSessionsResponseBodySessionsSession { s.CreationTime = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetIdentityType(v string) *DescribeTerminalSessionsResponseBodySessionsSession { s.IdentityType = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetPortNumber(v int32) *DescribeTerminalSessionsResponseBodySessionsSession { s.PortNumber = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetPrincipalId(v string) *DescribeTerminalSessionsResponseBodySessionsSession { s.PrincipalId = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetSessionId(v string) *DescribeTerminalSessionsResponseBodySessionsSession { s.SessionId = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetTargetServer(v string) *DescribeTerminalSessionsResponseBodySessionsSession { s.TargetServer = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSession) SetUsername(v string) *DescribeTerminalSessionsResponseBodySessionsSession { s.Username = &v return s } type DescribeTerminalSessionsResponseBodySessionsSessionConnections struct { Connection []*DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection `json:"Connection,omitempty" xml:"Connection,omitempty" type:"Repeated"` } func (s DescribeTerminalSessionsResponseBodySessionsSessionConnections) String() string { return tea.Prettify(s) } func (s DescribeTerminalSessionsResponseBodySessionsSessionConnections) GoString() string { return s.String() } func (s *DescribeTerminalSessionsResponseBodySessionsSessionConnections) SetConnection(v []*DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) *DescribeTerminalSessionsResponseBodySessionsSessionConnections { s.Connection = v return s } type DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection struct { // The reason why the connection was closed. This parameter is returned only when the `Status` value is `Disconnected`, `Terminated`, or `Failed`. Valid values: // // * InstanceNotExists: The specified instance did not exist or was released. // * InstanceNotRunning: The specified instance was not running. // * DeliveryTimeout: The connection timed out. // * AgentNeedUpgrade: Cloud Assistant Agent required an upgrade. // * AgentNotOnline: Cloud Assistant Agent was not connected to the Cloud Assistant server. // * MessageFormatInvalid: The message format was invalid. // * AgentSocketClosed: The connection was closed as expected. // * ClientClosed: Session Manager Client closed the connection. ClosedReason *string `json:"ClosedReason,omitempty" xml:"ClosedReason,omitempty"` // The time when the connection was closed. EndTime *string `json:"EndTime,omitempty" xml:"EndTime,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The time when the connection started to be established. StartTime *string `json:"StartTime,omitempty" xml:"StartTime,omitempty"` // The state of the session. Valid values: // // * Connecting: The connection is being established. // * Connected: The connection is established. // * Disconnected: The connection is disconnected. // * Terminating: The session is being terminated. // * Terminated: The session is terminated. // * Failed: The connection failed. Status *string `json:"Status,omitempty" xml:"Status,omitempty"` } func (s DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) String() string { return tea.Prettify(s) } func (s DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) GoString() string { return s.String() } func (s *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) SetClosedReason(v string) *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection { s.ClosedReason = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) SetEndTime(v string) *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection { s.EndTime = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) SetInstanceId(v string) *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection { s.InstanceId = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) SetStartTime(v string) *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection { s.StartTime = &v return s } func (s *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection) SetStatus(v string) *DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection { s.Status = &v return s } type DescribeTerminalSessionsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeTerminalSessionsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeTerminalSessionsResponse) String() string { return tea.Prettify(s) } func (s DescribeTerminalSessionsResponse) GoString() string { return s.String() } func (s *DescribeTerminalSessionsResponse) SetHeaders(v map[string]*string) *DescribeTerminalSessionsResponse { s.Headers = v return s } func (s *DescribeTerminalSessionsResponse) SetStatusCode(v int32) *DescribeTerminalSessionsResponse { s.StatusCode = &v return s } func (s *DescribeTerminalSessionsResponse) SetBody(v *DescribeTerminalSessionsResponseBody) *DescribeTerminalSessionsResponse { s.Body = v return s } type DescribeUserBusinessBehaviorRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` StatusKey *string `json:"statusKey,omitempty" xml:"statusKey,omitempty"` } func (s DescribeUserBusinessBehaviorRequest) String() string { return tea.Prettify(s) } func (s DescribeUserBusinessBehaviorRequest) GoString() string { return s.String() } func (s *DescribeUserBusinessBehaviorRequest) SetOwnerAccount(v string) *DescribeUserBusinessBehaviorRequest { s.OwnerAccount = &v return s } func (s *DescribeUserBusinessBehaviorRequest) SetOwnerId(v int64) *DescribeUserBusinessBehaviorRequest { s.OwnerId = &v return s } func (s *DescribeUserBusinessBehaviorRequest) SetRegionId(v string) *DescribeUserBusinessBehaviorRequest { s.RegionId = &v return s } func (s *DescribeUserBusinessBehaviorRequest) SetResourceOwnerAccount(v string) *DescribeUserBusinessBehaviorRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeUserBusinessBehaviorRequest) SetResourceOwnerId(v int64) *DescribeUserBusinessBehaviorRequest { s.ResourceOwnerId = &v return s } func (s *DescribeUserBusinessBehaviorRequest) SetStatusKey(v string) *DescribeUserBusinessBehaviorRequest { s.StatusKey = &v return s } type DescribeUserBusinessBehaviorResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` StatusValue *string `json:"StatusValue,omitempty" xml:"StatusValue,omitempty"` } func (s DescribeUserBusinessBehaviorResponseBody) String() string { return tea.Prettify(s) } func (s DescribeUserBusinessBehaviorResponseBody) GoString() string { return s.String() } func (s *DescribeUserBusinessBehaviorResponseBody) SetRequestId(v string) *DescribeUserBusinessBehaviorResponseBody { s.RequestId = &v return s } func (s *DescribeUserBusinessBehaviorResponseBody) SetStatusValue(v string) *DescribeUserBusinessBehaviorResponseBody { s.StatusValue = &v return s } type DescribeUserBusinessBehaviorResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeUserBusinessBehaviorResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeUserBusinessBehaviorResponse) String() string { return tea.Prettify(s) } func (s DescribeUserBusinessBehaviorResponse) GoString() string { return s.String() } func (s *DescribeUserBusinessBehaviorResponse) SetHeaders(v map[string]*string) *DescribeUserBusinessBehaviorResponse { s.Headers = v return s } func (s *DescribeUserBusinessBehaviorResponse) SetStatusCode(v int32) *DescribeUserBusinessBehaviorResponse { s.StatusCode = &v return s } func (s *DescribeUserBusinessBehaviorResponse) SetBody(v *DescribeUserBusinessBehaviorResponseBody) *DescribeUserBusinessBehaviorResponse { s.Body = v return s } type DescribeUserDataRequest struct { // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeUserDataRequest) String() string { return tea.Prettify(s) } func (s DescribeUserDataRequest) GoString() string { return s.String() } func (s *DescribeUserDataRequest) SetInstanceId(v string) *DescribeUserDataRequest { s.InstanceId = &v return s } func (s *DescribeUserDataRequest) SetOwnerId(v int64) *DescribeUserDataRequest { s.OwnerId = &v return s } func (s *DescribeUserDataRequest) SetRegionId(v string) *DescribeUserDataRequest { s.RegionId = &v return s } func (s *DescribeUserDataRequest) SetResourceOwnerAccount(v string) *DescribeUserDataRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeUserDataRequest) SetResourceOwnerId(v int64) *DescribeUserDataRequest { s.ResourceOwnerId = &v return s } type DescribeUserDataResponseBody struct { // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The region ID of the instance. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The user data of the instance. UserData *string `json:"UserData,omitempty" xml:"UserData,omitempty"` } func (s DescribeUserDataResponseBody) String() string { return tea.Prettify(s) } func (s DescribeUserDataResponseBody) GoString() string { return s.String() } func (s *DescribeUserDataResponseBody) SetInstanceId(v string) *DescribeUserDataResponseBody { s.InstanceId = &v return s } func (s *DescribeUserDataResponseBody) SetRegionId(v string) *DescribeUserDataResponseBody { s.RegionId = &v return s } func (s *DescribeUserDataResponseBody) SetRequestId(v string) *DescribeUserDataResponseBody { s.RequestId = &v return s } func (s *DescribeUserDataResponseBody) SetUserData(v string) *DescribeUserDataResponseBody { s.UserData = &v return s } type DescribeUserDataResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeUserDataResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeUserDataResponse) String() string { return tea.Prettify(s) } func (s DescribeUserDataResponse) GoString() string { return s.String() } func (s *DescribeUserDataResponse) SetHeaders(v map[string]*string) *DescribeUserDataResponse { s.Headers = v return s } func (s *DescribeUserDataResponse) SetStatusCode(v int32) *DescribeUserDataResponse { s.StatusCode = &v return s } func (s *DescribeUserDataResponse) SetBody(v *DescribeUserDataResponseBody) *DescribeUserDataResponse { s.Body = v return s } type DescribeVRoutersRequest struct { OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VRouterId *string `json:"VRouterId,omitempty" xml:"VRouterId,omitempty"` } func (s DescribeVRoutersRequest) String() string { return tea.Prettify(s) } func (s DescribeVRoutersRequest) GoString() string { return s.String() } func (s *DescribeVRoutersRequest) SetOwnerAccount(v string) *DescribeVRoutersRequest { s.OwnerAccount = &v return s } func (s *DescribeVRoutersRequest) SetOwnerId(v int64) *DescribeVRoutersRequest { s.OwnerId = &v return s } func (s *DescribeVRoutersRequest) SetPageNumber(v int32) *DescribeVRoutersRequest { s.PageNumber = &v return s } func (s *DescribeVRoutersRequest) SetPageSize(v int32) *DescribeVRoutersRequest { s.PageSize = &v return s } func (s *DescribeVRoutersRequest) SetRegionId(v string) *DescribeVRoutersRequest { s.RegionId = &v return s } func (s *DescribeVRoutersRequest) SetResourceOwnerAccount(v string) *DescribeVRoutersRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeVRoutersRequest) SetResourceOwnerId(v int64) *DescribeVRoutersRequest { s.ResourceOwnerId = &v return s } func (s *DescribeVRoutersRequest) SetVRouterId(v string) *DescribeVRoutersRequest { s.VRouterId = &v return s } type DescribeVRoutersResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` VRouters *DescribeVRoutersResponseBodyVRouters `json:"VRouters,omitempty" xml:"VRouters,omitempty" type:"Struct"` } func (s DescribeVRoutersResponseBody) String() string { return tea.Prettify(s) } func (s DescribeVRoutersResponseBody) GoString() string { return s.String() } func (s *DescribeVRoutersResponseBody) SetPageNumber(v int32) *DescribeVRoutersResponseBody { s.PageNumber = &v return s } func (s *DescribeVRoutersResponseBody) SetPageSize(v int32) *DescribeVRoutersResponseBody { s.PageSize = &v return s } func (s *DescribeVRoutersResponseBody) SetRequestId(v string) *DescribeVRoutersResponseBody { s.RequestId = &v return s } func (s *DescribeVRoutersResponseBody) SetTotalCount(v int32) *DescribeVRoutersResponseBody { s.TotalCount = &v return s } func (s *DescribeVRoutersResponseBody) SetVRouters(v *DescribeVRoutersResponseBodyVRouters) *DescribeVRoutersResponseBody { s.VRouters = v return s } type DescribeVRoutersResponseBodyVRouters struct { VRouter []*DescribeVRoutersResponseBodyVRoutersVRouter `json:"VRouter,omitempty" xml:"VRouter,omitempty" type:"Repeated"` } func (s DescribeVRoutersResponseBodyVRouters) String() string { return tea.Prettify(s) } func (s DescribeVRoutersResponseBodyVRouters) GoString() string { return s.String() } func (s *DescribeVRoutersResponseBodyVRouters) SetVRouter(v []*DescribeVRoutersResponseBodyVRoutersVRouter) *DescribeVRoutersResponseBodyVRouters { s.VRouter = v return s } type DescribeVRoutersResponseBodyVRoutersVRouter struct { CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` RouteTableIds *DescribeVRoutersResponseBodyVRoutersVRouterRouteTableIds `json:"RouteTableIds,omitempty" xml:"RouteTableIds,omitempty" type:"Struct"` VRouterId *string `json:"VRouterId,omitempty" xml:"VRouterId,omitempty"` VRouterName *string `json:"VRouterName,omitempty" xml:"VRouterName,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeVRoutersResponseBodyVRoutersVRouter) String() string { return tea.Prettify(s) } func (s DescribeVRoutersResponseBodyVRoutersVRouter) GoString() string { return s.String() } func (s *DescribeVRoutersResponseBodyVRoutersVRouter) SetCreationTime(v string) *DescribeVRoutersResponseBodyVRoutersVRouter { s.CreationTime = &v return s } func (s *DescribeVRoutersResponseBodyVRoutersVRouter) SetDescription(v string) *DescribeVRoutersResponseBodyVRoutersVRouter { s.Description = &v return s } func (s *DescribeVRoutersResponseBodyVRoutersVRouter) SetRegionId(v string) *DescribeVRoutersResponseBodyVRoutersVRouter { s.RegionId = &v return s } func (s *DescribeVRoutersResponseBodyVRoutersVRouter) SetRouteTableIds(v *DescribeVRoutersResponseBodyVRoutersVRouterRouteTableIds) *DescribeVRoutersResponseBodyVRoutersVRouter { s.RouteTableIds = v return s } func (s *DescribeVRoutersResponseBodyVRoutersVRouter) SetVRouterId(v string) *DescribeVRoutersResponseBodyVRoutersVRouter { s.VRouterId = &v return s } func (s *DescribeVRoutersResponseBodyVRoutersVRouter) SetVRouterName(v string) *DescribeVRoutersResponseBodyVRoutersVRouter { s.VRouterName = &v return s } func (s *DescribeVRoutersResponseBodyVRoutersVRouter) SetVpcId(v string) *DescribeVRoutersResponseBodyVRoutersVRouter { s.VpcId = &v return s } type DescribeVRoutersResponseBodyVRoutersVRouterRouteTableIds struct { RouteTableId []*string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty" type:"Repeated"` } func (s DescribeVRoutersResponseBodyVRoutersVRouterRouteTableIds) String() string { return tea.Prettify(s) } func (s DescribeVRoutersResponseBodyVRoutersVRouterRouteTableIds) GoString() string { return s.String() } func (s *DescribeVRoutersResponseBodyVRoutersVRouterRouteTableIds) SetRouteTableId(v []*string) *DescribeVRoutersResponseBodyVRoutersVRouterRouteTableIds { s.RouteTableId = v return s } type DescribeVRoutersResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeVRoutersResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeVRoutersResponse) String() string { return tea.Prettify(s) } func (s DescribeVRoutersResponse) GoString() string { return s.String() } func (s *DescribeVRoutersResponse) SetHeaders(v map[string]*string) *DescribeVRoutersResponse { s.Headers = v return s } func (s *DescribeVRoutersResponse) SetStatusCode(v int32) *DescribeVRoutersResponse { s.StatusCode = &v return s } func (s *DescribeVRoutersResponse) SetBody(v *DescribeVRoutersResponseBody) *DescribeVRoutersResponse { s.Body = v return s } type DescribeVSwitchesRequest struct { IsDefault *bool `json:"IsDefault,omitempty" xml:"IsDefault,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeVSwitchesRequest) String() string { return tea.Prettify(s) } func (s DescribeVSwitchesRequest) GoString() string { return s.String() } func (s *DescribeVSwitchesRequest) SetIsDefault(v bool) *DescribeVSwitchesRequest { s.IsDefault = &v return s } func (s *DescribeVSwitchesRequest) SetOwnerAccount(v string) *DescribeVSwitchesRequest { s.OwnerAccount = &v return s } func (s *DescribeVSwitchesRequest) SetOwnerId(v int64) *DescribeVSwitchesRequest { s.OwnerId = &v return s } func (s *DescribeVSwitchesRequest) SetPageNumber(v int32) *DescribeVSwitchesRequest { s.PageNumber = &v return s } func (s *DescribeVSwitchesRequest) SetPageSize(v int32) *DescribeVSwitchesRequest { s.PageSize = &v return s } func (s *DescribeVSwitchesRequest) SetRegionId(v string) *DescribeVSwitchesRequest { s.RegionId = &v return s } func (s *DescribeVSwitchesRequest) SetResourceOwnerAccount(v string) *DescribeVSwitchesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeVSwitchesRequest) SetResourceOwnerId(v int64) *DescribeVSwitchesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeVSwitchesRequest) SetVSwitchId(v string) *DescribeVSwitchesRequest { s.VSwitchId = &v return s } func (s *DescribeVSwitchesRequest) SetVpcId(v string) *DescribeVSwitchesRequest { s.VpcId = &v return s } func (s *DescribeVSwitchesRequest) SetZoneId(v string) *DescribeVSwitchesRequest { s.ZoneId = &v return s } type DescribeVSwitchesResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` VSwitches *DescribeVSwitchesResponseBodyVSwitches `json:"VSwitches,omitempty" xml:"VSwitches,omitempty" type:"Struct"` } func (s DescribeVSwitchesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeVSwitchesResponseBody) GoString() string { return s.String() } func (s *DescribeVSwitchesResponseBody) SetPageNumber(v int32) *DescribeVSwitchesResponseBody { s.PageNumber = &v return s } func (s *DescribeVSwitchesResponseBody) SetPageSize(v int32) *DescribeVSwitchesResponseBody { s.PageSize = &v return s } func (s *DescribeVSwitchesResponseBody) SetRequestId(v string) *DescribeVSwitchesResponseBody { s.RequestId = &v return s } func (s *DescribeVSwitchesResponseBody) SetTotalCount(v int32) *DescribeVSwitchesResponseBody { s.TotalCount = &v return s } func (s *DescribeVSwitchesResponseBody) SetVSwitches(v *DescribeVSwitchesResponseBodyVSwitches) *DescribeVSwitchesResponseBody { s.VSwitches = v return s } type DescribeVSwitchesResponseBodyVSwitches struct { VSwitch []*DescribeVSwitchesResponseBodyVSwitchesVSwitch `json:"VSwitch,omitempty" xml:"VSwitch,omitempty" type:"Repeated"` } func (s DescribeVSwitchesResponseBodyVSwitches) String() string { return tea.Prettify(s) } func (s DescribeVSwitchesResponseBodyVSwitches) GoString() string { return s.String() } func (s *DescribeVSwitchesResponseBodyVSwitches) SetVSwitch(v []*DescribeVSwitchesResponseBodyVSwitchesVSwitch) *DescribeVSwitchesResponseBodyVSwitches { s.VSwitch = v return s } type DescribeVSwitchesResponseBodyVSwitchesVSwitch struct { AvailableIpAddressCount *int64 `json:"AvailableIpAddressCount,omitempty" xml:"AvailableIpAddressCount,omitempty"` CidrBlock *string `json:"CidrBlock,omitempty" xml:"CidrBlock,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` IsDefault *bool `json:"IsDefault,omitempty" xml:"IsDefault,omitempty"` ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` VSwitchName *string `json:"VSwitchName,omitempty" xml:"VSwitchName,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` } func (s DescribeVSwitchesResponseBodyVSwitchesVSwitch) String() string { return tea.Prettify(s) } func (s DescribeVSwitchesResponseBodyVSwitchesVSwitch) GoString() string { return s.String() } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetAvailableIpAddressCount(v int64) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.AvailableIpAddressCount = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetCidrBlock(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.CidrBlock = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetCreationTime(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.CreationTime = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetDescription(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.Description = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetIsDefault(v bool) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.IsDefault = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetResourceGroupId(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.ResourceGroupId = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetStatus(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.Status = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetVSwitchId(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.VSwitchId = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetVSwitchName(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.VSwitchName = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetVpcId(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.VpcId = &v return s } func (s *DescribeVSwitchesResponseBodyVSwitchesVSwitch) SetZoneId(v string) *DescribeVSwitchesResponseBodyVSwitchesVSwitch { s.ZoneId = &v return s } type DescribeVSwitchesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeVSwitchesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeVSwitchesResponse) String() string { return tea.Prettify(s) } func (s DescribeVSwitchesResponse) GoString() string { return s.String() } func (s *DescribeVSwitchesResponse) SetHeaders(v map[string]*string) *DescribeVSwitchesResponse { s.Headers = v return s } func (s *DescribeVSwitchesResponse) SetStatusCode(v int32) *DescribeVSwitchesResponse { s.StatusCode = &v return s } func (s *DescribeVSwitchesResponse) SetBody(v *DescribeVSwitchesResponseBody) *DescribeVSwitchesResponse { s.Body = v return s } type DescribeVirtualBorderRoutersRequest struct { Filter []*DescribeVirtualBorderRoutersRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeVirtualBorderRoutersRequest) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersRequest) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersRequest) SetFilter(v []*DescribeVirtualBorderRoutersRequestFilter) *DescribeVirtualBorderRoutersRequest { s.Filter = v return s } func (s *DescribeVirtualBorderRoutersRequest) SetOwnerId(v int64) *DescribeVirtualBorderRoutersRequest { s.OwnerId = &v return s } func (s *DescribeVirtualBorderRoutersRequest) SetPageNumber(v int32) *DescribeVirtualBorderRoutersRequest { s.PageNumber = &v return s } func (s *DescribeVirtualBorderRoutersRequest) SetPageSize(v int32) *DescribeVirtualBorderRoutersRequest { s.PageSize = &v return s } func (s *DescribeVirtualBorderRoutersRequest) SetRegionId(v string) *DescribeVirtualBorderRoutersRequest { s.RegionId = &v return s } func (s *DescribeVirtualBorderRoutersRequest) SetResourceOwnerAccount(v string) *DescribeVirtualBorderRoutersRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeVirtualBorderRoutersRequest) SetResourceOwnerId(v int64) *DescribeVirtualBorderRoutersRequest { s.ResourceOwnerId = &v return s } type DescribeVirtualBorderRoutersRequestFilter struct { Key *string `json:"Key,omitempty" xml:"Key,omitempty"` Value []*string `json:"Value,omitempty" xml:"Value,omitempty" type:"Repeated"` } func (s DescribeVirtualBorderRoutersRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersRequestFilter) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersRequestFilter) SetKey(v string) *DescribeVirtualBorderRoutersRequestFilter { s.Key = &v return s } func (s *DescribeVirtualBorderRoutersRequestFilter) SetValue(v []*string) *DescribeVirtualBorderRoutersRequestFilter { s.Value = v return s } type DescribeVirtualBorderRoutersResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` VirtualBorderRouterSet *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSet `json:"VirtualBorderRouterSet,omitempty" xml:"VirtualBorderRouterSet,omitempty" type:"Struct"` } func (s DescribeVirtualBorderRoutersResponseBody) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersResponseBody) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersResponseBody) SetPageNumber(v int32) *DescribeVirtualBorderRoutersResponseBody { s.PageNumber = &v return s } func (s *DescribeVirtualBorderRoutersResponseBody) SetPageSize(v int32) *DescribeVirtualBorderRoutersResponseBody { s.PageSize = &v return s } func (s *DescribeVirtualBorderRoutersResponseBody) SetRequestId(v string) *DescribeVirtualBorderRoutersResponseBody { s.RequestId = &v return s } func (s *DescribeVirtualBorderRoutersResponseBody) SetTotalCount(v int32) *DescribeVirtualBorderRoutersResponseBody { s.TotalCount = &v return s } func (s *DescribeVirtualBorderRoutersResponseBody) SetVirtualBorderRouterSet(v *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSet) *DescribeVirtualBorderRoutersResponseBody { s.VirtualBorderRouterSet = v return s } type DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSet struct { VirtualBorderRouterType []*DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType `json:"VirtualBorderRouterType,omitempty" xml:"VirtualBorderRouterType,omitempty" type:"Repeated"` } func (s DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSet) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSet) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSet) SetVirtualBorderRouterType(v []*DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSet { s.VirtualBorderRouterType = v return s } type DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType struct { AccessPointId *string `json:"AccessPointId,omitempty" xml:"AccessPointId,omitempty"` ActivationTime *string `json:"ActivationTime,omitempty" xml:"ActivationTime,omitempty"` CircuitCode *string `json:"CircuitCode,omitempty" xml:"CircuitCode,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` LocalGatewayIp *string `json:"LocalGatewayIp,omitempty" xml:"LocalGatewayIp,omitempty"` Name *string `json:"Name,omitempty" xml:"Name,omitempty"` PeerGatewayIp *string `json:"PeerGatewayIp,omitempty" xml:"PeerGatewayIp,omitempty"` PeeringSubnetMask *string `json:"PeeringSubnetMask,omitempty" xml:"PeeringSubnetMask,omitempty"` PhysicalConnectionBusinessStatus *string `json:"PhysicalConnectionBusinessStatus,omitempty" xml:"PhysicalConnectionBusinessStatus,omitempty"` PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` PhysicalConnectionOwnerUid *string `json:"PhysicalConnectionOwnerUid,omitempty" xml:"PhysicalConnectionOwnerUid,omitempty"` PhysicalConnectionStatus *string `json:"PhysicalConnectionStatus,omitempty" xml:"PhysicalConnectionStatus,omitempty"` RecoveryTime *string `json:"RecoveryTime,omitempty" xml:"RecoveryTime,omitempty"` RouteTableId *string `json:"RouteTableId,omitempty" xml:"RouteTableId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` TerminationTime *string `json:"TerminationTime,omitempty" xml:"TerminationTime,omitempty"` VbrId *string `json:"VbrId,omitempty" xml:"VbrId,omitempty"` VlanId *int32 `json:"VlanId,omitempty" xml:"VlanId,omitempty"` VlanInterfaceId *string `json:"VlanInterfaceId,omitempty" xml:"VlanInterfaceId,omitempty"` } func (s DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetAccessPointId(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.AccessPointId = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetActivationTime(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.ActivationTime = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetCircuitCode(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.CircuitCode = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetCreationTime(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.CreationTime = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetDescription(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.Description = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetLocalGatewayIp(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.LocalGatewayIp = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetName(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.Name = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetPeerGatewayIp(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.PeerGatewayIp = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetPeeringSubnetMask(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.PeeringSubnetMask = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetPhysicalConnectionBusinessStatus(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.PhysicalConnectionBusinessStatus = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetPhysicalConnectionId(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.PhysicalConnectionId = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetPhysicalConnectionOwnerUid(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.PhysicalConnectionOwnerUid = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetPhysicalConnectionStatus(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.PhysicalConnectionStatus = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetRecoveryTime(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.RecoveryTime = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetRouteTableId(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.RouteTableId = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetStatus(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.Status = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetTerminationTime(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.TerminationTime = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetVbrId(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.VbrId = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetVlanId(v int32) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.VlanId = &v return s } func (s *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType) SetVlanInterfaceId(v string) *DescribeVirtualBorderRoutersResponseBodyVirtualBorderRouterSetVirtualBorderRouterType { s.VlanInterfaceId = &v return s } type DescribeVirtualBorderRoutersResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeVirtualBorderRoutersResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeVirtualBorderRoutersResponse) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersResponse) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersResponse) SetHeaders(v map[string]*string) *DescribeVirtualBorderRoutersResponse { s.Headers = v return s } func (s *DescribeVirtualBorderRoutersResponse) SetStatusCode(v int32) *DescribeVirtualBorderRoutersResponse { s.StatusCode = &v return s } func (s *DescribeVirtualBorderRoutersResponse) SetBody(v *DescribeVirtualBorderRoutersResponseBody) *DescribeVirtualBorderRoutersResponse { s.Body = v return s } type DescribeVirtualBorderRoutersForPhysicalConnectionRequest struct { Filter []*DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter `json:"Filter,omitempty" xml:"Filter,omitempty" type:"Repeated"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DescribeVirtualBorderRoutersForPhysicalConnectionRequest) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersForPhysicalConnectionRequest) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetFilter(v []*DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.Filter = v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetOwnerId(v int64) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.OwnerId = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetPageNumber(v int32) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.PageNumber = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetPageSize(v int32) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.PageSize = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetPhysicalConnectionId(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.PhysicalConnectionId = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetRegionId(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.RegionId = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetResourceOwnerAccount(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) SetResourceOwnerId(v int64) *DescribeVirtualBorderRoutersForPhysicalConnectionRequest { s.ResourceOwnerId = &v return s } type DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter struct { Key *string `json:"Key,omitempty" xml:"Key,omitempty"` Value []*string `json:"Value,omitempty" xml:"Value,omitempty" type:"Repeated"` } func (s DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter) SetKey(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter { s.Key = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter) SetValue(v []*string) *DescribeVirtualBorderRoutersForPhysicalConnectionRequestFilter { s.Value = v return s } type DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` VirtualBorderRouterForPhysicalConnectionSet *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSet `json:"VirtualBorderRouterForPhysicalConnectionSet,omitempty" xml:"VirtualBorderRouterForPhysicalConnectionSet,omitempty" type:"Struct"` } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) SetPageNumber(v int32) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody { s.PageNumber = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) SetPageSize(v int32) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody { s.PageSize = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) SetRequestId(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody { s.RequestId = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) SetTotalCount(v int32) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody { s.TotalCount = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) SetVirtualBorderRouterForPhysicalConnectionSet(v *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSet) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody { s.VirtualBorderRouterForPhysicalConnectionSet = v return s } type DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSet struct { VirtualBorderRouterForPhysicalConnectionType []*DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType `json:"VirtualBorderRouterForPhysicalConnectionType,omitempty" xml:"VirtualBorderRouterForPhysicalConnectionType,omitempty" type:"Repeated"` } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSet) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSet) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSet) SetVirtualBorderRouterForPhysicalConnectionType(v []*DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSet { s.VirtualBorderRouterForPhysicalConnectionType = v return s } type DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType struct { ActivationTime *string `json:"ActivationTime,omitempty" xml:"ActivationTime,omitempty"` CircuitCode *string `json:"CircuitCode,omitempty" xml:"CircuitCode,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` RecoveryTime *string `json:"RecoveryTime,omitempty" xml:"RecoveryTime,omitempty"` TerminationTime *string `json:"TerminationTime,omitempty" xml:"TerminationTime,omitempty"` VbrId *string `json:"VbrId,omitempty" xml:"VbrId,omitempty"` VbrOwnerUid *int64 `json:"VbrOwnerUid,omitempty" xml:"VbrOwnerUid,omitempty"` VlanId *int32 `json:"VlanId,omitempty" xml:"VlanId,omitempty"` } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetActivationTime(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.ActivationTime = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetCircuitCode(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.CircuitCode = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetCreationTime(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.CreationTime = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetRecoveryTime(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.RecoveryTime = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetTerminationTime(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.TerminationTime = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetVbrId(v string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.VbrId = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetVbrOwnerUid(v int64) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.VbrOwnerUid = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType) SetVlanId(v int32) *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBodyVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType { s.VlanId = &v return s } type DescribeVirtualBorderRoutersForPhysicalConnectionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponse) String() string { return tea.Prettify(s) } func (s DescribeVirtualBorderRoutersForPhysicalConnectionResponse) GoString() string { return s.String() } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponse) SetHeaders(v map[string]*string) *DescribeVirtualBorderRoutersForPhysicalConnectionResponse { s.Headers = v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponse) SetStatusCode(v int32) *DescribeVirtualBorderRoutersForPhysicalConnectionResponse { s.StatusCode = &v return s } func (s *DescribeVirtualBorderRoutersForPhysicalConnectionResponse) SetBody(v *DescribeVirtualBorderRoutersForPhysicalConnectionResponseBody) *DescribeVirtualBorderRoutersForPhysicalConnectionResponse { s.Body = v return s } type DescribeVpcsRequest struct { IsDefault *bool `json:"IsDefault,omitempty" xml:"IsDefault,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DescribeVpcsRequest) String() string { return tea.Prettify(s) } func (s DescribeVpcsRequest) GoString() string { return s.String() } func (s *DescribeVpcsRequest) SetIsDefault(v bool) *DescribeVpcsRequest { s.IsDefault = &v return s } func (s *DescribeVpcsRequest) SetOwnerAccount(v string) *DescribeVpcsRequest { s.OwnerAccount = &v return s } func (s *DescribeVpcsRequest) SetOwnerId(v int64) *DescribeVpcsRequest { s.OwnerId = &v return s } func (s *DescribeVpcsRequest) SetPageNumber(v int32) *DescribeVpcsRequest { s.PageNumber = &v return s } func (s *DescribeVpcsRequest) SetPageSize(v int32) *DescribeVpcsRequest { s.PageSize = &v return s } func (s *DescribeVpcsRequest) SetRegionId(v string) *DescribeVpcsRequest { s.RegionId = &v return s } func (s *DescribeVpcsRequest) SetResourceOwnerAccount(v string) *DescribeVpcsRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeVpcsRequest) SetResourceOwnerId(v int64) *DescribeVpcsRequest { s.ResourceOwnerId = &v return s } func (s *DescribeVpcsRequest) SetVpcId(v string) *DescribeVpcsRequest { s.VpcId = &v return s } type DescribeVpcsResponseBody struct { PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"` PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"` RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` Vpcs *DescribeVpcsResponseBodyVpcs `json:"Vpcs,omitempty" xml:"Vpcs,omitempty" type:"Struct"` } func (s DescribeVpcsResponseBody) String() string { return tea.Prettify(s) } func (s DescribeVpcsResponseBody) GoString() string { return s.String() } func (s *DescribeVpcsResponseBody) SetPageNumber(v int32) *DescribeVpcsResponseBody { s.PageNumber = &v return s } func (s *DescribeVpcsResponseBody) SetPageSize(v int32) *DescribeVpcsResponseBody { s.PageSize = &v return s } func (s *DescribeVpcsResponseBody) SetRequestId(v string) *DescribeVpcsResponseBody { s.RequestId = &v return s } func (s *DescribeVpcsResponseBody) SetTotalCount(v int32) *DescribeVpcsResponseBody { s.TotalCount = &v return s } func (s *DescribeVpcsResponseBody) SetVpcs(v *DescribeVpcsResponseBodyVpcs) *DescribeVpcsResponseBody { s.Vpcs = v return s } type DescribeVpcsResponseBodyVpcs struct { Vpc []*DescribeVpcsResponseBodyVpcsVpc `json:"Vpc,omitempty" xml:"Vpc,omitempty" type:"Repeated"` } func (s DescribeVpcsResponseBodyVpcs) String() string { return tea.Prettify(s) } func (s DescribeVpcsResponseBodyVpcs) GoString() string { return s.String() } func (s *DescribeVpcsResponseBodyVpcs) SetVpc(v []*DescribeVpcsResponseBodyVpcsVpc) *DescribeVpcsResponseBodyVpcs { s.Vpc = v return s } type DescribeVpcsResponseBodyVpcsVpc struct { CidrBlock *string `json:"CidrBlock,omitempty" xml:"CidrBlock,omitempty"` CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` Description *string `json:"Description,omitempty" xml:"Description,omitempty"` IsDefault *bool `json:"IsDefault,omitempty" xml:"IsDefault,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` Status *string `json:"Status,omitempty" xml:"Status,omitempty"` UserCidrs *DescribeVpcsResponseBodyVpcsVpcUserCidrs `json:"UserCidrs,omitempty" xml:"UserCidrs,omitempty" type:"Struct"` VRouterId *string `json:"VRouterId,omitempty" xml:"VRouterId,omitempty"` VSwitchIds *DescribeVpcsResponseBodyVpcsVpcVSwitchIds `json:"VSwitchIds,omitempty" xml:"VSwitchIds,omitempty" type:"Struct"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` VpcName *string `json:"VpcName,omitempty" xml:"VpcName,omitempty"` } func (s DescribeVpcsResponseBodyVpcsVpc) String() string { return tea.Prettify(s) } func (s DescribeVpcsResponseBodyVpcsVpc) GoString() string { return s.String() } func (s *DescribeVpcsResponseBodyVpcsVpc) SetCidrBlock(v string) *DescribeVpcsResponseBodyVpcsVpc { s.CidrBlock = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetCreationTime(v string) *DescribeVpcsResponseBodyVpcsVpc { s.CreationTime = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetDescription(v string) *DescribeVpcsResponseBodyVpcsVpc { s.Description = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetIsDefault(v bool) *DescribeVpcsResponseBodyVpcsVpc { s.IsDefault = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetRegionId(v string) *DescribeVpcsResponseBodyVpcsVpc { s.RegionId = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetStatus(v string) *DescribeVpcsResponseBodyVpcsVpc { s.Status = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetUserCidrs(v *DescribeVpcsResponseBodyVpcsVpcUserCidrs) *DescribeVpcsResponseBodyVpcsVpc { s.UserCidrs = v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetVRouterId(v string) *DescribeVpcsResponseBodyVpcsVpc { s.VRouterId = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetVSwitchIds(v *DescribeVpcsResponseBodyVpcsVpcVSwitchIds) *DescribeVpcsResponseBodyVpcsVpc { s.VSwitchIds = v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetVpcId(v string) *DescribeVpcsResponseBodyVpcsVpc { s.VpcId = &v return s } func (s *DescribeVpcsResponseBodyVpcsVpc) SetVpcName(v string) *DescribeVpcsResponseBodyVpcsVpc { s.VpcName = &v return s } type DescribeVpcsResponseBodyVpcsVpcUserCidrs struct { UserCidr []*string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty" type:"Repeated"` } func (s DescribeVpcsResponseBodyVpcsVpcUserCidrs) String() string { return tea.Prettify(s) } func (s DescribeVpcsResponseBodyVpcsVpcUserCidrs) GoString() string { return s.String() } func (s *DescribeVpcsResponseBodyVpcsVpcUserCidrs) SetUserCidr(v []*string) *DescribeVpcsResponseBodyVpcsVpcUserCidrs { s.UserCidr = v return s } type DescribeVpcsResponseBodyVpcsVpcVSwitchIds struct { VSwitchId []*string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty" type:"Repeated"` } func (s DescribeVpcsResponseBodyVpcsVpcVSwitchIds) String() string { return tea.Prettify(s) } func (s DescribeVpcsResponseBodyVpcsVpcVSwitchIds) GoString() string { return s.String() } func (s *DescribeVpcsResponseBodyVpcsVpcVSwitchIds) SetVSwitchId(v []*string) *DescribeVpcsResponseBodyVpcsVpcVSwitchIds { s.VSwitchId = v return s } type DescribeVpcsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeVpcsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeVpcsResponse) String() string { return tea.Prettify(s) } func (s DescribeVpcsResponse) GoString() string { return s.String() } func (s *DescribeVpcsResponse) SetHeaders(v map[string]*string) *DescribeVpcsResponse { s.Headers = v return s } func (s *DescribeVpcsResponse) SetStatusCode(v int32) *DescribeVpcsResponse { s.StatusCode = &v return s } func (s *DescribeVpcsResponse) SetBody(v *DescribeVpcsResponseBody) *DescribeVpcsResponse { s.Body = v return s } type DescribeZonesRequest struct { // The natural language that is used to filter responses. For more information, see [RFC 7231](https://tools.ietf.org/html/rfc7231). Valid values: // // * zh-CN // * en-US // * ja // // Default value: zh-CN. AcceptLanguage *string `json:"AcceptLanguage,omitempty" xml:"AcceptLanguage,omitempty"` // The billing method of resources. For more information, see [Billing overview](~~25398~~). Valid values: // // * PrePaid: subscription // * PostPaid: pay-as-you-go // // Default value: PostPaid. InstanceChargeType *string `json:"InstanceChargeType,omitempty" xml:"InstanceChargeType,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The bidding policy for pay-as-you-go instances. You can specify this parameter when the `InstanceChargeType` parameter is set to PostPaid. For more information, see [Preemptible instances](~~52088~~). Valid values: // // * NoSpot: The instances are regular pay-as-you-go instances. // * SpotWithPriceLimit: The instances are preemptible instances with user-defined maximum hourly prices. // * SpotAsPriceGo: The instances are preemptible instances for which the market price at the time of purchase is automatically used as the bid price. The market price can be up to the pay-as-you-go price. // // Default value: NoSpot. SpotStrategy *string `json:"SpotStrategy,omitempty" xml:"SpotStrategy,omitempty"` // Specifies whether to display detailed information. // // * true: displays detailed information. // * false: does not display detailed information. // // Default value: true. Verbose *bool `json:"Verbose,omitempty" xml:"Verbose,omitempty"` } func (s DescribeZonesRequest) String() string { return tea.Prettify(s) } func (s DescribeZonesRequest) GoString() string { return s.String() } func (s *DescribeZonesRequest) SetAcceptLanguage(v string) *DescribeZonesRequest { s.AcceptLanguage = &v return s } func (s *DescribeZonesRequest) SetInstanceChargeType(v string) *DescribeZonesRequest { s.InstanceChargeType = &v return s } func (s *DescribeZonesRequest) SetOwnerAccount(v string) *DescribeZonesRequest { s.OwnerAccount = &v return s } func (s *DescribeZonesRequest) SetOwnerId(v int64) *DescribeZonesRequest { s.OwnerId = &v return s } func (s *DescribeZonesRequest) SetRegionId(v string) *DescribeZonesRequest { s.RegionId = &v return s } func (s *DescribeZonesRequest) SetResourceOwnerAccount(v string) *DescribeZonesRequest { s.ResourceOwnerAccount = &v return s } func (s *DescribeZonesRequest) SetResourceOwnerId(v int64) *DescribeZonesRequest { s.ResourceOwnerId = &v return s } func (s *DescribeZonesRequest) SetSpotStrategy(v string) *DescribeZonesRequest { s.SpotStrategy = &v return s } func (s *DescribeZonesRequest) SetVerbose(v bool) *DescribeZonesRequest { s.Verbose = &v return s } type DescribeZonesResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // Details of the zones and their supported resources. Zones *DescribeZonesResponseBodyZones `json:"Zones,omitempty" xml:"Zones,omitempty" type:"Struct"` } func (s DescribeZonesResponseBody) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBody) GoString() string { return s.String() } func (s *DescribeZonesResponseBody) SetRequestId(v string) *DescribeZonesResponseBody { s.RequestId = &v return s } func (s *DescribeZonesResponseBody) SetZones(v *DescribeZonesResponseBodyZones) *DescribeZonesResponseBody { s.Zones = v return s } type DescribeZonesResponseBodyZones struct { Zone []*DescribeZonesResponseBodyZonesZone `json:"Zone,omitempty" xml:"Zone,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZones) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZones) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZones) SetZone(v []*DescribeZonesResponseBodyZonesZone) *DescribeZonesResponseBodyZones { s.Zone = v return s } type DescribeZonesResponseBodyZonesZone struct { // The supported dedicated host types. AvailableDedicatedHostTypes *DescribeZonesResponseBodyZonesZoneAvailableDedicatedHostTypes `json:"AvailableDedicatedHostTypes,omitempty" xml:"AvailableDedicatedHostTypes,omitempty" type:"Struct"` // The supported disk categories. Valid values: // // * cloud: basic disk // * cloud_ssd: standard SSD // * cloud_efficiency: ultra disk // * cloud_essd: ESSD AvailableDiskCategories *DescribeZonesResponseBodyZonesZoneAvailableDiskCategories `json:"AvailableDiskCategories,omitempty" xml:"AvailableDiskCategories,omitempty" type:"Struct"` // The supported instance types. AvailableInstanceTypes *DescribeZonesResponseBodyZonesZoneAvailableInstanceTypes `json:"AvailableInstanceTypes,omitempty" xml:"AvailableInstanceTypes,omitempty" type:"Struct"` // The types of resources that can be created. Valid values: // // * VSwitch: vSwitch // * IoOptimized: I/O optimized instance // * Instance: instance // * DedicatedHost: dedicated host // * disk: disk AvailableResourceCreation *DescribeZonesResponseBodyZonesZoneAvailableResourceCreation `json:"AvailableResourceCreation,omitempty" xml:"AvailableResourceCreation,omitempty" type:"Struct"` // Details about the resources that can be created in the zone. AvailableResources *DescribeZonesResponseBodyZonesZoneAvailableResources `json:"AvailableResources,omitempty" xml:"AvailableResources,omitempty" type:"Struct"` // The supported Shared Block Storage device categories. AvailableVolumeCategories *DescribeZonesResponseBodyZonesZoneAvailableVolumeCategories `json:"AvailableVolumeCategories,omitempty" xml:"AvailableVolumeCategories,omitempty" type:"Struct"` // The supported generations of dedicated hosts. DedicatedHostGenerations *DescribeZonesResponseBodyZonesZoneDedicatedHostGenerations `json:"DedicatedHostGenerations,omitempty" xml:"DedicatedHostGenerations,omitempty" type:"Struct"` // The name of the zone in the local language. LocalName *string `json:"LocalName,omitempty" xml:"LocalName,omitempty"` // The ID of the zone. ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` // The type of the zone. Valid values: // // * AvailabilityZone: zone for the Alibaba Cloud public cloud // * CloudBoxZone: zone for CloudBox ZoneType *string `json:"ZoneType,omitempty" xml:"ZoneType,omitempty"` } func (s DescribeZonesResponseBodyZonesZone) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZone) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZone) SetAvailableDedicatedHostTypes(v *DescribeZonesResponseBodyZonesZoneAvailableDedicatedHostTypes) *DescribeZonesResponseBodyZonesZone { s.AvailableDedicatedHostTypes = v return s } func (s *DescribeZonesResponseBodyZonesZone) SetAvailableDiskCategories(v *DescribeZonesResponseBodyZonesZoneAvailableDiskCategories) *DescribeZonesResponseBodyZonesZone { s.AvailableDiskCategories = v return s } func (s *DescribeZonesResponseBodyZonesZone) SetAvailableInstanceTypes(v *DescribeZonesResponseBodyZonesZoneAvailableInstanceTypes) *DescribeZonesResponseBodyZonesZone { s.AvailableInstanceTypes = v return s } func (s *DescribeZonesResponseBodyZonesZone) SetAvailableResourceCreation(v *DescribeZonesResponseBodyZonesZoneAvailableResourceCreation) *DescribeZonesResponseBodyZonesZone { s.AvailableResourceCreation = v return s } func (s *DescribeZonesResponseBodyZonesZone) SetAvailableResources(v *DescribeZonesResponseBodyZonesZoneAvailableResources) *DescribeZonesResponseBodyZonesZone { s.AvailableResources = v return s } func (s *DescribeZonesResponseBodyZonesZone) SetAvailableVolumeCategories(v *DescribeZonesResponseBodyZonesZoneAvailableVolumeCategories) *DescribeZonesResponseBodyZonesZone { s.AvailableVolumeCategories = v return s } func (s *DescribeZonesResponseBodyZonesZone) SetDedicatedHostGenerations(v *DescribeZonesResponseBodyZonesZoneDedicatedHostGenerations) *DescribeZonesResponseBodyZonesZone { s.DedicatedHostGenerations = v return s } func (s *DescribeZonesResponseBodyZonesZone) SetLocalName(v string) *DescribeZonesResponseBodyZonesZone { s.LocalName = &v return s } func (s *DescribeZonesResponseBodyZonesZone) SetZoneId(v string) *DescribeZonesResponseBodyZonesZone { s.ZoneId = &v return s } func (s *DescribeZonesResponseBodyZonesZone) SetZoneType(v string) *DescribeZonesResponseBodyZonesZone { s.ZoneType = &v return s } type DescribeZonesResponseBodyZonesZoneAvailableDedicatedHostTypes struct { DedicatedHostType []*string `json:"DedicatedHostType,omitempty" xml:"DedicatedHostType,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableDedicatedHostTypes) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableDedicatedHostTypes) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableDedicatedHostTypes) SetDedicatedHostType(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableDedicatedHostTypes { s.DedicatedHostType = v return s } type DescribeZonesResponseBodyZonesZoneAvailableDiskCategories struct { DiskCategories []*string `json:"DiskCategories,omitempty" xml:"DiskCategories,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableDiskCategories) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableDiskCategories) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableDiskCategories) SetDiskCategories(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableDiskCategories { s.DiskCategories = v return s } type DescribeZonesResponseBodyZonesZoneAvailableInstanceTypes struct { InstanceTypes []*string `json:"InstanceTypes,omitempty" xml:"InstanceTypes,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableInstanceTypes) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableInstanceTypes) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableInstanceTypes) SetInstanceTypes(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableInstanceTypes { s.InstanceTypes = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourceCreation struct { ResourceTypes []*string `json:"ResourceTypes,omitempty" xml:"ResourceTypes,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourceCreation) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourceCreation) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourceCreation) SetResourceTypes(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableResourceCreation { s.ResourceTypes = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResources struct { ResourcesInfo []*DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo `json:"ResourcesInfo,omitempty" xml:"ResourcesInfo,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResources) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResources) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResources) SetResourcesInfo(v []*DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) *DescribeZonesResponseBodyZonesZoneAvailableResources { s.ResourcesInfo = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo struct { // The categories of data disks that can be created. DataDiskCategories *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoDataDiskCategories `json:"DataDiskCategories,omitempty" xml:"DataDiskCategories,omitempty" type:"Struct"` // The supported generations of instance families. InstanceGenerations *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceGenerations `json:"InstanceGenerations,omitempty" xml:"InstanceGenerations,omitempty" type:"Struct"` // The supported instance families. InstanceTypeFamilies *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypeFamilies `json:"InstanceTypeFamilies,omitempty" xml:"InstanceTypeFamilies,omitempty" type:"Struct"` // The supported instance types. InstanceTypes *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypes `json:"InstanceTypes,omitempty" xml:"InstanceTypes,omitempty" type:"Struct"` // Indicates whether the instance is I/O optimized. IoOptimized *bool `json:"IoOptimized,omitempty" xml:"IoOptimized,omitempty"` // The supported network types NetworkTypes *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoNetworkTypes `json:"NetworkTypes,omitempty" xml:"NetworkTypes,omitempty" type:"Struct"` // The supported categories of system disks that can be created. SystemDiskCategories *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoSystemDiskCategories `json:"SystemDiskCategories,omitempty" xml:"SystemDiskCategories,omitempty" type:"Struct"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) SetDataDiskCategories(v *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoDataDiskCategories) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo { s.DataDiskCategories = v return s } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) SetInstanceGenerations(v *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceGenerations) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo { s.InstanceGenerations = v return s } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) SetInstanceTypeFamilies(v *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypeFamilies) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo { s.InstanceTypeFamilies = v return s } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) SetInstanceTypes(v *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypes) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo { s.InstanceTypes = v return s } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) SetIoOptimized(v bool) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo { s.IoOptimized = &v return s } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) SetNetworkTypes(v *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoNetworkTypes) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo { s.NetworkTypes = v return s } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo) SetSystemDiskCategories(v *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoSystemDiskCategories) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfo { s.SystemDiskCategories = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoDataDiskCategories struct { SupportedDataDiskCategory []*string `json:"supportedDataDiskCategory,omitempty" xml:"supportedDataDiskCategory,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoDataDiskCategories) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoDataDiskCategories) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoDataDiskCategories) SetSupportedDataDiskCategory(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoDataDiskCategories { s.SupportedDataDiskCategory = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceGenerations struct { SupportedInstanceGeneration []*string `json:"supportedInstanceGeneration,omitempty" xml:"supportedInstanceGeneration,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceGenerations) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceGenerations) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceGenerations) SetSupportedInstanceGeneration(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceGenerations { s.SupportedInstanceGeneration = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypeFamilies struct { SupportedInstanceTypeFamily []*string `json:"supportedInstanceTypeFamily,omitempty" xml:"supportedInstanceTypeFamily,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypeFamilies) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypeFamilies) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypeFamilies) SetSupportedInstanceTypeFamily(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypeFamilies { s.SupportedInstanceTypeFamily = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypes struct { SupportedInstanceType []*string `json:"supportedInstanceType,omitempty" xml:"supportedInstanceType,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypes) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypes) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypes) SetSupportedInstanceType(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoInstanceTypes { s.SupportedInstanceType = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoNetworkTypes struct { SupportedNetworkCategory []*string `json:"supportedNetworkCategory,omitempty" xml:"supportedNetworkCategory,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoNetworkTypes) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoNetworkTypes) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoNetworkTypes) SetSupportedNetworkCategory(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoNetworkTypes { s.SupportedNetworkCategory = v return s } type DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoSystemDiskCategories struct { SupportedSystemDiskCategory []*string `json:"supportedSystemDiskCategory,omitempty" xml:"supportedSystemDiskCategory,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoSystemDiskCategories) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoSystemDiskCategories) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoSystemDiskCategories) SetSupportedSystemDiskCategory(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableResourcesResourcesInfoSystemDiskCategories { s.SupportedSystemDiskCategory = v return s } type DescribeZonesResponseBodyZonesZoneAvailableVolumeCategories struct { VolumeCategories []*string `json:"VolumeCategories,omitempty" xml:"VolumeCategories,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneAvailableVolumeCategories) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneAvailableVolumeCategories) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneAvailableVolumeCategories) SetVolumeCategories(v []*string) *DescribeZonesResponseBodyZonesZoneAvailableVolumeCategories { s.VolumeCategories = v return s } type DescribeZonesResponseBodyZonesZoneDedicatedHostGenerations struct { DedicatedHostGeneration []*string `json:"DedicatedHostGeneration,omitempty" xml:"DedicatedHostGeneration,omitempty" type:"Repeated"` } func (s DescribeZonesResponseBodyZonesZoneDedicatedHostGenerations) String() string { return tea.Prettify(s) } func (s DescribeZonesResponseBodyZonesZoneDedicatedHostGenerations) GoString() string { return s.String() } func (s *DescribeZonesResponseBodyZonesZoneDedicatedHostGenerations) SetDedicatedHostGeneration(v []*string) *DescribeZonesResponseBodyZonesZoneDedicatedHostGenerations { s.DedicatedHostGeneration = v return s } type DescribeZonesResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DescribeZonesResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DescribeZonesResponse) String() string { return tea.Prettify(s) } func (s DescribeZonesResponse) GoString() string { return s.String() } func (s *DescribeZonesResponse) SetHeaders(v map[string]*string) *DescribeZonesResponse { s.Headers = v return s } func (s *DescribeZonesResponse) SetStatusCode(v int32) *DescribeZonesResponse { s.StatusCode = &v return s } func (s *DescribeZonesResponse) SetBody(v *DescribeZonesResponseBody) *DescribeZonesResponse { s.Body = v return s } type DetachClassicLinkVpcRequest struct { // The ID of the classic network-type instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the classic network-type instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the VPC to which the instance is linked. VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } func (s DetachClassicLinkVpcRequest) String() string { return tea.Prettify(s) } func (s DetachClassicLinkVpcRequest) GoString() string { return s.String() } func (s *DetachClassicLinkVpcRequest) SetInstanceId(v string) *DetachClassicLinkVpcRequest { s.InstanceId = &v return s } func (s *DetachClassicLinkVpcRequest) SetOwnerId(v int64) *DetachClassicLinkVpcRequest { s.OwnerId = &v return s } func (s *DetachClassicLinkVpcRequest) SetRegionId(v string) *DetachClassicLinkVpcRequest { s.RegionId = &v return s } func (s *DetachClassicLinkVpcRequest) SetResourceOwnerAccount(v string) *DetachClassicLinkVpcRequest { s.ResourceOwnerAccount = &v return s } func (s *DetachClassicLinkVpcRequest) SetResourceOwnerId(v int64) *DetachClassicLinkVpcRequest { s.ResourceOwnerId = &v return s } func (s *DetachClassicLinkVpcRequest) SetVpcId(v string) *DetachClassicLinkVpcRequest { s.VpcId = &v return s } type DetachClassicLinkVpcResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DetachClassicLinkVpcResponseBody) String() string { return tea.Prettify(s) } func (s DetachClassicLinkVpcResponseBody) GoString() string { return s.String() } func (s *DetachClassicLinkVpcResponseBody) SetRequestId(v string) *DetachClassicLinkVpcResponseBody { s.RequestId = &v return s } type DetachClassicLinkVpcResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DetachClassicLinkVpcResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DetachClassicLinkVpcResponse) String() string { return tea.Prettify(s) } func (s DetachClassicLinkVpcResponse) GoString() string { return s.String() } func (s *DetachClassicLinkVpcResponse) SetHeaders(v map[string]*string) *DetachClassicLinkVpcResponse { s.Headers = v return s } func (s *DetachClassicLinkVpcResponse) SetStatusCode(v int32) *DetachClassicLinkVpcResponse { s.StatusCode = &v return s } func (s *DetachClassicLinkVpcResponse) SetBody(v *DetachClassicLinkVpcResponseBody) *DetachClassicLinkVpcResponse { s.Body = v return s } type DetachDiskRequest struct { // Specifies whether to release the system disk when the instance from which you want to detach the system disk is released. Valid values: // // * true: releases the system disk when the instance is released. // * false: does not release the system disk when the instance is released. The system disk is retained as a pay-as-you-go data disk. // // Default value: true. // // If you specify this parameter, take note of the following items: // // * You cannot specify this parameter for disks for which the multi-attach feature is enabled. // * If you detach a data disk, the default value of this parameter is `false`. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" xml:"DeleteWithInstance,omitempty"` // The ID of the disk that you want to detach. DiskId *string `json:"DiskId,omitempty" xml:"DiskId,omitempty"` // The ID of the ECS instance from which you want to detach the disk. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DetachDiskRequest) String() string { return tea.Prettify(s) } func (s DetachDiskRequest) GoString() string { return s.String() } func (s *DetachDiskRequest) SetDeleteWithInstance(v bool) *DetachDiskRequest { s.DeleteWithInstance = &v return s } func (s *DetachDiskRequest) SetDiskId(v string) *DetachDiskRequest { s.DiskId = &v return s } func (s *DetachDiskRequest) SetInstanceId(v string) *DetachDiskRequest { s.InstanceId = &v return s } func (s *DetachDiskRequest) SetOwnerAccount(v string) *DetachDiskRequest { s.OwnerAccount = &v return s } func (s *DetachDiskRequest) SetOwnerId(v int64) *DetachDiskRequest { s.OwnerId = &v return s } func (s *DetachDiskRequest) SetResourceOwnerAccount(v string) *DetachDiskRequest { s.ResourceOwnerAccount = &v return s } func (s *DetachDiskRequest) SetResourceOwnerId(v int64) *DetachDiskRequest { s.ResourceOwnerId = &v return s } type DetachDiskResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DetachDiskResponseBody) String() string { return tea.Prettify(s) } func (s DetachDiskResponseBody) GoString() string { return s.String() } func (s *DetachDiskResponseBody) SetRequestId(v string) *DetachDiskResponseBody { s.RequestId = &v return s } type DetachDiskResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DetachDiskResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DetachDiskResponse) String() string { return tea.Prettify(s) } func (s DetachDiskResponse) GoString() string { return s.String() } func (s *DetachDiskResponse) SetHeaders(v map[string]*string) *DetachDiskResponse { s.Headers = v return s } func (s *DetachDiskResponse) SetStatusCode(v int32) *DetachDiskResponse { s.StatusCode = &v return s } func (s *DetachDiskResponse) SetBody(v *DetachDiskResponseBody) *DetachDiskResponse { s.Body = v return s } type DetachInstanceRamRoleRequest struct { // The IDs of instances. The value can be a JSON array that consists of up to 100 instance IDs. Separate the IDs with commas (,). InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The name of the instance RAM role. You can call the [ListRoles](~~28713~~) operation provided by RAM to query the instance RAM roles that you created. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DetachInstanceRamRoleRequest) String() string { return tea.Prettify(s) } func (s DetachInstanceRamRoleRequest) GoString() string { return s.String() } func (s *DetachInstanceRamRoleRequest) SetInstanceIds(v string) *DetachInstanceRamRoleRequest { s.InstanceIds = &v return s } func (s *DetachInstanceRamRoleRequest) SetOwnerId(v int64) *DetachInstanceRamRoleRequest { s.OwnerId = &v return s } func (s *DetachInstanceRamRoleRequest) SetRamRoleName(v string) *DetachInstanceRamRoleRequest { s.RamRoleName = &v return s } func (s *DetachInstanceRamRoleRequest) SetRegionId(v string) *DetachInstanceRamRoleRequest { s.RegionId = &v return s } func (s *DetachInstanceRamRoleRequest) SetResourceOwnerAccount(v string) *DetachInstanceRamRoleRequest { s.ResourceOwnerAccount = &v return s } func (s *DetachInstanceRamRoleRequest) SetResourceOwnerId(v int64) *DetachInstanceRamRoleRequest { s.ResourceOwnerId = &v return s } type DetachInstanceRamRoleResponseBody struct { // Details about the results of detaching instance RAM roles from the instances. DetachInstanceRamRoleResults *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults `json:"DetachInstanceRamRoleResults,omitempty" xml:"DetachInstanceRamRoleResults,omitempty" type:"Struct"` // The number of instances from which instance RAM roles failed to be detached. FailCount *int32 `json:"FailCount,omitempty" xml:"FailCount,omitempty"` // The name of the instance RAM role. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The total number of instances from which you attempted to detach instance RAM roles. TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DetachInstanceRamRoleResponseBody) String() string { return tea.Prettify(s) } func (s DetachInstanceRamRoleResponseBody) GoString() string { return s.String() } func (s *DetachInstanceRamRoleResponseBody) SetDetachInstanceRamRoleResults(v *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults) *DetachInstanceRamRoleResponseBody { s.DetachInstanceRamRoleResults = v return s } func (s *DetachInstanceRamRoleResponseBody) SetFailCount(v int32) *DetachInstanceRamRoleResponseBody { s.FailCount = &v return s } func (s *DetachInstanceRamRoleResponseBody) SetRamRoleName(v string) *DetachInstanceRamRoleResponseBody { s.RamRoleName = &v return s } func (s *DetachInstanceRamRoleResponseBody) SetRequestId(v string) *DetachInstanceRamRoleResponseBody { s.RequestId = &v return s } func (s *DetachInstanceRamRoleResponseBody) SetTotalCount(v int32) *DetachInstanceRamRoleResponseBody { s.TotalCount = &v return s } type DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults struct { DetachInstanceRamRoleResult []*DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult `json:"DetachInstanceRamRoleResult,omitempty" xml:"DetachInstanceRamRoleResult,omitempty" type:"Repeated"` } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults) String() string { return tea.Prettify(s) } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults) GoString() string { return s.String() } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults) SetDetachInstanceRamRoleResult(v []*DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults { s.DetachInstanceRamRoleResult = v return s } type DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult struct { // Indicates whether the instance RAM role was detached. If 200 is returned, the instance RAM role was detached. If any other value is returned, the instance RAM role failed to be detached. For more information, see the "Error codes" section. Code *string `json:"Code,omitempty" xml:"Code,omitempty"` // The ID of the instance from which you attempted to detach the instance RAM role. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // Details about the instance RAM role of the instance. InstanceRamRoleSets *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSets `json:"InstanceRamRoleSets,omitempty" xml:"InstanceRamRoleSets,omitempty" type:"Struct"` // Indicates whether the instance RAM role was detached. If success is returned, the instance RAM role was detached. If any other value is returned, the instance RAM role failed to be detached. For more information, see the "Error codes" section. Message *string `json:"Message,omitempty" xml:"Message,omitempty"` // Indicates whether the instance RAM role was detached. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"` } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) String() string { return tea.Prettify(s) } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) GoString() string { return s.String() } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) SetCode(v string) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult { s.Code = &v return s } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) SetInstanceId(v string) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult { s.InstanceId = &v return s } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) SetInstanceRamRoleSets(v *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSets) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult { s.InstanceRamRoleSets = v return s } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) SetMessage(v string) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult { s.Message = &v return s } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult) SetSuccess(v bool) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResult { s.Success = &v return s } type DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSets struct { InstanceRamRoleSet []*DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet `json:"InstanceRamRoleSet,omitempty" xml:"InstanceRamRoleSet,omitempty" type:"Repeated"` } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSets) String() string { return tea.Prettify(s) } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSets) GoString() string { return s.String() } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSets) SetInstanceRamRoleSet(v []*DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSets { s.InstanceRamRoleSet = v return s } type DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The name of the instance RAM role. RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet) String() string { return tea.Prettify(s) } func (s DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet) GoString() string { return s.String() } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet) SetInstanceId(v string) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet { s.InstanceId = &v return s } func (s *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet) SetRamRoleName(v string) *DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet { s.RamRoleName = &v return s } type DetachInstanceRamRoleResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DetachInstanceRamRoleResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DetachInstanceRamRoleResponse) String() string { return tea.Prettify(s) } func (s DetachInstanceRamRoleResponse) GoString() string { return s.String() } func (s *DetachInstanceRamRoleResponse) SetHeaders(v map[string]*string) *DetachInstanceRamRoleResponse { s.Headers = v return s } func (s *DetachInstanceRamRoleResponse) SetStatusCode(v int32) *DetachInstanceRamRoleResponse { s.StatusCode = &v return s } func (s *DetachInstanceRamRoleResponse) SetBody(v *DetachInstanceRamRoleResponseBody) *DetachInstanceRamRoleResponse { s.Body = v return s } type DetachKeyPairRequest struct { // The IDs of instances from which you want to unbind the SSH key pair. The value can be a JSON array that consists of up to 50 instance IDs. Separate multiple instance IDs with commas (,). InstanceIds *string `json:"InstanceIds,omitempty" xml:"InstanceIds,omitempty"` // The name of the SSH key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the SSH key pair. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DetachKeyPairRequest) String() string { return tea.Prettify(s) } func (s DetachKeyPairRequest) GoString() string { return s.String() } func (s *DetachKeyPairRequest) SetInstanceIds(v string) *DetachKeyPairRequest { s.InstanceIds = &v return s } func (s *DetachKeyPairRequest) SetKeyPairName(v string) *DetachKeyPairRequest { s.KeyPairName = &v return s } func (s *DetachKeyPairRequest) SetOwnerId(v int64) *DetachKeyPairRequest { s.OwnerId = &v return s } func (s *DetachKeyPairRequest) SetRegionId(v string) *DetachKeyPairRequest { s.RegionId = &v return s } func (s *DetachKeyPairRequest) SetResourceOwnerAccount(v string) *DetachKeyPairRequest { s.ResourceOwnerAccount = &v return s } func (s *DetachKeyPairRequest) SetResourceOwnerId(v int64) *DetachKeyPairRequest { s.ResourceOwnerId = &v return s } type DetachKeyPairResponseBody struct { // The number of instances from which the SSH key pair failed to be unbound. FailCount *string `json:"FailCount,omitempty" xml:"FailCount,omitempty"` // The name of the key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The result set of the unbind operation. Results *DetachKeyPairResponseBodyResults `json:"Results,omitempty" xml:"Results,omitempty" type:"Struct"` // The total number of instances from which you want to unbind the SSH key pair. TotalCount *string `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"` } func (s DetachKeyPairResponseBody) String() string { return tea.Prettify(s) } func (s DetachKeyPairResponseBody) GoString() string { return s.String() } func (s *DetachKeyPairResponseBody) SetFailCount(v string) *DetachKeyPairResponseBody { s.FailCount = &v return s } func (s *DetachKeyPairResponseBody) SetKeyPairName(v string) *DetachKeyPairResponseBody { s.KeyPairName = &v return s } func (s *DetachKeyPairResponseBody) SetRequestId(v string) *DetachKeyPairResponseBody { s.RequestId = &v return s } func (s *DetachKeyPairResponseBody) SetResults(v *DetachKeyPairResponseBodyResults) *DetachKeyPairResponseBody { s.Results = v return s } func (s *DetachKeyPairResponseBody) SetTotalCount(v string) *DetachKeyPairResponseBody { s.TotalCount = &v return s } type DetachKeyPairResponseBodyResults struct { Result []*DetachKeyPairResponseBodyResultsResult `json:"Result,omitempty" xml:"Result,omitempty" type:"Repeated"` } func (s DetachKeyPairResponseBodyResults) String() string { return tea.Prettify(s) } func (s DetachKeyPairResponseBodyResults) GoString() string { return s.String() } func (s *DetachKeyPairResponseBodyResults) SetResult(v []*DetachKeyPairResponseBodyResultsResult) *DetachKeyPairResponseBodyResults { s.Result = v return s } type DetachKeyPairResponseBodyResultsResult struct { // The operation status code that is returned. 200 indicates that the operation is successful. Code *string `json:"Code,omitempty" xml:"Code,omitempty"` // The ID of the instance. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The result of the operation. For example, if the value of `Code` is 200, the value of `Message` is `successful`. Message *string `json:"Message,omitempty" xml:"Message,omitempty"` // Indicates whether the operation is successful. Success *string `json:"Success,omitempty" xml:"Success,omitempty"` } func (s DetachKeyPairResponseBodyResultsResult) String() string { return tea.Prettify(s) } func (s DetachKeyPairResponseBodyResultsResult) GoString() string { return s.String() } func (s *DetachKeyPairResponseBodyResultsResult) SetCode(v string) *DetachKeyPairResponseBodyResultsResult { s.Code = &v return s } func (s *DetachKeyPairResponseBodyResultsResult) SetInstanceId(v string) *DetachKeyPairResponseBodyResultsResult { s.InstanceId = &v return s } func (s *DetachKeyPairResponseBodyResultsResult) SetMessage(v string) *DetachKeyPairResponseBodyResultsResult { s.Message = &v return s } func (s *DetachKeyPairResponseBodyResultsResult) SetSuccess(v string) *DetachKeyPairResponseBodyResultsResult { s.Success = &v return s } type DetachKeyPairResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DetachKeyPairResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DetachKeyPairResponse) String() string { return tea.Prettify(s) } func (s DetachKeyPairResponse) GoString() string { return s.String() } func (s *DetachKeyPairResponse) SetHeaders(v map[string]*string) *DetachKeyPairResponse { s.Headers = v return s } func (s *DetachKeyPairResponse) SetStatusCode(v int32) *DetachKeyPairResponse { s.StatusCode = &v return s } func (s *DetachKeyPairResponse) SetBody(v *DetachKeyPairResponseBody) *DetachKeyPairResponse { s.Body = v return s } type DetachNetworkInterfaceRequest struct { // The ID of the trunk ENI. // // > This parameter is unavailable for use. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The ID of the instance NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" xml:"NetworkInterfaceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The ID of the ENI. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The ID of the request. TrunkNetworkInstanceId *string `json:"TrunkNetworkInstanceId,omitempty" xml:"TrunkNetworkInstanceId,omitempty"` } func (s DetachNetworkInterfaceRequest) String() string { return tea.Prettify(s) } func (s DetachNetworkInterfaceRequest) GoString() string { return s.String() } func (s *DetachNetworkInterfaceRequest) SetInstanceId(v string) *DetachNetworkInterfaceRequest { s.InstanceId = &v return s } func (s *DetachNetworkInterfaceRequest) SetNetworkInterfaceId(v string) *DetachNetworkInterfaceRequest { s.NetworkInterfaceId = &v return s } func (s *DetachNetworkInterfaceRequest) SetOwnerAccount(v string) *DetachNetworkInterfaceRequest { s.OwnerAccount = &v return s } func (s *DetachNetworkInterfaceRequest) SetOwnerId(v int64) *DetachNetworkInterfaceRequest { s.OwnerId = &v return s } func (s *DetachNetworkInterfaceRequest) SetRegionId(v string) *DetachNetworkInterfaceRequest { s.RegionId = &v return s } func (s *DetachNetworkInterfaceRequest) SetResourceOwnerAccount(v string) *DetachNetworkInterfaceRequest { s.ResourceOwnerAccount = &v return s } func (s *DetachNetworkInterfaceRequest) SetResourceOwnerId(v int64) *DetachNetworkInterfaceRequest { s.ResourceOwnerId = &v return s } func (s *DetachNetworkInterfaceRequest) SetTrunkNetworkInstanceId(v string) *DetachNetworkInterfaceRequest { s.TrunkNetworkInstanceId = &v return s } type DetachNetworkInterfaceResponseBody struct { // The ID of the request. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DetachNetworkInterfaceResponseBody) String() string { return tea.Prettify(s) } func (s DetachNetworkInterfaceResponseBody) GoString() string { return s.String() } func (s *DetachNetworkInterfaceResponseBody) SetRequestId(v string) *DetachNetworkInterfaceResponseBody { s.RequestId = &v return s } type DetachNetworkInterfaceResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DetachNetworkInterfaceResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DetachNetworkInterfaceResponse) String() string { return tea.Prettify(s) } func (s DetachNetworkInterfaceResponse) GoString() string { return s.String() } func (s *DetachNetworkInterfaceResponse) SetHeaders(v map[string]*string) *DetachNetworkInterfaceResponse { s.Headers = v return s } func (s *DetachNetworkInterfaceResponse) SetStatusCode(v int32) *DetachNetworkInterfaceResponse { s.StatusCode = &v return s } func (s *DetachNetworkInterfaceResponse) SetBody(v *DetachNetworkInterfaceResponseBody) *DetachNetworkInterfaceResponse { s.Body = v return s } type DisableActivationRequest struct { // The request ID. ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The activation code ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s DisableActivationRequest) String() string { return tea.Prettify(s) } func (s DisableActivationRequest) GoString() string { return s.String() } func (s *DisableActivationRequest) SetActivationId(v string) *DisableActivationRequest { s.ActivationId = &v return s } func (s *DisableActivationRequest) SetOwnerAccount(v string) *DisableActivationRequest { s.OwnerAccount = &v return s } func (s *DisableActivationRequest) SetOwnerId(v int64) *DisableActivationRequest { s.OwnerId = &v return s } func (s *DisableActivationRequest) SetRegionId(v string) *DisableActivationRequest { s.RegionId = &v return s } func (s *DisableActivationRequest) SetResourceOwnerAccount(v string) *DisableActivationRequest { s.ResourceOwnerAccount = &v return s } func (s *DisableActivationRequest) SetResourceOwnerId(v int64) *DisableActivationRequest { s.ResourceOwnerId = &v return s } type DisableActivationResponseBody struct { // The time when the activation code was created. Activation *DisableActivationResponseBodyActivation `json:"Activation,omitempty" xml:"Activation,omitempty" type:"Struct"` // Details about the activation code and its usage information. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s DisableActivationResponseBody) String() string { return tea.Prettify(s) } func (s DisableActivationResponseBody) GoString() string { return s.String() } func (s *DisableActivationResponseBody) SetActivation(v *DisableActivationResponseBodyActivation) *DisableActivationResponseBody { s.Activation = v return s } func (s *DisableActivationResponseBody) SetRequestId(v string) *DisableActivationResponseBody { s.RequestId = &v return s } type DisableActivationResponseBodyActivation struct { ActivationId *string `json:"ActivationId,omitempty" xml:"ActivationId,omitempty"` // The number of instances that were deregistered. CreationTime *string `json:"CreationTime,omitempty" xml:"CreationTime,omitempty"` // The maximum number of times that the activation code can be used to register managed instances. DeregisteredCount *int32 `json:"DeregisteredCount,omitempty" xml:"DeregisteredCount,omitempty"` // The number of registered instances. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The IP addresses of the hosts that can use the activation code. Disabled *bool `json:"Disabled,omitempty" xml:"Disabled,omitempty"` // The description of the activation code. InstanceCount *int32 `json:"InstanceCount,omitempty" xml:"InstanceCount,omitempty"` // Indicates whether the activation code is disabled. InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` // The validity period of the activation code. Unit: hours. IpAddressRange *string `json:"IpAddressRange,omitempty" xml:"IpAddressRange,omitempty"` // The default prefix of the instance name. RegisteredCount *int32 `json:"RegisteredCount,omitempty" xml:"RegisteredCount,omitempty"` // The activation code ID. TimeToLiveInHours *int64 `json:"TimeToLiveInHours,omitempty" xml:"TimeToLiveInHours,omitempty"` } func (s DisableActivationResponseBodyActivation) String() string { return tea.Prettify(s) } func (s DisableActivationResponseBodyActivation) GoString() string { return s.String() } func (s *DisableActivationResponseBodyActivation) SetActivationId(v string) *DisableActivationResponseBodyActivation { s.ActivationId = &v return s } func (s *DisableActivationResponseBodyActivation) SetCreationTime(v string) *DisableActivationResponseBodyActivation { s.CreationTime = &v return s } func (s *DisableActivationResponseBodyActivation) SetDeregisteredCount(v int32) *DisableActivationResponseBodyActivation { s.DeregisteredCount = &v return s } func (s *DisableActivationResponseBodyActivation) SetDescription(v string) *DisableActivationResponseBodyActivation { s.Description = &v return s } func (s *DisableActivationResponseBodyActivation) SetDisabled(v bool) *DisableActivationResponseBodyActivation { s.Disabled = &v return s } func (s *DisableActivationResponseBodyActivation) SetInstanceCount(v int32) *DisableActivationResponseBodyActivation { s.InstanceCount = &v return s } func (s *DisableActivationResponseBodyActivation) SetInstanceName(v string) *DisableActivationResponseBodyActivation { s.InstanceName = &v return s } func (s *DisableActivationResponseBodyActivation) SetIpAddressRange(v string) *DisableActivationResponseBodyActivation { s.IpAddressRange = &v return s } func (s *DisableActivationResponseBodyActivation) SetRegisteredCount(v int32) *DisableActivationResponseBodyActivation { s.RegisteredCount = &v return s } func (s *DisableActivationResponseBodyActivation) SetTimeToLiveInHours(v int64) *DisableActivationResponseBodyActivation { s.TimeToLiveInHours = &v return s } type DisableActivationResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *DisableActivationResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s DisableActivationResponse) String() string { return tea.Prettify(s) } func (s DisableActivationResponse) GoString() string { return s.String() } func (s *DisableActivationResponse) SetHeaders(v map[string]*string) *DisableActivationResponse { s.Headers = v return s } func (s *DisableActivationResponse) SetStatusCode(v int32) *DisableActivationResponse { s.StatusCode = &v return s } func (s *DisableActivationResponse) SetBody(v *DisableActivationResponseBody) *DisableActivationResponse { s.Body = v return s } type EipFillParamsRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` Data *string `json:"data,omitempty" xml:"data,omitempty"` } func (s EipFillParamsRequest) String() string { return tea.Prettify(s) } func (s EipFillParamsRequest) GoString() string { return s.String() } func (s *EipFillParamsRequest) SetClientToken(v string) *EipFillParamsRequest { s.ClientToken = &v return s } func (s *EipFillParamsRequest) SetOwnerAccount(v string) *EipFillParamsRequest { s.OwnerAccount = &v return s } func (s *EipFillParamsRequest) SetOwnerId(v int64) *EipFillParamsRequest { s.OwnerId = &v return s } func (s *EipFillParamsRequest) SetResourceOwnerAccount(v string) *EipFillParamsRequest { s.ResourceOwnerAccount = &v return s } func (s *EipFillParamsRequest) SetResourceOwnerId(v int64) *EipFillParamsRequest { s.ResourceOwnerId = &v return s } func (s *EipFillParamsRequest) SetUserCidr(v string) *EipFillParamsRequest { s.UserCidr = &v return s } func (s *EipFillParamsRequest) SetData(v string) *EipFillParamsRequest { s.Data = &v return s } type EipFillParamsResponseBody struct { Code *string `json:"code,omitempty" xml:"code,omitempty"` Data *string `json:"data,omitempty" xml:"data,omitempty"` Message *string `json:"message,omitempty" xml:"message,omitempty"` RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` Success *bool `json:"success,omitempty" xml:"success,omitempty"` } func (s EipFillParamsResponseBody) String() string { return tea.Prettify(s) } func (s EipFillParamsResponseBody) GoString() string { return s.String() } func (s *EipFillParamsResponseBody) SetCode(v string) *EipFillParamsResponseBody { s.Code = &v return s } func (s *EipFillParamsResponseBody) SetData(v string) *EipFillParamsResponseBody { s.Data = &v return s } func (s *EipFillParamsResponseBody) SetMessage(v string) *EipFillParamsResponseBody { s.Message = &v return s } func (s *EipFillParamsResponseBody) SetRequestId(v string) *EipFillParamsResponseBody { s.RequestId = &v return s } func (s *EipFillParamsResponseBody) SetSuccess(v bool) *EipFillParamsResponseBody { s.Success = &v return s } type EipFillParamsResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *EipFillParamsResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s EipFillParamsResponse) String() string { return tea.Prettify(s) } func (s EipFillParamsResponse) GoString() string { return s.String() } func (s *EipFillParamsResponse) SetHeaders(v map[string]*string) *EipFillParamsResponse { s.Headers = v return s } func (s *EipFillParamsResponse) SetStatusCode(v int32) *EipFillParamsResponse { s.StatusCode = &v return s } func (s *EipFillParamsResponse) SetBody(v *EipFillParamsResponseBody) *EipFillParamsResponse { s.Body = v return s } type EipFillProductRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` Data *string `json:"data,omitempty" xml:"data,omitempty"` } func (s EipFillProductRequest) String() string { return tea.Prettify(s) } func (s EipFillProductRequest) GoString() string { return s.String() } func (s *EipFillProductRequest) SetClientToken(v string) *EipFillProductRequest { s.ClientToken = &v return s } func (s *EipFillProductRequest) SetOwnerAccount(v string) *EipFillProductRequest { s.OwnerAccount = &v return s } func (s *EipFillProductRequest) SetOwnerId(v int64) *EipFillProductRequest { s.OwnerId = &v return s } func (s *EipFillProductRequest) SetResourceOwnerAccount(v string) *EipFillProductRequest { s.ResourceOwnerAccount = &v return s } func (s *EipFillProductRequest) SetResourceOwnerId(v int64) *EipFillProductRequest { s.ResourceOwnerId = &v return s } func (s *EipFillProductRequest) SetUserCidr(v string) *EipFillProductRequest { s.UserCidr = &v return s } func (s *EipFillProductRequest) SetData(v string) *EipFillProductRequest { s.Data = &v return s } type EipFillProductResponseBody struct { Code *string `json:"code,omitempty" xml:"code,omitempty"` Data *string `json:"data,omitempty" xml:"data,omitempty"` Message *string `json:"message,omitempty" xml:"message,omitempty"` RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` Success *bool `json:"success,omitempty" xml:"success,omitempty"` } func (s EipFillProductResponseBody) String() string { return tea.Prettify(s) } func (s EipFillProductResponseBody) GoString() string { return s.String() } func (s *EipFillProductResponseBody) SetCode(v string) *EipFillProductResponseBody { s.Code = &v return s } func (s *EipFillProductResponseBody) SetData(v string) *EipFillProductResponseBody { s.Data = &v return s } func (s *EipFillProductResponseBody) SetMessage(v string) *EipFillProductResponseBody { s.Message = &v return s } func (s *EipFillProductResponseBody) SetRequestId(v string) *EipFillProductResponseBody { s.RequestId = &v return s } func (s *EipFillProductResponseBody) SetSuccess(v bool) *EipFillProductResponseBody { s.Success = &v return s } type EipFillProductResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *EipFillProductResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s EipFillProductResponse) String() string { return tea.Prettify(s) } func (s EipFillProductResponse) GoString() string { return s.String() } func (s *EipFillProductResponse) SetHeaders(v map[string]*string) *EipFillProductResponse { s.Headers = v return s } func (s *EipFillProductResponse) SetStatusCode(v int32) *EipFillProductResponse { s.StatusCode = &v return s } func (s *EipFillProductResponse) SetBody(v *EipFillProductResponseBody) *EipFillProductResponse { s.Body = v return s } type EipNotifyPaidRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` Data *string `json:"data,omitempty" xml:"data,omitempty"` } func (s EipNotifyPaidRequest) String() string { return tea.Prettify(s) } func (s EipNotifyPaidRequest) GoString() string { return s.String() } func (s *EipNotifyPaidRequest) SetClientToken(v string) *EipNotifyPaidRequest { s.ClientToken = &v return s } func (s *EipNotifyPaidRequest) SetOwnerAccount(v string) *EipNotifyPaidRequest { s.OwnerAccount = &v return s } func (s *EipNotifyPaidRequest) SetOwnerId(v int64) *EipNotifyPaidRequest { s.OwnerId = &v return s } func (s *EipNotifyPaidRequest) SetResourceOwnerAccount(v string) *EipNotifyPaidRequest { s.ResourceOwnerAccount = &v return s } func (s *EipNotifyPaidRequest) SetResourceOwnerId(v int64) *EipNotifyPaidRequest { s.ResourceOwnerId = &v return s } func (s *EipNotifyPaidRequest) SetUserCidr(v string) *EipNotifyPaidRequest { s.UserCidr = &v return s } func (s *EipNotifyPaidRequest) SetData(v string) *EipNotifyPaidRequest { s.Data = &v return s } type EipNotifyPaidResponseBody struct { Code *string `json:"code,omitempty" xml:"code,omitempty"` Data *string `json:"data,omitempty" xml:"data,omitempty"` Message *string `json:"message,omitempty" xml:"message,omitempty"` RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` Success *bool `json:"success,omitempty" xml:"success,omitempty"` } func (s EipNotifyPaidResponseBody) String() string { return tea.Prettify(s) } func (s EipNotifyPaidResponseBody) GoString() string { return s.String() } func (s *EipNotifyPaidResponseBody) SetCode(v string) *EipNotifyPaidResponseBody { s.Code = &v return s } func (s *EipNotifyPaidResponseBody) SetData(v string) *EipNotifyPaidResponseBody { s.Data = &v return s } func (s *EipNotifyPaidResponseBody) SetMessage(v string) *EipNotifyPaidResponseBody { s.Message = &v return s } func (s *EipNotifyPaidResponseBody) SetRequestId(v string) *EipNotifyPaidResponseBody { s.RequestId = &v return s } func (s *EipNotifyPaidResponseBody) SetSuccess(v bool) *EipNotifyPaidResponseBody { s.Success = &v return s } type EipNotifyPaidResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *EipNotifyPaidResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s EipNotifyPaidResponse) String() string { return tea.Prettify(s) } func (s EipNotifyPaidResponse) GoString() string { return s.String() } func (s *EipNotifyPaidResponse) SetHeaders(v map[string]*string) *EipNotifyPaidResponse { s.Headers = v return s } func (s *EipNotifyPaidResponse) SetStatusCode(v int32) *EipNotifyPaidResponse { s.StatusCode = &v return s } func (s *EipNotifyPaidResponse) SetBody(v *EipNotifyPaidResponseBody) *EipNotifyPaidResponse { s.Body = v return s } type EnablePhysicalConnectionRequest struct { ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` PhysicalConnectionId *string `json:"PhysicalConnectionId,omitempty" xml:"PhysicalConnectionId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` UserCidr *string `json:"UserCidr,omitempty" xml:"UserCidr,omitempty"` } func (s EnablePhysicalConnectionRequest) String() string { return tea.Prettify(s) } func (s EnablePhysicalConnectionRequest) GoString() string { return s.String() } func (s *EnablePhysicalConnectionRequest) SetClientToken(v string) *EnablePhysicalConnectionRequest { s.ClientToken = &v return s } func (s *EnablePhysicalConnectionRequest) SetOwnerAccount(v string) *EnablePhysicalConnectionRequest { s.OwnerAccount = &v return s } func (s *EnablePhysicalConnectionRequest) SetOwnerId(v int64) *EnablePhysicalConnectionRequest { s.OwnerId = &v return s } func (s *EnablePhysicalConnectionRequest) SetPhysicalConnectionId(v string) *EnablePhysicalConnectionRequest { s.PhysicalConnectionId = &v return s } func (s *EnablePhysicalConnectionRequest) SetRegionId(v string) *EnablePhysicalConnectionRequest { s.RegionId = &v return s } func (s *EnablePhysicalConnectionRequest) SetResourceOwnerAccount(v string) *EnablePhysicalConnectionRequest { s.ResourceOwnerAccount = &v return s } func (s *EnablePhysicalConnectionRequest) SetResourceOwnerId(v int64) *EnablePhysicalConnectionRequest { s.ResourceOwnerId = &v return s } func (s *EnablePhysicalConnectionRequest) SetUserCidr(v string) *EnablePhysicalConnectionRequest { s.UserCidr = &v return s } type EnablePhysicalConnectionResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s EnablePhysicalConnectionResponseBody) String() string { return tea.Prettify(s) } func (s EnablePhysicalConnectionResponseBody) GoString() string { return s.String() } func (s *EnablePhysicalConnectionResponseBody) SetRequestId(v string) *EnablePhysicalConnectionResponseBody { s.RequestId = &v return s } type EnablePhysicalConnectionResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *EnablePhysicalConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s EnablePhysicalConnectionResponse) String() string { return tea.Prettify(s) } func (s EnablePhysicalConnectionResponse) GoString() string { return s.String() } func (s *EnablePhysicalConnectionResponse) SetHeaders(v map[string]*string) *EnablePhysicalConnectionResponse { s.Headers = v return s } func (s *EnablePhysicalConnectionResponse) SetStatusCode(v int32) *EnablePhysicalConnectionResponse { s.StatusCode = &v return s } func (s *EnablePhysicalConnectionResponse) SetBody(v *EnablePhysicalConnectionResponseBody) *EnablePhysicalConnectionResponse { s.Body = v return s } type ExportImageRequest struct { // The format in which you want to export the custom image. Valid values: // // * raw // * vhd // * qcow2 // * vmdk // * vdi // // Default value: raw. ImageFormat *string `json:"ImageFormat,omitempty" xml:"ImageFormat,omitempty"` // The custom image ID. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The OSS bucket in which you want to store the exported custom image. OSSBucket *string `json:"OSSBucket,omitempty" xml:"OSSBucket,omitempty"` // The prefix for the name of the OSS object. The prefix must be 1 to 30 characters in length and can contain digits and letters. OSSPrefix *string `json:"OSSPrefix,omitempty" xml:"OSSPrefix,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the custom image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The name of the RAM role that you want to use to export the custom image. RoleName *string `json:"RoleName,omitempty" xml:"RoleName,omitempty"` } func (s ExportImageRequest) String() string { return tea.Prettify(s) } func (s ExportImageRequest) GoString() string { return s.String() } func (s *ExportImageRequest) SetImageFormat(v string) *ExportImageRequest { s.ImageFormat = &v return s } func (s *ExportImageRequest) SetImageId(v string) *ExportImageRequest { s.ImageId = &v return s } func (s *ExportImageRequest) SetOSSBucket(v string) *ExportImageRequest { s.OSSBucket = &v return s } func (s *ExportImageRequest) SetOSSPrefix(v string) *ExportImageRequest { s.OSSPrefix = &v return s } func (s *ExportImageRequest) SetOwnerId(v int64) *ExportImageRequest { s.OwnerId = &v return s } func (s *ExportImageRequest) SetRegionId(v string) *ExportImageRequest { s.RegionId = &v return s } func (s *ExportImageRequest) SetResourceOwnerAccount(v string) *ExportImageRequest { s.ResourceOwnerAccount = &v return s } func (s *ExportImageRequest) SetResourceOwnerId(v int64) *ExportImageRequest { s.ResourceOwnerId = &v return s } func (s *ExportImageRequest) SetRoleName(v string) *ExportImageRequest { s.RoleName = &v return s } type ExportImageResponseBody struct { // The region ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The ID of the task that is used to export the custom image. TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` } func (s ExportImageResponseBody) String() string { return tea.Prettify(s) } func (s ExportImageResponseBody) GoString() string { return s.String() } func (s *ExportImageResponseBody) SetRegionId(v string) *ExportImageResponseBody { s.RegionId = &v return s } func (s *ExportImageResponseBody) SetRequestId(v string) *ExportImageResponseBody { s.RequestId = &v return s } func (s *ExportImageResponseBody) SetTaskId(v string) *ExportImageResponseBody { s.TaskId = &v return s } type ExportImageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ExportImageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ExportImageResponse) String() string { return tea.Prettify(s) } func (s ExportImageResponse) GoString() string { return s.String() } func (s *ExportImageResponse) SetHeaders(v map[string]*string) *ExportImageResponse { s.Headers = v return s } func (s *ExportImageResponse) SetStatusCode(v int32) *ExportImageResponse { s.StatusCode = &v return s } func (s *ExportImageResponse) SetBody(v *ExportImageResponseBody) *ExportImageResponse { s.Body = v return s } type ExportSnapshotRequest struct { OssBucket *string `json:"OssBucket,omitempty" xml:"OssBucket,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` RoleName *string `json:"RoleName,omitempty" xml:"RoleName,omitempty"` SnapshotId *string `json:"SnapshotId,omitempty" xml:"SnapshotId,omitempty"` } func (s ExportSnapshotRequest) String() string { return tea.Prettify(s) } func (s ExportSnapshotRequest) GoString() string { return s.String() } func (s *ExportSnapshotRequest) SetOssBucket(v string) *ExportSnapshotRequest { s.OssBucket = &v return s } func (s *ExportSnapshotRequest) SetOwnerId(v int64) *ExportSnapshotRequest { s.OwnerId = &v return s } func (s *ExportSnapshotRequest) SetRegionId(v string) *ExportSnapshotRequest { s.RegionId = &v return s } func (s *ExportSnapshotRequest) SetResourceOwnerAccount(v string) *ExportSnapshotRequest { s.ResourceOwnerAccount = &v return s } func (s *ExportSnapshotRequest) SetResourceOwnerId(v int64) *ExportSnapshotRequest { s.ResourceOwnerId = &v return s } func (s *ExportSnapshotRequest) SetRoleName(v string) *ExportSnapshotRequest { s.RoleName = &v return s } func (s *ExportSnapshotRequest) SetSnapshotId(v string) *ExportSnapshotRequest { s.SnapshotId = &v return s } type ExportSnapshotResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` } func (s ExportSnapshotResponseBody) String() string { return tea.Prettify(s) } func (s ExportSnapshotResponseBody) GoString() string { return s.String() } func (s *ExportSnapshotResponseBody) SetRequestId(v string) *ExportSnapshotResponseBody { s.RequestId = &v return s } func (s *ExportSnapshotResponseBody) SetTaskId(v string) *ExportSnapshotResponseBody { s.TaskId = &v return s } type ExportSnapshotResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ExportSnapshotResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ExportSnapshotResponse) String() string { return tea.Prettify(s) } func (s ExportSnapshotResponse) GoString() string { return s.String() } func (s *ExportSnapshotResponse) SetHeaders(v map[string]*string) *ExportSnapshotResponse { s.Headers = v return s } func (s *ExportSnapshotResponse) SetStatusCode(v int32) *ExportSnapshotResponse { s.StatusCode = &v return s } func (s *ExportSnapshotResponse) SetBody(v *ExportSnapshotResponseBody) *ExportSnapshotResponse { s.Body = v return s } type GetInstanceConsoleOutputRequest struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // Specifies whether to remove formatting symbols from the returned command output. Valid values: // // * true // * false // // Default value: false. RemoveSymbols *bool `json:"RemoveSymbols,omitempty" xml:"RemoveSymbols,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s GetInstanceConsoleOutputRequest) String() string { return tea.Prettify(s) } func (s GetInstanceConsoleOutputRequest) GoString() string { return s.String() } func (s *GetInstanceConsoleOutputRequest) SetInstanceId(v string) *GetInstanceConsoleOutputRequest { s.InstanceId = &v return s } func (s *GetInstanceConsoleOutputRequest) SetOwnerAccount(v string) *GetInstanceConsoleOutputRequest { s.OwnerAccount = &v return s } func (s *GetInstanceConsoleOutputRequest) SetOwnerId(v int64) *GetInstanceConsoleOutputRequest { s.OwnerId = &v return s } func (s *GetInstanceConsoleOutputRequest) SetRegionId(v string) *GetInstanceConsoleOutputRequest { s.RegionId = &v return s } func (s *GetInstanceConsoleOutputRequest) SetRemoveSymbols(v bool) *GetInstanceConsoleOutputRequest { s.RemoveSymbols = &v return s } func (s *GetInstanceConsoleOutputRequest) SetResourceOwnerAccount(v string) *GetInstanceConsoleOutputRequest { s.ResourceOwnerAccount = &v return s } func (s *GetInstanceConsoleOutputRequest) SetResourceOwnerId(v int64) *GetInstanceConsoleOutputRequest { s.ResourceOwnerId = &v return s } type GetInstanceConsoleOutputResponseBody struct { // The Base64-encoded command output of the instance. ConsoleOutput *string `json:"ConsoleOutput,omitempty" xml:"ConsoleOutput,omitempty"` // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The time when the last log entry was generated in the Linux kernel. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mmZ format. The time is displayed in UTC+8. LastUpdateTime *string `json:"LastUpdateTime,omitempty" xml:"LastUpdateTime,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s GetInstanceConsoleOutputResponseBody) String() string { return tea.Prettify(s) } func (s GetInstanceConsoleOutputResponseBody) GoString() string { return s.String() } func (s *GetInstanceConsoleOutputResponseBody) SetConsoleOutput(v string) *GetInstanceConsoleOutputResponseBody { s.ConsoleOutput = &v return s } func (s *GetInstanceConsoleOutputResponseBody) SetInstanceId(v string) *GetInstanceConsoleOutputResponseBody { s.InstanceId = &v return s } func (s *GetInstanceConsoleOutputResponseBody) SetLastUpdateTime(v string) *GetInstanceConsoleOutputResponseBody { s.LastUpdateTime = &v return s } func (s *GetInstanceConsoleOutputResponseBody) SetRequestId(v string) *GetInstanceConsoleOutputResponseBody { s.RequestId = &v return s } type GetInstanceConsoleOutputResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *GetInstanceConsoleOutputResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s GetInstanceConsoleOutputResponse) String() string { return tea.Prettify(s) } func (s GetInstanceConsoleOutputResponse) GoString() string { return s.String() } func (s *GetInstanceConsoleOutputResponse) SetHeaders(v map[string]*string) *GetInstanceConsoleOutputResponse { s.Headers = v return s } func (s *GetInstanceConsoleOutputResponse) SetStatusCode(v int32) *GetInstanceConsoleOutputResponse { s.StatusCode = &v return s } func (s *GetInstanceConsoleOutputResponse) SetBody(v *GetInstanceConsoleOutputResponseBody) *GetInstanceConsoleOutputResponse { s.Body = v return s } type GetInstanceScreenshotRequest struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // Specifies whether to wake up the hibernated instance. // // Default value: false. WakeUp *bool `json:"WakeUp,omitempty" xml:"WakeUp,omitempty"` } func (s GetInstanceScreenshotRequest) String() string { return tea.Prettify(s) } func (s GetInstanceScreenshotRequest) GoString() string { return s.String() } func (s *GetInstanceScreenshotRequest) SetInstanceId(v string) *GetInstanceScreenshotRequest { s.InstanceId = &v return s } func (s *GetInstanceScreenshotRequest) SetOwnerAccount(v string) *GetInstanceScreenshotRequest { s.OwnerAccount = &v return s } func (s *GetInstanceScreenshotRequest) SetOwnerId(v int64) *GetInstanceScreenshotRequest { s.OwnerId = &v return s } func (s *GetInstanceScreenshotRequest) SetRegionId(v string) *GetInstanceScreenshotRequest { s.RegionId = &v return s } func (s *GetInstanceScreenshotRequest) SetResourceOwnerAccount(v string) *GetInstanceScreenshotRequest { s.ResourceOwnerAccount = &v return s } func (s *GetInstanceScreenshotRequest) SetResourceOwnerId(v int64) *GetInstanceScreenshotRequest { s.ResourceOwnerId = &v return s } func (s *GetInstanceScreenshotRequest) SetWakeUp(v bool) *GetInstanceScreenshotRequest { s.WakeUp = &v return s } type GetInstanceScreenshotResponseBody struct { // The instance ID. InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The Base64-encoded instance screenshot in the JPG format. Screenshot *string `json:"Screenshot,omitempty" xml:"Screenshot,omitempty"` } func (s GetInstanceScreenshotResponseBody) String() string { return tea.Prettify(s) } func (s GetInstanceScreenshotResponseBody) GoString() string { return s.String() } func (s *GetInstanceScreenshotResponseBody) SetInstanceId(v string) *GetInstanceScreenshotResponseBody { s.InstanceId = &v return s } func (s *GetInstanceScreenshotResponseBody) SetRequestId(v string) *GetInstanceScreenshotResponseBody { s.RequestId = &v return s } func (s *GetInstanceScreenshotResponseBody) SetScreenshot(v string) *GetInstanceScreenshotResponseBody { s.Screenshot = &v return s } type GetInstanceScreenshotResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *GetInstanceScreenshotResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s GetInstanceScreenshotResponse) String() string { return tea.Prettify(s) } func (s GetInstanceScreenshotResponse) GoString() string { return s.String() } func (s *GetInstanceScreenshotResponse) SetHeaders(v map[string]*string) *GetInstanceScreenshotResponse { s.Headers = v return s } func (s *GetInstanceScreenshotResponse) SetStatusCode(v int32) *GetInstanceScreenshotResponse { s.StatusCode = &v return s } func (s *GetInstanceScreenshotResponse) SetBody(v *GetInstanceScreenshotResponseBody) *GetInstanceScreenshotResponse { s.Body = v return s } type ImportImageRequest struct { // The system architecture. Valid values: // // * i386 // * x86\_64 // * arm64 // // Default value: x86\_64. Architecture *string `json:"Architecture,omitempty" xml:"Architecture,omitempty"` // The boot mode of the image. Valid values: // // * BIOS // * UEFI // // Default value: BIOS. If you set `Architecture` to arm64, set this parameter to UEFI. // // > Make sure that you are aware of the boot modes supported by the specified image, as thehe modified boot mode needs to be supported by the image. This way, instances that use this image can start. BootMode *string `json:"BootMode,omitempty" xml:"BootMode,omitempty"` // The image description. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`. Description *string `json:"Description,omitempty" xml:"Description,omitempty"` // The mode in which to check the image. If you do not specify this parameter, the image is not checked. Only the standard check mode is supported. // // > This parameter is supported for most Linux and Windows operating system versions. For more information about image check items and operating system limits for image check, see [Overview](~~439819~~) and [Operating system limits for image check](~~475800~~). DetectionStrategy *string `json:"DetectionStrategy,omitempty" xml:"DetectionStrategy,omitempty"` // The information about the custom image. DiskDeviceMapping []*ImportImageRequestDiskDeviceMapping `json:"DiskDeviceMapping,omitempty" xml:"DiskDeviceMapping,omitempty" type:"Repeated"` // The image name. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with `acs:` or `aliyun`. The name cannot contain `http://` or `https://`. The name can contain letters, digits, periods (.), colons (:), underscores (\_), and hyphens (-). ImageName *string `json:"ImageName,omitempty" xml:"ImageName,omitempty"` // The type of the license used to activate the operating system after the image is imported. Valid values: // // * Auto: ECS checks the operating system of the image and allocates a license to the operating system. ECS first checks whether the operating system distribution specified by `Platform` has a license allocated through an official Alibaba Cloud channel. If yes, the allocated license is used. If no, the license that comes with the source operating system is used. // * Aliyun: The license allocated through an official Alibaba Cloud channel is used for the operating system distribution specified by `Platform`. // * BYOL: The license that comes with the source operating system is used. In this case, make sure that your license key is eligible for use in Alibaba Cloud. // // Default value: Auto. LicenseType *string `json:"LicenseType,omitempty" xml:"LicenseType,omitempty"` // The operating system platform. Valid values: // // * windows // * linux // // Default value: linux. OSType *string `json:"OSType,omitempty" xml:"OSType,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The operating system distribution. Valid values: // // * Aliyun // * Anolis // * CentOS // * Ubuntu // * CoreOS // * SUSE // * Debian // * OpenSUSE // * FreeBSD // * RedHat // * Kylin // * UOS // * Fedora // * Fedora CoreOS // * CentOS Stream // * AlmaLinux // * Rocky Linux // * Gentoo // * Customized Linux // * Others Linux // * Windows Server 2022 // * Windows Server 2019 // * Windows Server 2016 // * Windows Server 2012 // * Windows Server 2008 // * Windows Server 2003 // // Default value: Others Linux. Platform *string `json:"Platform,omitempty" xml:"Platform,omitempty"` // The region ID of the source image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the resource group to which to assign the image. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The name of the RAM role used to import the image. RoleName *string `json:"RoleName,omitempty" xml:"RoleName,omitempty"` StorageLocationArn *string `json:"StorageLocationArn,omitempty" xml:"StorageLocationArn,omitempty"` // The image tags. Tag []*ImportImageRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s ImportImageRequest) String() string { return tea.Prettify(s) } func (s ImportImageRequest) GoString() string { return s.String() } func (s *ImportImageRequest) SetArchitecture(v string) *ImportImageRequest { s.Architecture = &v return s } func (s *ImportImageRequest) SetBootMode(v string) *ImportImageRequest { s.BootMode = &v return s } func (s *ImportImageRequest) SetDescription(v string) *ImportImageRequest { s.Description = &v return s } func (s *ImportImageRequest) SetDetectionStrategy(v string) *ImportImageRequest { s.DetectionStrategy = &v return s } func (s *ImportImageRequest) SetDiskDeviceMapping(v []*ImportImageRequestDiskDeviceMapping) *ImportImageRequest { s.DiskDeviceMapping = v return s } func (s *ImportImageRequest) SetImageName(v string) *ImportImageRequest { s.ImageName = &v return s } func (s *ImportImageRequest) SetLicenseType(v string) *ImportImageRequest { s.LicenseType = &v return s } func (s *ImportImageRequest) SetOSType(v string) *ImportImageRequest { s.OSType = &v return s } func (s *ImportImageRequest) SetOwnerId(v int64) *ImportImageRequest { s.OwnerId = &v return s } func (s *ImportImageRequest) SetPlatform(v string) *ImportImageRequest { s.Platform = &v return s } func (s *ImportImageRequest) SetRegionId(v string) *ImportImageRequest { s.RegionId = &v return s } func (s *ImportImageRequest) SetResourceGroupId(v string) *ImportImageRequest { s.ResourceGroupId = &v return s } func (s *ImportImageRequest) SetResourceOwnerAccount(v string) *ImportImageRequest { s.ResourceOwnerAccount = &v return s } func (s *ImportImageRequest) SetResourceOwnerId(v int64) *ImportImageRequest { s.ResourceOwnerId = &v return s } func (s *ImportImageRequest) SetRoleName(v string) *ImportImageRequest { s.RoleName = &v return s } func (s *ImportImageRequest) SetStorageLocationArn(v string) *ImportImageRequest { s.StorageLocationArn = &v return s } func (s *ImportImageRequest) SetTag(v []*ImportImageRequestTag) *ImportImageRequest { s.Tag = v return s } type ImportImageRequestDiskDeviceMapping struct { // The device name of disk N in the custom image. // // > This parameter will be removed in the future. We recommend that you do not use this parameter to ensure future compatibility. Device *string `json:"Device,omitempty" xml:"Device,omitempty"` // The size of disk N in the custom image. Unit: GiB // // You can use this parameter to specify the sizes of the system disk and data disks in the custom image. When you specify the size of the system disk, make sure that the specified size is greater than or equal to the size of the imported image file. Unit: GiB. Valid values: // // * When the N value is 1, this parameter specifies the size of the system disk in the custom image. Valid values: 5 to 500. // * When the N value is an integer in the range of 2 to 17, this parameter specifies the size of a data disk in the custom image. Valid values: 5 to 2000. // // After the image file is uploaded to an OSS bucket, you can view the size of the image file in the OSS bucket. // // > This parameter will be removed in the future. We recommend that you use `DiskDeviceMapping.N.DiskImageSize` to ensure future compatibility. DiskImSize *int32 `json:"DiskImSize,omitempty" xml:"DiskImSize,omitempty"` // The size of disk N in the custom image after the image is imported. // // You can use this parameter to specify the sizes of the system disk and data disks in the custom image. When you specify the size of the system disk, make sure that the specified size is greater than or equal to the size of the imported image file. Unit: GiB. Valid values: // // * When the N value is 1, this parameter specifies the size of the system disk in the custom image. Valid values: 5 to 500. // * When the N value is an integer in the range of 2 to 17, this parameter specifies the size of a data disk in the custom image. Valid values: 5 to 2000. // // After the image file is uploaded to an OSS bucket, you can view the size of the image file in the OSS bucket. DiskImageSize *int32 `json:"DiskImageSize,omitempty" xml:"DiskImageSize,omitempty"` // The image format. Valid values: // // * RAW // * VHD // * QCOW2 // // This parameter is empty by default, which indicates that the system checks the format of the image and uses the check result as the value of this parameter. Format *string `json:"Format,omitempty" xml:"Format,omitempty"` // The OSS bucket where the image file is stored. // // > Before you import images for the first time, you must use RAM to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the `NoSetRoletoECSServiceAcount` error code is returned when you call the ImportImage operation. For more information, see the "**Usage notes**" section in this topic. OSSBucket *string `json:"OSSBucket,omitempty" xml:"OSSBucket,omitempty"` // The name (key) of the object that the uploaded image is stored as in the OSS bucket. OSSObject *string `json:"OSSObject,omitempty" xml:"OSSObject,omitempty"` } func (s ImportImageRequestDiskDeviceMapping) String() string { return tea.Prettify(s) } func (s ImportImageRequestDiskDeviceMapping) GoString() string { return s.String() } func (s *ImportImageRequestDiskDeviceMapping) SetDevice(v string) *ImportImageRequestDiskDeviceMapping { s.Device = &v return s } func (s *ImportImageRequestDiskDeviceMapping) SetDiskImSize(v int32) *ImportImageRequestDiskDeviceMapping { s.DiskImSize = &v return s } func (s *ImportImageRequestDiskDeviceMapping) SetDiskImageSize(v int32) *ImportImageRequestDiskDeviceMapping { s.DiskImageSize = &v return s } func (s *ImportImageRequestDiskDeviceMapping) SetFormat(v string) *ImportImageRequestDiskDeviceMapping { s.Format = &v return s } func (s *ImportImageRequestDiskDeviceMapping) SetOSSBucket(v string) *ImportImageRequestDiskDeviceMapping { s.OSSBucket = &v return s } func (s *ImportImageRequestDiskDeviceMapping) SetOSSObject(v string) *ImportImageRequestDiskDeviceMapping { s.OSSObject = &v return s } type ImportImageRequestTag struct { // The key of tag N of the image. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N of the image. 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://`. The tag value cannot start with `acs:`. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s ImportImageRequestTag) String() string { return tea.Prettify(s) } func (s ImportImageRequestTag) GoString() string { return s.String() } func (s *ImportImageRequestTag) SetKey(v string) *ImportImageRequestTag { s.Key = &v return s } func (s *ImportImageRequestTag) SetValue(v string) *ImportImageRequestTag { s.Value = &v return s } type ImportImageResponseBody struct { // The image ID. ImageId *string `json:"ImageId,omitempty" xml:"ImageId,omitempty"` // The region ID. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` // The image import task ID. TaskId *string `json:"TaskId,omitempty" xml:"TaskId,omitempty"` } func (s ImportImageResponseBody) String() string { return tea.Prettify(s) } func (s ImportImageResponseBody) GoString() string { return s.String() } func (s *ImportImageResponseBody) SetImageId(v string) *ImportImageResponseBody { s.ImageId = &v return s } func (s *ImportImageResponseBody) SetRegionId(v string) *ImportImageResponseBody { s.RegionId = &v return s } func (s *ImportImageResponseBody) SetRequestId(v string) *ImportImageResponseBody { s.RequestId = &v return s } func (s *ImportImageResponseBody) SetTaskId(v string) *ImportImageResponseBody { s.TaskId = &v return s } type ImportImageResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ImportImageResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ImportImageResponse) String() string { return tea.Prettify(s) } func (s ImportImageResponse) GoString() string { return s.String() } func (s *ImportImageResponse) SetHeaders(v map[string]*string) *ImportImageResponse { s.Headers = v return s } func (s *ImportImageResponse) SetStatusCode(v int32) *ImportImageResponse { s.StatusCode = &v return s } func (s *ImportImageResponse) SetBody(v *ImportImageResponseBody) *ImportImageResponse { s.Body = v return s } type ImportKeyPairRequest struct { // The name of the key pair. The name must be unique. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The public key of the key pair. PublicKeyBody *string `json:"PublicKeyBody,omitempty" xml:"PublicKeyBody,omitempty"` // The region ID. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` // The ID of the enterprise resource group to which the SSH key pair belongs. ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` // The tags to add to the key pair. Tag []*ImportKeyPairRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"` } func (s ImportKeyPairRequest) String() string { return tea.Prettify(s) } func (s ImportKeyPairRequest) GoString() string { return s.String() } func (s *ImportKeyPairRequest) SetKeyPairName(v string) *ImportKeyPairRequest { s.KeyPairName = &v return s } func (s *ImportKeyPairRequest) SetOwnerId(v int64) *ImportKeyPairRequest { s.OwnerId = &v return s } func (s *ImportKeyPairRequest) SetPublicKeyBody(v string) *ImportKeyPairRequest { s.PublicKeyBody = &v return s } func (s *ImportKeyPairRequest) SetRegionId(v string) *ImportKeyPairRequest { s.RegionId = &v return s } func (s *ImportKeyPairRequest) SetResourceGroupId(v string) *ImportKeyPairRequest { s.ResourceGroupId = &v return s } func (s *ImportKeyPairRequest) SetResourceOwnerAccount(v string) *ImportKeyPairRequest { s.ResourceOwnerAccount = &v return s } func (s *ImportKeyPairRequest) SetResourceOwnerId(v int64) *ImportKeyPairRequest { s.ResourceOwnerId = &v return s } func (s *ImportKeyPairRequest) SetTag(v []*ImportKeyPairRequestTag) *ImportKeyPairRequest { s.Tag = v return s } type ImportKeyPairRequestTag struct { // The key of tag N to add to the key pair. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain [http:// or https://](http://https://。). The tag key cannot start with acs: or aliyun. Key *string `json:"Key,omitempty" xml:"Key,omitempty"` // The value of tag N to add to the key pair. 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://](http://https://。). The tag value cannot start with acs:. Value *string `json:"Value,omitempty" xml:"Value,omitempty"` } func (s ImportKeyPairRequestTag) String() string { return tea.Prettify(s) } func (s ImportKeyPairRequestTag) GoString() string { return s.String() } func (s *ImportKeyPairRequestTag) SetKey(v string) *ImportKeyPairRequestTag { s.Key = &v return s } func (s *ImportKeyPairRequestTag) SetValue(v string) *ImportKeyPairRequestTag { s.Value = &v return s } type ImportKeyPairResponseBody struct { // The fingerprint of the key pair. The MD5 message-digest algorithm is used based on the public key fingerprint format defined in RFC 4716. KeyPairFingerPrint *string `json:"KeyPairFingerPrint,omitempty" xml:"KeyPairFingerPrint,omitempty"` // The name of the key pair. KeyPairName *string `json:"KeyPairName,omitempty" xml:"KeyPairName,omitempty"` // The request ID. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s ImportKeyPairResponseBody) String() string { return tea.Prettify(s) } func (s ImportKeyPairResponseBody) GoString() string { return s.String() } func (s *ImportKeyPairResponseBody) SetKeyPairFingerPrint(v string) *ImportKeyPairResponseBody { s.KeyPairFingerPrint = &v return s } func (s *ImportKeyPairResponseBody) SetKeyPairName(v string) *ImportKeyPairResponseBody { s.KeyPairName = &v return s } func (s *ImportKeyPairResponseBody) SetRequestId(v string) *ImportKeyPairResponseBody { s.RequestId = &v return s } type ImportKeyPairResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *ImportKeyPairResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s ImportKeyPairResponse) String() string { return tea.Prettify(s) } func (s ImportKeyPairResponse) GoString() string { return s.String() } func (s *ImportKeyPairResponse) SetHeaders(v map[string]*string) *ImportKeyPairResponse { s.Headers = v return s } func (s *ImportKeyPairResponse) SetStatusCode(v int32) *ImportKeyPairResponse { s.StatusCode = &v return s } func (s *ImportKeyPairResponse) SetBody(v *ImportKeyPairResponseBody) *ImportKeyPairResponse { s.Body = v return s } type InstallCloudAssistantRequest struct { // The ID of the instance. InstanceId []*string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty" type:"Repeated"` OwnerAccount *string `json:"OwnerAccount,omitempty" xml:"OwnerAccount,omitempty"` OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` // The IDs of instances. You can specify up to 50 instance IDs in a single request. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"` ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"` } func (s InstallCloudAssistantRequest) String() string { return tea.Prettify(s) } func (s InstallCloudAssistantRequest) GoString() string { return s.String() } func (s *InstallCloudAssistantRequest) SetInstanceId(v []*string) *InstallCloudAssistantRequest { s.InstanceId = v return s } func (s *InstallCloudAssistantRequest) SetOwnerAccount(v string) *InstallCloudAssistantRequest { s.OwnerAccount = &v return s } func (s *InstallCloudAssistantRequest) SetOwnerId(v int64) *InstallCloudAssistantRequest { s.OwnerId = &v return s } func (s *InstallCloudAssistantRequest) SetRegionId(v string) *InstallCloudAssistantRequest { s.RegionId = &v return s } func (s *InstallCloudAssistantRequest) SetResourceOwnerAccount(v string) *InstallCloudAssistantRequest { s.ResourceOwnerAccount = &v return s } func (s *InstallCloudAssistantRequest) SetResourceOwnerId(v int64) *InstallCloudAssistantRequest { s.ResourceOwnerId = &v return s } type InstallCloudAssistantResponseBody struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` } func (s InstallCloudAssistantResponseBody) String() string { return tea.Prettify(s) } func (s InstallCloudAssistantResponseBody) GoString() string { return s.String() } func (s *InstallCloudAssistantResponseBody) SetRequestId(v string) *InstallCloudAssistantResponseBody { s.RequestId = &v return s } type InstallCloudAssistantResponse struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` Body *InstallCloudAssistantResponseBody `json:"body,omitempty" xml:"body,omitempty"` } func (s InstallCloudAssistantResponse) String() string { return tea.Prettify(s) } func (s InstallCloudAssistantResponse) GoString() string { return s.String() } func (s *InstallCloudAssistantResponse) SetHeaders(v map[string]*string) *InstallCloudAssistantResponse { s.Headers = v return s } func (s *InstallCloudAssistantResponse) SetStatusCode(v int32) *InstallCloudAssistantResponse { s.StatusCode = &v return s } func (s *InstallCloudAssistantResponse) SetBody(v *InstallCloudAssistantResponseBody) *InstallCloudAssistantResponse { s.Body = v return s } type InvokeCommandRequest struct { // 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](~~25693~~). ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"` // The command ID. You can call the [DescribeCommands](~~64843~~) operation to query all available command IDs. // // > Common Cloud Assistant commands can be run based on their names. For more information, see [View and run common Cloud Assistant commands](~~429635~~). CommandId *string `json:"CommandId,omitempty" xml:"CommandId,omitempty"` // The ID of the container. Only 64-bit hexadecimal strings are supported. You can use container IDs that are prefixed with `docker://`, `containerd://`, or `cri-o://` to specify container runtimes. // // Take note of the following items: // // * If this parameter is specified, Cloud Assistant runs the command in the specified container of the instance. // // * If this parameter is specified, the command can run only on Linux instances on which Cloud Assistant Agent 2.2.3.344 or later is installed. // // * For information about how to query the version of Cloud Assistant Agent, see [Install Cloud Assistant Agent](~~64921~~). // * For information about how to upgrade Cloud Assistant Agent, see [Upgrade or disable upgrades for Cloud Assistant Agent](~~134383~~). // // * If this parameter is specified, the `Username` parameter that is specified in a request to call this operation and the `WorkingDir` parameter that is specified in a request to call the [CreateCommand](~~64844~~) operation do not take effect. You can run the command only in the default working directory of the container by using the default user of the container. For more information, see [Use Cloud Assistant to run commands in containers](~~456641~~). // // * If this parameter is specified, only shell scripts can be run in Linux containers. You cannot add a command in the format 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](~~456641~~). ContainerId *string `json:"ContainerId,omitempty" xml:"ContainerId,omitempty"` // The name of the container. // // Take note of the following items: // // * If this parameter is specified, Cloud Assistant runs the command in the specified container of the instance. // // * If this parameter is specified, the command can run only on Linux instances on which Cloud Assistant Agent 2.2.3.344 or later is installed. // // * For information about how to query the version of Cloud Assistant Agent, see [Install Cloud Assistant Agent](~~64921~~). // * For information about how to upgrade Cloud Assistant Agent, see [Upgrade or disable upgrades for Cloud Assistant Agent](~~134383~~). // // * If this parameter is specified, the `Username` parameter that is specified in a request to call this operation and the `WorkingDir` parameter that is specified in a request to call the [CreateCommand](~~64844~~) operation do not take effect. You can run the command only in the default working directory of the container by using the default user of the container. For more information, see [Use Cloud Assistant to run commands in containers](~~456641~~). // // * If this parameter is specified, only shell scripts can be run in Linux containers. You cannot add a command in the format 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](~~456641~~). ContainerName *string `json:"ContainerName,omitempty" xml:"ContainerName,omitempty"` // 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 specific time, or run at specific 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