client

package
v1.67.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmpClient

type CmpClient struct {
	core.JDCloudClient
}

func NewCmpClient

func NewCmpClient(credential *core.Credential) *CmpClient

func (*CmpClient) AssociateMaintenancePolicy

func (c *CmpClient) AssociateMaintenancePolicy(request *cmp.AssociateMaintenancePolicyRequest) (*cmp.AssociateMaintenancePolicyResponse, error)

云主机关联自定义运维策略

func (*CmpClient) AuthorizeEvent

func (c *CmpClient) AuthorizeEvent(request *cmp.AuthorizeEventRequest) (*cmp.AuthorizeEventResponse, error)

授权计划迁移系统中的运维事件,授权前会校验事件是否存在且归属当前账号,仅支持计划迁移系统内的事件。

func (*CmpClient) CreateCustomEventsOnResource

创建自定义运维事件,仅支持实例资源。

仅灰度用户可用(元数据 vm_submithost=1)。

func (*CmpClient) CreateMaintenancePolicy

func (c *CmpClient) CreateMaintenancePolicy(request *cmp.CreateMaintenancePolicyRequest) (*cmp.CreateMaintenancePolicyResponse, error)

创建自定义运维策略

func (*CmpClient) DeleteMaintenancePolicy

func (c *CmpClient) DeleteMaintenancePolicy(request *cmp.DeleteMaintenancePolicyRequest) (*cmp.DeleteMaintenancePolicyResponse, error)

删除自定义运维策略

func (*CmpClient) DescribeMaintenanceEvents

func (c *CmpClient) DescribeMaintenanceEvents(request *cmp.DescribeMaintenanceEventsRequest) (*cmp.DescribeMaintenanceEventsResponse, error)

查询云主机的运维事件

func (*CmpClient) DescribeMaintenancePolicies

查询自定义运维策略

func (*CmpClient) DisableLogger

func (c *CmpClient) DisableLogger()

func (*CmpClient) DisassociateMaintenancePolicy

云主机解关联运维策略

func (*CmpClient) ModifyMaintenanceEvent

func (c *CmpClient) ModifyMaintenanceEvent(request *cmp.ModifyMaintenanceEventRequest) (*cmp.ModifyMaintenanceEventResponse, error)

修改(预约)云主机的事件

func (*CmpClient) ModifyMaintenancePolicy

func (c *CmpClient) ModifyMaintenancePolicy(request *cmp.ModifyMaintenancePolicyRequest) (*cmp.ModifyMaintenancePolicyResponse, error)

修改自定义运维策略

func (*CmpClient) RecommendedInstanceTypes

func (c *CmpClient) RecommendedInstanceTypes(request *cmp.RecommendedInstanceTypesRequest) (*cmp.RecommendedInstanceTypesResponse, error)
查询规格实例的推荐规格(用于实例所在宿主机器下线事件)

如果实例规格没有查询到对应的推荐规格,返回的推荐规格为空

func (*CmpClient) SetConfig

func (c *CmpClient) SetConfig(config *core.Config)

func (*CmpClient) SetLogger

func (c *CmpClient) SetLogger(logger core.Logger)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL