pvtz

package
v0.0.0-...-ba7e8e4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ECSDefaultEndpoint is the default API endpoint of ECS services
	PVTZDefaultEndpoint = "https://pvtz.aliyuncs.com"
	PVTZServiceCode     = "pvtz"
	PVTZAPIVersion      = "2018-01-01"
)
View Source
const DefaultTimeout = 60

Default timeout value for WaitForXXX method

View Source
const DefaultWaitForInterval = 5

Interval for checking status in WaitForXXX method

View Source
const DisableStatus = RecordStatus("DISABLE")
View Source
const EnableStatus = RecordStatus("ENABLE")

Variables

This section is empty.

Functions

This section is empty.

Types

type AddZoneArgs

type AddZoneArgs struct {
	ZoneName     string
	Lang         string
	UserClientIp string
}

type AddZoneRecordArgs

type AddZoneRecordArgs struct {
	ZoneName     string
	Rr           string
	Type         string
	Value        string
	ZoneId       string
	Lang         string
	Priority     int
	Ttl          int
	UserClientIp string
}

type AddZoneRecordResponse

type AddZoneRecordResponse struct {
	common.Response
	Success  bool
	RecordId int64
}

type AddZoneResponse

type AddZoneResponse struct {
	common.Response
	Success  bool
	ZoneId   string
	ZoneName string
}

type BindZoneVpcArgs

type BindZoneVpcArgs struct {
	ZoneId       string
	Lang         string
	UserClientIp string
	Vpcs         []VPCType
}

type BindZoneVpcResponse

type BindZoneVpcResponse struct {
	common.Response
}

type ChangeLogType

type ChangeLogType struct {
	OperTimestamp int64
	OperAction    string
	OperObject    string
	EntityId      string
	EntityName    string
	OperIp        string
	OperTime      util.ISO6801Time
	Id            int64
	Content       string
	IsPtr         bool
	RecordCount   int
}

type CheckZoneNameArgs

type CheckZoneNameArgs struct {
	ZoneName     string
	Lang         string
	UserClientIp string
}

type CheckZoneNameResponse

type CheckZoneNameResponse struct {
	common.Response
	Success bool
	Check   bool
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of ECS client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string) *Client

func NewClientWithRegion

func NewClientWithRegion(endpoint string, accessKeyId string, accessKeySecret string, regionID common.Region) *Client

func NewPVTZClient

func NewPVTZClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client

--------------------------------------- NewPVTZClient creates a new instance of PVTZ client ---------------------------------------

func NewPVTZClientWithEndpoint

func NewPVTZClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string, regionID common.Region) *Client

func NewPVTZClientWithEndpointAndSecurityToken

func NewPVTZClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewPVTZClientWithEndpointAndSecurityToken4RegionalDomain

func NewPVTZClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

only for hangzhou

func NewPVTZClientWithSecurityToken

func NewPVTZClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewPVTZClientWithSecurityToken4RegionalDomain

func NewPVTZClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

Onlyfor hangzhou

func (*Client) AddZone

func (client *Client) AddZone(args *AddZoneArgs) (response *AddZoneResponse, err error)

AddZone add zone

You can read doc at https://help.aliyun.com/document_detail/66240.html

func (*Client) AddZoneRecord

func (client *Client) AddZoneRecord(args *AddZoneRecordArgs) (response *AddZoneRecordResponse, err error)

AddZoneRecord add zone record

You can read doc at https://help.aliyun.com/document_detail/66248.html

func (*Client) BindZoneVpc

func (client *Client) BindZoneVpc(args *BindZoneVpcArgs) (err error)

BindZoneVpc bind zone to VPC

You can read doc at https://help.aliyun.com/document_detail/66244.html

func (*Client) CheckZoneName

func (client *Client) CheckZoneName(args *CheckZoneNameArgs) (bool, error)

CheckZoneName check zone name available or not

You can read doc at https://help.aliyun.com/document_detail/66240.html

func (*Client) DeleteZone

func (client *Client) DeleteZone(args *DeleteZoneArgs) (err error)

DeleteZone delete zone

You can read doc at https://help.aliyun.com/document_detail/66240.html

func (*Client) DeleteZoneRecord

func (client *Client) DeleteZoneRecord(args *DeleteZoneRecordArgs) (err error)

DeleteZone delete zone

You can read doc at https://help.aliyun.com/document_detail/66249.html

func (*Client) DeleteZoneRecordsByRR

func (client *Client) DeleteZoneRecordsByRR(zoneId string, rr string) error

func (*Client) DescribeChangeLogs

func (client *Client) DescribeChangeLogs(args *DescribeChangeLogsArgs) (logs []ChangeLogType, err error)

DescribeChangeLogs describes change logs

You can read doc at https://help.aliyun.com/document_detail/66253.html

func (*Client) DescribeRegions

func (client *Client) DescribeRegions() (regions []RegionType, err error)

DescribeRegions describes regions

You can read doc at https://help.aliyun.com/document_detail/66246.html

func (*Client) DescribeZoneInfo

func (client *Client) DescribeZoneInfo(args *DescribeZoneInfoArgs) (response *DescribeZoneInfoResponse, err error)

DescribeZoneInfo describes zone info

You can read doc at https://help.aliyun.com/document_detail/66244.html

func (*Client) DescribeZoneRecords

func (client *Client) DescribeZoneRecords(args *DescribeZoneRecordsArgs) (records []ZoneRecordType, err error)

