Documentation
¶
Index ¶
- Constants
- type APIError
- type AccountInfo
- type BaseResponse
- type Client
- type DescribeBucketResponse
- type DescribeMemberListResponse
- type DescribeUDBInstanceResponse
- type DescribeUDNSRecordResponse
- type DescribeUDNSZoneResponse
- type DescribeUHostInstanceResponse
- type GetBalanceResponse
- type GetProjectListResponse
- type GetRegionResponse
- type GetUserInfoResponse
- type IAMAttachPoliciesToUserResponse
- type IAMCreateUserResponse
- type IAMDeleteUserResponse
- type IAMListPoliciesResponse
- type IAMListUsersResponse
- type IAMPolicyInfo
- type IAMRemoveUserFromProjectResponse
- type IAMUserSummary
- type MemberInfo
- type MemberProjectInfo
- type Option
- type ProjectListInfo
- type RecordInfo
- type RegionInfo
- type Request
- type RetCode
- type RetryPolicy
- type UDBInstanceSet
- type UFileBucketSet
- type UHostIPSet
- type UHostSet
- type UserInfo
- type ValueSet
- type ZoneInfo
Constants ¶
View Source
const (
DefaultBaseURL = "https://api.ucloud.cn"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type BaseResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(credential ucloudauth.Credential, opts ...Option) *Client
type DescribeBucketResponse ¶
type DescribeBucketResponse struct {
BaseResponse
DataSet []UFileBucketSet `json:"DataSet"`
}
type DescribeMemberListResponse ¶ added in v0.3.0
type DescribeMemberListResponse struct {
BaseResponse
MemberSet []MemberInfo `json:"MemberSet"`
TotalCount int `json:"TotalCount"`
}
type DescribeUDBInstanceResponse ¶
type DescribeUDBInstanceResponse struct {
BaseResponse
DataSet []UDBInstanceSet `json:"DataSet"`
TotalCount int `json:"TotalCount"`
}
type DescribeUDNSRecordResponse ¶
type DescribeUDNSRecordResponse struct {
BaseResponse
RecordInfos []RecordInfo `json:"RecordInfos"`
TotalCount int `json:"TotalCount"`
}
type DescribeUDNSZoneResponse ¶
type DescribeUDNSZoneResponse struct {
BaseResponse
DNSZoneInfos []ZoneInfo `json:"DNSZoneInfos"`
TotalCount int `json:"TotalCount"`
}
type DescribeUHostInstanceResponse ¶
type DescribeUHostInstanceResponse struct {
BaseResponse
TotalCount int `json:"TotalCount"`
UHostSet []UHostSet `json:"UHostSet"`
}
type GetBalanceResponse ¶
type GetBalanceResponse struct {
BaseResponse
AccountInfo AccountInfo `json:"AccountInfo"`
}
type GetProjectListResponse ¶
type GetProjectListResponse struct {
BaseResponse
ProjectSet []ProjectListInfo `json:"ProjectSet"`
}
type GetRegionResponse ¶
type GetRegionResponse struct {
BaseResponse
Regions []RegionInfo `json:"Regions"`
}
type GetUserInfoResponse ¶
type GetUserInfoResponse struct {
BaseResponse
DataSet []UserInfo `json:"DataSet"`
}
type IAMAttachPoliciesToUserResponse ¶ added in v0.3.0
type IAMAttachPoliciesToUserResponse struct {
BaseResponse
}
type IAMCreateUserResponse ¶ added in v0.3.0
type IAMCreateUserResponse struct {
BaseResponse
APIAccess bool `json:"APIAccess"`
AccessKeyID string `json:"AccessKeyID"`
AccessKeySecret string `json:"AccessKeySecret"`
CompanyID int64 `json:"CompanyId"`
ConsoleAccess bool `json:"ConsoleAccess"`
DisplayName string `json:"DisplayName"`
Password string `json:"Password"`
UserName string `json:"UserName"`
}
type IAMDeleteUserResponse ¶ added in v0.3.0
type IAMDeleteUserResponse struct {
BaseResponse
}
type IAMListPoliciesResponse ¶ added in v0.3.0
type IAMListPoliciesResponse struct {
BaseResponse
Policies []IAMPolicyInfo `json:"Policies"`
TotalCount int `json:"TotalCount"`
}
type IAMListUsersResponse ¶ added in v0.3.0
type IAMListUsersResponse struct {
BaseResponse
TotalCount int `json:"TotalCount"`
Users []IAMUserSummary `json:"Users"`
}
type IAMPolicyInfo ¶ added in v0.3.0
type IAMRemoveUserFromProjectResponse ¶ added in v0.3.0
type IAMRemoveUserFromProjectResponse struct {
BaseResponse
}
type IAMUserSummary ¶ added in v0.3.0
type MemberInfo ¶ added in v0.3.0
type MemberProjectInfo ¶ added in v0.3.0
type Option ¶
type Option func(*Client)
func WithBaseURL ¶
func WithHTTPClient ¶
func WithProjectID ¶
func WithRetryPolicy ¶
func WithRetryPolicy(policy RetryPolicy) Option
type ProjectListInfo ¶
type RecordInfo ¶
type RegionInfo ¶
type RegionInfo struct {
Region string `json:"Region"`
}
type RetryPolicy ¶
type RetryPolicy = httpclient.RetryPolicy
func DefaultRetryPolicy ¶
func DefaultRetryPolicy() RetryPolicy
type UDBInstanceSet ¶
type UFileBucketSet ¶
type UHostIPSet ¶
type UHostSet ¶
type UHostSet struct {
IPSet []UHostIPSet `json:"IPSet"`
Name string `json:"Name"`
OsType string `json:"OsType"`
State string `json:"State"`
UHostID string `json:"UHostId"`
}
Click to show internal directories.
Click to hide internal directories.