apis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupDownloadURLRequest

type BackupDownloadURLRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* backup ID  */
	BackupId string `json:"backupId"`
}

func NewBackupDownloadURLRequest

func NewBackupDownloadURLRequest(
	regionId string,
	backupId string,
) *BackupDownloadURLRequest

* param regionId: Region ID (Required) * param backupId: backup ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewBackupDownloadURLRequestWithAllParams

func NewBackupDownloadURLRequestWithAllParams(
	regionId string,
	backupId string,
) *BackupDownloadURLRequest

* param regionId: Region ID (Required) * param backupId: backup ID (Required)

func NewBackupDownloadURLRequestWithoutParam

func NewBackupDownloadURLRequestWithoutParam() *BackupDownloadURLRequest

This constructor has better compatible ability when API parameters changed

func (BackupDownloadURLRequest) GetRegionId

func (r BackupDownloadURLRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*BackupDownloadURLRequest) SetBackupId

func (r *BackupDownloadURLRequest) SetBackupId(backupId string)

param backupId: backup ID(Required)

func (*BackupDownloadURLRequest) SetRegionId

func (r *BackupDownloadURLRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type BackupDownloadURLResponse

type BackupDownloadURLResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    BackupDownloadURLResult `json:"result"`
}

type BackupDownloadURLResult

type BackupDownloadURLResult struct {
	BackupDownloadURL mongodb.BackupDownloadURL `json:"backupDownloadURL"`
}

type CreateBackupRequest

type CreateBackupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 实例ID  */
	InstanceId string `json:"instanceId"`

	/* 备份名称 (Optional) */
	BackupName *string `json:"backupName"`

	/* 备份方式,Logical - 逻辑备份、Physical - 物理备份 (Optional) */
	BackupMethod *string `json:"backupMethod"`
}

func NewCreateBackupRequest

func NewCreateBackupRequest(
	regionId string,
	instanceId string,
) *CreateBackupRequest

* param regionId: Region ID (Required) * param instanceId: 实例ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateBackupRequestWithAllParams

func NewCreateBackupRequestWithAllParams(
	regionId string,
	instanceId string,
	backupName *string,
	backupMethod *string,
) *CreateBackupRequest

* param regionId: Region ID (Required) * param instanceId: 实例ID (Required) * param backupName: 备份名称 (Optional) * param backupMethod: 备份方式,Logical - 逻辑备份、Physical - 物理备份 (Optional)

func NewCreateBackupRequestWithoutParam

func NewCreateBackupRequestWithoutParam() *CreateBackupRequest

This constructor has better compatible ability when API parameters changed

func (CreateBackupRequest) GetRegionId

func (r CreateBackupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateBackupRequest) SetBackupMethod

func (r *CreateBackupRequest) SetBackupMethod(backupMethod string)

param backupMethod: 备份方式,Logical - 逻辑备份、Physical - 物理备份(Optional)

func (*CreateBackupRequest) SetBackupName

func (r *CreateBackupRequest) SetBackupName(backupName string)

param backupName: 备份名称(Optional)

func (*CreateBackupRequest) SetInstanceId

func (r *CreateBackupRequest) SetInstanceId(instanceId string)

param instanceId: 实例ID(Required)

func (*CreateBackupRequest) SetRegionId

func (r *CreateBackupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type CreateBackupResponse

type CreateBackupResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    CreateBackupResult `json:"result"`
}

type CreateBackupResult

type CreateBackupResult struct {
	BackupId string `json:"backupId"`
}

type CreateBackupSynchronicityRequest

type CreateBackupSynchronicityRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 源实例ID  */
	InstanceId string `json:"instanceId"`

	/* 源实例所在地域  */
	SrcRegion string `json:"srcRegion"`

	/* 备份同步的目标地域  */
	DstRegion string `json:"dstRegion"`
}

func NewCreateBackupSynchronicityRequest

func NewCreateBackupSynchronicityRequest(
	regionId string,
	instanceId string,
	srcRegion string,
	dstRegion string,
) *CreateBackupSynchronicityRequest

* param regionId: Region ID (Required) * param instanceId: 源实例ID (Required) * param srcRegion: 源实例所在地域 (Required) * param dstRegion: 备份同步的目标地域 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateBackupSynchronicityRequestWithAllParams

func NewCreateBackupSynchronicityRequestWithAllParams(
	regionId string,
	instanceId string,
	srcRegion string,
	dstRegion string,
) *CreateBackupSynchronicityRequest

* param regionId: Region ID (Required) * param instanceId: 源实例ID (Required) * param srcRegion: 源实例所在地域 (Required) * param dstRegion: 备份同步的目标地域 (Required)

func NewCreateBackupSynchronicityRequestWithoutParam

func NewCreateBackupSynchronicityRequestWithoutParam() *CreateBackupSynchronicityRequest

This constructor has better compatible ability when API parameters changed

func (CreateBackupSynchronicityRequest) GetRegionId

func (r CreateBackupSynchronicityRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateBackupSynchronicityRequest) SetDstRegion

func (r *CreateBackupSynchronicityRequest) SetDstRegion(dstRegion string)

param dstRegion: 备份同步的目标地域(Required)

func (*CreateBackupSynchronicityRequest) SetInstanceId

func (r *CreateBackupSynchronicityRequest) SetInstanceId(instanceId string)

param instanceId: 源实例ID(Required)

func (*CreateBackupSynchronicityRequest) SetRegionId

func (r *CreateBackupSynchronicityRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateBackupSynchronicityRequest) SetSrcRegion

