model

package
v0.1.123 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllQuotas

type AllQuotas struct {

	// 配额详情资源列表。
	Resources *[]AllResources `json:"resources,omitempty"`
}

AllQuotas 配额列表

func (AllQuotas) String

func (o AllQuotas) String() string

type AllResources

type AllResources struct {

	// 查询配额的类型。scaling_Group:伸缩组配额。scaling_Config:伸缩配置配额。scaling_Policy:伸缩策略配额。scaling_Instance:伸缩实例配额。bandwidth_scaling_policy:伸缩带宽策略配额。
	Type *AllResourcesType `json:"type,omitempty"`

	// 已使用的配额数量。当type为scaling_Policy和scaling_Instance时,该字段为保留字段,返回-1。可通过查询弹性伸缩策略和伸缩实例配额查询指定弹性伸缩组下的弹性伸缩策略和伸缩实例已使用的配额数量。
	Used *int32 `json:"used,omitempty"`

	// 配额总数量。
	Quota *int32 `json:"quota,omitempty"`

	// 配额上限。
	Max *int32 `json:"max,omitempty"`

	// 配额下限。
	Min *int32 `json:"min,omitempty"`
}

AllResources 配额资源

func (AllResources) String

func (o AllResources) String() string

type AllResourcesType

type AllResourcesType struct {
	// contains filtered or unexported fields
}

func (AllResourcesType) MarshalJSON

func (c AllResourcesType) MarshalJSON() ([]byte, error)

func (*AllResourcesType) UnmarshalJSON

func (c *AllResourcesType) UnmarshalJSON(b []byte) error

func (AllResourcesType) Value added in v0.0.90

func (c AllResourcesType) Value() string

type AllResourcesTypeEnum

type AllResourcesTypeEnum struct {
	SCALING_GROUP            AllResourcesType
	SCALING_CONFIG           AllResourcesType
	SCALING_POLICY           AllResourcesType
	SCALING_INSTANCE         AllResourcesType
	BANDWIDTH_SCALING_POLICY AllResourcesType
}

func GetAllResourcesTypeEnum

func GetAllResourcesTypeEnum() AllResourcesTypeEnum

type AllowedAddressPair added in v0.0.71

type AllowedAddressPair struct {

	// 是否开启源/目的检查开关。  默认是开启,不允许置空。  关闭:1.1.1.1/0 开启:除“1.1.1.1/0”以外的其余值均按开启处理
	IpAddress *string `json:"ip_address,omitempty"`
}

AllowedAddressPair 是否开启源/目的检查开关。

func (AllowedAddressPair) String added in v0.0.71

func (o AllowedAddressPair) String() string

type AttachCallbackInstanceLifeCycleHookRequest

type AttachCallbackInstanceLifeCycleHookRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *CallbackLifeCycleHookOption `json:"body,omitempty"`
}

AttachCallbackInstanceLifeCycleHookRequest Request Object

func (AttachCallbackInstanceLifeCycleHookRequest) String

type AttachCallbackInstanceLifeCycleHookResponse

type AttachCallbackInstanceLifeCycleHookResponse struct {
	HttpStatusCode int `json:"-"`
}

AttachCallbackInstanceLifeCycleHookResponse Response Object

func (AttachCallbackInstanceLifeCycleHookResponse) String

type BandwidthInfo

type BandwidthInfo struct {

	// 带宽(Mbit/s),按带宽分配取值范围为[1,2000],按流量分配取值范围为[1,300]。  说明: - 若share_type是PER,该参数为必选项。若share_type是WHOLE,会忽略该参数。 - 具体范围以各区域配置为准,请参见控制台对应页面显示。 - 创建带宽时的最小单位会根据带宽取值范围不同存在差异。 - 小于等于300Mbit/s:默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。 - 大于1000Mbit/s:默认最小单位为500Mbit/s。
	Size *int32 `json:"size,omitempty"`

	// 带宽的共享类型。共享类型枚举:PER:独享型。WHOLE:共享型。
	ShareType BandwidthInfoShareType `json:"share_type"`

	// 带宽的计费类型。字段值为“bandwidth”,表示按带宽计费。字段值为“traffic”,表示按流量计费。字段为其它值,会导致创建云服务器失败。如果share_type是PER,该参数为必选项。如果share_type是WHOLE,会忽略该参数。
	ChargingMode *BandwidthInfoChargingMode `json:"charging_mode,omitempty"`

	// 带宽ID,使用共享型带宽时,可以选择之前创建的共享带宽来创建弹性IP。如果share_type是PER,会忽略该参数。如果share_type是WHOLE,该参数为必选项。
	Id *string `json:"id,omitempty"`
}

BandwidthInfo 带宽信息

func (BandwidthInfo) String

func (o BandwidthInfo) String() string

type BandwidthInfoChargingMode

type BandwidthInfoChargingMode struct {
	// contains filtered or unexported fields
}

func (BandwidthInfoChargingMode) MarshalJSON

func (c BandwidthInfoChargingMode) MarshalJSON() ([]byte, error)

func (*BandwidthInfoChargingMode) UnmarshalJSON

func (c *BandwidthInfoChargingMode) UnmarshalJSON(b []byte) error

func (BandwidthInfoChargingMode) Value added in v0.0.90

type BandwidthInfoChargingModeEnum

type BandwidthInfoChargingModeEnum struct {
	BANDWIDTH BandwidthInfoChargingMode
	TRAFFIC   BandwidthInfoChargingMode
}

func GetBandwidthInfoChargingModeEnum

func GetBandwidthInfoChargingModeEnum() BandwidthInfoChargingModeEnum

type BandwidthInfoShareType

type BandwidthInfoShareType struct {
	// contains filtered or unexported fields
}

func (BandwidthInfoShareType) MarshalJSON

func (c BandwidthInfoShareType) MarshalJSON() ([]byte, error)

func (*BandwidthInfoShareType) UnmarshalJSON

func (c *BandwidthInfoShareType) UnmarshalJSON(b []byte) error

func (BandwidthInfoShareType) Value added in v0.0.90

func (c BandwidthInfoShareType) Value() string

type BandwidthInfoShareTypeEnum

type BandwidthInfoShareTypeEnum struct {
	PER   BandwidthInfoShareType
	WHOLE BandwidthInfoShareType
}

func GetBandwidthInfoShareTypeEnum

func GetBandwidthInfoShareTypeEnum() BandwidthInfoShareTypeEnum

type BandwidthResult

type BandwidthResult struct {

	// 带宽(Mbit/s)。
	Size *int32 `json:"size,omitempty"`

	// 带宽的共享类型。共享类型枚举:PER,表示独享。目前只支持独享。
	ShareType *BandwidthResultShareType `json:"share_type,omitempty"`

	// 带宽的计费类型。字段值为“bandwidth”,表示按带宽计费。字段值为“traffic”,表示按流量计费。
	ChargingMode *BandwidthResultChargingMode `json:"charging_mode,omitempty"`

	// 带宽ID,创建WHOLE类型带宽的弹性IP时指定的共享带宽。
	Id *string `json:"id,omitempty"`
}

BandwidthResult 带宽信息

func (BandwidthResult) String

func (o BandwidthResult) String() string

type BandwidthResultChargingMode

type BandwidthResultChargingMode struct {
	// contains filtered or unexported fields
}

func (BandwidthResultChargingMode) MarshalJSON

func (c BandwidthResultChargingMode) MarshalJSON() ([]byte, error)

func (*BandwidthResultChargingMode) UnmarshalJSON

func (c *BandwidthResultChargingMode) UnmarshalJSON(b []byte) error

func (BandwidthResultChargingMode) Value added in v0.0.90

type BandwidthResultChargingModeEnum

type BandwidthResultChargingModeEnum struct {
	BANDWIDTH BandwidthResultChargingMode
	TRAFFIC   BandwidthResultChargingMode
}

func GetBandwidthResultChargingModeEnum

func GetBandwidthResultChargingModeEnum() BandwidthResultChargingModeEnum

type BandwidthResultShareType

type BandwidthResultShareType struct {
	// contains filtered or unexported fields
}

func (BandwidthResultShareType) MarshalJSON

func (c BandwidthResultShareType) MarshalJSON() ([]byte, error)

func (*BandwidthResultShareType) UnmarshalJSON

func (c *BandwidthResultShareType) UnmarshalJSON(b []byte) error

func (BandwidthResultShareType) Value added in v0.0.90

func (c BandwidthResultShareType) Value() string

type BandwidthResultShareTypeEnum

type BandwidthResultShareTypeEnum struct {
	PER   BandwidthResultShareType
	WHOLE BandwidthResultShareType
}

func GetBandwidthResultShareTypeEnum

func GetBandwidthResultShareTypeEnum() BandwidthResultShareTypeEnum

type BatchAddInstancesOption

type BatchAddInstancesOption struct {

	// 云服务器ID。
	InstancesId []string `json:"instances_id"`

	// 从伸缩组中移出实例时,是否删除云服务器。默认为no;可选值为yes或no。只有action为REMOVE时,这个字段才生效。
	InstanceDelete *BatchAddInstancesOptionInstanceDelete `json:"instance_delete,omitempty"`

	// 批量操作实例action标识:添加:ADD  移除: REMOVE  设置实例保护: PROTECT  取消实例保护: UNPROTECT;转入备用状态:ENTER_STANDBY 移出备用状态:EXIT_STANDBY
	Action BatchAddInstancesOptionAction `json:"action"`

	// 将实例移入备用状态时,是否补充新的云服务器。取值如下:no:不补充新的实例,默认情况为no。yes:补充新的实例。只有action为ENTER_STANDBY时,这个字段才生效。
	InstanceAppend *BatchAddInstancesOptionInstanceAppend `json:"instance_append,omitempty"`
}

BatchAddInstancesOption 批量添加实例

func (BatchAddInstancesOption) String

func (o BatchAddInstancesOption) String() string

type BatchAddInstancesOptionAction

type BatchAddInstancesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchAddInstancesOptionAction) MarshalJSON

func (c BatchAddInstancesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchAddInstancesOptionAction) UnmarshalJSON

func (c *BatchAddInstancesOptionAction) UnmarshalJSON(b []byte) error

func (BatchAddInstancesOptionAction) Value added in v0.0.90

type BatchAddInstancesOptionActionEnum

type BatchAddInstancesOptionActionEnum struct {
	ADD BatchAddInstancesOptionAction
}

func GetBatchAddInstancesOptionActionEnum

func GetBatchAddInstancesOptionActionEnum() BatchAddInstancesOptionActionEnum

type BatchAddInstancesOptionInstanceAppend

type BatchAddInstancesOptionInstanceAppend struct {
	// contains filtered or unexported fields
}

func (BatchAddInstancesOptionInstanceAppend) MarshalJSON

func (c BatchAddInstancesOptionInstanceAppend) MarshalJSON() ([]byte, error)

func (*BatchAddInstancesOptionInstanceAppend) UnmarshalJSON

func (c *BatchAddInstancesOptionInstanceAppend) UnmarshalJSON(b []byte) error

func (BatchAddInstancesOptionInstanceAppend) Value added in v0.0.90

type BatchAddInstancesOptionInstanceDelete

type BatchAddInstancesOptionInstanceDelete struct {
	// contains filtered or unexported fields
}

func (BatchAddInstancesOptionInstanceDelete) MarshalJSON

func (c BatchAddInstancesOptionInstanceDelete) MarshalJSON() ([]byte, error)

func (*BatchAddInstancesOptionInstanceDelete) UnmarshalJSON

func (c *BatchAddInstancesOptionInstanceDelete) UnmarshalJSON(b []byte) error

func (BatchAddInstancesOptionInstanceDelete) Value added in v0.0.90

type BatchAddScalingInstancesRequest

type BatchAddScalingInstancesRequest struct {

	// 实例ID。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *BatchAddInstancesOption `json:"body,omitempty"`
}

BatchAddScalingInstancesRequest Request Object

func (BatchAddScalingInstancesRequest) String

type BatchAddScalingInstancesResponse

type BatchAddScalingInstancesResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchAddScalingInstancesResponse Response Object

func (BatchAddScalingInstancesResponse) String

type BatchDeleteScalingConfigOption

type BatchDeleteScalingConfigOption struct {

	// 伸缩配置ID。
	ScalingConfigurationId []string `json:"scaling_configuration_id"`
}

BatchDeleteScalingConfigOption 批量删除伸缩配置请求

func (BatchDeleteScalingConfigOption) String

type BatchDeleteScalingConfigsRequest

type BatchDeleteScalingConfigsRequest struct {
	Body *BatchDeleteScalingConfigOption `json:"body,omitempty"`
}

BatchDeleteScalingConfigsRequest Request Object

func (BatchDeleteScalingConfigsRequest) String

type BatchDeleteScalingConfigsResponse

type BatchDeleteScalingConfigsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchDeleteScalingConfigsResponse Response Object

func (BatchDeleteScalingConfigsResponse) String

type BatchDeleteScalingPoliciesOption

type BatchDeleteScalingPoliciesOption struct {

	// 伸缩策略ID。
	ScalingPolicyId []string `json:"scaling_policy_id"`

	// 是否强制删除伸缩策略。默认为no,可选值为yes或no。只有action为delete时,该字段才生效。
	ForceDelete *BatchDeleteScalingPoliciesOptionForceDelete `json:"force_delete,omitempty"`

	// 批量操作伸缩策略action标识:删除:delete。启用:resume。停止:pause。
	Action BatchDeleteScalingPoliciesOptionAction `json:"action"`

	// 是否删除告警策略使用的告警规则。可选值为yes或no,默认为no。 只有action为delete时,该字段才生效。
	DeleteAlarm *string `json:"delete_alarm,omitempty"`
}

BatchDeleteScalingPoliciesOption 批量操作弹性伸缩策略

func (BatchDeleteScalingPoliciesOption) String

type BatchDeleteScalingPoliciesOptionAction

type BatchDeleteScalingPoliciesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchDeleteScalingPoliciesOptionAction) MarshalJSON

func (c BatchDeleteScalingPoliciesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchDeleteScalingPoliciesOptionAction) UnmarshalJSON

func (c *BatchDeleteScalingPoliciesOptionAction) UnmarshalJSON(b []byte) error

func (BatchDeleteScalingPoliciesOptionAction) Value added in v0.0.90

type BatchDeleteScalingPoliciesOptionActionEnum

type BatchDeleteScalingPoliciesOptionActionEnum struct {
	DELETE BatchDeleteScalingPoliciesOptionAction
}

func GetBatchDeleteScalingPoliciesOptionActionEnum

func GetBatchDeleteScalingPoliciesOptionActionEnum() BatchDeleteScalingPoliciesOptionActionEnum

type BatchDeleteScalingPoliciesOptionForceDelete

type BatchDeleteScalingPoliciesOptionForceDelete struct {
	// contains filtered or unexported fields
}

func (BatchDeleteScalingPoliciesOptionForceDelete) MarshalJSON

func (*BatchDeleteScalingPoliciesOptionForceDelete) UnmarshalJSON

func (BatchDeleteScalingPoliciesOptionForceDelete) Value added in v0.0.90

type BatchDeleteScalingPoliciesRequest

type BatchDeleteScalingPoliciesRequest struct {
	Body *BatchDeleteScalingPoliciesOption `json:"body,omitempty"`
}

BatchDeleteScalingPoliciesRequest Request Object

func (BatchDeleteScalingPoliciesRequest) String

type BatchDeleteScalingPoliciesResponse

type BatchDeleteScalingPoliciesResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchDeleteScalingPoliciesResponse Response Object

func (BatchDeleteScalingPoliciesResponse) String

type BatchEnterStandbyInstancesOption

type BatchEnterStandbyInstancesOption struct {

	// 云服务器ID。
	InstancesId []string `json:"instances_id"`

	// 从伸缩组中移出实例时,是否删除云服务器。默认为no;可选值为yes或no。只有action为REMOVE时,这个字段才生效。
	InstanceDelete *BatchEnterStandbyInstancesOptionInstanceDelete `json:"instance_delete,omitempty"`

	// 批量操作实例action标识:添加:ADD  移除: REMOVE  设置实例保护: PROTECT  取消实例保护: UNPROTECT;转入备用状态:ENTER_STANDBY 移出备用状态:EXIT_STANDBY
	Action BatchEnterStandbyInstancesOptionAction `json:"action"`

	// 将实例移入备用状态时,是否补充新的云服务器。取值如下:no:不补充新的实例,默认情况为no。yes:补充新的实例。只有action为ENTER_STANDBY时,这个字段才生效。
	InstanceAppend *BatchEnterStandbyInstancesOptionInstanceAppend `json:"instance_append,omitempty"`
}

BatchEnterStandbyInstancesOption 批量将实例转入备用状态

func (BatchEnterStandbyInstancesOption) String

type BatchEnterStandbyInstancesOptionAction

type BatchEnterStandbyInstancesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchEnterStandbyInstancesOptionAction) MarshalJSON

func (c BatchEnterStandbyInstancesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchEnterStandbyInstancesOptionAction) UnmarshalJSON

func (c *BatchEnterStandbyInstancesOptionAction) UnmarshalJSON(b []byte) error

func (BatchEnterStandbyInstancesOptionAction) Value added in v0.0.90

type BatchEnterStandbyInstancesOptionActionEnum

type BatchEnterStandbyInstancesOptionActionEnum struct {
	ENTER_STANDBY BatchEnterStandbyInstancesOptionAction
}

func GetBatchEnterStandbyInstancesOptionActionEnum

func GetBatchEnterStandbyInstancesOptionActionEnum() BatchEnterStandbyInstancesOptionActionEnum

type BatchEnterStandbyInstancesOptionInstanceAppend

type BatchEnterStandbyInstancesOptionInstanceAppend struct {
	// contains filtered or unexported fields
}

func (BatchEnterStandbyInstancesOptionInstanceAppend) MarshalJSON

func (*BatchEnterStandbyInstancesOptionInstanceAppend) UnmarshalJSON

func (BatchEnterStandbyInstancesOptionInstanceAppend) Value added in v0.0.90

type BatchEnterStandbyInstancesOptionInstanceDelete

type BatchEnterStandbyInstancesOptionInstanceDelete struct {
	// contains filtered or unexported fields
}

func (BatchEnterStandbyInstancesOptionInstanceDelete) MarshalJSON

func (*BatchEnterStandbyInstancesOptionInstanceDelete) UnmarshalJSON

func (BatchEnterStandbyInstancesOptionInstanceDelete) Value added in v0.0.90

type BatchExitStandByInstancesOption

type BatchExitStandByInstancesOption struct {

	// 云服务器ID。
	InstancesId []string `json:"instances_id"`

	// 从伸缩组中移出实例时,是否删除云服务器。默认为no;可选值为yes或no。只有action为REMOVE时,这个字段才生效。
	InstanceDelete *BatchExitStandByInstancesOptionInstanceDelete `json:"instance_delete,omitempty"`

	// 批量操作实例action标识:添加:ADD  移除: REMOVE  设置实例保护: PROTECT  取消实例保护: UNPROTECT;转入备用状态:ENTER_STANDBY 移出备用状态:EXIT_STANDBY
	Action BatchExitStandByInstancesOptionAction `json:"action"`

	// 将实例移入备用状态时,是否补充新的云服务器。取值如下:no:不补充新的实例,默认情况为no。yes:补充新的实例。只有action为ENTER_STANDBY时,这个字段才生效。
	InstanceAppend *BatchExitStandByInstancesOptionInstanceAppend `json:"instance_append,omitempty"`
}

BatchExitStandByInstancesOption 批量将实例移出备用状态

func (BatchExitStandByInstancesOption) String

type BatchExitStandByInstancesOptionAction

type BatchExitStandByInstancesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchExitStandByInstancesOptionAction) MarshalJSON

func (c BatchExitStandByInstancesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchExitStandByInstancesOptionAction) UnmarshalJSON

func (c *BatchExitStandByInstancesOptionAction) UnmarshalJSON(b []byte) error

func (BatchExitStandByInstancesOptionAction) Value added in v0.0.90

type BatchExitStandByInstancesOptionActionEnum

type BatchExitStandByInstancesOptionActionEnum struct {
	EXIT_STANDBY BatchExitStandByInstancesOptionAction
}

func GetBatchExitStandByInstancesOptionActionEnum

func GetBatchExitStandByInstancesOptionActionEnum() BatchExitStandByInstancesOptionActionEnum

type BatchExitStandByInstancesOptionInstanceAppend

type BatchExitStandByInstancesOptionInstanceAppend struct {
	// contains filtered or unexported fields
}

func (BatchExitStandByInstancesOptionInstanceAppend) MarshalJSON

func (*BatchExitStandByInstancesOptionInstanceAppend) UnmarshalJSON

func (BatchExitStandByInstancesOptionInstanceAppend) Value added in v0.0.90

type BatchExitStandByInstancesOptionInstanceDelete

type BatchExitStandByInstancesOptionInstanceDelete struct {
	// contains filtered or unexported fields
}

func (BatchExitStandByInstancesOptionInstanceDelete) MarshalJSON

func (*BatchExitStandByInstancesOptionInstanceDelete) UnmarshalJSON

func (BatchExitStandByInstancesOptionInstanceDelete) Value added in v0.0.90

type BatchPauseScalingPoliciesOption

type BatchPauseScalingPoliciesOption struct {

	// 伸缩策略ID。
	ScalingPolicyId []string `json:"scaling_policy_id"`

	// 是否强制删除伸缩策略。默认为no,可选值为yes或no。只有action为delete时,该字段才生效。
	ForceDelete *BatchPauseScalingPoliciesOptionForceDelete `json:"force_delete,omitempty"`

	// 批量操作伸缩策略action标识:删除:delete。启用:resume。停止:pause。
	Action BatchPauseScalingPoliciesOptionAction `json:"action"`

	// 是否删除告警策略使用的告警规则。可选值为yes或no,默认为no。 只有action为delete时,该字段才生效。
	DeleteAlarm *string `json:"delete_alarm,omitempty"`
}

BatchPauseScalingPoliciesOption 批量操作弹性伸缩策略

func (BatchPauseScalingPoliciesOption) String

type BatchPauseScalingPoliciesOptionAction

type BatchPauseScalingPoliciesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchPauseScalingPoliciesOptionAction) MarshalJSON

func (c BatchPauseScalingPoliciesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchPauseScalingPoliciesOptionAction) UnmarshalJSON

func (c *BatchPauseScalingPoliciesOptionAction) UnmarshalJSON(b []byte) error

func (BatchPauseScalingPoliciesOptionAction) Value added in v0.0.90

type BatchPauseScalingPoliciesOptionActionEnum

type BatchPauseScalingPoliciesOptionActionEnum struct {
	PAUSE BatchPauseScalingPoliciesOptionAction
}

func GetBatchPauseScalingPoliciesOptionActionEnum

func GetBatchPauseScalingPoliciesOptionActionEnum() BatchPauseScalingPoliciesOptionActionEnum

type BatchPauseScalingPoliciesOptionForceDelete

type BatchPauseScalingPoliciesOptionForceDelete struct {
	// contains filtered or unexported fields
}

func (BatchPauseScalingPoliciesOptionForceDelete) MarshalJSON

func (*BatchPauseScalingPoliciesOptionForceDelete) UnmarshalJSON

func (BatchPauseScalingPoliciesOptionForceDelete) Value added in v0.0.90

type BatchPauseScalingPoliciesRequest

type BatchPauseScalingPoliciesRequest struct {
	Body *BatchPauseScalingPoliciesOption `json:"body,omitempty"`
}

BatchPauseScalingPoliciesRequest Request Object

func (BatchPauseScalingPoliciesRequest) String

type BatchPauseScalingPoliciesResponse

type BatchPauseScalingPoliciesResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchPauseScalingPoliciesResponse Response Object

func (BatchPauseScalingPoliciesResponse) String

type BatchProtectInstancesOption

type BatchProtectInstancesOption struct {

	// 云服务器ID。
	InstancesId []string `json:"instances_id"`

	// 从伸缩组中移出实例时,是否删除云服务器。默认为no;可选值为yes或no。只有action为REMOVE时,这个字段才生效。
	InstanceDelete *BatchProtectInstancesOptionInstanceDelete `json:"instance_delete,omitempty"`

	// 批量操作实例action标识:添加:ADD  移除: REMOVE  设置实例保护: PROTECT  取消实例保护: UNPROTECT;转入备用状态:ENTER_STANDBY 移出备用状态:EXIT_STANDBY
	Action BatchProtectInstancesOptionAction `json:"action"`

	// 将实例移入备用状态时,是否补充新的云服务器。取值如下:no:不补充新的实例,默认情况为no。yes:补充新的实例。只有action为ENTER_STANDBY时,这个字段才生效。
	InstanceAppend *BatchProtectInstancesOptionInstanceAppend `json:"instance_append,omitempty"`
}

BatchProtectInstancesOption 批量设置实例保护

func (BatchProtectInstancesOption) String

type BatchProtectInstancesOptionAction

type BatchProtectInstancesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchProtectInstancesOptionAction) MarshalJSON

func (c BatchProtectInstancesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchProtectInstancesOptionAction) UnmarshalJSON

func (c *BatchProtectInstancesOptionAction) UnmarshalJSON(b []byte) error

func (BatchProtectInstancesOptionAction) Value added in v0.0.90

type BatchProtectInstancesOptionActionEnum

type BatchProtectInstancesOptionActionEnum struct {
	PROTECT BatchProtectInstancesOptionAction
}

func GetBatchProtectInstancesOptionActionEnum

func GetBatchProtectInstancesOptionActionEnum() BatchProtectInstancesOptionActionEnum

type BatchProtectInstancesOptionInstanceAppend

type BatchProtectInstancesOptionInstanceAppend struct {
	// contains filtered or unexported fields
}

func (BatchProtectInstancesOptionInstanceAppend) MarshalJSON

func (*BatchProtectInstancesOptionInstanceAppend) UnmarshalJSON

func (BatchProtectInstancesOptionInstanceAppend) Value added in v0.0.90

type BatchProtectInstancesOptionInstanceDelete

type BatchProtectInstancesOptionInstanceDelete struct {
	// contains filtered or unexported fields
}

func (BatchProtectInstancesOptionInstanceDelete) MarshalJSON

func (*BatchProtectInstancesOptionInstanceDelete) UnmarshalJSON

func (BatchProtectInstancesOptionInstanceDelete) Value added in v0.0.90

type BatchProtectScalingInstancesRequest

type BatchProtectScalingInstancesRequest struct {

	// 实例ID。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *BatchProtectInstancesOption `json:"body,omitempty"`
}

BatchProtectScalingInstancesRequest Request Object

func (BatchProtectScalingInstancesRequest) String

type BatchProtectScalingInstancesResponse

type BatchProtectScalingInstancesResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchProtectScalingInstancesResponse Response Object

func (BatchProtectScalingInstancesResponse) String

type BatchRemoveInstancesOption

type BatchRemoveInstancesOption struct {

	// 云服务器ID。
	InstancesId []string `json:"instances_id"`

	// 从伸缩组中移出实例时,是否删除云服务器。默认为no;可选值为yes或no。只有action为REMOVE时,这个字段才生效。
	InstanceDelete *BatchRemoveInstancesOptionInstanceDelete `json:"instance_delete,omitempty"`

	// 批量操作实例action标识:添加:ADD  移除: REMOVE  设置实例保护: PROTECT  取消实例保护: UNPROTECT;转入备用状态:ENTER_STANDBY 移出备用状态:EXIT_STANDBY
	Action BatchRemoveInstancesOptionAction `json:"action"`

	// 将实例移入备用状态时,是否补充新的云服务器。取值如下:no:不补充新的实例,默认情况为no。yes:补充新的实例。只有action为ENTER_STANDBY时,这个字段才生效。
	InstanceAppend *BatchRemoveInstancesOptionInstanceAppend `json:"instance_append,omitempty"`
}

BatchRemoveInstancesOption 批量移除实例

func (BatchRemoveInstancesOption) String

type BatchRemoveInstancesOptionAction

type BatchRemoveInstancesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchRemoveInstancesOptionAction) MarshalJSON

func (c BatchRemoveInstancesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchRemoveInstancesOptionAction) UnmarshalJSON

