v20191112

package
v0.0.0-...-0832e34 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-11-12"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateGameServerSession

func (c *Client) CreateGameServerSession(request *CreateGameServerSessionRequest) (response *CreateGameServerSessionResponse, err error)

本接口(CreateGameServerSession)用于创建游戏服务会话

func (*Client) DeleteScalingPolicy

func (c *Client) DeleteScalingPolicy(request *DeleteScalingPolicyRequest) (response *DeleteScalingPolicyResponse, err error)

用于删除扩缩容配置

func (*Client) DescribeFleetCapacity

func (c *Client) DescribeFleetCapacity(request *DescribeFleetCapacityRequest) (response *DescribeFleetCapacityResponse, err error)

用于查询服务部署容量配置

func (*Client) DescribeGameServerSessionDetails

func (c *Client) DescribeGameServerSessionDetails(request *DescribeGameServerSessionDetailsRequest) (response *DescribeGameServerSessionDetailsResponse, err error)

本接口(DescribeGameServerSessionDetails)用于查询游戏服务器会话详情列表

func (*Client) DescribeGameServerSessionPlacement

func (c *Client) DescribeGameServerSessionPlacement(request *DescribeGameServerSessionPlacementRequest) (response *DescribeGameServerSessionPlacementResponse, err error)

本接口(DescribeGameServerSessionPlacement)用于查询游戏服务器会话的放置

func (*Client) DescribeGameServerSessions

func (c *Client) DescribeGameServerSessions(request *DescribeGameServerSessionsRequest) (response *DescribeGameServerSessionsResponse, err error)

本接口(DescribeGameServerSessions)用于查询游戏服务器会话列表

func (*Client) DescribePlayerSessions

func (c *Client) DescribePlayerSessions(request *DescribePlayerSessionsRequest) (response *DescribePlayerSessionsResponse, err error)

本接口(DescribePlayerSessions)用于获取玩家会话列表

func (*Client) DescribeScalingPolicies

func (c *Client) DescribeScalingPolicies(request *DescribeScalingPoliciesRequest) (response *DescribeScalingPoliciesResponse, err error)

用于查询服务部署的动态扩缩容配置

func (*Client) GetGameServerSessionLogUrl

func (c *Client) GetGameServerSessionLogUrl(request *GetGameServerSessionLogUrlRequest) (response *GetGameServerSessionLogUrlResponse, err error)

本接口(GetGameServerSessionLogUrl)用于获取游戏服务器会话的日志URL

func (*Client) JoinGameServerSession

func (c *Client) JoinGameServerSession(request *JoinGameServerSessionRequest) (response *JoinGameServerSessionResponse, err error)

本接口(JoinGameServerSession)用于加入游戏服务器会话

func (*Client) PutScalingPolicy

func (c *Client) PutScalingPolicy(request *PutScalingPolicyRequest) (response *PutScalingPolicyResponse, err error)

用于设置动态扩缩容配置

func (*Client) StartGameServerSessionPlacement

func (c *Client) StartGameServerSessionPlacement(request *StartGameServerSessionPlacementRequest) (response *StartGameServerSessionPlacementResponse, err error)

本接口(StartGameServerSessionPlacement)用于开始放置游戏服务器会话

func (*Client) StopGameServerSessionPlacement

func (c *Client) StopGameServerSessionPlacement(request *StopGameServerSessionPlacementRequest) (response *StopGameServerSessionPlacementResponse, err error)

本接口(StopGameServerSessionPlacement)用于停止放置游戏服务器会话

func (*Client) UpdateFleetCapacity

func (c *Client) UpdateFleetCapacity(request *UpdateFleetCapacityRequest) (response *UpdateFleetCapacityResponse, err error)

用于更新服务部署容量配置

func (*Client) UpdateGameServerSession

func (c *Client) UpdateGameServerSession(request *UpdateGameServerSessionRequest) (response *UpdateGameServerSessionResponse, err error)

本接口(UpdateGameServerSession)用于更新游戏服务器会话

type CreateGameServerSessionRequest

