Documentation ¶
Index ¶
- type AllQuotas
- type AllResources
- type AllResourcesType
- type AllResourcesTypeEnum
- type AllowedAddressPair
- type AttachCallbackInstanceLifeCycleHookRequest
- type AttachCallbackInstanceLifeCycleHookResponse
- type BandwidthInfo
- type BandwidthInfoChargingMode
- type BandwidthInfoChargingModeEnum
- type BandwidthInfoShareType
- type BandwidthInfoShareTypeEnum
- type BandwidthResult
- type BandwidthResultChargingMode
- type BandwidthResultChargingModeEnum
- type BandwidthResultShareType
- type BandwidthResultShareTypeEnum
- type BatchAddInstancesOption
- type BatchAddInstancesOptionAction
- type BatchAddInstancesOptionActionEnum
- type BatchAddInstancesOptionInstanceAppend
- type BatchAddInstancesOptionInstanceAppendEnum
- type BatchAddInstancesOptionInstanceDelete
- type BatchAddInstancesOptionInstanceDeleteEnum
- type BatchAddScalingInstancesRequest
- type BatchAddScalingInstancesResponse
- type BatchDeleteScalingConfigOption
- type BatchDeleteScalingConfigsRequest
- type BatchDeleteScalingConfigsResponse
- type BatchDeleteScalingPoliciesOption
- type BatchDeleteScalingPoliciesOptionAction
- type BatchDeleteScalingPoliciesOptionActionEnum
- type BatchDeleteScalingPoliciesOptionForceDelete
- type BatchDeleteScalingPoliciesOptionForceDeleteEnum
- type BatchDeleteScalingPoliciesRequest
- type BatchDeleteScalingPoliciesResponse
- type BatchEnterStandbyInstancesOption
- type BatchEnterStandbyInstancesOptionAction
- type BatchEnterStandbyInstancesOptionActionEnum
- type BatchEnterStandbyInstancesOptionInstanceAppend
- type BatchEnterStandbyInstancesOptionInstanceAppendEnum
- type BatchEnterStandbyInstancesOptionInstanceDelete
- type BatchEnterStandbyInstancesOptionInstanceDeleteEnum
- type BatchExitStandByInstancesOption
- type BatchExitStandByInstancesOptionAction
- type BatchExitStandByInstancesOptionActionEnum
- type BatchExitStandByInstancesOptionInstanceAppend
- type BatchExitStandByInstancesOptionInstanceAppendEnum
- type BatchExitStandByInstancesOptionInstanceDelete
- type BatchExitStandByInstancesOptionInstanceDeleteEnum
- type BatchPauseScalingPoliciesOption
- type BatchPauseScalingPoliciesOptionAction
- type BatchPauseScalingPoliciesOptionActionEnum
- type BatchPauseScalingPoliciesOptionForceDelete
- type BatchPauseScalingPoliciesOptionForceDeleteEnum
- type BatchPauseScalingPoliciesRequest
- type BatchPauseScalingPoliciesResponse
- type BatchProtectInstancesOption
- type BatchProtectInstancesOptionAction
- type BatchProtectInstancesOptionActionEnum
- type BatchProtectInstancesOptionInstanceAppend
- type BatchProtectInstancesOptionInstanceAppendEnum
- type BatchProtectInstancesOptionInstanceDelete
- type BatchProtectInstancesOptionInstanceDeleteEnum
- type BatchProtectScalingInstancesRequest
- type BatchProtectScalingInstancesResponse
- type BatchRemoveInstancesOption
- type BatchRemoveInstancesOptionAction
- type BatchRemoveInstancesOptionActionEnum
- type BatchRemoveInstancesOptionInstanceAppend
- type BatchRemoveInstancesOptionInstanceAppendEnum
- type BatchRemoveInstancesOptionInstanceDelete
- type BatchRemoveInstancesOptionInstanceDeleteEnum
- type BatchRemoveScalingInstancesRequest
- type BatchRemoveScalingInstancesResponse
- type BatchResumeScalingPoliciesOption
- type BatchResumeScalingPoliciesOptionAction
- type BatchResumeScalingPoliciesOptionActionEnum
- type BatchResumeScalingPoliciesOptionForceDelete
- type BatchResumeScalingPoliciesOptionForceDeleteEnum
- type BatchResumeScalingPoliciesRequest
- type BatchResumeScalingPoliciesResponse
- type BatchSetScalingInstancesStandbyRequest
- type BatchSetScalingInstancesStandbyResponse
- type BatchUnprotectInstancesOption
- type BatchUnprotectInstancesOptionAction
- type BatchUnprotectInstancesOptionActionEnum
- type BatchUnprotectInstancesOptionInstanceAppend
- type BatchUnprotectInstancesOptionInstanceAppendEnum
- type BatchUnprotectInstancesOptionInstanceDelete
- type BatchUnprotectInstancesOptionInstanceDeleteEnum
- type BatchUnprotectScalingInstancesRequest
- type BatchUnprotectScalingInstancesResponse
- type BatchUnsetScalingInstancesStantbyRequest
- type BatchUnsetScalingInstancesStantbyResponse
- type CallbackLifeCycleHookOption
- type CallbackLifeCycleHookOptionLifecycleActionResult
- type CallbackLifeCycleHookOptionLifecycleActionResultEnum
- type CreateGroupScheduledTaskRequest
- type CreateGroupScheduledTaskResponse
- type CreateLifeCycleHookOption
- type CreateLifeCycleHookOptionDefaultResult
- type CreateLifeCycleHookOptionDefaultResultEnum
- type CreateLifeCycleHookOptionLifecycleHookType
- type CreateLifeCycleHookOptionLifecycleHookTypeEnum
- type CreateLifyCycleHookRequest
- type CreateLifyCycleHookResponse
- type CreateLifyCycleHookResponseDefaultResult
- type CreateLifyCycleHookResponseDefaultResultEnum
- type CreateLifyCycleHookResponseLifecycleHookType
- type CreateLifyCycleHookResponseLifecycleHookTypeEnum
- type CreateNotificationOption
- type CreateNotificationOptionTopicScene
- type CreateNotificationOptionTopicSceneEnum
- type CreateScalingConfigOption
- type CreateScalingConfigRequest
- type CreateScalingConfigResponse
- type CreateScalingGroupOption
- type CreateScalingGroupOptionHealthPeriodicAuditMethod
- type CreateScalingGroupOptionHealthPeriodicAuditMethodEnum
- type CreateScalingGroupOptionInstanceTerminatePolicy
- type CreateScalingGroupOptionInstanceTerminatePolicyEnum
- type CreateScalingGroupOptionMultiAzPriorityPolicy
- type CreateScalingGroupOptionMultiAzPriorityPolicyEnum
- type CreateScalingGroupRequest
- type CreateScalingGroupResponse
- type CreateScalingNotificationRequest
- type CreateScalingNotificationResponse
- type CreateScalingPolicyOption
- type CreateScalingPolicyOptionScalingPolicyType
- type CreateScalingPolicyOptionScalingPolicyTypeEnum
- type CreateScalingPolicyRequest
- type CreateScalingPolicyResponse
- type CreateScalingPolicyV2Option
- type CreateScalingPolicyV2OptionScalingPolicyType
- type CreateScalingPolicyV2OptionScalingPolicyTypeEnum
- type CreateScalingPolicyV2OptionScalingResourceType
- type CreateScalingPolicyV2OptionScalingResourceTypeEnum
- type CreateScalingTagInfoRequest
- type CreateScalingTagInfoRequestResourceType
- type CreateScalingTagInfoRequestResourceTypeEnum
- type CreateScalingTagInfoResponse
- type CreateScalingV2PolicyRequest
- type CreateScalingV2PolicyResponse
- type CreateScheduledTaskOption
- type CreateTagsOption
- type CreateTagsOptionAction
- type CreateTagsOptionActionEnum
- type DeleteGroupScheduledTaskRequest
- type DeleteGroupScheduledTaskResponse
- type DeleteLifecycleHookRequest
- type DeleteLifecycleHookResponse
- type DeleteScalingConfigRequest
- type DeleteScalingConfigResponse
- type DeleteScalingGroupRequest
- type DeleteScalingGroupRequestForceDelete
- type DeleteScalingGroupRequestForceDeleteEnum
- type DeleteScalingGroupResponse
- type DeleteScalingInstanceRequest
- type DeleteScalingInstanceRequestInstanceDelete
- type DeleteScalingInstanceRequestInstanceDeleteEnum
- type DeleteScalingInstanceResponse
- type DeleteScalingNotificationRequest
- type DeleteScalingNotificationResponse
- type DeleteScalingPolicyRequest
- type DeleteScalingPolicyResponse
- type DeleteScalingTagInfoRequest
- type DeleteScalingTagInfoRequestResourceType
- type DeleteScalingTagInfoRequestResourceTypeEnum
- type DeleteScalingTagInfoResponse
- type DeleteTagsOption
- type DeleteTagsOptionAction
- type DeleteTagsOptionActionEnum
- type DiskInfo
- type DiskInfoDiskType
- type DiskInfoDiskTypeEnum
- type DiskInfoVolumeType
- type DiskInfoVolumeTypeEnum
- type DiskResult
- type DiskResultDiskType
- type DiskResultDiskTypeEnum
- type DiskResultVolumeType
- type DiskResultVolumeTypeEnum
- type EipInfo
- type EipInfoIpType
- type EipInfoIpTypeEnum
- type EipMetaData
- type EipResult
- type EipResultIpType
- type EipResultIpTypeEnum
- type ExecuteScalingPolicyOption
- type ExecuteScalingPolicyOptionAction
- type ExecuteScalingPolicyOptionActionEnum
- type ExecuteScalingPolicyRequest
- type ExecuteScalingPolicyResponse
- type InstanceConfig
- type InstanceConfigMarketType
- type InstanceConfigMarketTypeEnum
- type InstanceConfigMultiFlavorPriorityPolicy
- type InstanceConfigMultiFlavorPriorityPolicyEnum
- type InstanceConfigResult
- type InstanceConfigTenancy
- type InstanceConfigTenancyEnum
- type InstanceHangingInfos
- type InstanceHangingInfosLifecycleHookStatus
- type InstanceHangingInfosLifecycleHookStatusEnum
- type IntegerRange
- type Ipv6Bandwidth
- type JobRecords
- type JobRecordsJobStatus
- type JobRecordsJobStatusEnum
- type JobRecordsRecordType
- type JobRecordsRecordTypeEnum
- type LbaasListener
- type LbaasListeners
- type LbaasListenersProtocolVersion
- type LbaasListenersProtocolVersionEnum
- type LbaasListenersResult
- type LbaasListenersResultProtocolVersion
- type LbaasListenersResultProtocolVersionEnum
- type LifecycleHookList
- type LifecycleHookListDefaultResult
- type LifecycleHookListDefaultResultEnum
- type LifecycleHookListLifecycleHookType
- type LifecycleHookListLifecycleHookTypeEnum
- type Links
- type ListAllScalingV2PoliciesRequest
- type ListAllScalingV2PoliciesRequestOrder
- type ListAllScalingV2PoliciesRequestOrderEnum
- type ListAllScalingV2PoliciesRequestScalingPolicyType
- type ListAllScalingV2PoliciesRequestScalingPolicyTypeEnum
- type ListAllScalingV2PoliciesRequestScalingResourceType
- type ListAllScalingV2PoliciesRequestScalingResourceTypeEnum
- type ListAllScalingV2PoliciesRequestSortBy
- type ListAllScalingV2PoliciesRequestSortByEnum
- type ListAllScalingV2PoliciesResponse
- type ListApiVersionsRequest
- type ListApiVersionsResponse
- type ListGroupScheduledTasksRequest
- type ListGroupScheduledTasksResponse
- type ListHookInstancesRequest
- type ListHookInstancesResponse
- type ListLifeCycleHooksRequest
- type ListLifeCycleHooksResponse
- type ListResourceInstancesRequest
- type ListResourceInstancesRequestResourceType
- type ListResourceInstancesRequestResourceTypeEnum
- type ListResourceInstancesResponse
- type ListScalingActivityLogsRequest
- type ListScalingActivityLogsResponse
- type ListScalingActivityV2LogsRequest
- type ListScalingActivityV2LogsRequestStatus
- type ListScalingActivityV2LogsRequestStatusEnum
- type ListScalingActivityV2LogsRequestType
- type ListScalingActivityV2LogsRequestTypeEnum
- type ListScalingActivityV2LogsResponse
- type ListScalingConfigsRequest
- type ListScalingConfigsResponse
- type ListScalingGroupsRequest
- type ListScalingGroupsRequestScalingGroupStatus
- type ListScalingGroupsRequestScalingGroupStatusEnum
- type ListScalingGroupsResponse
- type ListScalingInstancesRequest
- type ListScalingInstancesRequestHealthStatus
- type ListScalingInstancesRequestHealthStatusEnum
- type ListScalingInstancesRequestLifeCycleState
- type ListScalingInstancesRequestLifeCycleStateEnum
- type ListScalingInstancesRequestProtectFromScalingDown
- type ListScalingInstancesRequestProtectFromScalingDownEnum
- type ListScalingInstancesResponse
- type ListScalingNotificationsRequest
- type ListScalingNotificationsResponse
- type ListScalingPoliciesRequest
- type ListScalingPoliciesRequestScalingPolicyType
- type ListScalingPoliciesRequestScalingPolicyTypeEnum
- type ListScalingPoliciesResponse
- type ListScalingPolicyExecuteLogsRequest
- type ListScalingPolicyExecuteLogsRequestExecuteType
- type ListScalingPolicyExecuteLogsRequestExecuteTypeEnum
- type ListScalingPolicyExecuteLogsRequestScalingResourceType
- type ListScalingPolicyExecuteLogsRequestScalingResourceTypeEnum
- type ListScalingPolicyExecuteLogsResponse
- type ListScalingTagInfosByResourceIdRequest
- type ListScalingTagInfosByResourceIdRequestResourceType
- type ListScalingTagInfosByResourceIdRequestResourceTypeEnum
- type ListScalingTagInfosByResourceIdResponse
- type ListScalingTagInfosByTenantIdRequest
- type ListScalingTagInfosByTenantIdRequestResourceType
- type ListScalingTagInfosByTenantIdRequestResourceTypeEnum
- type ListScalingTagInfosByTenantIdResponse
- type ListScalingV2PoliciesRequest
- type ListScalingV2PoliciesResponse
- type Matches
- type MetaData
- type ModifyLb
- type Networks
- type NetworksResult
- type PageInfo
- type PauseScalingGroupOption
- type PauseScalingGroupOptionAction
- type PauseScalingGroupOptionActionEnum
- type PauseScalingGroupRequest
- type PauseScalingGroupResponse
- type PauseScalingPolicyOption
- type PauseScalingPolicyOptionAction
- type PauseScalingPolicyOptionActionEnum
- type PauseScalingPolicyRequest
- type PauseScalingPolicyResponse
- type PersonalityInfo
- type PersonalityResult
- type PolicyInstanceQuotas
- type PolicyInstanceResources
- type PublicIp
- type PublicipResult
- type QueryTagsOption
- type QueryTagsOptionAction
- type QueryTagsOptionActionEnum
- type ResourceTags
- type Resources
- type ResumeScalingGroupOption
- type ResumeScalingGroupOptionAction
- type ResumeScalingGroupOptionActionEnum
- type ResumeScalingGroupRequest
- type ResumeScalingGroupResponse
- type ResumeScalingPolicyOption
- type ResumeScalingPolicyOptionAction
- type ResumeScalingPolicyOptionActionEnum
- type ResumeScalingPolicyRequest
- type ResumeScalingPolicyResponse
- type ScalingActivityLogList
- type ScalingActivityLogListStatus
- type ScalingActivityLogListStatusEnum
- type ScalingActivityLogV2
- type ScalingActivityLogV2Status
- type ScalingActivityLogV2StatusEnum
- type ScalingAllPolicyDetail
- type ScalingAllPolicyDetailPolicyStatus
- type ScalingAllPolicyDetailPolicyStatusEnum
- type ScalingAllPolicyDetailScalingPolicyType
- type ScalingAllPolicyDetailScalingPolicyTypeEnum
- type ScalingAllPolicyDetailScalingResourceType
- type ScalingAllPolicyDetailScalingResourceTypeEnum
- type ScalingConfiguration
- type ScalingGroupInstance
- type ScalingGroupInstanceHealthStatus
- type ScalingGroupInstanceHealthStatusEnum
- type ScalingGroupInstanceLifeCycleState
- type ScalingGroupInstanceLifeCycleStateEnum
- type ScalingGroups
- type ScalingGroupsHealthPeriodicAuditMethod
- type ScalingGroupsHealthPeriodicAuditMethodEnum
- type ScalingGroupsInstanceTerminatePolicy
- type ScalingGroupsInstanceTerminatePolicyEnum
- type ScalingGroupsScalingGroupStatus
- type ScalingGroupsScalingGroupStatusEnum
- type ScalingInstance
- type ScalingPoliciesV2
- type ScalingPoliciesV2PolicyStatus
- type ScalingPoliciesV2PolicyStatusEnum
- type ScalingPoliciesV2ScalingPolicyType
- type ScalingPoliciesV2ScalingPolicyTypeEnum
- type ScalingPoliciesV2ScalingResourceType
- type ScalingPoliciesV2ScalingResourceTypeEnum
- type ScalingPolicyActionV1
- type ScalingPolicyActionV1Operation
- type ScalingPolicyActionV1OperationEnum
- type ScalingPolicyActionV2
- type ScalingPolicyActionV2Operation
- type ScalingPolicyActionV2OperationEnum
- type ScalingPolicyExecuteLogList
- type ScalingPolicyExecuteLogListExecuteType
- type ScalingPolicyExecuteLogListExecuteTypeEnum
- type ScalingPolicyExecuteLogListScalingResourceType
- type ScalingPolicyExecuteLogListScalingResourceTypeEnum
- type ScalingPolicyExecuteLogListStatus
- type ScalingPolicyExecuteLogListStatusEnum
- type ScalingPolicyExecuteLogListType
- type ScalingPolicyExecuteLogListTypeEnum
- type ScalingPolicyV2MetaData
- type ScalingV1PolicyDetail
- type ScalingV1PolicyDetailScalingPolicyType
- type ScalingV1PolicyDetailScalingPolicyTypeEnum
- type ScalingV2PolicyDetail
- type ScalingV2PolicyDetailPolicyStatus
- type ScalingV2PolicyDetailPolicyStatusEnum
- type ScalingV2PolicyDetailScalingPolicyType
- type ScalingV2PolicyDetailScalingPolicyTypeEnum
- type ScalingV2PolicyDetailScalingResourceType
- type ScalingV2PolicyDetailScalingResourceTypeEnum
- type ScheduledPolicy
- type ScheduledPolicyRecurrenceType
- type ScheduledPolicyRecurrenceTypeEnum
- type ScheduledTaskDetail
- type ScheduledTaskPolicy
- type ScheduledTaskPolicyRecurrenceType
- type ScheduledTaskPolicyRecurrenceTypeEnum
- type SecurityGroup
- type SecurityGroups
- type SecurityGroupsResult
- type ShowApiVersionRequest
- type ShowApiVersionRequestApiVersion
- type ShowApiVersionRequestApiVersionEnum
- type ShowApiVersionResponse
- type ShowLifeCycleHookRequest
- type ShowLifeCycleHookResponse
- type ShowLifeCycleHookResponseDefaultResult
- type ShowLifeCycleHookResponseDefaultResultEnum
- type ShowLifeCycleHookResponseLifecycleHookType
- type ShowLifeCycleHookResponseLifecycleHookTypeEnum
- type ShowPolicyAndInstanceQuotaRequest
- type ShowPolicyAndInstanceQuotaResponse
- type ShowResourceQuotaRequest
- type ShowResourceQuotaResponse
- type ShowScalingConfigRequest
- type ShowScalingConfigResponse
- type ShowScalingGroupRequest
- type ShowScalingGroupResponse
- type ShowScalingPolicyRequest
- type ShowScalingPolicyResponse
- type ShowScalingV2PolicyRequest
- type ShowScalingV2PolicyResponse
- type TagsMultiValue
- type TagsSingleValue
- type Topics
- type UpdateGroupScheduledTaskRequest
- type UpdateGroupScheduledTaskResponse
- type UpdateLifeCycleHookOption
- type UpdateLifeCycleHookOptionDefaultResult
- type UpdateLifeCycleHookOptionDefaultResultEnum
- type UpdateLifeCycleHookOptionLifecycleHookType
- type UpdateLifeCycleHookOptionLifecycleHookTypeEnum
- type UpdateLifeCycleHookRequest
- type UpdateLifeCycleHookResponse
- type UpdateLifeCycleHookResponseDefaultResult
- type UpdateLifeCycleHookResponseDefaultResultEnum
- type UpdateLifeCycleHookResponseLifecycleHookType
- type UpdateLifeCycleHookResponseLifecycleHookTypeEnum
- type UpdateScalingGroupOption
- type UpdateScalingGroupOptionHealthPeriodicAuditMethod
- type UpdateScalingGroupOptionHealthPeriodicAuditMethodEnum
- type UpdateScalingGroupOptionInstanceTerminatePolicy
- type UpdateScalingGroupOptionInstanceTerminatePolicyEnum
- type UpdateScalingGroupRequest
- type UpdateScalingGroupResponse
- type UpdateScalingPolicyOption
- type UpdateScalingPolicyOptionScalingPolicyType
- type UpdateScalingPolicyOptionScalingPolicyTypeEnum
- type UpdateScalingPolicyRequest
- type UpdateScalingPolicyResponse
- type UpdateScalingV2PolicyOption
- type UpdateScalingV2PolicyOptionScalingPolicyType
- type UpdateScalingV2PolicyOptionScalingPolicyTypeEnum
- type UpdateScalingV2PolicyOptionScalingResourceType
- type UpdateScalingV2PolicyOptionScalingResourceTypeEnum
- type UpdateScalingV2PolicyRequest
- type UpdateScalingV2PolicyResponse
- type UpdateScheduledTaskOption
- type VersionInfo
- type VersionInfoId
- type VersionInfoIdEnum
- type VersionInfoStatus
- type VersionInfoStatusEnum
- type VmMetaData
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 配额列表
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 ¶
func (o AttachCallbackInstanceLifeCycleHookRequest) String() string
type AttachCallbackInstanceLifeCycleHookResponse ¶
type AttachCallbackInstanceLifeCycleHookResponse struct {
HttpStatusCode int `json:"-"`
}
AttachCallbackInstanceLifeCycleHookResponse Response Object
func (AttachCallbackInstanceLifeCycleHookResponse) String ¶
func (o AttachCallbackInstanceLifeCycleHookResponse) String() 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"` 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
func (c BandwidthInfoChargingMode) Value() string
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 {}
func GetBandwidthInfoShareTypeEnum ¶
func GetBandwidthInfoShareTypeEnum() BandwidthInfoShareTypeEnum
type BandwidthResult ¶
type BandwidthResult struct { // 带宽(Mbit/s)。 Size *int32 `json:"size,omitempty"` 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
func (c BandwidthResultChargingMode) Value() string
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 {}
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
func (c BatchAddInstancesOptionAction) Value() string
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
func (c BatchAddInstancesOptionInstanceAppend) Value() string
type BatchAddInstancesOptionInstanceAppendEnum ¶
type BatchAddInstancesOptionInstanceAppendEnum struct { NO BatchAddInstancesOptionInstanceAppend YES BatchAddInstancesOptionInstanceAppend }
func GetBatchAddInstancesOptionInstanceAppendEnum ¶
func GetBatchAddInstancesOptionInstanceAppendEnum() BatchAddInstancesOptionInstanceAppendEnum
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
func (c BatchAddInstancesOptionInstanceDelete) Value() string
type BatchAddInstancesOptionInstanceDeleteEnum ¶
type BatchAddInstancesOptionInstanceDeleteEnum struct { YES BatchAddInstancesOptionInstanceDelete NO BatchAddInstancesOptionInstanceDelete }
func GetBatchAddInstancesOptionInstanceDeleteEnum ¶
func GetBatchAddInstancesOptionInstanceDeleteEnum() BatchAddInstancesOptionInstanceDeleteEnum
type BatchAddScalingInstancesRequest ¶
type BatchAddScalingInstancesRequest struct { // 实例ID。 ScalingGroupId string `json:"scaling_group_id"` Body *BatchAddInstancesOption `json:"body,omitempty"` }
BatchAddScalingInstancesRequest Request Object
func (BatchAddScalingInstancesRequest) String ¶
func (o BatchAddScalingInstancesRequest) String() string
type BatchAddScalingInstancesResponse ¶
type BatchAddScalingInstancesResponse struct {
HttpStatusCode int `json:"-"`
}
BatchAddScalingInstancesResponse Response Object
func (BatchAddScalingInstancesResponse) String ¶
func (o BatchAddScalingInstancesResponse) String() string
type BatchDeleteScalingConfigOption ¶
type BatchDeleteScalingConfigOption struct { // 伸缩配置ID。 ScalingConfigurationId []string `json:"scaling_configuration_id"` }
BatchDeleteScalingConfigOption 批量删除伸缩配置请求
func (BatchDeleteScalingConfigOption) String ¶
func (o BatchDeleteScalingConfigOption) String() string
type BatchDeleteScalingConfigsRequest ¶
type BatchDeleteScalingConfigsRequest struct {
Body *BatchDeleteScalingConfigOption `json:"body,omitempty"`
}
BatchDeleteScalingConfigsRequest Request Object
func (BatchDeleteScalingConfigsRequest) String ¶
func (o BatchDeleteScalingConfigsRequest) String() string
type BatchDeleteScalingConfigsResponse ¶
type BatchDeleteScalingConfigsResponse struct {
HttpStatusCode int `json:"-"`
}
BatchDeleteScalingConfigsResponse Response Object
func (BatchDeleteScalingConfigsResponse) String ¶
func (o BatchDeleteScalingConfigsResponse) String() 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 ¶
func (o BatchDeleteScalingPoliciesOption) String() 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
func (c BatchDeleteScalingPoliciesOptionAction) Value() string
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 (c BatchDeleteScalingPoliciesOptionForceDelete) MarshalJSON() ([]byte, error)
func (*BatchDeleteScalingPoliciesOptionForceDelete) UnmarshalJSON ¶
func (c *BatchDeleteScalingPoliciesOptionForceDelete) UnmarshalJSON(b []byte) error
func (BatchDeleteScalingPoliciesOptionForceDelete) Value ¶ added in v0.0.90
func (c BatchDeleteScalingPoliciesOptionForceDelete) Value() string
type BatchDeleteScalingPoliciesOptionForceDeleteEnum ¶
type BatchDeleteScalingPoliciesOptionForceDeleteEnum struct { NO BatchDeleteScalingPoliciesOptionForceDelete YES BatchDeleteScalingPoliciesOptionForceDelete }
func GetBatchDeleteScalingPoliciesOptionForceDeleteEnum ¶
func GetBatchDeleteScalingPoliciesOptionForceDeleteEnum() BatchDeleteScalingPoliciesOptionForceDeleteEnum
type BatchDeleteScalingPoliciesRequest ¶
type BatchDeleteScalingPoliciesRequest struct {
Body *BatchDeleteScalingPoliciesOption `json:"body,omitempty"`
}
BatchDeleteScalingPoliciesRequest Request Object
func (BatchDeleteScalingPoliciesRequest) String ¶
func (o BatchDeleteScalingPoliciesRequest) String() string
type BatchDeleteScalingPoliciesResponse ¶
type BatchDeleteScalingPoliciesResponse struct {
HttpStatusCode int `json:"-"`
}
BatchDeleteScalingPoliciesResponse Response Object
func (BatchDeleteScalingPoliciesResponse) String ¶
func (o BatchDeleteScalingPoliciesResponse) String() 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 ¶
func (o BatchEnterStandbyInstancesOption) String() 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
func (c BatchEnterStandbyInstancesOptionAction) Value() string
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 (c BatchEnterStandbyInstancesOptionInstanceAppend) MarshalJSON() ([]byte, error)
func (*BatchEnterStandbyInstancesOptionInstanceAppend) UnmarshalJSON ¶
func (c *BatchEnterStandbyInstancesOptionInstanceAppend) UnmarshalJSON(b []byte) error
func (BatchEnterStandbyInstancesOptionInstanceAppend) Value ¶ added in v0.0.90
func (c BatchEnterStandbyInstancesOptionInstanceAppend) Value() string
type BatchEnterStandbyInstancesOptionInstanceAppendEnum ¶
type BatchEnterStandbyInstancesOptionInstanceAppendEnum struct { NO BatchEnterStandbyInstancesOptionInstanceAppend YES BatchEnterStandbyInstancesOptionInstanceAppend }
func GetBatchEnterStandbyInstancesOptionInstanceAppendEnum ¶
func GetBatchEnterStandbyInstancesOptionInstanceAppendEnum() BatchEnterStandbyInstancesOptionInstanceAppendEnum
type BatchEnterStandbyInstancesOptionInstanceDelete ¶
type BatchEnterStandbyInstancesOptionInstanceDelete struct {
// contains filtered or unexported fields
}
func (BatchEnterStandbyInstancesOptionInstanceDelete) MarshalJSON ¶
func (c BatchEnterStandbyInstancesOptionInstanceDelete) MarshalJSON() ([]byte, error)
func (*BatchEnterStandbyInstancesOptionInstanceDelete) UnmarshalJSON ¶
func (c *BatchEnterStandbyInstancesOptionInstanceDelete) UnmarshalJSON(b []byte) error
func (BatchEnterStandbyInstancesOptionInstanceDelete) Value ¶ added in v0.0.90
func (c BatchEnterStandbyInstancesOptionInstanceDelete) Value() string
type BatchEnterStandbyInstancesOptionInstanceDeleteEnum ¶
type BatchEnterStandbyInstancesOptionInstanceDeleteEnum struct { YES BatchEnterStandbyInstancesOptionInstanceDelete NO BatchEnterStandbyInstancesOptionInstanceDelete }
func GetBatchEnterStandbyInstancesOptionInstanceDeleteEnum ¶
func GetBatchEnterStandbyInstancesOptionInstanceDeleteEnum() BatchEnterStandbyInstancesOptionInstanceDeleteEnum
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 ¶
func (o BatchExitStandByInstancesOption) String() 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
func (c BatchExitStandByInstancesOptionAction) Value() string
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 (c BatchExitStandByInstancesOptionInstanceAppend) MarshalJSON() ([]byte, error)
func (*BatchExitStandByInstancesOptionInstanceAppend) UnmarshalJSON ¶
func (c *BatchExitStandByInstancesOptionInstanceAppend) UnmarshalJSON(b []byte) error
func (BatchExitStandByInstancesOptionInstanceAppend) Value ¶ added in v0.0.90
func (c BatchExitStandByInstancesOptionInstanceAppend) Value() string
type BatchExitStandByInstancesOptionInstanceAppendEnum ¶
type BatchExitStandByInstancesOptionInstanceAppendEnum struct { NO BatchExitStandByInstancesOptionInstanceAppend YES BatchExitStandByInstancesOptionInstanceAppend }
func GetBatchExitStandByInstancesOptionInstanceAppendEnum ¶
func GetBatchExitStandByInstancesOptionInstanceAppendEnum() BatchExitStandByInstancesOptionInstanceAppendEnum
type BatchExitStandByInstancesOptionInstanceDelete ¶
type BatchExitStandByInstancesOptionInstanceDelete struct {
// contains filtered or unexported fields
}
func (BatchExitStandByInstancesOptionInstanceDelete) MarshalJSON ¶
func (c BatchExitStandByInstancesOptionInstanceDelete) MarshalJSON() ([]byte, error)
func (*BatchExitStandByInstancesOptionInstanceDelete) UnmarshalJSON ¶
func (c *BatchExitStandByInstancesOptionInstanceDelete) UnmarshalJSON(b []byte) error
func (BatchExitStandByInstancesOptionInstanceDelete) Value ¶ added in v0.0.90
func (c BatchExitStandByInstancesOptionInstanceDelete) Value() string
type BatchExitStandByInstancesOptionInstanceDeleteEnum ¶
type BatchExitStandByInstancesOptionInstanceDeleteEnum struct { YES BatchExitStandByInstancesOptionInstanceDelete NO BatchExitStandByInstancesOptionInstanceDelete }
func GetBatchExitStandByInstancesOptionInstanceDeleteEnum ¶
func GetBatchExitStandByInstancesOptionInstanceDeleteEnum() BatchExitStandByInstancesOptionInstanceDeleteEnum
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 ¶
func (o BatchPauseScalingPoliciesOption) String() 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
func (c BatchPauseScalingPoliciesOptionAction) Value() string
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 (c BatchPauseScalingPoliciesOptionForceDelete) MarshalJSON() ([]byte, error)
func (*BatchPauseScalingPoliciesOptionForceDelete) UnmarshalJSON ¶
func (c *BatchPauseScalingPoliciesOptionForceDelete) UnmarshalJSON(b []byte) error
func (BatchPauseScalingPoliciesOptionForceDelete) Value ¶ added in v0.0.90
func (c BatchPauseScalingPoliciesOptionForceDelete) Value() string
type BatchPauseScalingPoliciesOptionForceDeleteEnum ¶
type BatchPauseScalingPoliciesOptionForceDeleteEnum struct { NO BatchPauseScalingPoliciesOptionForceDelete YES BatchPauseScalingPoliciesOptionForceDelete }
func GetBatchPauseScalingPoliciesOptionForceDeleteEnum ¶
func GetBatchPauseScalingPoliciesOptionForceDeleteEnum() BatchPauseScalingPoliciesOptionForceDeleteEnum
type BatchPauseScalingPoliciesRequest ¶
type BatchPauseScalingPoliciesRequest struct {
Body *BatchPauseScalingPoliciesOption `json:"body,omitempty"`
}
BatchPauseScalingPoliciesRequest Request Object
func (BatchPauseScalingPoliciesRequest) String ¶
func (o BatchPauseScalingPoliciesRequest) String() string
type BatchPauseScalingPoliciesResponse ¶
type BatchPauseScalingPoliciesResponse struct {
HttpStatusCode int `json:"-"`
}
BatchPauseScalingPoliciesResponse Response Object
func (BatchPauseScalingPoliciesResponse) String ¶
func (o BatchPauseScalingPoliciesResponse) String() 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 ¶
func (o BatchProtectInstancesOption) String() 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
func (c BatchProtectInstancesOptionAction) Value() string
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 (c BatchProtectInstancesOptionInstanceAppend) MarshalJSON() ([]byte, error)
func (*BatchProtectInstancesOptionInstanceAppend) UnmarshalJSON ¶
func (c *BatchProtectInstancesOptionInstanceAppend) UnmarshalJSON(b []byte) error
func (BatchProtectInstancesOptionInstanceAppend) Value ¶ added in v0.0.90
func (c BatchProtectInstancesOptionInstanceAppend) Value() string
type BatchProtectInstancesOptionInstanceAppendEnum ¶
type BatchProtectInstancesOptionInstanceAppendEnum struct { NO BatchProtectInstancesOptionInstanceAppend YES BatchProtectInstancesOptionInstanceAppend }
func GetBatchProtectInstancesOptionInstanceAppendEnum ¶
func GetBatchProtectInstancesOptionInstanceAppendEnum() BatchProtectInstancesOptionInstanceAppendEnum
type BatchProtectInstancesOptionInstanceDelete ¶
type BatchProtectInstancesOptionInstanceDelete struct {
// contains filtered or unexported fields
}
func (BatchProtectInstancesOptionInstanceDelete) MarshalJSON ¶
func (c BatchProtectInstancesOptionInstanceDelete) MarshalJSON() ([]byte, error)
func (*BatchProtectInstancesOptionInstanceDelete) UnmarshalJSON ¶
func (c *BatchProtectInstancesOptionInstanceDelete) UnmarshalJSON(b []byte) error
func (BatchProtectInstancesOptionInstanceDelete) Value ¶ added in v0.0.90
func (c BatchProtectInstancesOptionInstanceDelete) Value() string
type BatchProtectInstancesOptionInstanceDeleteEnum ¶
type BatchProtectInstancesOptionInstanceDeleteEnum struct { YES BatchProtectInstancesOptionInstanceDelete NO BatchProtectInstancesOptionInstanceDelete }
func GetBatchProtectInstancesOptionInstanceDeleteEnum ¶
func GetBatchProtectInstancesOptionInstanceDeleteEnum() BatchProtectInstancesOptionInstanceDeleteEnum
type BatchProtectScalingInstancesRequest ¶
type BatchProtectScalingInstancesRequest struct { // 实例ID。 ScalingGroupId string `json:"scaling_group_id"` Body *BatchProtectInstancesOption `json:"body,omitempty"` }
BatchProtectScalingInstancesRequest Request Object
func (BatchProtectScalingInstancesRequest) String ¶
func (o BatchProtectScalingInstancesRequest) String() string
type BatchProtectScalingInstancesResponse ¶
type BatchProtectScalingInstancesResponse struct {
HttpStatusCode int `json:"-"`
}
BatchProtectScalingInstancesResponse Response Object
func (BatchProtectScalingInstancesResponse) String ¶
func (o BatchProtectScalingInstancesResponse) String() 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 ¶
func (o BatchRemoveInstancesOption) String() 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
func (c BatchRemoveInstancesOptionAction) Value() string
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 (c BatchRemoveInstancesOptionInstanceAppend) MarshalJSON() ([]byte, error)
func (*BatchRemoveInstancesOptionInstanceAppend) UnmarshalJSON ¶
func (c *BatchRemoveInstancesOptionInstanceAppend) UnmarshalJSON(b []byte) error
func (BatchRemoveInstancesOptionInstanceAppend) Value ¶ added in v0.0.90
func (c BatchRemoveInstancesOptionInstanceAppend) Value() string
type BatchRemoveInstancesOptionInstanceAppendEnum ¶
type BatchRemoveInstancesOptionInstanceAppendEnum struct { NO BatchRemoveInstancesOptionInstanceAppend YES BatchRemoveInstancesOptionInstanceAppend }
func GetBatchRemoveInstancesOptionInstanceAppendEnum ¶
func GetBatchRemoveInstancesOptionInstanceAppendEnum() BatchRemoveInstancesOptionInstanceAppendEnum
type BatchRemoveInstancesOptionInstanceDelete ¶
type BatchRemoveInstancesOptionInstanceDelete struct {
// contains filtered or unexported fields
}
func (BatchRemoveInstancesOptionInstanceDelete) MarshalJSON ¶
func (c BatchRemoveInstancesOptionInstanceDelete) MarshalJSON() ([]byte, error)
func (*BatchRemoveInstancesOptionInstanceDelete) UnmarshalJSON ¶
func (c *BatchRemoveInstancesOptionInstanceDelete) UnmarshalJSON(b []byte) error
func (BatchRemoveInstancesOptionInstanceDelete) Value ¶ added in v0.0.90
func (c BatchRemoveInstancesOptionInstanceDelete) Value() string
type BatchRemoveInstancesOptionInstanceDeleteEnum ¶
type BatchRemoveInstancesOptionInstanceDeleteEnum struct { YES BatchRemoveInstancesOptionInstanceDelete NO BatchRemoveInstancesOptionInstanceDelete }
func GetBatchRemoveInstancesOptionInstanceDeleteEnum ¶
func GetBatchRemoveInstancesOptionInstanceDeleteEnum() BatchRemoveInstancesOptionInstanceDeleteEnum
type BatchRemoveScalingInstancesRequest ¶
type BatchRemoveScalingInstancesRequest struct { // 实例ID。 ScalingGroupId string `json:"scaling_group_id"` Body *BatchRemoveInstancesOption `json:"body,omitempty"` }
BatchRemoveScalingInstancesRequest Request Object
func (BatchRemoveScalingInstancesRequest) String ¶
func (o BatchRemoveScalingInstancesRequest) String() string
type BatchRemoveScalingInstancesResponse ¶
type BatchRemoveScalingInstancesResponse struct {
HttpStatusCode int `json:"-"`
}
BatchRemoveScalingInstancesResponse Response Object
func (BatchRemoveScalingInstancesResponse) String ¶
func (o BatchRemoveScalingInstancesResponse) String() 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 ¶
func (o BatchResumeScalingPoliciesOption) String() 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
func (c BatchResumeScalingPoliciesOptionAction) Value() string
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 (c BatchResumeScalingPoliciesOptionForceDelete) MarshalJSON() ([]byte, error)
func (*BatchResumeScalingPoliciesOptionForceDelete) UnmarshalJSON ¶
func (c *BatchResumeScalingPoliciesOptionForceDelete) UnmarshalJSON(b []byte) error
func (BatchResumeScalingPoliciesOptionForceDelete) Value ¶ added in v0.0.90
func (c BatchResumeScalingPoliciesOptionForceDelete) Value() string
type BatchResumeScalingPoliciesOptionForceDeleteEnum ¶
type BatchResumeScalingPoliciesOptionForceDeleteEnum struct { NO BatchResumeScalingPoliciesOptionForceDelete YES BatchResumeScalingPoliciesOptionForceDelete }
func GetBatchResumeScalingPoliciesOptionForceDeleteEnum ¶
func GetBatchResumeScalingPoliciesOptionForceDeleteEnum() BatchResumeScalingPoliciesOptionForceDeleteEnum
type BatchResumeScalingPoliciesRequest ¶
type BatchResumeScalingPoliciesRequest struct {
Body *BatchResumeScalingPoliciesOption `json:"body,omitempty"`
}
BatchResumeScalingPoliciesRequest Request Object
func (BatchResumeScalingPoliciesRequest) String ¶
func (o BatchResumeScalingPoliciesRequest) String() string
type BatchResumeScalingPoliciesResponse ¶
type BatchResumeScalingPoliciesResponse struct {
HttpStatusCode int `json:"-"`
}
BatchResumeScalingPoliciesResponse Response Object
func (BatchResumeScalingPoliciesResponse) String ¶
func (o BatchResumeScalingPoliciesResponse) String() string
type BatchSetScalingInstancesStandbyRequest ¶
type BatchSetScalingInstancesStandbyRequest struct { // 实例ID。 ScalingGroupId string `json:"scaling_group_id"` Body *BatchEnterStandbyInstancesOption `json:"body,omitempty"` }
BatchSetScalingInstancesStandbyRequest Request Object
func (BatchSetScalingInstancesStandbyRequest) String ¶
func (o BatchSetScalingInstancesStandbyRequest) String() string
type BatchSetScalingInstancesStandbyResponse ¶
type BatchSetScalingInstancesStandbyResponse struct {
HttpStatusCode int `json:"-"`
}
BatchSetScalingInstancesStandbyResponse Response Object
func (BatchSetScalingInstancesStandbyResponse) String ¶
func (o BatchSetScalingInstancesStandbyResponse) String() 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 ¶
func (o BatchUnprotectInstancesOption) String() 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
func (c BatchUnprotectInstancesOptionAction) Value() string
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 (c BatchUnprotectInstancesOptionInstanceAppend) MarshalJSON() ([]byte, error)
func (*BatchUnprotectInstancesOptionInstanceAppend) UnmarshalJSON ¶
func (c *BatchUnprotectInstancesOptionInstanceAppend) UnmarshalJSON(b []byte) error
func (BatchUnprotectInstancesOptionInstanceAppend) Value ¶ added in v0.0.90
func (c BatchUnprotectInstancesOptionInstanceAppend) Value() string
type BatchUnprotectInstancesOptionInstanceAppendEnum ¶
type BatchUnprotectInstancesOptionInstanceAppendEnum struct { NO BatchUnprotectInstancesOptionInstanceAppend YES BatchUnprotectInstancesOptionInstanceAppend }
func GetBatchUnprotectInstancesOptionInstanceAppendEnum ¶
func GetBatchUnprotectInstancesOptionInstanceAppendEnum() BatchUnprotectInstancesOptionInstanceAppendEnum
type BatchUnprotectInstancesOptionInstanceDelete ¶
type BatchUnprotectInstancesOptionInstanceDelete struct {
// contains filtered or unexported fields
}
func (BatchUnprotectInstancesOptionInstanceDelete) MarshalJSON ¶
func (c BatchUnprotectInstancesOptionInstanceDelete) MarshalJSON() ([]byte, error)
func (*BatchUnprotectInstancesOptionInstanceDelete) UnmarshalJSON ¶
func (c *BatchUnprotectInstancesOptionInstanceDelete) UnmarshalJSON(b []byte) error
func (BatchUnprotectInstancesOptionInstanceDelete) Value ¶ added in v0.0.90
func (c BatchUnprotectInstancesOptionInstanceDelete) Value() string
type BatchUnprotectInstancesOptionInstanceDeleteEnum ¶
type BatchUnprotectInstancesOptionInstanceDeleteEnum struct { YES BatchUnprotectInstancesOptionInstanceDelete NO BatchUnprotectInstancesOptionInstanceDelete }
func GetBatchUnprotectInstancesOptionInstanceDeleteEnum ¶
func GetBatchUnprotectInstancesOptionInstanceDeleteEnum() BatchUnprotectInstancesOptionInstanceDeleteEnum
type BatchUnprotectScalingInstancesRequest ¶
type BatchUnprotectScalingInstancesRequest struct { // 实例ID。 ScalingGroupId string `json:"scaling_group_id"` Body *BatchUnprotectInstancesOption `json:"body,omitempty"` }
BatchUnprotectScalingInstancesRequest Request Object
func (BatchUnprotectScalingInstancesRequest) String ¶
func (o BatchUnprotectScalingInstancesRequest) String() string
type BatchUnprotectScalingInstancesResponse ¶
type BatchUnprotectScalingInstancesResponse struct {
HttpStatusCode int `json:"-"`
}
BatchUnprotectScalingInstancesResponse Response Object
func (BatchUnprotectScalingInstancesResponse) String ¶
func (o BatchUnprotectScalingInstancesResponse) String() 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
func (o BatchUnsetScalingInstancesStantbyRequest) String() string
type BatchUnsetScalingInstancesStantbyResponse ¶ added in v0.0.50
type BatchUnsetScalingInstancesStantbyResponse struct {
HttpStatusCode int `json:"-"`
}
BatchUnsetScalingInstancesStantbyResponse Response Object
func (BatchUnsetScalingInstancesStantbyResponse) String ¶ added in v0.0.50
func (o BatchUnsetScalingInstancesStantbyResponse) String() string
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 ¶
func (o CallbackLifeCycleHookOption) String() string
type CallbackLifeCycleHookOptionLifecycleActionResult ¶
type CallbackLifeCycleHookOptionLifecycleActionResult struct {
// contains filtered or unexported fields
}
func (CallbackLifeCycleHookOptionLifecycleActionResult) MarshalJSON ¶
func (c CallbackLifeCycleHookOptionLifecycleActionResult) MarshalJSON() ([]byte, error)
func (*CallbackLifeCycleHookOptionLifecycleActionResult) UnmarshalJSON ¶
func (c *CallbackLifeCycleHookOptionLifecycleActionResult) UnmarshalJSON(b []byte) error
func (CallbackLifeCycleHookOptionLifecycleActionResult) Value ¶ added in v0.0.90
func (c CallbackLifeCycleHookOptionLifecycleActionResult) Value() string
type CallbackLifeCycleHookOptionLifecycleActionResultEnum ¶
type CallbackLifeCycleHookOptionLifecycleActionResultEnum struct { ABANDON CallbackLifeCycleHookOptionLifecycleActionResult CONTINUE CallbackLifeCycleHookOptionLifecycleActionResult EXTEND CallbackLifeCycleHookOptionLifecycleActionResult }
func GetCallbackLifeCycleHookOptionLifecycleActionResultEnum ¶
func GetCallbackLifeCycleHookOptionLifecycleActionResultEnum() CallbackLifeCycleHookOptionLifecycleActionResultEnum
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
func (o CreateGroupScheduledTaskRequest) String() string
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
func (o CreateGroupScheduledTaskResponse) String() string
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
func (c CreateLifeCycleHookOptionDefaultResult) Value() string
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 (c CreateLifeCycleHookOptionLifecycleHookType) MarshalJSON() ([]byte, error)
func (*CreateLifeCycleHookOptionLifecycleHookType) UnmarshalJSON ¶
func (c *CreateLifeCycleHookOptionLifecycleHookType) UnmarshalJSON(b []byte) error
func (CreateLifeCycleHookOptionLifecycleHookType) Value ¶ added in v0.0.90
func (c CreateLifeCycleHookOptionLifecycleHookType) Value() string
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 ¶
func (o CreateLifyCycleHookRequest) String() 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 ¶
func (o CreateLifyCycleHookResponse) String() string
type CreateLifyCycleHookResponseDefaultResult ¶
type CreateLifyCycleHookResponseDefaultResult struct {
// contains filtered or unexported fields
}
func (CreateLifyCycleHookResponseDefaultResult) MarshalJSON ¶
func (c CreateLifyCycleHookResponseDefaultResult) MarshalJSON() ([]byte, error)
func (*CreateLifyCycleHookResponseDefaultResult) UnmarshalJSON ¶
func (c *CreateLifyCycleHookResponseDefaultResult) UnmarshalJSON(b []byte) error
func (CreateLifyCycleHookResponseDefaultResult) Value ¶ added in v0.0.90
func (c CreateLifyCycleHookResponseDefaultResult) Value() string
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 (c CreateLifyCycleHookResponseLifecycleHookType) MarshalJSON() ([]byte, error)
func (*CreateLifyCycleHookResponseLifecycleHookType) UnmarshalJSON ¶
func (c *CreateLifyCycleHookResponseLifecycleHookType) UnmarshalJSON(b []byte) error
func (CreateLifyCycleHookResponseLifecycleHookType) Value ¶ added in v0.0.90
func (c CreateLifyCycleHookResponseLifecycleHookType) Value() string
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
func (c CreateNotificationOptionTopicScene) Value() string
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 ¶
func (o CreateScalingConfigRequest) String() string
type CreateScalingConfigResponse ¶
type CreateScalingConfigResponse struct { // 伸缩配置ID ScalingConfigurationId *string `json:"scaling_configuration_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateScalingConfigResponse Response Object
func (CreateScalingConfigResponse) String ¶
func (o CreateScalingConfigResponse) String() 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"` }
CreateScalingGroupOption 创建伸缩组请求
func (CreateScalingGroupOption) String ¶
func (o CreateScalingGroupOption) String() string
type CreateScalingGroupOptionHealthPeriodicAuditMethod ¶
type CreateScalingGroupOptionHealthPeriodicAuditMethod struct {
// contains filtered or unexported fields
}
func (CreateScalingGroupOptionHealthPeriodicAuditMethod) MarshalJSON ¶
func (c CreateScalingGroupOptionHealthPeriodicAuditMethod) MarshalJSON() ([]byte, error)
func (*CreateScalingGroupOptionHealthPeriodicAuditMethod) UnmarshalJSON ¶
func (c *CreateScalingGroupOptionHealthPeriodicAuditMethod) UnmarshalJSON(b []byte) error
func (CreateScalingGroupOptionHealthPeriodicAuditMethod) Value ¶ added in v0.0.90
func (c CreateScalingGroupOptionHealthPeriodicAuditMethod) Value() string
type CreateScalingGroupOptionHealthPeriodicAuditMethodEnum ¶
type CreateScalingGroupOptionHealthPeriodicAuditMethodEnum struct { ELB_AUDIT CreateScalingGroupOptionHealthPeriodicAuditMethod NOVA_AUDIT CreateScalingGroupOptionHealthPeriodicAuditMethod }
func GetCreateScalingGroupOptionHealthPeriodicAuditMethodEnum ¶
func GetCreateScalingGroupOptionHealthPeriodicAuditMethodEnum() CreateScalingGroupOptionHealthPeriodicAuditMethodEnum
type CreateScalingGroupOptionInstanceTerminatePolicy ¶
type CreateScalingGroupOptionInstanceTerminatePolicy struct {
// contains filtered or unexported fields
}
func (CreateScalingGroupOptionInstanceTerminatePolicy) MarshalJSON ¶
func (c CreateScalingGroupOptionInstanceTerminatePolicy) MarshalJSON() ([]byte, error)
func (*CreateScalingGroupOptionInstanceTerminatePolicy) UnmarshalJSON ¶
func (c *CreateScalingGroupOptionInstanceTerminatePolicy) UnmarshalJSON(b []byte) error
func (CreateScalingGroupOptionInstanceTerminatePolicy) Value ¶ added in v0.0.90
func (c CreateScalingGroupOptionInstanceTerminatePolicy) Value() string
type CreateScalingGroupOptionInstanceTerminatePolicyEnum ¶
type CreateScalingGroupOptionInstanceTerminatePolicyEnum struct { OLD_CONFIG_OLD_INSTANCE CreateScalingGroupOptionInstanceTerminatePolicy OLD_CONFIG_NEW_INSTANCE CreateScalingGroupOptionInstanceTerminatePolicy OLD_INSTANCE CreateScalingGroupOptionInstanceTerminatePolicy NEW_INSTANCE CreateScalingGroupOptionInstanceTerminatePolicy }
func GetCreateScalingGroupOptionInstanceTerminatePolicyEnum ¶
func GetCreateScalingGroupOptionInstanceTerminatePolicyEnum() CreateScalingGroupOptionInstanceTerminatePolicyEnum
type CreateScalingGroupOptionMultiAzPriorityPolicy ¶
type CreateScalingGroupOptionMultiAzPriorityPolicy struct {
// contains filtered or unexported fields
}
func (CreateScalingGroupOptionMultiAzPriorityPolicy) MarshalJSON ¶
func (c CreateScalingGroupOptionMultiAzPriorityPolicy) MarshalJSON() ([]byte, error)
func (*CreateScalingGroupOptionMultiAzPriorityPolicy) UnmarshalJSON ¶
func (c *CreateScalingGroupOptionMultiAzPriorityPolicy) UnmarshalJSON(b []byte) error
func (CreateScalingGroupOptionMultiAzPriorityPolicy) Value ¶ added in v0.0.90
func (c CreateScalingGroupOptionMultiAzPriorityPolicy) Value() string
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 ¶
func (o CreateScalingGroupResponse) String() string
type CreateScalingNotificationRequest ¶
type CreateScalingNotificationRequest struct { // 伸缩组标识。 ScalingGroupId string `json:"scaling_group_id"` Body *CreateNotificationOption `json:"body,omitempty"` }
CreateScalingNotificationRequest Request Object
func (CreateScalingNotificationRequest) String ¶
func (o CreateScalingNotificationRequest) String() 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 ¶
func (o CreateScalingNotificationResponse) String() 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 (c CreateScalingPolicyOptionScalingPolicyType) MarshalJSON() ([]byte, error)
func (*CreateScalingPolicyOptionScalingPolicyType) UnmarshalJSON ¶
func (c *CreateScalingPolicyOptionScalingPolicyType) UnmarshalJSON(b []byte) error
func (CreateScalingPolicyOptionScalingPolicyType) Value ¶ added in v0.0.90
func (c CreateScalingPolicyOptionScalingPolicyType) Value() string
type CreateScalingPolicyOptionScalingPolicyTypeEnum ¶
type CreateScalingPolicyOptionScalingPolicyTypeEnum struct { ALARM CreateScalingPolicyOptionScalingPolicyType SCHEDULED CreateScalingPolicyOptionScalingPolicyType RECURRENCE CreateScalingPolicyOptionScalingPolicyType }
func GetCreateScalingPolicyOptionScalingPolicyTypeEnum ¶
func GetCreateScalingPolicyOptionScalingPolicyTypeEnum() CreateScalingPolicyOptionScalingPolicyTypeEnum
type CreateScalingPolicyRequest ¶
type CreateScalingPolicyRequest struct {
Body *CreateScalingPolicyOption `json:"body,omitempty"`
}
CreateScalingPolicyRequest Request Object
func (CreateScalingPolicyRequest) String ¶
func (o CreateScalingPolicyRequest) String() string
type CreateScalingPolicyResponse ¶
type CreateScalingPolicyResponse struct { // 伸缩策略ID。 ScalingPolicyId *string `json:"scaling_policy_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateScalingPolicyResponse Response Object
func (CreateScalingPolicyResponse) String ¶
func (o CreateScalingPolicyResponse) String() 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"` // 冷却时间,取值范围0-86400,默认为300,单位是秒。 CoolDownTime *int32 `json:"cool_down_time,omitempty"` // 伸缩策略描述(1-256个字符) Description *string `json:"description,omitempty"` }
CreateScalingPolicyV2Option 创建伸缩策略(V2)
func (CreateScalingPolicyV2Option) String ¶
func (o CreateScalingPolicyV2Option) String() string
type CreateScalingPolicyV2OptionScalingPolicyType ¶
type CreateScalingPolicyV2OptionScalingPolicyType struct {
// contains filtered or unexported fields
}
func (CreateScalingPolicyV2OptionScalingPolicyType) MarshalJSON ¶
func (c CreateScalingPolicyV2OptionScalingPolicyType) MarshalJSON() ([]byte, error)
func (*CreateScalingPolicyV2OptionScalingPolicyType) UnmarshalJSON ¶
func (c *CreateScalingPolicyV2OptionScalingPolicyType) UnmarshalJSON(b []byte) error
func (CreateScalingPolicyV2OptionScalingPolicyType) Value ¶ added in v0.0.90
func (c CreateScalingPolicyV2OptionScalingPolicyType) Value() string
type CreateScalingPolicyV2OptionScalingPolicyTypeEnum ¶
type CreateScalingPolicyV2OptionScalingPolicyTypeEnum struct { ALARM CreateScalingPolicyV2OptionScalingPolicyType SCHEDULED CreateScalingPolicyV2OptionScalingPolicyType RECURRENCE CreateScalingPolicyV2OptionScalingPolicyType }
func GetCreateScalingPolicyV2OptionScalingPolicyTypeEnum ¶
func GetCreateScalingPolicyV2OptionScalingPolicyTypeEnum() CreateScalingPolicyV2OptionScalingPolicyTypeEnum
type CreateScalingPolicyV2OptionScalingResourceType ¶
type CreateScalingPolicyV2OptionScalingResourceType struct {
// contains filtered or unexported fields
}
func (CreateScalingPolicyV2OptionScalingResourceType) MarshalJSON ¶
func (c CreateScalingPolicyV2OptionScalingResourceType) MarshalJSON() ([]byte, error)
func (*CreateScalingPolicyV2OptionScalingResourceType) UnmarshalJSON ¶
func (c *CreateScalingPolicyV2OptionScalingResourceType) UnmarshalJSON(b []byte) error
func (CreateScalingPolicyV2OptionScalingResourceType) Value ¶ added in v0.0.90
func (c CreateScalingPolicyV2OptionScalingResourceType) Value() string
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 ¶
func (o CreateScalingTagInfoRequest) String() 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
func (c CreateScalingTagInfoRequestResourceType) Value() string
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 ¶
func (o CreateScalingTagInfoResponse) String() string
type CreateScalingV2PolicyRequest ¶
type CreateScalingV2PolicyRequest struct {
Body *CreateScalingPolicyV2Option `json:"body,omitempty"`
}
CreateScalingV2PolicyRequest Request Object
func (CreateScalingV2PolicyRequest) String ¶
func (o CreateScalingV2PolicyRequest) String() string
type CreateScalingV2PolicyResponse ¶
type CreateScalingV2PolicyResponse struct { // 伸缩策略ID。 ScalingPolicyId *string `json:"scaling_policy_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateScalingV2PolicyResponse Response Object
func (CreateScalingV2PolicyResponse) String ¶
func (o CreateScalingV2PolicyResponse) String() 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
func (o DeleteGroupScheduledTaskRequest) String() string
type DeleteGroupScheduledTaskResponse ¶ added in v0.1.48
type DeleteGroupScheduledTaskResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteGroupScheduledTaskResponse Response Object
func (DeleteGroupScheduledTaskResponse) String ¶ added in v0.1.48
func (o DeleteGroupScheduledTaskResponse) String() string
type DeleteLifecycleHookRequest ¶
type DeleteLifecycleHookRequest struct { // 伸缩组标识。 ScalingGroupId string `json:"scaling_group_id"` // 生命周期挂钩标识。 LifecycleHookName string `json:"lifecycle_hook_name"` }
DeleteLifecycleHookRequest Request Object
func (DeleteLifecycleHookRequest) String ¶
func (o DeleteLifecycleHookRequest) String() string
type DeleteLifecycleHookResponse ¶
type DeleteLifecycleHookResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteLifecycleHookResponse Response Object
func (DeleteLifecycleHookResponse) String ¶
func (o DeleteLifecycleHookResponse) String() string
type DeleteScalingConfigRequest ¶
type DeleteScalingConfigRequest struct { // 伸缩配置ID。 ScalingConfigurationId string `json:"scaling_configuration_id"` }
DeleteScalingConfigRequest Request Object
func (DeleteScalingConfigRequest) String ¶
func (o DeleteScalingConfigRequest) String() string
type DeleteScalingConfigResponse ¶
type DeleteScalingConfigResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteScalingConfigResponse Response Object
func (DeleteScalingConfigResponse) String ¶
func (o DeleteScalingConfigResponse) String() 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
func (c DeleteScalingGroupRequestForceDelete) Value() string
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 ¶
func (o DeleteScalingGroupResponse) String() 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 ¶
func (o DeleteScalingInstanceRequest) String() string
type DeleteScalingInstanceRequestInstanceDelete ¶
type DeleteScalingInstanceRequestInstanceDelete struct {
// contains filtered or unexported fields
}
func (DeleteScalingInstanceRequestInstanceDelete) MarshalJSON ¶
func (c DeleteScalingInstanceRequestInstanceDelete) MarshalJSON() ([]byte, error)
func (*DeleteScalingInstanceRequestInstanceDelete) UnmarshalJSON ¶
func (c *DeleteScalingInstanceRequestInstanceDelete) UnmarshalJSON(b []byte) error
func (DeleteScalingInstanceRequestInstanceDelete) Value ¶ added in v0.0.90
func (c DeleteScalingInstanceRequestInstanceDelete) Value() string
type DeleteScalingInstanceRequestInstanceDeleteEnum ¶
type DeleteScalingInstanceRequestInstanceDeleteEnum struct { YES DeleteScalingInstanceRequestInstanceDelete NO DeleteScalingInstanceRequestInstanceDelete }
func GetDeleteScalingInstanceRequestInstanceDeleteEnum ¶
func GetDeleteScalingInstanceRequestInstanceDeleteEnum() DeleteScalingInstanceRequestInstanceDeleteEnum
type DeleteScalingInstanceResponse ¶
type DeleteScalingInstanceResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteScalingInstanceResponse Response Object
func (DeleteScalingInstanceResponse) String ¶
func (o DeleteScalingInstanceResponse) String() 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 ¶
func (o DeleteScalingNotificationRequest) String() string
type DeleteScalingNotificationResponse ¶
type DeleteScalingNotificationResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteScalingNotificationResponse Response Object
func (DeleteScalingNotificationResponse) String ¶
func (o DeleteScalingNotificationResponse) String() string
type DeleteScalingPolicyRequest ¶
type DeleteScalingPolicyRequest struct { // 伸缩策略ID。 ScalingPolicyId string `json:"scaling_policy_id"` }
DeleteScalingPolicyRequest Request Object
func (DeleteScalingPolicyRequest) String ¶
func (o DeleteScalingPolicyRequest) String() string
type DeleteScalingPolicyResponse ¶
type DeleteScalingPolicyResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteScalingPolicyResponse Response Object
func (DeleteScalingPolicyResponse) String ¶
func (o DeleteScalingPolicyResponse) String() 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 ¶
func (o DeleteScalingTagInfoRequest) String() 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
func (c DeleteScalingTagInfoRequestResourceType) Value() string
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 ¶
func (o DeleteScalingTagInfoResponse) String() 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 (时延优化)当指定的云硬盘类型在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"` }
DiskInfo 磁盘组信息,系统盘必选,数据盘可选。
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 DiskInfoVolumeTypeEnum ¶
type DiskInfoVolumeTypeEnum struct { SATA DiskInfoVolumeType SAS DiskInfoVolumeType SSD DiskInfoVolumeType CO_PL DiskInfoVolumeType UH_11 DiskInfoVolumeType GPSSD DiskInfoVolumeType }
func GetDiskInfoVolumeTypeEnum ¶
func GetDiskInfoVolumeTypeEnum() DiskInfoVolumeTypeEnum
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"` }
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 DiskResultVolumeTypeEnum ¶
type DiskResultVolumeTypeEnum struct { SATA DiskResultVolumeType SAS DiskResultVolumeType SSD DiskResultVolumeType CO_PL DiskResultVolumeType UH_11 DiskResultVolumeType }
func GetDiskResultVolumeTypeEnum ¶
func GetDiskResultVolumeTypeEnum() DiskResultVolumeTypeEnum
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信息
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 { string `json:"metadata_bandwidth_share_type,omitempty"` // 伸缩带宽策略中带宽对应的EIP的ID。 MetadataEipId *string `json:"metadata_eip_id,omitempty"` // 伸缩带宽策略中带宽对应的EIP地址。 MetadataeipAddress *string `json:"metadataeip_address,omitempty"` }MetadataBandwidthShareType *
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信息
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 ¶
func (o ExecuteScalingPolicyOption) String() 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
func (c ExecuteScalingPolicyOptionAction) Value() string
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 ¶
func (o ExecuteScalingPolicyRequest) String() string
type ExecuteScalingPolicyResponse ¶
type ExecuteScalingPolicyResponse struct {
HttpStatusCode int `json:"-"`
}
ExecuteScalingPolicyResponse Response Object
func (ExecuteScalingPolicyResponse) String ¶
func (o ExecuteScalingPolicyResponse) String() 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
func (c InstanceConfigMultiFlavorPriorityPolicy) Value() string
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
func (c InstanceHangingInfosLifecycleHookStatus) Value() string
type InstanceHangingInfosLifecycleHookStatusEnum ¶
type InstanceHangingInfosLifecycleHookStatusEnum struct { HANGING InstanceHangingInfosLifecycleHookStatus CONTINUE InstanceHangingInfosLifecycleHookStatus ABANDON InstanceHangingInfosLifecycleHookStatus }
func GetInstanceHangingInfosLifecycleHookStatusEnum ¶
func GetInstanceHangingInfosLifecycleHookStatusEnum() InstanceHangingInfosLifecycleHookStatusEnum
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 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
func (c LbaasListenersProtocolVersion) Value() string
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
func (c LbaasListenersResultProtocolVersion) Value() string
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
func (c LifecycleHookListDefaultResult) Value() string
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
func (c LifecycleHookListLifecycleHookType) Value() string
type LifecycleHookListLifecycleHookTypeEnum ¶
type LifecycleHookListLifecycleHookTypeEnum struct { INSTANCE_TERMINATING LifecycleHookListLifecycleHookType INSTANCE_LAUNCHING LifecycleHookListLifecycleHookType }
func GetLifecycleHookListLifecycleHookTypeEnum ¶
func GetLifecycleHookListLifecycleHookTypeEnum() LifecycleHookListLifecycleHookTypeEnum
type Links ¶
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 ¶
func (o ListAllScalingV2PoliciesRequest) String() 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
func (c ListAllScalingV2PoliciesRequestOrder) Value() string
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 (c ListAllScalingV2PoliciesRequestScalingPolicyType) MarshalJSON() ([]byte, error)
func (*ListAllScalingV2PoliciesRequestScalingPolicyType) UnmarshalJSON ¶
func (c *ListAllScalingV2PoliciesRequestScalingPolicyType) UnmarshalJSON(b []byte) error
func (ListAllScalingV2PoliciesRequestScalingPolicyType) Value ¶ added in v0.0.90
func (c ListAllScalingV2PoliciesRequestScalingPolicyType) Value() string
type ListAllScalingV2PoliciesRequestScalingPolicyTypeEnum ¶
type ListAllScalingV2PoliciesRequestScalingPolicyTypeEnum struct { ALARM ListAllScalingV2PoliciesRequestScalingPolicyType SCHEDULED ListAllScalingV2PoliciesRequestScalingPolicyType RECURRENCE ListAllScalingV2PoliciesRequestScalingPolicyType }
func GetListAllScalingV2PoliciesRequestScalingPolicyTypeEnum ¶
func GetListAllScalingV2PoliciesRequestScalingPolicyTypeEnum() ListAllScalingV2PoliciesRequestScalingPolicyTypeEnum
type ListAllScalingV2PoliciesRequestScalingResourceType ¶
type ListAllScalingV2PoliciesRequestScalingResourceType struct {
// contains filtered or unexported fields
}
func (ListAllScalingV2PoliciesRequestScalingResourceType) MarshalJSON ¶
func (c ListAllScalingV2PoliciesRequestScalingResourceType) MarshalJSON() ([]byte, error)
func (*ListAllScalingV2PoliciesRequestScalingResourceType) UnmarshalJSON ¶
func (c *ListAllScalingV2PoliciesRequestScalingResourceType) UnmarshalJSON(b []byte) error
func (ListAllScalingV2PoliciesRequestScalingResourceType) Value ¶ added in v0.0.90
func (c ListAllScalingV2PoliciesRequestScalingResourceType) Value() string
type ListAllScalingV2PoliciesRequestScalingResourceTypeEnum ¶
type ListAllScalingV2PoliciesRequestScalingResourceTypeEnum struct { SCALING_GROUP ListAllScalingV2PoliciesRequestScalingResourceType BANDWIDTH ListAllScalingV2PoliciesRequestScalingResourceType }
func GetListAllScalingV2PoliciesRequestScalingResourceTypeEnum ¶
func GetListAllScalingV2PoliciesRequestScalingResourceTypeEnum() ListAllScalingV2PoliciesRequestScalingResourceTypeEnum
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
func (c ListAllScalingV2PoliciesRequestSortBy) Value() string
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 ¶
func (o ListAllScalingV2PoliciesResponse) String() 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
func (o ListGroupScheduledTasksRequest) String() string
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
func (o ListGroupScheduledTasksResponse) String() string
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 ¶
func (o ListLifeCycleHooksResponse) String() 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 ¶
func (o ListResourceInstancesRequest) String() string
type ListResourceInstancesRequestResourceType ¶
type ListResourceInstancesRequestResourceType struct {
// contains filtered or unexported fields
}
func (ListResourceInstancesRequestResourceType) MarshalJSON ¶
func (c ListResourceInstancesRequestResourceType) MarshalJSON() ([]byte, error)
func (*ListResourceInstancesRequestResourceType) UnmarshalJSON ¶
func (c *ListResourceInstancesRequestResourceType) UnmarshalJSON(b []byte) error
func (ListResourceInstancesRequestResourceType) Value ¶ added in v0.0.90
func (c ListResourceInstancesRequestResourceType) Value() string
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 ¶
func (o ListResourceInstancesResponse) String() 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 ¶
func (o ListScalingActivityLogsRequest) String() 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 ¶
func (o ListScalingActivityLogsResponse) String() 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 ¶
func (o ListScalingActivityV2LogsRequest) String() 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
func (c ListScalingActivityV2LogsRequestStatus) Value() string
type ListScalingActivityV2LogsRequestStatusEnum ¶
type ListScalingActivityV2LogsRequestStatusEnum struct { SUCCESS ListScalingActivityV2LogsRequestStatus FAIL ListScalingActivityV2LogsRequestStatus DOING ListScalingActivityV2LogsRequestStatus }
func GetListScalingActivityV2LogsRequestStatusEnum ¶
func GetListScalingActivityV2LogsRequestStatusEnum() ListScalingActivityV2LogsRequestStatusEnum
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
func (c ListScalingActivityV2LogsRequestType) Value() string
type ListScalingActivityV2LogsRequestTypeEnum ¶
type ListScalingActivityV2LogsRequestTypeEnum struct { NORMAL ListScalingActivityV2LogsRequestType MANNUAL_REMOVE ListScalingActivityV2LogsRequestType MANNUAL_DELETE ListScalingActivityV2LogsRequestType MANNUAL_ADD ListScalingActivityV2LogsRequestType ELB_CHECK_DELETE ListScalingActivityV2LogsRequestType AUDIT_CHECK_DELETE ListScalingActivityV2LogsRequestType MODIFY_ELB ListScalingActivityV2LogsRequestType }
func GetListScalingActivityV2LogsRequestTypeEnum ¶
func GetListScalingActivityV2LogsRequestTypeEnum() ListScalingActivityV2LogsRequestTypeEnum
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 ¶
func (o ListScalingActivityV2LogsResponse) String() 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 ¶
func (o ListScalingConfigsResponse) String() 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 (c ListScalingGroupsRequestScalingGroupStatus) MarshalJSON() ([]byte, error)
func (*ListScalingGroupsRequestScalingGroupStatus) UnmarshalJSON ¶
func (c *ListScalingGroupsRequestScalingGroupStatus) UnmarshalJSON(b []byte) error
func (ListScalingGroupsRequestScalingGroupStatus) Value ¶ added in v0.0.90
func (c ListScalingGroupsRequestScalingGroupStatus) Value() string
type ListScalingGroupsRequestScalingGroupStatusEnum ¶
type ListScalingGroupsRequestScalingGroupStatusEnum struct { INSERVICE ListScalingGroupsRequestScalingGroupStatus PAUSED ListScalingGroupsRequestScalingGroupStatus ERROR ListScalingGroupsRequestScalingGroupStatus DELETING ListScalingGroupsRequestScalingGroupStatus }
func GetListScalingGroupsRequestScalingGroupStatusEnum ¶
func GetListScalingGroupsRequestScalingGroupStatusEnum() ListScalingGroupsRequestScalingGroupStatusEnum
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 ¶
func (o ListScalingInstancesRequest) String() 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
func (c ListScalingInstancesRequestHealthStatus) Value() string
type ListScalingInstancesRequestHealthStatusEnum ¶
type ListScalingInstancesRequestHealthStatusEnum struct { INITIALIZING ListScalingInstancesRequestHealthStatus NORMAL ListScalingInstancesRequestHealthStatus ERROR ListScalingInstancesRequestHealthStatus }
func GetListScalingInstancesRequestHealthStatusEnum ¶
func GetListScalingInstancesRequestHealthStatusEnum() ListScalingInstancesRequestHealthStatusEnum
type ListScalingInstancesRequestLifeCycleState ¶
type ListScalingInstancesRequestLifeCycleState struct {
// contains filtered or unexported fields
}
func (ListScalingInstancesRequestLifeCycleState) MarshalJSON ¶
func (c ListScalingInstancesRequestLifeCycleState) MarshalJSON() ([]byte, error)
func (*ListScalingInstancesRequestLifeCycleState) UnmarshalJSON ¶
func (c *ListScalingInstancesRequestLifeCycleState) UnmarshalJSON(b []byte) error
func (ListScalingInstancesRequestLifeCycleState) Value ¶ added in v0.0.90
func (c ListScalingInstancesRequestLifeCycleState) Value() string
type ListScalingInstancesRequestLifeCycleStateEnum ¶
type ListScalingInstancesRequestLifeCycleStateEnum struct { INSERVICE ListScalingInstancesRequestLifeCycleState PENDING ListScalingInstancesRequestLifeCycleState REMOVING ListScalingInstancesRequestLifeCycleState PENDING_WAIT ListScalingInstancesRequestLifeCycleState REMOVING_WAIT ListScalingInstancesRequestLifeCycleState STANDBY ListScalingInstancesRequestLifeCycleState ENTERING_STANDBY ListScalingInstancesRequestLifeCycleState }
func GetListScalingInstancesRequestLifeCycleStateEnum ¶
func GetListScalingInstancesRequestLifeCycleStateEnum() ListScalingInstancesRequestLifeCycleStateEnum
type ListScalingInstancesRequestProtectFromScalingDown ¶
type ListScalingInstancesRequestProtectFromScalingDown struct {
// contains filtered or unexported fields
}
func (ListScalingInstancesRequestProtectFromScalingDown) MarshalJSON ¶
func (c ListScalingInstancesRequestProtectFromScalingDown) MarshalJSON() ([]byte, error)
func (*ListScalingInstancesRequestProtectFromScalingDown) UnmarshalJSON ¶
func (c *ListScalingInstancesRequestProtectFromScalingDown) UnmarshalJSON(b []byte) error
func (ListScalingInstancesRequestProtectFromScalingDown) Value ¶ added in v0.0.90
func (c ListScalingInstancesRequestProtectFromScalingDown) Value() string
type ListScalingInstancesRequestProtectFromScalingDownEnum ¶
type ListScalingInstancesRequestProtectFromScalingDownEnum struct { TRUE ListScalingInstancesRequestProtectFromScalingDown FALSE ListScalingInstancesRequestProtectFromScalingDown }
func GetListScalingInstancesRequestProtectFromScalingDownEnum ¶
func GetListScalingInstancesRequestProtectFromScalingDownEnum() ListScalingInstancesRequestProtectFromScalingDownEnum
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 ¶
func (o ListScalingInstancesResponse) String() string
type ListScalingNotificationsRequest ¶
type ListScalingNotificationsRequest struct { // 伸缩组标识。 ScalingGroupId string `json:"scaling_group_id"` }
ListScalingNotificationsRequest Request Object
func (ListScalingNotificationsRequest) String ¶
func (o ListScalingNotificationsRequest) String() string
type ListScalingNotificationsResponse ¶
type ListScalingNotificationsResponse struct { // 伸缩组通知列表。 Topics *[]Topics `json:"topics,omitempty"` HttpStatusCode int `json:"-"` }
ListScalingNotificationsResponse Response Object
func (ListScalingNotificationsResponse) String ¶
func (o ListScalingNotificationsResponse) String() 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 ¶
func (o ListScalingPoliciesRequest) String() string
type ListScalingPoliciesRequestScalingPolicyType ¶
type ListScalingPoliciesRequestScalingPolicyType struct {
// contains filtered or unexported fields
}
func (ListScalingPoliciesRequestScalingPolicyType) MarshalJSON ¶
func (c ListScalingPoliciesRequestScalingPolicyType) MarshalJSON() ([]byte, error)
func (*ListScalingPoliciesRequestScalingPolicyType) UnmarshalJSON ¶
func (c *ListScalingPoliciesRequestScalingPolicyType) UnmarshalJSON(b []byte) error
func (ListScalingPoliciesRequestScalingPolicyType) Value ¶ added in v0.0.90
func (c ListScalingPoliciesRequestScalingPolicyType) Value() string
type ListScalingPoliciesRequestScalingPolicyTypeEnum ¶
type ListScalingPoliciesRequestScalingPolicyTypeEnum struct { ALARM ListScalingPoliciesRequestScalingPolicyType SCHEDULED ListScalingPoliciesRequestScalingPolicyType RECURRENCE ListScalingPoliciesRequestScalingPolicyType }
func GetListScalingPoliciesRequestScalingPolicyTypeEnum ¶
func GetListScalingPoliciesRequestScalingPolicyTypeEnum() ListScalingPoliciesRequestScalingPolicyTypeEnum
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 ¶
func (o ListScalingPoliciesResponse) String() 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 ¶
func (o ListScalingPolicyExecuteLogsRequest) String() string
type ListScalingPolicyExecuteLogsRequestExecuteType ¶
type ListScalingPolicyExecuteLogsRequestExecuteType struct {
// contains filtered or unexported fields
}
func (ListScalingPolicyExecuteLogsRequestExecuteType) MarshalJSON ¶
func (c ListScalingPolicyExecuteLogsRequestExecuteType) MarshalJSON() ([]byte, error)
func (*ListScalingPolicyExecuteLogsRequestExecuteType) UnmarshalJSON ¶
func (c *ListScalingPolicyExecuteLogsRequestExecuteType) UnmarshalJSON(b []byte) error
func (ListScalingPolicyExecuteLogsRequestExecuteType) Value ¶ added in v0.0.90
func (c ListScalingPolicyExecuteLogsRequestExecuteType) Value() string
type ListScalingPolicyExecuteLogsRequestExecuteTypeEnum ¶
type ListScalingPolicyExecuteLogsRequestExecuteTypeEnum struct { SCHEDULED ListScalingPolicyExecuteLogsRequestExecuteType RECURRENCE ListScalingPolicyExecuteLogsRequestExecuteType ALARM ListScalingPolicyExecuteLogsRequestExecuteType MANUAL ListScalingPolicyExecuteLogsRequestExecuteType }
func GetListScalingPolicyExecuteLogsRequestExecuteTypeEnum ¶
func GetListScalingPolicyExecuteLogsRequestExecuteTypeEnum() ListScalingPolicyExecuteLogsRequestExecuteTypeEnum
type ListScalingPolicyExecuteLogsRequestScalingResourceType ¶
type ListScalingPolicyExecuteLogsRequestScalingResourceType struct {
// contains filtered or unexported fields
}
func (ListScalingPolicyExecuteLogsRequestScalingResourceType) MarshalJSON ¶
func (c ListScalingPolicyExecuteLogsRequestScalingResourceType) MarshalJSON() ([]byte, error)
func (*ListScalingPolicyExecuteLogsRequestScalingResourceType) UnmarshalJSON ¶
func (c *ListScalingPolicyExecuteLogsRequestScalingResourceType) UnmarshalJSON(b []byte) error
func (ListScalingPolicyExecuteLogsRequestScalingResourceType) Value ¶ added in v0.0.90
func (c ListScalingPolicyExecuteLogsRequestScalingResourceType) Value() string
type ListScalingPolicyExecuteLogsRequestScalingResourceTypeEnum ¶
type ListScalingPolicyExecuteLogsRequestScalingResourceTypeEnum struct { SCALING_GROUP ListScalingPolicyExecuteLogsRequestScalingResourceType BANDWIDTH ListScalingPolicyExecuteLogsRequestScalingResourceType }
func GetListScalingPolicyExecuteLogsRequestScalingResourceTypeEnum ¶
func GetListScalingPolicyExecuteLogsRequestScalingResourceTypeEnum() ListScalingPolicyExecuteLogsRequestScalingResourceTypeEnum
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 ¶
func (o ListScalingPolicyExecuteLogsResponse) String() 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 ¶
func (o ListScalingTagInfosByResourceIdRequest) String() string
type ListScalingTagInfosByResourceIdRequestResourceType ¶
type ListScalingTagInfosByResourceIdRequestResourceType struct {
// contains filtered or unexported fields
}
func (ListScalingTagInfosByResourceIdRequestResourceType) MarshalJSON ¶
func (c ListScalingTagInfosByResourceIdRequestResourceType) MarshalJSON() ([]byte, error)
func (*ListScalingTagInfosByResourceIdRequestResourceType) UnmarshalJSON ¶
func (c *ListScalingTagInfosByResourceIdRequestResourceType) UnmarshalJSON(b []byte) error
func (ListScalingTagInfosByResourceIdRequestResourceType) Value ¶ added in v0.0.90
func (c ListScalingTagInfosByResourceIdRequestResourceType) Value() string
type ListScalingTagInfosByResourceIdRequestResourceTypeEnum ¶
type ListScalingTagInfosByResourceIdRequestResourceTypeEnum struct {
SCALING_GROUP_TAG ListScalingTagInfosByResourceIdRequestResourceType
}
func GetListScalingTagInfosByResourceIdRequestResourceTypeEnum ¶
func GetListScalingTagInfosByResourceIdRequestResourceTypeEnum() ListScalingTagInfosByResourceIdRequestResourceTypeEnum
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 ¶
func (o ListScalingTagInfosByResourceIdResponse) String() string
type ListScalingTagInfosByTenantIdRequest ¶
type ListScalingTagInfosByTenantIdRequest struct { // 资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。 ResourceType ListScalingTagInfosByTenantIdRequestResourceType `json:"resource_type"` }
ListScalingTagInfosByTenantIdRequest Request Object
func (ListScalingTagInfosByTenantIdRequest) String ¶
func (o ListScalingTagInfosByTenantIdRequest) String() string
type ListScalingTagInfosByTenantIdRequestResourceType ¶
type ListScalingTagInfosByTenantIdRequestResourceType struct {
// contains filtered or unexported fields
}
func (ListScalingTagInfosByTenantIdRequestResourceType) MarshalJSON ¶
func (c ListScalingTagInfosByTenantIdRequestResourceType) MarshalJSON() ([]byte, error)
func (*ListScalingTagInfosByTenantIdRequestResourceType) UnmarshalJSON ¶
func (c *ListScalingTagInfosByTenantIdRequestResourceType) UnmarshalJSON(b []byte) error
func (ListScalingTagInfosByTenantIdRequestResourceType) Value ¶ added in v0.0.90
func (c ListScalingTagInfosByTenantIdRequestResourceType) Value() string
type ListScalingTagInfosByTenantIdRequestResourceTypeEnum ¶
type ListScalingTagInfosByTenantIdRequestResourceTypeEnum struct {
SCALING_GROUP_TAG ListScalingTagInfosByTenantIdRequestResourceType
}
func GetListScalingTagInfosByTenantIdRequestResourceTypeEnum ¶
func GetListScalingTagInfosByTenantIdRequestResourceTypeEnum() ListScalingTagInfosByTenantIdRequestResourceTypeEnum
type ListScalingTagInfosByTenantIdResponse ¶
type ListScalingTagInfosByTenantIdResponse struct { // 资源标签。 Tags *[]TagsMultiValue `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
ListScalingTagInfosByTenantIdResponse Response Object
func (ListScalingTagInfosByTenantIdResponse) String ¶
func (o ListScalingTagInfosByTenantIdResponse) String() 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 ¶
func (o ListScalingV2PoliciesRequest) String() 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 ¶
func (o ListScalingV2PoliciesResponse) String() string
type Matches ¶
type Matches struct { // 键。暂限定为resource_name。 Key string `json:"key"` // 值。为固定字典值。每个值最大长度255个unicode字符。若为空字符串、resource_id时为精确匹配。 Value string `json:"value"` }
Matches
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 创建磁盘的元数据
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 负载均衡器
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 网络信息
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"` }
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
func (c PauseScalingGroupOptionAction) Value() string
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
func (c PauseScalingPolicyOptionAction) Value() string
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 ¶
func (o PauseScalingPolicyResponse) String() 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”的授权项。
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"` }
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
func (c ResumeScalingGroupOptionAction) Value() string
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 ¶
func (o ResumeScalingGroupResponse) String() 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
func (c ResumeScalingPolicyOptionAction) Value() string
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 ¶
func (o ResumeScalingPolicyRequest) String() string
type ResumeScalingPolicyResponse ¶
type ResumeScalingPolicyResponse struct {
HttpStatusCode int `json:"-"`
}
ResumeScalingPolicyResponse Response Object
func (ResumeScalingPolicyResponse) String ¶
func (o ResumeScalingPolicyResponse) String() 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
func (c ScalingActivityLogListStatus) Value() string
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
func (c ScalingActivityLogV2Status) Value() string
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"` // 冷却时间,取值范围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
func (c ScalingAllPolicyDetailPolicyStatus) Value() string
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
func (c ScalingAllPolicyDetailScalingPolicyType) Value() string
type ScalingAllPolicyDetailScalingPolicyTypeEnum ¶
type ScalingAllPolicyDetailScalingPolicyTypeEnum struct { ALARM ScalingAllPolicyDetailScalingPolicyType SCHEDULED ScalingAllPolicyDetailScalingPolicyType RECURRENCE ScalingAllPolicyDetailScalingPolicyType }
func GetScalingAllPolicyDetailScalingPolicyTypeEnum ¶
func GetScalingAllPolicyDetailScalingPolicyTypeEnum() ScalingAllPolicyDetailScalingPolicyTypeEnum
type ScalingAllPolicyDetailScalingResourceType ¶
type ScalingAllPolicyDetailScalingResourceType struct {
// contains filtered or unexported fields
}
func (ScalingAllPolicyDetailScalingResourceType) MarshalJSON ¶
func (c ScalingAllPolicyDetailScalingResourceType) MarshalJSON() ([]byte, error)
func (*ScalingAllPolicyDetailScalingResourceType) UnmarshalJSON ¶
func (c *ScalingAllPolicyDetailScalingResourceType) UnmarshalJSON(b []byte) error
func (ScalingAllPolicyDetailScalingResourceType) Value ¶ added in v0.0.90
func (c ScalingAllPolicyDetailScalingResourceType) Value() string
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
func (c ScalingGroupInstanceHealthStatus) Value() string
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
func (c ScalingGroupInstanceLifeCycleState) Value() string
type ScalingGroupInstanceLifeCycleStateEnum ¶
type ScalingGroupInstanceLifeCycleStateEnum struct { INSERVICE ScalingGroupInstanceLifeCycleState PENDING ScalingGroupInstanceLifeCycleState REMOVING ScalingGroupInstanceLifeCycleState PENDING_WAIT ScalingGroupInstanceLifeCycleState REMOVING_WAIT ScalingGroupInstanceLifeCycleState }
func GetScalingGroupInstanceLifeCycleStateEnum ¶
func GetScalingGroupInstanceLifeCycleStateEnum() ScalingGroupInstanceLifeCycleStateEnum
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"` }
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
func (c ScalingGroupsHealthPeriodicAuditMethod) Value() string
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
func (c ScalingGroupsInstanceTerminatePolicy) Value() string
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
func (c ScalingGroupsScalingGroupStatus) Value() string
type ScalingGroupsScalingGroupStatusEnum ¶
type ScalingGroupsScalingGroupStatusEnum struct { INSERVICE ScalingGroupsScalingGroupStatus PAUSED ScalingGroupsScalingGroupStatus ERROR ScalingGroupsScalingGroupStatus DELETING ScalingGroupsScalingGroupStatus FREEZED ScalingGroupsScalingGroupStatus }
func GetScalingGroupsScalingGroupStatusEnum ¶
func GetScalingGroupsScalingGroupStatusEnum() ScalingGroupsScalingGroupStatusEnum
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"` // 冷却时间,取值范围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
func (c ScalingPoliciesV2PolicyStatus) Value() string
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
func (c ScalingPoliciesV2ScalingPolicyType) Value() string
type ScalingPoliciesV2ScalingPolicyTypeEnum ¶
type ScalingPoliciesV2ScalingPolicyTypeEnum struct { ALARM ScalingPoliciesV2ScalingPolicyType SCHEDULED ScalingPoliciesV2ScalingPolicyType RECURRENCE ScalingPoliciesV2ScalingPolicyType }
func GetScalingPoliciesV2ScalingPolicyTypeEnum ¶
func GetScalingPoliciesV2ScalingPolicyTypeEnum() ScalingPoliciesV2ScalingPolicyTypeEnum
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
func (c ScalingPoliciesV2ScalingResourceType) Value() string
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
func (c ScalingPolicyActionV1Operation) Value() string
type ScalingPolicyActionV1OperationEnum ¶
type ScalingPolicyActionV1OperationEnum struct { ADD ScalingPolicyActionV1Operation REMOVE ScalingPolicyActionV1Operation REDUCE ScalingPolicyActionV1Operation SET ScalingPolicyActionV1Operation }
func GetScalingPolicyActionV1OperationEnum ¶
func GetScalingPolicyActionV1OperationEnum() ScalingPolicyActionV1OperationEnum
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
func (c ScalingPolicyActionV2Operation) Value() string
type ScalingPolicyActionV2OperationEnum ¶
type ScalingPolicyActionV2OperationEnum struct { ADD ScalingPolicyActionV2Operation REMOVE ScalingPolicyActionV2Operation REDUCE ScalingPolicyActionV2Operation SET ScalingPolicyActionV2Operation }
func GetScalingPolicyActionV2OperationEnum ¶
func GetScalingPolicyActionV2OperationEnum() ScalingPolicyActionV2OperationEnum
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 ¶
func (o ScalingPolicyExecuteLogList) String() 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
func (c ScalingPolicyExecuteLogListExecuteType) Value() string
type ScalingPolicyExecuteLogListExecuteTypeEnum ¶
type ScalingPolicyExecuteLogListExecuteTypeEnum struct { SCHEDULE ScalingPolicyExecuteLogListExecuteType RECURRENCE ScalingPolicyExecuteLogListExecuteType ALARM ScalingPolicyExecuteLogListExecuteType MANUAL ScalingPolicyExecuteLogListExecuteType }
func GetScalingPolicyExecuteLogListExecuteTypeEnum ¶
func GetScalingPolicyExecuteLogListExecuteTypeEnum() ScalingPolicyExecuteLogListExecuteTypeEnum
type ScalingPolicyExecuteLogListScalingResourceType ¶
type ScalingPolicyExecuteLogListScalingResourceType struct {
// contains filtered or unexported fields
}
func (ScalingPolicyExecuteLogListScalingResourceType) MarshalJSON ¶
func (c ScalingPolicyExecuteLogListScalingResourceType) MarshalJSON() ([]byte, error)
func (*ScalingPolicyExecuteLogListScalingResourceType) UnmarshalJSON ¶
func (c *ScalingPolicyExecuteLogListScalingResourceType) UnmarshalJSON(b []byte) error
func (ScalingPolicyExecuteLogListScalingResourceType) Value ¶ added in v0.0.90
func (c ScalingPolicyExecuteLogListScalingResourceType) Value() string
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
func (c ScalingPolicyExecuteLogListStatus) Value() string
type ScalingPolicyExecuteLogListStatusEnum ¶
type ScalingPolicyExecuteLogListStatusEnum struct { SUCCESS ScalingPolicyExecuteLogListStatus FAIL ScalingPolicyExecuteLogListStatus EXECUTING ScalingPolicyExecuteLogListStatus }
func GetScalingPolicyExecuteLogListStatusEnum ¶
func GetScalingPolicyExecuteLogListStatusEnum() ScalingPolicyExecuteLogListStatusEnum
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
func (c ScalingPolicyExecuteLogListType) Value() string
type ScalingPolicyExecuteLogListTypeEnum ¶
type ScalingPolicyExecuteLogListTypeEnum struct { ADD ScalingPolicyExecuteLogListType REMOVE ScalingPolicyExecuteLogListType SET ScalingPolicyExecuteLogListType }
func GetScalingPolicyExecuteLogListTypeEnum ¶
func GetScalingPolicyExecuteLogListTypeEnum() ScalingPolicyExecuteLogListTypeEnum
type ScalingPolicyV2MetaData ¶
type ScalingPolicyV2MetaData struct { string `json:"metadata_bandwidth_share_type,omitempty"` // 伸缩带宽策略中带宽对应的EIP的ID MetadataEipId *string `json:"metadata_eip_id,omitempty"` // 伸缩带宽策略中带宽对应的EIP地址 MetadataEipAddress *string `json:"metadata_eip_address,omitempty"` }MetadataBandwidthShareType *
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
func (c ScalingV1PolicyDetailScalingPolicyType) Value() string
type ScalingV1PolicyDetailScalingPolicyTypeEnum ¶
type ScalingV1PolicyDetailScalingPolicyTypeEnum struct { ALARM ScalingV1PolicyDetailScalingPolicyType SCHEDULED ScalingV1PolicyDetailScalingPolicyType RECURRENCE ScalingV1PolicyDetailScalingPolicyType }
func GetScalingV1PolicyDetailScalingPolicyTypeEnum ¶
func GetScalingV1PolicyDetailScalingPolicyTypeEnum() ScalingV1PolicyDetailScalingPolicyTypeEnum
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"` // 冷却时间,取值范围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
func (c ScalingV2PolicyDetailPolicyStatus) Value() string
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
func (c ScalingV2PolicyDetailScalingPolicyType) Value() string
type ScalingV2PolicyDetailScalingPolicyTypeEnum ¶
type ScalingV2PolicyDetailScalingPolicyTypeEnum struct { ALARM ScalingV2PolicyDetailScalingPolicyType SCHEDULED ScalingV2PolicyDetailScalingPolicyType RECURRENCE ScalingV2PolicyDetailScalingPolicyType }
func GetScalingV2PolicyDetailScalingPolicyTypeEnum ¶
func GetScalingV2PolicyDetailScalingPolicyTypeEnum() ScalingV2PolicyDetailScalingPolicyTypeEnum
type ScalingV2PolicyDetailScalingResourceType ¶
type ScalingV2PolicyDetailScalingResourceType struct {
// contains filtered or unexported fields
}
func (ScalingV2PolicyDetailScalingResourceType) MarshalJSON ¶
func (c ScalingV2PolicyDetailScalingResourceType) MarshalJSON() ([]byte, error)
func (*ScalingV2PolicyDetailScalingResourceType) UnmarshalJSON ¶
func (c *ScalingV2PolicyDetailScalingResourceType) UnmarshalJSON(b []byte) error
func (ScalingV2PolicyDetailScalingResourceType) Value ¶ added in v0.0.90
func (c ScalingV2PolicyDetailScalingResourceType) Value() string
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
func (c ScheduledPolicyRecurrenceType) Value() string
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
func (c ScheduledTaskPolicyRecurrenceType) Value() string
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
func (c ShowApiVersionRequestApiVersion) Value() string
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
func (c ShowLifeCycleHookResponseDefaultResult) Value() string
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 (c ShowLifeCycleHookResponseLifecycleHookType) MarshalJSON() ([]byte, error)
func (*ShowLifeCycleHookResponseLifecycleHookType) UnmarshalJSON ¶
func (c *ShowLifeCycleHookResponseLifecycleHookType) UnmarshalJSON(b []byte) error
func (ShowLifeCycleHookResponseLifecycleHookType) Value ¶ added in v0.0.90
func (c ShowLifeCycleHookResponseLifecycleHookType) Value() string
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 ¶
func (o ShowPolicyAndInstanceQuotaRequest) String() string
type ShowPolicyAndInstanceQuotaResponse ¶
type ShowPolicyAndInstanceQuotaResponse struct { Quotas *PolicyInstanceQuotas `json:"quotas,omitempty"` HttpStatusCode int `json:"-"` }
ShowPolicyAndInstanceQuotaResponse Response Object
func (ShowPolicyAndInstanceQuotaResponse) String ¶
func (o ShowPolicyAndInstanceQuotaResponse) String() 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 ¶
func (o ShowScalingV2PolicyRequest) String() string
type ShowScalingV2PolicyResponse ¶
type ShowScalingV2PolicyResponse struct { ScalingPolicy *ScalingV2PolicyDetail `json:"scaling_policy,omitempty"` HttpStatusCode int `json:"-"` }
ShowScalingV2PolicyResponse Response Object
func (ShowScalingV2PolicyResponse) String ¶
func (o ShowScalingV2PolicyResponse) String() 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"` }
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
func (o UpdateGroupScheduledTaskRequest) String() string
type UpdateGroupScheduledTaskResponse ¶ added in v0.1.48
type UpdateGroupScheduledTaskResponse struct {
HttpStatusCode int `json:"-"`
}
UpdateGroupScheduledTaskResponse Response Object
func (UpdateGroupScheduledTaskResponse) String ¶ added in v0.1.48
func (o UpdateGroupScheduledTaskResponse) String() string
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
func (c UpdateLifeCycleHookOptionDefaultResult) Value() string
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 (c UpdateLifeCycleHookOptionLifecycleHookType) MarshalJSON() ([]byte, error)
func (*UpdateLifeCycleHookOptionLifecycleHookType) UnmarshalJSON ¶
func (c *UpdateLifeCycleHookOptionLifecycleHookType) UnmarshalJSON(b []byte) error
func (UpdateLifeCycleHookOptionLifecycleHookType) Value ¶ added in v0.0.90
func (c UpdateLifeCycleHookOptionLifecycleHookType) Value() string
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 ¶
func (o UpdateLifeCycleHookRequest) String() 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 ¶
func (o UpdateLifeCycleHookResponse) String() string
type UpdateLifeCycleHookResponseDefaultResult ¶
type UpdateLifeCycleHookResponseDefaultResult struct {
// contains filtered or unexported fields
}
func (UpdateLifeCycleHookResponseDefaultResult) MarshalJSON ¶
func (c UpdateLifeCycleHookResponseDefaultResult) MarshalJSON() ([]byte, error)
func (*UpdateLifeCycleHookResponseDefaultResult) UnmarshalJSON ¶
func (c *UpdateLifeCycleHookResponseDefaultResult) UnmarshalJSON(b []byte) error
func (UpdateLifeCycleHookResponseDefaultResult) Value ¶ added in v0.0.90
func (c UpdateLifeCycleHookResponseDefaultResult) Value() string
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 (c UpdateLifeCycleHookResponseLifecycleHookType) MarshalJSON() ([]byte, error)
func (*UpdateLifeCycleHookResponseLifecycleHookType) UnmarshalJSON ¶
func (c *UpdateLifeCycleHookResponseLifecycleHookType) UnmarshalJSON(b []byte) error
func (UpdateLifeCycleHookResponseLifecycleHookType) Value ¶ added in v0.0.90
func (c UpdateLifeCycleHookResponseLifecycleHookType) Value() string
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 (c UpdateScalingGroupOptionHealthPeriodicAuditMethod) MarshalJSON() ([]byte, error)
func (*UpdateScalingGroupOptionHealthPeriodicAuditMethod) UnmarshalJSON ¶
func (c *UpdateScalingGroupOptionHealthPeriodicAuditMethod) UnmarshalJSON(b []byte) error
func (UpdateScalingGroupOptionHealthPeriodicAuditMethod) Value ¶ added in v0.0.90
func (c UpdateScalingGroupOptionHealthPeriodicAuditMethod) Value() string
type UpdateScalingGroupOptionHealthPeriodicAuditMethodEnum ¶
type UpdateScalingGroupOptionHealthPeriodicAuditMethodEnum struct { ELB_AUDIT UpdateScalingGroupOptionHealthPeriodicAuditMethod NOVA_AUDIT UpdateScalingGroupOptionHealthPeriodicAuditMethod }
func GetUpdateScalingGroupOptionHealthPeriodicAuditMethodEnum ¶
func GetUpdateScalingGroupOptionHealthPeriodicAuditMethodEnum() UpdateScalingGroupOptionHealthPeriodicAuditMethodEnum
type UpdateScalingGroupOptionInstanceTerminatePolicy ¶
type UpdateScalingGroupOptionInstanceTerminatePolicy struct {
// contains filtered or unexported fields
}
func (UpdateScalingGroupOptionInstanceTerminatePolicy) MarshalJSON ¶
func (c UpdateScalingGroupOptionInstanceTerminatePolicy) MarshalJSON() ([]byte, error)
func (*UpdateScalingGroupOptionInstanceTerminatePolicy) UnmarshalJSON ¶
func (c *UpdateScalingGroupOptionInstanceTerminatePolicy) UnmarshalJSON(b []byte) error
func (UpdateScalingGroupOptionInstanceTerminatePolicy) Value ¶ added in v0.0.90
func (c UpdateScalingGroupOptionInstanceTerminatePolicy) Value() string
type UpdateScalingGroupOptionInstanceTerminatePolicyEnum ¶
type UpdateScalingGroupOptionInstanceTerminatePolicyEnum struct { OLD_CONFIG_OLD_INSTANCE UpdateScalingGroupOptionInstanceTerminatePolicy OLD_CONFIG_NEW_INSTANCE UpdateScalingGroupOptionInstanceTerminatePolicy OLD_INSTANCE UpdateScalingGroupOptionInstanceTerminatePolicy NEW_INSTANCE UpdateScalingGroupOptionInstanceTerminatePolicy }
func GetUpdateScalingGroupOptionInstanceTerminatePolicyEnum ¶
func GetUpdateScalingGroupOptionInstanceTerminatePolicyEnum() UpdateScalingGroupOptionInstanceTerminatePolicyEnum
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 ¶
func (o UpdateScalingGroupResponse) String() 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 (c UpdateScalingPolicyOptionScalingPolicyType) MarshalJSON() ([]byte, error)
func (*UpdateScalingPolicyOptionScalingPolicyType) UnmarshalJSON ¶
func (c *UpdateScalingPolicyOptionScalingPolicyType) UnmarshalJSON(b []byte) error
func (UpdateScalingPolicyOptionScalingPolicyType) Value ¶ added in v0.0.90
func (c UpdateScalingPolicyOptionScalingPolicyType) Value() string
type UpdateScalingPolicyOptionScalingPolicyTypeEnum ¶
type UpdateScalingPolicyOptionScalingPolicyTypeEnum struct { ALARM UpdateScalingPolicyOptionScalingPolicyType SCHEDULED UpdateScalingPolicyOptionScalingPolicyType RECURRENCE UpdateScalingPolicyOptionScalingPolicyType }
func GetUpdateScalingPolicyOptionScalingPolicyTypeEnum ¶
func GetUpdateScalingPolicyOptionScalingPolicyTypeEnum() UpdateScalingPolicyOptionScalingPolicyTypeEnum
type UpdateScalingPolicyRequest ¶
type UpdateScalingPolicyRequest struct { // 伸缩策略ID。 ScalingPolicyId string `json:"scaling_policy_id"` Body *UpdateScalingPolicyOption `json:"body,omitempty"` }
UpdateScalingPolicyRequest Request Object
func (UpdateScalingPolicyRequest) String ¶
func (o UpdateScalingPolicyRequest) String() string
type UpdateScalingPolicyResponse ¶
type UpdateScalingPolicyResponse struct { // 伸缩策略ID。 ScalingPolicyId *string `json:"scaling_policy_id,omitempty"` HttpStatusCode int `json:"-"` }
UpdateScalingPolicyResponse Response Object
func (UpdateScalingPolicyResponse) String ¶
func (o UpdateScalingPolicyResponse) String() 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"` // 冷却时间,取值范围0-86400,默认为300,单位是秒。 CoolDownTime *int32 `json:"cool_down_time,omitempty"` // 伸缩策略描述(1-256个字符) Description *string `json:"description,omitempty"` }
UpdateScalingV2PolicyOption 修改伸缩策略
func (UpdateScalingV2PolicyOption) String ¶
func (o UpdateScalingV2PolicyOption) String() string
type UpdateScalingV2PolicyOptionScalingPolicyType ¶
type UpdateScalingV2PolicyOptionScalingPolicyType struct {
// contains filtered or unexported fields
}
func (UpdateScalingV2PolicyOptionScalingPolicyType) MarshalJSON ¶
func (c UpdateScalingV2PolicyOptionScalingPolicyType) MarshalJSON() ([]byte, error)
func (*UpdateScalingV2PolicyOptionScalingPolicyType) UnmarshalJSON ¶
func (c *UpdateScalingV2PolicyOptionScalingPolicyType) UnmarshalJSON(b []byte) error
func (UpdateScalingV2PolicyOptionScalingPolicyType) Value ¶ added in v0.0.90
func (c UpdateScalingV2PolicyOptionScalingPolicyType) Value() string
type UpdateScalingV2PolicyOptionScalingPolicyTypeEnum ¶
type UpdateScalingV2PolicyOptionScalingPolicyTypeEnum struct { ALARM UpdateScalingV2PolicyOptionScalingPolicyType SCHEDULED UpdateScalingV2PolicyOptionScalingPolicyType RECURRENCE UpdateScalingV2PolicyOptionScalingPolicyType }
func GetUpdateScalingV2PolicyOptionScalingPolicyTypeEnum ¶
func GetUpdateScalingV2PolicyOptionScalingPolicyTypeEnum() UpdateScalingV2PolicyOptionScalingPolicyTypeEnum
type UpdateScalingV2PolicyOptionScalingResourceType ¶
type UpdateScalingV2PolicyOptionScalingResourceType struct {
// contains filtered or unexported fields
}
func (UpdateScalingV2PolicyOptionScalingResourceType) MarshalJSON ¶
func (c UpdateScalingV2PolicyOptionScalingResourceType) MarshalJSON() ([]byte, error)
func (*UpdateScalingV2PolicyOptionScalingResourceType) UnmarshalJSON ¶
func (c *UpdateScalingV2PolicyOptionScalingResourceType) UnmarshalJSON(b []byte) error
func (UpdateScalingV2PolicyOptionScalingResourceType) Value ¶ added in v0.0.90
func (c UpdateScalingV2PolicyOptionScalingResourceType) Value() string
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 ¶
func (o UpdateScalingV2PolicyRequest) String() string
type UpdateScalingV2PolicyResponse ¶
type UpdateScalingV2PolicyResponse struct { // 伸缩策略ID。 ScalingPolicyId *string `json:"scaling_policy_id,omitempty"` HttpStatusCode int `json:"-"` }
UpdateScalingV2PolicyResponse Response Object
func (UpdateScalingV2PolicyResponse) String ¶
func (o UpdateScalingV2PolicyResponse) String() 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 ¶
- model_all_quotas.go
- model_all_resources.go
- model_allowed_address_pair.go
- model_attach_callback_instance_life_cycle_hook_request.go
- model_attach_callback_instance_life_cycle_hook_response.go
- model_bandwidth_info.go
- model_bandwidth_result.go
- model_batch_add_instances_option.go
- model_batch_add_scaling_instances_request.go
- model_batch_add_scaling_instances_response.go
- model_batch_delete_scaling_config_option.go
- model_batch_delete_scaling_configs_request.go
- model_batch_delete_scaling_configs_response.go
- model_batch_delete_scaling_policies_option.go
- model_batch_delete_scaling_policies_request.go
- model_batch_delete_scaling_policies_response.go
- model_batch_enter_standby_instances_option.go
- model_batch_exit_stand_by_instances_option.go
- model_batch_pause_scaling_policies_option.go
- model_batch_pause_scaling_policies_request.go
- model_batch_pause_scaling_policies_response.go
- model_batch_protect_instances_option.go
- model_batch_protect_scaling_instances_request.go
- model_batch_protect_scaling_instances_response.go
- model_batch_remove_instances_option.go
- model_batch_remove_scaling_instances_request.go
- model_batch_remove_scaling_instances_response.go
- model_batch_resume_scaling_policies_option.go
- model_batch_resume_scaling_policies_request.go
- model_batch_resume_scaling_policies_response.go
- model_batch_set_scaling_instances_standby_request.go
- model_batch_set_scaling_instances_standby_response.go
- model_batch_unprotect_instances_option.go
- model_batch_unprotect_scaling_instances_request.go
- model_batch_unprotect_scaling_instances_response.go
- model_batch_unset_scaling_instances_stantby_request.go
- model_batch_unset_scaling_instances_stantby_response.go
- model_callback_life_cycle_hook_option.go
- model_create_group_scheduled_task_request.go
- model_create_group_scheduled_task_response.go
- model_create_life_cycle_hook_option.go
- model_create_lify_cycle_hook_request.go
- model_create_lify_cycle_hook_response.go
- model_create_notification_option.go
- model_create_scaling_config_option.go
- model_create_scaling_config_request.go
- model_create_scaling_config_response.go
- model_create_scaling_group_option.go
- model_create_scaling_group_request.go
- model_create_scaling_group_response.go
- model_create_scaling_notification_request.go
- model_create_scaling_notification_response.go
- model_create_scaling_policy_option.go
- model_create_scaling_policy_request.go
- model_create_scaling_policy_response.go
- model_create_scaling_policy_v2_option.go
- model_create_scaling_tag_info_request.go
- model_create_scaling_tag_info_response.go
- model_create_scaling_v2_policy_request.go
- model_create_scaling_v2_policy_response.go
- model_create_scheduled_task_option.go
- model_create_tags_option.go
- model_delete_group_scheduled_task_request.go
- model_delete_group_scheduled_task_response.go
- model_delete_lifecycle_hook_request.go
- model_delete_lifecycle_hook_response.go
- model_delete_scaling_config_request.go
- model_delete_scaling_config_response.go
- model_delete_scaling_group_request.go
- model_delete_scaling_group_response.go
- model_delete_scaling_instance_request.go
- model_delete_scaling_instance_response.go
- model_delete_scaling_notification_request.go
- model_delete_scaling_notification_response.go
- model_delete_scaling_policy_request.go
- model_delete_scaling_policy_response.go
- model_delete_scaling_tag_info_request.go
- model_delete_scaling_tag_info_response.go
- model_delete_tags_option.go
- model_disk_info.go
- model_disk_result.go
- model_eip_info.go
- model_eip_meta_data.go
- model_eip_result.go
- model_execute_scaling_policy_option.go
- model_execute_scaling_policy_request.go
- model_execute_scaling_policy_response.go
- model_instance_config.go
- model_instance_config_result.go
- model_instance_hanging_infos.go
- model_integer_range.go
- model_ipv6_bandwidth.go
- model_job_records.go
- model_lbaas_listener.go
- model_lbaas_listeners.go
- model_lbaas_listeners_result.go
- model_lifecycle_hook_list.go
- model_links.go
- model_list_all_scaling_v2_policies_request.go
- model_list_all_scaling_v2_policies_response.go
- model_list_api_versions_request.go
- model_list_api_versions_response.go
- model_list_group_scheduled_tasks_request.go
- model_list_group_scheduled_tasks_response.go
- model_list_hook_instances_request.go
- model_list_hook_instances_response.go
- model_list_life_cycle_hooks_request.go
- model_list_life_cycle_hooks_response.go
- model_list_resource_instances_request.go
- model_list_resource_instances_response.go
- model_list_scaling_activity_logs_request.go
- model_list_scaling_activity_logs_response.go
- model_list_scaling_activity_v2_logs_request.go
- model_list_scaling_activity_v2_logs_response.go
- model_list_scaling_configs_request.go
- model_list_scaling_configs_response.go
- model_list_scaling_groups_request.go
- model_list_scaling_groups_response.go
- model_list_scaling_instances_request.go
- model_list_scaling_instances_response.go
- model_list_scaling_notifications_request.go
- model_list_scaling_notifications_response.go
- model_list_scaling_policies_request.go
- model_list_scaling_policies_response.go
- model_list_scaling_policy_execute_logs_request.go
- model_list_scaling_policy_execute_logs_response.go
- model_list_scaling_tag_infos_by_resource_id_request.go
- model_list_scaling_tag_infos_by_resource_id_response.go
- model_list_scaling_tag_infos_by_tenant_id_request.go
- model_list_scaling_tag_infos_by_tenant_id_response.go
- model_list_scaling_v2_policies_request.go
- model_list_scaling_v2_policies_response.go
- model_matches.go
- model_meta_data.go
- model_modify_lb.go
- model_networks.go
- model_networks_result.go
- model_page_info.go
- model_pause_scaling_group_option.go
- model_pause_scaling_group_request.go
- model_pause_scaling_group_response.go
- model_pause_scaling_policy_option.go
- model_pause_scaling_policy_request.go
- model_pause_scaling_policy_response.go
- model_personality_info.go
- model_personality_result.go
- model_policy_instance_quotas.go
- model_policy_instance_resources.go
- model_public_ip.go
- model_publicip_result.go
- model_query_tags_option.go
- model_resource_tags.go
- model_resources.go
- model_resume_scaling_group_option.go
- model_resume_scaling_group_request.go
- model_resume_scaling_group_response.go
- model_resume_scaling_policy_option.go
- model_resume_scaling_policy_request.go
- model_resume_scaling_policy_response.go
- model_scaling_activity_log_list.go
- model_scaling_activity_log_v2.go
- model_scaling_all_policy_detail.go
- model_scaling_configuration.go
- model_scaling_group_instance.go
- model_scaling_groups.go
- model_scaling_instance.go
- model_scaling_policies_v2.go
- model_scaling_policy_action_v1.go
- model_scaling_policy_action_v2.go
- model_scaling_policy_execute_log_list.go
- model_scaling_policy_v2_meta_data.go
- model_scaling_v1_policy_detail.go
- model_scaling_v2_policy_detail.go
- model_scheduled_policy.go
- model_scheduled_task_detail.go
- model_scheduled_task_policy.go
- model_security_group.go
- model_security_groups.go
- model_security_groups_result.go
- model_show_api_version_request.go
- model_show_api_version_response.go
- model_show_life_cycle_hook_request.go
- model_show_life_cycle_hook_response.go
- model_show_policy_and_instance_quota_request.go
- model_show_policy_and_instance_quota_response.go
- model_show_resource_quota_request.go
- model_show_resource_quota_response.go
- model_show_scaling_config_request.go
- model_show_scaling_config_response.go
- model_show_scaling_group_request.go
- model_show_scaling_group_response.go
- model_show_scaling_policy_request.go
- model_show_scaling_policy_response.go
- model_show_scaling_v2_policy_request.go
- model_show_scaling_v2_policy_response.go
- model_tags_multi_value.go
- model_tags_single_value.go
- model_topics.go
- model_update_group_scheduled_task_request.go
- model_update_group_scheduled_task_response.go
- model_update_life_cycle_hook_option.go
- model_update_life_cycle_hook_request.go
- model_update_life_cycle_hook_response.go
- model_update_scaling_group_option.go
- model_update_scaling_group_request.go
- model_update_scaling_group_response.go
- model_update_scaling_policy_option.go
- model_update_scaling_policy_request.go
- model_update_scaling_policy_response.go
- model_update_scaling_v2_policy_option.go
- model_update_scaling_v2_policy_request.go
- model_update_scaling_v2_policy_response.go
- model_update_scheduled_task_option.go
- model_version_info.go
- model_vm_meta_data.go