model

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessPolicyDetailInfo added in v0.1.15

type AccessPolicyDetailInfo struct {

	// 策略名,当前只支持专线接入策略名。 * PRIVATE_ACCESS: 专线接入
	PolicyName AccessPolicyDetailInfoPolicyName `json:"policy_name"`

	// 黑名单类型,当前黑名单只支持互联网。 * INTERNET: 互联网
	BlacklistType AccessPolicyDetailInfoBlacklistType `json:"blacklist_type"`

	// 策略id。
	PolicyId *string `json:"policy_id,omitempty"`

	// 用户otp设备绑定时间。
	CreateTime *string `json:"create_time,omitempty"`
}

func (AccessPolicyDetailInfo) String added in v0.1.15

func (o AccessPolicyDetailInfo) String() string

type AccessPolicyDetailInfoBlacklistType added in v0.1.15

type AccessPolicyDetailInfoBlacklistType struct {
	// contains filtered or unexported fields
}

func (AccessPolicyDetailInfoBlacklistType) MarshalJSON added in v0.1.15

func (c AccessPolicyDetailInfoBlacklistType) MarshalJSON() ([]byte, error)

func (*AccessPolicyDetailInfoBlacklistType) UnmarshalJSON added in v0.1.15

func (c *AccessPolicyDetailInfoBlacklistType) UnmarshalJSON(b []byte) error

func (AccessPolicyDetailInfoBlacklistType) Value added in v0.1.15

type AccessPolicyDetailInfoBlacklistTypeEnum added in v0.1.15

type AccessPolicyDetailInfoBlacklistTypeEnum struct {
	INTERNET AccessPolicyDetailInfoBlacklistType
}

func GetAccessPolicyDetailInfoBlacklistTypeEnum added in v0.1.15

func GetAccessPolicyDetailInfoBlacklistTypeEnum() AccessPolicyDetailInfoBlacklistTypeEnum

type AccessPolicyDetailInfoPolicyName added in v0.1.15

type AccessPolicyDetailInfoPolicyName struct {
	// contains filtered or unexported fields
}

func (AccessPolicyDetailInfoPolicyName) MarshalJSON added in v0.1.15

func (c AccessPolicyDetailInfoPolicyName) MarshalJSON() ([]byte, error)

func (*AccessPolicyDetailInfoPolicyName) UnmarshalJSON added in v0.1.15

func (c *AccessPolicyDetailInfoPolicyName) UnmarshalJSON(b []byte) error

func (AccessPolicyDetailInfoPolicyName) Value added in v0.1.15

type AccessPolicyDetailInfoPolicyNameEnum added in v0.1.15

type AccessPolicyDetailInfoPolicyNameEnum struct {
	PRIVATE_ACCESS AccessPolicyDetailInfoPolicyName
}

func GetAccessPolicyDetailInfoPolicyNameEnum added in v0.1.15

func GetAccessPolicyDetailInfoPolicyNameEnum() AccessPolicyDetailInfoPolicyNameEnum

type AccessPolicyInfo added in v0.1.15

type AccessPolicyInfo struct {

	// 策略名,当前只支持专线接入策略名。 * PRIVATE_ACCESS: 专线接入
	PolicyName AccessPolicyInfoPolicyName `json:"policy_name"`

	// 黑名单类型,当前黑名单只支持互联网。 * INTERNET: 互联网
	BlacklistType AccessPolicyInfoBlacklistType `json:"blacklist_type"`
}

func (AccessPolicyInfo) String added in v0.1.15

func (o AccessPolicyInfo) String() string

type AccessPolicyInfoBlacklistType added in v0.1.15

type AccessPolicyInfoBlacklistType struct {
	// contains filtered or unexported fields
}

func (AccessPolicyInfoBlacklistType) MarshalJSON added in v0.1.15

func (c AccessPolicyInfoBlacklistType) MarshalJSON() ([]byte, error)

func (*AccessPolicyInfoBlacklistType) UnmarshalJSON added in v0.1.15

func (c *AccessPolicyInfoBlacklistType) UnmarshalJSON(b []byte) error

func (AccessPolicyInfoBlacklistType) Value added in v0.1.15

type AccessPolicyInfoBlacklistTypeEnum added in v0.1.15

type AccessPolicyInfoBlacklistTypeEnum struct {
	INTERNET AccessPolicyInfoBlacklistType
}

func GetAccessPolicyInfoBlacklistTypeEnum added in v0.1.15

func GetAccessPolicyInfoBlacklistTypeEnum() AccessPolicyInfoBlacklistTypeEnum

type AccessPolicyInfoPolicyName added in v0.1.15

type AccessPolicyInfoPolicyName struct {
	// contains filtered or unexported fields
}

func (AccessPolicyInfoPolicyName) MarshalJSON added in v0.1.15

func (c AccessPolicyInfoPolicyName) MarshalJSON() ([]byte, error)

func (*AccessPolicyInfoPolicyName) UnmarshalJSON added in v0.1.15

func (c *AccessPolicyInfoPolicyName) UnmarshalJSON(b []byte) error

func (AccessPolicyInfoPolicyName) Value added in v0.1.15

type AccessPolicyInfoPolicyNameEnum added in v0.1.15

type AccessPolicyInfoPolicyNameEnum struct {
	PRIVATE_ACCESS AccessPolicyInfoPolicyName
}

func GetAccessPolicyInfoPolicyNameEnum added in v0.1.15

func GetAccessPolicyInfoPolicyNameEnum() AccessPolicyInfoPolicyNameEnum

type AccessPolicyObjectInfo added in v0.1.15

type AccessPolicyObjectInfo struct {

	// 黑名单中的对象id,目前仅用户对象。
	ObjectId string `json:"object_id"`

	// 对象名。
	ObjectName *string `json:"object_name,omitempty"`

	// 对象类型,当前只支持用户类型。 * USER: 用户
	ObjectType AccessPolicyObjectInfoObjectType `json:"object_type"`
}

func (AccessPolicyObjectInfo) String added in v0.1.15

func (o AccessPolicyObjectInfo) String() string

type AccessPolicyObjectInfoObjectType added in v0.1.15

type AccessPolicyObjectInfoObjectType struct {
	// contains filtered or unexported fields
}

func (AccessPolicyObjectInfoObjectType) MarshalJSON added in v0.1.15

func (c AccessPolicyObjectInfoObjectType) MarshalJSON() ([]byte, error)

func (*AccessPolicyObjectInfoObjectType) UnmarshalJSON added in v0.1.15

func (c *AccessPolicyObjectInfoObjectType) UnmarshalJSON(b []byte) error

func (AccessPolicyObjectInfoObjectType) Value added in v0.1.15

type AccessPolicyObjectInfoObjectTypeEnum added in v0.1.15

type AccessPolicyObjectInfoObjectTypeEnum struct {
	USER AccessPolicyObjectInfoObjectType
}

func GetAccessPolicyObjectInfoObjectTypeEnum added in v0.1.15

func GetAccessPolicyObjectInfoObjectTypeEnum() AccessPolicyObjectInfoObjectTypeEnum

type AdDomain

type AdDomain struct {

	// 域类型。 - LITE_AS:本地认证。 - LOCAL_AD:本地AD。 说明:域类型为“LOCAL_AD”时,请确保所选VPC网络与AD所属网络可连通。
	DomainType AdDomainDomainType `json:"domain_type"`

	// 域名称。域类型为LOCAL_AD时需要配置。 域名必须为AD服务器上已经存在的域名,且长度不超过55。
	DomainName *string `json:"domain_name,omitempty"`

	// 域管理员帐号。域类型为LOCAL_AD时需要配置。 必须为AD服务器上已经存在的域管理员帐号。
	DomainAdminAccount *string `json:"domain_admin_account,omitempty"`

	// 域管理员账号密码。域类型为LOCAL_AD时需要配置。
	DomainPassword *string `json:"domain_password,omitempty"`

	// 主域控制器IP地址。域类型为LOCAL_AD时需要配置。
	ActiveDomainIp *string `json:"active_domain_ip,omitempty"`

	// 主域控制器名称。域类型为LOCAL_AD时需要配置。
	ActiveDomainName *string `json:"active_domain_name,omitempty"`

	// 备域控制器IP地址。域类型为LOCAL_AD时且配置备节点时需要配置。
	StandbyDomainIp *string `json:"standby_domain_ip,omitempty"`

	// 备域控制器名称。域类型为LOCAL_AD时且配置备节点时需要配置。
	StandbyDomainName *string `json:"standby_domain_name,omitempty"`

	// 主DNS IP地址。域类型为LOCAL_AD时需要配置。
	ActiveDnsIp *string `json:"active_dns_ip,omitempty"`

	// 备DNS IP地址。域类型为LOCAL_AD时且配置备节点时需要配置。
	StandbyDnsIp *string `json:"standby_dns_ip,omitempty"`

	// 是否在删除桌面的同时删除AD上对应的计算机对象,0代表不删除,1代表删除。
	DeleteComputerObject *int32 `json:"delete_computer_object,omitempty"`

	// 是否开启LDAPS。
	UseLdaps *bool `json:"use_ldaps,omitempty"`

	TlsConfig *TlsConfig `json:"tls_config,omitempty"`
}

域信息。

func (AdDomain) String

func (o AdDomain) String() string

type AdDomainDomainType

type AdDomainDomainType struct {
	// contains filtered or unexported fields
}

func (AdDomainDomainType) MarshalJSON

func (c AdDomainDomainType) MarshalJSON() ([]byte, error)

func (*AdDomainDomainType) UnmarshalJSON

func (c *AdDomainDomainType) UnmarshalJSON(b []byte) error

func (AdDomainDomainType) Value

func (c AdDomainDomainType) Value() string

type AdDomainDomainTypeEnum

type AdDomainDomainTypeEnum struct {
	LITE_AS  AdDomainDomainType
	LOCAL_AD AdDomainDomainType
}

func GetAdDomainDomainTypeEnum

func GetAdDomainDomainTypeEnum() AdDomainDomainTypeEnum

type AdDomainInfo

type AdDomainInfo struct {

	// 域类型。 - LITE_AS:LiteAS。 - LOCAL_AD:本地AD。 说明:域类型为“LOCAL_AD”时,请确保所选VPC网络与“LOCAL_AD”所属网络可连通。
	DomainType AdDomainInfoDomainType `json:"domain_type"`

	// 域管理员帐号。
	DomainAdminAccount string `json:"domain_admin_account"`

	// 域管理员账号密码。
	DomainPassword string `json:"domain_password"`
}

域信息。

func (AdDomainInfo) String

func (o AdDomainInfo) String() string

type AdDomainInfoDomainType

type AdDomainInfoDomainType struct {
	// contains filtered or unexported fields
}

func (AdDomainInfoDomainType) MarshalJSON

func (c AdDomainInfoDomainType) MarshalJSON() ([]byte, error)

func (*AdDomainInfoDomainType) UnmarshalJSON

func (c *AdDomainInfoDomainType) UnmarshalJSON(b []byte) error

func (AdDomainInfoDomainType) Value

func (c AdDomainInfoDomainType) Value() string

type AdDomainInfoDomainTypeEnum

type AdDomainInfoDomainTypeEnum struct {
	LITE_AS  AdDomainInfoDomainType
	LOCAL_AD AdDomainInfoDomainType
}

func GetAdDomainInfoDomainTypeEnum

func GetAdDomainInfoDomainTypeEnum() AdDomainInfoDomainTypeEnum

type AdInfo

type AdInfo struct {

	// 域类型。 - LITE_AS:本地认证。 - LOCAL_AD:本地AD。
	DomainType *AdInfoDomainType `json:"domain_type,omitempty"`

	// 域名,域类型为LOCAL_AD时有值。
	DomainName *string `json:"domain_name,omitempty"`

	// 域管理员帐号,域类型为LOCAL_AD时有值。
	DomainAdminAccount *string `json:"domain_admin_account,omitempty"`

	// 主域控制器名称,域类型为LOCAL_AD时有值。
	ActiveDomainName *string `json:"active_domain_name,omitempty"`

	// 主域控制器IP地址,域类型为LOCAL_AD时有值。
	ActiveDomainIp *string `json:"active_domain_ip,omitempty"`

	// 备域控制器名称,域类型为LOCAL_AD时有值。
	StandbyDomainName *string `json:"standby_domain_name,omitempty"`

	// 备域控制器IP地址,域类型为LOCAL_AD时有值。
	StandbyDomainIp *string `json:"standby_domain_ip,omitempty"`

	// 主DNS IP地址,域类型为LOCAL_AD时有值。
	ActiveDnsIp *string `json:"active_dns_ip,omitempty"`

	// 备DNS IP地址,域类型为LOCAL_AD时有值。
	StandbyDnsIp *string `json:"standby_dns_ip,omitempty"`

	// 是否在删除桌面的同时删除AD上对应的计算机对象,'0'代表不删除,'1'代表删除。
	DeleteComputerObject *string `json:"delete_computer_object,omitempty"`

	// 是否开启LDAPS。
	UseLdaps *bool `json:"use_ldaps,omitempty"`

	TlsConfig *TlsConfig `json:"tls_config,omitempty"`
}