func (r *CreateBackupSynchronicityRequest) SetSrcRegion(srcRegion string)

param srcRegion: 源实例所在地域(Required)

type CreateBackupSynchronicityResponse

type CreateBackupSynchronicityResponse struct {
	RequestID string                          `json:"requestId"`
	Error     core.ErrorResponse              `json:"error"`
	Result    CreateBackupSynchronicityResult `json:"result"`
}

type CreateBackupSynchronicityResult

type CreateBackupSynchronicityResult struct {
	ServiceId string `json:"serviceId"`
}

type CreateInstanceRequest

type CreateInstanceRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 实例规格  */
	InstanceSpec *mongodb.DBInstanceSpec `json:"instanceSpec"`

	/* 付费方式 (Optional) */
	ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`
}

func NewCreateInstanceRequest

func NewCreateInstanceRequest(
	regionId string,
	instanceSpec *mongodb.DBInstanceSpec,
) *CreateInstanceRequest

* param regionId: Region ID (Required) * param instanceSpec: 实例规格 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateInstanceRequestWithAllParams

func NewCreateInstanceRequestWithAllParams(
	regionId string,
	instanceSpec *mongodb.DBInstanceSpec,
	chargeSpec *charge.ChargeSpec,
) *CreateInstanceRequest

* param regionId: Region ID (Required) * param instanceSpec: 实例规格 (Required) * param chargeSpec: 付费方式 (Optional)

func NewCreateInstanceRequestWithoutParam

func NewCreateInstanceRequestWithoutParam() *CreateInstanceRequest

This constructor has better compatible ability when API parameters changed

func (CreateInstanceRequest) GetRegionId

func (r CreateInstanceRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateInstanceRequest) SetChargeSpec

func (r *CreateInstanceRequest) SetChargeSpec(chargeSpec *charge.ChargeSpec)

param chargeSpec: 付费方式(Optional)

func (*CreateInstanceRequest) SetInstanceSpec

func (r *CreateInstanceRequest) SetInstanceSpec(instanceSpec *mongodb.DBInstanceSpec)

param instanceSpec: 实例规格(Required)

func (*CreateInstanceRequest) SetRegionId

func (r *CreateInstanceRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type CreateInstanceResponse

type CreateInstanceResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    CreateInstanceResult `json:"result"`
}

type CreateInstanceResult

type CreateInstanceResult struct {
	InstanceId string `json:"instanceId"`
	OrderId    string `json:"orderId"`
}

type CreateShardingInstanceRequest

type CreateShardingInstanceRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 实例规格  */
	ShardingInstanceSpec *mongodb.ShardingDBInstanceSpec `json:"shardingInstanceSpec"`

	/* 付费方式 (Optional) */
	ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`
}

func NewCreateShardingInstanceRequest

func NewCreateShardingInstanceRequest(
	regionId string,
	shardingInstanceSpec *mongodb.ShardingDBInstanceSpec,
) *CreateShardingInstanceRequest

* param regionId: Region ID (Required) * param shardingInstanceSpec: 实例规格 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateShardingInstanceRequestWithAllParams

func NewCreateShardingInstanceRequestWithAllParams(
	regionId string,
	shardingInstanceSpec *mongodb.ShardingDBInstanceSpec,
	chargeSpec *charge.ChargeSpec,
) *CreateShardingInstanceRequest

* param regionId: Region ID (Required) * param shardingInstanceSpec: 实例规格 (Required) * param chargeSpec: 付费方式 (Optional)

func NewCreateShardingInstanceRequestWithoutParam

func NewCreateShardingInstanceRequestWithoutParam() *CreateShardingInstanceRequest

This constructor has better compatible ability when API parameters changed

func (CreateShardingInstanceRequest) GetRegionId

func (r CreateShardingInstanceRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateShardingInstanceRequest) SetChargeSpec

func (r *CreateShardingInstanceRequest) SetChargeSpec(chargeSpec *charge.ChargeSpec)

param chargeSpec: 付费方式(Optional)

func (*CreateShardingInstanceRequest) SetRegionId

func (r *CreateShardingInstanceRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateShardingInstanceRequest) SetShardingInstanceSpec

func (r *CreateShardingInstanceRequest) SetShardingInstanceSpec(shardingInstanceSpec *mongodb.ShardingDBInstanceSpec)

param shardingInstanceSpec: 实例规格(Required)

type CreateShardingInstanceResponse

type CreateShardingInstanceResponse struct {
	RequestID string                       `json:"requestId"`
	Error     core.ErrorResponse           `json:"error"`
	Result    CreateShardingInstanceResult `json:"result"`
}

type CreateShardingInstanceResult

type CreateShardingInstanceResult struct {
	InstanceId string `json:"instanceId"`
	OrderId    string `json:"orderId"`
}

type DeleteBackupRequest

type DeleteBackupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* backup ID  */
	BackupId string `json:"backupId"`
}

func NewDeleteBackupRequest

func NewDeleteBackupRequest(
	regionId string,
	backupId string,
) *DeleteBackupRequest

* param regionId: Region ID (Required) * param backupId: backup ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteBackupRequestWithAllParams

func NewDeleteBackupRequestWithAllParams(
	regionId string,
	backupId string,
) *DeleteBackupRequest

* param regionId: Region ID (Required) * param backupId: backup ID (Required)

func NewDeleteBackupRequestWithoutParam

func NewDeleteBackupRequestWithoutParam() *DeleteBackupRequest