type CreateGameServerSessionRequest struct {
	*tchttp.BaseRequest

	// 最大玩家数量
	MaximumPlayerSessionCount *uint64 `json:"MaximumPlayerSessionCount,omitempty" name:"MaximumPlayerSessionCount"`

	// 别名ID
	AliasId *string `json:"AliasId,omitempty" name:"AliasId"`

	// 创建者ID
	CreatorId *string `json:"CreatorId,omitempty" name:"CreatorId"`

	// 舰队ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 游戏属性
	GameProperties []*GameProperty `json:"GameProperties,omitempty" name:"GameProperties" list`

	// 游戏服务器会话属性详情
	GameServerSessionData *string `json:"GameServerSessionData,omitempty" name:"GameServerSessionData"`

	// 游戏服务器会话自定义ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 幂等token
	IdempotencyToken *string `json:"IdempotencyToken,omitempty" name:"IdempotencyToken"`

	// 游戏服务器会话名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewCreateGameServerSessionRequest

func NewCreateGameServerSessionRequest() (request *CreateGameServerSessionRequest)

func (*CreateGameServerSessionRequest) FromJsonString

func (r *CreateGameServerSessionRequest) FromJsonString(s string) error

func (*CreateGameServerSessionRequest) ToJsonString

func (r *CreateGameServerSessionRequest) ToJsonString() string

type CreateGameServerSessionResponse

type CreateGameServerSessionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 游戏服务器会话
		// 注意:此字段可能返回 null,表示取不到有效值。
		GameServerSession *GameServerSession `json:"GameServerSession,omitempty" name:"GameServerSession"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateGameServerSessionResponse

func NewCreateGameServerSessionResponse() (response *CreateGameServerSessionResponse)

func (*CreateGameServerSessionResponse) FromJsonString

func (r *CreateGameServerSessionResponse) FromJsonString(s string) error

func (*CreateGameServerSessionResponse) ToJsonString

func (r *CreateGameServerSessionResponse) ToJsonString() string

type DeleteScalingPolicyRequest

type DeleteScalingPolicyRequest struct {
	*tchttp.BaseRequest

	// 服务部署ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewDeleteScalingPolicyRequest

func NewDeleteScalingPolicyRequest() (request *DeleteScalingPolicyRequest)

func (*DeleteScalingPolicyRequest) FromJsonString

func (r *DeleteScalingPolicyRequest) FromJsonString(s string) error

func (*DeleteScalingPolicyRequest) ToJsonString

func (r *DeleteScalingPolicyRequest) ToJsonString() string

type DeleteScalingPolicyResponse

type DeleteScalingPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteScalingPolicyResponse

func NewDeleteScalingPolicyResponse() (response *DeleteScalingPolicyResponse)

func (*DeleteScalingPolicyResponse) FromJsonString

func (r *DeleteScalingPolicyResponse) FromJsonString(s string) error

func (*DeleteScalingPolicyResponse) ToJsonString

func (r *DeleteScalingPolicyResponse) ToJsonString() string

type DescribeFleetCapacityRequest

type DescribeFleetCapacityRequest struct {
	*tchttp.BaseRequest

	// 服务部署 Id列表
	FleetIds []*string `json:"FleetIds,omitempty" name:"FleetIds" list`

	// 结果返回最大数量
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 返回结果偏移
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeFleetCapacityRequest

func NewDescribeFleetCapacityRequest() (request *DescribeFleetCapacityRequest)

func (*DescribeFleetCapacityRequest) FromJsonString

func (r *DescribeFleetCapacityRequest) FromJsonString(s string) error

func (*DescribeFleetCapacityRequest) ToJsonString

func (r *DescribeFleetCapacityRequest) ToJsonString() string

type DescribeFleetCapacityResponse

type DescribeFleetCapacityResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 服务部署容量配置
		// 注意:此字段可能返回 null,表示取不到有效值。
		FleetCapacity []*FleetCapacity `json:"FleetCapacity,omitempty" name:"FleetCapacity" list`

		// 结果返回最大数量
		// 注意:此字段可能返回 null,表示取不到有效值。
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeFleetCapacityResponse

func NewDescribeFleetCapacityResponse() (response *DescribeFleetCapacityResponse)

func (*DescribeFleetCapacityResponse) FromJsonString

func (r *DescribeFleetCapacityResponse) FromJsonString(s string) error

func (*DescribeFleetCapacityResponse) ToJsonString

func (r *DescribeFleetCapacityResponse) ToJsonString() string

type DescribeGameServerSessionDetailsRequest

type DescribeGameServerSessionDetailsRequest struct {
	*tchttp.BaseRequest

	// 别名ID
	AliasId *string `json:"AliasId,omitempty" name:"AliasId"`

	// 舰队ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 单次查询记录数上限
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 页偏移,用于查询下一页
	NextToken *string `json:"NextToken,omitempty" name:"NextToken"`

	// 游戏服务器会话状态(ACTIVE,ACTIVATING,TERMINATED,TERMINATING,ERROR)
	StatusFilter *string `json:"StatusFilter,omitempty" name:"StatusFilter"`
}

func NewDescribeGameServerSessionDetailsRequest

func NewDescribeGameServerSessionDetailsRequest() (request *DescribeGameServerSessionDetailsRequest)

func (*DescribeGameServerSessionDetailsRequest) FromJsonString

func (*DescribeGameServerSessionDetailsRequest) ToJsonString

type DescribeGameServerSessionDetailsResponse

type DescribeGameServerSessionDetailsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 游戏服务器会话详情列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		GameServerSessionDetails []*GameServerSessionDetail `json:"GameServerSessionDetails,omitempty" name:"GameServerSessionDetails" list`

		// 页偏移,用于查询下一页
		// 注意:此字段可能返回 null,表示取不到有效值。
		NextToken *string `json:"NextToken,omitempty" name:"NextToken"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeGameServerSessionDetailsResponse

func NewDescribeGameServerSessionDetailsResponse() (response *DescribeGameServerSessionDetailsResponse)

func (*DescribeGameServerSessionDetailsResponse) FromJsonString

func (*DescribeGameServerSessionDetailsResponse) ToJsonString

type DescribeGameServerSessionPlacementRequest

type DescribeGameServerSessionPlacementRequest struct {
	*tchttp.BaseRequest

	// 游戏服务器会话放置的唯一标识符
	PlacementId *string `json:"PlacementId,omitempty" name:"PlacementId"`
}

func NewDescribeGameServerSessionPlacementRequest

func NewDescribeGameServerSessionPlacementRequest() (request *DescribeGameServerSessionPlacementRequest)

func (*DescribeGameServerSessionPlacementRequest) FromJsonString

func (*DescribeGameServerSessionPlacementRequest) ToJsonString

type DescribeGameServerSessionPlacementResponse

type DescribeGameServerSessionPlacementResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 游戏服务器会话放置
		GameServerSessionPlacement *GameServerSessionPlacement `json:"GameServerSessionPlacement,omitempty" name:"GameServerSessionPlacement"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeGameServerSessionPlacementResponse

func NewDescribeGameServerSessionPlacementResponse() (response *DescribeGameServerSessionPlacementResponse)

func (*DescribeGameServerSessionPlacementResponse) FromJsonString

func (*DescribeGameServerSessionPlacementResponse) ToJsonString

type DescribeGameServerSessionsRequest

type DescribeGameServerSessionsRequest struct {
	*tchttp.BaseRequest

	// 别名ID
	AliasId *string `json:"AliasId,omitempty" name:"AliasId"`

	// 舰队ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 单次查询记录数上限
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 页偏移,用于查询下一页
	NextToken *string `json:"NextToken,omitempty" name:"NextToken"`

	// 游戏服务器会话状态
	StatusFilter *string `json:"StatusFilter,omitempty" name:"StatusFilter"`
}

func NewDescribeGameServerSessionsRequest

func NewDescribeGameServerSessionsRequest() (request *DescribeGameServerSessionsRequest)

func (*DescribeGameServerSessionsRequest) FromJsonString

func (r *DescribeGameServerSessionsRequest) FromJsonString(s string) error

func (*DescribeGameServerSessionsRequest) ToJsonString

func (r *DescribeGameServerSessionsRequest) ToJsonString() string

type DescribeGameServerSessionsResponse

type DescribeGameServerSessionsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 游戏服务器会话列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		GameServerSessions []*GameServerSession `json:"GameServerSessions,omitempty" name:"GameServerSessions" list`

		// 页便宜,用于查询下一页
		// 注意:此字段可能返回 null,表示取不到有效值。
		NextToken *string `json:"NextToken,omitempty" name:"NextToken"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeGameServerSessionsResponse

func NewDescribeGameServerSessionsResponse() (response *DescribeGameServerSessionsResponse)

func (*DescribeGameServerSessionsResponse) FromJsonString

func (r *DescribeGameServerSessionsResponse) FromJsonString(s string) error

func (*DescribeGameServerSessionsResponse) ToJsonString

func (r *DescribeGameServerSessionsResponse) ToJsonString() string

type DescribePlayerSessionsRequest

type DescribePlayerSessionsRequest struct {
	*tchttp.BaseRequest

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 单次查询记录数上限
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 页偏移,用于查询下一页
	NextToken *string `json:"NextToken,omitempty" name:"NextToken"`

	// 玩家ID
	PlayerId *string `json:"PlayerId,omitempty" name:"PlayerId"`

	// 玩家会话ID
	PlayerSessionId *string `json:"PlayerSessionId,omitempty" name:"PlayerSessionId"`

	// 玩家会话状态(RESERVED,ACTIVE,COMPLETED,TIMEDOUT)
	PlayerSessionStatusFilter *string `json:"PlayerSessionStatusFilter,omitempty" name:"PlayerSessionStatusFilter"`
}

func NewDescribePlayerSessionsRequest

func NewDescribePlayerSessionsRequest() (request *DescribePlayerSessionsRequest)

func (*DescribePlayerSessionsRequest) FromJsonString

func (r *DescribePlayerSessionsRequest) FromJsonString(s string) error

func (*DescribePlayerSessionsRequest) ToJsonString

func (r *DescribePlayerSessionsRequest) ToJsonString() string

type DescribePlayerSessionsResponse

type DescribePlayerSessionsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 玩家会话列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		PlayerSessions []*PlayerSession `json:"PlayerSessions,omitempty" name:"PlayerSessions" list`

		// 页偏移
		// 注意:此字段可能返回 null,表示取不到有效值。
		NextToken *string `json:"NextToken,omitempty" name:"NextToken"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribePlayerSessionsResponse

func NewDescribePlayerSessionsResponse() (response *DescribePlayerSessionsResponse)

func (*DescribePlayerSessionsResponse) FromJsonString

func (r *DescribePlayerSessionsResponse) FromJsonString(s string) error

func (*DescribePlayerSessionsResponse) ToJsonString

func (r *DescribePlayerSessionsResponse) ToJsonString() string

type DescribeScalingPoliciesRequest

type DescribeScalingPoliciesRequest struct {
	*tchttp.BaseRequest

	// 服务部署ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 状态过滤条件
	StatusFilter *string `json:"StatusFilter,omitempty" name:"StatusFilter"`

	// 结果返回最大数量
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 返回结果偏移
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeScalingPoliciesRequest

func NewDescribeScalingPoliciesRequest() (request *DescribeScalingPoliciesRequest)

func (*DescribeScalingPoliciesRequest) FromJsonString

func (r *DescribeScalingPoliciesRequest) FromJsonString(s string) error

func (*DescribeScalingPoliciesRequest) ToJsonString

func (r *DescribeScalingPoliciesRequest) ToJsonString() string

type DescribeScalingPoliciesResponse

type DescribeScalingPoliciesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 动态扩缩容配置
		// 注意:此字段可能返回 null,表示取不到有效值。
		ScalingPolicies []*ScalingPolicy `json:"ScalingPolicies,omitempty" name:"ScalingPolicies" list`

		// 返回总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeScalingPoliciesResponse

func NewDescribeScalingPoliciesResponse() (response *DescribeScalingPoliciesResponse)

func (*DescribeScalingPoliciesResponse) FromJsonString

func (r *DescribeScalingPoliciesResponse) FromJsonString(s string) error

func (*DescribeScalingPoliciesResponse) ToJsonString

func (r *DescribeScalingPoliciesResponse) ToJsonString() string

type DesiredPlayerSession

type DesiredPlayerSession struct {

	// 与玩家会话关联的唯一玩家标识
	PlayerId *string `json:"PlayerId,omitempty" name:"PlayerId"`

	// 开发人员定义的玩家数据
	PlayerData *string `json:"PlayerData,omitempty" name:"PlayerData"`
}

type FleetCapacity

type FleetCapacity struct {

	// 服务部署 Id
	// 注意:此字段可能返回 null,表示取不到有效值。
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 服务器类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`

	// 服务器实例统计数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceCounts *InstanceCounts `json:"InstanceCounts,omitempty" name:"InstanceCounts"`
}