域信息。

func (AdInfo) String

func (o AdInfo) String() string

type AdInfoDomainType

type AdInfoDomainType struct {
	// contains filtered or unexported fields
}

func (AdInfoDomainType) MarshalJSON

func (c AdInfoDomainType) MarshalJSON() ([]byte, error)

func (*AdInfoDomainType) UnmarshalJSON

func (c *AdInfoDomainType) UnmarshalJSON(b []byte) error

func (AdInfoDomainType) Value

func (c AdInfoDomainType) Value() string

type AdInfoDomainTypeEnum

type AdInfoDomainTypeEnum struct {
	LITE_AS  AdInfoDomainType
	LOCAL_AD AdInfoDomainType
}

func GetAdInfoDomainTypeEnum

func GetAdInfoDomainTypeEnum() AdInfoDomainTypeEnum

type AddDesktopVolumesReq

type AddDesktopVolumesReq struct {

	// 桌面Id。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 待新增的磁盘信息,每个桌面的数据盘数量不超过10个。
	Volumes *[]Volume `json:"volumes,omitempty"`
}

单个桌面添加磁盘参数。

func (AddDesktopVolumesReq) String

func (o AddDesktopVolumesReq) String() string

type AddDesktopsVolumesReq

type AddDesktopsVolumesReq struct {

	// 新增磁盘参数。
	DesktopVolumes *[]AddDesktopVolumesReq `json:"desktop_volumes,omitempty"`
}

增加磁盘请求。

func (AddDesktopsVolumesReq) String

func (o AddDesktopsVolumesReq) String() string

type AddVolumesRequest

type AddVolumesRequest struct {
	Body *AddDesktopsVolumesReq `json:"body,omitempty"`
}

Request Object

func (AddVolumesRequest) String

func (o AddVolumesRequest) String() string

type AddVolumesResponse

type AddVolumesResponse struct {

	// 增加磁盘任务ID
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AddVolumesResponse) String

func (o AddVolumesResponse) String() string

type AddressInfo

type AddressInfo struct {

	// IP地址信息。
	Addr *string `json:"addr,omitempty"`

	// IP地址类型,值为4或6,分别表示IPV4和IPV6。
	Version *string `json:"version,omitempty"`

	// MAC地址。
	OSEXTIPSMACmacAddr *string `json:"OS-EXT-IPS-MAC:mac_addr,omitempty"`

	// IP地址分配方式。 -fixed  私有IP地址。 -floating 浮动IP地址。
	OSEXTIPStype *string `json:"OS-EXT-IPS:type,omitempty"`
}

func (AddressInfo) String

func (o AddressInfo) String() string

type ApplyWorkspaceReq

type ApplyWorkspaceReq struct {
	AdDomains *AdDomain `json:"ad_domains"`

	// 企业ID。 企业ID是您在云桌面服务的唯一标识,终端用户登录时需要填写企业ID,若不自定义设置企业ID,系统将自动生成您的企业ID。格式为由半角数字、字母、_-组成,长度范围小于等于32个字符。
	EnterpriseId *string `json:"enterprise_id,omitempty"`

	// VPC ID。
	VpcId *string `json:"vpc_id,omitempty"`

	// 指定业务子网的网络ID,子网不能与172.16.0.0/12冲突。
	SubnetIds *[]Subnet `json:"subnet_ids,omitempty"`

	// 管理子网网段。 注:不能与172.16.0.0/12以及subnet_ids参数下子网的网段冲突。
	ManageSubnetCidr *string `json:"manage_subnet_cidr,omitempty"`

	// 接入方式。 - INTERNET:表示Internet接入。 - DEDICATED:表示专线接入。 - BOTH:表示两种接入方式都支持。
	AccessMode *ApplyWorkspaceReqAccessMode `json:"access_mode,omitempty"`

	// 专线接入网段列表,多个网段信息用分号隔开,列表长度不超过5。
	DedicatedSubnets *string `json:"dedicated_subnets,omitempty"`

	// 桌面退订是否发送邮件通知。
	IsSendEmail *bool `json:"is_send_email,omitempty"`
}

申请开通云办公服务请求

func (ApplyWorkspaceReq) String

func (o ApplyWorkspaceReq) String() string

type ApplyWorkspaceReqAccessMode

type ApplyWorkspaceReqAccessMode struct {
	// contains filtered or unexported fields
}

func (ApplyWorkspaceReqAccessMode) MarshalJSON

func (c ApplyWorkspaceReqAccessMode) MarshalJSON() ([]byte, error)

func (*ApplyWorkspaceReqAccessMode) UnmarshalJSON

func (c *ApplyWorkspaceReqAccessMode) UnmarshalJSON(b []byte) error

func (ApplyWorkspaceReqAccessMode) Value

type ApplyWorkspaceReqAccessModeEnum

type ApplyWorkspaceReqAccessModeEnum struct {
	INTERNET  ApplyWorkspaceReqAccessMode
	DEDICATED ApplyWorkspaceReqAccessMode
	BOTH      ApplyWorkspaceReqAccessMode
}

func GetApplyWorkspaceReqAccessModeEnum

func GetApplyWorkspaceReqAccessModeEnum() ApplyWorkspaceReqAccessModeEnum

type ApplyWorkspaceRequest

type ApplyWorkspaceRequest struct {
	Body *ApplyWorkspaceReq `json:"body,omitempty"`
}

Request Object

func (ApplyWorkspaceRequest) String

func (o ApplyWorkspaceRequest) String() string

type ApplyWorkspaceResponse

type ApplyWorkspaceResponse struct {

	// 开通云办公服务的任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ApplyWorkspaceResponse) String

func (o ApplyWorkspaceResponse) String() string

type AssistAuthMethodConfigRequest added in v0.1.15

type AssistAuthMethodConfigRequest struct {
	AuthType *AuthAssistEnum `json:"auth_type,omitempty"`

	OtpConfigInfo *OtpConfigInfo `json:"otp_config_info,omitempty"`
}

辅助认证策略请求

func (AssistAuthMethodConfigRequest) String added in v0.1.15

type AuthAssistEnum added in v0.1.15

type AuthAssistEnum struct {
	// contains filtered or unexported fields
}

认证类型。 OTP:OTP辅助认证

func (AuthAssistEnum) MarshalJSON added in v0.1.15

func (c AuthAssistEnum) MarshalJSON() ([]byte, error)

func (*AuthAssistEnum) UnmarshalJSON added in v0.1.15

func (c *AuthAssistEnum) UnmarshalJSON(b []byte) error

func (AuthAssistEnum) Value added in v0.1.15

func (c AuthAssistEnum) Value() string

type AuthAssistEnumEnum added in v0.1.15

type AuthAssistEnumEnum struct {
	OTP            AuthAssistEnum
	RADIUS_GATEWAY AuthAssistEnum
	RADIUS         AuthAssistEnum
}

func GetAuthAssistEnumEnum added in v0.1.15

func GetAuthAssistEnumEnum() AuthAssistEnumEnum

type AuthServerAccessMode added in v0.1.15

type AuthServerAccessMode struct {
	// contains filtered or unexported fields
}

辅助认证服务接入模式 INTERNET:互联网接入 DEDICATED:专线接入 SYSTEM_DEFAULT:系统默认

func (AuthServerAccessMode) MarshalJSON added in v0.1.15

func (c AuthServerAccessMode) MarshalJSON() ([]byte, error)

func (*AuthServerAccessMode) UnmarshalJSON added in v0.1.15

func (c *AuthServerAccessMode) UnmarshalJSON(b []byte) error

func (AuthServerAccessMode) Value added in v0.1.15

func (c AuthServerAccessMode) Value() string

type AuthServerAccessModeEnum added in v0.1.15

type AuthServerAccessModeEnum struct {
	INTERNET       AuthServerAccessMode
	DEDICATED      AuthServerAccessMode
	SYSTEM_DEFAULT AuthServerAccessMode
}

func GetAuthServerAccessModeEnum added in v0.1.15

func GetAuthServerAccessModeEnum() AuthServerAccessModeEnum

type AvailabilityZone

type AvailabilityZone struct {

	// 可用分区编码。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 可用分区名称。
	DisplayName *string `json:"display_name,omitempty"`

	// 可用分区国际化信息。
	I18n map[string]string `json:"i18n,omitempty"`

	SoldOut *SoldOutInfo `json:"sold_out,omitempty"`

	// 指定当前分区下自定义支持的产品ID列表,如果为空则支持所有套餐。
	ProductIds *[]string `json:"product_ids,omitempty"`

	// 是否可见。
	Visible *bool `json:"visible,omitempty"`

	// 是否默认可用分区。
	DefaultAvailabilityZone *bool `json:"default_availability_zone,omitempty"`
}

func (AvailabilityZone) String

func (o AvailabilityZone) String() string

type BatchActionDesktopsReq

type BatchActionDesktopsReq struct {

	// 操作的桌面ID列表。
	DesktopIds []string `json:"desktop_ids"`

	// 操作类型。 -os-start 启动。 -reboot 重启。 -os-stop 关机。
	OpType string `json:"op_type"`

	// SOFT:普通操作;HARD:强制操作。例如type为HARD,op_type为os-stop代表强制关机。
	Type *BatchActionDesktopsReqType `json:"type,omitempty"`
}

批量操作桌面请求。

func (BatchActionDesktopsReq) String

func (o BatchActionDesktopsReq) String() string

type BatchActionDesktopsReqType

type BatchActionDesktopsReqType struct {
	// contains filtered or unexported fields
}

func (BatchActionDesktopsReqType) MarshalJSON

func (c BatchActionDesktopsReqType) MarshalJSON() ([]byte, error)

func (*BatchActionDesktopsReqType) UnmarshalJSON

func (c *BatchActionDesktopsReqType) UnmarshalJSON(b []byte) error

func (BatchActionDesktopsReqType) Value

type BatchActionDesktopsReqTypeEnum

type BatchActionDesktopsReqTypeEnum struct {
	SOFT BatchActionDesktopsReqType
	HARD BatchActionDesktopsReqType
}

func GetBatchActionDesktopsReqTypeEnum

func GetBatchActionDesktopsReqTypeEnum() BatchActionDesktopsReqTypeEnum

type BatchDeleteAccessPoliciesReq added in v0.1.15

type BatchDeleteAccessPoliciesReq struct {

	// 策略ID列表。
	PolicyIdList *[]string `json:"policy_id_list,omitempty"`
}

func (BatchDeleteAccessPoliciesReq) String added in v0.1.15

type BatchDeleteAccessPoliciesRequest added in v0.1.15

type BatchDeleteAccessPoliciesRequest struct {
	Body *BatchDeleteAccessPoliciesReq `json:"body,omitempty"`
}

Request Object

func (BatchDeleteAccessPoliciesRequest) String added in v0.1.15

type BatchDeleteAccessPoliciesResponse added in v0.1.15

type BatchDeleteAccessPoliciesResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchDeleteAccessPoliciesResponse) String added in v0.1.15

type BatchDeleteDesktopsRequest

type BatchDeleteDesktopsRequest struct {
	Body *DeleteDesktopsReq `json:"body,omitempty"`
}

Request Object

func (BatchDeleteDesktopsRequest) String

type BatchDeleteDesktopsResponse

type BatchDeleteDesktopsResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchDeleteDesktopsResponse) String

type BatchDeleteOtpDevicesRequest added in v0.1.15

type BatchDeleteOtpDevicesRequest struct {

	// 用户ID。
	UserId string `json:"user_id"`

	Body *DelOtpDevicesReq `json:"body,omitempty"`
}

Request Object

func (BatchDeleteOtpDevicesRequest) String added in v0.1.15

type BatchDeleteOtpDevicesResponse added in v0.1.15

type BatchDeleteOtpDevicesResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchDeleteOtpDevicesResponse) String added in v0.1.15

type BatchRunDesktopsRequest

type BatchRunDesktopsRequest struct {
	Body *BatchActionDesktopsReq `json:"body,omitempty"`
}

Request Object

func (BatchRunDesktopsRequest) String

func (o BatchRunDesktopsRequest) String() string

type BatchRunDesktopsResponse

type BatchRunDesktopsResponse struct {

	// 操作失败桌面列表。
	FailedOperationList *[]VmOperateResult `json:"failed_operation_list,omitempty"`

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchRunDesktopsResponse) String

func (o BatchRunDesktopsResponse) String() string

type CancelWorkspaceRequest

type CancelWorkspaceRequest struct {
}

Request Object

func (CancelWorkspaceRequest) String

func (o CancelWorkspaceRequest) String() string

type CancelWorkspaceResponse