This constructor has better compatible ability when API parameters changed

func (DeleteBackupRequest) GetRegionId

func (r DeleteBackupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteBackupRequest) SetBackupId

func (r *DeleteBackupRequest) SetBackupId(backupId string)

param backupId: backup ID(Required)

func (*DeleteBackupRequest) SetRegionId

func (r *DeleteBackupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteBackupResponse

type DeleteBackupResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteBackupResult `json:"result"`
}

type DeleteBackupResult

type DeleteBackupResult struct {
}

type DeleteBackupSynchronicitiesRequest

type DeleteBackupSynchronicitiesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* service ID  */
	ServiceId string `json:"serviceId"`
}

func NewDeleteBackupSynchronicitiesRequest

func NewDeleteBackupSynchronicitiesRequest(
	regionId string,
	serviceId string,
) *DeleteBackupSynchronicitiesRequest

* param regionId: Region ID (Required) * param serviceId: service ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteBackupSynchronicitiesRequestWithAllParams

func NewDeleteBackupSynchronicitiesRequestWithAllParams(
	regionId string,
	serviceId string,
) *DeleteBackupSynchronicitiesRequest

* param regionId: Region ID (Required) * param serviceId: service ID (Required)

func NewDeleteBackupSynchronicitiesRequestWithoutParam

func NewDeleteBackupSynchronicitiesRequestWithoutParam() *DeleteBackupSynchronicitiesRequest

This constructor has better compatible ability when API parameters changed

func (DeleteBackupSynchronicitiesRequest) GetRegionId

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteBackupSynchronicitiesRequest) SetRegionId

func (r *DeleteBackupSynchronicitiesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeleteBackupSynchronicitiesRequest) SetServiceId

func (r *DeleteBackupSynchronicitiesRequest) SetServiceId(serviceId string)

param serviceId: service ID(Required)

type DeleteBackupSynchronicitiesResponse

type DeleteBackupSynchronicitiesResponse struct {
	RequestID string                            `json:"requestId"`
	Error     core.ErrorResponse                `json:"error"`
	Result    DeleteBackupSynchronicitiesResult `json:"result"`
}

type DeleteBackupSynchronicitiesResult

type DeleteBackupSynchronicitiesResult struct {
	ServiceId string `json:"serviceId"`
}

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`
}

func NewDeleteInstanceRequest

func NewDeleteInstanceRequest(
	regionId string,
	instanceId string,
) *DeleteInstanceRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteInstanceRequestWithAllParams

func NewDeleteInstanceRequestWithAllParams(
	regionId string,
	instanceId string,
) *DeleteInstanceRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required)

func NewDeleteInstanceRequestWithoutParam

func NewDeleteInstanceRequestWithoutParam() *DeleteInstanceRequest

This constructor has better compatible ability when API parameters changed

func (DeleteInstanceRequest) GetRegionId

func (r DeleteInstanceRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteInstanceRequest) SetInstanceId

func (r *DeleteInstanceRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*DeleteInstanceRequest) SetRegionId

func (r *DeleteInstanceRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DeleteInstanceResult `json:"result"`
}

type DeleteInstanceResult

type DeleteInstanceResult struct {
}

type DescribeAvailableZonesRequest

type DescribeAvailableZonesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`
}

func NewDescribeAvailableZonesRequest

func NewDescribeAvailableZonesRequest(
	regionId string,
) *DescribeAvailableZonesRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeAvailableZonesRequestWithAllParams

func NewDescribeAvailableZonesRequestWithAllParams(
	regionId string,
) *DescribeAvailableZonesRequest

* param regionId: Region ID (Required)

func NewDescribeAvailableZonesRequestWithoutParam

func NewDescribeAvailableZonesRequestWithoutParam() *DescribeAvailableZonesRequest

This constructor has better compatible ability when API parameters changed

func (DescribeAvailableZonesRequest) GetRegionId

func (r DescribeAvailableZonesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeAvailableZonesRequest) SetRegionId

