model

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasTarget

type AliasTarget struct {

	// 资源服务类型,支持别名记录的服务。取值:  cloudsite:云速建站 waf:Web应用防火墙
	ResourceType *string `json:"resource_type,omitempty"`

	// 对应服务下的域名,由各服务提供。
	ResourceDomainName *string `json:"resource_domain_name,omitempty"`
}

别名记录。

func (AliasTarget) String

func (o AliasTarget) String() string

type AssociateHealthCheckReq added in v0.1.12

type AssociateHealthCheckReq struct {

	// 健康检查ID。 通过云解析服务的管理控制台,在健康检查的详情页面中获取。
	HealthCheckId *string `json:"health_check_id,omitempty"`
}

func (AssociateHealthCheckReq) String added in v0.1.12

func (o AssociateHealthCheckReq) String() string

type AssociateHealthCheckRequest added in v0.1.12

type AssociateHealthCheckRequest struct {

	// 待查询的recordset ID。
	RecordsetId string `json:"recordset_id"`

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

Request Object

func (AssociateHealthCheckRequest) String added in v0.1.12

type AssociateHealthCheckResponse added in v0.1.12

type AssociateHealthCheckResponse struct {

	// 健康检查ID。 通过云解析服务的管理控制台,在健康检查的详情页面中获取。
	HealthCheckId  *string `json:"health_check_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AssociateHealthCheckResponse) String added in v0.1.12

type AssociateRouterReq

type AssociateRouterReq struct {
	Router *Router `json:"router"`
}

func (AssociateRouterReq) String

func (o AssociateRouterReq) String() string

type AssociateRouterRequest

type AssociateRouterRequest struct {

	// 关联VPC的Zone ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (AssociateRouterRequest) String

func (o AssociateRouterRequest) String() string

type AssociateRouterResponse

type AssociateRouterResponse struct {

	// Router(VPC)的ID。
	RouterId *string `json:"router_id,omitempty"`

	// Router(VPC)所在的region。
	RouterRegion *string `json:"router_region,omitempty"`

	// 资源状态。
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AssociateRouterResponse) String

func (o AssociateRouterResponse) String() string

type BatchCreateRecordSetWithLine added in v0.0.96

type BatchCreateRecordSetWithLine struct {

	// 解析线路ID。
	Line string `json:"line"`

	// Record Set的有效缓存时间,以秒为单位。 取值范围:300-2147483647。 默认值为300s。
	Ttl *int32 `json:"ttl,omitempty"`

	// 解析记录的权重,默认为1。 当weight=null时,表示该解析记录不设置权重。 当weight=0,表示备用域名解析记录。 当weight>0,表示主用域名解析记录。 取值范围:0~100 在相同域名、类型、线路下的解析记录,规则如下: 全部设置权重,或全部不设置权重。 当不设置权重时,只能创建一个解析记录。 当设置权重时,最多能创建20个解析记录。
	Weight *int32 `json:"weight,omitempty"`

	// 解析记录的值。不同类型解析记录对应的值的规则不同。
	Records []string `json:"records"`
}

func (BatchCreateRecordSetWithLine) String added in v0.0.96

type BatchCreateTagRequest

type BatchCreateTagRequest struct {

	// 资源的类型:DNS-public_zone,DNS-private_zone,DNS-public_recordset,DNS-private_recordset,DNS-ptr_record。
	ResourceType string `json:"resource_type"`

	// 资源id。
	ResourceId string `json:"resource_id"`

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

Request Object

func (BatchCreateTagRequest) String

func (o BatchCreateTagRequest) String() string

type BatchCreateTagResponse

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

Response Object

func (BatchCreateTagResponse) String

func (o BatchCreateTagResponse) String() string

type BatchDeleteRSetWithLineReq added in v0.0.96

type BatchDeleteRSetWithLineReq struct {

	// Record Set ID列表。最多支持100个。
	RecordsetIds []string `json:"recordset_ids"`
}

func (BatchDeleteRSetWithLineReq) String added in v0.0.96

type BatchDeleteRecordSetWithLineRequest added in v0.0.96

type BatchDeleteRecordSetWithLineRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (BatchDeleteRecordSetWithLineRequest) String added in v0.0.96

type BatchDeleteRecordSetWithLineResponse added in v0.0.96

type BatchDeleteRecordSetWithLineResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// recordset的列表信息。
	Recordsets *[]QueryRecordSetWithLineResp `json:"recordsets,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (BatchDeleteRecordSetWithLineResponse) String added in v0.0.96

type BatchHandTags

type BatchHandTags struct {

	// 标签列表。删除时tags结构体不能缺失。
	Tags []Tag `json:"tags"`

	// 操作标识(区分大小写):create(创建)、delete(删除)。
	Action string `json:"action"`
}

func (BatchHandTags) String

func (o BatchHandTags) String() string

type BatchUpdateRecordSet added in v0.0.96

type BatchUpdateRecordSet struct {

	// RecordSet资源ID。
	Id string `json:"id"`

	// RecordSet资源描述。
	Description *string `json:"description,omitempty"`

	// Record Set的有效缓存时间,以秒为单位。 取值范围:300-2147483647。 默认值为300s。
	Ttl *int32 `json:"ttl,omitempty"`

	// 解析记录的权重,默认为null。 当weight=null时,表示该解析记录不设置权重。 当weight=0,表示备用域名解析记录。 当weight>0,表示主用域名解析记录。 取值范围:0~100 在相同域名、类型、线路下的解析记录,规则如下: 全部设置权重,或全部不设置权重。 当不设置权重时,只能创建一个解析记录。 当设置权重时,最多能创建20个解析记录。
	Weight *int32 `json:"weight,omitempty"`

	// 解析记录的值。不同类型解析记录对应的值的规则不同。
	Records []string `json:"records"`
}

func (BatchUpdateRecordSet) String added in v0.0.96

func (o BatchUpdateRecordSet) String() string

type BatchUpdateRecordSetWithLineReq added in v0.0.96

type BatchUpdateRecordSetWithLineReq struct {

	// RecordSet 列表。
	Recordsets []BatchUpdateRecordSet `json:"recordsets"`
}

func (BatchUpdateRecordSetWithLineReq) String added in v0.0.96

type BatchUpdateRecordSetWithLineRequest added in v0.0.96

type BatchUpdateRecordSetWithLineRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (BatchUpdateRecordSetWithLineRequest) String added in v0.0.96

type BatchUpdateRecordSetWithLineResponse added in v0.0.96

type BatchUpdateRecordSetWithLineResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// recordset的列表信息。
	Recordsets *[]QueryRecordSetWithLineResp `json:"recordsets,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (BatchUpdateRecordSetWithLineResponse) String added in v0.0.96

type CreateCustomLineRequest

type CreateCustomLineRequest struct {
	Body *CreateCustomLines `json:"body,omitempty"`
}

Request Object

func (CreateCustomLineRequest) String

func (o CreateCustomLineRequest) String() string

type CreateCustomLineResponse

type CreateCustomLineResponse struct {

	// 解析线路ID。
	LineId *string `json:"line_id,omitempty"`

	// 解析线路名称。
	Name *string `json:"name,omitempty"`

	// IP地址段。
	IpSegments *[]string `json:"ip_segments,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 自定义线路的描述信息。
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateCustomLineResponse) String

func (o CreateCustomLineResponse) String() string

type CreateCustomLines

type CreateCustomLines struct {

	// 解析线路名称。  长度限制为1-80个字符,只允许包含中文、字母、数字、'-'、'_'、'.'字符。  租户内,解析线路名称是唯一的。
	Name string `json:"name"`

	// IP地址段。  以“-”分隔,小IP地址在前,大IP地址在后。IP段之间不能有交叉。当只有一个IP时,填写IP1-IP1。 目前只支持IPV4。  最多支持50个。
	IpSegments []string `json:"ip_segments"`

	// 自定义线路的描述信息。长度不超过255个字符。  默认值为空。
	Description *string `json:"description,omitempty"`
}

func (CreateCustomLines) String

func (o CreateCustomLines) String() string

type CreateEipRecordSetRequest

type CreateEipRecordSetRequest struct {

	// 租户的区域信息。
	Region string `json:"region"`

	// 弹性IP的ID。
	FloatingipId string `json:"floatingip_id"`

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

Request Object

func (CreateEipRecordSetRequest) String

func (o CreateEipRecordSetRequest) String() string

type CreateEipRecordSetResponse

type CreateEipRecordSetResponse struct {

	// PTR记录的ID,格式形如{region}:{floatingip_id}。
	Id *string `json:"id,omitempty"`

	// PTR记录对应的域名。
	Ptrdname *string `json:"ptrdname,omitempty"`

	// 对PTR记录的描述。
	Description *string `json:"description,omitempty"`

	// PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 弹性IP的IP地址。
	Address *string `json:"address,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 对该资源的当前操作。取值范围:CREATE,UPDATE,DELETE,NONE CREATE:表示创建,UPDATE:表示更新,DELETE:表示删除,NONE:表示无操作
	Action *string `json:"action,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreateEipRecordSetResponse) String

type CreateLineGroupRequest added in v0.1.12

type CreateLineGroupRequest struct {
	Body *CreateLineGroupsReq `json:"body,omitempty"`
}

Request Object

func (CreateLineGroupRequest) String added in v0.1.12

func (o CreateLineGroupRequest) String() string

type CreateLineGroupResponse added in v0.1.12

type CreateLineGroupResponse struct {

	// 线路分组名称。
	Name *string `json:"name,omitempty"`

	// 线路分组包含的线路列表。 解析线路ID。
	Lines *[]string `json:"lines,omitempty"`

	// 资源状态。 取值范围:PENDING_CREATE,ACTIVE,PENDING_DELETE,PENDING_UPDATE,ERROR,FREEZE,DISABLE。
	Status *string `json:"status,omitempty"`

	// 线路分组的描述信息
	Description *string `json:"description,omitempty"`

	// 线路分组的id。
	LineId *string `json:"line_id,omitempty"`

	// 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	UpdatedAt      *string `json:"updated_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateLineGroupResponse) String added in v0.1.12

func (o CreateLineGroupResponse) String() string

type CreateLineGroupsReq added in v0.1.12

type CreateLineGroupsReq struct {

	// 线路分组名称。 不能与自定义线路名称、预制线路名称重复。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。
	Name string `json:"name"`

	// 线路分组的描述信息。 长度不超过255个字符。默认值为空。
	Description *string `json:"description,omitempty"`

	// 线路分组包含的线路列表。最少为2个线路。 解析线路ID。
	Lines []string `json:"lines"`
}

func (CreateLineGroupsReq) String added in v0.1.12

func (o CreateLineGroupsReq) String() string

type CreateLineGroupsResp added in v0.1.12

type CreateLineGroupsResp struct {

	// 线路分组名称。
	Name *string `json:"name,omitempty"`

	// 线路分组包含的线路列表。 解析线路ID。
	Lines *[]string `json:"lines,omitempty"`

	// 资源状态。 取值范围:PENDING_CREATE,ACTIVE,PENDING_DELETE,PENDING_UPDATE,ERROR,FREEZE,DISABLE。
	Status *string `json:"status,omitempty"`

	// 线路分组的描述信息
	Description *string `json:"description,omitempty"`

	// 线路分组的id。
	LineId *string `json:"line_id,omitempty"`

	// 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	UpdatedAt *string `json:"updated_at,omitempty"`
}

func (CreateLineGroupsResp) String added in v0.1.12

func (o CreateLineGroupsResp) String() string

type CreatePrivateZoneReq

type CreatePrivateZoneReq struct {

	// 待创建的域名。
	Name string `json:"name"`

	// 域名的描述信息。
	Description *string `json:"description,omitempty"`

	// 域名类型。取值:private。
	ZoneType string `json:"zone_type"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// 用于填写默认生成的SOA记录中有效缓存时间,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	Router *Router `json:"router"`

	// 内网Zone的子域名递归解析代理模式。  取值范围:  AUTHORITY:当前Zone不进行递归解析 RECURSIVE:开启递归解析代理
	ProxyPattern *string `json:"proxy_pattern,omitempty"`

	// 资源标签。
	Tags *[]Tag `json:"tags,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符。  默认值为0。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (CreatePrivateZoneReq) String

func (o CreatePrivateZoneReq) String() string

type CreatePrivateZoneRequest

type CreatePrivateZoneRequest struct {
	Body *CreatePrivateZoneReq `json:"body,omitempty"`
}

Request Object

func (CreatePrivateZoneRequest) String

func (o CreatePrivateZoneRequest) String() string

type CreatePrivateZoneResponse

type CreatePrivateZoneResponse struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。  该参数暂未使用。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 内网Zone的子域名递归解析代理模式。  取值范围:  AUTHORITY:当前Zone不进行递归解析 RECURSIVE:开启递归解析代理
	ProxyPattern *string `json:"proxy_pattern,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。  采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。  采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。
	Masters *[]string `json:"masters,omitempty"`

	Router         *RouterWithStatus `json:"router,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (CreatePrivateZoneResponse) String

func (o CreatePrivateZoneResponse) String() string

type CreatePtrReq

type CreatePtrReq struct {

	// PTR记录对应的域名。
	Ptrdname string `json:"ptrdname"`

	// 对PTR记录的描述。
	Description *string `json:"description,omitempty"`

	// PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。取值范围:1~2147483647
	Ttl *int32 `json:"ttl,omitempty"`

	// 反向解析关联的企业项目ID,长度不超过36个字符。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

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

func (CreatePtrReq) String

func (o CreatePtrReq) String() string

type CreatePublicZoneReq

type CreatePublicZoneReq struct {

	// Zone名称
	Name string `json:"name"`

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

	// Zone类型,取值public。
	ZoneType *string `json:"zone_type,omitempty"`

	// 管理该zone的管理员邮箱
	Email *string `json:"email,omitempty"`

	// 用于填写默认生成的SOA记录中有效缓存时间,以秒为单位.
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符.
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

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

创建公网zone请求

func (CreatePublicZoneReq) String

func (o CreatePublicZoneReq) String() string

type CreatePublicZoneRequest

type CreatePublicZoneRequest struct {
	Body *CreatePublicZoneReq `json:"body,omitempty"`
}

Request Object

func (CreatePublicZoneRequest) String

func (o CreatePublicZoneRequest) String() string

type CreatePublicZoneResponse

type CreatePublicZoneResponse struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。  采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。  采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。  目前暂未使用。
	Masters        *[]string `json:"masters,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreatePublicZoneResponse) String

func (o CreatePublicZoneResponse) String() string

type CreateRSetBatchLinesReq added in v0.0.96

type CreateRSetBatchLinesReq struct {

	// 后缀需以Zone Name结束且为FQDN(即以“.”号结束的完整主机名)。
	Name string `json:"name"`

	// 可选配置,对域名的描述。 长度不超过255个字符。
	Description *string `json:"description,omitempty"`

	// Record Set的类型。 取值范围:A,AAAA,MX,CNAME,TXT,NS,SRV,CAA。
	Type string `json:"type"`

	// 解析线路域名参数。最多支持50个。
	Lines []BatchCreateRecordSetWithLine `json:"lines"`
}

func (CreateRSetBatchLinesReq) String added in v0.0.96

func (o CreateRSetBatchLinesReq) String() string

type CreateRecordSetReq

type CreateRecordSetReq struct {

	// 域名,后缀需以zone name结束且为FQDN(即以“.”号结束的完整主机名)。
	Name string `json:"name"`

	// 可选配置,对域名的描述。  长度不超过255个字符。  默认值为空。
	Description *string `json:"description,omitempty"`

	// Record Set的类型。  取值范围:A、AAAA、MX、CNAME、TXT、NS、SRV、CAA。
	Type string `json:"type"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。 如果您的服务地址经常更换,建议TTL值设置相对小些,反之,建议设置相对大些。
	Ttl *int32 `json:"ttl,omitempty"`

	// 解析记录的值。不同类型解析记录对应的值的规则不同。
	Records []string `json:"records"`

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

func (CreateRecordSetReq) String

func (o CreateRecordSetReq) String() string

type CreateRecordSetRequest

type CreateRecordSetRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (CreateRecordSetRequest) String

func (o CreateRecordSetRequest) String() string

type CreateRecordSetResponse

type CreateRecordSetResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。 取值范围:A,AAAA,MX,CNAME,TXT,NS(仅限公网Zone),SRV,CAA(仅限公网Zone)
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。 如果您的服务地址经常更换,建议TTL值设置相对小些,反之,建议设置相对大些。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS
	UpdateAt *string `json:"update_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreateRecordSetResponse) String

func (o CreateRecordSetResponse) String() string

type CreateRecordSetWithBatchLinesRequest added in v0.0.96

type CreateRecordSetWithBatchLinesRequest struct {

	// 所属Zone的ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (CreateRecordSetWithBatchLinesRequest) String added in v0.0.96

type CreateRecordSetWithBatchLinesResponse added in v0.0.96

type CreateRecordSetWithBatchLinesResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// recordset的列表信息。
	Recordsets *[]QueryRecordSetWithLineResp `json:"recordsets,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreateRecordSetWithBatchLinesResponse) String added in v0.0.96

type CreateRecordSetWithLineReq

type CreateRecordSetWithLineReq struct {

	// 域名,后缀需以zone name结束且为FQDN(即以“.”号结束的完整主机名)。
	Name string `json:"name"`

	// 可选配置,对域名的描述。
	Description *string `json:"description,omitempty"`

	// Record Set的类型。取值范围:A、AAAA、MX、CNAME、TXT、NS、SRV、CAA。
	Type string `json:"type"`

	// 解析记录的状态。默认值为ENABLE。
	Status *string `json:"status,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 解析记录的值。不同类型解析记录对应的值的规则不同。
	Records *[]string `json:"records,omitempty"`

	// 解析线路ID
	Line *string `json:"line,omitempty"`

	//  资源标签
	Tags *[]Tag `json:"tags,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	AliasTarget *AliasTarget `json:"alias_target,omitempty"`
}

func (CreateRecordSetWithLineReq) String

type CreateRecordSetWithLineRequest

type CreateRecordSetWithLineRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (CreateRecordSetWithLineRequest) String

type CreateRecordSetWithLineResponse

type CreateRecordSetWithLineResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。  取值范围:A、AAAA、MX、CNAME、TXT、NS、SRV、CAA。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget    *AliasTarget `json:"alias_target,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (CreateRecordSetWithLineResponse) String

type CreateTagReq

type CreateTagReq struct {
	Tag *Tag `json:"tag"`
}

func (CreateTagReq) String

func (o CreateTagReq) String() string

type CreateTagRequest

type CreateTagRequest struct {

	// 资源的类型:DNS-public_zone,DNS-private_zone,DNS-public_recordset,DNS-private_recordset,DNS-ptr_record。
	ResourceType string `json:"resource_type"`

	// 资源id。
	ResourceId string `json:"resource_id"`

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

Request Object

func (CreateTagRequest) String

func (o CreateTagRequest) String() string

type CreateTagResponse

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

Response Object

func (CreateTagResponse) String

func (o CreateTagResponse) String() string

type DeleteCustomLineRequest

type DeleteCustomLineRequest struct {

	// 解析线路ID。
	LineId string `json:"line_id"`
}

Request Object

func (DeleteCustomLineRequest) String

func (o DeleteCustomLineRequest) String() string

type DeleteCustomLineResponse

type DeleteCustomLineResponse struct {

	// 解析线路ID。
	LineId *string `json:"line_id,omitempty"`

	// 解析线路名称。
	Name *string `json:"name,omitempty"`

	// IP地址段。
	IpSegments *[]string `json:"ip_segments,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 自定义线路的描述信息。
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteCustomLineResponse) String

func (o DeleteCustomLineResponse) String() string

type DeleteLineGroupRequest added in v0.1.12

type DeleteLineGroupRequest struct {

	// 线路分组ID。
	LinegroupId string `json:"linegroup_id"`
}

Request Object

func (DeleteLineGroupRequest) String added in v0.1.12

func (o DeleteLineGroupRequest) String() string

type DeleteLineGroupResponse added in v0.1.12

type DeleteLineGroupResponse struct {

	// 线路分组名称。
	Name *string `json:"name,omitempty"`

	// 线路分组包含的线路列表。 解析线路ID。
	Lines *[]string `json:"lines,omitempty"`

	// 资源状态。 取值范围:PENDING_CREATE,ACTIVE,PENDING_DELETE,PENDING_UPDATE,ERROR,FREEZE,DISABLE。
	Status *string `json:"status,omitempty"`

	// 线路分组的描述信息
	Description *string `json:"description,omitempty"`

	// 线路分组的id。
	LineId *string `json:"line_id,omitempty"`

	// 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	UpdatedAt      *string `json:"updated_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteLineGroupResponse) String added in v0.1.12

func (o DeleteLineGroupResponse) String() string

type DeletePrivateZoneRequest

type DeletePrivateZoneRequest struct {

	// 待删除zone的ID。
	ZoneId string `json:"zone_id"`
}

Request Object

func (DeletePrivateZoneRequest) String

func (o DeletePrivateZoneRequest) String() string

type DeletePrivateZoneResponse

type DeletePrivateZoneResponse struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
	Serial *int32 `json:"serial,omitempty"`

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

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。
	Masters *[]string `json:"masters,omitempty"`

	// 与该zone关联的Router(VPC)列表。
	Routers        *[]RouterWithStatus `json:"routers,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (DeletePrivateZoneResponse) String

func (o DeletePrivateZoneResponse) String() string

type DeletePublicZoneRequest

type DeletePublicZoneRequest struct {

	// 待删除zone的ID
	ZoneId string `json:"zone_id"`
}

Request Object

func (DeletePublicZoneRequest) String

func (o DeletePublicZoneRequest) String() string

type DeletePublicZoneResponse

type DeletePublicZoneResponse struct {

	// Zone的ID
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步
	Serial *int32 `json:"serial,omitempty"`

	// 该zone下的recordset个数
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息
	Masters *[]string `json:"masters,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (DeletePublicZoneResponse) String

func (o DeletePublicZoneResponse) String() string

type DeleteRecordSetRequest

type DeleteRecordSetRequest struct {

	// 当前recordset所属的zoneID。
	ZoneId string `json:"zone_id"`

	// 当前recordset所属的ID信息。
	RecordsetId string `json:"recordset_id"`
}

Request Object

func (DeleteRecordSetRequest) String

func (o DeleteRecordSetRequest) String() string

type DeleteRecordSetResponse

type DeleteRecordSetResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间。
	UpdateAt *string `json:"update_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (DeleteRecordSetResponse) String

func (o DeleteRecordSetResponse) String() string

type DeleteRecordSetsRequest

type DeleteRecordSetsRequest struct {

	// Record Set所属的zone_id。
	ZoneId string `json:"zone_id"`

	// Record Set的id信息。
	RecordsetId string `json:"recordset_id"`
}

Request Object

func (DeleteRecordSetsRequest) String

func (o DeleteRecordSetsRequest) String() string

type DeleteRecordSetsResponse

type DeleteRecordSetsResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget    *AliasTarget `json:"alias_target,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (DeleteRecordSetsResponse) String

func (o DeleteRecordSetsResponse) String() string

type DeleteTagRequest

type DeleteTagRequest struct {

	// 资源的类型:DNS-public_zone,DNS-private_zone,DNS-public_recordset,DNS-private_recordset,DNS-ptr_record。
	ResourceType string `json:"resource_type"`

	// 资源id。
	ResourceId string `json:"resource_id"`

	// 标签key。  标签key不能为空或者空字符串。
	Key string `json:"key"`
}

Request Object

func (DeleteTagRequest) String

func (o DeleteTagRequest) String() string

type DeleteTagResponse

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

Response Object

func (DeleteTagResponse) String

func (o DeleteTagResponse) String() string

type DisassociateHealthCheckRequest added in v0.1.12

type DisassociateHealthCheckRequest struct {

	// Record Set关联健康检查。
	RecordsetId string `json:"recordset_id"`

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

Request Object

func (DisassociateHealthCheckRequest) String added in v0.1.12

type DisassociateHealthCheckResponse added in v0.1.12

type DisassociateHealthCheckResponse struct {

	// 健康检查ID。 通过云解析服务的管理控制台,在健康检查的详情页面中获取。
	HealthCheckId  *string `json:"health_check_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DisassociateHealthCheckResponse) String added in v0.1.12

type DisassociateRouterRequest

type DisassociateRouterRequest struct {

	// 待解关联zone的ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (DisassociateRouterRequest) String

func (o DisassociateRouterRequest) String() string

type DisassociateRouterResponse

type DisassociateRouterResponse struct {

	// Router(VPC)的ID。
	RouterId *string `json:"router_id,omitempty"`

	// Router(VPC)所在的region。
	RouterRegion *string `json:"router_region,omitempty"`

	// 资源状态。
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DisassociateRouterResponse) String

type DisassociaterouterReq

type DisassociaterouterReq struct {
	Router *Router `json:"router"`
}

func (DisassociaterouterReq) String

func (o DisassociaterouterReq) String() string

type Line

type Line struct {

	// 解析线路ID。
	LineId *string `json:"line_id,omitempty"`

	// 解析线路名称。
	Name *string `json:"name,omitempty"`

	// IP地址段。
	IpSegments *[]string `json:"ip_segments,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 自定义线路的描述信息。
	Description *string `json:"description,omitempty"`
}

func (Line) String

func (o Line) String() string

type LinksItem

type LinksItem struct {

	// 对应快捷链接。
	Href string `json:"href"`

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

指向当前资源或者其他资源的链接。当查询需要分页时,需要包含一个next链接指向下一页。

func (LinksItem) String

func (o LinksItem) String() string

type ListApiVersionsItem

type ListApiVersionsItem struct {

	// 版本状态,包含:  CURRENT:表示该版本为主推版本。 SUPPORTED:表示为老版本,但是现在还在继续支持。 DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status *string `json:"status,omitempty"`

	// 版本号。
	Id *string `json:"id,omitempty"`

	// 指向当前版本的url。
	Links *[]LinksItem `json:"links,omitempty"`
}

func (ListApiVersionsItem) String

func (o ListApiVersionsItem) String() string

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {
	Versions       *ValuesItem `json:"versions,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListCustomLineRequest

type ListCustomLineRequest struct {

	// 解析线路ID。
	LineId *string `json:"line_id,omitempty"`

	// 解析线路名称。
	Name *string `json:"name,omitempty"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 是否查询详细信息。  取值范围:  true:是,查询详细信息。 false:否,不查询详细信息。 默认为true。
	ShowDetail *bool `json:"show_detail,omitempty"`
}

Request Object

func (ListCustomLineRequest) String

func (o ListCustomLineRequest) String() string

type ListCustomLineResponse

type ListCustomLineResponse struct {

	// 线路列表。
	Lines *[]Line `json:"lines,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListCustomLineResponse) String

func (o ListCustomLineResponse) String() string

type ListLineGroupsRequest added in v0.1.12

type ListLineGroupsRequest struct {

	// 线路分组ID。 模糊匹配。
	LineId *string `json:"line_id,omitempty"`

	// 线路分组名称。 模糊匹配。
	Name *string `json:"name,omitempty"`

	// 每页返回的资源个数。  当查询详细信息时:取值范围:0~100取值一般为10,20,50默认为100。  当查询概要信息时:取值范围:0~3000默认为3000。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListLineGroupsRequest) String added in v0.1.12

func (o ListLineGroupsRequest) String() string

type ListLineGroupsResponse added in v0.1.12

type ListLineGroupsResponse struct {

	// 列表对象。
	Linegroups *[]CreateLineGroupsResp `json:"linegroups,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListLineGroupsResponse) String added in v0.1.12

func (o ListLineGroupsResponse) String() string

type ListNameServersRequest

type ListNameServersRequest struct {

	// 待查询名称服务器的类型。 取值范围: public, private。 如果为空,表示查询所有类型的名称服务器。 如果为public,表示查询公网的名称服务器。 如果为private,表示查询内网的名称服务器。 搜索模式精确搜索。 默认值为空。
	Type *string `json:"type,omitempty"`

	// 待查询的region ID。 当查询公网的名称服务器时,此处不填。 搜索模式精确搜索。 默认值为空。
	Region *string `json:"region,omitempty"`
}

Request Object

func (ListNameServersRequest) String

func (o ListNameServersRequest) String() string

type ListNameServersResponse

type ListNameServersResponse struct {

	// name server列表对象。
	Nameservers    *[]NameServersResp `json:"nameservers,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListNameServersResponse) String

func (o ListNameServersResponse) String() string

type ListPrivateZonesRequest

type ListPrivateZonesRequest struct {

	// 待查询的zone的类型。  取值范围:private。
	Type string `json:"type"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时为查询第一页。  默认值为空。
	Marker *string `json:"marker,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 资源标签。
	Tags *string `json:"tags,omitempty"`

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

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符。  默认值为0。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListPrivateZonesRequest) String

func (o ListPrivateZonesRequest) String() string

type ListPrivateZonesResponse

type ListPrivateZonesResponse struct {
	Links *PageLink `json:"links,omitempty"`

	Metadata *Metadata `json:"metadata,omitempty"`

	// zone列表信息。
	Zones          *[]PrivateZoneResp `json:"zones,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListPrivateZonesResponse) String

func (o ListPrivateZonesResponse) String() string

type ListPtrRecordsFloatingResp

type ListPtrRecordsFloatingResp struct {

	// PTR记录的ID,格式形如{region}:{floatingip_id}。
	Id *string `json:"id,omitempty"`

	// PTR记录对应的域名。
	Ptrdname *string `json:"ptrdname,omitempty"`

	// 对PTR记录的描述。
	Description *string `json:"description,omitempty"`

	// PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 弹性IP的IP地址。
	Address *string `json:"address,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 对该资源的当前操作。  取值范围:CREATE,UPDATE,DELETE,NONE。 CREATE:表示创建,UPDATE:表示更新,DELETE:表示删除,NONE:表示无操作
	Action *string `json:"action,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 资源标签。
	Tags *[]Tag `json:"tags,omitempty"`

	// 反向解析关联的企业项目ID,长度不超过36个字符。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (ListPtrRecordsFloatingResp) String

type ListPtrRecordsRequest

type ListPtrRecordsRequest struct {

	// 分页查询起始的资源ID,为空时为查询第一页。  默认值为空。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 反向解析关联的企业项目ID,长度不超过36个字符。  默认值为0。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 资源标签。  取值格式:key1,value1|key2,value2  多个标签之间用\"|\"分开,每个标签的键值用英文逗号\",\"相隔。
	Tags *string `json:"tags,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`
}

Request Object

func (ListPtrRecordsRequest) String

func (o ListPtrRecordsRequest) String() string

type ListPtrRecordsResponse

type ListPtrRecordsResponse struct {
	Links *PageLink `json:"links,omitempty"`

	Metadata *Metadata `json:"metadata,omitempty"`

	// 弹性IP的PTR记录ID列表信息。
	Floatingips    *[]ListPtrRecordsFloatingResp `json:"floatingips,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

Response Object

func (ListPtrRecordsResponse) String

func (o ListPtrRecordsResponse) String() string

type ListPublicZonesRequest

type ListPublicZonesRequest struct {

	// 待查询的zone的类型。  取值范围:public、private  如果为空,表示查询公网类型的zone。 如果为public,表示查询公网类型的zone。 如果为private,表示查询内网类型的zone。 搜索模式默认为模糊搜索。  默认值为空。
	Type *string `json:"type,omitempty"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时为查询第一页。  默认值为空。
	Marker *string `json:"marker,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 资源标签。  取值格式:key1,value1|key2,value2  多个标签之间用\"|\"分开,每个标签的键值用英文逗号\",\"相隔。  多个标签之间为“与”的关系。  关于资源标签,请参见添加资源标签。  搜索模式为精确搜索。如果资源标签值value是以*开头时,则按照*后面的值全模糊匹配。  默认值为空。
	Tags *string `json:"tags,omitempty"`

	// zone名称。  搜索模式默认为模糊搜索。
	Name *string `json:"name,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符。  默认值为0。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListPublicZonesRequest) String

func (o ListPublicZonesRequest) String() string

type ListPublicZonesResponse

type ListPublicZonesResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// 查询公网Zone的列表响应。
	Zones *[]PublicZoneResp `json:"zones,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPublicZonesResponse) String

func (o ListPublicZonesResponse) String() string

type ListRecordSets

type ListRecordSets struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间。
	UpdateAt *string `json:"update_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`
}

func (ListRecordSets) String

func (o ListRecordSets) String() string

type ListRecordSetsByZoneRequest

type ListRecordSetsByZoneRequest struct {

	// 所属zone id。
	ZoneId string `json:"zone_id"`

	// 分页查询起始的资源ID,为空时为查询第一页。  默认值为空。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 资源标签。  取值格式:key1,value1|key2,value2  多个标签之间用\"|\"分开,每个标签的键值用英文逗号\",\"相隔。
	Tags *string `json:"tags,omitempty"`

	// 待查询的Record Set的状态。  取值范围:ACTIVE、ERROR、DISABLE、FREEZE、PENDING_CREATE、PENDING_UPDATE、PENDING_DELETE
	Status *string `json:"status,omitempty"`

	// 待查询的Record Set的记录集类型。  取值范围:A,AAAA,MX,CNAME,TXT, NS(仅限公网Zone),SRV,PTR(仅限内网Zone),CAA(仅限公网Zone)。
	Type *string `json:"type,omitempty"`

	// 待查询的Record Set的域名中包含此name。  搜索模式默认为模糊搜索。  默认值为空。
	Name *string `json:"name,omitempty"`

	// 待查询的Record Set的id包含此id。  搜索模式默认为模糊搜索。  默认值为空。
	Id *string `json:"id,omitempty"`

	// 查询结果中Record Set列表的排序字段。  取值范围为:  name:域名 type:记录集类型 默认值为空,表示不排序。
	SortKey *string `json:"sort_key,omitempty"`

	// 查询结果中Record Set列表的排序方式。  取值范围:  desc:降序排序 asc:升序排序 默认值为空,表示不排序。
	SortDir *string `json:"sort_dir,omitempty"`
}

Request Object

func (ListRecordSetsByZoneRequest) String

type ListRecordSetsByZoneResponse

type ListRecordSetsByZoneResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// recordset列表对象。
	Recordsets *[]ListRecordSets `json:"recordsets,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListRecordSetsByZoneResponse) String

type ListRecordSetsRequest

type ListRecordSetsRequest struct {

	// 待查询的Record Set的域名类型。  取值范围:public、private  如果为空,表示查询公网类型的Record Set。 如果为public,表示查询公网类型的Record Set。 如果为private,表示查询内网类型的Record Set。 搜索模式默认为模糊搜索。  默认值为public。
	ZoneType *string `json:"zone_type,omitempty"`

	// 分页查询起始的资源ID,为空时为查询第一页。  默认值为空。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 资源标签。  取值格式:key1,value1|key2,value2  多个标签之间用\"|\"分开,每个标签的键值用英文逗号\",\"相隔。
	Tags *string `json:"tags,omitempty"`

	// 待查询的Record Set的状态。  取值范围:ACTIVE、ERROR、DISABLE、FREEZE、PENDING_CREATE、PENDING_UPDATE、PENDING_DELETE
	Status *string `json:"status,omitempty"`

	// 待查询的Record Set的记录集类型。  取值范围:A,AAAA,MX,CNAME,TXT, NS(仅限公网Zone),SRV,PTR(仅限内网Zone),CAA(仅限公网Zone)。
	Type *string `json:"type,omitempty"`

	// 待查询的Record Set的域名中包含此name。  搜索模式默认为模糊搜索。  默认值为空。
	Name *string `json:"name,omitempty"`

	// 待查询的Record Set的id包含此id。  搜索模式默认为模糊搜索。  默认值为空。
	Id *string `json:"id,omitempty"`

	// 待查询的Record Set的值中包含此records。  搜索模式默认为模糊搜索。  默认值为空。
	Records *string `json:"records,omitempty"`

	// 查询结果中Record Set列表的排序字段。  取值范围:  name:域名 type:记录集类型 默认值为空,表示不排序。
	SortKey *string `json:"sort_key,omitempty"`

	// 查询结果中Record Set列表的排序方式。  取值范围:  desc:降序排序 asc:升序排序 默认值为空,表示不排序。
	SortDir *string `json:"sort_dir,omitempty"`
}

Request Object

func (ListRecordSetsRequest) String

func (o ListRecordSetsRequest) String() string

type ListRecordSetsResponse

type ListRecordSetsResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// recordset列表对象。
	Recordsets *[]ListRecordSetsWithTags `json:"recordsets,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListRecordSetsResponse) String

func (o ListRecordSetsResponse) String() string

type ListRecordSetsWithLineRequest

type ListRecordSetsWithLineRequest struct {

	// 待查询的Record Set的域名类型。  取值范围:public  搜索模式默认为模糊搜索。  默认值为public。
	ZoneType *string `json:"zone_type,omitempty"`

	// 分页查询起始的资源ID,为空时为查询第一页。  默认值为空。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 解析线路ID。
	LineId *string `json:"line_id,omitempty"`

	// 资源标签。  取值格式:key1,value1|key2,value2  多个标签之间用\"|\"分开,每个标签的键值用英文逗号\",\"相隔。
	Tags *string `json:"tags,omitempty"`

	// 待查询的Record Set的状态。  取值范围:ACTIVE、ERROR、DISABLE、FREEZE、PENDING_CREATE、PENDING_UPDATE、PENDING_DELETE
	Status *string `json:"status,omitempty"`

	// 待查询的Record Set的记录集类型。  取值范围:A、CNAME、MX、AAAA、TXT、SRV、NS、CAA
	Type *string `json:"type,omitempty"`

	// 待查询的Record Set的域名中包含此name。  搜索模式默认为模糊搜索。  默认值为空。
	Name *string `json:"name,omitempty"`

	// 待查询的Record Set的id包含此id。  搜索模式默认为模糊搜索。  默认值为空。
	Id *string `json:"id,omitempty"`

	// 待查询的Record Set的值中包含此records。  搜索模式默认为模糊搜索。  默认值为空。
	Records *string `json:"records,omitempty"`

	// 查询结果中Record Set列表的排序字段。  取值范围:  name:域名 type:记录集类型 默认值为空,表示不排序。
	SortKey *string `json:"sort_key,omitempty"`

	// 查询结果中Record Set列表的排序方式。  取值范围:  desc:降序排序 asc:升序排序 默认值为空,表示不排序。
	SortDir *string `json:"sort_dir,omitempty"`

	// 健康检查ID。  搜索模式默认为模糊搜索。  默认值为空。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	// 查询条件搜索模式。  取值范围:  like:模糊搜索 equal:精确搜索 默认值为like。
	SearchMode *string `json:"search_mode,omitempty"`
}

Request Object

func (ListRecordSetsWithLineRequest) String

type ListRecordSetsWithLineResponse

type ListRecordSetsWithLineResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// recordset列表信息。
	Recordsets *[]QueryRecordSetWithLineAndTagsResp `json:"recordsets,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListRecordSetsWithLineResponse) String

type ListRecordSetsWithTags added in v0.0.66

type ListRecordSetsWithTags struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间。
	UpdateAt *string `json:"update_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

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

func (ListRecordSetsWithTags) String added in v0.0.66

func (o ListRecordSetsWithTags) String() string

type ListTagReq

type ListTagReq struct {

	// 包含标签。 最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。
	Tags *[]TagValues `json:"tags,omitempty"`

	// 最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。
	TagsAny *[]TagValues `json:"tags_any,omitempty"`

	// 最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。
	NotTags *[]TagValues `json:"not_tags,omitempty"`

	// 最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。
	NotTagsAny *[]TagValues `json:"not_tags_any,omitempty"`

	// 每页返回的资源个数。  取值范围:1~1000  参数取值说明:  如果action为filter时,默认为1000。 如果action为count时,无此参数。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  参数取值说明: 查询第一页数据时,不需要传入此参数。 查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数。 如果action为filter时,默认为0,必须为数字,不能为负数。 如果action为count时,无此参数。
	Offset *int32 `json:"offset,omitempty"`

	// 操作标识(区分大小写)。  取值范围:  filter:分页过滤查询 count:查询总条数
	Action string `json:"action"`

	// key为要匹配的字段,value为匹配的值。  如果value为空字符串则精确匹配,否则模糊匹配。
	Matches *[]Match `json:"matches,omitempty"`
}

func (ListTagReq) String

func (o ListTagReq) String() string

type ListTagRequest

type ListTagRequest struct {

	// 资源的类型:DNS-public_zone,DNS-private_zone,DNS-public_recordset,DNS-private_recordset,DNS-ptr_record。
	ResourceType string `json:"resource_type"`

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

Request Object

func (ListTagRequest) String

func (o ListTagRequest) String() string

type ListTagResponse

type ListTagResponse struct {

	// 标签资源信息列表。
	Resources *[]ResourceItem `json:"resources,omitempty"`

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

Response Object

func (ListTagResponse) String

func (o ListTagResponse) String() string

type ListTagsRequest

type ListTagsRequest struct {

	// 资源的类型:DNS-public_zone,DNS-private_zone,DNS-public_recordset,DNS-private_recordset,DNS-ptr_record。
	ResourceType string `json:"resource_type"`
}

Request Object

func (ListTagsRequest) String

func (o ListTagsRequest) String() string

type ListTagsResponse

type ListTagsResponse struct {

	// 标签列表。
	Tags           *[]TagValues `json:"tags,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListTagsResponse) String

func (o ListTagsResponse) String() string

type Match added in v0.0.81

type Match struct {

	// 键。当前值限定为resource_name。
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符。不能包含“_”,“%”特殊字符。
	Value *string `json:"value,omitempty"`
}

func (Match) String added in v0.0.81

func (o Match) String() string

type Metadata added in v0.1.20

type Metadata struct {

	// 满足查询条件的资源总数,不受分页(即limit、offset参数)影响。
	TotalCount *int32 `json:"total_count,omitempty"`
}

返回满足过滤条件的资源总数。

func (Metadata) String added in v0.1.20

func (o Metadata) String() string

type NameServersResp

type NameServersResp struct {

	// 待查询名称服务器的类型。  取值范围: public, private。  如果为空,表示查询所有类型的名称服务器。 如果为public,表示查询公网的名称服务器。  如果为private,表示查询内网的名称服务器。
	Type *string `json:"type,omitempty"`

	// 待查询的region ID。  当查询公网的名称服务器时,此处不填。
	Region *string `json:"region,omitempty"`

	// 名称服务器列表。
	NsRecords *[]NsRecords `json:"ns_records,omitempty"`
}

func (NameServersResp) String

func (o NameServersResp) String() string

type Nameserver

type Nameserver struct {

	// 主机名。
	Hostname *string `json:"hostname,omitempty"`

	// 优先级。
	Priority *int32 `json:"priority,omitempty"`
}

func (Nameserver) String

func (o Nameserver) String() string

type NsRecords

type NsRecords struct {

	// 主机名。  当为内网名称服务器时,此值为空。
	Hostname *string `json:"hostname,omitempty"`

	// 名称服务器地址。  当为公网名称服务器时,此值为空。
	Address *string `json:"address,omitempty"`

	// 优先级。  示例:  如果priority的值为“1”,表示会第一个采用该域名服务器进行解析。
	Priority *int32 `json:"priority,omitempty"`
}

func (NsRecords) String

func (o NsRecords) String() string
type PageLink struct {

	// 当前资源的链接。
	Self *string `json:"self,omitempty"`

	// 下一页资源的链接。
	Next *string `json:"next,omitempty"`
}

指向当前资源或者其他资源的链接。当查询需要分页时,需要包含一个next链接指向下一页。

func (PageLink) String

func (o PageLink) String() string

type PrivateNameServer

type PrivateNameServer struct {

	// 优先级。如果priority的值为“1”,表示会第一个采用该域名服务器进行解析。
	Priority *int32 `json:"priority,omitempty"`

	// DNS服务器地址。
	Address *string `json:"address,omitempty"`
}

func (PrivateNameServer) String

func (o PrivateNameServer) String() string

type PrivateZoneResp

type PrivateZoneResp struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 内网Zone的子域名递归解析代理模式。  取值范围:  AUTHORITY:当前Zone不进行递归解析 RECURSIVE:开启递归解析代理
	ProxyPattern *string `json:"proxy_pattern,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 资源标签。
	Tags *[]Tag `json:"tags,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。
	Masters *[]string `json:"masters,omitempty"`

	// 与该zone关联的Router(VPC)列表。
	Routers *[]RouterWithStatus `json:"routers,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (PrivateZoneResp) String

func (o PrivateZoneResp) String() string

type PublicZoneResp added in v0.0.51

type PublicZoneResp struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 资源标签。
	Tags *[]Tag `json:"tags,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。
	Masters *[]string `json:"masters,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (PublicZoneResp) String added in v0.0.51

func (o PublicZoneResp) String() string

type QueryRecordSetWithLineAndTagsResp added in v0.0.66

type QueryRecordSetWithLineAndTagsResp struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 资源标签。
	Tags *[]Tag `json:"tags,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget *AliasTarget `json:"alias_target,omitempty"`
}

func (QueryRecordSetWithLineAndTagsResp) String added in v0.0.66

type QueryRecordSetWithLineResp

type QueryRecordSetWithLineResp struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget *AliasTarget `json:"alias_target,omitempty"`
}

func (QueryRecordSetWithLineResp) String

type ResourceItem

type ResourceItem struct {

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源详情。资源对象,用于扩展,默认为空。
	ResourceDetail *interface{} `json:"resource_detail,omitempty"`

	// 标签列表,没有标签默认为空数组。
	Tags *[]Tag `json:"tags,omitempty"`

	// 资源名称,没有默认为空字符串
	ResourceName *string `json:"resource_name,omitempty"`
}

func (ResourceItem) String

func (o ResourceItem) String() string

type RestorePtrRecordRequest

type RestorePtrRecordRequest struct {

	// 域名所属的区域。
	Region string `json:"region"`

	// 待删除PTR ID。
	FloatingipId string `json:"floatingip_id"`

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

Request Object

func (RestorePtrRecordRequest) String

func (o RestorePtrRecordRequest) String() string

type RestorePtrRecordResponse

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

Response Object

func (RestorePtrRecordResponse) String

func (o RestorePtrRecordResponse) String() string

type RestorePtrReq

type RestorePtrReq struct {

	// PTR记录对应的域名。  此处值为null。
	Ptrdname string `json:"ptrdname"`
}

func (RestorePtrReq) String

func (o RestorePtrReq) String() string

type Router

type Router struct {

	// Router(VPC)所属VPC的ID。
	RouterId string `json:"router_id"`

	// Router(VPC)所在的region。
	RouterRegion *string `json:"router_region,omitempty"`
}

func (Router) String

func (o Router) String() string

type RouterWithStatus

type RouterWithStatus struct {

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// Router(VPC)所属VPC的ID。
	RouterId *string `json:"router_id,omitempty"`

	// Router(VPC)所在的region。
	RouterRegion *string `json:"router_region,omitempty"`
}

func (RouterWithStatus) String

func (o RouterWithStatus) String() string

type SetRecordSetsStatusReq

type SetRecordSetsStatusReq struct {

	// 解析记录状态。  取值范围:  ENABLE:启用解析 DISABLE:暂停解析
	Status string `json:"status"`
}

func (SetRecordSetsStatusReq) String

func (o SetRecordSetsStatusReq) String() string

type SetRecordSetsStatusRequest

type SetRecordSetsStatusRequest struct {

	// 待设置Record Set的ID信息。
	RecordsetId string `json:"recordset_id"`

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

Request Object

func (SetRecordSetsStatusRequest) String

type SetRecordSetsStatusResponse

type SetRecordSetsStatusResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget    *AliasTarget `json:"alias_target,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (SetRecordSetsStatusResponse) String

type ShowApiInfoRequest

type ShowApiInfoRequest struct {

	// 待查询版本号。以v开头,如v2。
	Version string `json:"version"`
}

Request Object

func (ShowApiInfoRequest) String

func (o ShowApiInfoRequest) String() string

type ShowApiInfoResponse

type ShowApiInfoResponse struct {
	Version        *VersionItem `json:"version,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ShowApiInfoResponse) String

func (o ShowApiInfoResponse) String() string

type ShowLineGroupRequest added in v0.1.12

type ShowLineGroupRequest struct {

	// 待查询的线路分组ID。
	LinegroupId string `json:"linegroup_id"`
}

Request Object

func (ShowLineGroupRequest) String added in v0.1.12

func (o ShowLineGroupRequest) String() string

type ShowLineGroupResponse added in v0.1.12

type ShowLineGroupResponse struct {

	// 线路分组名称。
	Name *string `json:"name,omitempty"`

	// 线路分组包含的线路列表。 解析线路ID。
	Lines *[]string `json:"lines,omitempty"`

	// 资源状态。 取值范围:PENDING_CREATE,ACTIVE,PENDING_DELETE,PENDING_UPDATE,ERROR,FREEZE,DISABLE。
	Status *string `json:"status,omitempty"`

	// 线路分组的描述信息
	Description *string `json:"description,omitempty"`

	// 线路分组的id。
	LineId *string `json:"line_id,omitempty"`

	// 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	UpdatedAt      *string `json:"updated_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowLineGroupResponse) String added in v0.1.12

func (o ShowLineGroupResponse) String() string

type ShowPrivateZoneNameServerRequest

type ShowPrivateZoneNameServerRequest struct {

	// 待查询内网zone的ID。
	ZoneId string `json:"zone_id"`
}

Request Object

func (ShowPrivateZoneNameServerRequest) String

type ShowPrivateZoneNameServerResponse

type ShowPrivateZoneNameServerResponse struct {

	// 名称服务器列表信息。
	Nameservers    *[]PrivateNameServer `json:"nameservers,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ShowPrivateZoneNameServerResponse) String

type ShowPrivateZoneRequest

type ShowPrivateZoneRequest struct {

	// 待查询zone的ID。
	ZoneId string `json:"zone_id"`
}

Request Object

func (ShowPrivateZoneRequest) String

func (o ShowPrivateZoneRequest) String() string

type ShowPrivateZoneResponse

type ShowPrivateZoneResponse struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。
	Masters *[]string `json:"masters,omitempty"`

	// 与该zone关联的Router(VPC)列表。
	Routers        *[]Router `json:"routers,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowPrivateZoneResponse) String

func (o ShowPrivateZoneResponse) String() string

type ShowPtrRecordSetRequest

type ShowPtrRecordSetRequest struct {

	// 租户的区域信息。
	Region string `json:"region"`

	// 弹性IP的ID。
	FloatingipId string `json:"floatingip_id"`
}

Request Object

func (ShowPtrRecordSetRequest) String

func (o ShowPtrRecordSetRequest) String() string

type ShowPtrRecordSetResponse

type ShowPtrRecordSetResponse struct {

	// PTR记录的ID,格式形如{region}:{floatingip_id}。
	Id *string `json:"id,omitempty"`

	// PTR记录对应的域名。
	Ptrdname *string `json:"ptrdname,omitempty"`

	// 对PTR记录的描述。
	Description *string `json:"description,omitempty"`

	// PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 弹性IP的IP地址。
	Address *string `json:"address,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 对该资源的当前操作。取值范围:CREATE,UPDATE,DELETE,NONE CREATE:表示创建,UPDATE:表示更新,DELETE:表示删除,NONE:表示无操作
	Action *string `json:"action,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowPtrRecordSetResponse) String

func (o ShowPtrRecordSetResponse) String() string

type ShowPublicZoneNameServerRequest

type ShowPublicZoneNameServerRequest struct {

	// 待查询zone的ID。  可以通过查询公网Zone列表获取。
	ZoneId string `json:"zone_id"`
}

Request Object

func (ShowPublicZoneNameServerRequest) String

type ShowPublicZoneNameServerResponse

type ShowPublicZoneNameServerResponse struct {

	// 查询单个公网Zone的名称服务器响应。
	Nameservers    *[]Nameserver `json:"nameservers,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowPublicZoneNameServerResponse) String

type ShowPublicZoneRequest

type ShowPublicZoneRequest struct {

	// 待查询zone的ID。
	ZoneId string `json:"zone_id"`
}

Request Object

func (ShowPublicZoneRequest) String

func (o ShowPublicZoneRequest) String() string

type ShowPublicZoneResponse

type ShowPublicZoneResponse struct {

	// Zone的ID
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步
	Serial *int32 `json:"serial,omitempty"`

	// 该zone下的recordset个数
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配
	PoolId *string `json:"pool_id,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 域名关联的企业项目ID,长度不超过36个字符
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息
	Masters *[]string `json:"masters,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// zone所属的项目ID。
	ProjectId      *string `json:"project_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPublicZoneResponse) String

func (o ShowPublicZoneResponse) String() string

type ShowRecordSetByZoneRequest

type ShowRecordSetByZoneRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

	// 分页查询起始的资源ID,为空时为查询第一页。  默认值为空。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的资源个数。  取值范围:0~500  取值一般为10,20,50。默认值为500。
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始偏移量,表示从偏移量的下一个资源开始查询。  取值范围:0~2147483647  默认值为0。  当前设置marker不为空时,以marker为分页起始标识。
	Offset *int32 `json:"offset,omitempty"`

	// 解析线路ID。
	LineId *string `json:"line_id,omitempty"`

	// 资源标签。  取值格式:key1,value1|key2,value2  多个标签之间用\"|\"分开,每个标签的键值用英文逗号\",\"相隔。
	Tags *string `json:"tags,omitempty"`

	// 待查询的Record Set的状态。  取值范围:ACTIVE、ERROR、DISABLE、FREEZE、PENDING_CREATE、PENDING_UPDATE、PENDING_DELETE
	Status *string `json:"status,omitempty"`

	// 待查询的Record Set的记录集类型。  取值范围:A、CNAME、MX、AAAA、TXT、SRV、NS、CAA
	Type *string `json:"type,omitempty"`

	// 待查询的Record Set的域名中包含此name。  搜索模式默认为模糊搜索。  默认值为空。
	Name *string `json:"name,omitempty"`

	// 待查询的Record Set的id包含此id。  搜索模式默认为模糊搜索。  默认值为空。
	Id *string `json:"id,omitempty"`

	// 查询结果中Record Set列表的排序字段。  取值范围:  name:域名 type:记录集类型 默认值为空,表示不排序。
	SortKey *string `json:"sort_key,omitempty"`

	// 查询结果中Record Set列表的排序方式。  取值范围:  desc:降序排序 asc:升序排序 默认值为空,表示不排序。
	SortDir *string `json:"sort_dir,omitempty"`

	// 查询条件搜索模式。  取值范围:  like:模糊搜索 equal:精确搜索 默认值为like。
	SearchMode *string `json:"search_mode,omitempty"`
}

Request Object

func (ShowRecordSetByZoneRequest) String

type ShowRecordSetByZoneResp

type ShowRecordSetByZoneResp struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。  取值范围:A、AAAA、MX、CNAME、TXT、NS、SRV、CAA。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间。
	UpdateAt *string `json:"update_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget *AliasTarget `json:"alias_target,omitempty"`
}

func (ShowRecordSetByZoneResp) String

func (o ShowRecordSetByZoneResp) String() string

type ShowRecordSetByZoneResponse

type ShowRecordSetByZoneResponse struct {
	Links *PageLink `json:"links,omitempty"`

	// recordset列表。
	Recordsets *[]ShowRecordSetByZoneResp `json:"recordsets,omitempty"`

	Metadata       *Metadata `json:"metadata,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowRecordSetByZoneResponse) String

type ShowRecordSetRequest

type ShowRecordSetRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

	// 待查询recordset的ID信息。
	RecordsetId string `json:"recordset_id"`
}

Request Object

func (ShowRecordSetRequest) String

func (o ShowRecordSetRequest) String() string

type ShowRecordSetResponse

type ShowRecordSetResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间。
	UpdateAt *string `json:"update_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowRecordSetResponse) String

func (o ShowRecordSetResponse) String() string

type ShowRecordSetWithLineRequest

type ShowRecordSetWithLineRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

	// 待查询recordset的ID信息。
	RecordsetId string `json:"recordset_id"`
}

Request Object

func (ShowRecordSetWithLineRequest) String

type ShowRecordSetWithLineResponse

type ShowRecordSetWithLineResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget    *AliasTarget `json:"alias_target,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ShowRecordSetWithLineResponse) String

type ShowResourceTagRequest

type ShowResourceTagRequest struct {

	// 资源的类型:DNS-public_zone,DNS-private_zone,DNS-public_recordset,DNS-private_recordset,DNS-ptr_record。
	ResourceType string `json:"resource_type"`

	// 资源id。
	ResourceId string `json:"resource_id"`
}

Request Object

func (ShowResourceTagRequest) String

func (o ShowResourceTagRequest) String() string

type ShowResourceTagResponse

type ShowResourceTagResponse struct {

	// 指定实例的标签列表。
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowResourceTagResponse) String

func (o ShowResourceTagResponse) String() string

type Tag

type Tag struct {

	// 键。最大长度36个unicode字符。 key不能为空。不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。
	Key string `json:"key"`

	// 值。每个值最大长度43个unicode字符,可以为空字符串。 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。
	Value *string `json:"value,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagValues

type TagValues struct {

	// 键。最大长度127个unicode字符。 key不能为空。(搜索时不对此参数做校验)
	Key *string `json:"key,omitempty"`

	// 值列表。每个值最大长度255个unicode字符。*为系统保留字符。如果里面的value是以*开头时,表示按照*后面的值全模糊匹配。如果values缺失,则表示匹配任意值。value之间为或的关系。
	Values *[]string `json:"values,omitempty"`
}

func (TagValues) String

func (o TagValues) String() string

type UpdateCustomLineRequest

type UpdateCustomLineRequest struct {

	// 解析线路ID。
	LineId string `json:"line_id"`

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

Request Object

func (UpdateCustomLineRequest) String

func (o UpdateCustomLineRequest) String() string

type UpdateCustomLineResponse

type UpdateCustomLineResponse struct {

	// 解析线路ID。
	LineId *string `json:"line_id,omitempty"`

	// 解析线路名称。
	Name *string `json:"name,omitempty"`

	// IP地址段。
	IpSegments *[]string `json:"ip_segments,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 自定义线路的描述信息。
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateCustomLineResponse) String

func (o UpdateCustomLineResponse) String() string

type UpdateCustomsLineReq

type UpdateCustomsLineReq struct {

	// 解析线路名称。
	Name *string `json:"name,omitempty"`

	// P地址段。  以“-”分隔,小IP地址在前,大IP地址在后。IP段之间不能有交叉。当只有一个IP时,填写IP1-IP1。 目前只支持IPV4。
	IpSegments *[]string `json:"ip_segments,omitempty"`

	// 自定义线路的描述信息。长度不超过255个字符。
	Description *string `json:"description,omitempty"`
}

func (UpdateCustomsLineReq) String

func (o UpdateCustomsLineReq) String() string

type UpdateLineGroupsBody added in v0.1.20

type UpdateLineGroupsBody struct {

	// 线路分组名称。 不能与自定义线路名称、预制线路名称重复。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。
	Name string `json:"name"`

	// 线路分组的描述信息。长度不超过255个字符。默认值为空。
	Description *string `json:"description,omitempty"`

	// 线路分组的描述信息。长度不超过255个字符。默认值为空。
	Lines []string `json:"lines"`
}

func (UpdateLineGroupsBody) String added in v0.1.20

func (o UpdateLineGroupsBody) String() string

type UpdateLineGroupsRequest added in v0.1.12

type UpdateLineGroupsRequest struct {

	// 待更新的线路分组ID。
	LinegroupId string `json:"linegroup_id"`

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

Request Object

func (UpdateLineGroupsRequest) String added in v0.1.12

func (o UpdateLineGroupsRequest) String() string

type UpdateLineGroupsResponse added in v0.1.12

type UpdateLineGroupsResponse struct {

	// 线路分组名称。
	Name *string `json:"name,omitempty"`

	// 线路分组包含的线路列表。 解析线路ID。
	Lines *[]string `json:"lines,omitempty"`

	// 资源状态。 取值范围:PENDING_CREATE,ACTIVE,PENDING_DELETE,PENDING_UPDATE,ERROR,FREEZE,DISABLE。
	Status *string `json:"status,omitempty"`

	// 线路分组的描述信息
	Description *string `json:"description,omitempty"`

	// 线路分组的id。
	LineId *string `json:"line_id,omitempty"`

	// 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS。
	UpdatedAt      *string `json:"updated_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateLineGroupsResponse) String added in v0.1.12

func (o UpdateLineGroupsResponse) String() string

type UpdatePrivateZoneInfoReq

type UpdatePrivateZoneInfoReq struct {

	// 域名的描述信息。长度不超过255个字符。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// 用于填写默认生成的SOA记录中有效缓存时间,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`
}

func (UpdatePrivateZoneInfoReq) String

func (o UpdatePrivateZoneInfoReq) String() string

type UpdatePrivateZoneRequest

type UpdatePrivateZoneRequest struct {

	// 待修改Zone的ID。
	ZoneId string `json:"zone_id"`

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

Request Object

func (UpdatePrivateZoneRequest) String

func (o UpdatePrivateZoneRequest) String() string

type UpdatePrivateZoneResponse

type UpdatePrivateZoneResponse struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。
	Masters *[]string `json:"masters,omitempty"`

	// 内网Zone关联的Router(VPC)信息
	Routers        *[]RouterWithStatus `json:"routers,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (UpdatePrivateZoneResponse) String

func (o UpdatePrivateZoneResponse) String() string

type UpdatePtrRecordRequest

type UpdatePtrRecordRequest struct {

	// 域名所属的区域。
	Region string `json:"region"`

	// 待修改弹性IP的PTR记录ID信息。
	FloatingipId string `json:"floatingip_id"`

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

Request Object

func (UpdatePtrRecordRequest) String

func (o UpdatePtrRecordRequest) String() string

type UpdatePtrRecordResponse

type UpdatePtrRecordResponse struct {

	// PTR记录的ID,格式形如{region}:{floatingip_id}。
	Id *string `json:"id,omitempty"`

	// PTR记录对应的域名。
	Ptrdname *string `json:"ptrdname,omitempty"`

	// 对PTR记录的描述。
	Description *string `json:"description,omitempty"`

	// PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 弹性IP的IP地址。
	Address *string `json:"address,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 对该资源的当前操作。  取值范围:  CREATE:表示创建 UPDATE:表示更新 DELETE:表示删除 NONE:表示无操作
	Action *string `json:"action,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdatePtrRecordResponse) String

func (o UpdatePtrRecordResponse) String() string

type UpdatePtrReq

type UpdatePtrReq struct {

	// PTR记录对应的域名。
	Ptrdname string `json:"ptrdname"`

	// 对PTR记录的描述。
	Description *string `json:"description,omitempty"`

	// PTR记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

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

func (UpdatePtrReq) String

func (o UpdatePtrReq) String() string

type UpdatePublicZoneInfo

type UpdatePublicZoneInfo struct {

	// 域名的描述信息。长度不超过255个字符。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。  如果为空,表示维持原值。  默认值为空。
	Email *string `json:"email,omitempty"`

	// 用于填写默认生成的SOA记录中有效缓存时间,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`
}

func (UpdatePublicZoneInfo) String

func (o UpdatePublicZoneInfo) String() string

type UpdatePublicZoneRequest

type UpdatePublicZoneRequest struct {

	// 待修改zone的ID
	ZoneId string `json:"zone_id"`

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

Request Object

func (UpdatePublicZoneRequest) String

func (o UpdatePublicZoneRequest) String() string

type UpdatePublicZoneResponse

type UpdatePublicZoneResponse struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。  该参数暂未使用。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。  采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。  采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。  目前暂未使用。
	Masters        *[]string `json:"masters,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdatePublicZoneResponse) String

func (o UpdatePublicZoneResponse) String() string

type UpdatePublicZoneStatus

type UpdatePublicZoneStatus struct {

	// Zone状态。  取值范围:  ENABLE:启用解析 DISABLE:暂停解析
	Status string `json:"status"`
}

func (UpdatePublicZoneStatus) String

func (o UpdatePublicZoneStatus) String() string

type UpdatePublicZoneStatusRequest

type UpdatePublicZoneStatusRequest struct {

	// 待设置状态Zone的ID
	ZoneId string `json:"zone_id"`

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

Request Object

func (UpdatePublicZoneStatusRequest) String

type UpdatePublicZoneStatusResponse

type UpdatePublicZoneStatusResponse struct {

	// zone的ID,uuid形式的一个资源标识。
	Id *string `json:"id,omitempty"`

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

	// 对zone的描述信息。
	Description *string `json:"description,omitempty"`

	// 管理该zone的管理员邮箱。
	Email *string `json:"email,omitempty"`

	// zone类型,公网(public)或者内网(private)。
	ZoneType *string `json:"zone_type,omitempty"`

	// 该zone下SOA记录中的ttl值。
	Ttl *int32 `json:"ttl,omitempty"`

	// 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
	Serial *int32 `json:"serial,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 该zone下的recordset个数。
	RecordNum *int32 `json:"record_num,omitempty"`

	// 托管该zone的pool,由系统分配。
	PoolId *string `json:"pool_id,omitempty"`

	// zone所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 主从模式中,从DNS服务器用以获取DNS信息。目前暂未使用。
	Masters        *[]string `json:"masters,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdatePublicZoneStatusResponse) String

type UpdateRecordSetReq

type UpdateRecordSetReq struct {

	// 域名,后缀需以zone name结束且为FQDN(即以“.”号结束的完整主机名)。
	Name string `json:"name"`

	// 可选配置,对域名的描述。
	Description *string `json:"description,omitempty"`

	// Record Set的类型。
	Type string `json:"type"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 解析记录的值。不同类型解析记录对应的值的规则不同。
	Records *[]string `json:"records,omitempty"`
}

func (UpdateRecordSetReq) String

func (o UpdateRecordSetReq) String() string

type UpdateRecordSetRequest

type UpdateRecordSetRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

	// 待修改的recordset的ID信息。
	RecordsetId string `json:"recordset_id"`

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

Request Object

func (UpdateRecordSetRequest) String

func (o UpdateRecordSetRequest) String() string

type UpdateRecordSetResponse

type UpdateRecordSetResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。 取值范围:A,AAAA,MX,CNAME,TXT,NS(仅限公网Zone),SRV,CAA(仅限公网Zone)。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS
	UpdateAt *string `json:"update_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links          *PageLink `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdateRecordSetResponse) String

func (o UpdateRecordSetResponse) String() string

type UpdateRecordSetsReq

type UpdateRecordSetsReq struct {

	// 域名,后缀需以zone name结束且为FQDN(即以“.”号结束的完整主机名)。
	Name string `json:"name"`

	// 可选配置,对域名的描述。  长度不超过255个字符。  如果为空,表示维持原值。  默认值为空。
	Description *string `json:"description,omitempty"`

	// Record Set的类型。  取值范围:A、AAAA、MX、CNAME、TXT、NS、SRV、CAA。
	Type string `json:"type"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 解析记录的值。不同类型解析记录对应的值的规则不同。
	Records *[]string `json:"records,omitempty"`

	// 解析记录的权重。  当weight不填时,表示该解析记录将保持原有设置的权重。 当weight=0,表示该解析记录为备用域名解析记录。 当weight>0,表示该解析记录为主用域名解析记录。 取值范围:0~100  默认值为空。
	Weight *int32 `json:"weight,omitempty"`
}

func (UpdateRecordSetsReq) String

func (o UpdateRecordSetsReq) String() string

type UpdateRecordSetsRequest

type UpdateRecordSetsRequest struct {

	// 所属zone的ID。
	ZoneId string `json:"zone_id"`

	// 待查询recordset的ID信息。
	RecordsetId string `json:"recordset_id"`

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

Request Object

func (UpdateRecordSetsRequest) String

func (o UpdateRecordSetsRequest) String() string

type UpdateRecordSetsResponse

type UpdateRecordSetsResponse struct {

	// Record Set的ID。
	Id *string `json:"id,omitempty"`

	// Record Set的名称。
	Name *string `json:"name,omitempty"`

	// Record Set的描述信息。
	Description *string `json:"description,omitempty"`

	// 托管该记录的zone_id。
	ZoneId *string `json:"zone_id,omitempty"`

	// 托管该记录的zone_name。
	ZoneName *string `json:"zone_name,omitempty"`

	// 记录类型。  取值范围:A、AAAA、MX、CNAME、TXT、NS、SRV、CAA。
	Type *string `json:"type,omitempty"`

	// 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
	Ttl *int32 `json:"ttl,omitempty"`

	// 域名解析后的值。
	Records *[]string `json:"records,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源状态。
	Status *string `json:"status,omitempty"`

	// 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
	Default *bool `json:"default,omitempty"`

	// 该Record Set所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	Links *PageLink `json:"links,omitempty"`

	// 解析线路ID。
	Line *string `json:"line,omitempty"`

	// 解析记录的权重。
	Weight *int32 `json:"weight,omitempty"`

	// 健康检查ID。
	HealthCheckId *string `json:"health_check_id,omitempty"`

	AliasTarget    *AliasTarget `json:"alias_target,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (UpdateRecordSetsResponse) String

func (o UpdateRecordSetsResponse) String() string

type ValuesItem

type ValuesItem struct {

	// 所有版本列表。
	Values *[]ListApiVersionsItem `json:"values,omitempty"`
}

版本对象。

func (ValuesItem) String

func (o ValuesItem) String() string

type VersionItem

type VersionItem struct {

	// 版本ID(版本号),如v2。
	Id *string `json:"id,omitempty"`

	// 版本状态,为如下3种: CURRENT:表示该版本为主推版本。 SUPPORTED:表示为老版本,但是现在还继续支持。 DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status *string `json:"status,omitempty"`

	// API的URL地址。
	Links *[]LinksItem `json:"links,omitempty"`

	// 版本发布时间。
	Updated *string `json:"updated,omitempty"`

	// 支持的最大微版本号。若该版本API不支持微版本,则为空。
	Version *string `json:"version,omitempty"`

	// 支持的最小微版本号。若该版本API不支持微版本,则为空。
	MinVersion *string `json:"min_version,omitempty"`
}

func (VersionItem) String

func (o VersionItem) String() string

Source Files

Jump to

Keyboard shortcuts

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