type CancelWorkspaceResponse struct {

	// 注销云办公服务的任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CancelWorkspaceResponse) String

func (o CancelWorkspaceResponse) String() string

type ChangeUserStatusRequest added in v0.1.10

type ChangeUserStatusRequest struct {

	// 用户ID。
	UserId string `json:"user_id"`

	Body *OperateUserReq `json:"body,omitempty"`
}

Request Object

func (ChangeUserStatusRequest) String added in v0.1.10

func (o ChangeUserStatusRequest) String() string

type ChangeUserStatusResponse added in v0.1.10

type ChangeUserStatusResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ChangeUserStatusResponse) String added in v0.1.10

func (o ChangeUserStatusResponse) String() string

type CreateAccessPolicyReq added in v0.1.15

type CreateAccessPolicyReq struct {
	Policy *AccessPolicyInfo `json:"policy"`

	// 策略应用对象列表。
	PolicyObjectsList *[]AccessPolicyObjectInfo `json:"policy_objects_list,omitempty"`
}

func (CreateAccessPolicyReq) String added in v0.1.15

func (o CreateAccessPolicyReq) String() string

type CreateAccessPolicyRequest added in v0.1.15

type CreateAccessPolicyRequest struct {
	Body *CreateAccessPolicyReq `json:"body,omitempty"`
}

Request Object

func (CreateAccessPolicyRequest) String added in v0.1.15

func (o CreateAccessPolicyRequest) String() string

type CreateAccessPolicyResponse added in v0.1.15

type CreateAccessPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateAccessPolicyResponse) String added in v0.1.15

type CreateDesktopReq

type CreateDesktopReq struct {

	// 云桌面类型。  - DEDICATED:专属桌面。
	DesktopType CreateDesktopReqDesktopType `json:"desktop_type"`

	// 可用分区。将桌面创建到指定的可用分区。如果不指定则使用系统随机的可用分区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 套餐ID。
	ProductId string `json:"product_id"`

	// 镜像类型。默认值为private。  - private:私有镜像。 - gold:公共镜像。
	ImageType string `json:"image_type"`

	// 镜像ID,用于私有镜像创建桌面场景,配合product_id使用。
	ImageId string `json:"image_id"`

	RootVolume *Volume `json:"root_volume"`

	// 数据盘列表。
	DataVolumes *[]Volume `json:"data_volumes,omitempty"`

	// 桌面对应的网卡信息,如果不指定则使用默认网卡。
	Nics *[]Nic `json:"nics,omitempty"`

	// 桌面使用的安全组,如果不指定则默认使用桌面代理中指定的安全组。
	SecurityGroups *[]SecurityGroupInfo `json:"security_groups,omitempty"`

	// 创建桌面使用的参数列表。长度为1-50。  当前不支持一批桌面不同配置,所有桌面的配置和第一台的一致,如果第一台未设置参数,则取外层的同名参数。
	Desktops []Desktop `json:"desktops"`

	// 创建成功后是否发送邮件通知桌面用户,默认为true。此参数仅在开通云桌面服务的domain_type为LOCAL_AD时有效,为LITE_AS时无效,因为LITE_AS首次创建桌面时必须发送邮件通知桌面用户修改登录密码。
	EmailNotification *bool `json:"email_notification,omitempty"`

	// 标签列表。
	Tags *[]Tag `json:"tags,omitempty"`
}

创建桌面请求。

func (CreateDesktopReq) String

func (o CreateDesktopReq) String() string

type CreateDesktopReqDesktopType

type CreateDesktopReqDesktopType struct {
	// contains filtered or unexported fields
}

func (CreateDesktopReqDesktopType) MarshalJSON

func (c CreateDesktopReqDesktopType) MarshalJSON() ([]byte, error)

func (*CreateDesktopReqDesktopType) UnmarshalJSON

func (c *CreateDesktopReqDesktopType) UnmarshalJSON(b []byte) error

func (CreateDesktopReqDesktopType) Value

type CreateDesktopReqDesktopTypeEnum

type CreateDesktopReqDesktopTypeEnum struct {
	DEDICATED CreateDesktopReqDesktopType
}

func GetCreateDesktopReqDesktopTypeEnum

func GetCreateDesktopReqDesktopTypeEnum() CreateDesktopReqDesktopTypeEnum

type CreateDesktopRequest

type CreateDesktopRequest struct {
	Body *CreateDesktopReq `json:"body,omitempty"`
}

Request Object

func (CreateDesktopRequest) String

func (o CreateDesktopRequest) String() string

type CreateDesktopResponse

type CreateDesktopResponse struct {

	// 创建云桌面总任务id
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDesktopResponse) String

func (o CreateDesktopResponse) String() string

type CreateDesktopUserRequest

type CreateDesktopUserRequest struct {
	Body *CreateUserReq `json:"body,omitempty"`
}

Request Object

func (CreateDesktopUserRequest) String

func (o CreateDesktopUserRequest) String() string

type CreateDesktopUserResponse

type CreateDesktopUserResponse struct {

	// 用户id。
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDesktopUserResponse) String

func (o CreateDesktopUserResponse) String() string

type CreateTerminalsBindingDesktopsInfo added in v0.1.15

type CreateTerminalsBindingDesktopsInfo struct {

	// 行号,用于批量导入
	Line *int32 `json:"line,omitempty"`

	// 终端mac地址
	Mac *string `json:"mac,omitempty"`

	// 桌面名称,用于批量导入
	DesktopName *string `json:"desktop_name,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`
}

func (CreateTerminalsBindingDesktopsInfo) String added in v0.1.15

type CreateTerminalsBindingDesktopsRequest added in v0.1.15

type CreateTerminalsBindingDesktopsRequest struct {
	Body *CreateTerminalsBindingDesktopsRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTerminalsBindingDesktopsRequest) String added in v0.1.15

type CreateTerminalsBindingDesktopsRequestBody added in v0.1.15

type CreateTerminalsBindingDesktopsRequestBody struct {

	// 需要新增的MAC绑定VM策略信息列表
	BindList *[]CreateTerminalsBindingDesktopsInfo `json:"bind_list,omitempty"`
}

func (CreateTerminalsBindingDesktopsRequestBody) String added in v0.1.15

type CreateTerminalsBindingDesktopsResponse added in v0.1.15

type CreateTerminalsBindingDesktopsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateTerminalsBindingDesktopsResponse) String added in v0.1.15

type CreateUserReq

type CreateUserReq struct {

	// 用户名称。
	UserName string `json:"user_name"`

	// 用户邮箱。
	UserEmail *string `json:"user_email,omitempty"`

	// 账户过期时间,0表示永远不过期。时间格式:yyyy-MM-ddTHH:mm:ssZ或yyyy-MM-ddTHH:mm:ss.SSSZ。
	AccountExpires *string `json:"account_expires,omitempty"`

	// 是否允许用户更改密码,缺省值为true。
	EnableChangePassword *bool `json:"enable_change_password,omitempty"`

	// 下次登录是否必须更改密码,缺省值为true。
	NextLoginChangePassword *bool `json:"next_login_change_password,omitempty"`

	// 用户组的专有ID列表。
	GroupIds *[]string `json:"group_ids,omitempty"`

	// 用户描述,字符串长度区间[0, 255]。
	Description *string `json:"description,omitempty"`

	// 别名。
	AliasName *string `json:"alias_name,omitempty"`
}

func (CreateUserReq) String

func (o CreateUserReq) String() string

type DelOtpDevicesReq added in v0.1.15

type DelOtpDevicesReq struct {

	// 待解绑的otp配置id数组
	OtpIds *[]string `json:"otp_ids,omitempty"`
}

func (DelOtpDevicesReq) String added in v0.1.15

func (o DelOtpDevicesReq) String() string

type DeleteDesktopRequest

type DeleteDesktopRequest struct {

	// 桌面ID。
	DesktopId string `json:"desktop_id"`

	// 删除桌面后,如果当前用户没有其它桌面,可以删除桌面用户。true:删除用户,false:不删除用户,默认为false。
	DeleteUsers *bool `json:"delete_users,omitempty"`

	// 删除桌面后,是否给桌面用户发送系统通知邮件。true:发送,false:不发送。默认为true。
	EmailNotification *bool `json:"email_notification,omitempty"`
}

Request Object

func (DeleteDesktopRequest) String

func (o DeleteDesktopRequest) String() string

type DeleteDesktopResponse

type DeleteDesktopResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDesktopResponse) String

func (o DeleteDesktopResponse) String() string

type DeleteDesktopVolumesRequest added in v0.1.15

type DeleteDesktopVolumesRequest struct {

	// 桌面ID。
	DesktopId string `json:"desktop_id"`

	Body *DeleteVolumesReq `json:"body,omitempty"`
}

Request Object

func (DeleteDesktopVolumesRequest) String added in v0.1.15

type DeleteDesktopVolumesResponse added in v0.1.15

type DeleteDesktopVolumesResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDesktopVolumesResponse) String added in v0.1.15

type DeleteDesktopsReq

type DeleteDesktopsReq struct {

	// 待删除的桌面ID列表。
	DesktopIds []string `json:"desktop_ids"`

	// 删除桌面后,如果当前用户没有其它桌面,可以删除桌面用户。true:删除用户,false:不删除用户,默认为false。
	DeleteUsers *bool `json:"delete_users,omitempty"`

	// 是否邮件通知,true:邮件通知,false:不通知,默认值true。
	EmailNotification *bool `json:"email_notification,omitempty"`
}

批量删除桌面请求。

func (DeleteDesktopsReq) String

func (o DeleteDesktopsReq) String() string

type DeleteTerminalsBindingDesktopsRequest added in v0.1.15

type DeleteTerminalsBindingDesktopsRequest struct {
	Body *DeleteTerminalsBindingDesktopsRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteTerminalsBindingDesktopsRequest) String added in v0.1.15

type DeleteTerminalsBindingDesktopsRequestBody added in v0.1.15

type DeleteTerminalsBindingDesktopsRequestBody struct {

	// 绑定策略ID列表
	IdList *[]string `json:"id_list,omitempty"`
}

func (DeleteTerminalsBindingDesktopsRequestBody) String added in v0.1.15

type DeleteTerminalsBindingDesktopsResponse added in v0.1.15

type DeleteTerminalsBindingDesktopsResponse struct {

	// 需删除的策略ID列表
	ResultList     *[]DeleteTerminalsBindingDesktopsResult `json:"result_list,omitempty"`
	HttpStatusCode int                                     `json:"-"`
}

Response Object

func (DeleteTerminalsBindingDesktopsResponse) String added in v0.1.15

type DeleteTerminalsBindingDesktopsResult added in v0.1.15

type DeleteTerminalsBindingDesktopsResult struct {

	// 需删除的策略ID
	Id *string `json:"id,omitempty"`

	// 删除操作的结果码
	DeleteResultCode *string `json:"delete_result_code,omitempty"`

	// 删除操作的结果信息
	DeleteResultMsg *string `json:"delete_result_msg,omitempty"`
}

func (DeleteTerminalsBindingDesktopsResult) String added in v0.1.15

type DeleteUserRequest

type DeleteUserRequest struct {

	// 用户ID。
	UserId string `json:"user_id"`
}

Request Object

func (DeleteUserRequest) String

func (o DeleteUserRequest) String() string

type DeleteUserResponse

type DeleteUserResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteUserResponse) String

func (o DeleteUserResponse) String() string

type DeleteVolumesReq added in v0.1.15

type DeleteVolumesReq struct {

	// 待删除的桌面数据盘ID列表。
	VolumeIds *[]string `json:"volume_ids,omitempty"`
}

删除桌面数据盘请求。

func (DeleteVolumesReq) String added in v0.1.15

func (o DeleteVolumesReq) String() string

type Desktop

type Desktop struct {

	// 桌面所属的用户,当桌面创建成功后此用户可以登录该桌面。只允许输入大写字母、小写字母、数字、中划线(-)和下划线(_)。域类型为LITE_AD时,使用小写字母或者大写字母开头,长度范围为[1-20]。当域类型为LOCAL_AD时,用户名可以使用小写字母或者大写字母或者数字开头,长度范围为[1-20]。
	UserName string `json:"user_name"`

	// 合法用户邮箱,桌面创建成功后系统会通过发送邮件的方式通知用户。
	UserEmail string `json:"user_email"`

	// 桌面用户所属的用户组。  - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
	UserGroup *string `json:"user_group,omitempty"`

	// 桌面名,桌面名必须保证唯一。桌面名称只允许输入大写字母、小写字母、数字、中划线,以字母或数字开头、不能以中划线结尾,长度范围为1~15。
	ComputerName *string `json:"computer_name,omitempty"`

	// 桌面名称前缀,不指定\"computer_name\"时生效。
	DesktopNamePrefix *string `json:"desktop_name_prefix,omitempty"`
}

func (Desktop) String