func (c *BatchRemoveInstancesOptionAction) UnmarshalJSON(b []byte) error

func (BatchRemoveInstancesOptionAction) Value added in v0.0.90

type BatchRemoveInstancesOptionActionEnum

type BatchRemoveInstancesOptionActionEnum struct {
	REMOVE BatchRemoveInstancesOptionAction
}

func GetBatchRemoveInstancesOptionActionEnum

func GetBatchRemoveInstancesOptionActionEnum() BatchRemoveInstancesOptionActionEnum

type BatchRemoveInstancesOptionInstanceAppend

type BatchRemoveInstancesOptionInstanceAppend struct {
	// contains filtered or unexported fields
}

func (BatchRemoveInstancesOptionInstanceAppend) MarshalJSON

func (*BatchRemoveInstancesOptionInstanceAppend) UnmarshalJSON

func (c *BatchRemoveInstancesOptionInstanceAppend) UnmarshalJSON(b []byte) error

func (BatchRemoveInstancesOptionInstanceAppend) Value added in v0.0.90

type BatchRemoveInstancesOptionInstanceDelete

type BatchRemoveInstancesOptionInstanceDelete struct {
	// contains filtered or unexported fields
}

func (BatchRemoveInstancesOptionInstanceDelete) MarshalJSON

func (*BatchRemoveInstancesOptionInstanceDelete) UnmarshalJSON

func (c *BatchRemoveInstancesOptionInstanceDelete) UnmarshalJSON(b []byte) error

func (BatchRemoveInstancesOptionInstanceDelete) Value added in v0.0.90

type BatchRemoveScalingInstancesRequest

type BatchRemoveScalingInstancesRequest struct {

	// 实例ID。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *BatchRemoveInstancesOption `json:"body,omitempty"`
}

BatchRemoveScalingInstancesRequest Request Object

func (BatchRemoveScalingInstancesRequest) String

type BatchRemoveScalingInstancesResponse

type BatchRemoveScalingInstancesResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchRemoveScalingInstancesResponse Response Object

func (BatchRemoveScalingInstancesResponse) String

type BatchResumeScalingPoliciesOption

type BatchResumeScalingPoliciesOption struct {

	// 伸缩策略ID。
	ScalingPolicyId []string `json:"scaling_policy_id"`

	// 是否强制删除伸缩策略。默认为no,可选值为yes或no。只有action为delete时,该字段才生效。
	ForceDelete *BatchResumeScalingPoliciesOptionForceDelete `json:"force_delete,omitempty"`

	// 批量操作伸缩策略action标识:删除:delete。启用:resume。停止:pause。
	Action BatchResumeScalingPoliciesOptionAction `json:"action"`

	// 是否删除告警策略使用的告警规则。可选值为yes或no,默认为no。 只有action为delete时,该字段才生效。
	DeleteAlarm *string `json:"delete_alarm,omitempty"`
}

BatchResumeScalingPoliciesOption 批量操作弹性伸缩策略

func (BatchResumeScalingPoliciesOption) String

type BatchResumeScalingPoliciesOptionAction

type BatchResumeScalingPoliciesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchResumeScalingPoliciesOptionAction) MarshalJSON

func (c BatchResumeScalingPoliciesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchResumeScalingPoliciesOptionAction) UnmarshalJSON

func (c *BatchResumeScalingPoliciesOptionAction) UnmarshalJSON(b []byte) error

func (BatchResumeScalingPoliciesOptionAction) Value added in v0.0.90

type BatchResumeScalingPoliciesOptionActionEnum

type BatchResumeScalingPoliciesOptionActionEnum struct {
	RESUME BatchResumeScalingPoliciesOptionAction
}

func GetBatchResumeScalingPoliciesOptionActionEnum

func GetBatchResumeScalingPoliciesOptionActionEnum() BatchResumeScalingPoliciesOptionActionEnum

type BatchResumeScalingPoliciesOptionForceDelete

type BatchResumeScalingPoliciesOptionForceDelete struct {
	// contains filtered or unexported fields
}

func (BatchResumeScalingPoliciesOptionForceDelete) MarshalJSON

func (*BatchResumeScalingPoliciesOptionForceDelete) UnmarshalJSON

func (BatchResumeScalingPoliciesOptionForceDelete) Value added in v0.0.90

type BatchResumeScalingPoliciesRequest

type BatchResumeScalingPoliciesRequest struct {
	Body *BatchResumeScalingPoliciesOption `json:"body,omitempty"`
}

BatchResumeScalingPoliciesRequest Request Object

func (BatchResumeScalingPoliciesRequest) String

type BatchResumeScalingPoliciesResponse

type BatchResumeScalingPoliciesResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchResumeScalingPoliciesResponse Response Object

func (BatchResumeScalingPoliciesResponse) String

type BatchSetScalingInstancesStandbyRequest

type BatchSetScalingInstancesStandbyRequest struct {

	// 实例ID。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *BatchEnterStandbyInstancesOption `json:"body,omitempty"`
}

BatchSetScalingInstancesStandbyRequest Request Object

func (BatchSetScalingInstancesStandbyRequest) String

type BatchSetScalingInstancesStandbyResponse

type BatchSetScalingInstancesStandbyResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchSetScalingInstancesStandbyResponse Response Object

func (BatchSetScalingInstancesStandbyResponse) String

type BatchUnprotectInstancesOption

type BatchUnprotectInstancesOption struct {

	// 云服务器ID。
	InstancesId []string `json:"instances_id"`

	// 从伸缩组中移出实例时,是否删除云服务器。默认为no;可选值为yes或no。只有action为REMOVE时,这个字段才生效。
	InstanceDelete *BatchUnprotectInstancesOptionInstanceDelete `json:"instance_delete,omitempty"`

	// 批量操作实例action标识:添加:ADD  移除: REMOVE  设置实例保护: PROTECT  取消实例保护: UNPROTECT;转入备用状态:ENTER_STANDBY 移出备用状态:EXIT_STANDBY
	Action BatchUnprotectInstancesOptionAction `json:"action"`

	// 将实例移入备用状态时,是否补充新的云服务器。取值如下:no:不补充新的实例,默认情况为no。yes:补充新的实例。只有action为ENTER_STANDBY时,这个字段才生效。
	InstanceAppend *BatchUnprotectInstancesOptionInstanceAppend `json:"instance_append,omitempty"`
}

BatchUnprotectInstancesOption 批量取消实例保护

func (BatchUnprotectInstancesOption) String

type BatchUnprotectInstancesOptionAction

type BatchUnprotectInstancesOptionAction struct {
	// contains filtered or unexported fields
}

func (BatchUnprotectInstancesOptionAction) MarshalJSON

func (c BatchUnprotectInstancesOptionAction) MarshalJSON() ([]byte, error)

func (*BatchUnprotectInstancesOptionAction) UnmarshalJSON

func (c *BatchUnprotectInstancesOptionAction) UnmarshalJSON(b []byte) error

func (BatchUnprotectInstancesOptionAction) Value added in v0.0.90

type BatchUnprotectInstancesOptionActionEnum

type BatchUnprotectInstancesOptionActionEnum struct {
	UNPROTECT BatchUnprotectInstancesOptionAction
}

func GetBatchUnprotectInstancesOptionActionEnum

func GetBatchUnprotectInstancesOptionActionEnum() BatchUnprotectInstancesOptionActionEnum

type BatchUnprotectInstancesOptionInstanceAppend

type BatchUnprotectInstancesOptionInstanceAppend struct {
	// contains filtered or unexported fields
}

func (BatchUnprotectInstancesOptionInstanceAppend) MarshalJSON

func (*BatchUnprotectInstancesOptionInstanceAppend) UnmarshalJSON

func (BatchUnprotectInstancesOptionInstanceAppend) Value added in v0.0.90

type BatchUnprotectInstancesOptionInstanceDelete

type BatchUnprotectInstancesOptionInstanceDelete struct {
	// contains filtered or unexported fields
}

func (BatchUnprotectInstancesOptionInstanceDelete) MarshalJSON

func (*BatchUnprotectInstancesOptionInstanceDelete) UnmarshalJSON

func (BatchUnprotectInstancesOptionInstanceDelete) Value added in v0.0.90

type BatchUnprotectScalingInstancesRequest

type BatchUnprotectScalingInstancesRequest struct {

	// 实例ID。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *BatchUnprotectInstancesOption `json:"body,omitempty"`
}

BatchUnprotectScalingInstancesRequest Request Object

func (BatchUnprotectScalingInstancesRequest) String

type BatchUnprotectScalingInstancesResponse

type BatchUnprotectScalingInstancesResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchUnprotectScalingInstancesResponse Response Object

func (BatchUnprotectScalingInstancesResponse) String

type BatchUnsetScalingInstancesStantbyRequest added in v0.0.50

type BatchUnsetScalingInstancesStantbyRequest struct {

	// 实例ID。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *BatchExitStandByInstancesOption `json:"body,omitempty"`
}

BatchUnsetScalingInstancesStantbyRequest Request Object

func (BatchUnsetScalingInstancesStantbyRequest) String added in v0.0.50

type BatchUnsetScalingInstancesStantbyResponse added in v0.0.50

type BatchUnsetScalingInstancesStantbyResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchUnsetScalingInstancesStantbyResponse Response Object

func (BatchUnsetScalingInstancesStantbyResponse) String added in v0.0.50

type CallbackLifeCycleHookOption

type CallbackLifeCycleHookOption struct {

	// 生命周期操作令牌,通过查询伸缩实例挂起信息接口获取。指定生命周期回调对象,当不传入instance_id字段时,该字段为必选。当该字段与instance_id字段都传入,优先使用该字段进行回调。
	LifecycleActionKey *string `json:"lifecycle_action_key,omitempty"`

	// 实例ID。指定生命周期回调对象,当不传入lifecycle_action_key字段时,该字段为必选。
	InstanceId *string `json:"instance_id,omitempty"`

	// 生命周期挂钩名称。指定生命周期回调对象,当不传入lifecycle_action_key字段时,该字段为必选。
	LifecycleHookName *string `json:"lifecycle_hook_name,omitempty"`

	// 生命周期回调操作。ABANDON:终止。CONTINUE:继续。EXTEND:延长超时时间,每次延长1小时。
	LifecycleActionResult CallbackLifeCycleHookOptionLifecycleActionResult `json:"lifecycle_action_result"`
}

CallbackLifeCycleHookOption 伸缩实例生命周期回调

func (CallbackLifeCycleHookOption) String

type CallbackLifeCycleHookOptionLifecycleActionResult

type CallbackLifeCycleHookOptionLifecycleActionResult struct {
	// contains filtered or unexported fields
}

func (CallbackLifeCycleHookOptionLifecycleActionResult) MarshalJSON

func (*CallbackLifeCycleHookOptionLifecycleActionResult) UnmarshalJSON

func (CallbackLifeCycleHookOptionLifecycleActionResult) Value added in v0.0.90

type CreateGroupScheduledTaskRequest added in v0.1.48

type CreateGroupScheduledTaskRequest struct {

	// 伸缩组ID
	ScalingGroupId string `json:"scaling_group_id"`

	Body *CreateScheduledTaskOption `json:"body,omitempty"`
}

CreateGroupScheduledTaskRequest Request Object

func (CreateGroupScheduledTaskRequest) String added in v0.1.48

type CreateGroupScheduledTaskResponse added in v0.1.48

type CreateGroupScheduledTaskResponse struct {

	// 计划任务ID
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateGroupScheduledTaskResponse Response Object

func (CreateGroupScheduledTaskResponse) String added in v0.1.48

type CreateLifeCycleHookOption

type CreateLifeCycleHookOption struct {

	// 生命周期挂钩名称(1-32个字符),只能包含字母、数字、下划线或中划线。
	LifecycleHookName string `json:"lifecycle_hook_name"`

	// 生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
	LifecycleHookType CreateLifeCycleHookOptionLifecycleHookType `json:"lifecycle_hook_type"`

	// 生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
	DefaultResult *CreateLifeCycleHookOptionDefaultResult `json:"default_result,omitempty"`

	// 生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
	DefaultTimeout *int32 `json:"default_timeout,omitempty"`

	// SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
	NotificationTopicUrn string `json:"notification_topic_urn"`

	// 自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
	NotificationMetadata *string `json:"notification_metadata,omitempty"`
}

CreateLifeCycleHookOption 创建生命周期挂钩

func (CreateLifeCycleHookOption) String

func (o CreateLifeCycleHookOption) String() string

type CreateLifeCycleHookOptionDefaultResult

type CreateLifeCycleHookOptionDefaultResult struct {
	// contains filtered or unexported fields
}

func (CreateLifeCycleHookOptionDefaultResult) MarshalJSON

func (c CreateLifeCycleHookOptionDefaultResult) MarshalJSON() ([]byte, error)

func (*CreateLifeCycleHookOptionDefaultResult) UnmarshalJSON

func (c *CreateLifeCycleHookOptionDefaultResult) UnmarshalJSON(b []byte) error

func (CreateLifeCycleHookOptionDefaultResult) Value added in v0.0.90

type CreateLifeCycleHookOptionDefaultResultEnum

type CreateLifeCycleHookOptionDefaultResultEnum struct {
	ABANDON  CreateLifeCycleHookOptionDefaultResult
	CONTINUE CreateLifeCycleHookOptionDefaultResult
}

func GetCreateLifeCycleHookOptionDefaultResultEnum

func GetCreateLifeCycleHookOptionDefaultResultEnum() CreateLifeCycleHookOptionDefaultResultEnum

type CreateLifeCycleHookOptionLifecycleHookType

type CreateLifeCycleHookOptionLifecycleHookType struct {
	// contains filtered or unexported fields
}

func (CreateLifeCycleHookOptionLifecycleHookType) MarshalJSON

func (*CreateLifeCycleHookOptionLifecycleHookType) UnmarshalJSON

func (CreateLifeCycleHookOptionLifecycleHookType) Value added in v0.0.90

type CreateLifeCycleHookOptionLifecycleHookTypeEnum

type CreateLifeCycleHookOptionLifecycleHookTypeEnum struct {
	INSTANCE_TERMINATING CreateLifeCycleHookOptionLifecycleHookType
	INSTANCE_LAUNCHING   CreateLifeCycleHookOptionLifecycleHookType
}

func GetCreateLifeCycleHookOptionLifecycleHookTypeEnum

func GetCreateLifeCycleHookOptionLifecycleHookTypeEnum() CreateLifeCycleHookOptionLifecycleHookTypeEnum

type CreateLifyCycleHookRequest

type CreateLifyCycleHookRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *CreateLifeCycleHookOption `json:"body,omitempty"`
}

CreateLifyCycleHookRequest Request Object

func (CreateLifyCycleHookRequest) String

type CreateLifyCycleHookResponse

type CreateLifyCycleHookResponse struct {

	// 生命周期挂钩名称。
	LifecycleHookName *string `json:"lifecycle_hook_name,omitempty"`

	// 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
	LifecycleHookType *CreateLifyCycleHookResponseLifecycleHookType `json:"lifecycle_hook_type,omitempty"`

	// 生命周期挂钩默认回调操作。ABANDON;CONTINUE
	DefaultResult *CreateLifyCycleHookResponseDefaultResult `json:"default_result,omitempty"`

	// 生命周期挂钩超时时间,单位秒。
	DefaultTimeout *int32 `json:"default_timeout,omitempty"`

	// SMN服务中Topic的唯一的资源标识。
	NotificationTopicUrn *string `json:"notification_topic_urn,omitempty"`

	// SMN服务中Topic的资源名称。
	NotificationTopicName *string `json:"notification_topic_name,omitempty"`

	// 自定义通知消息。
	NotificationMetadata *string `json:"notification_metadata,omitempty"`

	// 生命周期挂钩创建时间,遵循UTC时间。
	CreateTime     *string `json:"create_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateLifyCycleHookResponse Response Object

func (CreateLifyCycleHookResponse) String

type CreateLifyCycleHookResponseDefaultResult

type CreateLifyCycleHookResponseDefaultResult struct {
	// contains filtered or unexported fields
}

func (CreateLifyCycleHookResponseDefaultResult) MarshalJSON

func (*CreateLifyCycleHookResponseDefaultResult) UnmarshalJSON

func (c *CreateLifyCycleHookResponseDefaultResult) UnmarshalJSON(b []byte) error

func (CreateLifyCycleHookResponseDefaultResult) Value added in v0.0.90

type CreateLifyCycleHookResponseDefaultResultEnum

type CreateLifyCycleHookResponseDefaultResultEnum struct {
	ABANDON  CreateLifyCycleHookResponseDefaultResult
	CONTINUE CreateLifyCycleHookResponseDefaultResult
}

func GetCreateLifyCycleHookResponseDefaultResultEnum

func GetCreateLifyCycleHookResponseDefaultResultEnum() CreateLifyCycleHookResponseDefaultResultEnum

type CreateLifyCycleHookResponseLifecycleHookType

type CreateLifyCycleHookResponseLifecycleHookType struct {
	// contains filtered or unexported fields
}

func (CreateLifyCycleHookResponseLifecycleHookType) MarshalJSON

func (*CreateLifyCycleHookResponseLifecycleHookType) UnmarshalJSON

func (CreateLifyCycleHookResponseLifecycleHookType) Value added in v0.0.90

type CreateLifyCycleHookResponseLifecycleHookTypeEnum

type CreateLifyCycleHookResponseLifecycleHookTypeEnum struct {
	INSTANCE_TERMINATING CreateLifyCycleHookResponseLifecycleHookType
	INSTANCE_LAUNCHING   CreateLifyCycleHookResponseLifecycleHookType
}

func GetCreateLifyCycleHookResponseLifecycleHookTypeEnum

func GetCreateLifyCycleHookResponseLifecycleHookTypeEnum() CreateLifyCycleHookResponseLifecycleHookTypeEnum

type CreateNotificationOption

type CreateNotificationOption struct {

	// SMN服务中Topic的唯一的资源标识。
	TopicUrn string `json:"topic_urn"`

	// 通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
	TopicScene []CreateNotificationOptionTopicScene `json:"topic_scene"`
}

CreateNotificationOption 配置伸缩组通知

func (CreateNotificationOption) String

func (o CreateNotificationOption) String() string

type CreateNotificationOptionTopicScene

type CreateNotificationOptionTopicScene struct {
	// contains filtered or unexported fields
}

func (CreateNotificationOptionTopicScene) MarshalJSON

func (c CreateNotificationOptionTopicScene) MarshalJSON() ([]byte, error)

func (*CreateNotificationOptionTopicScene) UnmarshalJSON

func (c *CreateNotificationOptionTopicScene) UnmarshalJSON(b []byte) error

func (CreateNotificationOptionTopicScene) Value added in v0.0.90

type CreateNotificationOptionTopicSceneEnum

type CreateNotificationOptionTopicSceneEnum struct {
	SCALING_UP             CreateNotificationOptionTopicScene
	SCALING_UP_FAIL        CreateNotificationOptionTopicScene
	SCALING_DOWN           CreateNotificationOptionTopicScene
	SCALING_DOWN_FAIL      CreateNotificationOptionTopicScene
	SCALING_GROUP_ABNORMAL CreateNotificationOptionTopicScene
}

func GetCreateNotificationOptionTopicSceneEnum

func GetCreateNotificationOptionTopicSceneEnum() CreateNotificationOptionTopicSceneEnum

type CreateScalingConfigOption

type CreateScalingConfigOption struct {

	// 伸缩配置名称(1-64个字符),只能包含中文、字母、数字、下划线或中划线。
	ScalingConfigurationName *string `json:"scaling_configuration_name,omitempty"`

	InstanceConfig *InstanceConfig `json:"instance_config,omitempty"`

	// 源伸缩配置ID,通过该ID查询已有伸缩配置信息与instance_config中参数进行结合,创建新的伸缩配置。 说明:  - 若传入instance_config中的instance_id,则优先使用instance_id相关实例配置创建新的伸缩配置,source_scaling_configuration_id参数不生效。  - 若未传入instance_config中的instance_id,则使用source_scaling_configuration_id与instance_config中的参数相结合创建伸缩配置。         - 若instance_config中的参数值为null,则创建新伸缩配置时该字段不产生修改。         - 若instance_config中的参数值不为null,则创建新伸缩配置时该字段将覆盖原有值,其中值为空时,该字段会被清空。  - 若不指定source_scaling_configuration_id创建伸缩配置,则scaling_configuration_name和instance_config为必选。
	SourceScalingConfigurationId *string `json:"source_scaling_configuration_id,omitempty"`
}

CreateScalingConfigOption 创建伸缩配置请求

func (CreateScalingConfigOption) String

func (o CreateScalingConfigOption) String() string

type CreateScalingConfigRequest

type CreateScalingConfigRequest struct {
	Body *CreateScalingConfigOption `json:"body,omitempty"`
}

CreateScalingConfigRequest Request Object

func (CreateScalingConfigRequest) String

type CreateScalingConfigResponse

type CreateScalingConfigResponse struct {

	// 伸缩配置ID
	ScalingConfigurationId *string `json:"scaling_configuration_id,omitempty"`
	HttpStatusCode         int     `json:"-"`
}

CreateScalingConfigResponse Response Object

func (CreateScalingConfigResponse) String

type CreateScalingGroupOption

type CreateScalingGroupOption struct {

	// 伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
	ScalingGroupName string `json:"scaling_group_name"`

	// 伸缩配置ID,通过查询弹性伸缩配置列表接口获取。
	ScalingConfigurationId string `json:"scaling_configuration_id"`

	// 期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
	DesireInstanceNumber *int32 `json:"desire_instance_number,omitempty"`

	// 最小实例数量,默认值为0。
	MinInstanceNumber *int32 `json:"min_instance_number,omitempty"`

	// 最大实例数量,默认值为0。
	MaxInstanceNumber *int32 `json:"max_instance_number,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。 只针对告警策略生效,定时、周期策略和手动触发策略不受该参数限制。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 弹性负载均衡(经典型)监听器ID,最多支持绑定6个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。
	LbListenerId *string `json:"lb_listener_id,omitempty"`

	// 弹性负载均衡器(增强型)信息,最多支持绑定6个负载均衡。该字段与lb_listener_id互斥。
	LbaasListeners *[]LbaasListeners `json:"lbaas_listeners,omitempty"`

	// 可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。
	AvailableZones *[]string `json:"available_zones,omitempty"`

	// 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
	Networks []Networks `json:"networks"`

	// 安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
	SecurityGroups *[]SecurityGroup `json:"security_groups,omitempty"`

	// VPC信息,通过查询VPC服务VPC列表接口获取,详见《虚拟私有云API参考》的“查询VPC列表”。
	VpcId string `json:"vpc_id"`

	// 伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
	HealthPeriodicAuditMethod *CreateScalingGroupOptionHealthPeriodicAuditMethod `json:"health_periodic_audit_method,omitempty"`

	// 伸缩组实例的健康检查周期,可设置为1、5、15、60、180(分钟),若不设置该参数,默认为5。若设置为0,可以实现10秒级健康检查。
	HealthPeriodicAuditTime *int32 `json:"health_periodic_audit_time,omitempty"`

	// 伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为600秒。
	HealthPeriodicAuditGracePeriod *int32 `json:"health_periodic_audit_grace_period,omitempty"`

	// 伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
	InstanceTerminatePolicy *CreateScalingGroupOptionInstanceTerminatePolicy `json:"instance_terminate_policy,omitempty"`

	// 通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
	Notifications *[]string `json:"notifications,omitempty"`

	// 配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
	DeletePublicip *bool `json:"delete_publicip,omitempty"`

	// 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除云服务器时,仅解绑定在云服务器上的数据盘,不删除数据盘。
	DeleteVolume *bool `json:"delete_volume,omitempty"`

	// 企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 伸缩组扩缩容时目标AZ选择的优先级策略:EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,云服务器扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
	MultiAzPriorityPolicy *CreateScalingGroupOptionMultiAzPriorityPolicy `json:"multi_az_priority_policy,omitempty"`

	// 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
	IamAgencyName *string `json:"iam_agency_name,omitempty"`

	// 伸缩组描述信息(0-256个字符)
	Description *string `json:"description,omitempty"`

	// 创建特定标签并将其添加到伸缩组。每个伸缩组最多添加10个标签。
	Tags *[]TagsSingleValue `json:"tags,omitempty"`
}

CreateScalingGroupOption 创建伸缩组请求

func (CreateScalingGroupOption) String

func (o CreateScalingGroupOption) String() string

type CreateScalingGroupOptionHealthPeriodicAuditMethod

type CreateScalingGroupOptionHealthPeriodicAuditMethod struct {
	// contains filtered or unexported fields
}

func (CreateScalingGroupOptionHealthPeriodicAuditMethod) MarshalJSON

func (*CreateScalingGroupOptionHealthPeriodicAuditMethod) UnmarshalJSON

func (CreateScalingGroupOptionHealthPeriodicAuditMethod) Value added in v0.0.90

type CreateScalingGroupOptionInstanceTerminatePolicy

type CreateScalingGroupOptionInstanceTerminatePolicy struct {
	// contains filtered or unexported fields
}

func (CreateScalingGroupOptionInstanceTerminatePolicy) MarshalJSON

func (*CreateScalingGroupOptionInstanceTerminatePolicy) UnmarshalJSON

func (CreateScalingGroupOptionInstanceTerminatePolicy) Value added in v0.0.90

type CreateScalingGroupOptionMultiAzPriorityPolicy

type CreateScalingGroupOptionMultiAzPriorityPolicy struct {
	// contains filtered or unexported fields
}

func (CreateScalingGroupOptionMultiAzPriorityPolicy) MarshalJSON

func (*CreateScalingGroupOptionMultiAzPriorityPolicy) UnmarshalJSON

func (CreateScalingGroupOptionMultiAzPriorityPolicy) Value added in v0.0.90

type CreateScalingGroupOptionMultiAzPriorityPolicyEnum

type CreateScalingGroupOptionMultiAzPriorityPolicyEnum struct {
	EQUILIBRIUM_DISTRIBUTE CreateScalingGroupOptionMultiAzPriorityPolicy
	PICK_FIRST             CreateScalingGroupOptionMultiAzPriorityPolicy
}

func GetCreateScalingGroupOptionMultiAzPriorityPolicyEnum

func GetCreateScalingGroupOptionMultiAzPriorityPolicyEnum() CreateScalingGroupOptionMultiAzPriorityPolicyEnum

type CreateScalingGroupRequest

type CreateScalingGroupRequest struct {
	Body *CreateScalingGroupOption `json:"body,omitempty"`
}

CreateScalingGroupRequest Request Object

func (CreateScalingGroupRequest) String

func (o CreateScalingGroupRequest) String() string

type CreateScalingGroupResponse