func (r *DescribeAvailableZonesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeAvailableZonesResponse

type DescribeAvailableZonesResponse struct {
	RequestID string                       `json:"requestId"`
	Error     core.ErrorResponse           `json:"error"`
	Result    DescribeAvailableZonesResult `json:"result"`
}

type DescribeAvailableZonesResult

type DescribeAvailableZonesResult struct {
	AvailableZones []mongodb.AvailableZones `json:"availableZones"`
}

type DescribeBackupPolicyRequest

type DescribeBackupPolicyRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`
}

func NewDescribeBackupPolicyRequest

func NewDescribeBackupPolicyRequest(
	regionId string,
	instanceId string,
) *DescribeBackupPolicyRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeBackupPolicyRequestWithAllParams

func NewDescribeBackupPolicyRequestWithAllParams(
	regionId string,
	instanceId string,
) *DescribeBackupPolicyRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required)

func NewDescribeBackupPolicyRequestWithoutParam

func NewDescribeBackupPolicyRequestWithoutParam() *DescribeBackupPolicyRequest

This constructor has better compatible ability when API parameters changed

func (DescribeBackupPolicyRequest) GetRegionId

func (r DescribeBackupPolicyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeBackupPolicyRequest) SetInstanceId

func (r *DescribeBackupPolicyRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*DescribeBackupPolicyRequest) SetRegionId

func (r *DescribeBackupPolicyRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeBackupPolicyResponse

type DescribeBackupPolicyResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeBackupPolicyResult `json:"result"`
}

type DescribeBackupPolicyResult

type DescribeBackupPolicyResult struct {
	PreferredBackupPeriod string `json:"preferredBackupPeriod"`
	PreferredBackupWindow string `json:"preferredBackupWindow"`
	BackupRetentionPeriod string `json:"backupRetentionPeriod"`
}

type DescribeBackupSynchronicitiesRequest

type DescribeBackupSynchronicitiesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码;默认为1,取值范围:[1,∞) (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[1, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* null (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeBackupSynchronicitiesRequest

func NewDescribeBackupSynchronicitiesRequest(
	regionId string,
) *DescribeBackupSynchronicitiesRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeBackupSynchronicitiesRequestWithAllParams

func NewDescribeBackupSynchronicitiesRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeBackupSynchronicitiesRequest

* param regionId: Region ID (Required) * param pageNumber: 页码;默认为1,取值范围:[1,∞) (Optional) * param pageSize: 分页大小;默认为10;取值范围[1, 100] (Optional) * param filters: null (Optional)

func NewDescribeBackupSynchronicitiesRequestWithoutParam

func NewDescribeBackupSynchronicitiesRequestWithoutParam() *DescribeBackupSynchronicitiesRequest

This constructor has better compatible ability when API parameters changed

func (DescribeBackupSynchronicitiesRequest) GetRegionId

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeBackupSynchronicitiesRequest) SetFilters

func (r *DescribeBackupSynchronicitiesRequest) SetFilters(filters []common.Filter)

param filters: null(Optional)

func (*DescribeBackupSynchronicitiesRequest) SetPageNumber

func (r *DescribeBackupSynchronicitiesRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1,取值范围:[1,∞)(Optional)

func (*DescribeBackupSynchronicitiesRequest) SetPageSize

func (r *DescribeBackupSynchronicitiesRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[1, 100](Optional)

func (*DescribeBackupSynchronicitiesRequest) SetRegionId

func (r *DescribeBackupSynchronicitiesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeBackupSynchronicitiesResponse

type DescribeBackupSynchronicitiesResponse struct {
	RequestID string                              `json:"requestId"`
	Error     core.ErrorResponse                  `json:"error"`
	Result    DescribeBackupSynchronicitiesResult `json:"result"`
}

type DescribeBackupSynchronicitiesResult

type DescribeBackupSynchronicitiesResult struct {
	BackupSynchronicities []mongodb.BackupSynchronicity `json:"backupSynchronicities"`
	TotalCount            int                           `json:"totalCount"`
	PageNumber            int                           `json:"pageNumber"`
}

type DescribeBackupsRequest

type DescribeBackupsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码;默认为1,取值范围:[1,∞) (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[1, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* instanceId - 实例ID, 精确匹配
	backupId - 备份ID, 精确匹配
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeBackupsRequest

func NewDescribeBackupsRequest(
	regionId string,
) *DescribeBackupsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeBackupsRequestWithAllParams

func NewDescribeBackupsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeBackupsRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码;默认为1,取值范围:[1,∞) (Optional)
  • param pageSize: 分页大小;默认为10;取值范围[1, 100] (Optional)
  • param filters: instanceId - 实例ID, 精确匹配

backupId - 备份ID, 精确匹配

(Optional)

func NewDescribeBackupsRequestWithoutParam

func NewDescribeBackupsRequestWithoutParam() *DescribeBackupsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeBackupsRequest) GetRegionId

func (r DescribeBackupsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeBackupsRequest) SetFilters

func (r *DescribeBackupsRequest) SetFilters(filters []common.Filter)
param filters: instanceId - 实例ID, 精确匹配

backupId - 备份ID, 精确匹配 (Optional)

func (*DescribeBackupsRequest) SetPageNumber

func (r *DescribeBackupsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1,取值范围:[1,∞)(Optional)

func (*DescribeBackupsRequest) SetPageSize

func (r *DescribeBackupsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[1, 100](Optional)

func (*DescribeBackupsRequest) SetRegionId

func (r *DescribeBackupsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeBackupsResponse

type DescribeBackupsResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeBackupsResult `json:"result"`
}

type DescribeBackupsResult

type DescribeBackupsResult struct {
	Backups    []mongodb.Backup `json:"backups"`
	TotalCount int              `json:"totalCount"`
	PageNumber int              `json:"pageNumber"`
}

type DescribeFlavorsRequest

type DescribeFlavorsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`
}

func NewDescribeFlavorsRequest

func NewDescribeFlavorsRequest(
	regionId string,
) *DescribeFlavorsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeFlavorsRequestWithAllParams

func NewDescribeFlavorsRequestWithAllParams(
	regionId string,
) *DescribeFlavorsRequest

* param regionId: Region ID (Required)

func NewDescribeFlavorsRequestWithoutParam

func NewDescribeFlavorsRequestWithoutParam() *DescribeFlavorsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeFlavorsRequest) GetRegionId

func (r DescribeFlavorsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeFlavorsRequest) SetRegionId

func (r *DescribeFlavorsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeFlavorsResponse

type DescribeFlavorsResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeFlavorsResult `json:"result"`
}

type DescribeFlavorsResult