type GameProperty

type GameProperty struct {

	// 属性名称
	Key *string `json:"Key,omitempty" name:"Key"`

	// 属性值
	Value *string `json:"Value,omitempty" name:"Value"`
}

type GameServerSession

type GameServerSession struct {

	// 游戏服务器会话创建时间
	CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"`

	// 创建者ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreatorId *string `json:"CreatorId,omitempty" name:"CreatorId"`

	// 当前玩家数量
	CurrentPlayerSessionCount *uint64 `json:"CurrentPlayerSessionCount,omitempty" name:"CurrentPlayerSessionCount"`

	// CVM的DNS标识符
	// 注意:此字段可能返回 null,表示取不到有效值。
	DnsName *string `json:"DnsName,omitempty" name:"DnsName"`

	// 舰队ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 游戏属性
	// 注意:此字段可能返回 null,表示取不到有效值。
	GameProperties []*GameProperty `json:"GameProperties,omitempty" name:"GameProperties" list`

	// 游戏服务器会话属性详情
	// 注意:此字段可能返回 null,表示取不到有效值。
	GameServerSessionData *string `json:"GameServerSessionData,omitempty" name:"GameServerSessionData"`

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// CVM IP地址
	IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"`

	// 对战进程详情
	// 注意:此字段可能返回 null,表示取不到有效值。
	MatchmakerData *string `json:"MatchmakerData,omitempty" name:"MatchmakerData"`

	// 最大玩家数量
	MaximumPlayerSessionCount *uint64 `json:"MaximumPlayerSessionCount,omitempty" name:"MaximumPlayerSessionCount"`

	// 游戏服务器会话名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 玩家会话创建策略
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlayerSessionCreationPolicy *string `json:"PlayerSessionCreationPolicy,omitempty" name:"PlayerSessionCreationPolicy"`

	// 端口号
	Port *uint64 `json:"Port,omitempty" name:"Port"`

	// 游戏服务器会话状态
	Status *string `json:"Status,omitempty" name:"Status"`

	// 游戏服务器会话状态附加信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	StatusReason *string `json:"StatusReason,omitempty" name:"StatusReason"`

	// 终止的时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	TerminationTime *string `json:"TerminationTime,omitempty" name:"TerminationTime"`

	// 实例类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
}

