Documentation ¶
Index ¶
- type CreateInstanceRequest
- type CreateInstanceResponse
- type CreateInstanceResult
- type DeleteInstanceRequest
- type DeleteInstanceResponse
- type DeleteInstanceResult
- type DescribeBastionRequest
- type DescribeBastionResponse
- type DescribeBastionResult
- type DescribeBastionsRequest
- func (r DescribeBastionsRequest) GetRegionId() string
- func (r *DescribeBastionsRequest) SetFilters(filters []common.Filter)
- func (r *DescribeBastionsRequest) SetPageNumber(pageNumber int)
- func (r *DescribeBastionsRequest) SetPageSize(pageSize int)
- func (r *DescribeBastionsRequest) SetRegionId(regionId string)
- func (r *DescribeBastionsRequest) SetSorts(sorts []common.Sort)
- type DescribeBastionsResponse
- type DescribeBastionsResult
- type DescribeInstanceRequest
- type DescribeInstanceResponse
- type DescribeInstanceResult
- type DescribePinsRequest
- func (r DescribePinsRequest) GetRegionId() string
- func (r *DescribePinsRequest) SetFilters(filters []common.Filter)
- func (r *DescribePinsRequest) SetPageNumber(pageNumber int)
- func (r *DescribePinsRequest) SetPageSize(pageSize int)
- func (r *DescribePinsRequest) SetRegionId(regionId string)
- func (r *DescribePinsRequest) SetSorts(sorts []common.Sort)
- type DescribePinsResponse
- type DescribePinsResult
- type DescribeSignRequest
- type DescribeSignResponse
- type DescribeSignResult
- type DescribeSourceIdRequest
- type DescribeSourceIdResponse
- type DescribeSourceIdResult
- type ModifyInstanceExpireOrStartRequest
- func NewModifyInstanceExpireOrStartRequest(regionId string, instanceId string, status int) *ModifyInstanceExpireOrStartRequest
- func NewModifyInstanceExpireOrStartRequestWithAllParams(regionId string, instanceId string, status int) *ModifyInstanceExpireOrStartRequest
- func NewModifyInstanceExpireOrStartRequestWithoutParam() *ModifyInstanceExpireOrStartRequest
- type ModifyInstanceExpireOrStartResponse
- type ModifyInstanceExpireOrStartResult
- type ModifyInstanceSpecRequest
- func NewModifyInstanceSpecRequest(regionId string, instanceId string, spec string) *ModifyInstanceSpecRequest
- func NewModifyInstanceSpecRequestWithAllParams(regionId string, instanceId string, spec string, autoPay *bool) *ModifyInstanceSpecRequest
- func NewModifyInstanceSpecRequestWithoutParam() *ModifyInstanceSpecRequest
- func (r ModifyInstanceSpecRequest) GetRegionId() string
- func (r *ModifyInstanceSpecRequest) SetAutoPay(autoPay bool)
- func (r *ModifyInstanceSpecRequest) SetInstanceId(instanceId string)
- func (r *ModifyInstanceSpecRequest) SetRegionId(regionId string)
- func (r *ModifyInstanceSpecRequest) SetSpec(spec string)
- type ModifyInstanceSpecResponse
- type ModifyInstanceSpecResult
- type SetInstancePublicAccessRequest
- func NewSetInstancePublicAccessRequest(regionId string, instanceId string, status bool) *SetInstancePublicAccessRequest
- func NewSetInstancePublicAccessRequestWithAllParams(regionId string, instanceId string, status bool) *SetInstancePublicAccessRequest
- func NewSetInstancePublicAccessRequestWithoutParam() *SetInstancePublicAccessRequest
- type SetInstancePublicAccessResponse
- type SetInstancePublicAccessResult
- type SetInstanceZeroEnableRequest
- func NewSetInstanceZeroEnableRequest(regionId string, instanceId string, status bool) *SetInstanceZeroEnableRequest
- func NewSetInstanceZeroEnableRequestWithAllParams(regionId string, instanceId string, status bool) *SetInstanceZeroEnableRequest
- func NewSetInstanceZeroEnableRequestWithoutParam() *SetInstanceZeroEnableRequest
- type SetInstanceZeroEnableResponse
- type SetInstanceZeroEnableResult
- type UpdateBastionDescRequest
- type UpdateBastionDescResponse
- type UpdateBastionDescResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInstanceRequest ¶
type CreateInstanceRequest struct { core.JDCloudRequest /* regionId */ RegionId string `json:"regionId"` /* 实例的相关配置 */ InstanceSpec *bastion.InstanceSpec `json:"instanceSpec"` /* 计费信息的相关配置 (Optional) */ ChargeSpec *charge.ChargeSpec `json:"chargeSpec"` }
func NewCreateInstanceRequest ¶
func NewCreateInstanceRequest( regionId string, instanceSpec *bastion.InstanceSpec, ) *CreateInstanceRequest
* param regionId: regionId (Required) * param instanceSpec: 实例的相关配置 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateInstanceRequestWithAllParams ¶
func NewCreateInstanceRequestWithAllParams( regionId string, instanceSpec *bastion.InstanceSpec, chargeSpec *charge.ChargeSpec, ) *CreateInstanceRequest
* param regionId: regionId (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 *bastion.InstanceSpec)
param instanceSpec: 实例的相关配置(Required)
func (*CreateInstanceRequest) SetRegionId ¶
func (r *CreateInstanceRequest) SetRegionId(regionId string)
param regionId: regionId(Required)
type CreateInstanceResponse ¶
type CreateInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateInstanceResult `json:"result"` }
type CreateInstanceResult ¶
type DeleteInstanceRequest ¶
type DeleteInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 堡垒机id */ InstanceId string `json:"instanceId"` }
func NewDeleteInstanceRequest ¶
func NewDeleteInstanceRequest( regionId string, instanceId string, ) *DeleteInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机id (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteInstanceRequestWithAllParams ¶
func NewDeleteInstanceRequestWithAllParams( regionId string, instanceId string, ) *DeleteInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机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: 堡垒机id(Required)
func (*DeleteInstanceRequest) SetRegionId ¶
func (r *DeleteInstanceRequest) SetRegionId(regionId string)
param regionId: 地域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 {
Result bool `json:"result"`
}
type DescribeBastionRequest ¶
type DescribeBastionRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 堡垒机id */ Bid string `json:"bid"` }
func NewDescribeBastionRequest ¶
func NewDescribeBastionRequest( regionId string, bid string, ) *DescribeBastionRequest
* param regionId: 地域ID (Required) * param bid: 堡垒机id (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeBastionRequestWithAllParams ¶
func NewDescribeBastionRequestWithAllParams( regionId string, bid string, ) *DescribeBastionRequest
* param regionId: 地域ID (Required) * param bid: 堡垒机id (Required)
func NewDescribeBastionRequestWithoutParam ¶
func NewDescribeBastionRequestWithoutParam() *DescribeBastionRequest
This constructor has better compatible ability when API parameters changed
func (DescribeBastionRequest) GetRegionId ¶
func (r DescribeBastionRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeBastionRequest) SetBid ¶
func (r *DescribeBastionRequest) SetBid(bid string)
param bid: 堡垒机id(Required)
func (*DescribeBastionRequest) SetRegionId ¶
func (r *DescribeBastionRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeBastionResponse ¶
type DescribeBastionResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeBastionResult `json:"result"` }
type DescribeBastionResult ¶
type DescribeBastionsRequest ¶
type DescribeBastionsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* bid - 应用ID,精确匹配 name - 应用名,精确匹配 (Optional) */ Filters []common.Filter `json:"filters"` /* createTime - 创建时间,asc(正序),desc(倒序) (Optional) */ Sorts []common.Sort `json:"sorts"` }
func NewDescribeBastionsRequest ¶
func NewDescribeBastionsRequest( regionId string, ) *DescribeBastionsRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeBastionsRequestWithAllParams ¶
func NewDescribeBastionsRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, sorts []common.Sort, ) *DescribeBastionsRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param filters: bid - 应用ID,精确匹配
name - 应用名,精确匹配
(Optional) * param sorts: createTime - 创建时间,asc(正序),desc(倒序) (Optional)
func NewDescribeBastionsRequestWithoutParam ¶
func NewDescribeBastionsRequestWithoutParam() *DescribeBastionsRequest
This constructor has better compatible ability when API parameters changed
func (DescribeBastionsRequest) GetRegionId ¶
func (r DescribeBastionsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeBastionsRequest) SetFilters ¶
func (r *DescribeBastionsRequest) SetFilters(filters []common.Filter)
param filters: bid - 应用ID,精确匹配
name - 应用名,精确匹配 (Optional)
func (*DescribeBastionsRequest) SetPageNumber ¶
func (r *DescribeBastionsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribeBastionsRequest) SetPageSize ¶
func (r *DescribeBastionsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribeBastionsRequest) SetRegionId ¶
func (r *DescribeBastionsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeBastionsRequest) SetSorts ¶
func (r *DescribeBastionsRequest) SetSorts(sorts []common.Sort)
param sorts: createTime - 创建时间,asc(正序),desc(倒序)
(Optional)
type DescribeBastionsResponse ¶
type DescribeBastionsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeBastionsResult `json:"result"` }
type DescribeBastionsResult ¶
type DescribeInstanceRequest ¶
type DescribeInstanceRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 堡垒机id */ InstanceId string `json:"instanceId"` }
func NewDescribeInstanceRequest ¶
func NewDescribeInstanceRequest( regionId string, instanceId string, ) *DescribeInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机id (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeInstanceRequestWithAllParams ¶
func NewDescribeInstanceRequestWithAllParams( regionId string, instanceId string, ) *DescribeInstanceRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机id (Required)
func NewDescribeInstanceRequestWithoutParam ¶
func NewDescribeInstanceRequestWithoutParam() *DescribeInstanceRequest
This constructor has better compatible ability when API parameters changed
func (DescribeInstanceRequest) GetRegionId ¶
func (r DescribeInstanceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeInstanceRequest) SetInstanceId ¶
func (r *DescribeInstanceRequest) SetInstanceId(instanceId string)
param instanceId: 堡垒机id(Required)
func (*DescribeInstanceRequest) SetRegionId ¶
func (r *DescribeInstanceRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeInstanceResponse ¶
type DescribeInstanceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeInstanceResult `json:"result"` }
type DescribeInstanceResult ¶
type DescribePinsRequest ¶
type DescribePinsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 页码;默认为1 (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小;默认为20;取值范围[10, 100] (Optional) */ PageSize *int `json:"pageSize"` /* valid - 有效用户 1:0 upgrade - 升配标志 1:0 (Optional) */ Filters []common.Filter `json:"filters"` /* createTime - 创建时间,asc(正序),desc(倒序) (Optional) */ Sorts []common.Sort `json:"sorts"` }
func NewDescribePinsRequest ¶
func NewDescribePinsRequest( regionId string, ) *DescribePinsRequest
* param regionId: 地域ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribePinsRequestWithAllParams ¶
func NewDescribePinsRequestWithAllParams( regionId string, pageNumber *int, pageSize *int, filters []common.Filter, sorts []common.Sort, ) *DescribePinsRequest
- param regionId: 地域ID (Required)
- param pageNumber: 页码;默认为1 (Optional)
- param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
- param filters: valid - 有效用户 1:0
upgrade - 升配标志 1:0
(Optional) * param sorts: createTime - 创建时间,asc(正序),desc(倒序) (Optional)
func NewDescribePinsRequestWithoutParam ¶
func NewDescribePinsRequestWithoutParam() *DescribePinsRequest
This constructor has better compatible ability when API parameters changed
func (DescribePinsRequest) GetRegionId ¶
func (r DescribePinsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribePinsRequest) SetFilters ¶
func (r *DescribePinsRequest) SetFilters(filters []common.Filter)
param filters: valid - 有效用户 1:0
upgrade - 升配标志 1:0 (Optional)
func (*DescribePinsRequest) SetPageNumber ¶
func (r *DescribePinsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码;默认为1(Optional)
func (*DescribePinsRequest) SetPageSize ¶
func (r *DescribePinsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)
func (*DescribePinsRequest) SetRegionId ¶
func (r *DescribePinsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribePinsRequest) SetSorts ¶
func (r *DescribePinsRequest) SetSorts(sorts []common.Sort)
param sorts: createTime - 创建时间,asc(正序),desc(倒序)
(Optional)
type DescribePinsResponse ¶
type DescribePinsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribePinsResult `json:"result"` }
type DescribePinsResult ¶
type DescribeSignRequest ¶
type DescribeSignRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 用户pin (Optional) */ Pin *string `json:"pin"` /* 堡垒机实例ID */ BastionId string `json:"bastionId"` }
func NewDescribeSignRequest ¶
func NewDescribeSignRequest( regionId string, bastionId string, ) *DescribeSignRequest
* param regionId: 地域ID (Required) * param bastionId: 堡垒机实例ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeSignRequestWithAllParams ¶
func NewDescribeSignRequestWithAllParams( regionId string, pin *string, bastionId string, ) *DescribeSignRequest
* param regionId: 地域ID (Required) * param pin: 用户pin (Optional) * param bastionId: 堡垒机实例ID (Required)
func NewDescribeSignRequestWithoutParam ¶
func NewDescribeSignRequestWithoutParam() *DescribeSignRequest
This constructor has better compatible ability when API parameters changed
func (DescribeSignRequest) GetRegionId ¶
func (r DescribeSignRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeSignRequest) SetBastionId ¶
func (r *DescribeSignRequest) SetBastionId(bastionId string)
param bastionId: 堡垒机实例ID(Required)
func (*DescribeSignRequest) SetPin ¶
func (r *DescribeSignRequest) SetPin(pin string)
param pin: 用户pin(Optional)
func (*DescribeSignRequest) SetRegionId ¶
func (r *DescribeSignRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeSignResponse ¶
type DescribeSignResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeSignResult `json:"result"` }
type DescribeSignResult ¶
type DescribeSourceIdRequest ¶
type DescribeSourceIdRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* sourceid */ SourceId string `json:"sourceId"` }
func NewDescribeSourceIdRequest ¶
func NewDescribeSourceIdRequest( regionId string, sourceId string, ) *DescribeSourceIdRequest
* param regionId: 地域ID (Required) * param sourceId: sourceid (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeSourceIdRequestWithAllParams ¶
func NewDescribeSourceIdRequestWithAllParams( regionId string, sourceId string, ) *DescribeSourceIdRequest
* param regionId: 地域ID (Required) * param sourceId: sourceid (Required)
func NewDescribeSourceIdRequestWithoutParam ¶
func NewDescribeSourceIdRequestWithoutParam() *DescribeSourceIdRequest
This constructor has better compatible ability when API parameters changed
func (DescribeSourceIdRequest) GetRegionId ¶
func (r DescribeSourceIdRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeSourceIdRequest) SetRegionId ¶
func (r *DescribeSourceIdRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeSourceIdRequest) SetSourceId ¶
func (r *DescribeSourceIdRequest) SetSourceId(sourceId string)
param sourceId: sourceid(Required)
type DescribeSourceIdResponse ¶
type DescribeSourceIdResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeSourceIdResult `json:"result"` }
type DescribeSourceIdResult ¶
type ModifyInstanceExpireOrStartRequest ¶
type ModifyInstanceExpireOrStartRequest struct { core.JDCloudRequest /* regionId */ RegionId string `json:"regionId"` /* 实例ID */ InstanceId string `json:"instanceId"` /* 实例到期或者恢复实例服务 1:恢复实例服务 13:设置服务到期状态 */ Status int `json:"status"` }
func NewModifyInstanceExpireOrStartRequest ¶
func NewModifyInstanceExpireOrStartRequest( regionId string, instanceId string, status int, ) *ModifyInstanceExpireOrStartRequest
* param regionId: regionId (Required) * param instanceId: 实例ID (Required) * param status: 实例到期或者恢复实例服务 1:恢复实例服务 13:设置服务到期状态 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyInstanceExpireOrStartRequestWithAllParams ¶
func NewModifyInstanceExpireOrStartRequestWithAllParams( regionId string, instanceId string, status int, ) *ModifyInstanceExpireOrStartRequest
* param regionId: regionId (Required) * param instanceId: 实例ID (Required) * param status: 实例到期或者恢复实例服务 1:恢复实例服务 13:设置服务到期状态 (Required)
func NewModifyInstanceExpireOrStartRequestWithoutParam ¶
func NewModifyInstanceExpireOrStartRequestWithoutParam() *ModifyInstanceExpireOrStartRequest
This constructor has better compatible ability when API parameters changed
func (ModifyInstanceExpireOrStartRequest) GetRegionId ¶
func (r ModifyInstanceExpireOrStartRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ModifyInstanceExpireOrStartRequest) SetInstanceId ¶
func (r *ModifyInstanceExpireOrStartRequest) SetInstanceId(instanceId string)
param instanceId: 实例ID(Required)
func (*ModifyInstanceExpireOrStartRequest) SetRegionId ¶
func (r *ModifyInstanceExpireOrStartRequest) SetRegionId(regionId string)
param regionId: regionId(Required)
func (*ModifyInstanceExpireOrStartRequest) SetStatus ¶
func (r *ModifyInstanceExpireOrStartRequest) SetStatus(status int)
param status: 实例到期或者恢复实例服务 1:恢复实例服务 13:设置服务到期状态(Required)
type ModifyInstanceExpireOrStartResponse ¶
type ModifyInstanceExpireOrStartResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyInstanceExpireOrStartResult `json:"result"` }
type ModifyInstanceExpireOrStartResult ¶
type ModifyInstanceExpireOrStartResult struct {
Result bool `json:"result"`
}
type ModifyInstanceSpecRequest ¶
type ModifyInstanceSpecRequest struct { core.JDCloudRequest /* regionId */ RegionId string `json:"regionId"` /* 实例ID */ InstanceId string `json:"instanceId"` /* 升配的规格 */ Spec string `json:"spec"` /* 自动付款 (Optional) */ AutoPay *bool `json:"autoPay"` }
func NewModifyInstanceSpecRequest ¶
func NewModifyInstanceSpecRequest( regionId string, instanceId string, spec string, ) *ModifyInstanceSpecRequest
* param regionId: regionId (Required) * param instanceId: 实例ID (Required) * param spec: 升配的规格 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewModifyInstanceSpecRequestWithAllParams ¶
func NewModifyInstanceSpecRequestWithAllParams( regionId string, instanceId string, spec string, autoPay *bool, ) *ModifyInstanceSpecRequest
* param regionId: regionId (Required) * param instanceId: 实例ID (Required) * param spec: 升配的规格 (Required) * param autoPay: 自动付款 (Optional)
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) SetAutoPay ¶
func (r *ModifyInstanceSpecRequest) SetAutoPay(autoPay bool)
param autoPay: 自动付款(Optional)
func (*ModifyInstanceSpecRequest) SetInstanceId ¶
func (r *ModifyInstanceSpecRequest) SetInstanceId(instanceId string)
param instanceId: 实例ID(Required)
func (*ModifyInstanceSpecRequest) SetRegionId ¶
func (r *ModifyInstanceSpecRequest) SetRegionId(regionId string)
param regionId: regionId(Required)
func (*ModifyInstanceSpecRequest) SetSpec ¶
func (r *ModifyInstanceSpecRequest) SetSpec(spec string)
param spec: 升配的规格(Required)
type ModifyInstanceSpecResponse ¶
type ModifyInstanceSpecResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ModifyInstanceSpecResult `json:"result"` }
type ModifyInstanceSpecResult ¶
type ModifyInstanceSpecResult struct {
BuyId string `json:"buyId"`
}
type SetInstancePublicAccessRequest ¶
type SetInstancePublicAccessRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 堡垒机id */ InstanceId string `json:"instanceId"` /* */ Status bool `json:"status"` }
func NewSetInstancePublicAccessRequest ¶
func NewSetInstancePublicAccessRequest( regionId string, instanceId string, status bool, ) *SetInstancePublicAccessRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机id (Required) * param status: (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewSetInstancePublicAccessRequestWithAllParams ¶
func NewSetInstancePublicAccessRequestWithAllParams( regionId string, instanceId string, status bool, ) *SetInstancePublicAccessRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机id (Required) * param status: (Required)
func NewSetInstancePublicAccessRequestWithoutParam ¶
func NewSetInstancePublicAccessRequestWithoutParam() *SetInstancePublicAccessRequest
This constructor has better compatible ability when API parameters changed
func (SetInstancePublicAccessRequest) GetRegionId ¶
func (r SetInstancePublicAccessRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*SetInstancePublicAccessRequest) SetInstanceId ¶
func (r *SetInstancePublicAccessRequest) SetInstanceId(instanceId string)
param instanceId: 堡垒机id(Required)
func (*SetInstancePublicAccessRequest) SetRegionId ¶
func (r *SetInstancePublicAccessRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*SetInstancePublicAccessRequest) SetStatus ¶
func (r *SetInstancePublicAccessRequest) SetStatus(status bool)
param status: (Required)
type SetInstancePublicAccessResponse ¶
type SetInstancePublicAccessResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result SetInstancePublicAccessResult `json:"result"` }
type SetInstancePublicAccessResult ¶
type SetInstancePublicAccessResult struct {
Result bool `json:"result"`
}
type SetInstanceZeroEnableRequest ¶
type SetInstanceZeroEnableRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 堡垒机id */ InstanceId string `json:"instanceId"` /* */ Status bool `json:"status"` }
func NewSetInstanceZeroEnableRequest ¶
func NewSetInstanceZeroEnableRequest( regionId string, instanceId string, status bool, ) *SetInstanceZeroEnableRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机id (Required) * param status: (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewSetInstanceZeroEnableRequestWithAllParams ¶
func NewSetInstanceZeroEnableRequestWithAllParams( regionId string, instanceId string, status bool, ) *SetInstanceZeroEnableRequest
* param regionId: 地域ID (Required) * param instanceId: 堡垒机id (Required) * param status: (Required)
func NewSetInstanceZeroEnableRequestWithoutParam ¶
func NewSetInstanceZeroEnableRequestWithoutParam() *SetInstanceZeroEnableRequest
This constructor has better compatible ability when API parameters changed
func (SetInstanceZeroEnableRequest) GetRegionId ¶
func (r SetInstanceZeroEnableRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*SetInstanceZeroEnableRequest) SetInstanceId ¶
func (r *SetInstanceZeroEnableRequest) SetInstanceId(instanceId string)
param instanceId: 堡垒机id(Required)
func (*SetInstanceZeroEnableRequest) SetRegionId ¶
func (r *SetInstanceZeroEnableRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*SetInstanceZeroEnableRequest) SetStatus ¶
func (r *SetInstanceZeroEnableRequest) SetStatus(status bool)
param status: (Required)
type SetInstanceZeroEnableResponse ¶
type SetInstanceZeroEnableResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result SetInstanceZeroEnableResult `json:"result"` }
type SetInstanceZeroEnableResult ¶
type SetInstanceZeroEnableResult struct {
Result bool `json:"result"`
}
type UpdateBastionDescRequest ¶
type UpdateBastionDescRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* 堡垒机id */ Bid string `json:"bid"` /* 描述信息 */ Desc string `json:"desc"` }
func NewUpdateBastionDescRequest ¶
func NewUpdateBastionDescRequest( regionId string, bid string, desc string, ) *UpdateBastionDescRequest
* param regionId: 地域ID (Required) * param bid: 堡垒机id (Required) * param desc: 描述信息 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateBastionDescRequestWithAllParams ¶
func NewUpdateBastionDescRequestWithAllParams( regionId string, bid string, desc string, ) *UpdateBastionDescRequest
* param regionId: 地域ID (Required) * param bid: 堡垒机id (Required) * param desc: 描述信息 (Required)
func NewUpdateBastionDescRequestWithoutParam ¶
func NewUpdateBastionDescRequestWithoutParam() *UpdateBastionDescRequest
This constructor has better compatible ability when API parameters changed
func (UpdateBastionDescRequest) GetRegionId ¶
func (r UpdateBastionDescRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateBastionDescRequest) SetBid ¶
func (r *UpdateBastionDescRequest) SetBid(bid string)
param bid: 堡垒机id(Required)
func (*UpdateBastionDescRequest) SetDesc ¶
func (r *UpdateBastionDescRequest) SetDesc(desc string)
param desc: 描述信息(Required)
func (*UpdateBastionDescRequest) SetRegionId ¶
func (r *UpdateBastionDescRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type UpdateBastionDescResponse ¶
type UpdateBastionDescResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateBastionDescResult `json:"result"` }
type UpdateBastionDescResult ¶
type UpdateBastionDescResult struct {
Result bool `json:"result"`
}