type DescribeFlavorsResult struct {
	Flavors []mongodb.Flavor `json:"flavors"`
}

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码;默认为1,取值范围:[1,∞) (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为10;取值范围[1, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* instanceId - 实例ID, 精确匹配
	instanceName - 实例名称, 模糊匹配
	instanceStatus - mongodb状态,精确匹配,支持多个.RUNNING:运行, ERROR:错误 ,BUILDING:创建中, DELETING:删除中, RESTORING:恢复中, RESIZING:变配中
	chargeMode - 计费类型,精确匹配
	 (Optional) */
	Filters []common.Filter `json:"filters"`

	/* Tag筛选条件 (Optional) */
	TagFilters []common.TagFilter `json:"tagFilters"`

	/* createTime - 创建时间,asc(正序),desc(倒序)
	(Optional) */
	Sorts []common.Sort `json:"sorts"`
}

func NewDescribeInstancesRequest

func NewDescribeInstancesRequest(
	regionId string,
) *DescribeInstancesRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeInstancesRequestWithAllParams

func NewDescribeInstancesRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
	tagFilters []common.TagFilter,
	sorts []common.Sort,
) *DescribeInstancesRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码;默认为1,取值范围:[1,∞) (Optional)
  • param pageSize: 分页大小;默认为10;取值范围[1, 100] (Optional)
  • param filters: instanceId - 实例ID, 精确匹配

instanceName - 实例名称, 模糊匹配 instanceStatus - mongodb状态,精确匹配,支持多个.RUNNING:运行, ERROR:错误 ,BUILDING:创建中, DELETING:删除中, RESTORING:恢复中, RESIZING:变配中 chargeMode - 计费类型,精确匹配

(Optional)
* param tagFilters: Tag筛选条件 (Optional)
* param sorts: createTime - 创建时间,asc(正序),desc(倒序)
(Optional)

func NewDescribeInstancesRequestWithoutParam

func NewDescribeInstancesRequestWithoutParam() *DescribeInstancesRequest

This constructor has better compatible ability when API parameters changed

func (DescribeInstancesRequest) GetRegionId

func (r DescribeInstancesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeInstancesRequest) SetFilters

func (r *DescribeInstancesRequest) SetFilters(filters []common.Filter)
param filters: instanceId - 实例ID, 精确匹配

instanceName - 实例名称, 模糊匹配 instanceStatus - mongodb状态,精确匹配,支持多个.RUNNING:运行, ERROR:错误 ,BUILDING:创建中, DELETING:删除中, RESTORING:恢复中, RESIZING:变配中 chargeMode - 计费类型,精确匹配 (Optional)

func (*DescribeInstancesRequest) SetPageNumber