func (o Desktop) String() string

type DesktopDetailInfo

type DesktopDetailInfo struct {

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 桌面名。
	ComputerName *string `json:"computer_name,omitempty"`

	// 桌面IP地址列表。
	Addresses map[string][]AddressInfo `json:"addresses,omitempty"`

	// IP地址列表。
	IpAddresses *[]string `json:"ip_addresses,omitempty"`

	// 桌面类型。  - DEDICATED:专属桌面。
	DesktopType *string `json:"desktop_type,omitempty"`

	// 桌面元数据。  - charging_mode 周期套餐标识,1表示包周期,0表示按需。 - image_name 创建桌面的镜像名称。 - metering.image_id 镜像ID。 - metering.resourcespeccode 桌面资源编码。 - metering.resourcetype 桌面资源类型。 - os_bit 操作系统位数:32或64。 - os_type 操作系统类型:Linux、Windows或Others。 - desktop_os_version 操作系统版本。
	Metadata map[string]string `json:"metadata,omitempty"`

	Flavor *FlavorInfo `json:"flavor,omitempty"`

	// 桌面状态。
	Status *string `json:"status,omitempty"`

	// 任务状态。  - scheduling:创建中,正在进行调度。 - block_device_mapping:创建中,正在准备磁盘。 - networking:创建中,正在准备网络。 - spawning:创建中,正在内部创建。 - rebooting:重启中。 - reboot_pending:重启中,正在下发重启。 - reboot_started:重启中,开始内部重启。 - rebooting_hard:强制重启中。 - reboot_pending_hard:强制重启中,正在下发重启。 - reboot_started_hard:强制重启中,开始内部重启。 - rebuilding:重建中。 - rebuild_block_device_mapping:重建中,正在准备磁盘。 - rebuild_spawning:重建中,正在内部重建。 - migrating:热迁移中。 - resize_prep:调整规格中,正在准备阶段。 - resize_migrating:调整规格中,正在迁移阶段。 - resize_migrated:调整规格中,已经完成迁移。 - resize_finish:调整规格中,正在完成调整。 - resize_reverting:调整规格中,正在回退调整。 - powering-off:停止中。 - powering-on:启动中。 - deleting:删除中。 - deleteFailed:删除失败。
	TaskStatus *string `json:"task_status,omitempty"`

	// 桌面创建时间。
	Created *string `json:"created,omitempty"`

	// 桌面安全组。
	SecurityGroups *[]SecurityGroupInfo `json:"security_groups,omitempty"`

	// 桌面的登录状态。  - UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。 - REGISTERED:表示桌面注册以后,等待用户连接的状态。 - CONNECTED:表示用户已经成功登录,正在使用桌面。 - DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。
	LoginStatus *string `json:"login_status,omitempty"`

	// 桌面所属用户。
	UserName *string `json:"user_name,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	RootVolume *VolumeDetail `json:"root_volume,omitempty"`

	// 数据盘列表。
	DataVolumes *[]VolumeDetail `json:"data_volumes,omitempty"`

	// 桌面用户所属的用户组。  - sudo:Linux管理员组。 - default:Linux默认用户组。 - administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。 - users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。
	UserGroup *string `json:"user_group,omitempty"`

	// 可用分区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 站点类型
	SiteType *string `json:"site_type,omitempty"`

	// 站点名字
	SiteName *string `json:"site_name,omitempty"`

	Product *ProductDetailInfo `json:"product,omitempty"`

	// 创建桌面时加入的OU名称。
	OuName *string `json:"ou_name,omitempty"`

	// 操作系统版本号。
	OsVersion *string `json:"os_version,omitempty"`

	// SID
	Sid *string `json:"sid,omitempty"`

	// 包周期产品的订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 桌面标签列表。
	Tags *[]Tag `json:"tags,omitempty"`
}

桌面详情。

func (DesktopDetailInfo) String

func (o DesktopDetailInfo) String() string

type EditUserReq

type EditUserReq struct {

	// 用户描述。
	Description *string `json:"description,omitempty"`

	// 用户邮箱。
	UserEmail *string `json:"user_email,omitempty"`

	// 账户过期时间,0表示永远不过期。
	AccountExpires *string `json:"account_expires,omitempty"`

	// 是否允许修改密码,true表示允许,false表示不允许。
	EnableChangePassword *bool `json:"enable_change_password,omitempty"`

	// 下次登录是否需要重置密码,true表示需要重置密码,false表示不需要。
	NextLoginChangePassword *bool `json:"next_login_change_password,omitempty"`

	// 密码是否永不过期,true表示密码永不过期,false表示密码会过期。
	PasswordNeverExpired *bool `json:"password_never_expired,omitempty"`

	// 账户是否禁用,true表示被禁用,false表示未禁用。
	Disabled *bool `json:"disabled,omitempty"`
}

func (EditUserReq) String

func (o EditUserReq) String() string

type ExpandDesktopsVolumesReq

type ExpandDesktopsVolumesReq struct {

	// 扩容磁盘参数。
	DesktopVolumesExpansion *[]ExpandVolumesReq `json:"desktop_volumes_expansion,omitempty"`
}

扩容磁盘请求。

func (ExpandDesktopsVolumesReq) String

func (o ExpandDesktopsVolumesReq) String() string

type ExpandVolumesReq

type ExpandVolumesReq struct {

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 磁盘ID。
	VolumeId *string `json:"volume_id,omitempty"`

	// 扩容后的磁盘大小,单位为GB。
	NewSize *int32 `json:"new_size,omitempty"`
}

单个桌面扩容磁盘参数。

func (ExpandVolumesReq) String

func (o ExpandVolumesReq) String() string

type ExpandVolumesRequest

type ExpandVolumesRequest struct {
	Body *ExpandDesktopsVolumesReq `json:"body,omitempty"`
}

Request Object

func (ExpandVolumesRequest) String

func (o ExpandVolumesRequest) String() string

type ExpandVolumesResponse

type ExpandVolumesResponse struct {

	// 扩容磁盘任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExpandVolumesResponse) String

func (o ExpandVolumesResponse) String() string

type ExportUserLoginInfoNewRequest

type ExportUserLoginInfoNewRequest struct {

	// 查询的起始时间。指定该参数后,返回的结果为此时间之后的所有登录记录。时间格式如:“2016-08-20T21:11Z”。终止时间不为空时,起始时间为必填参数。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的终止时间。指定该参数后,返回的结果为此时间之前的所有登录记录。时间格式如:“2016-08-20T21:11Z”。起始时间不为空时,终止时间为必填参数。
	EndTime *string `json:"end_time,omitempty"`

	// 登录桌面的用户名。
	UserName *string `json:"user_name,omitempty"`

	// 计算机名(操作系统信息中可见)。
	ComputerName *string `json:"computer_name,omitempty"`

	// 登录桌面的终端系统类型。
	TerminalType *string `json:"terminal_type,omitempty"`

	// 导出语言,默认英文。 - zh_CN:中文 - en_US:英文
	Language *string `json:"language,omitempty"`
}

Request Object

func (ExportUserLoginInfoNewRequest) String

type ExportUserLoginInfoNewResponse

type ExportUserLoginInfoNewResponse struct {
	HttpStatusCode int           `json:"-"`
	Body           io.ReadCloser `json:"-" type:"stream"`
}

Response Object

func (ExportUserLoginInfoNewResponse) Consume

func (o ExportUserLoginInfoNewResponse) Consume(writer io.Writer) (int64, error)

func (ExportUserLoginInfoNewResponse) String

type FlavorInfo

type FlavorInfo struct {

	// 桌面对应的规格ID。
	Id *string `json:"id,omitempty"`

	// 桌面对应规格的相关标记快捷链接信息。
	Links *[]FlavorLinkInfo `json:"links,omitempty"`
}

func (FlavorInfo) String

func (o FlavorInfo) String() string

type FlavorLinkInfo

type FlavorLinkInfo struct {

	// 快捷链接标记名称。
	Rel *string `json:"rel,omitempty"`

	// 对应快捷链接。
	Hrel *string `json:"hrel,omitempty"`
}

func (FlavorLinkInfo) String

func (o FlavorLinkInfo) String() string

type ImageInfo

type ImageInfo struct {

	// 镜像ID。
	Id *string `json:"id,omitempty"`

	// 镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private。
	ImageType *ImageInfoImageType `json:"image_type,omitempty"`

	// 操作系统类型,目前取值Linux, Windows,Other。
	OsType *string `json:"os_type,omitempty"`

	// 操作系统具体版本。
	OsVersion *string `json:"os_version,omitempty"`

	// 镜像格式,目前支持vhd,raw,qcow2,zvhd2格式。
	DiskFormat *string `json:"disk_format,omitempty"`

	// 镜像名称。
	Name *string `json:"name,omitempty"`

	// 镜像运行需要的最小内存,单位为MB。参数取值依据弹性云服务器的规格限制,一般设置为0。
	MinRam *int32 `json:"min_ram,omitempty"`

	// 镜像运行需要的最小磁盘,单位为GB 。取值为40~1024GB。
	MinDisk *int32 `json:"min_disk,omitempty"`

	// 镜像的产品编码。
	ProductCode *string `json:"product_code,omitempty"`
}

func (ImageInfo) String

func (o ImageInfo) String() string

type ImageInfoImageType

type ImageInfoImageType struct {
	// contains filtered or unexported fields
}

func (ImageInfoImageType) MarshalJSON

func (c ImageInfoImageType) MarshalJSON() ([]byte, error)

func (*ImageInfoImageType) UnmarshalJSON

func (c *ImageInfoImageType) UnmarshalJSON(b []byte) error

func (ImageInfoImageType) Value

func (c ImageInfoImageType) Value() string

type ImageInfoImageTypeEnum

type ImageInfoImageTypeEnum struct {
	GOLD    ImageInfoImageType
	PRIVATE ImageInfoImageType
}

func GetImageInfoImageTypeEnum

func GetImageInfoImageTypeEnum() ImageInfoImageTypeEnum

type JobDetailInfo

type JobDetailInfo struct {

	// 任务id。
	Id *string `json:"id,omitempty"`

	// 任务类型。
	JobType *string `json:"job_type,omitempty"`

	Entities *JobEntities `json:"entities,omitempty"`

	// 任务创建时间。
	BeginTime *string `json:"begin_time,omitempty"`

	// 任务结束时间。
	EndTime *string `json:"end_time,omitempty"`

	// 任务状态。
	Status *string `json:"status,omitempty"`

	// 任务执行失败时的错误码。
	ErrorCode *string `json:"error_code,omitempty"`

	// 任务失败原因。
	FailReason *string `json:"fail_reason,omitempty"`

	// 任务失败原因信息。
	Message *string `json:"message,omitempty"`

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`
}

func (JobDetailInfo) String

func (o JobDetailInfo) String() string

type JobEntities

type JobEntities struct {

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 套餐ID。
	ProductId *string `json:"product_id,omitempty"`

	// 用户名。
	UserName *string `json:"user_name,omitempty"`
}

func (JobEntities) String

func (o JobEntities) String() string

type ListAccessPoliciesRequest added in v0.1.15