type GameServerSessionDetail

type GameServerSessionDetail struct {

	// 游戏服务器会话
	GameServerSession *GameServerSession `json:"GameServerSession,omitempty" name:"GameServerSession"`

	// 保护策略,可选(NoProtection,FullProtection)
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProtectionPolicy *string `json:"ProtectionPolicy,omitempty" name:"ProtectionPolicy"`
}

type GameServerSessionPlacement

type GameServerSessionPlacement struct {

	// 部署Id
	PlacementId *string `json:"PlacementId,omitempty" name:"PlacementId"`

	// 服务部署组名称
	GameServerSessionQueueName *string `json:"GameServerSessionQueueName,omitempty" name:"GameServerSessionQueueName"`

	// 玩家延迟
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlayerLatencies []*PlayerLatency `json:"PlayerLatencies,omitempty" name:"PlayerLatencies" list`

	// 服务部署状态
	Status *string `json:"Status,omitempty" name:"Status"`

	// 分配给正在运行游戏会话的实例的DNS标识符
	// 注意:此字段可能返回 null,表示取不到有效值。
	DnsName *string `json:"DnsName,omitempty" name:"DnsName"`

	// 游戏会话Id
	// 注意:此字段可能返回 null,表示取不到有效值。
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 游戏会话名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	GameServerSessionName *string `json:"GameServerSessionName,omitempty" name:"GameServerSessionName"`

	// 服务部署区域
	// 注意:此字段可能返回 null,表示取不到有效值。
	GameServerSessionRegion *string `json:"GameServerSessionRegion,omitempty" name:"GameServerSessionRegion"`

	// 游戏属性
	// 注意:此字段可能返回 null,表示取不到有效值。
	GameProperties []*GameProperty `json:"GameProperties,omitempty" name:"GameProperties" list`

	// 最大玩家数量
	MaximumPlayerSessionCount *uint64 `json:"MaximumPlayerSessionCount,omitempty" name:"MaximumPlayerSessionCount"`

	// 游戏会话数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	GameServerSessionData *string `json:"GameServerSessionData,omitempty" name:"GameServerSessionData"`

	// 运行游戏会话的实例的IP地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"`

	// 运行游戏会话的实例的端口号
	// 注意:此字段可能返回 null,表示取不到有效值。
	Port *uint64 `json:"Port,omitempty" name:"Port"`

	// 游戏匹配数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	MatchmakerData *string `json:"MatchmakerData,omitempty" name:"MatchmakerData"`

	// 部署的玩家游戏数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlacedPlayerSessions []*PlacedPlayerSession `json:"PlacedPlayerSessions,omitempty" name:"PlacedPlayerSessions" list`

	// 开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 结束时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

type GetGameServerSessionLogUrlRequest

type GetGameServerSessionLogUrlRequest struct {
	*tchttp.BaseRequest

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`
}

func NewGetGameServerSessionLogUrlRequest

func NewGetGameServerSessionLogUrlRequest() (request *GetGameServerSessionLogUrlRequest)

func (*GetGameServerSessionLogUrlRequest) FromJsonString

func (r *GetGameServerSessionLogUrlRequest) FromJsonString(s string) error

func (*GetGameServerSessionLogUrlRequest) ToJsonString

func (r *GetGameServerSessionLogUrlRequest) ToJsonString() string

type GetGameServerSessionLogUrlResponse

type GetGameServerSessionLogUrlResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 日志下载URL
		// 注意:此字段可能返回 null,表示取不到有效值。
		PreSignedUrl *string `json:"PreSignedUrl,omitempty" name:"PreSignedUrl"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetGameServerSessionLogUrlResponse

func NewGetGameServerSessionLogUrlResponse() (response *GetGameServerSessionLogUrlResponse)

func (*GetGameServerSessionLogUrlResponse) FromJsonString

func (r *GetGameServerSessionLogUrlResponse) FromJsonString(s string) error

func (*GetGameServerSessionLogUrlResponse) ToJsonString

func (r *GetGameServerSessionLogUrlResponse) ToJsonString() string

type InstanceCounts

type InstanceCounts struct {

	// 活跃的服务器实例数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Active *uint64 `json:"Active,omitempty" name:"Active"`

	// 期望的服务器实例数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Desired *uint64 `json:"Desired,omitempty" name:"Desired"`

	// 空闲的服务器实例数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Idle *uint64 `json:"Idle,omitempty" name:"Idle"`

	// 服务器实例数最大限制
	// 注意:此字段可能返回 null,表示取不到有效值。
	MaxiNum *uint64 `json:"MaxiNum,omitempty" name:"MaxiNum"`

	// 服务器实例数最小限制
	// 注意:此字段可能返回 null,表示取不到有效值。
	MiniNum *uint64 `json:"MiniNum,omitempty" name:"MiniNum"`

	// 已开始创建,但未激活的服务器实例数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Pending *uint64 `json:"Pending,omitempty" name:"Pending"`

	// 结束中的服务器实例数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Terminating *uint64 `json:"Terminating,omitempty" name:"Terminating"`
}

type JoinGameServerSessionRequest

type JoinGameServerSessionRequest struct {
	*tchttp.BaseRequest

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 玩家ID
	PlayerId *string `json:"PlayerId,omitempty" name:"PlayerId"`

	// 玩家自定义信息
	PlayerData *string `json:"PlayerData,omitempty" name:"PlayerData"`
}

func NewJoinGameServerSessionRequest

func NewJoinGameServerSessionRequest() (request *JoinGameServerSessionRequest)

func (*JoinGameServerSessionRequest) FromJsonString

func (r *JoinGameServerSessionRequest) FromJsonString(s string) error

func (*JoinGameServerSessionRequest) ToJsonString

func (r *JoinGameServerSessionRequest) ToJsonString() string

type JoinGameServerSessionResponse

type JoinGameServerSessionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 玩家会话
		// 注意:此字段可能返回 null,表示取不到有效值。
		PlayerSession *PlayerSession `json:"PlayerSession,omitempty" name:"PlayerSession"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewJoinGameServerSessionResponse

func NewJoinGameServerSessionResponse() (response *JoinGameServerSessionResponse)

func (*JoinGameServerSessionResponse) FromJsonString

func (r *JoinGameServerSessionResponse) FromJsonString(s string) error

func (*JoinGameServerSessionResponse) ToJsonString

func (r *JoinGameServerSessionResponse) ToJsonString() string

type PlacedPlayerSession

type PlacedPlayerSession struct {

	// 玩家Id
	PlayerId *string `json:"PlayerId,omitempty" name:"PlayerId"`

	// 玩家会话Id
	PlayerSessionId *string `json:"PlayerSessionId,omitempty" name:"PlayerSessionId"`
}

type PlayerLatency

type PlayerLatency struct {

	// 玩家Id
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlayerId *string `json:"PlayerId,omitempty" name:"PlayerId"`

	// 延迟对应的区域名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	RegionIdentifier *string `json:"RegionIdentifier,omitempty" name:"RegionIdentifier"`

	// 毫秒级延迟
	LatencyInMilliseconds *uint64 `json:"LatencyInMilliseconds,omitempty" name:"LatencyInMilliseconds"`
}

type PlayerSession

type PlayerSession struct {

	// 玩家会话创建时间
	CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"`

	// 游戏服务器会话运行的DNS标识
	// 注意:此字段可能返回 null,表示取不到有效值。
	DnsName *string `json:"DnsName,omitempty" name:"DnsName"`

	// 舰队ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 游戏服务器会话运行的CVM地址
	IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"`

	// 玩家相关信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlayerData *string `json:"PlayerData,omitempty" name:"PlayerData"`

	// 玩家ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlayerId *string `json:"PlayerId,omitempty" name:"PlayerId"`

	// 玩家会话ID
	PlayerSessionId *string `json:"PlayerSessionId,omitempty" name:"PlayerSessionId"`

	// 端口号
	Port *uint64 `json:"Port,omitempty" name:"Port"`

	// 玩家会话的状态
	Status *string `json:"Status,omitempty" name:"Status"`

	// 玩家会话终止时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	TerminationTime *string `json:"TerminationTime,omitempty" name:"TerminationTime"`
}

type PutScalingPolicyRequest

type PutScalingPolicyRequest struct {
	*tchttp.BaseRequest

	// 服务部署ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 基于规则的扩缩容配置
	TargetConfiguration *TargetConfiguration `json:"TargetConfiguration,omitempty" name:"TargetConfiguration"`
}

func NewPutScalingPolicyRequest

func NewPutScalingPolicyRequest() (request *PutScalingPolicyRequest)

func (*PutScalingPolicyRequest) FromJsonString

func (r *PutScalingPolicyRequest) FromJsonString(s string) error

func (*PutScalingPolicyRequest) ToJsonString

func (r *PutScalingPolicyRequest) ToJsonString() string

type PutScalingPolicyResponse

type PutScalingPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 规则名称
		// 注意:此字段可能返回 null,表示取不到有效值。
		Name *string `json:"Name,omitempty" name:"Name"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPutScalingPolicyResponse

func NewPutScalingPolicyResponse() (response *PutScalingPolicyResponse)

func (*PutScalingPolicyResponse) FromJsonString

func (r *PutScalingPolicyResponse) FromJsonString(s string) error

func (*PutScalingPolicyResponse) ToJsonString

func (r *PutScalingPolicyResponse) ToJsonString() string

type ScalingPolicy

type ScalingPolicy struct {

	// 服务部署ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 状态
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *string `json:"Status,omitempty" name:"Status"`

	// 保留参数
	// 注意:此字段可能返回 null,表示取不到有效值。
	ScalingAdjustment *string `json:"ScalingAdjustment,omitempty" name:"ScalingAdjustment"`

	// 保留参数
	// 注意:此字段可能返回 null,表示取不到有效值。
	ScalingAdjustmentType *string `json:"ScalingAdjustmentType,omitempty" name:"ScalingAdjustmentType"`

	// 保留参数
	// 注意:此字段可能返回 null,表示取不到有效值。
	ComparisonOperator *string `json:"ComparisonOperator,omitempty" name:"ComparisonOperator"`

	// 保留参数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Threshold *string `json:"Threshold,omitempty" name:"Threshold"`

	// 保留参数
	// 注意:此字段可能返回 null,表示取不到有效值。
	EvaluationPeriods *string `json:"EvaluationPeriods,omitempty" name:"EvaluationPeriods"`

	// 保留参数
	// 注意:此字段可能返回 null,表示取不到有效值。
	MetricName *string `json:"MetricName,omitempty" name:"MetricName"`

	// 策略类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`

	// 基于规则的配置
	// 注意:此字段可能返回 null,表示取不到有效值。
	TargetConfiguration *TargetConfiguration `json:"TargetConfiguration,omitempty" name:"TargetConfiguration"`
}