type CreateScalingGroupResponse struct {

	// 伸缩组ID
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateScalingGroupResponse Response Object

func (CreateScalingGroupResponse) String

type CreateScalingNotificationRequest

type CreateScalingNotificationRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`

	Body *CreateNotificationOption `json:"body,omitempty"`
}

CreateScalingNotificationRequest Request Object

func (CreateScalingNotificationRequest) String

type CreateScalingNotificationResponse

type CreateScalingNotificationResponse struct {

	// SMN服务中Topic的唯一的资源标识。
	TopicUrn *string `json:"topic_urn,omitempty"`

	// 通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
	TopicScene *[]string `json:"topic_scene,omitempty"`

	// SMN服务中Topic的资源名称。
	TopicName      *string `json:"topic_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateScalingNotificationResponse Response Object

func (CreateScalingNotificationResponse) String

type CreateScalingPolicyOption

type CreateScalingPolicyOption struct {

	// 策略名称(1-64字符),可以用中文、字母、数字、下划线、中划线的组合。
	ScalingPolicyName string `json:"scaling_policy_name"`

	// 伸缩组ID,通过查询弹性伸缩组列表获取,详见查询弹性伸缩组列表。
	ScalingGroupId string `json:"scaling_group_id"`

	// 策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
	ScalingPolicyType CreateScalingPolicyOptionScalingPolicyType `json:"scaling_policy_type"`

	// 告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV1 `json:"scaling_policy_action,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`
}

CreateScalingPolicyOption 创建伸缩策略

func (CreateScalingPolicyOption) String

func (o CreateScalingPolicyOption) String() string

type CreateScalingPolicyOptionScalingPolicyType

type CreateScalingPolicyOptionScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (CreateScalingPolicyOptionScalingPolicyType) MarshalJSON

func (*CreateScalingPolicyOptionScalingPolicyType) UnmarshalJSON

func (CreateScalingPolicyOptionScalingPolicyType) Value added in v0.0.90

type CreateScalingPolicyRequest

type CreateScalingPolicyRequest struct {
	Body *CreateScalingPolicyOption `json:"body,omitempty"`
}

CreateScalingPolicyRequest Request Object

func (CreateScalingPolicyRequest) String

type CreateScalingPolicyResponse

type CreateScalingPolicyResponse struct {

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

CreateScalingPolicyResponse Response Object

func (CreateScalingPolicyResponse) String

type CreateScalingPolicyV2Option

type CreateScalingPolicyV2Option struct {

	// 策略名称(1-64)字符,可以用中文、字母、数字、下划线、中划线的组合。
	ScalingPolicyName string `json:"scaling_policy_name"`

	// 伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH,对应带宽唯一标识。说明:- 弹性伸缩不支持对包年包月的带宽进行调整。
	ScalingResourceId string `json:"scaling_resource_id"`

	// 伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
	ScalingResourceType CreateScalingPolicyV2OptionScalingResourceType `json:"scaling_resource_type"`

	// 策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
	ScalingPolicyType CreateScalingPolicyV2OptionScalingPolicyType `json:"scaling_policy_type"`

	// 告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV2 `json:"scaling_policy_action,omitempty"`

	IntervalAlarmActions *[]IntervalAlarmActionsV2 `json:"interval_alarm_actions,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 伸缩策略描述(1-256个字符)
	Description *string `json:"description,omitempty"`
}

CreateScalingPolicyV2Option 创建伸缩策略(V2)

func (CreateScalingPolicyV2Option) String

type CreateScalingPolicyV2OptionScalingPolicyType

type CreateScalingPolicyV2OptionScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (CreateScalingPolicyV2OptionScalingPolicyType) MarshalJSON

func (*CreateScalingPolicyV2OptionScalingPolicyType) UnmarshalJSON

func (CreateScalingPolicyV2OptionScalingPolicyType) Value added in v0.0.90

type CreateScalingPolicyV2OptionScalingResourceType

type CreateScalingPolicyV2OptionScalingResourceType struct {
	// contains filtered or unexported fields
}

func (CreateScalingPolicyV2OptionScalingResourceType) MarshalJSON

func (*CreateScalingPolicyV2OptionScalingResourceType) UnmarshalJSON

func (CreateScalingPolicyV2OptionScalingResourceType) Value added in v0.0.90

type CreateScalingPolicyV2OptionScalingResourceTypeEnum

type CreateScalingPolicyV2OptionScalingResourceTypeEnum struct {
	SCALING_GROUP CreateScalingPolicyV2OptionScalingResourceType
	BANDWIDTH     CreateScalingPolicyV2OptionScalingResourceType
}

func GetCreateScalingPolicyV2OptionScalingResourceTypeEnum

func GetCreateScalingPolicyV2OptionScalingResourceTypeEnum() CreateScalingPolicyV2OptionScalingResourceTypeEnum

type CreateScalingTagInfoRequest

type CreateScalingTagInfoRequest struct {

	// 资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
	ResourceType CreateScalingTagInfoRequestResourceType `json:"resource_type"`

	// 资源ID。
	ResourceId string `json:"resource_id"`

	Body *CreateTagsOption `json:"body,omitempty"`
}

CreateScalingTagInfoRequest Request Object

func (CreateScalingTagInfoRequest) String

type CreateScalingTagInfoRequestResourceType

type CreateScalingTagInfoRequestResourceType struct {
	// contains filtered or unexported fields
}

func (CreateScalingTagInfoRequestResourceType) MarshalJSON

func (c CreateScalingTagInfoRequestResourceType) MarshalJSON() ([]byte, error)

func (*CreateScalingTagInfoRequestResourceType) UnmarshalJSON

func (c *CreateScalingTagInfoRequestResourceType) UnmarshalJSON(b []byte) error

func (CreateScalingTagInfoRequestResourceType) Value added in v0.0.90

type CreateScalingTagInfoRequestResourceTypeEnum

type CreateScalingTagInfoRequestResourceTypeEnum struct {
	SCALING_GROUP_TAG CreateScalingTagInfoRequestResourceType
}

func GetCreateScalingTagInfoRequestResourceTypeEnum

func GetCreateScalingTagInfoRequestResourceTypeEnum() CreateScalingTagInfoRequestResourceTypeEnum

type CreateScalingTagInfoResponse

type CreateScalingTagInfoResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateScalingTagInfoResponse Response Object

func (CreateScalingTagInfoResponse) String

type CreateScalingV2PolicyRequest

type CreateScalingV2PolicyRequest struct {
	Body *CreateScalingPolicyV2Option `json:"body,omitempty"`
}

CreateScalingV2PolicyRequest Request Object

func (CreateScalingV2PolicyRequest) String

type CreateScalingV2PolicyResponse

type CreateScalingV2PolicyResponse struct {

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

CreateScalingV2PolicyResponse Response Object

func (CreateScalingV2PolicyResponse) String

type CreateScheduledTaskOption added in v0.1.48

type CreateScheduledTaskOption struct {

	// 计划任务名称
	Name string `json:"name"`

	ScheduledPolicy *ScheduledTaskPolicy `json:"scheduled_policy"`

	InstanceNumber *IntegerRange `json:"instance_number"`
}

func (CreateScheduledTaskOption) String added in v0.1.48

func (o CreateScheduledTaskOption) String() string

type CreateTagsOption

type CreateTagsOption struct {

	// 标签列表。action为delete时,tags结构体不能缺失,key不能为空,或者空字符串。
	Tags []TagsSingleValue `json:"tags"`

	// 操作标识(区分大小写):delete:删除。create:创建。若已经存在相同的key值则会覆盖对应的value值。
	Action CreateTagsOptionAction `json:"action"`
}

CreateTagsOption 标签列表

func (CreateTagsOption) String

func (o CreateTagsOption) String() string

type CreateTagsOptionAction

type CreateTagsOptionAction struct {
	// contains filtered or unexported fields
}

func (CreateTagsOptionAction) MarshalJSON

func (c CreateTagsOptionAction) MarshalJSON() ([]byte, error)

func (*CreateTagsOptionAction) UnmarshalJSON

func (c *CreateTagsOptionAction) UnmarshalJSON(b []byte) error

func (CreateTagsOptionAction) Value added in v0.0.90

func (c CreateTagsOptionAction) Value() string

type CreateTagsOptionActionEnum

type CreateTagsOptionActionEnum struct {
	CREATE CreateTagsOptionAction
}

func GetCreateTagsOptionActionEnum

func GetCreateTagsOptionActionEnum() CreateTagsOptionActionEnum

type DeleteGroupScheduledTaskRequest added in v0.1.48

type DeleteGroupScheduledTaskRequest struct {

	// 伸缩组ID
	ScalingGroupId string `json:"scaling_group_id"`

	// 计划任务ID
	ScheduledTaskId string `json:"scheduled_task_id"`
}

DeleteGroupScheduledTaskRequest Request Object

func (DeleteGroupScheduledTaskRequest) String added in v0.1.48

type DeleteGroupScheduledTaskResponse added in v0.1.48

type DeleteGroupScheduledTaskResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteGroupScheduledTaskResponse Response Object

func (DeleteGroupScheduledTaskResponse) String added in v0.1.48

type DeleteLifecycleHookRequest

type DeleteLifecycleHookRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`

	// 生命周期挂钩标识。
	LifecycleHookName string `json:"lifecycle_hook_name"`
}

DeleteLifecycleHookRequest Request Object

func (DeleteLifecycleHookRequest) String

type DeleteLifecycleHookResponse

type DeleteLifecycleHookResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteLifecycleHookResponse Response Object

func (DeleteLifecycleHookResponse) String

type DeleteScalingConfigRequest

type DeleteScalingConfigRequest struct {

	// 伸缩配置ID。
	ScalingConfigurationId string `json:"scaling_configuration_id"`
}

DeleteScalingConfigRequest Request Object

func (DeleteScalingConfigRequest) String

type DeleteScalingConfigResponse

type DeleteScalingConfigResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteScalingConfigResponse Response Object

func (DeleteScalingConfigResponse) String

type DeleteScalingGroupRequest

type DeleteScalingGroupRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`

	// 是否强制删除伸缩组。默认为no;可选值为yes或no。
	ForceDelete *DeleteScalingGroupRequestForceDelete `json:"force_delete,omitempty"`
}

DeleteScalingGroupRequest Request Object

func (DeleteScalingGroupRequest) String

func (o DeleteScalingGroupRequest) String() string

type DeleteScalingGroupRequestForceDelete

type DeleteScalingGroupRequestForceDelete struct {
	// contains filtered or unexported fields
}

func (DeleteScalingGroupRequestForceDelete) MarshalJSON

func (c DeleteScalingGroupRequestForceDelete) MarshalJSON() ([]byte, error)

func (*DeleteScalingGroupRequestForceDelete) UnmarshalJSON

func (c *DeleteScalingGroupRequestForceDelete) UnmarshalJSON(b []byte) error

func (DeleteScalingGroupRequestForceDelete) Value added in v0.0.90

type DeleteScalingGroupRequestForceDeleteEnum

type DeleteScalingGroupRequestForceDeleteEnum struct {
	YES DeleteScalingGroupRequestForceDelete
	NO  DeleteScalingGroupRequestForceDelete
}

func GetDeleteScalingGroupRequestForceDeleteEnum

func GetDeleteScalingGroupRequestForceDeleteEnum() DeleteScalingGroupRequestForceDeleteEnum

type DeleteScalingGroupResponse

type DeleteScalingGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteScalingGroupResponse Response Object

func (DeleteScalingGroupResponse) String

type DeleteScalingInstanceRequest

type DeleteScalingInstanceRequest struct {

	// 实例ID,可参考[查询弹性伸缩组中的实例列表](https://support.huaweicloud.com/api-as/as_06_0301.html)获取。
	InstanceId string `json:"instance_id"`

	// 实例移出伸缩组,是否删除云服务器实例。默认为no;可选值为yes或no。
	InstanceDelete *DeleteScalingInstanceRequestInstanceDelete `json:"instance_delete,omitempty"`
}

DeleteScalingInstanceRequest Request Object

func (DeleteScalingInstanceRequest) String

type DeleteScalingInstanceRequestInstanceDelete

type DeleteScalingInstanceRequestInstanceDelete struct {
	// contains filtered or unexported fields
}

func (DeleteScalingInstanceRequestInstanceDelete) MarshalJSON

func (*DeleteScalingInstanceRequestInstanceDelete) UnmarshalJSON

func (DeleteScalingInstanceRequestInstanceDelete) Value added in v0.0.90

type DeleteScalingInstanceResponse

type DeleteScalingInstanceResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteScalingInstanceResponse Response Object

func (DeleteScalingInstanceResponse) String

type DeleteScalingNotificationRequest

type DeleteScalingNotificationRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`

	// SMN服务中Topic的唯一的资源标识。
	TopicUrn string `json:"topic_urn"`
}

DeleteScalingNotificationRequest Request Object

func (DeleteScalingNotificationRequest) String

type DeleteScalingNotificationResponse

type DeleteScalingNotificationResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteScalingNotificationResponse Response Object

func (DeleteScalingNotificationResponse) String

type DeleteScalingPolicyRequest

type DeleteScalingPolicyRequest struct {

	// 伸缩策略ID。
	ScalingPolicyId string `json:"scaling_policy_id"`
}

DeleteScalingPolicyRequest Request Object

func (DeleteScalingPolicyRequest) String

type DeleteScalingPolicyResponse

type DeleteScalingPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteScalingPolicyResponse Response Object

func (DeleteScalingPolicyResponse) String

type DeleteScalingTagInfoRequest

type DeleteScalingTagInfoRequest struct {

	// 资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
	ResourceType DeleteScalingTagInfoRequestResourceType `json:"resource_type"`

	// 资源ID。
	ResourceId string `json:"resource_id"`

	Body *DeleteTagsOption `json:"body,omitempty"`
}

DeleteScalingTagInfoRequest Request Object

func (DeleteScalingTagInfoRequest) String

type DeleteScalingTagInfoRequestResourceType

type DeleteScalingTagInfoRequestResourceType struct {
	// contains filtered or unexported fields
}

func (DeleteScalingTagInfoRequestResourceType) MarshalJSON

func (c DeleteScalingTagInfoRequestResourceType) MarshalJSON() ([]byte, error)

func (*DeleteScalingTagInfoRequestResourceType) UnmarshalJSON

func (c *DeleteScalingTagInfoRequestResourceType) UnmarshalJSON(b []byte) error

func (DeleteScalingTagInfoRequestResourceType) Value added in v0.0.90

type DeleteScalingTagInfoRequestResourceTypeEnum

type DeleteScalingTagInfoRequestResourceTypeEnum struct {
	SCALING_GROUP_TAG DeleteScalingTagInfoRequestResourceType
}

func GetDeleteScalingTagInfoRequestResourceTypeEnum

func GetDeleteScalingTagInfoRequestResourceTypeEnum() DeleteScalingTagInfoRequestResourceTypeEnum

type DeleteScalingTagInfoResponse

type DeleteScalingTagInfoResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteScalingTagInfoResponse Response Object

func (DeleteScalingTagInfoResponse) String

type DeleteTagsOption

type DeleteTagsOption struct {

	// 标签列表。action为delete时,tags结构体不能缺失,key不能为空,或者空字符串。
	Tags []TagsSingleValue `json:"tags"`

	// 操作标识(区分大小写):delete:删除。create:创建。若已经存在相同的key值则会覆盖对应的value值。
	Action DeleteTagsOptionAction `json:"action"`
}

DeleteTagsOption 标签列表

func (DeleteTagsOption) String

func (o DeleteTagsOption) String() string

type DeleteTagsOptionAction

type DeleteTagsOptionAction struct {
	// contains filtered or unexported fields
}

func (DeleteTagsOptionAction) MarshalJSON

func (c DeleteTagsOptionAction) MarshalJSON() ([]byte, error)

func (*DeleteTagsOptionAction) UnmarshalJSON

func (c *DeleteTagsOptionAction) UnmarshalJSON(b []byte) error

func (DeleteTagsOptionAction) Value added in v0.0.90

func (c DeleteTagsOptionAction) Value() string

type DeleteTagsOptionActionEnum

type DeleteTagsOptionActionEnum struct {
	DELETE DeleteTagsOptionAction
}

func GetDeleteTagsOptionActionEnum

func GetDeleteTagsOptionActionEnum() DeleteTagsOptionActionEnum

type DiskInfo

type DiskInfo struct {

	// 磁盘大小,容量单位为GB。系统盘输入大小范围为1~1024,且不小于镜像中系统盘的最小(min_disk属性)值。数据盘输入大小范围为10~32768。
	Size int32 `json:"size"`

	// 云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。GPSSD:通用型SSD磁盘类型。co-p1:高IO (性能优化Ⅰ型)uh-l1:超高IO (时延优化)GPSSD2: 通用型SSD V2云硬盘ESSD2: 极速型SSD V2云硬盘当指定的云硬盘类型在avaliability_zone内不存在时,则创建云硬盘失败。说明:对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。了解不同磁盘类型的详细信息,请参见[磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
	VolumeType DiskInfoVolumeType `json:"volume_type"`

	// 系统盘还是数据盘,DATA表示为数据盘,SYS表示为系统盘。 说明: 系统盘不支持加密。
	DiskType DiskInfoDiskType `json:"disk_type"`

	// 云服务器的磁盘可指定创建在用户的专属存储中,需要指定专属存储ID。说明:同一个伸缩配置中的磁盘需统一指定或统一不指定专属存储,不支持混用;当指定专属存储时,所有专属存储需要属于同一个可用分区,且每个磁盘选择的专属存储支持的磁盘类型都需要和参数volume_type保持一致。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`

	// 云服务器的数据盘可指定从数据盘镜像导出,需要指定数据盘镜像ID。
	DataDiskImageId *string `json:"data_disk_image_id,omitempty"`

	// 当选择使用整机镜像时,云服务器的系统盘及数据盘将通过整机备份恢复,需要指定磁盘备份的快照ID。说明:磁盘备份的快照ID可通过镜像的整机备份ID在CSBS查询备份详情获得;一个伸缩配置中的每一个disk需要通过snapshot_id和整机备份中的磁盘备份一一对应。
	SnapshotId *string `json:"snapshot_id,omitempty"`

	Metadata *MetaData `json:"metadata,omitempty"`

	// 为云硬盘配置iops。当“volume_type”设置为GPSSD2、ESSD2类型的云硬盘时,该参数必填,其他类型无需设置。
	Iops *int32 `json:"iops,omitempty"`

	// 为云硬盘配置吞吐量,单位是MiB/s。当“volume_type”设置为GPSSD2类型的云硬盘时必填,其他类型不能设置。
	Throughput *int32 `json:"throughput,omitempty"`
}

DiskInfo 磁盘组信息,系统盘必选,数据盘可选。

func (DiskInfo) String

func (o DiskInfo) String() string

type DiskInfoDiskType

type DiskInfoDiskType struct {
	// contains filtered or unexported fields
}

func (DiskInfoDiskType) MarshalJSON

func (c DiskInfoDiskType) MarshalJSON() ([]byte, error)

func (*DiskInfoDiskType) UnmarshalJSON

func (c *DiskInfoDiskType) UnmarshalJSON(b []byte) error

func (DiskInfoDiskType) Value added in v0.0.90

func (c DiskInfoDiskType) Value() string

type DiskInfoDiskTypeEnum

type DiskInfoDiskTypeEnum struct {
	SYS  DiskInfoDiskType
	DATA DiskInfoDiskType
}

func GetDiskInfoDiskTypeEnum

func GetDiskInfoDiskTypeEnum() DiskInfoDiskTypeEnum

type DiskInfoVolumeType

type DiskInfoVolumeType struct {
	// contains filtered or unexported fields
}

func (DiskInfoVolumeType) MarshalJSON

func (c DiskInfoVolumeType) MarshalJSON() ([]byte, error)

func (*DiskInfoVolumeType) UnmarshalJSON

func (c *DiskInfoVolumeType) UnmarshalJSON(b []byte) error

func (DiskInfoVolumeType) Value added in v0.0.90

func (c DiskInfoVolumeType) Value() string

type DiskResult

type DiskResult struct {

	// 磁盘大小,容量单位为GB。
	Size *int32 `json:"size,omitempty"`

	// 磁盘类型。
	VolumeType *DiskResultVolumeType `json:"volume_type,omitempty"`

	// 系统盘还是数据盘,DATA表示为数据盘,SYS表示为系统盘。
	DiskType *DiskResultDiskType `json:"disk_type,omitempty"`

	// 磁盘所属的专属存储ID。
	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`

	// 导入数据盘的数据盘镜像ID。
	DataDiskImageId *string `json:"data_disk_image_id,omitempty"`

	// 磁盘备份的快照ID。
	SnapshotId *string `json:"snapshot_id,omitempty"`

	Metadata *MetaData `json:"metadata,omitempty"`

	// 云硬盘iops
	Iops *int32 `json:"iops,omitempty"`

	// 云硬盘吞吐量
	Throughput *int32 `json:"throughput,omitempty"`
}

DiskResult 磁盘信息

func (DiskResult) String

func (o DiskResult) String() string

type DiskResultDiskType

type DiskResultDiskType struct {
	// contains filtered or unexported fields
}

func (DiskResultDiskType) MarshalJSON

func (c DiskResultDiskType) MarshalJSON() ([]byte, error)

func (*DiskResultDiskType) UnmarshalJSON

func (c *DiskResultDiskType) UnmarshalJSON(b []byte) error

func (DiskResultDiskType) Value added in v0.0.90

func (c DiskResultDiskType) Value() string

type DiskResultDiskTypeEnum

type DiskResultDiskTypeEnum struct {
	SYS  DiskResultDiskType
	DATA DiskResultDiskType
}

func GetDiskResultDiskTypeEnum

func GetDiskResultDiskTypeEnum() DiskResultDiskTypeEnum

type DiskResultVolumeType

type DiskResultVolumeType struct {
	// contains filtered or unexported fields
}

func (DiskResultVolumeType) MarshalJSON

func (c DiskResultVolumeType) MarshalJSON() ([]byte, error)

func (*DiskResultVolumeType) UnmarshalJSON

func (c *DiskResultVolumeType) UnmarshalJSON(b []byte) error

func (DiskResultVolumeType) Value added in v0.0.90

func (c DiskResultVolumeType) Value() string

type EipInfo

type EipInfo struct {

	// 弹性IP地址类型。类型枚举值:5_bgp:全动态BGP;5_sbgp:静态BGP;5_telcom:中国电信;5_union:中国联通;详情请参见《虚拟私有云接口参考》“申请弹性公网IP”章节的“publicip”字段说明。
	IpType EipInfoIpType `json:"ip_type"`

	Bandwidth *BandwidthInfo `json:"bandwidth"`
}

EipInfo 配置云服务器的弹性IP信息

func (EipInfo) String

func (o EipInfo) String() string

type EipInfoIpType

type EipInfoIpType struct {
	// contains filtered or unexported fields
}

func (EipInfoIpType) MarshalJSON

func (c EipInfoIpType) MarshalJSON() ([]byte, error)

func (*EipInfoIpType) UnmarshalJSON

func (c *EipInfoIpType) UnmarshalJSON(b []byte) error

func (EipInfoIpType) Value added in v0.0.90

func (c EipInfoIpType) Value() string

type EipInfoIpTypeEnum

type EipInfoIpTypeEnum struct {
	E_5_BGP    EipInfoIpType
	E_5_SBGP   EipInfoIpType
	E_5_TELCOM EipInfoIpType
	E_5_UNION  EipInfoIpType
}

func GetEipInfoIpTypeEnum

func GetEipInfoIpTypeEnum() EipInfoIpTypeEnum

type EipMetaData

type EipMetaData struct {

	// 伸缩带宽策略中带宽对应的共享类型。
	MetadataBandwidthShareType *string `json:"metadata_bandwidth_share_type,omitempty"`

	// 伸缩带宽策略中带宽对应的EIP的ID。
	MetadataEipId *string `json:"metadata_eip_id,omitempty"`

	// 伸缩带宽策略中带宽对应的EIP地址。
	MetadataeipAddress *string `json:"metadataeip_address,omitempty"`
}

EipMetaData 用户自定义键值对

func (EipMetaData) String

func (o EipMetaData) String() string

type EipResult

type EipResult struct {

	// IP地址类型。
	IpType *EipResultIpType `json:"ip_type,omitempty"`

	Bandwidth *BandwidthResult `json:"bandwidth,omitempty"`
}

EipResult eip信息

func (EipResult) String

func (o EipResult) String() string

type EipResultIpType

type EipResultIpType struct {
	// contains filtered or unexported fields
}

func (EipResultIpType) MarshalJSON

func (c EipResultIpType) MarshalJSON() ([]byte, error)

func (*EipResultIpType) UnmarshalJSON

func (c *EipResultIpType) UnmarshalJSON(b []byte) error

func (EipResultIpType) Value added in v0.0.90

func (c EipResultIpType) Value() string

type EipResultIpTypeEnum

type EipResultIpTypeEnum struct {
	E_5_BGP    EipResultIpType
	E_5_SBGP   EipResultIpType
	E_5_TELCOM EipResultIpType
	E_5_UNION  EipResultIpType
}

func GetEipResultIpTypeEnum

func GetEipResultIpTypeEnum() EipResultIpTypeEnum

type ExecuteScalingPolicyOption

type ExecuteScalingPolicyOption struct {

	// 执行或启用或停止伸缩策略操作的标识。执行:execute。启用:resume。停止:pause。
	Action ExecuteScalingPolicyOptionAction `json:"action"`
}

ExecuteScalingPolicyOption 执行或启用或停止伸缩策略

func (ExecuteScalingPolicyOption) String

type ExecuteScalingPolicyOptionAction

type ExecuteScalingPolicyOptionAction struct {
	// contains filtered or unexported fields
}

func (ExecuteScalingPolicyOptionAction) MarshalJSON

func (c ExecuteScalingPolicyOptionAction) MarshalJSON() ([]byte, error)

func (*ExecuteScalingPolicyOptionAction) UnmarshalJSON

func (c *ExecuteScalingPolicyOptionAction) UnmarshalJSON(b []byte) error

func (ExecuteScalingPolicyOptionAction) Value added in v0.0.90

type ExecuteScalingPolicyOptionActionEnum

type ExecuteScalingPolicyOptionActionEnum struct {
	EXECUTE ExecuteScalingPolicyOptionAction
}

func GetExecuteScalingPolicyOptionActionEnum

func GetExecuteScalingPolicyOptionActionEnum() ExecuteScalingPolicyOptionActionEnum

type ExecuteScalingPolicyRequest

type ExecuteScalingPolicyRequest struct {

	// 伸缩策略ID。
	ScalingPolicyId string `json:"scaling_policy_id"`

	Body *ExecuteScalingPolicyOption `json:"body,omitempty"`
}

ExecuteScalingPolicyRequest Request Object

func (ExecuteScalingPolicyRequest) String

type ExecuteScalingPolicyResponse

type ExecuteScalingPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

ExecuteScalingPolicyResponse Response Object

func (ExecuteScalingPolicyResponse) String

type InstanceConfig

type InstanceConfig struct {

	// 云服务器ID,当使用已存在的云服务器的规格为模板创建弹性伸缩配置时传入该字段,此时flavorRef、imageRef、disk、security_groups、tenancy和dedicated_host_id字段不生效。当不传入instance_id字段时flavorRef、imageRef、disk字段为必选。
	InstanceId *string `json:"instance_id,omitempty"`

	// 云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考 [查询云服务器规格详情和扩展信息列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212656.html)。
	FlavorRef *string `json:"flavorRef,omitempty"`

	// 镜像ID,同image_id,指定创建实例时选择的镜像资源。通过查询镜像服务镜像列表接口获取,请参考[查询镜像列表](https://support.huaweicloud.com/api-ims/ims_03_0602.html)。
	ImageRef *string `json:"imageRef,omitempty"`

	// 磁盘组信息,系统盘必选,数据盘可选。
	Disk *[]DiskInfo `json:"disk,omitempty"`

	// 登录云服务器的SSH密钥名称。获取密钥对方式请参考[创建及导入SSH密钥对](https://support.huaweicloud.com/api-dew/CreateKeypair.html)。说明:当key_name与user_data同时指定时,user_data只做用户数据注入。
	KeyName *string `json:"key_name,omitempty"`

	// 注入文件信息。仅支持注入文本文件,最大支持注入5个文件,每个文件最大1KB。
	Personality *[]PersonalityInfo `json:"personality,omitempty"`

	PublicIp *PublicIp `json:"public_ip,omitempty"`

	// cloud-init用户数据。支持注入文本、文本文件或gzip文件。文件内容需要进行base64格式编码,注入内容(编码之前的内容)最大为32KB。说明:当key_name没有指定时,user_data注入的数据默认为云服务器root账号的登录密码。创建密码方式鉴权的Linux弹性云服务器时为必填项,为root用户注入自定义初始化密码。
	UserData *string `json:"user_data,omitempty"`

	Metadata *VmMetaData `json:"metadata,omitempty"`

	// 安全组信息。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。
	SecurityGroups *[]SecurityGroups `json:"security_groups,omitempty"`

	// 云服务器组ID。
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 在专属主机上创建弹性云服务器。参数取值为dedicated。
	Tenancy *InstanceConfigTenancy `json:"tenancy,omitempty"`

	// 专属主机的ID。 说明:该字段仅在tenancy为dedicated时生效;如果指定该字段,云服务器将被创建到指定的专属主机上;如果不指定该字段,此时系统会将云服务器创建在符合规格的专属主机中剩余内存最大的那一台上,以使各专属主机尽量均衡负载。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	// 使用伸缩配置创建云主机的时候,多规格使用的优先级策略。PICK_FIRST(默认):选择优先,虚拟机扩容时规格的选择按照flavorRef列表的顺序进行优先级排序。COST_FIRST:成本优化,虚拟机扩容时规格的选择按照价格最优原则进行优先级排序。
	MultiFlavorPriorityPolicy *InstanceConfigMultiFlavorPriorityPolicy `json:"multi_flavor_priority_policy,omitempty"`

	// 云服务器的计费模式,可以选择竞价计费或按需计费,取值如下:按需计费:不指定该字段。竞价计费:spot
	MarketType *InstanceConfigMarketType `json:"market_type,omitempty"`
}

InstanceConfig 实例配置信息

func (InstanceConfig) String

func (o InstanceConfig) String() string

type InstanceConfigMarketType

type InstanceConfigMarketType struct {
	// contains filtered or unexported fields
}

func (InstanceConfigMarketType) MarshalJSON

func (c InstanceConfigMarketType) MarshalJSON() ([]byte, error)

func (*InstanceConfigMarketType) UnmarshalJSON

func (c *InstanceConfigMarketType) UnmarshalJSON(b []byte) error

func (InstanceConfigMarketType) Value added in v0.0.90

func (c InstanceConfigMarketType) Value() string

type InstanceConfigMarketTypeEnum

type InstanceConfigMarketTypeEnum struct {
	SPOT InstanceConfigMarketType
}

func GetInstanceConfigMarketTypeEnum

func GetInstanceConfigMarketTypeEnum() InstanceConfigMarketTypeEnum

type InstanceConfigMultiFlavorPriorityPolicy

type InstanceConfigMultiFlavorPriorityPolicy struct {
	// contains filtered or unexported fields
}

func (InstanceConfigMultiFlavorPriorityPolicy) MarshalJSON

func (c InstanceConfigMultiFlavorPriorityPolicy) MarshalJSON() ([]byte, error)

func (*InstanceConfigMultiFlavorPriorityPolicy) UnmarshalJSON

func (c *InstanceConfigMultiFlavorPriorityPolicy) UnmarshalJSON(b []byte) error

func (InstanceConfigMultiFlavorPriorityPolicy) Value added in v0.0.90

type InstanceConfigMultiFlavorPriorityPolicyEnum

type InstanceConfigMultiFlavorPriorityPolicyEnum struct {
	PICK_FIRST InstanceConfigMultiFlavorPriorityPolicy
	COST_FIRST InstanceConfigMultiFlavorPriorityPolicy
}

func GetInstanceConfigMultiFlavorPriorityPolicyEnum

func GetInstanceConfigMultiFlavorPriorityPolicyEnum() InstanceConfigMultiFlavorPriorityPolicyEnum

type InstanceConfigResult

type InstanceConfigResult struct {

	// 云服务器的规格ID。
	FlavorRef *string `json:"flavorRef,omitempty"`

	// 镜像ID,同image_id。
	ImageRef *string `json:"imageRef,omitempty"`

	// 磁盘组信息。
	Disk *[]DiskResult `json:"disk,omitempty"`

	// 登录云服务器的SSH密钥名称。
	KeyName *string `json:"key_name,omitempty"`

	// 登录云服务器的SSH密钥指纹。
	KeyFingerprint *string `json:"key_fingerprint,omitempty"`

	// 该参数为预留字段。
	InstanceName *string `json:"instance_name,omitempty"`

	// 该参数为预留字段。
	InstanceId *string `json:"instance_id,omitempty"`

	// 登录云服务器的密码,非明文回显。
	AdminPass *string `json:"adminPass,omitempty"`

	// 个人信息
	Personality *[]PersonalityResult `json:"personality,omitempty"`

	PublicIp *PublicipResult `json:"public_ip,omitempty"`

	// cloud-init用户数据,base64格式编码。
	UserData *string `json:"user_data,omitempty"`

	Metadata *VmMetaData `json:"metadata,omitempty"`

	// 安全组信息。
	SecurityGroups *[]SecurityGroups `json:"security_groups,omitempty"`

	// 云服务器组ID。
	ServerGroupId *string `json:"server_group_id,omitempty"`

	// 在专属主机上创建弹性云服务器。
	Tenancy *string `json:"tenancy,omitempty"`

	// 专属主机的ID。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	// 云服务器的计费模式,可以选择竞价计费或按需计费。
	MarketType *string `json:"market_type,omitempty"`

	// 使用伸缩配置创建云主机的时候,多规格使用的优先级策略。  PICK_FIRST(默认):选择优先,虚拟机扩容时规格的选择按照flavorRef列表的顺序进行优先级排序。 COST_FIRST:成本优化,虚拟机扩容时规格的选择按照价格最优原则进行优先级排序。
	MultiFlavorPriorityPolicy *string `json:"multi_flavor_priority_policy,omitempty"`
}

InstanceConfigResult 实例配置信息

func (InstanceConfigResult) String

func (o InstanceConfigResult) String() string

type InstanceConfigTenancy

type InstanceConfigTenancy struct {
	// contains filtered or unexported fields
}

func (InstanceConfigTenancy) MarshalJSON

func (c InstanceConfigTenancy) MarshalJSON() ([]byte, error)

func (*InstanceConfigTenancy) UnmarshalJSON

func (c *InstanceConfigTenancy) UnmarshalJSON(b []byte) error

func (InstanceConfigTenancy) Value added in v0.0.90

func (c InstanceConfigTenancy) Value() string

type InstanceConfigTenancyEnum

type InstanceConfigTenancyEnum struct {
	DEDICATED InstanceConfigTenancy
}

func GetInstanceConfigTenancyEnum

func GetInstanceConfigTenancyEnum() InstanceConfigTenancyEnum

type InstanceHangingInfos

type InstanceHangingInfos struct {

	// 生命周期挂钩名称。
	LifecycleHookName *string `json:"lifecycle_hook_name,omitempty"`

	// 生命周期操作令牌,用于指定生命周期回调对象。
	LifecycleActionKey *string `json:"lifecycle_action_key,omitempty"`

	// 伸缩实例ID。
	InstanceId *string `json:"instance_id,omitempty"`

	// 伸缩组ID。
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`

	// 伸缩实例挂钩的挂起状态。HANGING:挂起。CONTINUE:继续。ABANDON:终止。
	LifecycleHookStatus *InstanceHangingInfosLifecycleHookStatus `json:"lifecycle_hook_status,omitempty"`

	// 超时时间,遵循UTC时间,格式为:YYYY-MM-DDThh:mm:ssZZ。
	Timeout *string `json:"timeout,omitempty"`

	// 生命周期挂钩默认回调操作。
	DefaultResult *string `json:"default_result,omitempty"`
}

InstanceHangingInfos 挂钩实例信息

func (InstanceHangingInfos) String

func (o InstanceHangingInfos) String() string

type InstanceHangingInfosLifecycleHookStatus

type InstanceHangingInfosLifecycleHookStatus struct {
	// contains filtered or unexported fields
}

func (InstanceHangingInfosLifecycleHookStatus) MarshalJSON

func (c InstanceHangingInfosLifecycleHookStatus) MarshalJSON() ([]byte, error)

func (*InstanceHangingInfosLifecycleHookStatus) UnmarshalJSON

func (c *InstanceHangingInfosLifecycleHookStatus) UnmarshalJSON(b []byte) error

func (InstanceHangingInfosLifecycleHookStatus) Value added in v0.0.90

type IntegerRange added in v0.1.48

type IntegerRange struct {

	// 伸缩组最大实例数
	Max *int32 `json:"max,omitempty"`

	// 伸缩组最小实例数
	Min *int32 `json:"min,omitempty"`

	// 伸缩组期望实例数
	Desire *int32 `json:"desire,omitempty"`
}

func (IntegerRange) String added in v0.1.48

func (o IntegerRange) String() string

type IntervalAlarmActionsV2 added in v0.1.100

type IntervalAlarmActionsV2 struct {

	// 操作选项,默认为ADD。 当scaling_resource_type为SCALING_GROUP,支持如下操作: ADD:增加 REMOVE/REDUCE:减少 SET:设置为 当scaling_resource_type为BANDWIDTH,支持如下操作: ADD:增加 REDUCE:减少
	Operation *string `json:"operation,omitempty"`

	// 操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。
	Limits *int32 `json:"limits,omitempty"`

	// 操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。
	Size *int32 `json:"size,omitempty"`

	LowerBound *float64 `json:"lower_bound,omitempty"`

	UpperBound *float64 `json:"upper_bound,omitempty"`

	// 操作百分比,取值为0到20000的整数。当scaling_resource_type为SCALING_GROUP时,size和instance_percentage参数均无配置,则size默认为1。当scaling_resource_type为BANDWIDTH时,不支持配置instance_percentage参数。
	Percentage *int32 `json:"percentage,omitempty"`
}

IntervalAlarmActionsV2 操作告警区间

func (IntervalAlarmActionsV2) String added in v0.1.100

func (o IntervalAlarmActionsV2) String() string

type Ipv6Bandwidth

type Ipv6Bandwidth struct {

	// IPv6共享带宽的ID。
	Id string `json:"id"`
}

Ipv6Bandwidth IPv6信息

func (Ipv6Bandwidth) String

func (o Ipv6Bandwidth) String() string

type JobRecords

type JobRecords struct {

	// 任务名称
	JobName *string `json:"job_name,omitempty"`

	// 记录类型。API:接口调用类型。MEG:消息类型。
	RecordType *JobRecordsRecordType `json:"record_type,omitempty"`

	// 记录时间。
	RecordTime *string `json:"record_time,omitempty"`

	// 请求体,仅当record_type为API时有效
	Request *string `json:"request,omitempty"`

	// 返回体,仅当record_type为API时有效
	Response *string `json:"response,omitempty"`

	// 返回码,仅当record_type为API时有效
	Code *string `json:"code,omitempty"`

	// 消息,仅当record_type为MEG时有效
	Message *string `json:"message,omitempty"`

	// job执行状态:SUCCESS:成功。FAIL:失败。
	JobStatus *JobRecordsJobStatus `json:"job_status,omitempty"`
}

JobRecords 策略执行动作包含的具体任务

func (JobRecords) String

func (o JobRecords) String() string

type JobRecordsJobStatus

type JobRecordsJobStatus struct {
	// contains filtered or unexported fields
}

func (JobRecordsJobStatus) MarshalJSON

func (c JobRecordsJobStatus) MarshalJSON() ([]byte, error)

func (*JobRecordsJobStatus) UnmarshalJSON

func (c *JobRecordsJobStatus) UnmarshalJSON(b []byte) error

func (JobRecordsJobStatus) Value added in v0.0.90

func (c JobRecordsJobStatus) Value() string

type JobRecordsJobStatusEnum

type JobRecordsJobStatusEnum struct {
	SUCCESS JobRecordsJobStatus
	FAIL    JobRecordsJobStatus
}

func GetJobRecordsJobStatusEnum

func GetJobRecordsJobStatusEnum() JobRecordsJobStatusEnum

type JobRecordsRecordType

type JobRecordsRecordType struct {
	// contains filtered or unexported fields
}

func (JobRecordsRecordType) MarshalJSON

func (c JobRecordsRecordType) MarshalJSON() ([]byte, error)

func (*JobRecordsRecordType) UnmarshalJSON

func (c *JobRecordsRecordType) UnmarshalJSON(b []byte) error

func (JobRecordsRecordType) Value added in v0.0.90

func (c JobRecordsRecordType) Value() string

type JobRecordsRecordTypeEnum

type JobRecordsRecordTypeEnum struct {
	API JobRecordsRecordType
	MEG JobRecordsRecordType
}

func GetJobRecordsRecordTypeEnum

func GetJobRecordsRecordTypeEnum() JobRecordsRecordTypeEnum

type LbaasListener

type LbaasListener struct {

	// 监听器ID。
	ListenerId *string `json:"listener_id,omitempty"`

	// 后端云服务器组ID。
	PoolId *string `json:"pool_id,omitempty"`

	// 后端协议端口,指后端云服务器监听的端口。
	ProtocolPort *int32 `json:"protocol_port,omitempty"`

	// 权重,指后端云服务器分发得到请求的数量比例。
	Weight *int32 `json:"weight,omitempty"`
}

LbaasListener 增强型负载均衡器信息

func (LbaasListener) String

func (o LbaasListener) String() string

type LbaasListeners

type LbaasListeners struct {

	// 后端云服务器组ID
	PoolId string `json:"pool_id"`

	// 后端协议号,指后端云服务器监听的端口,取值范围[1,65535]
	ProtocolPort int32 `json:"protocol_port"`

	// 权重,指后端云服务器经分发得到的请求数量的比例,取值范围[0, 100]。
	Weight int32 `json:"weight"`

	// 指定ip协议版本
	ProtocolVersion *LbaasListenersProtocolVersion `json:"protocol_version,omitempty"`
}

LbaasListeners 增强型负载均衡器

func (LbaasListeners) String

func (o LbaasListeners) String() string

type LbaasListenersProtocolVersion added in v0.1.58

type LbaasListenersProtocolVersion struct {
	// contains filtered or unexported fields
}

func (LbaasListenersProtocolVersion) MarshalJSON added in v0.1.58

func (c LbaasListenersProtocolVersion) MarshalJSON() ([]byte, error)

func (*LbaasListenersProtocolVersion) UnmarshalJSON added in v0.1.58

func (c *LbaasListenersProtocolVersion) UnmarshalJSON(b []byte) error

func (LbaasListenersProtocolVersion) Value added in v0.1.58

type LbaasListenersProtocolVersionEnum added in v0.1.58

type LbaasListenersProtocolVersionEnum struct {
	IPV4 LbaasListenersProtocolVersion
	IPV6 LbaasListenersProtocolVersion
}

func GetLbaasListenersProtocolVersionEnum added in v0.1.58

func GetLbaasListenersProtocolVersionEnum() LbaasListenersProtocolVersionEnum

type LbaasListenersResult

type LbaasListenersResult struct {

	// 监听器ID
	ListenerId *string `json:"listener_id,omitempty"`

	// 后端云服务器组ID
	PoolId *string `json:"pool_id,omitempty"`

	// 后端协议号,指后端云服务器监听的端口,取值范围[1,65535]
	ProtocolPort *int32 `json:"protocol_port,omitempty"`

	// 权重,指后端云服务器经分发得到的请求数量比例,取值范围[0,1],默认为1。
	Weight *int32 `json:"weight,omitempty"`

	// 指定ip协议版本
	ProtocolVersion *LbaasListenersResultProtocolVersion `json:"protocol_version,omitempty"`
}

LbaasListenersResult 增强型负载均衡器信息

func (LbaasListenersResult) String

func (o LbaasListenersResult) String() string

type LbaasListenersResultProtocolVersion added in v0.1.58

type LbaasListenersResultProtocolVersion struct {
	// contains filtered or unexported fields
}

func (LbaasListenersResultProtocolVersion) MarshalJSON added in v0.1.58

func (c LbaasListenersResultProtocolVersion) MarshalJSON() ([]byte, error)

func (*LbaasListenersResultProtocolVersion) UnmarshalJSON added in v0.1.58

func (c *LbaasListenersResultProtocolVersion) UnmarshalJSON(b []byte) error

func (LbaasListenersResultProtocolVersion) Value added in v0.1.58

type LbaasListenersResultProtocolVersionEnum added in v0.1.58

type LbaasListenersResultProtocolVersionEnum struct {
	IPV4 LbaasListenersResultProtocolVersion
	IPV6 LbaasListenersResultProtocolVersion
}

func GetLbaasListenersResultProtocolVersionEnum added in v0.1.58

func GetLbaasListenersResultProtocolVersionEnum() LbaasListenersResultProtocolVersionEnum

type LifecycleHookList

type LifecycleHookList struct {

	// 生命周期挂钩名称。
	LifecycleHookName *string `json:"lifecycle_hook_name,omitempty"`

	// 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING。
	LifecycleHookType *LifecycleHookListLifecycleHookType `json:"lifecycle_hook_type,omitempty"`

	// 生命周期挂钩默认回调操作。ABANDON;CONTINUE。
	DefaultResult *LifecycleHookListDefaultResult `json:"default_result,omitempty"`

	// 生命周期挂钩超时时间,单位秒。
	DefaultTimeout *int32 `json:"default_timeout,omitempty"`

	// SMN服务中Topic的唯一的资源标识。
	NotificationTopicUrn *string `json:"notification_topic_urn,omitempty"`

	// SMN服务中Topic的资源名称。
	NotificationTopicName *string `json:"notification_topic_name,omitempty"`

	// 自定义通知消息。
	NotificationMetadata *string `json:"notification_metadata,omitempty"`

	// 创建生命周期挂钩时间,遵循UTC时间。
	CreateTime *string `json:"create_time,omitempty"`
}

LifecycleHookList 生命周期挂钩

func (LifecycleHookList) String

func (o LifecycleHookList) String() string

type LifecycleHookListDefaultResult

type LifecycleHookListDefaultResult struct {
	// contains filtered or unexported fields
}

func (LifecycleHookListDefaultResult) MarshalJSON

func (c LifecycleHookListDefaultResult) MarshalJSON() ([]byte, error)

func (*LifecycleHookListDefaultResult) UnmarshalJSON

func (c *LifecycleHookListDefaultResult) UnmarshalJSON(b []byte) error

func (LifecycleHookListDefaultResult) Value added in v0.0.90

type LifecycleHookListDefaultResultEnum

type LifecycleHookListDefaultResultEnum struct {
	ABANDON  LifecycleHookListDefaultResult
	CONTINUE LifecycleHookListDefaultResult
}

func GetLifecycleHookListDefaultResultEnum

func GetLifecycleHookListDefaultResultEnum() LifecycleHookListDefaultResultEnum

type LifecycleHookListLifecycleHookType

type LifecycleHookListLifecycleHookType struct {
	// contains filtered or unexported fields
}

func (LifecycleHookListLifecycleHookType) MarshalJSON

func (c LifecycleHookListLifecycleHookType) MarshalJSON() ([]byte, error)

func (*LifecycleHookListLifecycleHookType) UnmarshalJSON

func (c *LifecycleHookListLifecycleHookType) UnmarshalJSON(b []byte) error

func (LifecycleHookListLifecycleHookType) Value added in v0.0.90

type LifecycleHookListLifecycleHookTypeEnum

type LifecycleHookListLifecycleHookTypeEnum struct {
	INSTANCE_TERMINATING LifecycleHookListLifecycleHookType
	INSTANCE_LAUNCHING   LifecycleHookListLifecycleHookType
}

func GetLifecycleHookListLifecycleHookTypeEnum

func GetLifecycleHookListLifecycleHookTypeEnum() LifecycleHookListLifecycleHookTypeEnum
type Links struct {

	// API的URL地址。
	Href *string `json:"href,omitempty"`

	// API的URL依赖。
	Rel *string `json:"rel,omitempty"`
}

func (Links) String

func (o Links) String() string

type ListAllScalingV2PoliciesRequest

type ListAllScalingV2PoliciesRequest struct {

	// 伸缩组ID。
	ScalingResourceId *string `json:"scaling_resource_id,omitempty"`

	// 伸缩资源类型:伸缩组:SCALING_GROUP;带宽:BANDWIDTH
	ScalingResourceType *ListAllScalingV2PoliciesRequestScalingResourceType `json:"scaling_resource_type,omitempty"`

	// 伸缩策略名称。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 策略类型。  告警策略:ALARM ,定时策略:SCHEDULED, 周期策略:RECURRENCE
	ScalingPolicyType *ListAllScalingV2PoliciesRequestScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数,默认20,最大100。
	Limit *int32 `json:"limit,omitempty"`

	// 排序方法POLICY_NAME:根据策略名称排序;TRIGGER_CONDITION:根据触发条件排序,如升序下,告警策略最先,其余根据最近一次触发时间升序排列;CREATE_TIME:根据策略的创建时间排序。
	SortBy *ListAllScalingV2PoliciesRequestSortBy `json:"sort_by,omitempty"`

	// 排序顺序ASC:升序;DESC:降序
	Order *ListAllScalingV2PoliciesRequestOrder `json:"order,omitempty"`

	// 企业项目ID。当scaling_resource_type指定为:SCALING_GROUP传入all_granted_eps时:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有的伸缩组对应的伸缩策略。授予部分企业项目的IAM用户,可以查询该用户所有授权企业项目下的伸缩组对应的伸缩策略。说明:如果授予部分企业项目的IAM用户拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应伸缩组的伸缩策略列表。当scaling_resource_type指定为:BANDWIDTH传入all_granted_eps时:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有带宽对应的伸缩策略。授予部分企业项目的IAM用户,可以查询该用户所有授权企业项目下的带宽对应的伸缩策略,带宽在all_granted_eps场景下返回策略请参见[《EIP接口参口》查询带宽列表](https://support.huaweicloud.com/api-eip/eip_apiBandwidth_0002.html)。不指定scaling_resource_type当传入all_granted_eps时:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有的伸缩组和带宽对应的伸缩策略。授予部分企业项目的IAM用户,可以查询该用户所有授权企业项目下的伸缩组和带宽对应的伸缩策略。说明:如果授予部分企业项目的IAM用户拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应伸缩组的伸缩策略列表;带宽在all_granted_eps场景下返回策略请参见[《EIP接口参口》查询带宽列表](https://support.huaweicloud.com/api-eip/eip_apiBandwidth_0002.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 告警ID,即告警规则的ID。
	AlarmId *string `json:"alarm_id,omitempty"`
}

ListAllScalingV2PoliciesRequest Request Object

func (ListAllScalingV2PoliciesRequest) String

type ListAllScalingV2PoliciesRequestOrder

type ListAllScalingV2PoliciesRequestOrder struct {
	// contains filtered or unexported fields
}

func (ListAllScalingV2PoliciesRequestOrder) MarshalJSON

func (c ListAllScalingV2PoliciesRequestOrder) MarshalJSON() ([]byte, error)

func (*ListAllScalingV2PoliciesRequestOrder) UnmarshalJSON

func (c *ListAllScalingV2PoliciesRequestOrder) UnmarshalJSON(b []byte) error

func (ListAllScalingV2PoliciesRequestOrder) Value added in v0.0.90

type ListAllScalingV2PoliciesRequestOrderEnum

type ListAllScalingV2PoliciesRequestOrderEnum struct {
	ASC  ListAllScalingV2PoliciesRequestOrder
	DESC ListAllScalingV2PoliciesRequestOrder
}

func GetListAllScalingV2PoliciesRequestOrderEnum

func GetListAllScalingV2PoliciesRequestOrderEnum() ListAllScalingV2PoliciesRequestOrderEnum

type ListAllScalingV2PoliciesRequestScalingPolicyType

type ListAllScalingV2PoliciesRequestScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (ListAllScalingV2PoliciesRequestScalingPolicyType) MarshalJSON

func (*ListAllScalingV2PoliciesRequestScalingPolicyType) UnmarshalJSON

func (ListAllScalingV2PoliciesRequestScalingPolicyType) Value added in v0.0.90

type ListAllScalingV2PoliciesRequestScalingResourceType

type ListAllScalingV2PoliciesRequestScalingResourceType struct {
	// contains filtered or unexported fields
}

func (ListAllScalingV2PoliciesRequestScalingResourceType) MarshalJSON

func (*ListAllScalingV2PoliciesRequestScalingResourceType) UnmarshalJSON

func (ListAllScalingV2PoliciesRequestScalingResourceType) Value added in v0.0.90

type ListAllScalingV2PoliciesRequestSortBy

type ListAllScalingV2PoliciesRequestSortBy struct {
	// contains filtered or unexported fields
}

func (ListAllScalingV2PoliciesRequestSortBy) MarshalJSON

func (c ListAllScalingV2PoliciesRequestSortBy) MarshalJSON() ([]byte, error)

func (*ListAllScalingV2PoliciesRequestSortBy) UnmarshalJSON

func (c *ListAllScalingV2PoliciesRequestSortBy) UnmarshalJSON(b []byte) error

func (ListAllScalingV2PoliciesRequestSortBy) Value added in v0.0.90

type ListAllScalingV2PoliciesRequestSortByEnum

type ListAllScalingV2PoliciesRequestSortByEnum struct {
	POLICY_NAME       ListAllScalingV2PoliciesRequestSortBy
	TRIGGER_CONDITION ListAllScalingV2PoliciesRequestSortBy
	CREATE_TIME       ListAllScalingV2PoliciesRequestSortBy
}

func GetListAllScalingV2PoliciesRequestSortByEnum

func GetListAllScalingV2PoliciesRequestSortByEnum() ListAllScalingV2PoliciesRequestSortByEnum

type ListAllScalingV2PoliciesResponse

type ListAllScalingV2PoliciesResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的起始行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩策略列表
	ScalingPolicies *[]ScalingAllPolicyDetail `json:"scaling_policies,omitempty"`
	HttpStatusCode  int                       `json:"-"`
}