DescribeZoneRecords describes zones

You can read doc at https://help.aliyun.com/document_detail/66252.html

func (*Client) DescribeZoneRecordsByRR

func (client *Client) DescribeZoneRecordsByRR(zoneId string, rr string) (records []ZoneRecordType, err error)

func (*Client) DescribeZones

func (client *Client) DescribeZones(args *DescribeZonesArgs) (zones []ZoneType, err error)

DescribeZones describes zones

You can read doc at https://help.aliyun.com/document_detail/66243.html

func (*Client) SetZoneRecordStatus

func (client *Client) SetZoneRecordStatus(args *SetZoneRecordStatusArgs) (err error)

SetZoneRecordStatus set zone record status

You can read doc at https://help.aliyun.com/document_detail/66251.html

func (*Client) UpdateZoneRecord

func (client *Client) UpdateZoneRecord(args *UpdateZoneRecordArgs) (err error)

UpdateZoneRecord update zone record

You can read doc at https://help.aliyun.com/document_detail/66250.html

func (*Client) UpdateZoneRemark

func (client *Client) UpdateZoneRemark(args *UpdateZoneRemarkArgs) error

CheckZoneName check zone name available or not

You can read doc at https://help.aliyun.com/document_detail/66242.html

type DeleteZoneArgs

type DeleteZoneArgs struct {
	ZoneId       string
	Lang         string
	UserClientIp string
}

type DeleteZoneRecordArgs

type DeleteZoneRecordArgs struct {
	RecordId     int64
	Lang         string
	UserClientIp string
}

type DeleteZoneRecordResponse

type DeleteZoneRecordResponse struct {
	common.Response
	RecordId int64
}

type DeleteZoneResponse

type DeleteZoneResponse struct {
	common.Response
	ZoneId string
}

type DescribeChangeLogsArgs

type DescribeChangeLogsArgs struct {
	StartTime    int64
	EndTime      int64
	EntityType   string
	Keyword      string
	Lang         string
	UserClientIp string
	common.Pagination
}

type DescribeChangeLogsResponse

type DescribeChangeLogsResponse struct {
	common.Response
	common.PaginationResult
	ChangeLogs struct {
		ChangeLog []ChangeLogType
	}
}

type DescribeRegionsArgs

type DescribeRegionsArgs struct {
}

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	common.Response
	Regions struct {
		Region []RegionType
	}
}

type DescribeZoneInfoArgs

type DescribeZoneInfoArgs struct {
	ZoneId       string
	Lang         string
	UserClientIp string
	common.Pagination
}

type DescribeZoneInfoResponse

type DescribeZoneInfoResponse struct {
	common.Response
	ZoneName        string
	ZoneId          string
	Remark          string
	RecordCount     int
	RegionName      string
	IsPtr           bool
	CreateTime      util.ISO6801Time
	CreateTimestamp int64
	UpdateTime      util.ISO6801Time
	UpdateTimestamp int64
	BindVpcs        struct {
		VPC []VPCType
	}
}

type DescribeZoneRecordsArgs

type DescribeZoneRecordsArgs struct {
	ZoneId       string
	Keyword      string
	Lang         string
	UserClientIp string
	common.Pagination
}

type DescribeZoneRecordsResponse

type DescribeZoneRecordsResponse struct {
	common.Response
	common.PaginationResult
	Records struct {
		Record []ZoneRecordType
	}
}

type DescribeZonesArgs

type DescribeZonesArgs struct {
	Keyword      string
	Lang         string
	UserClientIp string
	common.Pagination
}

type DescribeZonesResponse

type DescribeZonesResponse struct {
	common.Response
	common.PaginationResult
	Zones struct {
		Zone []ZoneType
	}
}

type RecordStatus

type RecordStatus string

type RegionType

type RegionType struct {
	RegionId   common.Region
	RegionName string
}

type SetZoneRecordStatusArgs

type SetZoneRecordStatusArgs struct {
	RecordId     int64
	Lang         string
	UserClientIp string
	Status       RecordStatus
}

type SetZoneRecordStatusResponse

type SetZoneRecordStatusResponse struct {
	common.Response
	RecordId string
	Status   RecordStatus
}

type UpdateZoneRecordArgs

type UpdateZoneRecordArgs struct {
	RecordId     int64
	Rr           string
	Type         string
	Value        string
	Lang         string
	Priority     int
	Ttl          int
	UserClientIp string
}

type UpdateZoneRecordResponse

type UpdateZoneRecordResponse struct {
	common.Response
	RecordId int64
}

type UpdateZoneRemarkArgs

type UpdateZoneRemarkArgs struct {
	ZoneId       string
	Lang         string
	UserClientIp string
	Remark       string
}

type UpdateZoneRemarkResponse

type UpdateZoneRemarkResponse struct {
	common.Response
	ZoneId string
}

type VPCType

type VPCType struct {
	RegionId common.Region
	VpcId    string
	VpcName  string
}

type ZoneRecordType

type ZoneRecordType struct {
	RecordId int64
	Rr       string
	Type     string
	Ttl      int
	Priority int
	Value    string
	Status   RecordStatus
}

type ZoneType

type ZoneType struct {
	ZoneName    string
	ZoneId      string
	IsPtr       bool
	RecordCount int
	CreateTime  util.ISO6801Time
	UpdateTime  util.ISO6801Time
}

Jump to

Keyboard shortcuts

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