func (r *DescribeInstancesRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1,取值范围:[1,∞)(Optional)

func (*DescribeInstancesRequest) SetPageSize

func (r *DescribeInstancesRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为10;取值范围[1, 100](Optional)

func (*DescribeInstancesRequest) SetRegionId

func (r *DescribeInstancesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DescribeInstancesRequest) SetSorts

func (r *DescribeInstancesRequest) SetSorts(sorts []common.Sort)
param sorts: createTime - 创建时间,asc(正序),desc(倒序)

(Optional)

func (*DescribeInstancesRequest) SetTagFilters

func (r *DescribeInstancesRequest) SetTagFilters(tagFilters []common.TagFilter)

param tagFilters: Tag筛选条件(Optional)

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DescribeInstancesResult `json:"result"`
}

type DescribeInstancesResult

type DescribeInstancesResult struct {
	DbInstances []mongodb.DBInstance `json:"dbInstances"`
	TotalCount  int                  `json:"totalCount"`
	PageNumber  int                  `json:"pageNumber"`
}

type DescribeSecurityIpsRequest

type DescribeSecurityIpsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`
}

func NewDescribeSecurityIpsRequest

func NewDescribeSecurityIpsRequest(
	regionId string,
	instanceId string,
) *DescribeSecurityIpsRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeSecurityIpsRequestWithAllParams

func NewDescribeSecurityIpsRequestWithAllParams(
	regionId string,
	instanceId string,
) *DescribeSecurityIpsRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required)

func NewDescribeSecurityIpsRequestWithoutParam

func NewDescribeSecurityIpsRequestWithoutParam() *DescribeSecurityIpsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeSecurityIpsRequest) GetRegionId

func (r DescribeSecurityIpsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeSecurityIpsRequest) SetInstanceId

func (r *DescribeSecurityIpsRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*DescribeSecurityIpsRequest) SetRegionId

func (r *DescribeSecurityIpsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeSecurityIpsResponse

type DescribeSecurityIpsResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    DescribeSecurityIpsResult `json:"result"`
}

type DescribeSecurityIpsResult

type DescribeSecurityIpsResult struct {
	SecurityIps string `json:"securityIps"`
}

type ModifyBackupPolicyRequest

type ModifyBackupPolicyRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* 备份时间,格式:HH:mmZ- HH:mmZ,只允许间隔时间为1小时的整点.  */
	PreferredBackupTime string `json:"preferredBackupTime"`
}

func NewModifyBackupPolicyRequest

func NewModifyBackupPolicyRequest(
	regionId string,
	instanceId string,
	preferredBackupTime string,
) *ModifyBackupPolicyRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param preferredBackupTime: 备份时间,格式:HH:mmZ- HH:mmZ,只允许间隔时间为1小时的整点. (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyBackupPolicyRequestWithAllParams

func NewModifyBackupPolicyRequestWithAllParams(
	regionId string,
	instanceId string,
	preferredBackupTime string,
) *ModifyBackupPolicyRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param preferredBackupTime: 备份时间,格式:HH:mmZ- HH:mmZ,只允许间隔时间为1小时的整点. (Required)

func NewModifyBackupPolicyRequestWithoutParam

func NewModifyBackupPolicyRequestWithoutParam() *ModifyBackupPolicyRequest

This constructor has better compatible ability when API parameters changed

func (ModifyBackupPolicyRequest) GetRegionId

func (r ModifyBackupPolicyRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifyBackupPolicyRequest) SetInstanceId

func (r *ModifyBackupPolicyRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*ModifyBackupPolicyRequest) SetPreferredBackupTime

func (r *ModifyBackupPolicyRequest) SetPreferredBackupTime(preferredBackupTime string)

param preferredBackupTime: 备份时间,格式:HH:mmZ- HH:mmZ,只允许间隔时间为1小时的整点.(Required)

func (*ModifyBackupPolicyRequest) SetRegionId

func (r *ModifyBackupPolicyRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type ModifyBackupPolicyResponse

type ModifyBackupPolicyResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    ModifyBackupPolicyResult `json:"result"`
}

type ModifyBackupPolicyResult

type ModifyBackupPolicyResult struct {
	PreferredBackupPeriod string `json:"preferredBackupPeriod"`
	PreferredBackupWindow string `json:"preferredBackupWindow"`
	BackupRetentionPeriod string `json:"backupRetentionPeriod"`
}

type ModifyInstanceNameRequest

type ModifyInstanceNameRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* 新的实例名称,只支持数字、字母、英文下划线、中文,且不少于2字符不超过32字符。  */
	InstanceName string `json:"instanceName"`
}

func NewModifyInstanceNameRequest

func NewModifyInstanceNameRequest(
	regionId string,
	instanceId string,
	instanceName string,
) *ModifyInstanceNameRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param instanceName: 新的实例名称,只支持数字、字母、英文下划线、中文,且不少于2字符不超过32字符。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyInstanceNameRequestWithAllParams

func NewModifyInstanceNameRequestWithAllParams(
	regionId string,
	instanceId string,
	instanceName string,
) *ModifyInstanceNameRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param instanceName: 新的实例名称,只支持数字、字母、英文下划线、中文,且不少于2字符不超过32字符。 (Required)

func NewModifyInstanceNameRequestWithoutParam

func NewModifyInstanceNameRequestWithoutParam() *ModifyInstanceNameRequest

This constructor has better compatible ability when API parameters changed

func (ModifyInstanceNameRequest) GetRegionId

func (r ModifyInstanceNameRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifyInstanceNameRequest) SetInstanceId

func (r *ModifyInstanceNameRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*ModifyInstanceNameRequest) SetInstanceName

func (r *ModifyInstanceNameRequest) SetInstanceName(instanceName string)

param instanceName: 新的实例名称,只支持数字、字母、英文下划线、中文,且不少于2字符不超过32字符。(Required)

func (*ModifyInstanceNameRequest) SetRegionId

func (r *ModifyInstanceNameRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type ModifyInstanceNameResponse

type ModifyInstanceNameResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    ModifyInstanceNameResult `json:"result"`
}

type ModifyInstanceNameResult

type ModifyInstanceNameResult struct {
}

type ModifyInstanceSpecRequest

type ModifyInstanceSpecRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* 实例规格,包年包月不允许小于当前规格。  */
	InstanceClass string `json:"instanceClass"`

	/* 存储空间,包年包月不允许小于当前规格。  */
	InstanceStorageGB int `json:"instanceStorageGB"`
}

func NewModifyInstanceSpecRequest

func NewModifyInstanceSpecRequest(
	regionId string,
	instanceId string,
	instanceClass string,
	instanceStorageGB int,
) *ModifyInstanceSpecRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param instanceClass: 实例规格,包年包月不允许小于当前规格。 (Required) * param instanceStorageGB: 存储空间,包年包月不允许小于当前规格。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyInstanceSpecRequestWithAllParams

func NewModifyInstanceSpecRequestWithAllParams(
	regionId string,
	instanceId string,
	instanceClass string,
	instanceStorageGB int,
) *ModifyInstanceSpecRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param instanceClass: 实例规格,包年包月不允许小于当前规格。 (Required) * param instanceStorageGB: 存储空间,包年包月不允许小于当前规格。 (Required)

func NewModifyInstanceSpecRequestWithoutParam

func NewModifyInstanceSpecRequestWithoutParam() *ModifyInstanceSpecRequest

This constructor has better compatible ability when API parameters changed

func (ModifyInstanceSpecRequest) GetRegionId

func (r ModifyInstanceSpecRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifyInstanceSpecRequest) SetInstanceClass

func (r *ModifyInstanceSpecRequest) SetInstanceClass(instanceClass string)

param instanceClass: 实例规格,包年包月不允许小于当前规格。(Required)

func (*ModifyInstanceSpecRequest) SetInstanceId

func (r *ModifyInstanceSpecRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*ModifyInstanceSpecRequest) SetInstanceStorageGB

func (r *ModifyInstanceSpecRequest) SetInstanceStorageGB(instanceStorageGB int)

param instanceStorageGB: 存储空间,包年包月不允许小于当前规格。(Required)

func (*ModifyInstanceSpecRequest) SetRegionId

func (r *ModifyInstanceSpecRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type ModifyInstanceSpecResponse

type ModifyInstanceSpecResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    ModifyInstanceSpecResult `json:"result"`
}

type ModifyInstanceSpecResult

type ModifyInstanceSpecResult struct {
	InstanceId string `json:"instanceId"`
	OrderId    string `json:"orderId"`
}

type ModifyNodeSpecRequest

type ModifyNodeSpecRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* Node ID  */
	NodeId string `json:"nodeId"`

	/* Shard节点或Mongos节点的规格,不允许小于当前规格。  */
	NodeType string `json:"nodeType"`

	/* Shard存储空间,当前节点为Shard时可用,不允许小于当前规格。 (Optional) */
	NodeStorageGB *int `json:"nodeStorageGB"`
}

func NewModifyNodeSpecRequest

func NewModifyNodeSpecRequest(
	regionId string,
	instanceId string,
	nodeId string,
	nodeType string,
) *ModifyNodeSpecRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param nodeId: Node ID (Required) * param nodeType: Shard节点或Mongos节点的规格,不允许小于当前规格。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyNodeSpecRequestWithAllParams

func NewModifyNodeSpecRequestWithAllParams(
	regionId string,
	instanceId string,
	nodeId string,
	nodeType string,
	nodeStorageGB *int,
) *ModifyNodeSpecRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param nodeId: Node ID (Required) * param nodeType: Shard节点或Mongos节点的规格,不允许小于当前规格。 (Required) * param nodeStorageGB: Shard存储空间,当前节点为Shard时可用,不允许小于当前规格。 (Optional)

func NewModifyNodeSpecRequestWithoutParam

func NewModifyNodeSpecRequestWithoutParam() *ModifyNodeSpecRequest

This constructor has better compatible ability when API parameters changed

func (ModifyNodeSpecRequest) GetRegionId

func (r ModifyNodeSpecRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifyNodeSpecRequest) SetInstanceId

func (r *ModifyNodeSpecRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*ModifyNodeSpecRequest) SetNodeId

func (r *ModifyNodeSpecRequest) SetNodeId(nodeId string)

param nodeId: Node ID(Required)

func (*ModifyNodeSpecRequest) SetNodeStorageGB

func (r *ModifyNodeSpecRequest) SetNodeStorageGB(nodeStorageGB int)

param nodeStorageGB: Shard存储空间,当前节点为Shard时可用,不允许小于当前规格。(Optional)

func (*ModifyNodeSpecRequest) SetNodeType

func (r *ModifyNodeSpecRequest) SetNodeType(nodeType string)

param nodeType: Shard节点或Mongos节点的规格,不允许小于当前规格。(Required)

func (*ModifyNodeSpecRequest) SetRegionId

func (r *ModifyNodeSpecRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type ModifyNodeSpecResponse

type ModifyNodeSpecResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    ModifyNodeSpecResult `json:"result"`
}

type ModifyNodeSpecResult

type ModifyNodeSpecResult struct {
	NodeId string `json:"nodeId"`
}

type ModifySecurityIpsRequest

type ModifySecurityIpsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* 修改方式,Add 增加白名单,Delete 删除白名单.  */
	ModifyMode string `json:"modifyMode"`

	/* IP白名单分组下的IP列表,最多45个以逗号隔开,格式如下:0.0.0.0/0,10.23.12.24(IP),或者10.23.12.24/24(CIDR模式,无类域间路由,/24表示了地址中前缀的长度,范围[1,32])。  */
	SecurityIps string `json:"securityIps"`
}

func NewModifySecurityIpsRequest

func NewModifySecurityIpsRequest(
	regionId string,
	instanceId string,
	modifyMode string,
	securityIps string,
) *ModifySecurityIpsRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param modifyMode: 修改方式,Add 增加白名单,Delete 删除白名单. (Required) * param securityIps: IP白名单分组下的IP列表,最多45个以逗号隔开,格式如下:0.0.0.0/0,10.23.12.24(IP),或者10.23.12.24/24(CIDR模式,无类域间路由,/24表示了地址中前缀的长度,范围[1,32])。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifySecurityIpsRequestWithAllParams

func NewModifySecurityIpsRequestWithAllParams(
	regionId string,
	instanceId string,
	modifyMode string,
	securityIps string,
) *ModifySecurityIpsRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param modifyMode: 修改方式,Add 增加白名单,Delete 删除白名单. (Required) * param securityIps: IP白名单分组下的IP列表,最多45个以逗号隔开,格式如下:0.0.0.0/0,10.23.12.24(IP),或者10.23.12.24/24(CIDR模式,无类域间路由,/24表示了地址中前缀的长度,范围[1,32])。 (Required)

func NewModifySecurityIpsRequestWithoutParam

func NewModifySecurityIpsRequestWithoutParam() *ModifySecurityIpsRequest

This constructor has better compatible ability when API parameters changed

func (ModifySecurityIpsRequest) GetRegionId

func (r ModifySecurityIpsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifySecurityIpsRequest) SetInstanceId

func (r *ModifySecurityIpsRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*ModifySecurityIpsRequest) SetModifyMode

func (r *ModifySecurityIpsRequest) SetModifyMode(modifyMode string)

param modifyMode: 修改方式,Add 增加白名单,Delete 删除白名单.(Required)

func (*ModifySecurityIpsRequest) SetRegionId

func (r *ModifySecurityIpsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*ModifySecurityIpsRequest) SetSecurityIps

func (r *ModifySecurityIpsRequest) SetSecurityIps(securityIps string)

param securityIps: IP白名单分组下的IP列表,最多45个以逗号隔开,格式如下:0.0.0.0/0,10.23.12.24(IP),或者10.23.12.24/24(CIDR模式,无类域间路由,/24表示了地址中前缀的长度,范围[1,32])。(Required)

type ModifySecurityIpsResponse

type ModifySecurityIpsResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    ModifySecurityIpsResult `json:"result"`
}

type ModifySecurityIpsResult

type ModifySecurityIpsResult struct {
}

type ResetPasswordRequest

type ResetPasswordRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* 新密码,必须包含且只支持字母及数字,不少于8字符不超过16字符。  */
	AccountPassword string `json:"accountPassword"`
}

func NewResetPasswordRequest

func NewResetPasswordRequest(
	regionId string,
	instanceId string,
	accountPassword string,
) *ResetPasswordRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param accountPassword: 新密码,必须包含且只支持字母及数字,不少于8字符不超过16字符。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewResetPasswordRequestWithAllParams

func NewResetPasswordRequestWithAllParams(
	regionId string,
	instanceId string,
	accountPassword string,
) *ResetPasswordRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param accountPassword: 新密码,必须包含且只支持字母及数字,不少于8字符不超过16字符。 (Required)

func NewResetPasswordRequestWithoutParam

func NewResetPasswordRequestWithoutParam() *ResetPasswordRequest

This constructor has better compatible ability when API parameters changed

func (ResetPasswordRequest) GetRegionId

func (r ResetPasswordRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ResetPasswordRequest) SetAccountPassword

func (r *ResetPasswordRequest) SetAccountPassword(accountPassword string)

param accountPassword: 新密码,必须包含且只支持字母及数字,不少于8字符不超过16字符。(Required)

func (*ResetPasswordRequest) SetInstanceId

func (r *ResetPasswordRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*ResetPasswordRequest) SetRegionId

func (r *ResetPasswordRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type ResetPasswordResponse

type ResetPasswordResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    ResetPasswordResult `json:"result"`
}

type ResetPasswordResult

type ResetPasswordResult struct {
}

type RestartInstanceRequest

type RestartInstanceRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`
}