type StartGameServerSessionPlacementRequest

type StartGameServerSessionPlacementRequest struct {
	*tchttp.BaseRequest

	// 开始部署游戏服务器会话的唯一标识符
	PlacementId *string `json:"PlacementId,omitempty" name:"PlacementId"`

	// 游戏服务器会话队列名称
	GameServerSessionQueueName *string `json:"GameServerSessionQueueName,omitempty" name:"GameServerSessionQueueName"`

	// 游戏服务器允许同时连接到游戏会话的最大玩家数量
	MaximumPlayerSessionCount *uint64 `json:"MaximumPlayerSessionCount,omitempty" name:"MaximumPlayerSessionCount"`

	// 玩家游戏会话信息
	DesiredPlayerSessions []*DesiredPlayerSession `json:"DesiredPlayerSessions,omitempty" name:"DesiredPlayerSessions" list`

	// 玩家游戏会话属性
	GameProperties []*GameProperty `json:"GameProperties,omitempty" name:"GameProperties" list`

	// 游戏服务器会话数据
	GameServerSessionData *string `json:"GameServerSessionData,omitempty" name:"GameServerSessionData"`

	// 游戏服务器会话名称
	GameServerSessionName *string `json:"GameServerSessionName,omitempty" name:"GameServerSessionName"`

	// 玩家延迟
	PlayerLatencies []*PlayerLatency `json:"PlayerLatencies,omitempty" name:"PlayerLatencies" list`
}

