Documentation ¶
Index ¶
- type CheckCustomerRegisterInfoOpts
- type CheckCustomerRegisterInfoOptsBuilder
- type CheckCustomerRegisterInfoResp
- type CheckCustomerRegisterInfoResult
- type CreateCustomerOpts
- type CreateCustomerOptsBuilder
- type CreateCustomerResp
- type CreateCustomerResult
- type ErrorDetail
- type FrozenCustomerOpts
- type FrozenCustomerOptsBuilder
- type FrozenCustomerResp
- type FrozenCustomerResult
- type QueryCustomerOpts
- type QueryCustomerOptsBuilder
- type QueryCustomerResp
- type QueryCustomerResult
- type UnFrozenCustomerOpts
- type UnFrozenCustomerOptsBuilder
- type UnFrozenCustomerResp
- type UnFrozenCustomerResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckCustomerRegisterInfoOpts ¶
type CheckCustomerRegisterInfoOpts struct { //The options are email, mobile, or name SearchType string `json:"searchType" required:"true"` //Mobile number, email address, or account name. SearchKey string `json:"searchKey" required:"true"` }
func (CheckCustomerRegisterInfoOpts) ToCheckCustomerRegisterInfoMap ¶
func (opts CheckCustomerRegisterInfoOpts) ToCheckCustomerRegisterInfoMap() (map[string]interface{}, error)
type CheckCustomerRegisterInfoResp ¶
type CheckCustomerRegisterInfoResp struct { //Error code ErrorCode string `json:"error_code"` //Error description. ErrorMsg string `json:"error_msg"` //Status Status string `json:"status"` //Whether the number of verification code sending times reaches the upper limit (15 times per hour, 60 times per day) UpLimit string `json:"uplimit"` }
type CheckCustomerRegisterInfoResult ¶
type CheckCustomerRegisterInfoResult struct {
gophercloud.Result
}
func CheckCustomerRegisterInfo ¶
func CheckCustomerRegisterInfo(client *gophercloud.ServiceClient, opts CheckCustomerRegisterInfoOptsBuilder) (r CheckCustomerRegisterInfoResult)
* * This API is used to check whether the account name, and mobile number or email address entered by the customer can be used for registration. * This API can be invoked only by the partner AK/SK or token.
func (CheckCustomerRegisterInfoResult) Extract ¶
func (r CheckCustomerRegisterInfoResult) Extract() (*CheckCustomerRegisterInfoResp, error)
type CreateCustomerOpts ¶
type CreateCustomerOpts struct { //HUAWEI CLOUD username of the customer. DomainName string `json:"domainName,omitempty"` //Email address. Email string `json:"email,omitempty"` //Verification code VerificationCode string `json:"verificationCode,omitempty"` //Two-letter ID representing the country/region of the customer. DomainArea string `json:"domainArea,omitempty"` //Unique ID of the user on the third-party system, which is assigned by the partner. XAccountId string `json:"xAccountId" required:"true"` //Platform ID assigned by Huawei to a partner. XAccountType string `json:"xAccountType" required:"true"` //password Password string `json:"password,omitempty"` //Indicates whether to disable the marketing message sending function. IsCloseMarketMs string `json:"isCloseMarketMs,omitempty"` }
func (CreateCustomerOpts) ToCreateCustomerMap ¶
func (opts CreateCustomerOpts) ToCreateCustomerMap() (map[string]interface{}, error)
type CreateCustomerResp ¶
type CreateCustomerResp struct { //Error code ErrorCode string `json:"error_code"` //Error description ErrorMsg string `json:"error_msg"` //Customer ID DomainId string `json:"domainId"` //HUAWEI CLOUD username of the customer DomainName string `json:"domainName"` }
func (CreateCustomerResp) Error ¶
func (e CreateCustomerResp) Error() string
type CreateCustomerResult ¶
type CreateCustomerResult struct {
gophercloud.Result
}
func CreateCustomer ¶
func CreateCustomer(client *gophercloud.ServiceClient, opts CreateCustomerOptsBuilder) (r CreateCustomerResult)
*
- This API is used to create a HUAWEI CLOUD account for a customer when the customer creates an account on your sales platform, and bind the customer account on the partner sales platform to the HUAWEI CLOUD account. In addition, the HUAWEI CLOUD account is bound to the partner account.
- This API can be invoked only by the partner AK/SK or token..
func (CreateCustomerResult) Extract ¶
func (r CreateCustomerResult) Extract() (*CreateCustomerResp, error)
type ErrorDetail ¶
type FrozenCustomerOpts ¶
type FrozenCustomerOpts struct { //IDs of customers whose accounts are to be frozen。 CustomerIds []string `json:"customerIds" required:"true"` //Account freezing reason. Reason string `json:"reason" required:"true"` }
func (FrozenCustomerOpts) ToFrozenCustomerMap ¶
func (opts FrozenCustomerOpts) ToFrozenCustomerMap() (map[string]interface{}, error)
type FrozenCustomerResp ¶
type FrozenCustomerResp struct { //Error code ErrorCode string `json:"error_code"` //Error message ErrorMsg string `json:"error_msg"` //Error cause description FailDetail []ErrorDetail `json:"failDetail"` //Number of failures FailNum *int `json:"failNum,omitempty"` //Number of successful operations SuccessNum *int `json:"successNum,omitempty"` }
type FrozenCustomerResult ¶
type FrozenCustomerResult struct {
gophercloud.Result
}
func FrozenCustomer ¶
func FrozenCustomer(client *gophercloud.ServiceClient, opts FrozenCustomerOptsBuilder) (r FrozenCustomerResult)
*
- A partner can unfreeze an account of a customer associated with the partner by reseller model.
- This API can be invoked only by the partner account AK/SK or token.
func (FrozenCustomerResult) Extract ¶
func (r FrozenCustomerResult) Extract() (*FrozenCustomerResp, error)
type QueryCustomerOpts ¶
type QueryCustomerOpts struct { //Account name DomainName string `json:"domainName,omitempty"` //Real-name authentication name Name string `json:"name,omitempty"` //Page to be queried Offset int `json:"offset,omitempty"` //Number of records on each page Limit int `json:"limit,omitempty"` //Tag Label string `json:"label,omitempty"` //Association type CooperationType string `json:"cooperationType,omitempty"` //Start time of the association time range (UTC time) CooperationTimeStart string `json:"cooperationTimeStart,omitempty"` //End time of the association time range (UTC time) CooperationTimeEnd string `json:"cooperationTimeEnd,omitempty"` }
func (QueryCustomerOpts) ToQueryCustomerMap ¶
func (opts QueryCustomerOpts) ToQueryCustomerMap() (map[string]interface{}, error)
type QueryCustomerResp ¶
type QueryCustomerResult ¶
type QueryCustomerResult struct {
gophercloud.Result
}
func QueryCustomer ¶
func QueryCustomer(client *gophercloud.ServiceClient, opts QueryCustomerOptsBuilder) (r QueryCustomerResult)
*
- This API is used to query your customers.
- This API can be invoked only by the partner account AK/SK or token.
func (QueryCustomerResult) Extract ¶
func (r QueryCustomerResult) Extract() (*QueryCustomerResp, error)
type UnFrozenCustomerOpts ¶
type UnFrozenCustomerOpts struct { //IDs of customers whose accounts are to be unfrozen CustomerIds []string `json:"customerIds" required:"true"` //Account unfreezing reason. Reason string `json:"reason" required:"true"` }
func (UnFrozenCustomerOpts) ToUnFrozenCustomerMap ¶
func (opts UnFrozenCustomerOpts) ToUnFrozenCustomerMap() (map[string]interface{}, error)
type UnFrozenCustomerResp ¶
type UnFrozenCustomerResp struct { //Error code ErrorCode string `json:"error_code"` //Error message ErrorMsg string `json:"error_msg"` //Error cause description FailDetail []ErrorDetail `json:"failDetail"` //Number of failures FailNum *int `json:"failNum,omitempty"` //Number of successful operations SuccessNum *int `json:"successNum,omitempty"` }
type UnFrozenCustomerResult ¶
type UnFrozenCustomerResult struct {
gophercloud.Result
}
func UnFrozenCustomer ¶
func UnFrozenCustomer(client *gophercloud.ServiceClient, opts UnFrozenCustomerOptsBuilder) (r UnFrozenCustomerResult)
*
- A partner can unfreeze an account of a customer associated with the partner by reseller model.
- This API can be invoked only by the partner account AK/SK or token.
func (UnFrozenCustomerResult) Extract ¶
func (r UnFrozenCustomerResult) Extract() (*UnFrozenCustomerResp, error)
Click to show internal directories.
Click to hide internal directories.