api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRegion = "ap-guangzhou"
View Source
const (
	DefaultTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

func DecodeError

func DecodeError(statusCode int, body []byte) error

func IsAccessDenied added in v0.2.5

func IsAccessDenied(err error) bool

func NewHTTPClient

func NewHTTPClient() *http.Client

func NewTransport

func NewTransport() *http.Transport

Types

type APIError

type APIError struct {
	Code       string
	Message    string
	RequestID  string
	StatusCode int
}

func (*APIError) Error

func (e *APIError) Error() string

type AddUserRequest

type AddUserRequest struct {
	Name              *string `json:"Name,omitempty"`
	ConsoleLogin      *uint64 `json:"ConsoleLogin,omitempty"`
	Password          *string `json:"Password,omitempty"`
	NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty"`
}

type AddUserResponse

type AddUserResponse struct {
	Response struct {
		Uin       *uint64 `json:"Uin"`
		Name      *string `json:"Name"`
		Password  *string `json:"Password"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type AttachRolePolicyRequest

type AttachRolePolicyRequest struct {
	PolicyID       *uint64 `json:"PolicyId,omitempty"`
	AttachRoleName *string `json:"AttachRoleName,omitempty"`
}

type AttachRolePolicyResponse

type AttachRolePolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type AttachUserPolicyRequest

type AttachUserPolicyRequest struct {
	PolicyID  *uint64 `json:"PolicyId,omitempty"`
	AttachUin *uint64 `json:"AttachUin,omitempty"`
}

type AttachUserPolicyResponse

type AttachUserPolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type AttachedUserPolicy

type AttachedUserPolicy struct {
	PolicyID     *string `json:"PolicyId"`
	PolicyName   *string `json:"PolicyName"`
	StrategyType *string `json:"StrategyType"`
}

type CAMAccessKey added in v0.3.1

type CAMAccessKey struct {
	AccessKeyID *string `json:"AccessKeyId"`
	Status      *string `json:"Status"`
	CreateTime  *string `json:"CreateTime"`
}

type CAMAccessKeySecret added in v0.3.1

type CAMAccessKeySecret struct {
	AccessKeyID     *string `json:"AccessKeyId"`
	SecretAccessKey *string `json:"SecretAccessKey"`
	Status          *string `json:"Status"`
	CreateTime      *string `json:"CreateTime"`
}

type CDBAccount added in v0.3.1

type CDBAccount struct {
	User       *string `json:"User"`
	Host       *string `json:"Host"`
	Notes      *string `json:"Notes,omitempty"`
	CreateTime *string `json:"CreateTime,omitempty"`
}

type CDBInstanceInfo

type CDBInstanceInfo struct {
	InstanceID    *string `json:"InstanceId"`
	EngineVersion *string `json:"EngineVersion"`
	Region        *string `json:"Region"`
	WanStatus     *int64  `json:"WanStatus"`
	WanDomain     *string `json:"WanDomain"`
	WanPort       *int64  `json:"WanPort"`
	Vip           *string `json:"Vip"`
	Vport         *int64  `json:"Vport"`
}

type CDBRegionSellConf

type CDBRegionSellConf struct {
	Region *string `json:"Region"`
}

type CLSFilter added in v0.3.1

type CLSFilter struct {
	Key    *string  `json:"Key,omitempty"`
	Values []string `json:"Values,omitempty"`
}

type CLSLogset added in v0.3.1

type CLSLogset struct {
	LogsetID    *string  `json:"LogsetId"`
	LogsetName  *string  `json:"LogsetName"`
	CreateTime  *string  `json:"CreateTime"`
	AssumerName *string  `json:"AssumerName"`
	Tags        []CLSTag `json:"Tags"`
	TopicCount  *uint64  `json:"TopicCount"`
	RoleName    *string  `json:"RoleName"`
}

CLSLogset is the typed wire shape of a CLS logset entry. The CLS API uses pointer fields for every value; helper getters live in the driver to dereference them safely.

type CLSTag added in v0.3.1

type CLSTag struct {
	Key   *string `json:"Key"`
	Value *string `json:"Value"`
}

type CVMInstanceInfo

type CVMInstanceInfo struct {
	InstanceID         *string  `json:"InstanceId"`
	InstanceName       *string  `json:"InstanceName"`
	InstanceState      *string  `json:"InstanceState"`
	PublicIPAddresses  []string `json:"PublicIpAddresses"`
	PrivateIPAddresses []string `json:"PrivateIpAddresses"`
	OSName             *string  `json:"OsName"`
}

type CVMRegionInfo

type CVMRegionInfo struct {
	Region *string `json:"Region"`
}

type Client

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

func NewClient

func NewClient(credential auth.Credential, opts ...Option) *Client

func (*Client) AddUser

func (c *Client) AddUser(ctx context.Context, name, password string) (AddUserResponse, error)

func (*Client) AttachRolePolicy

func (c *Client) AttachRolePolicy(ctx context.Context, roleName string, policyID uint64) (AttachRolePolicyResponse, error)

func (*Client) AttachUserPolicy

func (c *Client) AttachUserPolicy(ctx context.Context, attachUin, policyID uint64) (AttachUserPolicyResponse, error)

func (*Client) CreateAccessKey added in v0.3.1

func (c *Client) CreateAccessKey(ctx context.Context, targetUin uint64) (CreateAccessKeyResponse, error)

func (*Client) CreateCDBAccounts added in v0.3.1

func (c *Client) CreateCDBAccounts(ctx context.Context, region, instanceID, user, host, password string) (CreateCDBAccountsResponse, error)

func (*Client) CreateRole

func (c *Client) CreateRole(ctx context.Context, roleName, policyDocument string, consoleLogin, sessionDuration uint64) (CreateRoleResponse, error)

func (*Client) DeleteAccessKey added in v0.3.1

func (c *Client) DeleteAccessKey(ctx context.Context, targetUin uint64, accessKeyID string) (DeleteAccessKeyResponse, error)

func (*Client) DeleteCDBAccounts added in v0.3.1

func (c *Client) DeleteCDBAccounts(ctx context.Context, region, instanceID, user, host string) (DeleteCDBAccountsResponse, error)

func (*Client) DeleteRole

func (c *Client) DeleteRole(ctx context.Context, roleName string) (DeleteRoleResponse, error)

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, name string, force uint64) (DeleteUserResponse, error)

func (*Client) DescribeAccountBalance

func (c *Client) DescribeAccountBalance(ctx context.Context, region string) (DescribeAccountBalanceResponse, error)

func (*Client) DescribeCDBAccounts added in v0.3.1

func (c *Client) DescribeCDBAccounts(ctx context.Context, region, instanceID string) (DescribeCDBAccountsResponse, error)

func (*Client) DescribeCDBInstances

func (c *Client) DescribeCDBInstances(ctx context.Context, region string) (DescribeCDBInstancesResponse, error)

func (*Client) DescribeCDBZoneConfig

func (c *Client) DescribeCDBZoneConfig(ctx context.Context, region string) (DescribeCDBZoneConfigResponse, error)

func (*Client) DescribeCVMInstances

func (c *Client) DescribeCVMInstances(ctx context.Context, region string, offset, limit int64) (DescribeCVMInstancesResponse, error)

func (*Client) DescribeCVMRegions

func (c *Client) DescribeCVMRegions(ctx context.Context, region string) (DescribeCVMRegionsResponse, error)

func (*Client) DescribeDomainList

func (c *Client) DescribeDomainList(ctx context.Context, region string, offset, limit int64) (DescribeDomainListResponse, error)

func (*Client) DescribeLighthouseInstances

func (c *Client) DescribeLighthouseInstances(ctx context.Context, region string, offset, limit int64) (DescribeLighthouseInstancesResponse, error)

func (*Client) DescribeLighthouseRegions

func (c *Client) DescribeLighthouseRegions(ctx context.Context, region string) (DescribeLighthouseRegionsResponse, error)

func (*Client) DescribeLogsets added in v0.3.1

func (c *Client) DescribeLogsets(ctx context.Context, region string, offset, limit uint64) (DescribeLogsetsResponse, error)

DescribeLogsets queries the CLS logsets in a region. limit/offset paginate.

func (*Client) DescribeMariaDBInstances

func (c *Client) DescribeMariaDBInstances(ctx context.Context, region string) (DescribeMariaDBInstancesResponse, error)

func (*Client) DescribeMariaDBSaleInfo

func (c *Client) DescribeMariaDBSaleInfo(ctx context.Context, region string) (DescribeMariaDBSaleInfoResponse, error)

func (*Client) DescribePostgresInstances

func (c *Client) DescribePostgresInstances(ctx context.Context, region string) (DescribePostgresInstancesResponse, error)

func (*Client) DescribePostgresRegions

func (c *Client) DescribePostgresRegions(ctx context.Context, region string) (DescribePostgresRegionsResponse, error)

func (*Client) DescribeRecordList

func (c *Client) DescribeRecordList(ctx context.Context, region, domain string, offset, limit uint64) (DescribeRecordListResponse, error)

func (*Client) DescribeSQLServerInstances

func (c *Client) DescribeSQLServerInstances(ctx context.Context, region string) (DescribeSQLServerInstancesResponse, error)

func (*Client) DescribeSQLServerRegions

func (c *Client) DescribeSQLServerRegions(ctx context.Context, region string) (DescribeSQLServerRegionsResponse, error)

func (*Client) DescribeSmsSignList added in v0.3.1

func (c *Client) DescribeSmsSignList(ctx context.Context, region string, signIDs []uint64) (DescribeSmsSignListResponse, error)

func (*Client) DescribeSmsTemplateList added in v0.3.1

func (c *Client) DescribeSmsTemplateList(ctx context.Context, region string, templateIDs []uint64) (DescribeSmsTemplateListResponse, error)

func (*Client) DescribeTATInvocationTasks

func (c *Client) DescribeTATInvocationTasks(ctx context.Context, region string, invocationTaskIDs []string, hideOutput bool) (DescribeTATInvocationTasksResponse, error)

func (*Client) DescribeTATInvocations

func (c *Client) DescribeTATInvocations(ctx context.Context, region string, invocationIDs []string) (DescribeTATInvocationsResponse, error)

func (*Client) DetachRolePolicy

func (c *Client) DetachRolePolicy(ctx context.Context, roleName string, policyID uint64) (DetachRolePolicyResponse, error)

func (*Client) DetachUserPolicy

func (c *Client) DetachUserPolicy(ctx context.Context, detachUin, policyID uint64) (DetachUserPolicyResponse, error)

func (*Client) Do

func (c *Client) Do(ctx context.Context, req Request, resp any) error

func (*Client) DoJSON

func (c *Client) DoJSON(
	ctx context.Context,
	service string,
	version string,
	action string,
	region string,
	req any,
	resp any,
) error

func (*Client) GetPolicy

func (c *Client) GetPolicy(ctx context.Context, policyID uint64) (GetPolicyResponse, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, name string) (GetUserResponse, error)

func (*Client) GetUserAppID

func (c *Client) GetUserAppID(ctx context.Context) (GetUserAppIDResponse, error)

func (*Client) ListAccessKeys added in v0.3.1

func (c *Client) ListAccessKeys(ctx context.Context, targetUin uint64) (ListAccessKeysResponse, error)

func (*Client) ListAttachedUserAllPolicies

func (c *Client) ListAttachedUserAllPolicies(ctx context.Context, targetUin, page, rp, attachType uint64) (ListAttachedUserAllPoliciesResponse, error)

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context) (ListUsersResponse, error)

func (*Client) LookUpEvents added in v0.3.1

func (c *Client) LookUpEvents(ctx context.Context, region string, startTime, endTime int64, maxResults uint64, nextToken string) (LookUpEventsResponse, error)

LookUpEvents queries the Tencent CloudAudit operation log. The default caller behaviour mirrors the existing alibaba SAS dump: surface the most recent operations so a CSPM detection can be cross-referenced. StartTime / EndTime are unix seconds; pass 0 to leave them unset and fall back to the CloudAudit default lookback window.

func (*Client) RunTATCommand

func (c *Client) RunTATCommand(ctx context.Context, region, commandType, content string, instanceIDs []string) (RunTATCommandResponse, error)

type CloudAuditEvent added in v0.3.1

type CloudAuditEvent struct {
	EventID         *string `json:"EventId"`
	EventName       *string `json:"EventName"`
	EventNameCn     *string `json:"EventNameCn"`
	EventTime       *string `json:"EventTime"`
	EventRegion     *string `json:"EventRegion"`
	Username        *string `json:"Username"`
	SourceIPAddress *string `json:"SourceIPAddress"`
	ResourceTypeCn  *string `json:"ResourceTypeCn"`
	ResourceName    *string `json:"ResourceName"`
	Status          *uint64 `json:"Status"`
	SecretID        *string `json:"SecretId"`
	APIVersion      *string `json:"ApiVersion"`
}

type CreateAccessKeyRequest added in v0.3.1

type CreateAccessKeyRequest struct {
	TargetUin *uint64 `json:"TargetUin,omitempty"`
}

type CreateAccessKeyResponse added in v0.3.1

type CreateAccessKeyResponse struct {
	Response struct {
		AccessKey CAMAccessKeySecret `json:"AccessKey"`
		RequestID string             `json:"RequestId"`
	} `json:"Response"`
}

type CreateCDBAccountsRequest added in v0.3.1

type CreateCDBAccountsRequest struct {
	InstanceID  *string      `json:"InstanceId,omitempty"`
	Accounts    []CDBAccount `json:"Accounts,omitempty"`
	Password    *string      `json:"Password,omitempty"`
	Description *string      `json:"Description,omitempty"`
}

type CreateCDBAccountsResponse added in v0.3.1

type CreateCDBAccountsResponse struct {
	Response struct {
		AsyncRequestID *string `json:"AsyncRequestId"`
		RequestID      string  `json:"RequestId"`
	} `json:"Response"`
}

type CreateRoleRequest

type CreateRoleRequest struct {
	RoleName        *string `json:"RoleName,omitempty"`
	PolicyDocument  *string `json:"PolicyDocument,omitempty"`
	ConsoleLogin    *uint64 `json:"ConsoleLogin,omitempty"`
	SessionDuration *uint64 `json:"SessionDuration,omitempty"`
}

type CreateRoleResponse

type CreateRoleResponse struct {
	Response struct {
		RoleID    *string `json:"RoleId"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type DeleteAccessKeyRequest added in v0.3.1

type DeleteAccessKeyRequest struct {
	AccessKeyID *string `json:"AccessKeyId,omitempty"`
	TargetUin   *uint64 `json:"TargetUin,omitempty"`
}

type DeleteAccessKeyResponse added in v0.3.1

type DeleteAccessKeyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DeleteCDBAccountsRequest added in v0.3.1

type DeleteCDBAccountsRequest struct {
	InstanceID *string      `json:"InstanceId,omitempty"`
	Accounts   []CDBAccount `json:"Accounts,omitempty"`
}

type DeleteCDBAccountsResponse added in v0.3.1

type DeleteCDBAccountsResponse struct {
	Response struct {
		AsyncRequestID *string `json:"AsyncRequestId"`
		RequestID      string  `json:"RequestId"`
	} `json:"Response"`
}

type DeleteRoleRequest

type DeleteRoleRequest struct {
	RoleName *string `json:"RoleName,omitempty"`
}

type DeleteRoleResponse

type DeleteRoleResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DeleteUserRequest

type DeleteUserRequest struct {
	Name  *string `json:"Name,omitempty"`
	Force *uint64 `json:"Force,omitempty"`
}

type DeleteUserResponse

type DeleteUserResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DescribeAccountBalanceRequest

type DescribeAccountBalanceRequest struct{}

type DescribeAccountBalanceResponse

type DescribeAccountBalanceResponse struct {
	Response struct {
		Balance            *int64   `json:"Balance"`
		RealBalance        *float64 `json:"RealBalance"`
		CashAccountBalance *float64 `json:"CashAccountBalance"`
		RequestID          string   `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCDBAccountsRequest added in v0.3.1

type DescribeCDBAccountsRequest struct {
	InstanceID *string `json:"InstanceId,omitempty"`
	Limit      *int64  `json:"Limit,omitempty"`
	Offset     *int64  `json:"Offset,omitempty"`
}

type DescribeCDBAccountsResponse added in v0.3.1

type DescribeCDBAccountsResponse struct {
	Response struct {
		TotalCount *int64       `json:"TotalCount"`
		Items      []CDBAccount `json:"Items"`
		RequestID  string       `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCDBInstancesRequest

type DescribeCDBInstancesRequest struct{}

type DescribeCDBInstancesResponse

type DescribeCDBInstancesResponse struct {
	Response struct {
		Items     []CDBInstanceInfo `json:"Items"`
		RequestID string            `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCDBZoneConfigRequest

type DescribeCDBZoneConfigRequest struct{}

type DescribeCDBZoneConfigResponse

type DescribeCDBZoneConfigResponse struct {
	Response struct {
		DataResult struct {
			Regions []CDBRegionSellConf `json:"Regions"`
		} `json:"DataResult"`
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCVMInstancesRequest

type DescribeCVMInstancesRequest struct {
	Offset *int64 `json:"Offset,omitempty"`
	Limit  *int64 `json:"Limit,omitempty"`
}

type DescribeCVMInstancesResponse

type DescribeCVMInstancesResponse struct {
	Response struct {
		TotalCount  *int64            `json:"TotalCount"`
		InstanceSet []CVMInstanceInfo `json:"InstanceSet"`
		RequestID   string            `json:"RequestId"`
	} `json:"Response"`
}

type DescribeCVMRegionsRequest

type DescribeCVMRegionsRequest struct{}

type DescribeCVMRegionsResponse

type DescribeCVMRegionsResponse struct {
	Response struct {
		RegionSet []CVMRegionInfo `json:"RegionSet"`
		RequestID string          `json:"RequestId"`
	} `json:"Response"`
}

type DescribeDomainListRequest

type DescribeDomainListRequest struct {
	Offset int64 `json:"Offset,omitempty"`
	Limit  int64 `json:"Limit,omitempty"`
}

type DescribeDomainListResponse

type DescribeDomainListResponse struct {
	Response struct {
		DomainCountInfo struct {
			DomainTotal *uint64 `json:"DomainTotal"`
		} `json:"DomainCountInfo"`
		DomainList []DomainListItem `json:"DomainList"`
		RequestID  string           `json:"RequestId"`
	} `json:"Response"`
}

type DescribeLighthouseInstancesRequest

type DescribeLighthouseInstancesRequest struct {
	Offset *int64 `json:"Offset,omitempty"`
	Limit  *int64 `json:"Limit,omitempty"`
}

type DescribeLighthouseInstancesResponse

type DescribeLighthouseInstancesResponse struct {
	Response struct {
		TotalCount  *int64                   `json:"TotalCount"`
		InstanceSet []LighthouseInstanceInfo `json:"InstanceSet"`
		RequestID   string                   `json:"RequestId"`
	} `json:"Response"`
}

type DescribeLighthouseRegionsRequest

type DescribeLighthouseRegionsRequest struct{}

type DescribeLighthouseRegionsResponse

type DescribeLighthouseRegionsResponse struct {
	Response struct {
		RegionSet []LighthouseRegionInfo `json:"RegionSet"`
		RequestID string                 `json:"RequestId"`
	} `json:"Response"`
}

type DescribeLogsetsRequest added in v0.3.1

type DescribeLogsetsRequest struct {
	Filters []CLSFilter `json:"Filters,omitempty"`
	Offset  *uint64     `json:"Offset,omitempty"`
	Limit   *uint64     `json:"Limit,omitempty"`
}

type DescribeLogsetsResponse added in v0.3.1

type DescribeLogsetsResponse struct {
	Response struct {
		TotalCount *uint64     `json:"TotalCount"`
		Logsets    []CLSLogset `json:"Logsets"`
		RequestID  string      `json:"RequestId"`
	} `json:"Response"`
}

type DescribeMariaDBInstancesRequest

type DescribeMariaDBInstancesRequest struct{}

type DescribeMariaDBInstancesResponse

type DescribeMariaDBInstancesResponse struct {
	Response struct {
		Instances []MariaDBInstanceInfo `json:"Instances"`
		RequestID string                `json:"RequestId"`
	} `json:"Response"`
}

type DescribeMariaDBSaleInfoRequest

type DescribeMariaDBSaleInfoRequest struct{}

type DescribeMariaDBSaleInfoResponse

type DescribeMariaDBSaleInfoResponse struct {
	Response struct {
		RegionList []MariaDBRegionInfo `json:"RegionList"`
		RequestID  string              `json:"RequestId"`
	} `json:"Response"`
}

type DescribePostgresInstancesRequest

type DescribePostgresInstancesRequest struct{}

type DescribePostgresInstancesResponse

type DescribePostgresInstancesResponse struct {
	Response struct {
		DBInstanceSet []PostgresInstanceInfo `json:"DBInstanceSet"`
		RequestID     string                 `json:"RequestId"`
	} `json:"Response"`
}

type DescribePostgresRegionsRequest

type DescribePostgresRegionsRequest struct{}

type DescribePostgresRegionsResponse

type DescribePostgresRegionsResponse struct {
	Response struct {
		RegionSet []PostgresRegionInfo `json:"RegionSet"`
		RequestID string               `json:"RequestId"`
	} `json:"Response"`
}

type DescribeRecordListRequest

type DescribeRecordListRequest struct {
	Domain       string `json:"Domain"`
	Offset       uint64 `json:"Offset,omitempty"`
	Limit        uint64 `json:"Limit,omitempty"`
	ErrorOnEmpty string `json:"ErrorOnEmpty,omitempty"`
}

type DescribeRecordListResponse

type DescribeRecordListResponse struct {
	Response struct {
		RecordCountInfo struct {
			TotalCount *uint64 `json:"TotalCount"`
			ListCount  *uint64 `json:"ListCount"`
		} `json:"RecordCountInfo"`
		RecordList []RecordListItem `json:"RecordList"`
		RequestID  string           `json:"RequestId"`
	} `json:"Response"`
}

type DescribeSQLServerInstancesRequest

type DescribeSQLServerInstancesRequest struct{}

type DescribeSQLServerInstancesResponse

type DescribeSQLServerInstancesResponse struct {
	Response struct {
		DBInstances []SQLServerInstanceInfo `json:"DBInstances"`
		RequestID   string                  `json:"RequestId"`
	} `json:"Response"`
}

type DescribeSQLServerRegionsRequest

type DescribeSQLServerRegionsRequest struct{}

type DescribeSQLServerRegionsResponse

type DescribeSQLServerRegionsResponse struct {
	Response struct {
		RegionSet []SQLServerRegionInfo `json:"RegionSet"`
		RequestID string                `json:"RequestId"`
	} `json:"Response"`
}

type DescribeSmsSignListRequest added in v0.3.1

type DescribeSmsSignListRequest struct {
	SignIDSet     []uint64 `json:"SignIdSet"`
	International *uint64  `json:"International,omitempty"`
}

type DescribeSmsSignListResponse added in v0.3.1

type DescribeSmsSignListResponse struct {
	Response struct {
		DescribeSignListStatusSet []SmsSignDetail `json:"DescribeSignListStatusSet"`
		RequestID                 string          `json:"RequestId"`
	} `json:"Response"`
}

type DescribeSmsTemplateListRequest added in v0.3.1

type DescribeSmsTemplateListRequest struct {
	TemplateIDSet []uint64 `json:"TemplateIdSet"`
	International *uint64  `json:"International,omitempty"`
}

type DescribeSmsTemplateListResponse added in v0.3.1

type DescribeSmsTemplateListResponse struct {
	Response struct {
		DescribeTemplateStatusSet []SmsTemplateDetail `json:"DescribeTemplateStatusSet"`
		RequestID                 string              `json:"RequestId"`
	} `json:"Response"`
}

type DescribeTATInvocationTasksRequest

type DescribeTATInvocationTasksRequest struct {
	InvocationTaskIDs []string `json:"InvocationTaskIds,omitempty"`
	HideOutput        *bool    `json:"HideOutput,omitempty"`
}

type DescribeTATInvocationTasksResponse

type DescribeTATInvocationTasksResponse struct {
	Response struct {
		InvocationTaskSet []TATInvocationTask `json:"InvocationTaskSet"`
		RequestID         string              `json:"RequestId"`
	} `json:"Response"`
}

type DescribeTATInvocationsRequest

type DescribeTATInvocationsRequest struct {
	InvocationIDs []string `json:"InvocationIds,omitempty"`
}

type DescribeTATInvocationsResponse

type DescribeTATInvocationsResponse struct {
	Response struct {
		InvocationSet []TATInvocation `json:"InvocationSet"`
		RequestID     string          `json:"RequestId"`
	} `json:"Response"`
}

type DetachRolePolicyRequest

type DetachRolePolicyRequest struct {
	PolicyID       *uint64 `json:"PolicyId,omitempty"`
	DetachRoleName *string `json:"DetachRoleName,omitempty"`
}

type DetachRolePolicyResponse

type DetachRolePolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DetachUserPolicyRequest

type DetachUserPolicyRequest struct {
	PolicyID  *uint64 `json:"PolicyId,omitempty"`
	DetachUin *uint64 `json:"DetachUin,omitempty"`
}

type DetachUserPolicyResponse

type DetachUserPolicyResponse struct {
	Response struct {
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type DomainListItem

type DomainListItem struct {
	Name      *string `json:"Name"`
	Status    *string `json:"Status"`
	DNSStatus *string `json:"DNSStatus"`
}

type GetCallerIdentityRequest

type GetCallerIdentityRequest struct{}

type GetCallerIdentityResponse

type GetCallerIdentityResponse struct {
	Response struct {
		Arn       string `json:"Arn"`
		Type      string `json:"Type"`
		UserID    string `json:"UserId"`
		RequestID string `json:"RequestId"`
	} `json:"Response"`
}

type GetPolicyRequest

type GetPolicyRequest struct {
	PolicyID *uint64 `json:"PolicyId,omitempty"`
}

type GetPolicyResponse

type GetPolicyResponse struct {
	Response struct {
		PolicyDocument *string `json:"PolicyDocument"`
		RequestID      string  `json:"RequestId"`
	} `json:"Response"`
}

type GetUserAppIDRequest

type GetUserAppIDRequest struct{}

type GetUserAppIDResponse

type GetUserAppIDResponse struct {
	Response struct {
		OwnerUin  *string `json:"OwnerUin"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type GetUserRequest

type GetUserRequest struct {
	Name *string `json:"Name,omitempty"`
}

type GetUserResponse

type GetUserResponse struct {
	Response struct {
		Uin       *uint64 `json:"Uin"`
		Name      *string `json:"Name"`
		RequestID string  `json:"RequestId"`
	} `json:"Response"`
}

type HTTPStatusError

type HTTPStatusError struct {
	StatusCode int
	Status     string
	Body       string
}

func (*HTTPStatusError) Error

func (e *HTTPStatusError) Error() string

type LighthouseInstanceInfo

type LighthouseInstanceInfo struct {
	InstanceID       *string  `json:"InstanceId"`
	InstanceName     *string  `json:"InstanceName"`
	InstanceState    *string  `json:"InstanceState"`
	PublicAddresses  []string `json:"PublicAddresses"`
	PrivateAddresses []string `json:"PrivateAddresses"`
	PlatformType     *string  `json:"PlatformType"`
}

type LighthouseRegionInfo

type LighthouseRegionInfo struct {
	Region *string `json:"Region"`
}

type ListAccessKeysRequest added in v0.3.1

type ListAccessKeysRequest struct {
	TargetUin *uint64 `json:"TargetUin,omitempty"`
}

type ListAccessKeysResponse added in v0.3.1

type ListAccessKeysResponse struct {
	Response struct {
		AccessKeys []CAMAccessKey `json:"AccessKeys"`
		RequestID  string         `json:"RequestId"`
	} `json:"Response"`
}

type ListAttachedUserAllPoliciesRequest

type ListAttachedUserAllPoliciesRequest struct {
	TargetUin    *uint64 `json:"TargetUin,omitempty"`
	Rp           *uint64 `json:"Rp,omitempty"`
	Page         *uint64 `json:"Page,omitempty"`
	AttachType   *uint64 `json:"AttachType,omitempty"`
	StrategyType *uint64 `json:"StrategyType,omitempty"`
	Keyword      *string `json:"Keyword,omitempty"`
}

type ListAttachedUserAllPoliciesResponse

type ListAttachedUserAllPoliciesResponse struct {
	Response struct {
		PolicyList []AttachedUserPolicy `json:"PolicyList"`
		TotalNum   *uint64              `json:"TotalNum"`
		RequestID  string               `json:"RequestId"`
	} `json:"Response"`
}

type ListUsersRequest

type ListUsersRequest struct{}

type ListUsersResponse

type ListUsersResponse struct {
	Response struct {
		Data      []SubAccountInfo `json:"Data"`
		RequestID string           `json:"RequestId"`
	} `json:"Response"`
}

type LookUpEventsRequest added in v0.3.1

type LookUpEventsRequest struct {
	StartTime        *int64            `json:"StartTime,omitempty"`
	EndTime          *int64            `json:"EndTime,omitempty"`
	MaxResults       *uint64           `json:"MaxResults,omitempty"`
	NextToken        *string           `json:"NextToken,omitempty"`
	LookupAttributes []LookupAttribute `json:"LookupAttributes,omitempty"`
}

type LookUpEventsResponse added in v0.3.1

type LookUpEventsResponse struct {
	Response struct {
		NextToken *string           `json:"NextToken"`
		ListOver  *bool             `json:"ListOver"`
		Events    []CloudAuditEvent `json:"Events"`
		RequestID string            `json:"RequestId"`
	} `json:"Response"`
}

type LookupAttribute added in v0.3.1

type LookupAttribute struct {
	AttributeKey   *string `json:"AttributeKey,omitempty"`
	AttributeValue *string `json:"AttributeValue,omitempty"`
}

type MariaDBInstanceInfo

type MariaDBInstanceInfo struct {
	InstanceID *string `json:"InstanceId"`
	DBVersion  *string `json:"DbVersion"`
	Region     *string `json:"Region"`
	WanStatus  *int64  `json:"WanStatus"`
	WanDomain  *string `json:"WanDomain"`
	WanPort    *int64  `json:"WanPort"`
	Vip        *string `json:"Vip"`
	Vport      *int64  `json:"Vport"`
}

type MariaDBRegionInfo

type MariaDBRegionInfo struct {
	Region *string `json:"Region"`
}

type Option

type Option func(*Client)

func WithBaseURL

func WithBaseURL(rawURL string) Option

func WithClock

func WithClock(now func() time.Time) Option

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

func WithLanguage

func WithLanguage(language string) Option

func WithRequestClient

func WithRequestClient(name string) Option

func WithRetryPolicy

func WithRetryPolicy(policy RetryPolicy) Option

type PostgresInstanceInfo

type PostgresInstanceInfo struct {
	DBInstanceID      *string           `json:"DBInstanceId"`
	DBEngine          *string           `json:"DBEngine"`
	DBInstanceVersion *string           `json:"DBInstanceVersion"`
	Region            *string           `json:"Region"`
	DBInstanceNetInfo []PostgresNetInfo `json:"DBInstanceNetInfo"`
}

type PostgresNetInfo

type PostgresNetInfo struct {
	Address *string `json:"Address"`
	IP      *string `json:"Ip"`
	Port    *uint64 `json:"Port"`
	NetType *string `json:"NetType"`
	Status  *string `json:"Status"`
}

type PostgresRegionInfo

type PostgresRegionInfo struct {
	Region      *string `json:"Region"`
	RegionState *string `json:"RegionState"`
}

type RecordListItem

type RecordListItem struct {
	Name   *string `json:"Name"`
	Type   *string `json:"Type"`
	Value  *string `json:"Value"`
	Status *string `json:"Status"`
}

type Request

type Request struct {
	Service         string
	Version         string
	Action          string
	Region          string
	Method          string
	Path            string
	Query           url.Values
	Headers         http.Header
	Body            any
	Idempotent      bool
	UnsignedPayload bool
	Scheme          string
	Host            string
}

type RetryPolicy

type RetryPolicy = httpclient.RetryPolicy

func DefaultRetryPolicy

func DefaultRetryPolicy() RetryPolicy

type RunTATCommandRequest

type RunTATCommandRequest struct {
	Content     *string  `json:"Content,omitempty"`
	InstanceIDs []string `json:"InstanceIds,omitempty"`
	CommandType *string  `json:"CommandType,omitempty"`
}

type RunTATCommandResponse

type RunTATCommandResponse struct {
	Response struct {
		CommandID    *string `json:"CommandId"`
		InvocationID *string `json:"InvocationId"`
		RequestID    string  `json:"RequestId"`
	} `json:"Response"`
}

type SQLServerInstanceInfo

type SQLServerInstanceInfo struct {
	InstanceID   *string `json:"InstanceId"`
	VersionName  *string `json:"VersionName"`
	Version      *string `json:"Version"`
	Region       *string `json:"Region"`
	DNSPodDomain *string `json:"DnsPodDomain"`
	TgwWanVPort  *int64  `json:"TgwWanVPort"`
	Vip          *string `json:"Vip"`
	Vport        *int64  `json:"Vport"`
}

type SQLServerRegionInfo

type SQLServerRegionInfo struct {
	Region      *string `json:"Region"`
	RegionState *string `json:"RegionState"`
}

type SignInput

type SignInput struct {
	Method          string
	Service         string
	Host            string
	Path            string
	Query           string
	ContentType     string
	Timestamp       time.Time
	Payload         []byte
	UnsignedPayload bool
}

type Signature

type Signature struct {
	Authorization    string
	CanonicalRequest string
	StringToSign     string
	CredentialScope  string
	SignedHeaders    string
	PayloadHash      string
}

type SmsSignDetail added in v0.3.1

type SmsSignDetail struct {
	SignID        *uint64 `json:"SignId"`
	SignName      *string `json:"SignName"`
	StatusCode    *int    `json:"StatusCode"`
	ReviewReply   *string `json:"ReviewReply"`
	CreateTime    *int64  `json:"CreateTime"`
	International *uint64 `json:"International"`
	SignType      *uint64 `json:"SignType"`
}

type SmsTemplateDetail added in v0.3.1

type SmsTemplateDetail struct {
	TemplateID      *uint64 `json:"TemplateId"`
	TemplateName    *string `json:"TemplateName"`
	TemplateContent *string `json:"TemplateContent"`
	StatusCode      *int    `json:"StatusCode"`
	ReviewReply     *string `json:"ReviewReply"`
	CreateTime      *int64  `json:"CreateTime"`
	International   *uint64 `json:"International"`
}

type SubAccountInfo

type SubAccountInfo struct {
	Uin          *uint64 `json:"Uin"`
	Name         *string `json:"Name"`
	ConsoleLogin *uint64 `json:"ConsoleLogin"`
	CreateTime   *string `json:"CreateTime"`
}

type TATInvocation

type TATInvocation struct {
	InvocationID               *string                  `json:"InvocationId"`
	InvocationTaskBasicInfoSet []TATInvocationTaskBasic `json:"InvocationTaskBasicInfoSet"`
}

type TATInvocationTask

type TATInvocationTask struct {
	InvocationID     *string        `json:"InvocationId"`
	InvocationTaskID *string        `json:"InvocationTaskId"`
	TaskStatus       *string        `json:"TaskStatus"`
	InstanceID       *string        `json:"InstanceId"`
	TaskResult       *TATTaskResult `json:"TaskResult"`
	ErrorInfo        *string        `json:"ErrorInfo"`
}

type TATInvocationTaskBasic

type TATInvocationTaskBasic struct {
	InvocationTaskID *string `json:"InvocationTaskId"`
	TaskStatus       *string `json:"TaskStatus"`
	InstanceID       *string `json:"InstanceId"`
}

type TATTaskResult

type TATTaskResult struct {
	ExitCode *int64  `json:"ExitCode"`
	Output   *string `json:"Output"`
}

type TC3Signer

type TC3Signer struct{}

func (TC3Signer) Sign

func (s TC3Signer) Sign(credential auth.Credential, in SignInput) (Signature, error)

Jump to

Keyboard shortcuts

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