func NewStartGameServerSessionPlacementRequest

func NewStartGameServerSessionPlacementRequest() (request *StartGameServerSessionPlacementRequest)

func (*StartGameServerSessionPlacementRequest) FromJsonString

func (*StartGameServerSessionPlacementRequest) ToJsonString

type StartGameServerSessionPlacementResponse

type StartGameServerSessionPlacementResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 游戏服务器会话放置
		GameServerSessionPlacement *GameServerSessionPlacement `json:"GameServerSessionPlacement,omitempty" name:"GameServerSessionPlacement"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewStartGameServerSessionPlacementResponse

func NewStartGameServerSessionPlacementResponse() (response *StartGameServerSessionPlacementResponse)

func (*StartGameServerSessionPlacementResponse) FromJsonString

func (*StartGameServerSessionPlacementResponse) ToJsonString

type StopGameServerSessionPlacementRequest

type StopGameServerSessionPlacementRequest struct {
	*tchttp.BaseRequest

	// 游戏服务器会话放置的唯一标识符
	PlacementId *string `json:"PlacementId,omitempty" name:"PlacementId"`
}

func NewStopGameServerSessionPlacementRequest

func NewStopGameServerSessionPlacementRequest() (request *StopGameServerSessionPlacementRequest)

func (*StopGameServerSessionPlacementRequest) FromJsonString

func (r *StopGameServerSessionPlacementRequest) FromJsonString(s string) error

func (*StopGameServerSessionPlacementRequest) ToJsonString

type StopGameServerSessionPlacementResponse

type StopGameServerSessionPlacementResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 游戏服务器会话放置
		GameServerSessionPlacement *GameServerSessionPlacement `json:"GameServerSessionPlacement,omitempty" name:"GameServerSessionPlacement"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewStopGameServerSessionPlacementResponse

func NewStopGameServerSessionPlacementResponse() (response *StopGameServerSessionPlacementResponse)

func (*StopGameServerSessionPlacementResponse) FromJsonString

func (*StopGameServerSessionPlacementResponse) ToJsonString

type TargetConfiguration

type TargetConfiguration struct {

	// 预留存率
	// 注意:此字段可能返回 null,表示取不到有效值。
	TargetValue *uint64 `json:"TargetValue,omitempty" name:"TargetValue"`
}

type UpdateFleetCapacityRequest

type UpdateFleetCapacityRequest struct {
	*tchttp.BaseRequest

	// 服务部署ID
	FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

	// 期望的服务器实例数
	DesiredInstances *uint64 `json:"DesiredInstances,omitempty" name:"DesiredInstances"`

	// 服务器实例数最小限制
	MinSize *uint64 `json:"MinSize,omitempty" name:"MinSize"`

	// 服务器实例数最大限制
	MaxSize *uint64 `json:"MaxSize,omitempty" name:"MaxSize"`
}

func NewUpdateFleetCapacityRequest

func NewUpdateFleetCapacityRequest() (request *UpdateFleetCapacityRequest)

func (*UpdateFleetCapacityRequest) FromJsonString

func (r *UpdateFleetCapacityRequest) FromJsonString(s string) error