type ListAccessPoliciesRequest struct {

	// 每页数量,范围0-100,默认100。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,范围0-99,默认0。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListAccessPoliciesRequest) String added in v0.1.15

func (o ListAccessPoliciesRequest) String() string

type ListAccessPoliciesResponse added in v0.1.15

type ListAccessPoliciesResponse struct {

	// 查询接入策略响应。
	Policies *[]AccessPolicyDetailInfo `json:"policies,omitempty"`

	// 策略总数。
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAccessPoliciesResponse) String added in v0.1.15

type ListAccessPolicyObjectsRequest added in v0.1.15

type ListAccessPolicyObjectsRequest struct {

	// 接入策略id。
	AccessPolicyId string `json:"access_policy_id"`

	// 每页数量,范围0-2000,默认10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,范围0-1999,默认0。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListAccessPolicyObjectsRequest) String added in v0.1.15

type ListAccessPolicyObjectsResponse added in v0.1.15

type ListAccessPolicyObjectsResponse struct {

	// 查询接入策略应用对象响应。
	PolicyObjectsList *[]AccessPolicyObjectInfo `json:"policy_objects_list,omitempty"`

	// 对象总数。
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAccessPolicyObjectsResponse) String added in v0.1.15

type ListAvailabilityZonesRequest

type ListAvailabilityZonesRequest struct {
}

Request Object

func (ListAvailabilityZonesRequest) String

type ListAvailabilityZonesResponse

type ListAvailabilityZonesResponse struct {

	// 云桌面支持的可用分区列表。
	AvailabilityZones *[]AvailabilityZone `json:"availability_zones,omitempty"`

	// 云桌面支持的可用分区列表总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAvailabilityZonesResponse) String

type ListDesktopsDetailRequest

type ListDesktopsDetailRequest struct {

	// 桌面状态。  - ACTIVE:运行中。 - SHUTOFF:关机。 - ERROR:异常。
	Status *string `json:"status,omitempty"`

	// 桌面所属用户。
	UserName *string `json:"user_name,omitempty"`

	// 桌面名。
	ComputerName *string `json:"computer_name,omitempty"`

	// 桌面IP地址。
	DesktopIp *string `json:"desktop_ip,omitempty"`

	// 用于分页查询,查询的起始记录序号,从0开始。
	Offset *int32 `json:"offset,omitempty"`

	// 用于分页查询,取值范围0-500,默认值500。
	Limit *int32 `json:"limit,omitempty"`

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 桌面类型。  - DEDICATED:专属桌面。
	DesktopType *string `json:"desktop_type,omitempty"`

	// 桌面的标签。样例:  - key1=value1。 - key1=value1,key2=value2。
	Tag *string `json:"tag,omitempty"`
}

Request Object

func (ListDesktopsDetailRequest) String

func (o ListDesktopsDetailRequest) String() string

type ListDesktopsDetailResponse

type ListDesktopsDetailResponse struct {

	// 桌面详情列表。
	Desktops *[]DesktopDetailInfo `json:"desktops,omitempty"`

	// 桌面总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDesktopsDetailResponse) String

type ListDesktopsRequest

type ListDesktopsRequest struct {

	// 桌面所属用户。
	UserName *string `json:"user_name,omitempty"`

	// 桌面名。
	ComputerName *string `json:"computer_name,omitempty"`

	// 桌面IP地址。
	DesktopIp *string `json:"desktop_ip,omitempty"`

	// 用于分页查询,查询的起始记录序号,从0开始。
	Offset *int32 `json:"offset,omitempty"`

	// 用于分页查询,取值范围0-1000,默认值1000。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListDesktopsRequest) String

func (o ListDesktopsRequest) String() string

type ListDesktopsResponse

type ListDesktopsResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 桌面信息。
	Desktops       *[]SimpleDesktopInfo `json:"desktops,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListDesktopsResponse) String

func (o ListDesktopsResponse) String() string

type ListHistoryOnlineInfoNewRequest

type ListHistoryOnlineInfoNewRequest struct {

	// 查询的起始时间。指定该参数后,返回的结果为此时间之后的所有登录记录。时间格式如:“2016-08-20T21:11Z”。终止时间不为空时,起始时间为必填参数。类型查询优先于时间查询。类型查询和时间查询必须有一个存在。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的结束时间。指定该参数后,返回的结果为此时间之前的所有登录记录。时间格式如:“2016-08-20T21:11Z”。起始时间不为空时,终止时间为必填参数。类型查询优先于时间查询。类型查询和时间查询必须有一个存在。
	EndTime *string `json:"end_time,omitempty"`

	// 查询类型,类型查询优先于时间查询。类型查询和时间查询必须有一个存在。 -MONTH:按月查询。 -WEEK:按周查询。 -DAY:按天查询。
	QueryType *string `json:"query_type,omitempty"`
}

Request Object

func (ListHistoryOnlineInfoNewRequest) String

type ListHistoryOnlineInfoNewResponse

type ListHistoryOnlineInfoNewResponse struct {

	// 返回前端历史登录信息。查询的时间和计数之间用冒号分隔。查询的时间,按Day查询或时间段在同一天时,按小时计数,其他场景为按天计数。
	TimeCounts     *[]string `json:"time_counts,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListHistoryOnlineInfoNewResponse) String

type ListImagesRequest

type ListImagesRequest struct {

	// 产品镜像的操作系统类型,如Windows。
	OsType *string `json:"os_type,omitempty"`

	// 镜像类型。 -gold  公共镜像 -private  私有镜像
	ImageType *string `json:"image_type,omitempty"`

	// 镜像系统类型,如Windows。
	Platform *string `json:"platform,omitempty"`

	// 镜像架构:x86。
	Architecture *string `json:"architecture,omitempty"`

	// 套餐系列
	PackageType *string `json:"package_type,omitempty"`

	// 每页数量,范围0-100,默认100。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,默认0。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListImagesRequest) String

func (o ListImagesRequest) String() string

type ListImagesResponse

type ListImagesResponse struct {

	// 云桌面支持的产品镜像列表。
	Images *[]ImageInfo `json:"images,omitempty"`

	// 对象总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListImagesResponse) String

func (o ListImagesResponse) String() string

type ListItaSubJobsRequest

type ListItaSubJobsRequest struct {

	// 任务状态 - SUCCESS:成功。 - RUNNING:运行中。 - FAILED:失败。 - WAITING:等待。
	Status *string `json:"status,omitempty"`

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 任务类型  - createDesktops:创建桌面任务。  - applyWorkspace:开通云桌面服务。  - cancelWorkspace:注销云桌面服务。  - expandVolumes:  扩容磁盘。  - addVolumes: 添加磁盘。
	JobType *string `json:"job_type,omitempty"`

	// 用于分页查询,取值范围0~1000,默认1000。
	Limit *int32 `json:"limit,omitempty"`

	// 用于分页查询,查询的起始记录序号,从0开始。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListItaSubJobsRequest) String

func (o ListItaSubJobsRequest) String() string

type ListItaSubJobsResponse

type ListItaSubJobsResponse struct {

	// 任务列表总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 任务列表。
	Jobs           *[]JobDetailInfo `json:"jobs,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListItaSubJobsResponse) String

func (o ListItaSubJobsResponse) String() string

type ListLoginRecordsNewRequest

type ListLoginRecordsNewRequest struct {

	// 查询的起始时间。指定该参数后,返回的结果为此时间之后的所有登录记录。时间格式如:“2016-08-20T21:11Z”。终止时间不为空时,起始时间为必填参数。
	StartTime *string `json:"start_time,omitempty"`

	// 查询的终止时间。指定该参数后,返回的结果为此时间之前的所有登录记录。时间格式如:“2016-08-20T21:11Z”。起始时间不为空时,终止时间为必填参数。
	EndTime *string `json:"end_time,omitempty"`

	// 登录桌面的用户名。
	UserName *string `json:"user_name,omitempty"`

	// 计算机名(操作系统信息中可见)。
	ComputerName *string `json:"computer_name,omitempty"`

	// 登录桌面的终端系统类型,当前支持:WI(云桌面客户端)。
	TerminalType *string `json:"terminal_type,omitempty"`

	// 用于分页查询,取值范围0-255,默认值20。
	Limit *string `json:"limit,omitempty"`

	// 用于分页查询,查询的起始记录序号,从0开始。
	Offset *string `json:"offset,omitempty"`
}

Request Object

func (ListLoginRecordsNewRequest) String

type ListLoginRecordsNewResponse

type ListLoginRecordsNewResponse struct {

	// 用户登录记录总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 用户登录记录。
	Records        *[]Record `json:"records,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListLoginRecordsNewResponse) String

type ListOtpDevicesByUserIdRequest added in v0.1.15

type ListOtpDevicesByUserIdRequest struct {

	// 用户ID。
	UserId string `json:"user_id"`
}

Request Object

func (ListOtpDevicesByUserIdRequest) String added in v0.1.15

type ListOtpDevicesByUserIdResponse added in v0.1.15

type ListOtpDevicesByUserIdResponse struct {

	// otp设备
	OtpDevices     *[]OtpDevice `json:"otp_devices,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListOtpDevicesByUserIdResponse) String added in v0.1.15

type ListProductsRequest

type ListProductsRequest struct {

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 可用分区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 产品套餐的操作系统类型,当前支持:Windows、Linux。
	OsType *string `json:"os_type,omitempty"`

	// 周期套餐标识。0表示包周期,1表示按需。
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 架构类型,当前支持:arm、x86。
	Architecture *string `json:"architecture,omitempty"`

	// 套餐系列。
	PackageType *string `json:"package_type,omitempty"`

	// 每页数量,范围0-100,默认100。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,默认0。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListProductsRequest) String

func (o ListProductsRequest) String() string

type ListProductsResponse

type ListProductsResponse struct {

	// 套餐所支持操作系统类型。请求参数有os_type时,才有此参数。
	OsType *string `json:"os_type,omitempty"`

	// 产品架构。请求参数有package_type=agile时,才有此参数。
	Architecture *string `json:"architecture,omitempty"`

	// 可用分区。请求参数有availability_zone时,才有此参数。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 产品列表。
	Products *[]ProductInfo `json:"products,omitempty"`

	// 对象总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListProductsResponse) String

func (o ListProductsResponse) String() string

type ListTerminalsBindingDesktopsConfigRequest added in v0.1.15

type ListTerminalsBindingDesktopsConfigRequest struct {
}

Request Object

func (ListTerminalsBindingDesktopsConfigRequest) String added in v0.1.15

type ListTerminalsBindingDesktopsConfigResponse added in v0.1.15

type ListTerminalsBindingDesktopsConfigResponse struct {

	// 绑定开关,只取值on或off
	TcBindSwitch   *ListTerminalsBindingDesktopsConfigResponseTcBindSwitch `json:"tc_bind_switch,omitempty"`
	HttpStatusCode int                                                     `json:"-"`
}

Response Object

func (ListTerminalsBindingDesktopsConfigResponse) String added in v0.1.15

type ListTerminalsBindingDesktopsConfigResponseTcBindSwitch added in v0.1.15

type ListTerminalsBindingDesktopsConfigResponseTcBindSwitch struct {
	// contains filtered or unexported fields
}

func (ListTerminalsBindingDesktopsConfigResponseTcBindSwitch) MarshalJSON added in v0.1.15

func (*ListTerminalsBindingDesktopsConfigResponseTcBindSwitch) UnmarshalJSON added in v0.1.15

func (ListTerminalsBindingDesktopsConfigResponseTcBindSwitch) Value added in v0.1.15

type ListTerminalsBindingDesktopsConfigResponseTcBindSwitchEnum added in v0.1.15

type ListTerminalsBindingDesktopsConfigResponseTcBindSwitchEnum struct {
	ON  ListTerminalsBindingDesktopsConfigResponseTcBindSwitch
	OFF ListTerminalsBindingDesktopsConfigResponseTcBindSwitch
}

func GetListTerminalsBindingDesktopsConfigResponseTcBindSwitchEnum added in v0.1.15

func GetListTerminalsBindingDesktopsConfigResponseTcBindSwitchEnum() ListTerminalsBindingDesktopsConfigResponseTcBindSwitchEnum

type ListTerminalsBindingDesktopsRequest added in v0.1.15

type ListTerminalsBindingDesktopsRequest struct {

	// 桌面名。
	ComputerName *string `json:"computer_name,omitempty"`

	// mac地址。
	Mac *string `json:"mac,omitempty"`

	// 起始数。
	Offset int32 `json:"offset"`

	// 数量。
	Limit int32 `json:"limit"`

	// 是否只查询结果总条数
	CountOnly *bool `json:"count_only,omitempty"`
}

Request Object

func (ListTerminalsBindingDesktopsRequest) String added in v0.1.15

type ListTerminalsBindingDesktopsResponse added in v0.1.15

type ListTerminalsBindingDesktopsResponse struct {

	// MAC绑定VM信息列表
	BindList *[]TerminalsBindingDesktopsInfo `json:"bind_list,omitempty"`

	// 返回结果总条数
	TotalNum       *int32 `json:"total_num,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListTerminalsBindingDesktopsResponse) String added in v0.1.15

type ListUserDetailRequest

type ListUserDetailRequest struct {

	// 用户ID。
	UserId string `json:"user_id"`
}

Request Object

func (ListUserDetailRequest) String

func (o ListUserDetailRequest) String() string

type ListUserDetailResponse

type ListUserDetailResponse struct {
	UserDetail     *UserDetail `json:"user_detail,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListUserDetailResponse) String

func (o ListUserDetailResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {

	// 桌面用户名,长度范围为1-20,不能包含特殊字符,不能以数字开头。
	UserName *string `json:"user_name,omitempty"`

	// 用于分页查询,返回用户数量限制。如果不指定,则返回所有符合条件的用户。
	Limit *string `json:"limit,omitempty"`

	// 分页查询起始条数。
	Offset *string `json:"offset,omitempty"`

	// 用户描述查询,模糊匹配。
	Description *string `json:"description,omitempty"`
}

Request Object

func (ListUsersRequest) String

func (o ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {

	// 用户总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 用户列表。
	Users          *[]User `json:"users,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListUsersResponse) String

func (o ListUsersResponse) String() string

type ListWorkspacesRequest

type ListWorkspacesRequest struct {
}

Request Object

func (ListWorkspacesRequest) String

func (o ListWorkspacesRequest) String() string

type ListWorkspacesResponse

type ListWorkspacesResponse struct {

	// 唯一标识ID。
	Id *string `json:"id,omitempty"`

	AdDomains *AdInfo `json:"ad_domains,omitempty"`

	// VPC ID。
	VpcId *string `json:"vpc_id,omitempty"`

	// VPC名称。
	VpcName *string `json:"vpc_name,omitempty"`

	// 接入方式。 - INTERNET:表示互联网接入。 - DEDICATED:表示专线接入。 - BOTH:表示同时支持互联网接入和专线接入。
	AccessMode *string `json:"access_mode,omitempty"`

	// 专线接入网段,只有access_mode为“DEDICATED”或“BOTH”时才会返回该参数。
	DedicatedSubnets *string `json:"dedicated_subnets,omitempty"`

	// 专线接入地址,只有access_mode为“DEDICATED”或“BOTH”时才会返回该参数。
	DedicatedAccessAddress *string `json:"dedicated_access_address,omitempty"`

	// 互联网接入地址,只有access_mode为“INTERNET”或“BOTH”时才会返回该参数。
	InternetAccessAddress *string `json:"internet_access_address,omitempty"`

	// 互联网接入端口。
	InternetAccessPort *string `json:"internet_access_port,omitempty"`

	// 云办公服务的状态。 - PREPARING:准备开通。 - SUBSCRIBING:开通中。 - SUBSCRIBED:已开通。 - SUBSCRIPTION_FAILED:开通失败。 - DEREGISTERING:销户中。 - DEREGISTRATION_FAILED:销户失败。 - CLOSED:已销户未开通。
	Status *ListWorkspacesResponseStatus `json:"status,omitempty"`

	// 互联网和专线切换任务的状态。 - init: 初始化 - 开通服务后的初始状态。 - available: 可用 - 执行过任务且成功后恢复的正常状态。 - internetOpening: 开启中 - 开通互联网接入开启中。 - dedicatedOpening: 开启中 - 开通专线接入开启中。 - internetOpenFailed: 开启失败 - 开通互联网接入开启失败。 - dedicatedOpenFailed: 开启失败 - 开通专线接入开启失败。 - openSuccess: 开启成功 - 开通互联网接入成功。 - internetClosing: 关闭中 - 关闭互联网接入关闭中。 - dedicatedClosing: 关闭中 - 关闭专线接入关闭中。 - internetCloseFailed: 关闭失败 - 关闭互联网接入方式失败。 - dedicatedCloseFailed: 关闭失败 - 关闭专线接入方式失败。 - closeSuccess: 关闭成功 - 关闭接入方式成功。 - internetAccessPortModifying: 互联网接入端口修改中。 - internetAccessPortModifyFailed: 端口修改失败。
	AccessStatus *string `json:"access_status,omitempty"`

	// 业务子网,可以指定返回的网络ID订购桌面。
	SubnetIds *[]SubnetInfo `json:"subnet_ids,omitempty"`

	// 管理组件的子网网段。
	ManagementSubnetCidr *string `json:"management_subnet_cidr,omitempty"`

	InfrastructureSecurityGroup *SecurityGroup `json:"infrastructure_security_group,omitempty"`

	DesktopSecurityGroup *SecurityGroup `json:"desktop_security_group,omitempty"`

	// 是否可以取消服务。
	Closable *bool `json:"closable,omitempty"`

	// 配置状态。 - \"0\": 开通服务成功,且对接AD成功。 - \"1\": 开通服务成功,但AD配置失败。 - \"2\": 开通服务成功,但AD配置失败后存在其他错误。 - \"3\": 开通服务成功,AD未开启对接。
	ConfigStatus *string `json:"config_status,omitempty"`

	// 开通服务或注销服务的进度,格式为百分比,如:100%。
	Progress *string `json:"progress,omitempty"`

	// 开通服务或取消服务的任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 失败错误码。
	FailCode *int32 `json:"fail_code,omitempty"`

	// 失败原因。
	FailReason *string `json:"fail_reason,omitempty"`

	// 企业ID。
	EnterpriseId *string `json:"enterprise_id,omitempty"`

	// 桌面退订是否发送邮件通知。
	IsSendEmail    *bool `json:"is_send_email,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ListWorkspacesResponse) String

func (o ListWorkspacesResponse) String() string

type ListWorkspacesResponseStatus

type ListWorkspacesResponseStatus struct {
	// contains filtered or unexported fields
}

func (ListWorkspacesResponseStatus) MarshalJSON

func (c ListWorkspacesResponseStatus) MarshalJSON() ([]byte, error)

func (*ListWorkspacesResponseStatus) UnmarshalJSON

func (c *ListWorkspacesResponseStatus) UnmarshalJSON(b []byte) error

func (ListWorkspacesResponseStatus) Value

type ListWorkspacesResponseStatusEnum

type ListWorkspacesResponseStatusEnum struct {
	PREPARING             ListWorkspacesResponseStatus
	SUBSCRIBING           ListWorkspacesResponseStatus
	SUBSCRIBED            ListWorkspacesResponseStatus
	SUBSCRIPTION_FAILED   ListWorkspacesResponseStatus
	DEREGISTERING         ListWorkspacesResponseStatus
	DEREGISTRATION_FAILED ListWorkspacesResponseStatus
	CLOSED                ListWorkspacesResponseStatus
}

func GetListWorkspacesResponseStatusEnum

func GetListWorkspacesResponseStatusEnum() ListWorkspacesResponseStatusEnum

type ModifyWorkspaceAttributesReq

type ModifyWorkspaceAttributesReq struct {
	AdInfo *AdDomainInfo `json:"ad_info,omitempty"`

	AdDomains *AdDomain `json:"ad_domains,omitempty"`

	// 接入模式。 - INTERNET:互联网接入。 - DEDICATED:专线接入。 - BOTH:代表两种接入方式都支持。
	AccessMode *ModifyWorkspaceAttributesReqAccessMode `json:"access_mode,omitempty"`

	// 专线接入网段列表,多个网段信息用分号隔开,列表长度不超过5。
	DedicatedSubnets *string `json:"dedicated_subnets,omitempty"`

	// 子网的网络ID列表。
	SubnetIds *[]string `json:"subnet_ids,omitempty"`

	// 互联网接入端口。
	InternetAccessPort *string `json:"internet_access_port,omitempty"`

	// 企业ID。
	EnterpriseId *string `json:"enterprise_id,omitempty"`

	// 桌面退订是否发送邮件通知。
	IsSendEmail *bool `json:"is_send_email,omitempty"`
}

func (ModifyWorkspaceAttributesReq) String

type ModifyWorkspaceAttributesReqAccessMode

type ModifyWorkspaceAttributesReqAccessMode struct {
	// contains filtered or unexported fields
}

func (ModifyWorkspaceAttributesReqAccessMode) MarshalJSON

func (c ModifyWorkspaceAttributesReqAccessMode) MarshalJSON() ([]byte, error)

func (*ModifyWorkspaceAttributesReqAccessMode) UnmarshalJSON

func (c *ModifyWorkspaceAttributesReqAccessMode) UnmarshalJSON(b []byte) error

func (ModifyWorkspaceAttributesReqAccessMode) Value

type Nic

type Nic struct {

	// 网卡对应的子网ID。
	SubnetId string `json:"subnet_id"`
}

func (Nic) String

func (o Nic) String() string

type OperateUserReq added in v0.1.10

type OperateUserReq struct {

	// 操作类型,可选值为: - LOCK:锁定用户。 - UNLOCK:解锁用户。 - RESET_PWD:重置用户密码。
	OpType OperateUserReqOpType `json:"op_type"`
}

func (OperateUserReq) String added in v0.1.10

func (o OperateUserReq) String() string

type OperateUserReqOpType added in v0.1.10

type OperateUserReqOpType struct {
	// contains filtered or unexported fields
}

func (OperateUserReqOpType) MarshalJSON added in v0.1.10

func (c OperateUserReqOpType) MarshalJSON() ([]byte, error)

func (*OperateUserReqOpType) UnmarshalJSON added in v0.1.10

func (c *OperateUserReqOpType) UnmarshalJSON(b []byte) error

func (OperateUserReqOpType) Value added in v0.1.10

func (c OperateUserReqOpType) Value() string

type OperateUserReqOpTypeEnum added in v0.1.10

type OperateUserReqOpTypeEnum struct {
	LOCK      OperateUserReqOpType
	UNLOCK    OperateUserReqOpType
	RESET_PWD OperateUserReqOpType
}

func GetOperateUserReqOpTypeEnum added in v0.1.10

func GetOperateUserReqOpTypeEnum() OperateUserReqOpTypeEnum

type OtpConfigInfo added in v0.1.15

type OtpConfigInfo struct {

	// 是否启用
	Enable *bool `json:"enable,omitempty"`

	ReceiveMode *ReceiveModeEnum `json:"receive_mode,omitempty"`

	// 辅助认证服务器地址
	AuthUrl *string `json:"auth_url,omitempty"`

	// 认证服务接入账号
	AppId *string `json:"app_id,omitempty"`

	// 认证服务接入密码
	AppSecret *string `json:"app_secret,omitempty"`

	AuthServerAccessMode *AuthServerAccessMode `json:"auth_server_access_mode,omitempty"`

	// pem格式证书内容
	CertContent *string `json:"cert_content,omitempty"`
}

OTP辅助认证方式配置

func (OtpConfigInfo) String added in v0.1.15

func (o OtpConfigInfo) String() string

type OtpDevice added in v0.1.15

type OtpDevice struct {

	// 用户otp 信息id
	Id *string `json:"id,omitempty"`

	// 用户id
	UserId *string `json:"user_id,omitempty"`

	// 用户名
	UserName *string `json:"user_name,omitempty"`

	// 用户otp设备状态 UNREGISTER: 未绑定 REGISTERED:已绑定
	Status *OtpDeviceStatus `json:"status,omitempty"`

	// 用户otp设备绑定时间
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
}

func (OtpDevice) String added in v0.1.15

func (o OtpDevice) String() string

type OtpDeviceStatus added in v0.1.15

type OtpDeviceStatus struct {
	// contains filtered or unexported fields
}

func (OtpDeviceStatus) MarshalJSON added in v0.1.15

func (c OtpDeviceStatus) MarshalJSON() ([]byte, error)

func (*OtpDeviceStatus) UnmarshalJSON added in v0.1.15

func (c *OtpDeviceStatus) UnmarshalJSON(b []byte) error

func (OtpDeviceStatus) Value added in v0.1.15

func (c OtpDeviceStatus) Value() string

type OtpDeviceStatusEnum added in v0.1.15

type OtpDeviceStatusEnum struct {
	UNREGISTER OtpDeviceStatus
	REGISTERED OtpDeviceStatus
}

func GetOtpDeviceStatusEnum added in v0.1.15

func GetOtpDeviceStatusEnum() OtpDeviceStatusEnum

type ProductDetailInfo

type ProductDetailInfo struct {

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品规格ID。
	FlavorId *string `json:"flavor_id,omitempty"`

	// 产品类型。  - BASE:表示产品基础套餐,套餐镜像中不包括除操作系统之外的其他商业软件,私有镜像场景只能使用此类套餐。
	Type *string `json:"type,omitempty"`

	// CPU
	Cpu *string `json:"cpu,omitempty"`

	// 内存。
	Memory *string `json:"memory,omitempty"`

	// 产品描述。
	Descriptions *string `json:"descriptions,omitempty"`

	// 周期套餐标识,1表示包周期,0表示按需。
	ChargeMode *string `json:"charge_mode,omitempty"`
}

func (ProductDetailInfo) String

func (o ProductDetailInfo) String() string

type ProductInfo

type ProductInfo struct {

	// 产品id。
	ProductId *string `json:"product_id,omitempty"`

	// 规格ID。
	FlavorId *string `json:"flavor_id,omitempty"`

	// 产品类型。取值为: BASE:表示产品基础套餐,套餐镜像中不包括除操作系统之外的其他商业软件,私有镜像场景只能使用此类套餐。
	Type *string `json:"type,omitempty"`

	// 产品架构,当前支持:arm、x86。
	Architecture *string `json:"architecture,omitempty"`

	// cpu。
	Cpu *string `json:"cpu,omitempty"`

	// cpu描述。
	CpuDesc *string `json:"cpu_desc,omitempty"`

	// 内存。
	Memory *string `json:"memory,omitempty"`

	// 是否是GPU类型的规格。
	IsGpu *bool `json:"is_gpu,omitempty"`

	// 系统盘类型。
	SystemDiskType *string `json:"system_disk_type,omitempty"`

	// 系统盘大小,单位GB。
	SystemDiskSize *string `json:"system_disk_size,omitempty"`

	// GPU描述。
	GpuDesc *string `json:"gpu_desc,omitempty"`

	// 话单开关,默认on,on-出话单模式,off-关话单模式,只支持反序列化,不支持序列化,不在接口中展示。
	BillSwitch *string `json:"bill_switch,omitempty"`

	// 产品描述。
	Descriptions *string `json:"descriptions,omitempty"`

	// 周期套餐标识。0表示包周期,1表示按需。
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 套餐计费是否包含了数据盘,off-不包含。
	ContainDataDisk *bool `json:"contain_data_disk,omitempty"`

	// 资源规格。
	ResourceType *string `json:"resource_type,omitempty"`

	// 云服务编码。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 磁盘产品类型。
	VolumeProductType *string `json:"volume_product_type,omitempty"`

	// 该产品套餐支持的专有域id(domainId)。
	DomainIds *[]string `json:"domain_ids,omitempty"`

	// 产品状态,normal:正常、sellout:售空、abandon:下线。
	Status *string `json:"status,omitempty"`

	// 专属主机的子产品。
	SubProductList *[]string `json:"sub_product_list,omitempty"`

	// 套餐类型。 - ultimate:尊享版 - enterprise:企业版 - general: 通用办公版 - workstation: 云工作站 - dedicated: 专属办公版 - solver: 解算版 - agile: 敏捷办公版
	PackageType *string `json:"package_type,omitempty"`
}

func (ProductInfo) String

func (o ProductInfo) String() string

type QuotaNoLimit added in v0.1.16

type QuotaNoLimit struct {

	// 配额资源列表
	Resources []ResourceNoLimit `json:"resources"`
}

租户配额对象,不包含最大值和最小值。

func (QuotaNoLimit) String added in v0.1.16

func (o QuotaNoLimit) String() string

type ReceiveModeEnum added in v0.1.15

type ReceiveModeEnum struct {
	// contains filtered or unexported fields
}

验证码接收模式 VMFA:虚拟MFA设备 HMFA:硬件MFA设备

func (ReceiveModeEnum) MarshalJSON added in v0.1.15

func (c ReceiveModeEnum) MarshalJSON() ([]byte, error)

func (*ReceiveModeEnum) UnmarshalJSON added in v0.1.15

func (c *ReceiveModeEnum) UnmarshalJSON(b []byte) error

func (ReceiveModeEnum) Value added in v0.1.15

func (c ReceiveModeEnum) Value() string

type ReceiveModeEnumEnum added in v0.1.15

type ReceiveModeEnumEnum struct {
	VMFA ReceiveModeEnum
	HMFA ReceiveModeEnum
}

func GetReceiveModeEnumEnum added in v0.1.15

func GetReceiveModeEnumEnum() ReceiveModeEnumEnum

type Record

type Record struct {

	// 计算机名。
	ComputerName *string `json:"computer_name,omitempty"`

	// 用户名。
	UserName *string `json:"user_name,omitempty"`

	// 终端MAC地址。
	TerminalMac *string `json:"terminal_mac,omitempty"`

	// 终端名称。
	TerminalName *string `json:"terminal_name,omitempty"`

	// 终端IP。
	TerminalIp *string `json:"terminal_ip,omitempty"`

	// AccessClient版本。
	ClientVersion *string `json:"client_version,omitempty"`

	// 终端系统类型。
	TerminalType *string `json:"terminal_type,omitempty"`

	// AccessAgent版本。
	AgentVersion *string `json:"agent_version,omitempty"`

	// 桌面IP。
	DesktopIp *string `json:"desktop_ip,omitempty"`

	// 开始连接时间。
	ConnectionStartTime *string `json:"connection_start_time,omitempty"`

	// 建立连接时间。
	ConnectionSetupTime *string `json:"connection_setup_time,omitempty"`

	// 结束连接时间。
	ConnectionEndTime *string `json:"connection_end_time,omitempty"`

	// 是否重连。
	IsReconnect *bool `json:"is_reconnect,omitempty"`

	// 连接失败原因。
	ConnectionFailureReason *string `json:"connection_failure_reason,omitempty"`
}

func (Record) String

func (o Record) String() string

type ResizeDesktopData

type ResizeDesktopData struct {

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`
}

变更规格的桌面对象。

func (ResizeDesktopData) String

func (o ResizeDesktopData) String() string

type ResizeDesktopJobResult

type ResizeDesktopJobResult struct {

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 任务ID。
	JobId *string `json:"job_id,omitempty"`
}

变更桌面规格Job响应。

func (ResizeDesktopJobResult) String

func (o ResizeDesktopJobResult) String() string

type ResizeDesktopReq

type ResizeDesktopReq struct {

	// 桌面数据。支持批量按需类型桌面变更为同一规格。
	Desktops []ResizeDesktopData `json:"desktops"`

	// 套餐id。批量变更时,则变更为同一规格的虚拟机。
	ProductId string `json:"product_id"`

	// 是否支持开机状态下执行变更规格操作。固定传值STOP_DESKTOP,如果桌面处于开机状态,会先关机再变更规格。
	Mode string `json:"mode"`
}

变更规格请求。

func (ResizeDesktopReq) String

func (o ResizeDesktopReq) String() string

type ResizeDesktopRequest

type ResizeDesktopRequest struct {
	Body *ResizeDesktopReq `json:"body,omitempty"`
}

Request Object

func (ResizeDesktopRequest) String

func (o ResizeDesktopRequest) String() string

type ResizeDesktopResponse

type ResizeDesktopResponse struct {

	// 按需桌面变更规格返回的任务信息。
	Jobs           *[]ResizeDesktopJobResult `json:"jobs,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ResizeDesktopResponse) String

func (o ResizeDesktopResponse) String() string

type ResourceNoLimit added in v0.1.16

type ResourceNoLimit struct {

	// 资源类别。 general_instances:普通桌面 ram:内存 cores:CPU volumes:磁盘数量 volume_gigabytes:磁盘容量 gpu_instances:GPU桌面 deh:云办公主机 users:用户 policy_groups: 策略组 Cores: CPU(配额工具使用)
	Type *string `json:"type,omitempty"`

	// 配额数
	Quota *int32 `json:"quota,omitempty"`

	// 配额已用值
	Used *int32 `json:"used,omitempty"`

	// 配额单位
	Unit *string `json:"unit,omitempty"`
}

配额资源,不包含最大最小限制值。

func (ResourceNoLimit) String added in v0.1.16

func (o ResourceNoLimit) String() string

type SecurityGroup

type SecurityGroup struct {

	// 安全组ID。
	Id string `json:"id"`

	// 安全组名称。
	Name *string `json:"name,omitempty"`
}

安全组。

func (SecurityGroup) String

func (o SecurityGroup) String() string

type SecurityGroupInfo

type SecurityGroupInfo struct {

	// 安全组ID。
	Id string `json:"id"`
}

func (SecurityGroupInfo) String

func (o SecurityGroupInfo) String() string

type ShowAssistAuthConfigRequest added in v0.1.15

type ShowAssistAuthConfigRequest struct {
}

Request Object

func (ShowAssistAuthConfigRequest) String added in v0.1.15

type ShowAssistAuthConfigResponse added in v0.1.15

type ShowAssistAuthConfigResponse struct {
	OtpConfigInfo  *OtpConfigInfo `json:"otp_config_info,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowAssistAuthConfigResponse) String added in v0.1.15

type ShowDesktopDetailRequest

type ShowDesktopDetailRequest struct {

	// 桌面ID。
	DesktopId string `json:"desktop_id"`
}

Request Object

func (ShowDesktopDetailRequest) String

func (o ShowDesktopDetailRequest) String() string

type ShowDesktopDetailResponse

type ShowDesktopDetailResponse struct {
	Desktop        *DesktopDetailInfo `json:"desktop,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowDesktopDetailResponse) String

func (o ShowDesktopDetailResponse) String() string

type ShowQuotasRequest added in v0.1.16

type ShowQuotasRequest struct {
}

Request Object

func (ShowQuotasRequest) String added in v0.1.16

func (o ShowQuotasRequest) String() string

type ShowQuotasResponse added in v0.1.16

type ShowQuotasResponse struct {
	Quotas *QuotaNoLimit `json:"quotas,omitempty"`

	// 站点配额信息,暂不包括中心站点
	SiteQuotas     *[]SiteQuotaNoLimit `json:"site_quotas,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ShowQuotasResponse) String added in v0.1.16

func (o ShowQuotasResponse) String() string

type ShowWorkspaceLockRequest added in v0.1.15

type ShowWorkspaceLockRequest struct {
}

Request Object

func (ShowWorkspaceLockRequest) String added in v0.1.15

func (o ShowWorkspaceLockRequest) String() string

type ShowWorkspaceLockResponse added in v0.1.15

type ShowWorkspaceLockResponse struct {

	// 云办公服务是否被锁定,0代表未锁定,1代表锁定。
	IsLock *int32 `json:"is_lock,omitempty"`

	// 云办公服务锁定时间,格式:yyyy-MM-dd HH:mm:ss,时区:UTC。
	LockTime *string `json:"lock_time,omitempty"`

	// 云办公服务锁定原因。
	LockReason     *string `json:"lock_reason,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowWorkspaceLockResponse) String added in v0.1.15

func (o ShowWorkspaceLockResponse) String() string

type SimpleDesktopInfo

type SimpleDesktopInfo struct {

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 桌面名。
	ComputerName *string `json:"computer_name,omitempty"`

	// 创建时间。
	Created *string `json:"created,omitempty"`

	// 桌面ip地址。
	IpAddress *string `json:"ip_address,omitempty"`

	// 用户名。
	UserName *string `json:"user_name,omitempty"`

	// 权限组。
	UserGroup *string `json:"user_group,omitempty"`

	// 桌面的SID信息。
	Sid *string `json:"sid,omitempty"`

	// ou名称。
	OuName *string `json:"ou_name,omitempty"`
}

func (SimpleDesktopInfo) String

func (o SimpleDesktopInfo) String() string

type SimpleProduct

type SimpleProduct struct {

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品规格ID。
	FlavorId *string `json:"flavor_id,omitempty"`

	// 产品类型。  - BASE:表示产品基础套餐,套餐镜像中不包括除操作系统之外的其他商业软件,私有镜像场景只能使用此类套餐。
	Type *string `json:"type,omitempty"`

	// CPU
	Cpu *string `json:"cpu,omitempty"`

	// 内存。
	Memory *string `json:"memory,omitempty"`

	// 产品描述。
	Descriptions *string `json:"descriptions,omitempty"`

	// 周期套餐标识,1表示包周期,0表示按需。
	ChargeMode *string `json:"charge_mode,omitempty"`
}

产品信息。

func (SimpleProduct) String

func (o SimpleProduct) String() string

type SimpleResource added in v0.1.16

type SimpleResource struct {

	// 资源类别。 general_instances:普通桌面 ram:内存 cores:CPU volumes:磁盘数量 volume_gigabytes:磁盘容量 gpu_instances:GPU桌面 deh:云办公主机 users:用户 policy_groups: 策略组 Cores: CPU(配额工具使用)
	Type *string `json:"type,omitempty"`

	// 配额数
	Quota *int32 `json:"quota,omitempty"`

	// 配额已用值
	Used *int32 `json:"used,omitempty"`
}

简单配额资源。

func (SimpleResource) String added in v0.1.16

func (o SimpleResource) String() string

type SimpleResourceNoUsed added in v0.1.16

type SimpleResourceNoUsed struct {

	// 资源类别。 general_instances:普通桌面 ram:内存 cores:CPU volumes:磁盘数量 volume_gigabytes:磁盘容量 gpu_instances:GPU桌面 deh:云办公主机 users:用户 policy_groups: 策略组 Cores: CPU(配额工具使用)
	Type *string `json:"type,omitempty"`

	// 配额数
	Quota *int32 `json:"quota,omitempty"`
}

简单配额资源,没有已使用值。

func (SimpleResourceNoUsed) String added in v0.1.16

func (o SimpleResourceNoUsed) String() string

type SiteQuotaNoLimit added in v0.1.16

type SiteQuotaNoLimit struct {

	// 配额资源列表
	Resources []ResourceNoLimit `json:"resources"`

	// 站点ID
	SiteId *string `json:"site_id,omitempty"`
}

单个站点的配额

func (SiteQuotaNoLimit) String added in v0.1.16

func (o SiteQuotaNoLimit) String() string

type SoldOutInfo

type SoldOutInfo struct {

	// 售罄产品ID列表。
	Products *[]string `json:"products,omitempty"`
}

售罄信息。

func (SoldOutInfo) String

func (o SoldOutInfo) String() string

type Subnet

type Subnet struct {

	// 子网的网络ID。
	SubnetId string `json:"subnet_id"`
}

func (Subnet) String

func (o Subnet) String() string

type SubnetInfo

type SubnetInfo struct {

	// 子网的网络ID。
	SubnetId *string `json:"subnet_id,omitempty"`
}

子网信息。

func (SubnetInfo) String

func (o SubnetInfo) String() string

type Tag

type Tag struct {

	// 标签的键,不能为空,最大长度36个unicode字符。大小写字母,数字,可以包含中划线“-”,下划线“_”,不能包含以下字符“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。
	Key string `json:"key"`

	// 标签的值,最大长度43个unicode字符。大小写字母,数字,可以包含中划线“-”,下划线“_”,不能包含以下字符“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。
	Value *string `json:"value,omitempty"`
}

标签

func (Tag) String

func (o Tag) String() string

type TerminalsBindingDesktopsConfig added in v0.1.15

type TerminalsBindingDesktopsConfig struct {

	// 绑定开关,只取值on或off
	TcBindSwitch TerminalsBindingDesktopsConfigTcBindSwitch `json:"tc_bind_switch"`
}

func (TerminalsBindingDesktopsConfig) String added in v0.1.15

type TerminalsBindingDesktopsConfigTcBindSwitch added in v0.1.15

type TerminalsBindingDesktopsConfigTcBindSwitch struct {
	// contains filtered or unexported fields
}

func (TerminalsBindingDesktopsConfigTcBindSwitch) MarshalJSON added in v0.1.15

func (*TerminalsBindingDesktopsConfigTcBindSwitch) UnmarshalJSON added in v0.1.15

func (TerminalsBindingDesktopsConfigTcBindSwitch) Value added in v0.1.15

type TerminalsBindingDesktopsConfigTcBindSwitchEnum added in v0.1.15

type TerminalsBindingDesktopsConfigTcBindSwitchEnum struct {
	ON  TerminalsBindingDesktopsConfigTcBindSwitch
	OFF TerminalsBindingDesktopsConfigTcBindSwitch
}

func GetTerminalsBindingDesktopsConfigTcBindSwitchEnum added in v0.1.15

func GetTerminalsBindingDesktopsConfigTcBindSwitchEnum() TerminalsBindingDesktopsConfigTcBindSwitchEnum

type TerminalsBindingDesktopsInfo added in v0.1.15

type TerminalsBindingDesktopsInfo struct {

	// MAC绑定策略ID
	Id *string `json:"id,omitempty"`

	// 终端MAC地址
	Mac *string `json:"mac,omitempty"`

	// 虚拟机名称
	DesktopName *string `json:"desktop_name,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`
}

func (TerminalsBindingDesktopsInfo) String added in v0.1.15

type TlsConfig

type TlsConfig struct {

	// pem内容, 有则更新,无则上传。查询不返回。
	CertPem *string `json:"cert_pem,omitempty"`

	// 证书生效开始时间,时间参考样例 2022-01-25T09:24:27。
	CertStartTime *string `json:"cert_start_time,omitempty"`

	// 证书生效截止时间,时间参考样例 2022-01-25T09:24:27。
	CertEndTime *string `json:"cert_end_time,omitempty"`
}

TLS信息。

func (TlsConfig) String

func (o TlsConfig) String() string

type UnlockWorkspaceRequest added in v0.1.15

type UnlockWorkspaceRequest struct {
	Body *UnlockWorkspaceRequestBody `json:"body,omitempty"`
}

Request Object

func (UnlockWorkspaceRequest) String added in v0.1.15

func (o UnlockWorkspaceRequest) String() string

type UnlockWorkspaceRequestBody added in v0.1.15

type UnlockWorkspaceRequestBody struct {

	// 解除项目锁定操作类型。
	OperateType *string `json:"operate_type,omitempty"`
}

解除云办公服务锁定状态请求。

func (UnlockWorkspaceRequestBody) String added in v0.1.15

type UnlockWorkspaceResponse added in v0.1.15

type UnlockWorkspaceResponse struct {

	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UnlockWorkspaceResponse) String added in v0.1.15

func (o UnlockWorkspaceResponse) String() string

type UpdateAccessPolicyObjectsReq added in v0.1.15

type UpdateAccessPolicyObjectsReq struct {

	// 更新策略应用对象列表请求。
	PolicyObjectsList *[]AccessPolicyObjectInfo `json:"policy_objects_list,omitempty"`
}

func (UpdateAccessPolicyObjectsReq) String added in v0.1.15

type UpdateAccessPolicyObjectsRequest added in v0.1.15

type UpdateAccessPolicyObjectsRequest struct {

	// 接入策略id。
	AccessPolicyId string `json:"access_policy_id"`

	Body *UpdateAccessPolicyObjectsReq `json:"body,omitempty"`
}

Request Object

func (UpdateAccessPolicyObjectsRequest) String added in v0.1.15

type UpdateAccessPolicyObjectsResponse added in v0.1.15

type UpdateAccessPolicyObjectsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateAccessPolicyObjectsResponse) String added in v0.1.15

type UpdateAssistAuthMethodConfigRequest added in v0.1.15

type UpdateAssistAuthMethodConfigRequest struct {
	Body *AssistAuthMethodConfigRequest `json:"body,omitempty"`
}

Request Object

func (UpdateAssistAuthMethodConfigRequest) String added in v0.1.15

type UpdateAssistAuthMethodConfigResponse added in v0.1.15

type UpdateAssistAuthMethodConfigResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateAssistAuthMethodConfigResponse) String added in v0.1.15

type UpdateTerminalsBindingDesktopsConfigRequest added in v0.1.15

type UpdateTerminalsBindingDesktopsConfigRequest struct {
	Body *TerminalsBindingDesktopsConfig `json:"body,omitempty"`
}

Request Object

func (UpdateTerminalsBindingDesktopsConfigRequest) String added in v0.1.15

type UpdateTerminalsBindingDesktopsConfigResponse added in v0.1.15

type UpdateTerminalsBindingDesktopsConfigResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateTerminalsBindingDesktopsConfigResponse) String added in v0.1.15

type UpdateTerminalsBindingDesktopsRequest added in v0.1.15

type UpdateTerminalsBindingDesktopsRequest struct {
	Body *UpdateTerminalsBindingDesktopsRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTerminalsBindingDesktopsRequest) String added in v0.1.15

type UpdateTerminalsBindingDesktopsRequestBody added in v0.1.15

type UpdateTerminalsBindingDesktopsRequestBody struct {

	// 策略id
	Id string `json:"id"`

	// 终端MAC地址
	Mac string `json:"mac"`

	// 虚拟机名称
	DesktopName string `json:"desktop_name"`

	// 描述
	Description *string `json:"description,omitempty"`
}

func (UpdateTerminalsBindingDesktopsRequestBody) String added in v0.1.15

type UpdateTerminalsBindingDesktopsResponse added in v0.1.15

type UpdateTerminalsBindingDesktopsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateTerminalsBindingDesktopsResponse) String added in v0.1.15

type UpdateUserInfoRequest

type UpdateUserInfoRequest struct {

	// 用户ID。
	UserId string `json:"user_id"`

	Body *EditUserReq `json:"body,omitempty"`
}

Request Object

func (UpdateUserInfoRequest) String

func (o UpdateUserInfoRequest) String() string

type UpdateUserInfoResponse

type UpdateUserInfoResponse struct {

	// 用户id。
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateUserInfoResponse) String

func (o UpdateUserInfoResponse) String() string

type UpdateWorkspaceRequest

type UpdateWorkspaceRequest struct {
	Body *ModifyWorkspaceAttributesReq `json:"body,omitempty"`
}

Request Object

func (UpdateWorkspaceRequest) String

func (o UpdateWorkspaceRequest) String() string

type UpdateWorkspaceResponse

type UpdateWorkspaceResponse struct {

	// 修改云办公服务属性的任务ID
	JobId *string `json:"job_id,omitempty"`

	// 企业ID
	EnterpriseId   *string `json:"enterprise_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateWorkspaceResponse) String

func (o UpdateWorkspaceResponse) String() string

type User

type User struct {

	// 用户ID。
	Id *string `json:"id,omitempty"`

	// 桌面用户名。
	UserName *string `json:"user_name,omitempty"`

	// 用户邮箱。
	UserEmail *string `json:"user_email,omitempty"`

	// 用户绑定桌面云总数。
	TotalDesktops *int32 `json:"total_desktops,omitempty"`

	// 账户过期时间,0表示永远不过期。
	AccountExpires *string `json:"account_expires,omitempty"`

	// 密码是否永不过期,true表示密码永不过期,false表示密码会过期。
	PasswordNeverExpired *bool `json:"password_never_expired,omitempty"`

	// 帐号是否过期,true表示已过期,false表示未过期。
	AccountExpired *bool `json:"account_expired,omitempty"`

	// 是否允许修改密码,true表示允许,false表示不允许。
	EnableChangePassword *bool `json:"enable_change_password,omitempty"`

	// 下次登录是否需要重置密码,true表示需要重置密码,false表示不需要。
	NextLoginChangePassword *bool `json:"next_login_change_password,omitempty"`

	// 用户描述。
	Description *string `json:"description,omitempty"`

	// 账户是否被锁定,true表示被锁定,false表示未锁定。
	Locked *bool `json:"locked,omitempty"`

	// 账户是否禁用,true表示被禁用,false表示未禁用。
	Disabled *bool `json:"disabled,omitempty"`
}

func (User) String

func (o User) String() string

type UserDetail

type UserDetail struct {

	// 用户描述。
	Description *string `json:"description,omitempty"`

	// 用户id。
	Id *string `json:"id,omitempty"`

	// 桌面用户名。
	UserName *string `json:"user_name,omitempty"`

	// 用户邮箱。
	UserEmail *string `json:"user_email,omitempty"`

	// 用户sid。
	ObjectSid *string `json:"object_sid,omitempty"`

	// 登录名(windows以前版本)。
	SamAccountName *string `json:"sam_account_name,omitempty"`

	// 用户登录名。
	UserPrincipalName *string `json:"user_principal_name,omitempty"`

	// 全名。
	FullName *string `json:"full_name,omitempty"`

	// 用户在域树上的唯一位置。
	DistinguishedName *string `json:"distinguished_name,omitempty"`

	// 帐号类型(0:用户;1:用户组)。
	AccountType *int32 `json:"account_type,omitempty"`

	// UTC时间毫秒数对应的字符,格式为:yyyy-MM-ddTHH:mm:ss.SSSZ。
	WhenCreated *string `json:"when_created,omitempty"`

	// 账号有效期最后一天对应的UTC时间,以毫秒为单位。
	AccountExpires *int64 `json:"account_expires,omitempty"`

	// 账户是否过期,true表示过期,false表示未过期。
	UserExpired *bool `json:"user_expired,omitempty"`

	// 账户是否被锁定,true表示被锁定,false表示未锁定。
	Locked *bool `json:"locked,omitempty"`

	// 是否允许修改密码,true表示允许修改密码,false表示不允许。
	EnabledChangePassword *bool `json:"enabled_change_password,omitempty"`

	// 密码是否永不过期,true表示密码永不过期,false表示密码会过期。
	PasswordNeverExpired *bool `json:"password_never_expired,omitempty"`

	// 下次登录是否需要重置密码,true表示需要重置密码,false表示不需要。
	NextLoginChangePassword *bool `json:"next_login_change_password,omitempty"`

	// 账户是否禁用,true表示被禁用,false表示未禁用。
	Disabled *bool `json:"disabled,omitempty"`

	// 加入的组列表。
	GroupNames *[]string `json:"group_names,omitempty"`

	// 用户绑定桌面云总数。
	TotalDesktops *int32 `json:"total_desktops,omitempty"`
}

func (UserDetail) String

func (o UserDetail) String() string

type VmOperateResult

type VmOperateResult struct {

	// 桌面ID。
	DesktopId *string `json:"desktop_id,omitempty"`

	// 桌面名称。
	DesktopName *string `json:"desktop_name,omitempty"`

	// 操作失败的错误码。
	ErrorCode *string `json:"error_code,omitempty"`

	// 操作失败的原因描述。
	ErrorMsg *string `json:"error_msg,omitempty"`
}

操作失败的桌面列表。

func (VmOperateResult) String

func (o VmOperateResult) String() string

type Volume

type Volume struct {

	// 桌面数据盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。  -SAS:高IO。 -SSD:超高IO。
	Type string `json:"type"`

	// 磁盘容量,单位GB。系统盘大小范围[80-32760],数据盘范围[10-32760],大小为10的倍数。
	Size int32 `json:"size"`
}

磁盘

func (Volume) String

func (o Volume) String() string

type VolumeDetail

type VolumeDetail struct {

	// 桌面数据盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。  - SAS:高IO。 - SSD:超高IO。
	Type string `json:"type"`

	// 磁盘容量,单位GB。
	Size int32 `json:"size"`

	// 挂载目录。
	Device *string `json:"device,omitempty"`

	// 磁盘表唯一标识ID。
	Id *string `json:"id,omitempty"`

	// 磁盘ID。
	VolumeId *string `json:"volume_id,omitempty"`

	// 磁盘的创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 磁盘名
	DisplayName *string `json:"display_name,omitempty"`
}

磁盘信息。

func (VolumeDetail) String

func (o VolumeDetail) String() string

Source Files

Jump to

Keyboard shortcuts

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