ListAllScalingV2PoliciesResponse Response Object

func (ListAllScalingV2PoliciesResponse) String

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

ListApiVersionsRequest Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {

	// 弹性伸缩API版本信息。
	Versions       *[]VersionInfo `json:"versions,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListApiVersionsResponse Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListGroupScheduledTasksRequest added in v0.1.48

type ListGroupScheduledTasksRequest struct {

	// 伸缩组ID
	ScalingGroupId string `json:"scaling_group_id"`

	// 查询的记录条数
	Limit *int32 `json:"limit,omitempty"`

	// 查询的分页marker
	Marker *string `json:"marker,omitempty"`
}

ListGroupScheduledTasksRequest Request Object

func (ListGroupScheduledTasksRequest) String added in v0.1.48

type ListGroupScheduledTasksResponse added in v0.1.48

type ListGroupScheduledTasksResponse struct {
	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 计划任务列表
	ScheduledTasks *[]ScheduledTaskDetail `json:"scheduled_tasks,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListGroupScheduledTasksResponse Response Object

func (ListGroupScheduledTasksResponse) String added in v0.1.48

type ListHookInstancesRequest

type ListHookInstancesRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`

	// 伸缩实例ID。
	InstanceId *string `json:"instance_id,omitempty"`
}

ListHookInstancesRequest Request Object

func (ListHookInstancesRequest) String

func (o ListHookInstancesRequest) String() string

type ListHookInstancesResponse

type ListHookInstancesResponse struct {

	// 伸缩实例生命周期挂钩列表。
	InstanceHangingInfo *[]InstanceHangingInfos `json:"instance_hanging_info,omitempty"`
	HttpStatusCode      int                     `json:"-"`
}

ListHookInstancesResponse Response Object

func (ListHookInstancesResponse) String

func (o ListHookInstancesResponse) String() string

type ListLifeCycleHooksRequest

type ListLifeCycleHooksRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`
}

ListLifeCycleHooksRequest Request Object

func (ListLifeCycleHooksRequest) String

func (o ListLifeCycleHooksRequest) String() string

type ListLifeCycleHooksResponse

type ListLifeCycleHooksResponse struct {

	// 生命周期挂钩列表。
	LifecycleHooks *[]LifecycleHookList `json:"lifecycle_hooks,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ListLifeCycleHooksResponse Response Object

func (ListLifeCycleHooksResponse) String

type ListResourceInstancesRequest

type ListResourceInstancesRequest struct {

	// 资源类型,枚举类:SCALING_GROUP_TAG。
	ResourceType ListResourceInstancesRequestResourceType `json:"resource_type"`

	Body *QueryTagsOption `json:"body,omitempty"`
}

ListResourceInstancesRequest Request Object

func (ListResourceInstancesRequest) String

type ListResourceInstancesRequestResourceType

type ListResourceInstancesRequestResourceType struct {
	// contains filtered or unexported fields
}

func (ListResourceInstancesRequestResourceType) MarshalJSON

func (*ListResourceInstancesRequestResourceType) UnmarshalJSON

func (c *ListResourceInstancesRequestResourceType) UnmarshalJSON(b []byte) error

func (ListResourceInstancesRequestResourceType) Value added in v0.0.90

type ListResourceInstancesRequestResourceTypeEnum

type ListResourceInstancesRequestResourceTypeEnum struct {
	SCALING_GROUP_TAG ListResourceInstancesRequestResourceType
}

func GetListResourceInstancesRequestResourceTypeEnum

func GetListResourceInstancesRequestResourceTypeEnum() ListResourceInstancesRequestResourceTypeEnum

type ListResourceInstancesResponse

type ListResourceInstancesResponse struct {

	// 标签资源实例。
	Resources *[]Resources `json:"resources,omitempty"`

	// 总记录数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 分页位置标识。
	Marker         *string `json:"marker,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListResourceInstancesResponse Response Object

func (ListResourceInstancesResponse) String

type ListScalingActivityLogsRequest

type ListScalingActivityLogsRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`

	// 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
	EndTime *string `json:"end_time,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数,默认20,最大100。
	Limit *int32 `json:"limit,omitempty"`
}