func (*UpdateFleetCapacityRequest) ToJsonString

func (r *UpdateFleetCapacityRequest) ToJsonString() string

type UpdateFleetCapacityResponse

type UpdateFleetCapacityResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 服务部署ID
		// 注意:此字段可能返回 null,表示取不到有效值。
		FleetId *string `json:"FleetId,omitempty" name:"FleetId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateFleetCapacityResponse

func NewUpdateFleetCapacityResponse() (response *UpdateFleetCapacityResponse)

func (*UpdateFleetCapacityResponse) FromJsonString

func (r *UpdateFleetCapacityResponse) FromJsonString(s string) error

func (*UpdateFleetCapacityResponse) ToJsonString

func (r *UpdateFleetCapacityResponse) ToJsonString() string

type UpdateGameServerSessionRequest

type UpdateGameServerSessionRequest struct {
	*tchttp.BaseRequest

	// 游戏服务器会话ID
	GameServerSessionId *string `json:"GameServerSessionId,omitempty" name:"GameServerSessionId"`

	// 最大玩家数量
	MaximumPlayerSessionCount *uint64 `json:"MaximumPlayerSessionCount,omitempty" name:"MaximumPlayerSessionCount"`

	// 游戏服务器会话名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 玩家会话创建策略(ACCEPT_ALL,DENY_ALL)
	PlayerSessionCreationPolicy *string `json:"PlayerSessionCreationPolicy,omitempty" name:"PlayerSessionCreationPolicy"`

	// 保护策略(NoProtection,TimeLimitProtection,FullProtection)
	ProtectionPolicy *string `json:"ProtectionPolicy,omitempty" name:"ProtectionPolicy"`
}

func NewUpdateGameServerSessionRequest

func NewUpdateGameServerSessionRequest() (request *UpdateGameServerSessionRequest)

func (*UpdateGameServerSessionRequest) FromJsonString

func (r *UpdateGameServerSessionRequest) FromJsonString(s string) error

func (*UpdateGameServerSessionRequest) ToJsonString

func (r *UpdateGameServerSessionRequest) ToJsonString() string

type UpdateGameServerSessionResponse

type UpdateGameServerSessionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 更新后的游戏会话
		GameServerSession *GameServerSession `json:"GameServerSession,omitempty" name:"GameServerSession"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateGameServerSessionResponse

func NewUpdateGameServerSessionResponse() (response *UpdateGameServerSessionResponse)

func (*UpdateGameServerSessionResponse) FromJsonString

func (r *UpdateGameServerSessionResponse) FromJsonString(s string) error

func (*UpdateGameServerSessionResponse) ToJsonString

func (r *UpdateGameServerSessionResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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