func NewRestartInstanceRequest

func NewRestartInstanceRequest(
	regionId string,
	instanceId string,
) *RestartInstanceRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewRestartInstanceRequestWithAllParams

func NewRestartInstanceRequestWithAllParams(
	regionId string,
	instanceId string,
) *RestartInstanceRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required)

func NewRestartInstanceRequestWithoutParam

func NewRestartInstanceRequestWithoutParam() *RestartInstanceRequest

This constructor has better compatible ability when API parameters changed

func (RestartInstanceRequest) GetRegionId

func (r RestartInstanceRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*RestartInstanceRequest) SetInstanceId

func (r *RestartInstanceRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*RestartInstanceRequest) SetRegionId

func (r *RestartInstanceRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type RestartInstanceResponse

type RestartInstanceResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    RestartInstanceResult `json:"result"`
}

type RestartInstanceResult

type RestartInstanceResult struct {
	InstanceId string `json:"instanceId"`
}

type RestartNodeRequest

type RestartNodeRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* Node ID  */
	NodeId string `json:"nodeId"`
}

func NewRestartNodeRequest

func NewRestartNodeRequest(
	regionId string,
	instanceId string,
	nodeId string,
) *RestartNodeRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param nodeId: Node ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewRestartNodeRequestWithAllParams

func NewRestartNodeRequestWithAllParams(
	regionId string,
	instanceId string,
	nodeId string,
) *RestartNodeRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param nodeId: Node ID (Required)

func NewRestartNodeRequestWithoutParam

func NewRestartNodeRequestWithoutParam() *RestartNodeRequest

This constructor has better compatible ability when API parameters changed

func (RestartNodeRequest) GetRegionId

func (r RestartNodeRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*RestartNodeRequest) SetInstanceId

func (r *RestartNodeRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*RestartNodeRequest) SetNodeId

func (r *RestartNodeRequest) SetNodeId(nodeId string)

param nodeId: Node ID(Required)

func (*RestartNodeRequest) SetRegionId

func (r *RestartNodeRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type RestartNodeResponse

type RestartNodeResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    RestartNodeResult  `json:"result"`
}

type RestartNodeResult

type RestartNodeResult struct {
	NodeId string `json:"nodeId"`
}

type RestoreInstanceRequest

type RestoreInstanceRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Instance ID  */
	InstanceId string `json:"instanceId"`

	/* 备份ID  */
	BackupId string `json:"backupId"`
}

func NewRestoreInstanceRequest

func NewRestoreInstanceRequest(
	regionId string,
	instanceId string,
	backupId string,
) *RestoreInstanceRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param backupId: 备份ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewRestoreInstanceRequestWithAllParams

func NewRestoreInstanceRequestWithAllParams(
	regionId string,
	instanceId string,
	backupId string,
) *RestoreInstanceRequest

* param regionId: Region ID (Required) * param instanceId: Instance ID (Required) * param backupId: 备份ID (Required)

func NewRestoreInstanceRequestWithoutParam

func NewRestoreInstanceRequestWithoutParam() *RestoreInstanceRequest

This constructor has better compatible ability when API parameters changed

func (RestoreInstanceRequest) GetRegionId

func (r RestoreInstanceRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*RestoreInstanceRequest) SetBackupId

func (r *RestoreInstanceRequest) SetBackupId(backupId string)

param backupId: 备份ID(Required)

func (*RestoreInstanceRequest) SetInstanceId

func (r *RestoreInstanceRequest) SetInstanceId(instanceId string)

param instanceId: Instance ID(Required)

func (*RestoreInstanceRequest) SetRegionId

func (r *RestoreInstanceRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type RestoreInstanceResponse

type RestoreInstanceResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    RestoreInstanceResult `json:"result"`
}

type RestoreInstanceResult

type RestoreInstanceResult struct {
}

Jump to

Keyboard shortcuts

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