ListScalingActivityLogsRequest Request Object

func (ListScalingActivityLogsRequest) String

type ListScalingActivityLogsResponse

type ListScalingActivityLogsResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的其实行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩活动日志列表。
	ScalingActivityLog *[]ScalingActivityLogList `json:"scaling_activity_log,omitempty"`
	HttpStatusCode     int                       `json:"-"`
}

ListScalingActivityLogsResponse Response Object

func (ListScalingActivityLogsResponse) String

type ListScalingActivityV2LogsRequest

type ListScalingActivityV2LogsRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`

	// 伸缩活动日志ID
	LogId *string `json:"log_id,omitempty"`

	// 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
	EndTime *string `json:"end_time,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数,默认20,最大100。
	Limit *int32 `json:"limit,omitempty"`

	// 查询的伸缩活动类型(查询多类型使用逗号分隔): - NORMAL:普通伸缩活动 - MANNUAL_REMOVE:从伸缩组手动移除实例 - MANNUAL_DELETE:从伸缩组手动移除并删除实例 - MANNUAL_ADD:实例手动加入伸缩组。 - ELB_CHECK_DELETE:ELB检查移除并删除实例。 - AUDIT_CHECK_DELETE:通过审计openstack移除并删除实例。 - DIFF:期望实例数与实际实例数不一致。 - MODIFY_ELB:LB迁移。 - ENTER_STANDBY:实例转入备用。 - EXIT_STANDBY:实例移出备用。
	Type *ListScalingActivityV2LogsRequestType `json:"type,omitempty"`

	// 查询的伸缩活动状态:SUCCESS:成功;FAIL:失败;DOING:伸缩中
	Status *ListScalingActivityV2LogsRequestStatus `json:"status,omitempty"`
}

ListScalingActivityV2LogsRequest Request Object

func (ListScalingActivityV2LogsRequest) String

type ListScalingActivityV2LogsRequestStatus

type ListScalingActivityV2LogsRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListScalingActivityV2LogsRequestStatus) MarshalJSON

func (c ListScalingActivityV2LogsRequestStatus) MarshalJSON() ([]byte, error)

func (*ListScalingActivityV2LogsRequestStatus) UnmarshalJSON

func (c *ListScalingActivityV2LogsRequestStatus) UnmarshalJSON(b []byte) error

func (ListScalingActivityV2LogsRequestStatus) Value added in v0.0.90

type ListScalingActivityV2LogsRequestType

type ListScalingActivityV2LogsRequestType struct {
	// contains filtered or unexported fields
}

func (ListScalingActivityV2LogsRequestType) MarshalJSON

func (c ListScalingActivityV2LogsRequestType) MarshalJSON() ([]byte, error)

func (*ListScalingActivityV2LogsRequestType) UnmarshalJSON

func (c *ListScalingActivityV2LogsRequestType) UnmarshalJSON(b []byte) error

func (ListScalingActivityV2LogsRequestType) Value added in v0.0.90

type ListScalingActivityV2LogsResponse

type ListScalingActivityV2LogsResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的其实行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩活动日志列表。
	ScalingActivityLog *[]ScalingActivityLogV2 `json:"scaling_activity_log,omitempty"`
	HttpStatusCode     int                     `json:"-"`
}

ListScalingActivityV2LogsResponse Response Object

func (ListScalingActivityV2LogsResponse) String

type ListScalingConfigsRequest

type ListScalingConfigsRequest struct {

	// 伸缩配置名称。
	ScalingConfigurationName *string `json:"scaling_configuration_name,omitempty"`

	// 镜像ID,同imageRef。
	ImageId *string `json:"image_id,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询的记录条数,默认为20。
	Limit *int32 `json:"limit,omitempty"`
}

ListScalingConfigsRequest Request Object

func (ListScalingConfigsRequest) String

func (o ListScalingConfigsRequest) String() string

type ListScalingConfigsResponse

type ListScalingConfigsResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的起始行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩配置列表
	ScalingConfigurations *[]ScalingConfiguration `json:"scaling_configurations,omitempty"`
	HttpStatusCode        int                     `json:"-"`
}

ListScalingConfigsResponse Response Object

func (ListScalingConfigsResponse) String

type ListScalingGroupsRequest

type ListScalingGroupsRequest struct {

	// 伸缩组名称
	ScalingGroupName *string `json:"scaling_group_name,omitempty"`

	// 伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见[查询弹性伸缩配置列表](https://support.huaweicloud.com/api-as/as_06_0202.html)。
	ScalingConfigurationId *string `json:"scaling_configuration_id,omitempty"`

	// 伸缩组状态,取值如下:  - INSERVICE:正常状态 - PAUSED:停用状态 - ERROR:异常状态 - DELETING:删除中 - FREEZED:已冻结
	ScalingGroupStatus *ListScalingGroupsRequestScalingGroupStatus `json:"scaling_group_status,omitempty"`

	// 查询的起始行号,默认为0。最小值为0,最大值没有限制。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询的记录条数,默认为20。取值范围为:0~100。
	Limit *int32 `json:"limit,omitempty"`

	// 企业项目ID,当传入all_granted_eps时表示查询该用户所有授权的企业项目下的伸缩组列表,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。说明:华为云帐号和拥有全局权限的IAM用户可以查询该用户所有伸缩组列表。授予部分企业项目的IAM用户,如果拥有超过100个企业项目,则只能返回有权限的前100个企业项目对应的伸缩组列表。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListScalingGroupsRequest Request Object

func (ListScalingGroupsRequest) String

func (o ListScalingGroupsRequest) String() string

type ListScalingGroupsRequestScalingGroupStatus

type ListScalingGroupsRequestScalingGroupStatus struct {
	// contains filtered or unexported fields
}

func (ListScalingGroupsRequestScalingGroupStatus) MarshalJSON

func (*ListScalingGroupsRequestScalingGroupStatus) UnmarshalJSON

func (ListScalingGroupsRequestScalingGroupStatus) Value added in v0.0.90

type ListScalingGroupsResponse

type ListScalingGroupsResponse struct {

	// 总记录数
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的开始记录号
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩组列表
	ScalingGroups  *[]ScalingGroups `json:"scaling_groups,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListScalingGroupsResponse Response Object

func (ListScalingGroupsResponse) String

func (o ListScalingGroupsResponse) String() string

type ListScalingInstancesRequest

type ListScalingInstancesRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`

	// 实例在伸缩组中的生命周期状态:INSERVICE: 正在使用。PENDING:正在加入伸缩组。REMOVING:正在移出伸缩组。PENDING_WAIT:正在加入伸缩组:等待。REMOVING_WAIT:正在移出伸缩组:等待。
	LifeCycleState *ListScalingInstancesRequestLifeCycleState `json:"life_cycle_state,omitempty"`

	// 实例健康状态:INITIALIZING:初始化。NORMAL:正常。ERROR:异常
	HealthStatus *ListScalingInstancesRequestHealthStatus `json:"health_status,omitempty"`

	// 实例保护状态:true:已设置实例保护。false:未设置实例保护。
	ProtectFromScalingDown *ListScalingInstancesRequestProtectFromScalingDown `json:"protect_from_scaling_down,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询的记录条数,默认为20。
	Limit *int32 `json:"limit,omitempty"`
}

ListScalingInstancesRequest Request Object

func (ListScalingInstancesRequest) String

type ListScalingInstancesRequestHealthStatus

type ListScalingInstancesRequestHealthStatus struct {
	// contains filtered or unexported fields
}

func (ListScalingInstancesRequestHealthStatus) MarshalJSON

func (c ListScalingInstancesRequestHealthStatus) MarshalJSON() ([]byte, error)

func (*ListScalingInstancesRequestHealthStatus) UnmarshalJSON

func (c *ListScalingInstancesRequestHealthStatus) UnmarshalJSON(b []byte) error

func (ListScalingInstancesRequestHealthStatus) Value added in v0.0.90

type ListScalingInstancesRequestLifeCycleState

type ListScalingInstancesRequestLifeCycleState struct {
	// contains filtered or unexported fields
}

func (ListScalingInstancesRequestLifeCycleState) MarshalJSON

func (*ListScalingInstancesRequestLifeCycleState) UnmarshalJSON

func (ListScalingInstancesRequestLifeCycleState) Value added in v0.0.90

type ListScalingInstancesRequestProtectFromScalingDown

type ListScalingInstancesRequestProtectFromScalingDown struct {
	// contains filtered or unexported fields
}

func (ListScalingInstancesRequestProtectFromScalingDown) MarshalJSON

func (*ListScalingInstancesRequestProtectFromScalingDown) UnmarshalJSON

func (ListScalingInstancesRequestProtectFromScalingDown) Value added in v0.0.90

type ListScalingInstancesResponse

type ListScalingInstancesResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的起始行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 伸缩组实例详情。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩组实例详情。
	ScalingGroupInstances *[]ScalingGroupInstance `json:"scaling_group_instances,omitempty"`
	HttpStatusCode        int                     `json:"-"`
}

ListScalingInstancesResponse Response Object

func (ListScalingInstancesResponse) String

type ListScalingNotificationsRequest

type ListScalingNotificationsRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`
}

ListScalingNotificationsRequest Request Object

func (ListScalingNotificationsRequest) String

type ListScalingNotificationsResponse

type ListScalingNotificationsResponse struct {

	// 伸缩组通知列表。
	Topics         *[]Topics `json:"topics,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListScalingNotificationsResponse Response Object

func (ListScalingNotificationsResponse) String

type ListScalingPoliciesRequest

type ListScalingPoliciesRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`

	// 伸缩策略名称。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 策略类型。
	ScalingPolicyType *ListScalingPoliciesRequestScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数,默认20,最大100。
	Limit *int32 `json:"limit,omitempty"`
}

ListScalingPoliciesRequest Request Object

func (ListScalingPoliciesRequest) String

type ListScalingPoliciesRequestScalingPolicyType

type ListScalingPoliciesRequestScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (ListScalingPoliciesRequestScalingPolicyType) MarshalJSON

func (*ListScalingPoliciesRequestScalingPolicyType) UnmarshalJSON

func (ListScalingPoliciesRequestScalingPolicyType) Value added in v0.0.90

type ListScalingPoliciesResponse

type ListScalingPoliciesResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的起始行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩策略列表
	ScalingPolicies *[]ScalingV1PolicyDetail `json:"scaling_policies,omitempty"`
	HttpStatusCode  int                      `json:"-"`
}

ListScalingPoliciesResponse Response Object

func (ListScalingPoliciesResponse) String

type ListScalingPolicyExecuteLogsRequest

type ListScalingPolicyExecuteLogsRequest struct {

	// 伸缩策略ID。
	ScalingPolicyId string `json:"scaling_policy_id"`

	// 日志ID。
	LogId *string `json:"log_id,omitempty"`

	// 伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH
	ScalingResourceType *ListScalingPolicyExecuteLogsRequestScalingResourceType `json:"scaling_resource_type,omitempty"`

	// 伸缩资源ID。
	ScalingResourceId *string `json:"scaling_resource_id,omitempty"`

	// 策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。
	ExecuteType *ListScalingPolicyExecuteLogsRequestExecuteType `json:"execute_type,omitempty"`

	// 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。
	EndTime *string `json:"end_time,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数,默认20,最大100。
	Limit *int32 `json:"limit,omitempty"`
}

ListScalingPolicyExecuteLogsRequest Request Object

func (ListScalingPolicyExecuteLogsRequest) String

type ListScalingPolicyExecuteLogsRequestExecuteType

type ListScalingPolicyExecuteLogsRequestExecuteType struct {
	// contains filtered or unexported fields
}

func (ListScalingPolicyExecuteLogsRequestExecuteType) MarshalJSON

func (*ListScalingPolicyExecuteLogsRequestExecuteType) UnmarshalJSON

func (ListScalingPolicyExecuteLogsRequestExecuteType) Value added in v0.0.90

type ListScalingPolicyExecuteLogsRequestScalingResourceType

type ListScalingPolicyExecuteLogsRequestScalingResourceType struct {
	// contains filtered or unexported fields
}

func (ListScalingPolicyExecuteLogsRequestScalingResourceType) MarshalJSON

func (*ListScalingPolicyExecuteLogsRequestScalingResourceType) UnmarshalJSON

func (ListScalingPolicyExecuteLogsRequestScalingResourceType) Value added in v0.0.90

type ListScalingPolicyExecuteLogsResponse

type ListScalingPolicyExecuteLogsResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的起始行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩策略执行日志列表。
	ScalingPolicyExecuteLog *[]ScalingPolicyExecuteLogList `json:"scaling_policy_execute_log,omitempty"`
	HttpStatusCode          int                            `json:"-"`
}

ListScalingPolicyExecuteLogsResponse Response Object

func (ListScalingPolicyExecuteLogsResponse) String

type ListScalingTagInfosByResourceIdRequest

type ListScalingTagInfosByResourceIdRequest struct {

	// 资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
	ResourceType ListScalingTagInfosByResourceIdRequestResourceType `json:"resource_type"`

	// 资源ID。
	ResourceId string `json:"resource_id"`
}

ListScalingTagInfosByResourceIdRequest Request Object

func (ListScalingTagInfosByResourceIdRequest) String

type ListScalingTagInfosByResourceIdRequestResourceType

type ListScalingTagInfosByResourceIdRequestResourceType struct {
	// contains filtered or unexported fields
}

func (ListScalingTagInfosByResourceIdRequestResourceType) MarshalJSON

func (*ListScalingTagInfosByResourceIdRequestResourceType) UnmarshalJSON

func (ListScalingTagInfosByResourceIdRequestResourceType) Value added in v0.0.90

type ListScalingTagInfosByResourceIdRequestResourceTypeEnum

type ListScalingTagInfosByResourceIdRequestResourceTypeEnum struct {
	SCALING_GROUP_TAG ListScalingTagInfosByResourceIdRequestResourceType
}

type ListScalingTagInfosByResourceIdResponse

type ListScalingTagInfosByResourceIdResponse struct {

	// 资源标签列表。
	Tags *[]TagsSingleValue `json:"tags,omitempty"`

	// 系统资源标签列表。
	SysTags        *[]TagsSingleValue `json:"sys_tags,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListScalingTagInfosByResourceIdResponse Response Object

func (ListScalingTagInfosByResourceIdResponse) String

type ListScalingTagInfosByTenantIdRequest

type ListScalingTagInfosByTenantIdRequest struct {

	// 资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。
	ResourceType ListScalingTagInfosByTenantIdRequestResourceType `json:"resource_type"`
}

ListScalingTagInfosByTenantIdRequest Request Object

func (ListScalingTagInfosByTenantIdRequest) String

type ListScalingTagInfosByTenantIdRequestResourceType

type ListScalingTagInfosByTenantIdRequestResourceType struct {
	// contains filtered or unexported fields
}

func (ListScalingTagInfosByTenantIdRequestResourceType) MarshalJSON

func (*ListScalingTagInfosByTenantIdRequestResourceType) UnmarshalJSON

func (ListScalingTagInfosByTenantIdRequestResourceType) Value added in v0.0.90

type ListScalingTagInfosByTenantIdRequestResourceTypeEnum

type ListScalingTagInfosByTenantIdRequestResourceTypeEnum struct {
	SCALING_GROUP_TAG ListScalingTagInfosByTenantIdRequestResourceType
}

type ListScalingTagInfosByTenantIdResponse

type ListScalingTagInfosByTenantIdResponse struct {

	// 资源标签。
	Tags           *[]TagsMultiValue `json:"tags,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListScalingTagInfosByTenantIdResponse Response Object

func (ListScalingTagInfosByTenantIdResponse) String

type ListScalingV2PoliciesRequest

type ListScalingV2PoliciesRequest struct {

	// 伸缩组ID。
	ScalingResourceId string `json:"scaling_resource_id"`

	// 伸缩策略名称。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 策略类型:  - 告警策略:ALARM - 定时策略:SCHEDULED - 周期策略:RECURRENCE
	ScalingPolicyType *string `json:"scaling_policy_type,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 查询的起始行号,默认为0。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数,默认20,最大100。
	Limit *int32 `json:"limit,omitempty"`
}

ListScalingV2PoliciesRequest Request Object

func (ListScalingV2PoliciesRequest) String

type ListScalingV2PoliciesResponse

type ListScalingV2PoliciesResponse struct {

	// 总记录数。
	TotalNumber *int32 `json:"total_number,omitempty"`

	// 查询的起始行号。
	StartNumber *int32 `json:"start_number,omitempty"`

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 伸缩策略列表
	ScalingPolicies *[]ScalingPoliciesV2 `json:"scaling_policies,omitempty"`
	HttpStatusCode  int                  `json:"-"`
}

ListScalingV2PoliciesResponse Response Object

func (ListScalingV2PoliciesResponse) String

type Matches

type Matches struct {

	// 键。暂限定为resource_name。
	Key string `json:"key"`

	// 值。为固定字典值。每个值最大长度255个unicode字符。若为空字符串、resource_id时为精确匹配。
	Value string `json:"value"`
}

Matches

func (Matches) String

func (o Matches) String() string

type MetaData

type MetaData struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。 说明: 系统盘不支持加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// 用户主密钥ID,是metadata中的表示加密功能的字段,与__system__encrypted配合使用。说明:- 系统盘不支持加密。- 请参考[查询密钥列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=KMS&api=ListKeys&version=v2),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

MetaData 创建磁盘的元数据

func (MetaData) String

func (o MetaData) String() string

type ModifyLb

type ModifyLb struct {
	LbaasListener *LbaasListener `json:"lbaas_listener,omitempty"`

	// 经典型负载均衡器信息
	Listener *string `json:"listener,omitempty"`

	// 负载均衡器迁移失败原因。
	FailedReason *string `json:"failed_reason,omitempty"`

	// 负载均衡器迁移失败详情。
	FailedDetails *string `json:"failed_details,omitempty"`
}

ModifyLb 负载均衡器

func (ModifyLb) String

func (o ModifyLb) String() string

type Networks

type Networks struct {

	// 子网的网络id。
	Id string `json:"id"`

	// 是否启用IPv6。取值为true时,标识此网卡已启用IPv6。
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *Ipv6Bandwidth `json:"ipv6_bandwidth,omitempty"`

	// 是否开启源/目的检查开关。
	AllowedAddressPairs *[]AllowedAddressPair `json:"allowed_address_pairs,omitempty"`
}

Networks 网络信息

func (Networks) String

func (o Networks) String() string

type NetworksResult

type NetworksResult struct {

	// 网络ID
	Id *string `json:"id,omitempty"`

	// 是否启用IPv6。取值为true时,标识此网卡已启用IPv6。
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *Ipv6Bandwidth `json:"ipv6_bandwidth,omitempty"`

	// 是否开启源/目的检查开关。
	AllowedAddressPairs *[]AllowedAddressPair `json:"allowed_address_pairs,omitempty"`
}

NetworksResult 网络信息

func (NetworksResult) String

func (o NetworksResult) String() string

type PageInfo added in v0.1.48

type PageInfo struct {

	// 下一页的marker
	NextMarker *string `json:"next_marker,omitempty"`
}

func (PageInfo) String added in v0.1.48

func (o PageInfo) String() string

type PauseScalingGroupOption

type PauseScalingGroupOption struct {

	// 启用或停止伸缩组操作的标识。启用:resume 停止:pause
	Action PauseScalingGroupOptionAction `json:"action"`
}

PauseScalingGroupOption 启停伸缩组请求

func (PauseScalingGroupOption) String

func (o PauseScalingGroupOption) String() string

type PauseScalingGroupOptionAction

type PauseScalingGroupOptionAction struct {
	// contains filtered or unexported fields
}

func (PauseScalingGroupOptionAction) MarshalJSON

func (c PauseScalingGroupOptionAction) MarshalJSON() ([]byte, error)

func (*PauseScalingGroupOptionAction) UnmarshalJSON

func (c *PauseScalingGroupOptionAction) UnmarshalJSON(b []byte) error

func (PauseScalingGroupOptionAction) Value added in v0.0.90

type PauseScalingGroupOptionActionEnum

type PauseScalingGroupOptionActionEnum struct {
	PAUSE PauseScalingGroupOptionAction
}

func GetPauseScalingGroupOptionActionEnum

func GetPauseScalingGroupOptionActionEnum() PauseScalingGroupOptionActionEnum

type PauseScalingGroupRequest

type PauseScalingGroupRequest struct {

	// 伸缩组ID
	ScalingGroupId string `json:"scaling_group_id"`

	Body *PauseScalingGroupOption `json:"body,omitempty"`
}

PauseScalingGroupRequest Request Object

func (PauseScalingGroupRequest) String

func (o PauseScalingGroupRequest) String() string

type PauseScalingGroupResponse

type PauseScalingGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

PauseScalingGroupResponse Response Object

func (PauseScalingGroupResponse) String

func (o PauseScalingGroupResponse) String() string

type PauseScalingPolicyOption

type PauseScalingPolicyOption struct {

	// 执行或启用或停止伸缩策略操作的标识。执行:execute。启用:resume。停止:pause。
	Action PauseScalingPolicyOptionAction `json:"action"`
}

PauseScalingPolicyOption 执行或启用或停止伸缩策略

func (PauseScalingPolicyOption) String

func (o PauseScalingPolicyOption) String() string

type PauseScalingPolicyOptionAction

type PauseScalingPolicyOptionAction struct {
	// contains filtered or unexported fields
}

func (PauseScalingPolicyOptionAction) MarshalJSON

func (c PauseScalingPolicyOptionAction) MarshalJSON() ([]byte, error)

func (*PauseScalingPolicyOptionAction) UnmarshalJSON

func (c *PauseScalingPolicyOptionAction) UnmarshalJSON(b []byte) error

func (PauseScalingPolicyOptionAction) Value added in v0.0.90

type PauseScalingPolicyOptionActionEnum

type PauseScalingPolicyOptionActionEnum struct {
	PAUSE PauseScalingPolicyOptionAction
}

func GetPauseScalingPolicyOptionActionEnum

func GetPauseScalingPolicyOptionActionEnum() PauseScalingPolicyOptionActionEnum

type PauseScalingPolicyRequest

type PauseScalingPolicyRequest struct {

	// 伸缩策略ID。
	ScalingPolicyId string `json:"scaling_policy_id"`

	Body *PauseScalingPolicyOption `json:"body,omitempty"`
}

PauseScalingPolicyRequest Request Object

func (PauseScalingPolicyRequest) String

func (o PauseScalingPolicyRequest) String() string

type PauseScalingPolicyResponse

type PauseScalingPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

PauseScalingPolicyResponse Response Object

func (PauseScalingPolicyResponse) String

type PersonalityInfo

type PersonalityInfo struct {

	// 注入文件路径信息。Linux系统请输入注入文件保存路径,例如 “/etc/foo.txt”。Windows系统注入文件自动保存在C盘根目录,只需要输入保存文件名,例如 “foo”,文件名只能包含字母(a~zA~Z)和数字(0~9)。
	Path string `json:"path"`

	// 注入文件内容。该值应指定为注入文件的内容进行base64格式编码后的信息。
	Content string `json:"content"`
}

PersonalityInfo 注入文件信息。仅支持注入文本文件,最大支持注入5个文件,每个文件最大1KB。

func (PersonalityInfo) String

func (o PersonalityInfo) String() string

type PersonalityResult

type PersonalityResult struct {

	// 注入文件路径信息。
	Path *string `json:"path,omitempty"`

	// 注入文件内容,base64格式编码。
	Content *string `json:"content,omitempty"`
}

PersonalityResult 个人信息

func (PersonalityResult) String

func (o PersonalityResult) String() string

type PolicyInstanceQuotas

type PolicyInstanceQuotas struct {

	// 配额资源详情。
	Resources *[]PolicyInstanceResources `json:"resources,omitempty"`
}

PolicyInstanceQuotas 配额列表

func (PolicyInstanceQuotas) String

func (o PolicyInstanceQuotas) String() string

type PolicyInstanceResources

type PolicyInstanceResources struct {

	// 查询配额的类型。
	Type *string `json:"type,omitempty"`

	// 已使用的配额数量。
	Used *int32 `json:"used,omitempty"`

	// 配额总数量。
	Quota *int32 `json:"quota,omitempty"`

	// 配额上限。
	Max *int32 `json:"max,omitempty"`

	// 配额下限。
	Min *int32 `json:"min,omitempty"`
}

PolicyInstanceResources 配额资源

func (PolicyInstanceResources) String

func (o PolicyInstanceResources) String() string

type PublicIp

type PublicIp struct {
	Eip *EipInfo `json:"eip"`
}

PublicIp 配置云服务器的弹性IP信息,弹性IP有两种配置方式。详情请参考表 public_ip字段数据结构说明。不使用(无该字段)自动分配,需要指定新创建弹性IP的信息说明:当用户开通了细粒度策略,并且要将配置了弹性IP的伸缩配置关联到某个伸缩组时,这个用户被授予的细粒度策略中必须包含允许“vpc:publicIps:create”的授权项。

func (PublicIp) String

func (o PublicIp) String() string

type PublicipResult

type PublicipResult struct {
	Eip *EipResult `json:"eip,omitempty"`
}

PublicipResult 弹性IP信息

func (PublicipResult) String

func (o PublicipResult) String() string

type QueryTagsOption

type QueryTagsOption struct {

	// 过滤条件,包含标签,最多包含10个Tag,结构体不能缺失。
	Tags *[]TagsMultiValue `json:"tags,omitempty"`

	// 过滤条件,包含任意标签,最多包含10个Tag。
	TagsAny *[]TagsMultiValue `json:"tags_any,omitempty"`

	// 过滤条件,不包含标签,最多包含10个Tag。
	NotTags *[]TagsMultiValue `json:"not_tags,omitempty"`

	// 过滤条件,不包含任意标签,最多包含10个Tag。
	NotTagsAny *[]TagsMultiValue `json:"not_tags_any,omitempty"`

	// 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。
	Limit *string `json:"limit,omitempty"`

	// 分页位置标识(资源ID或索引位置)。
	Marker *string `json:"marker,omitempty"`

	// 操作标识(仅限filter,count):filter(过滤):即分页查询。count(查询总条数):按照条件将总条数返回即可。
	Action QueryTagsOptionAction `json:"action"`

	// (索引位置),从offset指定的下一条数据开始查询。查询第一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数。必须为数字,不能为负数。action:count时,无此参数。action:filter时,默认为0
	Offset *string `json:"offset,omitempty"`

	// 模糊搜索字段。
	Matches *[]Matches `json:"matches,omitempty"`
}

QueryTagsOption 请求正常

func (QueryTagsOption) String

func (o QueryTagsOption) String() string

type QueryTagsOptionAction

type QueryTagsOptionAction struct {
	// contains filtered or unexported fields
}

func (QueryTagsOptionAction) MarshalJSON

func (c QueryTagsOptionAction) MarshalJSON() ([]byte, error)

func (*QueryTagsOptionAction) UnmarshalJSON

func (c *QueryTagsOptionAction) UnmarshalJSON(b []byte) error

func (QueryTagsOptionAction) Value added in v0.0.90

func (c QueryTagsOptionAction) Value() string

type QueryTagsOptionActionEnum

type QueryTagsOptionActionEnum struct {
	FILTER QueryTagsOptionAction
	COUNT  QueryTagsOptionAction
}

func GetQueryTagsOptionActionEnum

func GetQueryTagsOptionActionEnum() QueryTagsOptionActionEnum

type ResourceTags

type ResourceTags struct {

	// 资源标签值。最大长度36个unicode字符。
	Key *string `json:"key,omitempty"`

	// 资源标签值。
	Value *string `json:"value,omitempty"`
}

func (ResourceTags) String

func (o ResourceTags) String() string

type Resources

type Resources struct {

	// 资源详情ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源详情。
	ResourceDetail *string `json:"resource_detail,omitempty"`

	// 标签列表,没有标签默认为空数组。
	Tags *[]ResourceTags `json:"tags,omitempty"`

	// 资源名称,没有默认为空字符串。
	ResourceName *string `json:"resource_name,omitempty"`
}

func (Resources) String

func (o Resources) String() string

type ResumeScalingGroupOption

type ResumeScalingGroupOption struct {

	// 启用或停止伸缩组操作的标识。启用:resume 停止:pause
	Action ResumeScalingGroupOptionAction `json:"action"`
}

ResumeScalingGroupOption 启停伸缩组请求

func (ResumeScalingGroupOption) String

func (o ResumeScalingGroupOption) String() string

type ResumeScalingGroupOptionAction

type ResumeScalingGroupOptionAction struct {
	// contains filtered or unexported fields
}

func (ResumeScalingGroupOptionAction) MarshalJSON

func (c ResumeScalingGroupOptionAction) MarshalJSON() ([]byte, error)

func (*ResumeScalingGroupOptionAction) UnmarshalJSON

func (c *ResumeScalingGroupOptionAction) UnmarshalJSON(b []byte) error

func (ResumeScalingGroupOptionAction) Value added in v0.0.90

type ResumeScalingGroupOptionActionEnum

type ResumeScalingGroupOptionActionEnum struct {
	RESUME ResumeScalingGroupOptionAction
}

func GetResumeScalingGroupOptionActionEnum

func GetResumeScalingGroupOptionActionEnum() ResumeScalingGroupOptionActionEnum

type ResumeScalingGroupRequest

type ResumeScalingGroupRequest struct {

	// 伸缩组ID
	ScalingGroupId string `json:"scaling_group_id"`

	Body *ResumeScalingGroupOption `json:"body,omitempty"`
}

ResumeScalingGroupRequest Request Object

func (ResumeScalingGroupRequest) String

func (o ResumeScalingGroupRequest) String() string

type ResumeScalingGroupResponse

type ResumeScalingGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

ResumeScalingGroupResponse Response Object

func (ResumeScalingGroupResponse) String

type ResumeScalingPolicyOption

type ResumeScalingPolicyOption struct {

	// 执行或启用或停止伸缩策略操作的标识。执行:execute。启用:resume。停止:pause。
	Action ResumeScalingPolicyOptionAction `json:"action"`
}

ResumeScalingPolicyOption 执行或启用或停止伸缩策略

func (ResumeScalingPolicyOption) String

func (o ResumeScalingPolicyOption) String() string

type ResumeScalingPolicyOptionAction

type ResumeScalingPolicyOptionAction struct {
	// contains filtered or unexported fields
}

func (ResumeScalingPolicyOptionAction) MarshalJSON

func (c ResumeScalingPolicyOptionAction) MarshalJSON() ([]byte, error)

func (*ResumeScalingPolicyOptionAction) UnmarshalJSON

func (c *ResumeScalingPolicyOptionAction) UnmarshalJSON(b []byte) error

func (ResumeScalingPolicyOptionAction) Value added in v0.0.90

type ResumeScalingPolicyOptionActionEnum

type ResumeScalingPolicyOptionActionEnum struct {
	RESUME ResumeScalingPolicyOptionAction
}

func GetResumeScalingPolicyOptionActionEnum

func GetResumeScalingPolicyOptionActionEnum() ResumeScalingPolicyOptionActionEnum

type ResumeScalingPolicyRequest

type ResumeScalingPolicyRequest struct {

	// 伸缩策略ID。
	ScalingPolicyId string `json:"scaling_policy_id"`

	Body *ResumeScalingPolicyOption `json:"body,omitempty"`
}

ResumeScalingPolicyRequest Request Object

func (ResumeScalingPolicyRequest) String

type ResumeScalingPolicyResponse

type ResumeScalingPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

ResumeScalingPolicyResponse Response Object

func (ResumeScalingPolicyResponse) String

type ScalingActivityLogList

type ScalingActivityLogList struct {

	// 伸缩活动状态:SUCCESS:成功。FAIL:失败。DOING:伸缩过程中。
	Status *ScalingActivityLogListStatus `json:"status,omitempty"`

	// 伸缩活动触发时间,遵循UTC时间。
	StartTime *sdktime.SdkTime `json:"start_time,omitempty"`

	// 伸缩活动结束时间,遵循UTC时间。
	EndTime *sdktime.SdkTime `json:"end_time,omitempty"`

	// 伸缩活动日志ID。
	Id *string `json:"id,omitempty"`

	// 完成伸缩活动且只被移出弹性伸缩组的云服务器名称列表,云服务器名之间以逗号分隔。
	InstanceRemovedList *string `json:"instance_removed_list,omitempty"`

	// 完成伸缩活动且被移出弹性伸缩组并删除的云服务器名称列表,云服务器名之间以逗号分隔。
	InstanceDeletedList *string `json:"instance_deleted_list,omitempty"`

	// 完成伸缩活动且被加入弹性伸缩组的云服务器名称列表,云服务器名之间以逗号分割。
	InstanceAddedList *string `json:"instance_added_list,omitempty"`

	// 伸缩活动中变化(增加或减少)的云服务器数量。
	ScalingValue *int32 `json:"scaling_value,omitempty"`

	// 伸缩活动的描述信息。
	Description *string `json:"description,omitempty"`

	// 伸缩组当前instance值。
	InstanceValue *int32 `json:"instance_value,omitempty"`

	// 伸缩活动最终desire值。
	DesireValue *int32 `json:"desire_value,omitempty"`
}

ScalingActivityLogList 伸缩活动日志列表。

func (ScalingActivityLogList) String

func (o ScalingActivityLogList) String() string

type ScalingActivityLogListStatus

type ScalingActivityLogListStatus struct {
	// contains filtered or unexported fields
}

func (ScalingActivityLogListStatus) MarshalJSON

func (c ScalingActivityLogListStatus) MarshalJSON() ([]byte, error)

func (*ScalingActivityLogListStatus) UnmarshalJSON

func (c *ScalingActivityLogListStatus) UnmarshalJSON(b []byte) error

func (ScalingActivityLogListStatus) Value added in v0.0.90

type ScalingActivityLogListStatusEnum

type ScalingActivityLogListStatusEnum struct {
	SUCCESS ScalingActivityLogListStatus
	FAIL    ScalingActivityLogListStatus
	DING    ScalingActivityLogListStatus
}

func GetScalingActivityLogListStatusEnum

func GetScalingActivityLogListStatusEnum() ScalingActivityLogListStatusEnum

type ScalingActivityLogV2

type ScalingActivityLogV2 struct {

	// 伸缩活动状态:SUCCESS:成功。FAIL:失败。DOING:伸缩过程中。
	Status *ScalingActivityLogV2Status `json:"status,omitempty"`

	// 伸缩活动触发时间,遵循UTC时间。
	StartTime *sdktime.SdkTime `json:"start_time,omitempty"`

	// 伸缩活动结束时间,遵循UTC时间。
	EndTime *sdktime.SdkTime `json:"end_time,omitempty"`

	// 伸缩活动日志ID。
	Id *string `json:"id,omitempty"`

	// 完成伸缩活动且只被移出弹性伸缩组的云服务器名称列表,云服务信息之间以逗号分隔。
	InstanceRemovedList *[]ScalingInstance `json:"instance_removed_list,omitempty"`

	// 完成伸缩活动且被移出弹性伸缩组并删除的云服务器名称列表,云服务器信息之间以逗号分隔。
	InstanceDeletedList *[]ScalingInstance `json:"instance_deleted_list,omitempty"`

	// 完成伸缩活动且被加入弹性伸缩组的云服务器名称列表,云服务器信息之间以逗号分割。
	InstanceAddedList *[]ScalingInstance `json:"instance_added_list,omitempty"`

	// 弹性伸缩组中伸缩活动失败的云服务器列表。
	InstanceFailedList *[]ScalingInstance `json:"instance_failed_list,omitempty"`

	// 完成伸缩活动且被转入/移出备用状态的云服务器列表
	InstanceStandbyList *[]ScalingInstance `json:"instance_standby_list,omitempty"`

	// 伸缩活动中变化(增加或减少)的云服务器数量。
	ScalingValue *int32 `json:"scaling_value,omitempty"`

	// 伸缩活动的描述信息。
	Description *string `json:"description,omitempty"`

	// 伸缩组当前instance值。
	InstanceValue *int32 `json:"instance_value,omitempty"`

	// 伸缩活动最终desire值。
	DesireValue *int32 `json:"desire_value,omitempty"`

	// 绑定成功的负载均衡器列表。
	LbBindSuccessList *[]ModifyLb `json:"lb_bind_success_list,omitempty"`

	// 绑定失败的负载均衡器列表。
	LbBindFailedList *[]ModifyLb `json:"lb_bind_failed_list,omitempty"`

	// 解绑成功的负载均衡器列表。
	LbUnbindSuccessList *[]ModifyLb `json:"lb_unbind_success_list,omitempty"`

	// 解绑失败的负载均衡器列表。
	LbUnbindFailedList *[]ModifyLb `json:"lb_unbind_failed_list,omitempty"`

	// 伸缩组活动类型
	Type *string `json:"type,omitempty"`
}

ScalingActivityLogV2 伸缩活动日志列表。

func (ScalingActivityLogV2) String

func (o ScalingActivityLogV2) String() string

type ScalingActivityLogV2Status

type ScalingActivityLogV2Status struct {
	// contains filtered or unexported fields
}

func (ScalingActivityLogV2Status) MarshalJSON

func (c ScalingActivityLogV2Status) MarshalJSON() ([]byte, error)

func (*ScalingActivityLogV2Status) UnmarshalJSON

func (c *ScalingActivityLogV2Status) UnmarshalJSON(b []byte) error

func (ScalingActivityLogV2Status) Value added in v0.0.90

type ScalingActivityLogV2StatusEnum

type ScalingActivityLogV2StatusEnum struct {
	SUCCESS ScalingActivityLogV2Status
	FAIL    ScalingActivityLogV2Status
	DING    ScalingActivityLogV2Status
}

func GetScalingActivityLogV2StatusEnum

func GetScalingActivityLogV2StatusEnum() ScalingActivityLogV2StatusEnum

type ScalingAllPolicyDetail

type ScalingAllPolicyDetail struct {

	// 伸缩策略名称。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 伸缩资源ID。
	ScalingResourceId *string `json:"scaling_resource_id,omitempty"`

	// 伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
	ScalingResourceType *ScalingAllPolicyDetailScalingResourceType `json:"scaling_resource_type,omitempty"`

	// 伸缩策略状态。INSERVICE:使用中。PAUSED:停止。EXECUTING:执行中。
	PolicyStatus *ScalingAllPolicyDetailPolicyStatus `json:"policy_status,omitempty"`

	// 伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。
	ScalingPolicyType *ScalingAllPolicyDetailScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 告警ID。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV2 `json:"scaling_policy_action,omitempty"`

	IntervalAlarmActions *[]IntervalAlarmActionsV2 `json:"interval_alarm_actions,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 创建伸缩策略时间,遵循UTC时间
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	MetaData *ScalingPolicyV2MetaData `json:"meta_data,omitempty"`

	// 伸缩策略描述(1-256个字符)
	Description *string `json:"description,omitempty"`
}

ScalingAllPolicyDetail 伸缩策略

func (ScalingAllPolicyDetail) String

func (o ScalingAllPolicyDetail) String() string

type ScalingAllPolicyDetailPolicyStatus

type ScalingAllPolicyDetailPolicyStatus struct {
	// contains filtered or unexported fields
}

func (ScalingAllPolicyDetailPolicyStatus) MarshalJSON

func (c ScalingAllPolicyDetailPolicyStatus) MarshalJSON() ([]byte, error)

func (*ScalingAllPolicyDetailPolicyStatus) UnmarshalJSON

func (c *ScalingAllPolicyDetailPolicyStatus) UnmarshalJSON(b []byte) error

func (ScalingAllPolicyDetailPolicyStatus) Value added in v0.0.90

type ScalingAllPolicyDetailPolicyStatusEnum

type ScalingAllPolicyDetailPolicyStatusEnum struct {
	INSERVICE ScalingAllPolicyDetailPolicyStatus
	PAUSED    ScalingAllPolicyDetailPolicyStatus
	EXECUTING ScalingAllPolicyDetailPolicyStatus
}

func GetScalingAllPolicyDetailPolicyStatusEnum

func GetScalingAllPolicyDetailPolicyStatusEnum() ScalingAllPolicyDetailPolicyStatusEnum

type ScalingAllPolicyDetailScalingPolicyType

type ScalingAllPolicyDetailScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (ScalingAllPolicyDetailScalingPolicyType) MarshalJSON

func (c ScalingAllPolicyDetailScalingPolicyType) MarshalJSON() ([]byte, error)

func (*ScalingAllPolicyDetailScalingPolicyType) UnmarshalJSON

func (c *ScalingAllPolicyDetailScalingPolicyType) UnmarshalJSON(b []byte) error

func (ScalingAllPolicyDetailScalingPolicyType) Value added in v0.0.90

type ScalingAllPolicyDetailScalingResourceType

type ScalingAllPolicyDetailScalingResourceType struct {
	// contains filtered or unexported fields
}

func (ScalingAllPolicyDetailScalingResourceType) MarshalJSON

func (*ScalingAllPolicyDetailScalingResourceType) UnmarshalJSON

func (ScalingAllPolicyDetailScalingResourceType) Value added in v0.0.90

type ScalingAllPolicyDetailScalingResourceTypeEnum

type ScalingAllPolicyDetailScalingResourceTypeEnum struct {
	SCALING_GROUP ScalingAllPolicyDetailScalingResourceType
	BANDWIDTH     ScalingAllPolicyDetailScalingResourceType
}

func GetScalingAllPolicyDetailScalingResourceTypeEnum

func GetScalingAllPolicyDetailScalingResourceTypeEnum() ScalingAllPolicyDetailScalingResourceTypeEnum

type ScalingConfiguration

type ScalingConfiguration struct {

	// 伸缩配置ID,全局唯一。
	ScalingConfigurationId *string `json:"scaling_configuration_id,omitempty"`

	// 租户ID。
	Tenant *string `json:"tenant,omitempty"`

	// 伸缩配置名称。
	ScalingConfigurationName *string `json:"scaling_configuration_name,omitempty"`

	InstanceConfig *InstanceConfigResult `json:"instance_config,omitempty"`

	// 创建伸缩配置的时间,遵循UTC时间。
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	// 绑定该伸缩配置的伸缩组ID
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`
}

ScalingConfiguration 伸缩配置详情

func (ScalingConfiguration) String

func (o ScalingConfiguration) String() string

type ScalingGroupInstance

type ScalingGroupInstance struct {

	// 实例ID。
	InstanceId *string `json:"instance_id,omitempty"`

	// 实例名称。
	InstanceName *string `json:"instance_name,omitempty"`

	// 实例所在伸缩组ID。
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`

	// 实例所在伸缩组名称。
	ScalingGroupName *string `json:"scaling_group_name,omitempty"`

	// 实例在伸缩组中的生命周期状态:  - INSERVICE:已启用 - PENDING:正在加入伸缩组 - PENDING_WAIT:等待(正在加入伸缩组) - REMOVING:正在移出伸缩组 - REMOVING_WAIT:等待(正在移出伸缩组) - STANDBY:已备用 - ENTERING_STANDBY:进入备用状态
	LifeCycleState *ScalingGroupInstanceLifeCycleState `json:"life_cycle_state,omitempty"`

	// 实例健康状态:INITAILIZING:初始化;NORMAL:正常;ERROR:错误。
	HealthStatus *ScalingGroupInstanceHealthStatus `json:"health_status,omitempty"`

	// 伸缩配置名称。如果返回为空,表示伸缩配置已经被删除。如果返回MANNUAL_ADD,表示实例为手动加入。
	ScalingConfigurationName *string `json:"scaling_configuration_name,omitempty"`

	// 伸缩配置ID。
	ScalingConfigurationId *string `json:"scaling_configuration_id,omitempty"`

	// 实例加入伸缩组的时间,遵循UTC时间。
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	// 实例的实例保护属性。
	ProtectFromScalingDown *bool `json:"protect_from_scaling_down,omitempty"`
}

ScalingGroupInstance 伸缩组实例详情

func (ScalingGroupInstance) String

func (o ScalingGroupInstance) String() string

type ScalingGroupInstanceHealthStatus

type ScalingGroupInstanceHealthStatus struct {
	// contains filtered or unexported fields
}

func (ScalingGroupInstanceHealthStatus) MarshalJSON

func (c ScalingGroupInstanceHealthStatus) MarshalJSON() ([]byte, error)

func (*ScalingGroupInstanceHealthStatus) UnmarshalJSON

func (c *ScalingGroupInstanceHealthStatus) UnmarshalJSON(b []byte) error

func (ScalingGroupInstanceHealthStatus) Value added in v0.0.90

type ScalingGroupInstanceHealthStatusEnum

type ScalingGroupInstanceHealthStatusEnum struct {
	NORMAL       ScalingGroupInstanceHealthStatus
	ERROR        ScalingGroupInstanceHealthStatus
	INITAILIZING ScalingGroupInstanceHealthStatus
}

func GetScalingGroupInstanceHealthStatusEnum

func GetScalingGroupInstanceHealthStatusEnum() ScalingGroupInstanceHealthStatusEnum

type ScalingGroupInstanceLifeCycleState

type ScalingGroupInstanceLifeCycleState struct {
	// contains filtered or unexported fields
}

func (ScalingGroupInstanceLifeCycleState) MarshalJSON

func (c ScalingGroupInstanceLifeCycleState) MarshalJSON() ([]byte, error)

func (*ScalingGroupInstanceLifeCycleState) UnmarshalJSON

func (c *ScalingGroupInstanceLifeCycleState) UnmarshalJSON(b []byte) error

func (ScalingGroupInstanceLifeCycleState) Value added in v0.0.90

type ScalingGroups

type ScalingGroups struct {

	// 伸缩组名称。
	ScalingGroupName *string `json:"scaling_group_name,omitempty"`

	// 伸缩组ID。
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`

	// 伸缩组状态。
	ScalingGroupStatus *ScalingGroupsScalingGroupStatus `json:"scaling_group_status,omitempty"`

	// 伸缩配置ID。
	ScalingConfigurationId *string `json:"scaling_configuration_id,omitempty"`

	// 伸缩配置名称。
	ScalingConfigurationName *string `json:"scaling_configuration_name,omitempty"`

	// 伸缩组中当前实例数。
	CurrentInstanceNumber *int32 `json:"current_instance_number,omitempty"`

	// 伸缩组期望实例数。
	DesireInstanceNumber *int32 `json:"desire_instance_number,omitempty"`

	// 伸缩组最小实例数。
	MinInstanceNumber *int32 `json:"min_instance_number,omitempty"`

	// 伸缩组最大实例数
	MaxInstanceNumber *int32 `json:"max_instance_number,omitempty"`

	// 冷却时间,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 经典型负载均衡监听器ID,多个负载均衡监听器ID以逗号分隔。
	LbListenerId *string `json:"lb_listener_id,omitempty"`

	// 增强型负载均衡器信息,该参数为预留字段。
	LbaasListeners *[]LbaasListenersResult `json:"lbaas_listeners,omitempty"`

	// 可用分区信息
	AvailableZones *[]string `json:"available_zones,omitempty"`

	// 网络信息
	Networks *[]NetworksResult `json:"networks,omitempty"`

	// 安全组信息
	SecurityGroups *[]SecurityGroupsResult `json:"security_groups,omitempty"`

	// 创建伸缩组时间,遵循UTC时间。
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	// 伸缩组所在的VPC ID。
	VpcId *string `json:"vpc_id,omitempty"`

	// 伸缩组详情。
	Detail *string `json:"detail,omitempty"`

	// 伸缩组伸缩标志。
	IsScaling *bool `json:"is_scaling,omitempty"`

	// 健康检查方式。
	HealthPeriodicAuditMethod *ScalingGroupsHealthPeriodicAuditMethod `json:"health_periodic_audit_method,omitempty"`

	// 健康检查的间隔时间。
	HealthPeriodicAuditTime *int32 `json:"health_periodic_audit_time,omitempty"`

	// 健康状况检查宽限期。
	HealthPeriodicAuditGracePeriod *int32 `json:"health_periodic_audit_grace_period,omitempty"`

	// 移除策略。
	InstanceTerminatePolicy *ScalingGroupsInstanceTerminatePolicy `json:"instance_terminate_policy,omitempty"`

	// 通知方式:EMAIL为发送邮件通知。该通知方式已经被废除,建议给弹性伸缩组配置通知功能。请参考[通知](https://support.huaweicloud.com/api-as/as_06_0800.html)。
	Notifications *[]string `json:"notifications,omitempty"`

	// 删除云服务器是否删除云服务器绑定的弹性IP。
	DeletePublicip *bool `json:"delete_publicip,omitempty"`

	// 删除云服务器是否删除云服务器绑定的数据盘
	DeleteVolume *bool `json:"delete_volume,omitempty"`

	// 该参数为预留字段
	CloudLocationId *string `json:"cloud_location_id,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 伸缩组活动类型
	ActivityType *string `json:"activity_type,omitempty"`

	// 伸缩组扩缩容时目标AZ选择的优先级策略
	MultiAzPriorityPolicy *string `json:"multi_az_priority_policy,omitempty"`

	// 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
	IamAgencyName *string `json:"iam_agency_name,omitempty"`

	// 伸缩组描述信息
	Description *string `json:"description,omitempty"`

	// 添加到伸缩组的标签。
	Tags *[]TagsSingleValue `json:"tags,omitempty"`
}

ScalingGroups 伸缩组详情

func (ScalingGroups) String

func (o ScalingGroups) String() string

type ScalingGroupsHealthPeriodicAuditMethod

type ScalingGroupsHealthPeriodicAuditMethod struct {
	// contains filtered or unexported fields
}

func (ScalingGroupsHealthPeriodicAuditMethod) MarshalJSON

func (c ScalingGroupsHealthPeriodicAuditMethod) MarshalJSON() ([]byte, error)

func (*ScalingGroupsHealthPeriodicAuditMethod) UnmarshalJSON

func (c *ScalingGroupsHealthPeriodicAuditMethod) UnmarshalJSON(b []byte) error

func (ScalingGroupsHealthPeriodicAuditMethod) Value added in v0.0.90

type ScalingGroupsHealthPeriodicAuditMethodEnum

type ScalingGroupsHealthPeriodicAuditMethodEnum struct {
	ELB_AUDIT  ScalingGroupsHealthPeriodicAuditMethod
	NOVA_AUDIT ScalingGroupsHealthPeriodicAuditMethod
}

func GetScalingGroupsHealthPeriodicAuditMethodEnum

func GetScalingGroupsHealthPeriodicAuditMethodEnum() ScalingGroupsHealthPeriodicAuditMethodEnum

type ScalingGroupsInstanceTerminatePolicy

type ScalingGroupsInstanceTerminatePolicy struct {
	// contains filtered or unexported fields
}

func (ScalingGroupsInstanceTerminatePolicy) MarshalJSON

func (c ScalingGroupsInstanceTerminatePolicy) MarshalJSON() ([]byte, error)

func (*ScalingGroupsInstanceTerminatePolicy) UnmarshalJSON

func (c *ScalingGroupsInstanceTerminatePolicy) UnmarshalJSON(b []byte) error

func (ScalingGroupsInstanceTerminatePolicy) Value added in v0.0.90

type ScalingGroupsInstanceTerminatePolicyEnum

type ScalingGroupsInstanceTerminatePolicyEnum struct {
	OLD_CONFIG_OLD_INSTANCE ScalingGroupsInstanceTerminatePolicy
	OLD_CONFIG_NEW_INSTANCE ScalingGroupsInstanceTerminatePolicy
	OLD_INSTANCE            ScalingGroupsInstanceTerminatePolicy
	NEW_INSTANCE            ScalingGroupsInstanceTerminatePolicy
}

func GetScalingGroupsInstanceTerminatePolicyEnum

func GetScalingGroupsInstanceTerminatePolicyEnum() ScalingGroupsInstanceTerminatePolicyEnum

type ScalingGroupsScalingGroupStatus

type ScalingGroupsScalingGroupStatus struct {
	// contains filtered or unexported fields
}

func (ScalingGroupsScalingGroupStatus) MarshalJSON

func (c ScalingGroupsScalingGroupStatus) MarshalJSON() ([]byte, error)

func (*ScalingGroupsScalingGroupStatus) UnmarshalJSON

func (c *ScalingGroupsScalingGroupStatus) UnmarshalJSON(b []byte) error

func (ScalingGroupsScalingGroupStatus) Value added in v0.0.90

type ScalingInstance

type ScalingInstance struct {

	// 云服务器名称。
	InstanceName *string `json:"instance_name,omitempty"`

	// 云服务器id。
	InstanceId *string `json:"instance_id,omitempty"`

	// 实例伸缩失败原因。
	FailedReason *string `json:"failed_reason,omitempty"`

	// 实例伸缩失败详情。
	FailedDetails *string `json:"failed_details,omitempty"`

	// 实例配置信息。
	InstanceConfig *string `json:"instance_config,omitempty"`
}

ScalingInstance 伸缩实例。

func (ScalingInstance) String

func (o ScalingInstance) String() string

type ScalingPoliciesV2

type ScalingPoliciesV2 struct {

	// 伸缩策略名称。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 伸缩资源ID。
	ScalingResourceId *string `json:"scaling_resource_id,omitempty"`

	// 伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
	ScalingResourceType *ScalingPoliciesV2ScalingResourceType `json:"scaling_resource_type,omitempty"`

	// 伸缩策略状态。INSERVICE:使用中。PAUSED:停止。EXECUTING:执行中。
	PolicyStatus *ScalingPoliciesV2PolicyStatus `json:"policy_status,omitempty"`

	// 伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。
	ScalingPolicyType *ScalingPoliciesV2ScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 告警ID。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV2 `json:"scaling_policy_action,omitempty"`

	IntervalAlarmActions *[]IntervalAlarmActionsV2 `json:"interval_alarm_actions,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 创建伸缩策略时间,遵循UTC时间
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	MetaData *ScalingPolicyV2MetaData `json:"meta_data,omitempty"`

	// 伸缩策略描述(1-256个字符)
	Description *string `json:"description,omitempty"`
}

ScalingPoliciesV2 伸缩策略

func (ScalingPoliciesV2) String

func (o ScalingPoliciesV2) String() string

type ScalingPoliciesV2PolicyStatus

type ScalingPoliciesV2PolicyStatus struct {
	// contains filtered or unexported fields
}

func (ScalingPoliciesV2PolicyStatus) MarshalJSON

func (c ScalingPoliciesV2PolicyStatus) MarshalJSON() ([]byte, error)

func (*ScalingPoliciesV2PolicyStatus) UnmarshalJSON

func (c *ScalingPoliciesV2PolicyStatus) UnmarshalJSON(b []byte) error

func (ScalingPoliciesV2PolicyStatus) Value added in v0.0.90

type ScalingPoliciesV2PolicyStatusEnum

type ScalingPoliciesV2PolicyStatusEnum struct {
	INSERVICE ScalingPoliciesV2PolicyStatus
	PAUSED    ScalingPoliciesV2PolicyStatus
	EXECUTING ScalingPoliciesV2PolicyStatus
}

func GetScalingPoliciesV2PolicyStatusEnum

func GetScalingPoliciesV2PolicyStatusEnum() ScalingPoliciesV2PolicyStatusEnum

type ScalingPoliciesV2ScalingPolicyType

type ScalingPoliciesV2ScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (ScalingPoliciesV2ScalingPolicyType) MarshalJSON

func (c ScalingPoliciesV2ScalingPolicyType) MarshalJSON() ([]byte, error)

func (*ScalingPoliciesV2ScalingPolicyType) UnmarshalJSON

func (c *ScalingPoliciesV2ScalingPolicyType) UnmarshalJSON(b []byte) error

func (ScalingPoliciesV2ScalingPolicyType) Value added in v0.0.90

type ScalingPoliciesV2ScalingResourceType

type ScalingPoliciesV2ScalingResourceType struct {
	// contains filtered or unexported fields
}

func (ScalingPoliciesV2ScalingResourceType) MarshalJSON

func (c ScalingPoliciesV2ScalingResourceType) MarshalJSON() ([]byte, error)

func (*ScalingPoliciesV2ScalingResourceType) UnmarshalJSON

func (c *ScalingPoliciesV2ScalingResourceType) UnmarshalJSON(b []byte) error

func (ScalingPoliciesV2ScalingResourceType) Value added in v0.0.90

type ScalingPoliciesV2ScalingResourceTypeEnum

type ScalingPoliciesV2ScalingResourceTypeEnum struct {
	SCALING_GROUP ScalingPoliciesV2ScalingResourceType
	BANDWIDTH     ScalingPoliciesV2ScalingResourceType
}

func GetScalingPoliciesV2ScalingResourceTypeEnum

func GetScalingPoliciesV2ScalingResourceTypeEnum() ScalingPoliciesV2ScalingResourceTypeEnum

type ScalingPolicyActionV1

type ScalingPolicyActionV1 struct {

	// 操作选项。ADD:添加实例。REMOVE/REDUCE:移除实例。SET:设置实例数为
	Operation *ScalingPolicyActionV1Operation `json:"operation,omitempty"`

	// 操作实例个数,默认为1。当配额为默认配额时,取值范围如下:  operation为SET时,取值范围为:0~300。 operation为ADD或REMOVE/REDUCE时,取值范围为:1~300。 说明: 配置参数时,instance_number和instance_percentage参数只能选其中一个进行配置。
	InstanceNumber *int32 `json:"instance_number,omitempty"`

	// 操作实例百分比,将伸缩组容量增加、减少或设置为伸缩组当前实例个数的百分比。操作为ADD或REMOVE/REDUCE时取值范围为1到20000的整数,操作为SET时取值范围为0到20000的整数。当instance_number和instance_percentage参数均无配置时,则操作实例个数为1。配置参数时,instance_number和instance_percentage参数只能选其中一个进行配置。
	InstancePercentage *int32 `json:"instance_percentage,omitempty"`
}

ScalingPolicyActionV1 策略执行具体动作

func (ScalingPolicyActionV1) String

func (o ScalingPolicyActionV1) String() string

type ScalingPolicyActionV1Operation

type ScalingPolicyActionV1Operation struct {
	// contains filtered or unexported fields
}

func (ScalingPolicyActionV1Operation) MarshalJSON

func (c ScalingPolicyActionV1Operation) MarshalJSON() ([]byte, error)

func (*ScalingPolicyActionV1Operation) UnmarshalJSON

func (c *ScalingPolicyActionV1Operation) UnmarshalJSON(b []byte) error

func (ScalingPolicyActionV1Operation) Value added in v0.0.90

type ScalingPolicyActionV2

type ScalingPolicyActionV2 struct {

	// 操作选项,默认为ADD。 当scaling_resource_type为SCALING_GROUP,支持如下操作: - ADD:增加 - REMOVE/REDUCE:减少 - SET:设置为 当scaling_resource_type为BANDWIDTH,支持如下操作: - ADD:增加 - REDUCE:减少 - SET:设置为
	Operation *ScalingPolicyActionV2Operation `json:"operation,omitempty"`

	// 操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。
	Size *int32 `json:"size,omitempty"`

	// 操作百分比,取值为0到20000的整数。当scaling_resource_type为SCALING_GROUP时,size和instance_percentage参数均无配置,则size默认为1。当scaling_resource_type为BANDWIDTH时,不支持配置instance_percentage参数。
	Percentage *int32 `json:"percentage,omitempty"`

	// 操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。
	Limits *int32 `json:"limits,omitempty"`
}

ScalingPolicyActionV2 策略执行具体动作。

func (ScalingPolicyActionV2) String

func (o ScalingPolicyActionV2) String() string

type ScalingPolicyActionV2Operation

type ScalingPolicyActionV2Operation struct {
	// contains filtered or unexported fields
}

func (ScalingPolicyActionV2Operation) MarshalJSON

func (c ScalingPolicyActionV2Operation) MarshalJSON() ([]byte, error)

func (*ScalingPolicyActionV2Operation) UnmarshalJSON

func (c *ScalingPolicyActionV2Operation) UnmarshalJSON(b []byte) error

func (ScalingPolicyActionV2Operation) Value added in v0.0.90

type ScalingPolicyExecuteLogList

type ScalingPolicyExecuteLogList struct {

	// 策略执行状态:SUCCESS:成功。FAIL:失败。EXECUTING:执行中
	Status *ScalingPolicyExecuteLogListStatus `json:"status,omitempty"`

	// 策略执行失败原因。
	FailedReason *string `json:"failed_reason,omitempty"`

	// 策略执行类型:SCHEDULE:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动警告(告警)。MANUAL:手动触发
	ExecuteType *ScalingPolicyExecuteLogListExecuteType `json:"execute_type,omitempty"`

	// 策略执行时间,遵循UTC时间。
	ExecuteTime *string `json:"execute_time,omitempty"`

	// 策略执行日志ID。
	Id *string `json:"id,omitempty"`

	// 租户id。
	TenantId *string `json:"tenant_id,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 伸缩资源类型:伸缩组:SCALING_GROUP 带宽:BANDWIDTH
	ScalingResourceType *ScalingPolicyExecuteLogListScalingResourceType `json:"scaling_resource_type,omitempty"`

	// 伸缩资源ID。
	ScalingResourceId *string `json:"scaling_resource_id,omitempty"`

	// 伸缩原始值。
	OldValue *string `json:"old_value,omitempty"`

	// 伸缩目标值。
	DesireValue *string `json:"desire_value,omitempty"`

	// 操作限制。当scaling_resource_type为BANDWIDTH时,且operation不为SET时,limit_value生效,单位为Mbit/s。此时,当operation为ADD时,limit_value表示最高带宽限制;当operation为REDUCE时,limit_value表示最低带宽限制。
	LimitValue *string `json:"limit_value,omitempty"`

	// 策略执行任务类型。ADD:添加。REMOVE:减少。SET:设置为
	Type *ScalingPolicyExecuteLogListType `json:"type,omitempty"`

	// 策略执行动作包含的具体任务
	JobRecords *[]JobRecords `json:"job_records,omitempty"`

	MetaData *EipMetaData `json:"meta_data,omitempty"`
}

ScalingPolicyExecuteLogList 伸缩策略执行日志列表

func (ScalingPolicyExecuteLogList) String

type ScalingPolicyExecuteLogListExecuteType

type ScalingPolicyExecuteLogListExecuteType struct {
	// contains filtered or unexported fields
}

func (ScalingPolicyExecuteLogListExecuteType) MarshalJSON

func (c ScalingPolicyExecuteLogListExecuteType) MarshalJSON() ([]byte, error)

func (*ScalingPolicyExecuteLogListExecuteType) UnmarshalJSON

func (c *ScalingPolicyExecuteLogListExecuteType) UnmarshalJSON(b []byte) error

func (ScalingPolicyExecuteLogListExecuteType) Value added in v0.0.90

type ScalingPolicyExecuteLogListScalingResourceType

type ScalingPolicyExecuteLogListScalingResourceType struct {
	// contains filtered or unexported fields
}

func (ScalingPolicyExecuteLogListScalingResourceType) MarshalJSON

func (*ScalingPolicyExecuteLogListScalingResourceType) UnmarshalJSON

func (ScalingPolicyExecuteLogListScalingResourceType) Value added in v0.0.90

type ScalingPolicyExecuteLogListScalingResourceTypeEnum

type ScalingPolicyExecuteLogListScalingResourceTypeEnum struct {
	SCALING_GROUP ScalingPolicyExecuteLogListScalingResourceType
	BANDWIDTH     ScalingPolicyExecuteLogListScalingResourceType
}

func GetScalingPolicyExecuteLogListScalingResourceTypeEnum

func GetScalingPolicyExecuteLogListScalingResourceTypeEnum() ScalingPolicyExecuteLogListScalingResourceTypeEnum

type ScalingPolicyExecuteLogListStatus

type ScalingPolicyExecuteLogListStatus struct {
	// contains filtered or unexported fields
}

func (ScalingPolicyExecuteLogListStatus) MarshalJSON

func (c ScalingPolicyExecuteLogListStatus) MarshalJSON() ([]byte, error)

func (*ScalingPolicyExecuteLogListStatus) UnmarshalJSON

func (c *ScalingPolicyExecuteLogListStatus) UnmarshalJSON(b []byte) error

func (ScalingPolicyExecuteLogListStatus) Value added in v0.0.90

type ScalingPolicyExecuteLogListType

type ScalingPolicyExecuteLogListType struct {
	// contains filtered or unexported fields
}

func (ScalingPolicyExecuteLogListType) MarshalJSON

func (c ScalingPolicyExecuteLogListType) MarshalJSON() ([]byte, error)

func (*ScalingPolicyExecuteLogListType) UnmarshalJSON

func (c *ScalingPolicyExecuteLogListType) UnmarshalJSON(b []byte) error

func (ScalingPolicyExecuteLogListType) Value added in v0.0.90

type ScalingPolicyV2MetaData

type ScalingPolicyV2MetaData struct {

	// 伸缩带宽策略中带宽对应的共享类型
	MetadataBandwidthShareType *string `json:"metadata_bandwidth_share_type,omitempty"`

	// 伸缩带宽策略中带宽对应的EIP的ID
	MetadataEipId *string `json:"metadata_eip_id,omitempty"`

	// 伸缩带宽策略中带宽对应的EIP地址
	MetadataEipAddress *string `json:"metadata_eip_address,omitempty"`
}

ScalingPolicyV2MetaData 附件信息

func (ScalingPolicyV2MetaData) String

func (o ScalingPolicyV2MetaData) String() string

type ScalingV1PolicyDetail

type ScalingV1PolicyDetail struct {

	// 伸缩组ID。
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`

	// 伸缩策略名称。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 伸缩策略状态 INSERVICE:已启用 PAUSED:已停用 EXECUTING:执行中
	PolicyStatus *string `json:"policy_status,omitempty"`

	// 伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。
	ScalingPolicyType *ScalingV1PolicyDetailScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV1 `json:"scaling_policy_action,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 创建伸缩策略时间,遵循UTC时间。
	CreateTime *string `json:"create_time,omitempty"`
}

ScalingV1PolicyDetail 伸缩策略

func (ScalingV1PolicyDetail) String

func (o ScalingV1PolicyDetail) String() string

type ScalingV1PolicyDetailScalingPolicyType

type ScalingV1PolicyDetailScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (ScalingV1PolicyDetailScalingPolicyType) MarshalJSON

func (c ScalingV1PolicyDetailScalingPolicyType) MarshalJSON() ([]byte, error)

func (*ScalingV1PolicyDetailScalingPolicyType) UnmarshalJSON

func (c *ScalingV1PolicyDetailScalingPolicyType) UnmarshalJSON(b []byte) error

func (ScalingV1PolicyDetailScalingPolicyType) Value added in v0.0.90

type ScalingV2PolicyDetail

type ScalingV2PolicyDetail struct {

	// 伸缩策略名称。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`

	// 伸缩资源ID。
	ScalingResourceId *string `json:"scaling_resource_id,omitempty"`

	// 伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
	ScalingResourceType *ScalingV2PolicyDetailScalingResourceType `json:"scaling_resource_type,omitempty"`

	// 伸缩策略状态。INSERVICE:使用中。PAUSED:停止。EXECUTING:执行中。
	PolicyStatus *ScalingV2PolicyDetailPolicyStatus `json:"policy_status,omitempty"`

	// 伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。
	ScalingPolicyType *ScalingV2PolicyDetailScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 告警ID。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV2 `json:"scaling_policy_action,omitempty"`

	IntervalAlarmActions *[]IntervalAlarmActionsV2 `json:"interval_alarm_actions,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 创建伸缩策略时间,遵循UTC时间
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	MetaData *ScalingPolicyV2MetaData `json:"meta_data,omitempty"`

	// 伸缩策略描述(1-256个字符)
	Description *string `json:"description,omitempty"`
}

ScalingV2PolicyDetail 伸缩策略详情

func (ScalingV2PolicyDetail) String

func (o ScalingV2PolicyDetail) String() string

type ScalingV2PolicyDetailPolicyStatus

type ScalingV2PolicyDetailPolicyStatus struct {
	// contains filtered or unexported fields
}

func (ScalingV2PolicyDetailPolicyStatus) MarshalJSON

func (c ScalingV2PolicyDetailPolicyStatus) MarshalJSON() ([]byte, error)

func (*ScalingV2PolicyDetailPolicyStatus) UnmarshalJSON

func (c *ScalingV2PolicyDetailPolicyStatus) UnmarshalJSON(b []byte) error

func (ScalingV2PolicyDetailPolicyStatus) Value added in v0.0.90

type ScalingV2PolicyDetailPolicyStatusEnum

type ScalingV2PolicyDetailPolicyStatusEnum struct {
	INSERVICE ScalingV2PolicyDetailPolicyStatus
	PAUSED    ScalingV2PolicyDetailPolicyStatus
	EXECUTING ScalingV2PolicyDetailPolicyStatus
}

func GetScalingV2PolicyDetailPolicyStatusEnum

func GetScalingV2PolicyDetailPolicyStatusEnum() ScalingV2PolicyDetailPolicyStatusEnum

type ScalingV2PolicyDetailScalingPolicyType

type ScalingV2PolicyDetailScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (ScalingV2PolicyDetailScalingPolicyType) MarshalJSON

func (c ScalingV2PolicyDetailScalingPolicyType) MarshalJSON() ([]byte, error)

func (*ScalingV2PolicyDetailScalingPolicyType) UnmarshalJSON

func (c *ScalingV2PolicyDetailScalingPolicyType) UnmarshalJSON(b []byte) error

func (ScalingV2PolicyDetailScalingPolicyType) Value added in v0.0.90

type ScalingV2PolicyDetailScalingResourceType

type ScalingV2PolicyDetailScalingResourceType struct {
	// contains filtered or unexported fields
}

func (ScalingV2PolicyDetailScalingResourceType) MarshalJSON

func (*ScalingV2PolicyDetailScalingResourceType) UnmarshalJSON

func (c *ScalingV2PolicyDetailScalingResourceType) UnmarshalJSON(b []byte) error

func (ScalingV2PolicyDetailScalingResourceType) Value added in v0.0.90

type ScalingV2PolicyDetailScalingResourceTypeEnum

type ScalingV2PolicyDetailScalingResourceTypeEnum struct {
	SCALING_GROUP ScalingV2PolicyDetailScalingResourceType
	BANDWIDTH     ScalingV2PolicyDetailScalingResourceType
}

func GetScalingV2PolicyDetailScalingResourceTypeEnum

func GetScalingV2PolicyDetailScalingResourceTypeEnum() ScalingV2PolicyDetailScalingResourceTypeEnum

type ScheduledPolicy

type ScheduledPolicy struct {

	// 触发时间,遵循UTC时间。如果scaling_policy_type为SCHEDULED,则格式为:YYYY-MM-DDThh:mmZ。如果scaling_policy_type为RECURRENCE,则格式为:hh:mm。
	LaunchTime string `json:"launch_time"`

	// 周期触发类型,scaling_policy_type为RECURRENCE时该项必选。Daily:每天执行一次。Weekly:每周指定天执行一次。Monthly:每月指定天执行一次。
	RecurrenceType *ScheduledPolicyRecurrenceType `json:"recurrence_type,omitempty"`

	// 周期触发任务数值,scaling_policy_type为RECURRENCE时该项必选。类型为Daily时,该字段为null,表示每天执行类型为Weekly时,该字段取值范围为1-7,1表示星期日,以此类推,以”,”分割,例如:1,3,5。类型为Monthly时,该字段取值范围为1-31,分别表示每月的日期,以“,”分割,例如:1,10,13,28。说明:- 当recurrence_type类型为Daily时,recurrence_value参数不生效。
	RecurrenceValue *string `json:"recurrence_value,omitempty"`

	// 周期策略重复执行开始时间,遵循UTC时间。默认为当前时间,格式为:YYYY-MM-DDThh:mZ
	StartTime *string `json:"start_time,omitempty"`

	// 周期策略重复执行结束时间,遵循UTC时间,scaling_policy_type为RECURRENCE时该项必选。当为周期类型策略时,不得早于当前时间和开始时间。格式为:YYYY-MM-DDThh:mmZ
	EndTime *string `json:"end_time,omitempty"`
}

ScheduledPolicy 定时、周期任务策略

func (ScheduledPolicy) String

func (o ScheduledPolicy) String() string

type ScheduledPolicyRecurrenceType

type ScheduledPolicyRecurrenceType struct {
	// contains filtered or unexported fields
}

func (ScheduledPolicyRecurrenceType) MarshalJSON

func (c ScheduledPolicyRecurrenceType) MarshalJSON() ([]byte, error)

func (*ScheduledPolicyRecurrenceType) UnmarshalJSON

func (c *ScheduledPolicyRecurrenceType) UnmarshalJSON(b []byte) error

func (ScheduledPolicyRecurrenceType) Value added in v0.0.90

type ScheduledPolicyRecurrenceTypeEnum

type ScheduledPolicyRecurrenceTypeEnum struct {
	DAILY   ScheduledPolicyRecurrenceType
	WEEKLY  ScheduledPolicyRecurrenceType
	MONTHLY ScheduledPolicyRecurrenceType
}

func GetScheduledPolicyRecurrenceTypeEnum

func GetScheduledPolicyRecurrenceTypeEnum() ScheduledPolicyRecurrenceTypeEnum

type ScheduledTaskDetail added in v0.1.48

type ScheduledTaskDetail struct {

	// 计划任务ID
	TaskId *string `json:"task_id,omitempty"`

	// 伸缩组ID
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`

	// 名称
	Name *string `json:"name,omitempty"`

	ScheduledPolicy *ScheduledTaskPolicy `json:"scheduled_policy,omitempty"`

	InstanceNumber *IntegerRange `json:"instance_number,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 租户ID
	TenantId *string `json:"tenant_id,omitempty"`

	// 账号ID
	DomainId *string `json:"domain_id,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`
}

func (ScheduledTaskDetail) String added in v0.1.48

func (o ScheduledTaskDetail) String() string

type ScheduledTaskPolicy added in v0.1.58

type ScheduledTaskPolicy struct {

	// 非必选,仅当recurrence_type不为空时生效,表示计划任务的生效开始时间,格式为yyyy-MM-ddTHH:mmZ,不填写时默认为任务创建成功的时间
	StartTime *string `json:"start_time,omitempty"`

	// 仅当recurrence_type不为空时生效且必选,表示计划任务的生效结束时间,格式为yyyy-MM-ddTHH:mmZ
	EndTime *string `json:"end_time,omitempty"`

	// 必选,执行时间,采用UTC时间,recurrence_type不填写或为空时,格式为yyyy-MM-ddTHH:mmZ, recurrence_type不为空时,格式为 HH:mm
	LaunchTime string `json:"launch_time"`

	// 非必选,不填写时计划任务为定时执行, 填写时,为周期执行,且只能填写DAILY,WEEKLY,MONTHLY 中的一种,分别为按天,按周,按月周期执行
	RecurrenceType *ScheduledTaskPolicyRecurrenceType `json:"recurrence_type,omitempty"`

	// 仅当recurrence_type为WEEKLY,MONTHLY时必选,表示周期执行的具体日期,多个日期用,分割。recurrence_type为WEEKLY时,可填入1-7, recurrence_type为MONTHLY时,可填入1-31
	RecurrenceValue *string `json:"recurrence_value,omitempty"`
}

func (ScheduledTaskPolicy) String added in v0.1.58

func (o ScheduledTaskPolicy) String() string

type ScheduledTaskPolicyRecurrenceType added in v0.1.58

type ScheduledTaskPolicyRecurrenceType struct {
	// contains filtered or unexported fields
}

func (ScheduledTaskPolicyRecurrenceType) MarshalJSON added in v0.1.58

func (c ScheduledTaskPolicyRecurrenceType) MarshalJSON() ([]byte, error)

func (*ScheduledTaskPolicyRecurrenceType) UnmarshalJSON added in v0.1.58

func (c *ScheduledTaskPolicyRecurrenceType) UnmarshalJSON(b []byte) error

func (ScheduledTaskPolicyRecurrenceType) Value added in v0.1.58

type ScheduledTaskPolicyRecurrenceTypeEnum added in v0.1.58

type ScheduledTaskPolicyRecurrenceTypeEnum struct {
	DAILY   ScheduledTaskPolicyRecurrenceType
	WEEKLY  ScheduledTaskPolicyRecurrenceType
	MONTHLY ScheduledTaskPolicyRecurrenceType
}

func GetScheduledTaskPolicyRecurrenceTypeEnum added in v0.1.58

func GetScheduledTaskPolicyRecurrenceTypeEnum() ScheduledTaskPolicyRecurrenceTypeEnum

type SecurityGroup

type SecurityGroup struct {

	// 安全组ID。
	Id string `json:"id"`
}

SecurityGroup 安全组信息

func (SecurityGroup) String

func (o SecurityGroup) String() string

type SecurityGroups

type SecurityGroups struct {

	// 安全组ID
	Id string `json:"id"`
}

SecurityGroups 安全组信息

func (SecurityGroups) String

func (o SecurityGroups) String() string

type SecurityGroupsResult

type SecurityGroupsResult struct {

	// 安全组ID
	Id *string `json:"id,omitempty"`
}

SecurityGroupsResult 安全组信息

func (SecurityGroupsResult) String

func (o SecurityGroupsResult) String() string

type ShowApiVersionRequest

type ShowApiVersionRequest struct {

	// API版本ID。
	ApiVersion ShowApiVersionRequestApiVersion `json:"api_version"`
}

ShowApiVersionRequest Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionRequestApiVersion

type ShowApiVersionRequestApiVersion struct {
	// contains filtered or unexported fields
}

func (ShowApiVersionRequestApiVersion) MarshalJSON

func (c ShowApiVersionRequestApiVersion) MarshalJSON() ([]byte, error)

func (*ShowApiVersionRequestApiVersion) UnmarshalJSON

func (c *ShowApiVersionRequestApiVersion) UnmarshalJSON(b []byte) error

func (ShowApiVersionRequestApiVersion) Value added in v0.0.90

type ShowApiVersionRequestApiVersionEnum

type ShowApiVersionRequestApiVersionEnum struct {
	V1 ShowApiVersionRequestApiVersion
	V2 ShowApiVersionRequestApiVersion
}

func GetShowApiVersionRequestApiVersionEnum

func GetShowApiVersionRequestApiVersionEnum() ShowApiVersionRequestApiVersionEnum

type ShowApiVersionResponse

type ShowApiVersionResponse struct {
	Version        *VersionInfo `json:"version,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowApiVersionResponse Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type ShowLifeCycleHookRequest

type ShowLifeCycleHookRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`

	// 生命周期挂钩标识。
	LifecycleHookName string `json:"lifecycle_hook_name"`
}

ShowLifeCycleHookRequest Request Object

func (ShowLifeCycleHookRequest) String

func (o ShowLifeCycleHookRequest) String() string

type ShowLifeCycleHookResponse

type ShowLifeCycleHookResponse struct {

	// 生命周期挂钩名称。
	LifecycleHookName *string `json:"lifecycle_hook_name,omitempty"`

	// 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
	LifecycleHookType *ShowLifeCycleHookResponseLifecycleHookType `json:"lifecycle_hook_type,omitempty"`

	// 生命周期挂钩默认回调操作。ABANDON;CONTINUE
	DefaultResult *ShowLifeCycleHookResponseDefaultResult `json:"default_result,omitempty"`

	// 生命周期挂钩超时时间,单位秒。
	DefaultTimeout *int32 `json:"default_timeout,omitempty"`

	// SMN服务中Topic的唯一的资源标识。
	NotificationTopicUrn *string `json:"notification_topic_urn,omitempty"`

	// SMN服务中Topic的资源名称。
	NotificationTopicName *string `json:"notification_topic_name,omitempty"`

	// 自定义通知消息。
	NotificationMetadata *string `json:"notification_metadata,omitempty"`

	// 生命周期挂钩创建时间,遵循UTC时间。
	CreateTime     *string `json:"create_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowLifeCycleHookResponse Response Object

func (ShowLifeCycleHookResponse) String

func (o ShowLifeCycleHookResponse) String() string

type ShowLifeCycleHookResponseDefaultResult

type ShowLifeCycleHookResponseDefaultResult struct {
	// contains filtered or unexported fields
}

func (ShowLifeCycleHookResponseDefaultResult) MarshalJSON

func (c ShowLifeCycleHookResponseDefaultResult) MarshalJSON() ([]byte, error)

func (*ShowLifeCycleHookResponseDefaultResult) UnmarshalJSON

func (c *ShowLifeCycleHookResponseDefaultResult) UnmarshalJSON(b []byte) error

func (ShowLifeCycleHookResponseDefaultResult) Value added in v0.0.90

type ShowLifeCycleHookResponseDefaultResultEnum

type ShowLifeCycleHookResponseDefaultResultEnum struct {
	ABANDON  ShowLifeCycleHookResponseDefaultResult
	CONTINUE ShowLifeCycleHookResponseDefaultResult
}

func GetShowLifeCycleHookResponseDefaultResultEnum

func GetShowLifeCycleHookResponseDefaultResultEnum() ShowLifeCycleHookResponseDefaultResultEnum

type ShowLifeCycleHookResponseLifecycleHookType

type ShowLifeCycleHookResponseLifecycleHookType struct {
	// contains filtered or unexported fields
}

func (ShowLifeCycleHookResponseLifecycleHookType) MarshalJSON

func (*ShowLifeCycleHookResponseLifecycleHookType) UnmarshalJSON

func (ShowLifeCycleHookResponseLifecycleHookType) Value added in v0.0.90

type ShowLifeCycleHookResponseLifecycleHookTypeEnum

type ShowLifeCycleHookResponseLifecycleHookTypeEnum struct {
	INSTANCE_TERMINATING ShowLifeCycleHookResponseLifecycleHookType
	INSTANCE_LAUNCHING   ShowLifeCycleHookResponseLifecycleHookType
}

func GetShowLifeCycleHookResponseLifecycleHookTypeEnum

func GetShowLifeCycleHookResponseLifecycleHookTypeEnum() ShowLifeCycleHookResponseLifecycleHookTypeEnum

type ShowPolicyAndInstanceQuotaRequest

type ShowPolicyAndInstanceQuotaRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`
}

ShowPolicyAndInstanceQuotaRequest Request Object

func (ShowPolicyAndInstanceQuotaRequest) String

type ShowPolicyAndInstanceQuotaResponse

type ShowPolicyAndInstanceQuotaResponse struct {
	Quotas         *PolicyInstanceQuotas `json:"quotas,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ShowPolicyAndInstanceQuotaResponse Response Object

func (ShowPolicyAndInstanceQuotaResponse) String

type ShowResourceQuotaRequest

type ShowResourceQuotaRequest struct {
}

ShowResourceQuotaRequest Request Object

func (ShowResourceQuotaRequest) String

func (o ShowResourceQuotaRequest) String() string

type ShowResourceQuotaResponse

type ShowResourceQuotaResponse struct {
	Quotas         *AllQuotas `json:"quotas,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ShowResourceQuotaResponse Response Object

func (ShowResourceQuotaResponse) String

func (o ShowResourceQuotaResponse) String() string

type ShowScalingConfigRequest

type ShowScalingConfigRequest struct {

	// 伸缩配置ID,查询唯一配置。
	ScalingConfigurationId string `json:"scaling_configuration_id"`
}

ShowScalingConfigRequest Request Object

func (ShowScalingConfigRequest) String

func (o ShowScalingConfigRequest) String() string

type ShowScalingConfigResponse

type ShowScalingConfigResponse struct {
	ScalingConfiguration *ScalingConfiguration `json:"scaling_configuration,omitempty"`
	HttpStatusCode       int                   `json:"-"`
}

ShowScalingConfigResponse Response Object

func (ShowScalingConfigResponse) String

func (o ShowScalingConfigResponse) String() string

type ShowScalingGroupRequest

type ShowScalingGroupRequest struct {

	// 伸缩组ID。
	ScalingGroupId string `json:"scaling_group_id"`
}

ShowScalingGroupRequest Request Object

func (ShowScalingGroupRequest) String

func (o ShowScalingGroupRequest) String() string

type ShowScalingGroupResponse

type ShowScalingGroupResponse struct {
	ScalingGroup   *ScalingGroups `json:"scaling_group,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowScalingGroupResponse Response Object

func (ShowScalingGroupResponse) String

func (o ShowScalingGroupResponse) String() string

type ShowScalingPolicyRequest

type ShowScalingPolicyRequest struct {

	// 伸缩组ID。
	ScalingPolicyId string `json:"scaling_policy_id"`
}

ShowScalingPolicyRequest Request Object

func (ShowScalingPolicyRequest) String

func (o ShowScalingPolicyRequest) String() string

type ShowScalingPolicyResponse

type ShowScalingPolicyResponse struct {
	ScalingPolicy  *ScalingV1PolicyDetail `json:"scaling_policy,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowScalingPolicyResponse Response Object

func (ShowScalingPolicyResponse) String

func (o ShowScalingPolicyResponse) String() string

type ShowScalingV2PolicyRequest

type ShowScalingV2PolicyRequest struct {

	// 伸缩组ID。
	ScalingPolicyId string `json:"scaling_policy_id"`
}

ShowScalingV2PolicyRequest Request Object

func (ShowScalingV2PolicyRequest) String

type ShowScalingV2PolicyResponse

type ShowScalingV2PolicyResponse struct {
	ScalingPolicy  *ScalingV2PolicyDetail `json:"scaling_policy,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowScalingV2PolicyResponse Response Object

func (ShowScalingV2PolicyResponse) String

type TagsMultiValue

type TagsMultiValue struct {

	// 资源标签键。最大长度36个unicode字符。key不能为空。(搜索时不对此参数做校验)。最多为10个,不能为空或者空字符串。且不能重复。
	Key string `json:"key"`

	// 资源标签值列表,每个值最大长度43个unicode字符,每个key下最多为10个,同一个key中values不能重复。  “*”为系统保留字符,如果value是以“*”开头表示按照“*”后面的值全模糊匹配。不能只传入“*”。 如果values为空列表但不可缺省,则表示any_value(查询任意value)。value之间为或的关系
	Values []string `json:"values"`
}

func (TagsMultiValue) String

func (o TagsMultiValue) String() string

type TagsSingleValue

type TagsSingleValue struct {

	// 资源标签键。最大长度36个unicode字符。key不能为空。(搜索时不对此参数做校验)。最多为10个,不能为空或者空字符串。且不能重复。
	Key string `json:"key"`

	// 资源标签值列表,每个值最大长度43个unicode字符,每个key下最多为10个,同一个key中values不能重复。  “*”为系统保留字符,如果value是以“*”开头表示按照“*”后面的值全模糊匹配。不能只传入“*”。 如果values为空列表但不可缺省,则表示any_value(查询任意value)。value之间为或的关系。
	Value *string `json:"value,omitempty"`
}

TagsSingleValue 资源标签键

func (TagsSingleValue) String

func (o TagsSingleValue) String() string

type Topics

type Topics struct {

	// SMN服务中Topic的唯一的资源标识。
	TopicUrn *string `json:"topic_urn,omitempty"`

	// 通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常
	TopicScene *[]string `json:"topic_scene,omitempty"`

	// SMN服务中Topic的资源名称。
	TopicName *string `json:"topic_name,omitempty"`
}

func (Topics) String

func (o Topics) String() string

type UpdateGroupScheduledTaskRequest added in v0.1.48

type UpdateGroupScheduledTaskRequest struct {

	// 伸缩组ID
	ScalingGroupId string `json:"scaling_group_id"`

	// 计划任务ID
	ScheduledTaskId string `json:"scheduled_task_id"`

	Body *UpdateScheduledTaskOption `json:"body,omitempty"`
}

UpdateGroupScheduledTaskRequest Request Object

func (UpdateGroupScheduledTaskRequest) String added in v0.1.48

type UpdateGroupScheduledTaskResponse added in v0.1.48

type UpdateGroupScheduledTaskResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateGroupScheduledTaskResponse Response Object

func (UpdateGroupScheduledTaskResponse) String added in v0.1.48

type UpdateLifeCycleHookOption

type UpdateLifeCycleHookOption struct {

	// 生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
	LifecycleHookType *UpdateLifeCycleHookOptionLifecycleHookType `json:"lifecycle_hook_type,omitempty"`

	// 生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
	DefaultResult *UpdateLifeCycleHookOptionDefaultResult `json:"default_result,omitempty"`

	// 生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
	DefaultTimeout *int32 `json:"default_timeout,omitempty"`

	// SMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。
	NotificationTopicUrn *string `json:"notification_topic_urn,omitempty"`

	// 自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
	NotificationMetadata *string `json:"notification_metadata,omitempty"`
}

UpdateLifeCycleHookOption 修改生命周期挂钩

func (UpdateLifeCycleHookOption) String

func (o UpdateLifeCycleHookOption) String() string

type UpdateLifeCycleHookOptionDefaultResult

type UpdateLifeCycleHookOptionDefaultResult struct {
	// contains filtered or unexported fields
}

func (UpdateLifeCycleHookOptionDefaultResult) MarshalJSON

func (c UpdateLifeCycleHookOptionDefaultResult) MarshalJSON() ([]byte, error)

func (*UpdateLifeCycleHookOptionDefaultResult) UnmarshalJSON

func (c *UpdateLifeCycleHookOptionDefaultResult) UnmarshalJSON(b []byte) error

func (UpdateLifeCycleHookOptionDefaultResult) Value added in v0.0.90

type UpdateLifeCycleHookOptionDefaultResultEnum

type UpdateLifeCycleHookOptionDefaultResultEnum struct {
	ABANDON  UpdateLifeCycleHookOptionDefaultResult
	CONTINUE UpdateLifeCycleHookOptionDefaultResult
}

func GetUpdateLifeCycleHookOptionDefaultResultEnum

func GetUpdateLifeCycleHookOptionDefaultResultEnum() UpdateLifeCycleHookOptionDefaultResultEnum

type UpdateLifeCycleHookOptionLifecycleHookType

type UpdateLifeCycleHookOptionLifecycleHookType struct {
	// contains filtered or unexported fields
}

func (UpdateLifeCycleHookOptionLifecycleHookType) MarshalJSON

func (*UpdateLifeCycleHookOptionLifecycleHookType) UnmarshalJSON

func (UpdateLifeCycleHookOptionLifecycleHookType) Value added in v0.0.90

type UpdateLifeCycleHookOptionLifecycleHookTypeEnum

type UpdateLifeCycleHookOptionLifecycleHookTypeEnum struct {
	INSTANCE_TERMINATING UpdateLifeCycleHookOptionLifecycleHookType
	INSTANCE_LAUNCHING   UpdateLifeCycleHookOptionLifecycleHookType
}

func GetUpdateLifeCycleHookOptionLifecycleHookTypeEnum

func GetUpdateLifeCycleHookOptionLifecycleHookTypeEnum() UpdateLifeCycleHookOptionLifecycleHookTypeEnum

type UpdateLifeCycleHookRequest

type UpdateLifeCycleHookRequest struct {

	// 伸缩组标识。
	ScalingGroupId string `json:"scaling_group_id"`

	// 生命周期挂钩标识。
	LifecycleHookName string `json:"lifecycle_hook_name"`

	Body *UpdateLifeCycleHookOption `json:"body,omitempty"`
}

UpdateLifeCycleHookRequest Request Object

func (UpdateLifeCycleHookRequest) String

type UpdateLifeCycleHookResponse

type UpdateLifeCycleHookResponse struct {

	// 生命周期挂钩名称。
	LifecycleHookName *string `json:"lifecycle_hook_name,omitempty"`

	// 生命周期挂钩类型。INSTANCE_TERMINATING;INSTANCE_LAUNCHING
	LifecycleHookType *UpdateLifeCycleHookResponseLifecycleHookType `json:"lifecycle_hook_type,omitempty"`

	// 生命周期挂钩默认回调操作。ABANDON;CONTINUE
	DefaultResult *UpdateLifeCycleHookResponseDefaultResult `json:"default_result,omitempty"`

	// 生命周期挂钩超时时间,单位秒。
	DefaultTimeout *int32 `json:"default_timeout,omitempty"`

	// SMN服务中Topic的唯一的资源标识。
	NotificationTopicUrn *string `json:"notification_topic_urn,omitempty"`

	// SMN服务中Topic的资源名称。
	NotificationTopicName *string `json:"notification_topic_name,omitempty"`

	// 自定义通知消息。
	NotificationMetadata *string `json:"notification_metadata,omitempty"`

	// 生命周期挂钩创建时间,遵循UTC时间。
	CreateTime     *string `json:"create_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateLifeCycleHookResponse Response Object

func (UpdateLifeCycleHookResponse) String

type UpdateLifeCycleHookResponseDefaultResult

type UpdateLifeCycleHookResponseDefaultResult struct {
	// contains filtered or unexported fields
}

func (UpdateLifeCycleHookResponseDefaultResult) MarshalJSON

func (*UpdateLifeCycleHookResponseDefaultResult) UnmarshalJSON

func (c *UpdateLifeCycleHookResponseDefaultResult) UnmarshalJSON(b []byte) error

func (UpdateLifeCycleHookResponseDefaultResult) Value added in v0.0.90

type UpdateLifeCycleHookResponseDefaultResultEnum

type UpdateLifeCycleHookResponseDefaultResultEnum struct {
	ABANDON  UpdateLifeCycleHookResponseDefaultResult
	CONTINUE UpdateLifeCycleHookResponseDefaultResult
}

func GetUpdateLifeCycleHookResponseDefaultResultEnum

func GetUpdateLifeCycleHookResponseDefaultResultEnum() UpdateLifeCycleHookResponseDefaultResultEnum

type UpdateLifeCycleHookResponseLifecycleHookType

type UpdateLifeCycleHookResponseLifecycleHookType struct {
	// contains filtered or unexported fields
}

func (UpdateLifeCycleHookResponseLifecycleHookType) MarshalJSON

func (*UpdateLifeCycleHookResponseLifecycleHookType) UnmarshalJSON

func (UpdateLifeCycleHookResponseLifecycleHookType) Value added in v0.0.90

type UpdateLifeCycleHookResponseLifecycleHookTypeEnum

type UpdateLifeCycleHookResponseLifecycleHookTypeEnum struct {
	INSTANCE_TERMINATING UpdateLifeCycleHookResponseLifecycleHookType
	INSTANCE_LAUNCHING   UpdateLifeCycleHookResponseLifecycleHookType
}

func GetUpdateLifeCycleHookResponseLifecycleHookTypeEnum

func GetUpdateLifeCycleHookResponseLifecycleHookTypeEnum() UpdateLifeCycleHookResponseLifecycleHookTypeEnum

type UpdateScalingGroupOption

type UpdateScalingGroupOption struct {

	// 伸缩组名称(1-64个字符),只能包含中文、字母、数字、下划线、中划线。
	ScalingGroupName *string `json:"scaling_group_name,omitempty"`

	// 期望实例数量,默认值为最小实例数。最小实例数<=期望实例数<=最大实例数
	DesireInstanceNumber *int32 `json:"desire_instance_number,omitempty"`

	// 最小实例数量。
	MinInstanceNumber *int32 `json:"min_instance_number,omitempty"`

	// 最大实例数量,大于等于最小实例数。
	MaxInstanceNumber *int32 `json:"max_instance_number,omitempty"`

	// 冷却时间,取值范围0-86400,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 可用分区信息。弹性伸缩活动中自动添加的云服务器会被创建在指定的可用区中。如果没有指定可用分区,会由系统自动指定可用分区。详情请参考地区和终端节点。仅当同时满足以下条件时才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
	AvailableZones *[]string `json:"available_zones,omitempty"`

	// 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取,仅当同时满足以下条件时,才可以修改:伸缩组中无伸缩活动;实例数为0;伸缩组为非启用状态。
	Networks *[]Networks `json:"networks,omitempty"`

	// 安全组信息,最多支持选择1个安全组。使用vpc_id通过查询VPC服务安全组列表接口获取,详见《虚拟私有云API参考》的“查询安全组列表”。当伸缩配置和伸缩组同时指定安全组时,将以伸缩配置中的安全组为准;当伸缩配置和伸缩组都没有指定安全组时,将使用默认安全组。为了使用灵活性更高,推荐在伸缩配置中指定安全组。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
	SecurityGroups *[]SecurityGroup `json:"security_groups,omitempty"`

	// 弹性负载均衡(经典型)监听器ID,最多支持绑定3个负载均衡监听器,多个负载均衡监听器ID以逗号分隔。首先使用vpc_id通过查询ELB服务负载均衡器列表接口获取负载均衡器的ID,详见《弹性负载均衡API参考》的“查询负载均衡器列表”,再使用该ID查询监听器列表获取,详见《弹性负载均衡API参考》的“查询监听器列表”。仅当同时满足以下条件时,才可以修改:伸缩组无伸缩活动;实例数为0;伸缩组为非启用状态。
	LbListenerId *string `json:"lb_listener_id,omitempty"`

	// 弹性负载均衡器(增强型)信息,最多支持绑定3个负载均衡。该字段与lb_listener_id互斥。
	LbaasListeners *[]LbaasListeners `json:"lbaas_listeners,omitempty"`

	// 伸缩组实例健康检查方式:ELB_AUDIT和NOVA_AUDIT。当伸缩组参数中设置负载均衡时,默认为ELB_AUDIT;否则默认为NOVA_AUDIT。ELB_AUDIT表示负载均衡健康检查方式,在有监听器的伸缩组中有效。NOVA_AUDIT表示弹性伸缩自带的健康检查方式。
	HealthPeriodicAuditMethod *UpdateScalingGroupOptionHealthPeriodicAuditMethod `json:"health_periodic_audit_method,omitempty"`

	// 伸缩组实例健康检查周期(分钟):1、5、15、60、180。若设置为0,可以实现10秒级健康检查。
	HealthPeriodicAuditTime *int32 `json:"health_periodic_audit_time,omitempty"`

	// 伸缩组实例健康状况检查宽限期,取值范围0-86400,单位是秒。当实例加入伸缩组并且进入已启用状态后,健康状况检查宽限期才会启动,伸缩组会等健康状况检查宽限期结束后才检查实例的运行状况。当伸缩组实例健康检查方式为ELB_AUDIT时,该参数生效,若不设置该参数,默认为10分钟。
	HealthPeriodicAuditGracePeriod *int32 `json:"health_periodic_audit_grace_period,omitempty"`

	// 伸缩组实例移除策略:OLD_CONFIG_OLD_INSTANCE(默认):从根据“较早创建的配置”创建的实例中筛选出较早创建的实例被优先移除。OLD_CONFIG_NEW_INSTANCE:从根据“较早创建的配置”创建的实例中筛选出较新创建的实例被优先移除。OLD_INSTANCE:较早创建的实例被优先移除。NEW_INSTANCE:较新创建的实例将被优先移除。
	InstanceTerminatePolicy *UpdateScalingGroupOptionInstanceTerminatePolicy `json:"instance_terminate_policy,omitempty"`

	// 伸缩配置ID,通过查询弹性伸缩配置列表接口获取,详见查询弹性伸缩配置列表
	ScalingConfigurationId *string `json:"scaling_configuration_id,omitempty"`

	// 通知方式:EMAIL为发送邮件通知。该通知方式即将被废除,建议给弹性伸缩组配置通知功能。详见通知。
	Notifications *[]string `json:"notifications,omitempty"`

	// 配置删除云服务器时是否删除云服务器绑定的弹性IP。取值为true或false,默认为false。true:删除云服务器时,会同时删除绑定在云服务器上的弹性IP。当弹性IP的计费方式为包年包月时,不会被删除。false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP。
	DeletePublicip *bool `json:"delete_publicip,omitempty"`

	// 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。  true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。
	DeleteVolume *bool `json:"delete_volume,omitempty"`

	// 企业项目ID,用于指定伸缩组归属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目,如何获取企业项目ID,请参考[查询企业项目列表](https://support.huaweicloud.com/api-em/zh-cn_topic_0121230880.html)。当伸缩组配置企业项目时,由该伸缩组创建的弹性云服务器将归属于该企业项目。否则将使用默认企业项目。说明:关于企业项目特性的详细信息,请参见[企业项目管理](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0131965280.html)。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 伸缩组扩缩容时目标AZ选择的优先级策略:  EQUILIBRIUM_DISTRIBUTE(默认):均衡分布,虚拟机扩缩容时优先保证available_zones列表中各AZ下虚拟机数量均衡,当无法在目标AZ下完成虚拟机扩容时,按照PICK_FIRST原则选择其他可用AZ。 PICK_FIRST:选择优先,虚拟机扩缩容时目标AZ的选择按照available_zones列表的顺序进行优先级排序。
	MultiAzPriorityPolicy *string `json:"multi_az_priority_policy,omitempty"`

	// 委托的名称委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
	IamAgencyName *string `json:"iam_agency_name,omitempty"`

	// 伸缩组描述信息(0-256个字符)
	Description *string `json:"description,omitempty"`
}

UpdateScalingGroupOption 修改伸缩组详情

func (UpdateScalingGroupOption) String

func (o UpdateScalingGroupOption) String() string

type UpdateScalingGroupOptionHealthPeriodicAuditMethod

type UpdateScalingGroupOptionHealthPeriodicAuditMethod struct {
	// contains filtered or unexported fields
}

func (UpdateScalingGroupOptionHealthPeriodicAuditMethod) MarshalJSON

func (*UpdateScalingGroupOptionHealthPeriodicAuditMethod) UnmarshalJSON

func (UpdateScalingGroupOptionHealthPeriodicAuditMethod) Value added in v0.0.90

type UpdateScalingGroupOptionInstanceTerminatePolicy

type UpdateScalingGroupOptionInstanceTerminatePolicy struct {
	// contains filtered or unexported fields
}

func (UpdateScalingGroupOptionInstanceTerminatePolicy) MarshalJSON

func (*UpdateScalingGroupOptionInstanceTerminatePolicy) UnmarshalJSON

func (UpdateScalingGroupOptionInstanceTerminatePolicy) Value added in v0.0.90

type UpdateScalingGroupRequest

type UpdateScalingGroupRequest struct {

	// 伸缩组ID
	ScalingGroupId string `json:"scaling_group_id"`

	Body *UpdateScalingGroupOption `json:"body,omitempty"`
}

UpdateScalingGroupRequest Request Object

func (UpdateScalingGroupRequest) String

func (o UpdateScalingGroupRequest) String() string

type UpdateScalingGroupResponse

type UpdateScalingGroupResponse struct {

	// 伸缩组ID
	ScalingGroupId *string `json:"scaling_group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateScalingGroupResponse Response Object

func (UpdateScalingGroupResponse) String

type UpdateScalingPolicyOption

type UpdateScalingPolicyOption struct {

	// 策略名称(1-64字符),可以用中文、字母、数字、下划线、中划线的组合。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
	ScalingPolicyType *UpdateScalingPolicyOptionScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV1 `json:"scaling_policy_action,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`
}

UpdateScalingPolicyOption 修改伸缩策略

func (UpdateScalingPolicyOption) String

func (o UpdateScalingPolicyOption) String() string

type UpdateScalingPolicyOptionScalingPolicyType

type UpdateScalingPolicyOptionScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (UpdateScalingPolicyOptionScalingPolicyType) MarshalJSON

func (*UpdateScalingPolicyOptionScalingPolicyType) UnmarshalJSON

func (UpdateScalingPolicyOptionScalingPolicyType) Value added in v0.0.90

type UpdateScalingPolicyRequest

type UpdateScalingPolicyRequest struct {

	// 伸缩策略ID。
	ScalingPolicyId string `json:"scaling_policy_id"`

	Body *UpdateScalingPolicyOption `json:"body,omitempty"`
}

UpdateScalingPolicyRequest Request Object

func (UpdateScalingPolicyRequest) String

type UpdateScalingPolicyResponse

type UpdateScalingPolicyResponse struct {

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

UpdateScalingPolicyResponse Response Object

func (UpdateScalingPolicyResponse) String

type UpdateScalingV2PolicyOption

type UpdateScalingV2PolicyOption struct {

	// 策略名称(1-64)字符,可以用中文、字母、数字、下划线、中划线的组合。
	ScalingPolicyName *string `json:"scaling_policy_name,omitempty"`

	// 伸缩资源ID,伸缩组唯一标识或带宽唯一标识。如果scaling_resource_type为SCALING_GROUP,对应伸缩组唯一标识。如果scaling_resource_type为BANDWIDTH,对应带宽唯一标识。
	ScalingResourceId *string `json:"scaling_resource_id,omitempty"`

	// 伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。
	ScalingResourceType *UpdateScalingV2PolicyOptionScalingResourceType `json:"scaling_resource_type,omitempty"`

	// 策略类型。告警策略:ALARM(与alarm_id对应);定时策略:SCHEDULED(与scheduled_policy对应);周期策略:RECURRENCE(与scheduled_policy对应)
	ScalingPolicyType *UpdateScalingV2PolicyOptionScalingPolicyType `json:"scaling_policy_type,omitempty"`

	// 告警ID,即告警规则的ID,当scaling_policy_type为ALARM时该项必选,此时scheduled_policy不生效。创建告警策略成功后,会自动为该告警ID对应的告警规则的alarm_actions字段增加类型为autoscaling的告警触发动作。告警ID通过查询云监控告警规则列表获取,详见《云监控API参考》的“查询告警规则列表”。
	AlarmId *string `json:"alarm_id,omitempty"`

	ScheduledPolicy *ScheduledPolicy `json:"scheduled_policy,omitempty"`

	ScalingPolicyAction *ScalingPolicyActionV2 `json:"scaling_policy_action,omitempty"`

	IntervalAlarmActions *[]IntervalAlarmActionsV2 `json:"interval_alarm_actions,omitempty"`

	// 冷却时间,取值范围0-86400,默认为300,单位是秒。
	CoolDownTime *int32 `json:"cool_down_time,omitempty"`

	// 伸缩策略描述(1-256个字符)
	Description *string `json:"description,omitempty"`
}

UpdateScalingV2PolicyOption 修改伸缩策略

func (UpdateScalingV2PolicyOption) String

type UpdateScalingV2PolicyOptionScalingPolicyType

type UpdateScalingV2PolicyOptionScalingPolicyType struct {
	// contains filtered or unexported fields
}

func (UpdateScalingV2PolicyOptionScalingPolicyType) MarshalJSON

func (*UpdateScalingV2PolicyOptionScalingPolicyType) UnmarshalJSON

func (UpdateScalingV2PolicyOptionScalingPolicyType) Value added in v0.0.90

type UpdateScalingV2PolicyOptionScalingResourceType

type UpdateScalingV2PolicyOptionScalingResourceType struct {
	// contains filtered or unexported fields
}

func (UpdateScalingV2PolicyOptionScalingResourceType) MarshalJSON

func (*UpdateScalingV2PolicyOptionScalingResourceType) UnmarshalJSON

func (UpdateScalingV2PolicyOptionScalingResourceType) Value added in v0.0.90

type UpdateScalingV2PolicyOptionScalingResourceTypeEnum

type UpdateScalingV2PolicyOptionScalingResourceTypeEnum struct {
	SCALING_GROUP UpdateScalingV2PolicyOptionScalingResourceType
	BANDWIDTH     UpdateScalingV2PolicyOptionScalingResourceType
}

func GetUpdateScalingV2PolicyOptionScalingResourceTypeEnum

func GetUpdateScalingV2PolicyOptionScalingResourceTypeEnum() UpdateScalingV2PolicyOptionScalingResourceTypeEnum

type UpdateScalingV2PolicyRequest

type UpdateScalingV2PolicyRequest struct {

	// 伸缩策略ID。
	ScalingPolicyId string `json:"scaling_policy_id"`

	Body *UpdateScalingV2PolicyOption `json:"body,omitempty"`
}

UpdateScalingV2PolicyRequest Request Object

func (UpdateScalingV2PolicyRequest) String

type UpdateScalingV2PolicyResponse

type UpdateScalingV2PolicyResponse struct {

	// 伸缩策略ID。
	ScalingPolicyId *string `json:"scaling_policy_id,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

UpdateScalingV2PolicyResponse Response Object

func (UpdateScalingV2PolicyResponse) String

type UpdateScheduledTaskOption added in v0.1.48

type UpdateScheduledTaskOption struct {

	// 计划任务名称
	Name *string `json:"name,omitempty"`

	ScheduledPolicy *ScheduledTaskPolicy `json:"scheduled_policy,omitempty"`

	InstanceNumber *IntegerRange `json:"instance_number,omitempty"`
}

func (UpdateScheduledTaskOption) String added in v0.1.48

func (o UpdateScheduledTaskOption) String() string

type VersionInfo

type VersionInfo struct {

	// API版本ID。
	Id *VersionInfoId `json:"id,omitempty"`

	// API的URL相关信息。
	Links *[]Links `json:"links,omitempty"`

	// 该版本API支持的最小微版本号。
	MinVersion *string `json:"min_version,omitempty"`

	// 版本状态,为如下3种:CURRENT:表示该版本为主推版本;SUPPORT:表示为老版本,但是现在还继续支持;DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status *VersionInfoStatus `json:"status,omitempty"`

	// 版本发布时间,使用UTC时间。
	Update *sdktime.SdkTime `json:"update,omitempty"`

	// 该版本API支持的最大微版本号。
	Version *string `json:"version,omitempty"`
}

func (VersionInfo) String

func (o VersionInfo) String() string

type VersionInfoId

type VersionInfoId struct {
	// contains filtered or unexported fields
}

func (VersionInfoId) MarshalJSON

func (c VersionInfoId) MarshalJSON() ([]byte, error)

func (*VersionInfoId) UnmarshalJSON

func (c *VersionInfoId) UnmarshalJSON(b []byte) error

func (VersionInfoId) Value added in v0.0.90

func (c VersionInfoId) Value() string

type VersionInfoIdEnum

type VersionInfoIdEnum struct {
	V1 VersionInfoId
	V2 VersionInfoId
}

func GetVersionInfoIdEnum

func GetVersionInfoIdEnum() VersionInfoIdEnum

type VersionInfoStatus

type VersionInfoStatus struct {
	// contains filtered or unexported fields
}

func (VersionInfoStatus) MarshalJSON

func (c VersionInfoStatus) MarshalJSON() ([]byte, error)

func (*VersionInfoStatus) UnmarshalJSON

func (c *VersionInfoStatus) UnmarshalJSON(b []byte) error

func (VersionInfoStatus) Value added in v0.0.90

func (c VersionInfoStatus) Value() string

type VersionInfoStatusEnum

type VersionInfoStatusEnum struct {
	CURRENT    VersionInfoStatus
	SUPPORT    VersionInfoStatus
	DEPRECATED VersionInfoStatus
}

func GetVersionInfoStatusEnum

func GetVersionInfoStatusEnum() VersionInfoStatusEnum

type VmMetaData

type VmMetaData struct {

	// 如果需要使用密码方式登录云服务器,可使用adminPass字段指定云服务器管理员帐户初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。密码复杂度要求:- 长度为8-26位。- 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。- 密码不能包含用户名或用户名的逆序。- Windows系统密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。
	AdminPass *string `json:"admin_pass,omitempty"`
}

VmMetaData 云服务器元数据

func (VmMetaData) String

func (o VmMetaData) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL