model

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBalanceV3

type AccountBalanceV3 struct {

	// 账户标识。
	AccountId string `json:"account_id"`

	// 账户类型。 1:余额2:信用5:奖励金7:保证金
	AccountType int32 `json:"account_type"`

	// 账户余额。
	Amount float64 `json:"amount"`

	// 币种。 USD:美元。
	Currency string `json:"currency"`

	// 专款专用余额。
	DesignatedAmount *float64 `json:"designated_amount,omitempty"`

	// 总信用额度,仅信用账户存在该字段。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 度量单位。 1:元
	MeasureId int32 `json:"measure_id"`
}

func (AccountBalanceV3) String

func (o AccountBalanceV3) String() string

type AccountManager

type AccountManager struct {

	// 客户经理登录名称。
	AccountName *string `json:"account_name,omitempty"`
}

func (AccountManager) String

func (o AccountManager) String() string

type AmountInfomationV2

type AmountInfomationV2 struct {

	// 费用项。 具体请参见表7。
	Discounts *[]DiscountItemV2 `json:"discounts,omitempty"`

	// 现金券金额,预留。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 代金券金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 储值卡金额,预留。
	StoredCardAmount *float64 `json:"stored_card_amount,omitempty"`

	// 手续费(仅退订订单存在)。
	CommissionAmount *float64 `json:"commission_amount,omitempty"`

	// 消费金额(仅退订订单存在)。
	ConsumedAmount *float64 `json:"consumed_amount,omitempty"`
}

func (AmountInfomationV2) String

func (o AmountInfomationV2) String() string

type ApplyEnterpriseRealnameAuthsReq

type ApplyEnterpriseRealnameAuthsReq struct {

	// 客户账号ID。您可以调用查询客户列表接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 认证方案。 1:单位证件认证
	IdentifyType int32 `json:"identify_type"`

	// 单位证件类型: 0:企业营业执照1:事业单位法人证书2:社会团体法人登记证书3:行政执法主体资格证4:组织机构代码证99:其他
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 单位证件认证时证件附件的文件URL。附件地址必须按照顺序填写,先填写单位证件的附件,如果请求中填写了单位人员信息,再填写单位人员的身份证附件。 单位证件顺序为: 第1张单位证件照正面, 第2张单位证件照反面, 个人证件顺序为: 第1张个人证件的人像面 第2张个人证件的国徽面 假设不存在法人的情况下,第1张上传的是单位证件正面扫描件abc.023,第2张上传的是单位证件反面扫描件def004,那么上传顺序需要是: abc023 def004 文件名称区分大小写。 证件附件目前仅仅支持jpg、jpeg、bmp、png、gif、pdf格式,单个文件最大不超过10M。这个URL是相对URL,不需要包含桶名和download目录,只要包含download目录下的子目录和对应文件名称即可。举例如下:如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/abc023.jpg,该字段填写abc023.jpg; 如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/test/abc023.jpg,该字段填写test/abc023.jpg。
	VerifiedFileUrl []string `json:"verified_file_url"`

	// 单位名称。 不能全是数字、特殊字符、空格。
	CorpName string `json:"corp_name"`

	// 单位证件号码。
	VerifiedNumber string `json:"verified_number"`

	// 实名认证填写的注册国家。国家的两位字母简码。 例如:注册国家为“中国”请填写“CN”。
	RegCountry *string `json:"reg_country,omitempty"`

	// 实名认证企业注册地址。
	RegAddress *string `json:"reg_address,omitempty"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType string `json:"xaccount_type"`

	EnterprisePerson *EnterprisePersonNew `json:"enterprise_person,omitempty"`
}

func (ApplyEnterpriseRealnameAuthsReq) String

type ApplyIndividualRealnameAuthsReq

type ApplyIndividualRealnameAuthsReq struct {

	// 客户账号ID。您可以调用查询客户列表接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 认证方案: 0:个人证件认证
	IdentifyType int32 `json:"identify_type"`

	// |参数名称:证件类型:0:身份证,上传的附件为3张,第1张是身份证人像面,第2张是身份证国徽面,第3张是个人手持身份证人像面;3:护照,上传的附件为3张,第1张是护照个人资料页,第2张是,护照入境盖章页,第3张是手持护照个人资料页;3:护照,上传的附件为2张,第1张是护照个人资料页,第2张是手持护照个人资料页;5:港澳通行证,上传的附件为3张,第1张是港澳居民来往内地通行证正面(人像面),第2张是港澳居民来往内地通行证反面,第3张是手持港澳居民来往内地通行证人像面;6:台湾通行证,上传的附件为3张,第1张是台湾居民来往大陆通行证正面(人像面),第2张是台湾居民来往大陆通行证反面,第3张是手持台湾居民来往大陆通行证人像面;9:港澳居民居住证,上传的附件为3张,第1张是港澳居民居住证人像面,第2张是,港澳居民居住证国徽面,第3张是手持港澳居民居住证人像面照片;10:台湾居民居住证,上传的附件为3张,第1张是台湾居民居住证人像面,第2张是台湾居民居住证国徽面,第3张是手持台湾居民居住证人像面照片。当identifyType=0的时候,该字段需要填写,否则忽略该字段的取值。| |参数的约束及描述:证件类型:0:身份证,上传的附件为3张,第1张是身份证人像面,第2张是身份证国徽面,第3张是个人手持身份证人像面;3:护照,上传的附件为3张,第1张是护照个人资料页,第2张是,护照入境盖章页,第3张是手持护照个人资料页;3:护照,上传的附件为2张,第1张是护照个人资料页,第2张是手持护照个人资料页;5:港澳通行证,上传的附件为3张,第1张是港澳居民来往内地通行证正面(人像面),第2张是港澳居民来往内地通行证反面,第3张是手持港澳居民来往内地通行证人像面;6:台湾通行证,上传的附件为3张,第1张是台湾居民来往大陆通行证正面(人像面),第2张是台湾居民来往大陆通行证反面,第3张是手持台湾居民来往大陆通行证人像面;7:海外驾照,上传的附件为2张,第1张是中国以外驾照正面照片(人像面),第2张是手持中国以外驾照人像面照片;9:港澳居民居住证,上传的附件为3张,第1张是港澳居民居住证人像面,第2张是,港澳居民居住证国徽面,第3张是手持港澳居民居住证人像面照片;10:台湾居民居住证,上传的附件为3张,第1张是台湾居民居住证人像面,第2张是台湾居民居住证国徽面,第3张是手持台湾居民居住证人像面照片。当identifyType=0的时候,该字段需要填写,否则忽略该字段的取值。|
	VerifiedType *int32 `json:"verified_type,omitempty"`

	// 个人证件认证时证件附件的文件URL,该URL地址必须按照顺序填写。以护照举例,譬如护照个人资料页文件名称是abc023,手持护照个人资料页是def004,那么这个地方需要按照 abc023 def004 的顺序填写URL(文件名称区分大小写)。 证件附件目前仅仅支持jpg、jpeg、bmp、png、gif、pdf格式,单个文件最大不超过10M。这个URL是相对URL,不需要包含桶名和download目录,只要包含download目录下的子目录和对应文件名称即可。举例如下:如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/abc023.jpg,该字段填写abc023.jpg; 如果上传的证件附件在桶中的位置是:https://bucketname.obs.Endpoint.myhuaweicloud.com/download/test/abc023.jpg,该字段填写test/abc023.jpg。
	VerifiedFileUrl []string `json:"verified_file_url"`

	// 姓名。
	Name string `json:"name"`

	// 证件号码。
	VerifiedNumber string `json:"verified_number"`

	// 变更类型: -1:首次实名认证
	ChangeType *int32 `json:"change_type,omitempty"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType string `json:"xaccount_type"`
}

func (ApplyIndividualRealnameAuthsReq) String

type AutoRenewalResourcesRequest

type AutoRenewalResourcesRequest struct {

	// 资源实例ID。您可以调用“查询客户包年包月资源列表”接口获取资源ID。在设置弹性云服务器自动续费时,能够自动将其挂载的硬盘一并设置为自动续费。
	ResourceId string `json:"resource_id"`
}

Request Object

func (AutoRenewalResourcesRequest) String

type AutoRenewalResourcesResponse

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

Response Object

func (AutoRenewalResourcesResponse) String

type AzCodeInfo added in v0.1.37

type AzCodeInfo struct {

	// |参数名称:可用区编码| |参数的约束及描述:该参数非必填,且只允许字符串|
	AzCode *string `json:"az_code,omitempty"`
}

func (AzCodeInfo) String added in v0.1.37

func (o AzCodeInfo) String() string

type BalanceTypePay

type BalanceTypePay struct {

	// 账户类型。 BALANCE_TYPE_DEBIT:现金账户BALANCE_TYPE_CREDIT:信用账户BALANCE_TYPE_BONUS:奖励账户(该账户已下线)BALANCE_TYPE_COUPON:代金券账户BALANCE_TYPE_DEBIT_RATE:折扣账户
	BalanceTypeId *string `json:"balance_type_id,omitempty"`

	// 支出金额。 单位:分
	DeductAmount *float64 `json:"deduct_amount,omitempty"`
}

func (BalanceTypePay) String

func (o BalanceTypePay) String() string

type BillSumRecordInfo

type BillSumRecordInfo struct {

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。  说明: 当请求消息中不传递“cloud_service_type_code”参数时,此值返回“null”。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务区,该字段预留,先不使用。
	RegionCode *string `json:"region_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。
	CloudServiceTypeCode *string `json:"cloud_service_type_code,omitempty"`

	// 消费统计的时期。 格式为YYYY-MM。 示例:2018-05
	ConsumeTime *string `json:"consume_time,omitempty"`

	// 消费类型。 当请求消息中不传递“cloud_service_type_code”参数时,如果此值返回“0”表示此服务类型下所有的资源类型都是包年/包月计费模式,如果此值返回空字符串表示此服务类型下有资源类型为按需计费模式。当请求消息中传递“cloud_service_type_code”参数时,如果此值返回“0”表示此资源类型是包年/包月计费模式,如果此值返回“1”表示此资源类型为按需计费模式。
	PayMethod *string `json:"pay_method,omitempty"`

	// 消费的金额,即从客户账户实际扣除的金额。包含代金券支付的金额。
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 欠费金额,即从客户账户扣费的时候,客户账户金额不足,欠费的金额。
	Debt *float64 `json:"debt,omitempty"`

	// 折扣金额。
	Discount *float64 `json:"discount,omitempty"`

	// 金额单位。 1:元3:分 默认值为3。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 账单类型。 0:消费1:退订
	BillType *int32 `json:"bill_type,omitempty"`

	// 按不同账户消费类型和付费方式区分的支付总金额。 具体请参见表4。
	AccountDetails *[]BalanceTypePay `json:"account_details,omitempty"`

	// 折扣金额详情。 具体请参见表5。 当bill_type为1时,不返回此参数。
	DiscountDetailInfos *[]DiscountDetailInfo `json:"discount_detail_infos,omitempty"`

	// 企业项目ID。 当请求参数中传递了“enterpriseProjectId”,响应参数“bill_sums”返回以企业项目ID为维度的账单记录。
	EnterpriseProjectId *string `json:"enterpriseProjectId,omitempty"`
}

func (BillSumRecordInfo) String

func (o BillSumRecordInfo) String() string

type CancelAutoRenewalResourcesRequest

type CancelAutoRenewalResourcesRequest struct {

	// 资源实例ID。您可以调用“查询客户包年/包月资源列表”接口获取资源ID。在取消弹性云服务器自动续费的时候,能够自动将其挂载的硬盘一并取消自动续费。
	ResourceId string `json:"resource_id"`
}

Request Object

func (CancelAutoRenewalResourcesRequest) String

type CancelAutoRenewalResourcesResponse

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

Response Object

func (CancelAutoRenewalResourcesResponse) String

type CancelCustomerOrderReq

type CancelCustomerOrderReq struct {

	// 订单ID。 取值为调用“查询订单列表”接口时响应消息中的“order_id”字段的值。
	OrderId string `json:"order_id"`
}

func (CancelCustomerOrderReq) String

func (o CancelCustomerOrderReq) String() string

type CancelCustomerOrderRequest

type CancelCustomerOrderRequest struct {
	Body *CancelCustomerOrderReq `json:"body,omitempty"`
}

Request Object

func (CancelCustomerOrderRequest) String

type CancelCustomerOrderResponse

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

Response Object

func (CancelCustomerOrderResponse) String

type CancelResourcesSubscriptionRequest

type CancelResourcesSubscriptionRequest struct {
	Body *UnsubscribeResourcesReq `json:"body,omitempty"`
}

Request Object

func (CancelResourcesSubscriptionRequest) String

type CancelResourcesSubscriptionResponse

type CancelResourcesSubscriptionResponse struct {

	// 客户退订订单ID的列表信息。
	OrderIds *[]string `json:"order_ids,omitempty"`

	// |参数名称:失败的资源信息列表| |参数的约束及描述:套餐包使用量信息|
	FailResourceInfos *[]FailResourceInfo `json:"fail_resource_infos,omitempty"`
	HttpStatusCode    int                 `json:"-"`
}

Response Object

func (CancelResourcesSubscriptionResponse) String

type ChangeEnterpriseRealnameAuthenticationRequest

type ChangeEnterpriseRealnameAuthenticationRequest struct {
	Body *ChangeEnterpriseRealnameAuthsReq `json:"body,omitempty"`
}

Request Object

func (ChangeEnterpriseRealnameAuthenticationRequest) String

type ChangeEnterpriseRealnameAuthenticationResponse

type ChangeEnterpriseRealnameAuthenticationResponse struct {

	// 是否需要转人工审核,只有状态码为200才返回该参数。 0:不需要1:需要
	IsReview       *int32 `json:"is_review,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ChangeEnterpriseRealnameAuthenticationResponse) String

type ChangeEnterpriseRealnameAuthsReq

type ChangeEnterpriseRealnameAuthsReq struct {

	// 客户账号ID。您可以调用查询客户列表接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 认证方案: 1:单位证件扫描
	IdentifyType int32 `json:"identify_type"`

	// 单位证件类型: 0:企业营业执照 1:事业单位法人证书 2:社会团体法人登记证书 3:行政执法主体资格证 4:组织机构代码证 99:其他
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 单位证件认证时证件附件的文件URL。 附件地址必须按照顺序填写,先填写单位证件的附件,如果存在单位人员信息,再填写单位人员的身份证附件。 单位证件顺序为: 第1张单位证件照正面, 第2张单位证件照反面, 个人证件顺序为: 第1张个人证件的人像面 第2张个人证件的国徽面 假设不存在法人的情况下,第1张上传的是单位证件正面扫描件abc.023,第2张上传的是单位证件反面扫描件def004,那么上传顺序需要是: abc023 def004 的顺序填写URL(文件名称区分大小写) 证件附件目前仅仅支持jpg、jpeg、bmp、png、gif、pdf格式,单个文件最大不超过10M。 这个URL是相对URL,不需要包含桶名和download目录,只要包含download目录下的子目录和对应文件名称即可。举例如下: 如果上传的证件附件在桶中的位置是: https://bucketname.obs.Endpoint.myhuaweicloud.com/download/abc023.jpg,该字段填写abc023.jpg; 如果上传的证件附件在桶中的位置是: https://bucketname.obs.Endpoint.myhuaweicloud.com/download/test/abc023.jpg,该字段填写test/abc023.jpg。
	VerifiedFileUrl []string `json:"verified_file_url"`

	// 单位名称。 不能全是数字、特殊字符、空格。
	CorpName string `json:"corp_name"`

	// 单位证件号码。
	VerifiedNumber string `json:"verified_number"`

	// 实名认证填写的注册国家。国家的两位字母简码。 例如:注册国家为“中国”请填写“CN”。
	RegCountry *string `json:"reg_country,omitempty"`

	// 实名认证企业注册地址。
	RegAddress *string `json:"reg_address,omitempty"`

	// 变更类型: 1:个人变企业
	ChangeType int32 `json:"change_type"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType string `json:"xaccount_type"`

	EnterprisePerson *EnterprisePersonNew `json:"enterprise_person,omitempty"`
}

func (ChangeEnterpriseRealnameAuthsReq) String

type CheckSubcustomerUserReq

type CheckSubcustomerUserReq struct {

	// 该字段内容可填为:“email”、“mobile”或“name”。
	SearchType string `json:"search_type"`

	// 手机号、邮箱或登录名称。 手机号需符合正则表达式 ^\\d{4}-\\d+$;包括国家码,以00开头,格式:00XX-XXXXXXXX。邮箱需为含有@的正确格式的完整邮箱地址。name:符合正则表达式^\\(\\[a-zA-Z-\\]\\(\\[a-zA-Z0-9_-\\]\\)\\{4,31\\}\\)$,长度5-32;不能以“op_”或“shadow_”开头且不能全为数字,且只能以字母(不区分大小写)或者-开头。
	SearchValue string `json:"search_value"`
}

func (CheckSubcustomerUserReq) String

func (o CheckSubcustomerUserReq) String() string

type CheckUserIdentityRequest

type CheckUserIdentityRequest struct {
	Body *CheckSubcustomerUserReq `json:"body,omitempty"`
}

Request Object

func (CheckUserIdentityRequest) String

func (o CheckUserIdentityRequest) String() string

type CheckUserIdentityResponse

type CheckUserIdentityResponse struct {

	// 状态码。具体请参考状态码。只有失败才会返回这个参数。
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误描述信息。只有失败才会返回这个参数。
	ErrorMsg *string `json:"error_msg,omitempty"`

	// available:该登录名称/手机号/邮箱有效。used_by_user:该登录名称/手机号/邮箱已被占用。
	CheckResult    *string `json:"check_result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CheckUserIdentityResponse) String

func (o CheckUserIdentityResponse) String() string

type Conversion

type Conversion struct {

	// 度量单位ID。 例如:10表示GB。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 转换后的度量单位ID。 例如:11表示MB。
	RefMeasureId *int32 `json:"ref_measure_id,omitempty"`

	// 度量单位和转换后的度量单位之间的转换比率。 例如: 度量单位为GB,转换度量单位为MB时,转换比率为1024,两者之间的转换公式为:1GB=1024MB。
	ConversionRatio *int64 `json:"conversion_ratio,omitempty"`

	// 度量类型。 1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量25:测试类型
	MeasureType *int32 `json:"measure_type,omitempty"`
}

func (Conversion) String

func (o Conversion) String() string

type Cost added in v0.0.104

type Cost struct {

	// 时间维度值。 如按天维度,该值为yyyy-mm-dd如按月维度,该值为yyyy-mm
	TimeDimensionValue *string `json:"time_dimension_value,omitempty"`

	// 时间单位。 1:天2:月
	TimeMeasureId *int32 `json:"time_measure_id,omitempty"`

	// 应付或实付的成本金额或均摊金额,具体取决于请求参数。
	Amount *string `json:"amount,omitempty"`

	// 官网价金额。
	OfficialAmount *string `json:"official_amount,omitempty"`
}

func (Cost) String added in v0.0.104

func (o Cost) String() string

type CostDataByDimension added in v0.0.104

type CostDataByDimension struct {

	// 维度列表。
	Dimensions *[]DimensionGroup `json:"dimensions,omitempty"`

	// 成本值。
	Costs *[]Cost `json:"costs,omitempty"`

	// 此维度值对应整个时间跨度的成本汇总金额。
	AmountByCosts *string `json:"amount_by_costs,omitempty"`

	// 此维度值对应整个时间跨度的官网价汇总金额。
	OfficialAmountByCosts *string `json:"official_amount_by_costs,omitempty"`
}

func (CostDataByDimension) String added in v0.0.104

func (o CostDataByDimension) String() string

type CouponSimpleInfoOrderPayV3 added in v0.1.5

type CouponSimpleInfoOrderPayV3 struct {

	// 优惠券ID。
	Id string `json:"id"`

	// 优惠券类型:300:折扣券 301:促销代金券 302:促销现金券 303:促销储值卡
	Type int32 `json:"type"`
}

func (CouponSimpleInfoOrderPayV3) String added in v0.1.5

type CreateCustomerV2Req

type CreateCustomerV2Req struct {

	// 客户的华为云账号名。 如果为空,随机生成。 不能以“op_”或“shadow_”开头且不能全为数字。 校验长度(5到32位)和规则^\\(\\[a-zA-Z_-\\]\\(\\[a-zA-Z0-9_-\\]\\)\\*\\)$。
	DomainName *string `json:"domain_name,omitempty"`

	// 邮箱地址。 格式:必须含有@。
	Email *string `json:"email,omitempty"`

	// 验证码。 请调用“发送验证码”接口获取。 如果邮箱不存在,不需要输入验证码。
	VerificationCode *string `json:"verification_code,omitempty"`

	// 客户所属国家地区的两位字母编号。该字母编号遵循ISO 3166标准。 例如:墨西哥 MX
	DomainArea *string `json:"domain_area,omitempty"`

	// 伙伴销售平台的用户唯一标识,该标识的具体值由伙伴分配。
	XaccountId string `json:"xaccount_id"`

	// 华为分给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见[如何获取xaccountType的取值](https://support.huaweicloud.com/intl/zh-cn/api-bpconsole/bpconsole_apifaq_00002.html)。
	XaccountType string `json:"xaccount_type"`

	// 密码规则如下: 至少包含以下四种字符中的两种: 大写字母、小写字母、数字、特殊字符;不能和账号名或倒序的账号名相同;不能包含邮箱。 如果为空,用户没有密码,则不能直接在华为云登录,只能通过伙伴系统SSO方式跳转到华为云。
	Password *string `json:"password,omitempty"`

	// 是否关闭营销消息的发送: true:关闭false:不关闭(默认)
	IsCloseMarketMs *string `json:"is_close_market_ms,omitempty"`

	// 云经销商ID。获取方法请参见查询云经销商列表。 如果需要创建云经销商的子客户,必须携带该字段。除此之外,此参数不做处理。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 是否返回子客户的关联结果。 true:返回子客户和伙伴的关联结果false:不返回子客户和伙伴的关联结果 默认值为false。
	IncludeAssociationResult *bool `json:"include_association_result,omitempty"`
}

func (CreateCustomerV2Req) String

func (o CreateCustomerV2Req) String() string

type CreateEnterpriseRealnameAuthenticationRequest

type CreateEnterpriseRealnameAuthenticationRequest struct {
	Body *ApplyEnterpriseRealnameAuthsReq `json:"body,omitempty"`
}

Request Object

func (CreateEnterpriseRealnameAuthenticationRequest) String

type CreateEnterpriseRealnameAuthenticationResponse

type CreateEnterpriseRealnameAuthenticationResponse struct {

	// 是否需要转人工审核,只有状态码为200才返回该参数。 0:不需要1:需要
	IsReview       *int32 `json:"is_review,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreateEnterpriseRealnameAuthenticationResponse) String

type CreatePersonalRealnameAuthRequest

type CreatePersonalRealnameAuthRequest struct {
	Body *ApplyIndividualRealnameAuthsReq `json:"body,omitempty"`
}

Request Object

func (CreatePersonalRealnameAuthRequest) String

type CreatePersonalRealnameAuthResponse

type CreatePersonalRealnameAuthResponse struct {

	// 是否需要转人工审核,只有状态码为200才返回该参数: 0:不需要1:需要
	IsReview       *int32 `json:"is_review,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreatePersonalRealnameAuthResponse) String

type CreateSubCustomerRequest

type CreateSubCustomerRequest struct {
	Body *CreateCustomerV2Req `json:"body,omitempty"`
}

Request Object

func (CreateSubCustomerRequest) String

func (o CreateSubCustomerRequest) String() string

type CreateSubCustomerResponse

type CreateSubCustomerResponse struct {

	// 客户ID。 只有成功或者错误码在CBC.99000050时才会返回。
	DomainId *string `json:"domain_id,omitempty"`

	// 客户的华为云账号名。 若请求参数中传递了此参数值,此处返回的响应值与请求参数中取值一致。若请求参数中未传递此参数值,此处返回的响应值为系统随机生成的32位字符串。 只有成功时或者错误码在CBC.99000050时才会返回。
	DomainName     *string `json:"domain_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSubCustomerResponse) String

func (o CreateSubCustomerResponse) String() string

type CustomerErrorDetail

type CustomerErrorDetail struct {

	// 返回码。具体请参见状态码。 注意,此时返回的状态码全部为200。
	ErrorCode *string `json:"error_code,omitempty"`

	// 返回码的描述信息。
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 标识ID。该参数对应的是customer_ids。
	Id *string `json:"id,omitempty"`
}

func (CustomerErrorDetail) String

func (o CustomerErrorDetail) String() string

type CustomerInformation

type CustomerInformation struct {

	// 实名认证名称。
	Customer *string `json:"customer,omitempty"`

	// 客户经理登录名称。
	AccountName string `json:"account_name"`

	// 客户账号ID。
	CustomerId string `json:"customer_id"`

	// 客户和伙伴关联时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”,其中,HH范围是0~23,mm和ss范围是0~59。
	AssociatedOn *string `json:"associated_on,omitempty"`

	// 关联类型: 1:顾问销售3:转售
	AssociationType *string `json:"association_type,omitempty"`

	// 标签。
	Label *string `json:"label,omitempty"`

	// 客户电话号码。
	Telephone *string `json:"telephone,omitempty"`

	// 实名认证状态: -1:未实名认证0:实名认证审核中1:实名认证不通过2:已实名认证3:实名认证失败
	VerifiedStatus *string `json:"verified_status,omitempty"`

	// 国家码,电话号码的国家码前缀。 例如:中国 0086。
	CountryCode *string `json:"country_code,omitempty"`

	// 客户类型: -1:无类型0:个人1:企业 客户刚注册的时候,没有具体的客户类型,为“-1:无类型”,客户可以在账号中心通过设置客户类型或者在实名认证的时候,选择对应的企业/个人实名认证来决定自己的类型。
	CustomerType *int32 `json:"customer_type,omitempty"`

	// 是否冻结: 0:否1:是
	IsFrozen *int32 `json:"is_frozen,omitempty"`

	// 该客户对应的客户经理信息,目前只支持1个,具体参见表2。
	AccountManagers *[]AccountManager `json:"account_managers,omitempty"`

	// 伙伴销售平台的用户唯一标识,该标识的具体值由伙伴分配。
	XaccountId *string `json:"xaccount_id,omitempty"`

	// 华为分配给合作伙伴的平台标识。 该标识的具体值由华为分配。获取方法请参见如何获取xaccountType的取值。
	XaccountType *string `json:"xaccount_type,omitempty"`

	// 客户等级。 V0 V1 V2 V3 V4 V5
	CustomerLevel *string `json:"customer_level,omitempty"`
}

func (CustomerInformation) String

func (o CustomerInformation) String() string

type CustomerOnDemandResource

type CustomerOnDemandResource struct {

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 所属可用区的编码。
	AvailabilityZoneCode *string `json:"availability_zone_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

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

	// 资源实例名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 资源状态: 1:正常(已开通)2:宽限期3:冻结中4:变更中5:正在关闭6:已关闭
	Status *int32 `json:"status,omitempty"`

	// 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`

	// 按需资源的容量大小。 格式如:\"resourceInfo\": \"{\\\"specSize\\\":40.0}\"
	ResourceInfo *string `json:"resource_info,omitempty"`

	// 产品规格描述。例如: 虚拟机:“通用计算增强型|c6.2xlarge.4|8vCPUs|32GB|linux”硬盘:“云硬盘_SATA_LXH01|40.0GB”
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`
}

func (CustomerOnDemandResource) String

func (o CustomerOnDemandResource) String() string

type CustomerOrderV2

type CustomerOrderV2 struct {

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务类型编码。例如OBS的云服务类型编码为“hws.service.type.obs”。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 客户订单订单来源类型: 1:客户2:代理3:合同4:分销商
	SourceType *int32 `json:"source_type,omitempty"`

	// 订单状态: 1:待审核2:待退款3:处理中4:已取消5:已完成6:待支付9:待确认10:待发货11:待收货12:待上门取货13:换新中
	Status *int32 `json:"status,omitempty"`

	// 订单类型: 1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整
	OrderType *int32 `json:"order_type,omitempty"`

	// 订单优惠后金额(不含券不含卡的实付价格)。
	AmountAfterDiscount *float64 `json:"amount_after_discount,omitempty"`

	// 订单金额(官网价)。 退订订单中,该金额等于amount_after_discount。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 订单金额度量单位: 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 创建时间 。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTime *string `json:"create_time,omitempty"`

	// 支付时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTime *string `json:"payment_time,omitempty"`

	// 货币编码。
	Currency *string `json:"currency,omitempty"`

	// 合同ID。
	ContractId *string `json:"contract_id,omitempty"`

	AmountInfo *AmountInfomationV2 `json:"amount_info,omitempty"`
}

func (CustomerOrderV2) String

func (o CustomerOrderV2) String() string

type CustomerOrderV3

type CustomerOrderV3 struct {

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务类型编码。例如OBS的云服务类型编码为“hws.service.type.obs”。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 客户订单来源类型: 1:客户2:代理3:合同4:分销商
	SourceType *int32 `json:"source_type,omitempty"`

	// 订单状态。 1:待审核2:待退款3:处理中4:已取消5:已完成6:待付款9:待确认10:待发货11:待收货12:待上门取货13:换新中
	Status *int32 `json:"status,omitempty"`

	// 订单类型。 1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整
	OrderType *int32 `json:"order_type,omitempty"`

	// 订单优惠后金额(实付价格,不含券不含卡)。
	AmountAfterDiscount *float64 `json:"amount_after_discount,omitempty"`

	// 订单金额(官网价)。 退订订单中,该金额等于currencyAfterDiscount。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 订单金额度量单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 创建时间 。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTime *string `json:"create_time,omitempty"`

	// 支付时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTime *string `json:"payment_time,omitempty"`

	// 货币编码。
	Currency *string `json:"currency,omitempty"`

	// 合同ID。
	ContractId *string `json:"contract_id,omitempty"`

	AmountInfo *AmountInfomationV2 `json:"amount_info,omitempty"`

	// 订单创建者名称。 如果是客户自己下单,则此处返回下单操作员的登录名称;如果是运营人员从后台下单,则此处返回“运营人员”;如果是运营系统自动触发下单,则此处返回“运营系统”。
	UserName *string `json:"user_name,omitempty"`
}

func (CustomerOrderV3) String

func (o CustomerOrderV3) String() string

type DemandDiscountRatingResult

type DemandDiscountRatingResult struct {

	// 优惠标识ID。
	DiscountId *string `json:"discount_id,omitempty"`

	// 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率
	DiscountType *int32 `json:"discount_type,omitempty"`

	// 折扣的金额。
	Amount *float64 `json:"amount,omitempty"`

	// 度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 折扣名称。
	DiscountName *string `json:"discount_name,omitempty"`
}

func (DemandDiscountRatingResult) String

type DemandProductInfo

type DemandProductInfo struct {

	// ID标识,同一次询价中不能重复,用于标识返回询价结果和请求的映射关系。
	Id string `json:"id"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	CloudServiceType string `json:"cloud_service_type"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。 ResourceType是CloudServiceType中的一种资源,CloudServiceType由多种ResourceType组合提供。
	ResourceType string `json:"resource_type"`

	// 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云硬盘:SATA:普通IO云硬盘SAS:高IO云硬盘GPSSD:通用型SSD云硬盘SSD:超高IO云硬盘
	ResourceSpec string `json:"resource_spec"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	Region string `json:"region"`

	// 可用区标识。
	AvailableZone *string `json:"available_zone,omitempty"`

	// 资源容量大小,例如购买的卷大小或带宽大小。 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	ResourceSize *int32 `json:"resource_size,omitempty"`

	// 资源容量度量标识,枚举值如下: 15:Mbps(购买带宽时使用)17:GB(购买云硬盘时使用)14:个(次) 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	SizeMeasureId *int32 `json:"size_measure_id,omitempty"`

	// 使用量因子编码,取值和话单中的使用量因子一致,云服务和使用量因子对应关系举例如下: 云服务器:Duration云硬盘:Duration弹性IP:Duration带宽:Duration或upflow市场镜像:Duration 您可以调用查询使用量类型列表接口获取响应参数表3中参数code的取值,即每种云服务对应的计费因子。
	UsageFactor string `json:"usage_factor"`

	// 使用量值。 例如按小时询价,使用量值为1,使用量单位为小时。
	UsageValue float64 `json:"usage_value"`

	// 使用量度量单位,您可以调用查询度量单位列表接口获取。 例如按小时询价,使用量值为1,使用量单位为小时。
	UsageMeasureId int32 `json:"usage_measure_id"`

	// 订购数量。
	SubscriptionNum int32 `json:"subscription_num"`
}

func (DemandProductInfo) String

func (o DemandProductInfo) String() string

type DemandProductRatingResult

type DemandProductRatingResult struct {

	// 同一次询价中不能重复,用于标识返回询价结果和请求的映射关系。
	Id *string `json:"id,omitempty"`

	// 按需产品的ID。
	ProductId *string `json:"product_id,omitempty"`

	// 折扣的金额。
	Amount *float64 `json:"amount,omitempty"`

	// 优惠额(官网价和总价的差)。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 按需产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 折扣优惠明细,包含产品本身的促销信息,同时包含商务或者伙伴折扣的优惠信息,具体参见表3。
	DiscountRatingResults *[]DemandDiscountRatingResult `json:"discount_rating_results,omitempty"`
}

func (DemandProductRatingResult) String

func (o DemandProductRatingResult) String() string

type DimensionGroup added in v0.0.104

type DimensionGroup struct {

	// 分组条件。 产品类型:CLOUD_SERVICE_TYPE企业项目:ENTERPRISE_PROJECT_ID使用量类型:USAGE_TYPE产品:RESOURCE_TYPE可用区:AZ_CODE账单类型:BILL_TYPE关联账号:ASSOCIATED_ACCOUNT规格编码:RES_SPEC_CODE运营实体:BE_ID区域:REGION_CODE计费模式:CHARGING_MODE交易账号:PAYER_ACCOUNT_ID资源tag:RESOURCE_TAG资源id:RESOURCE_ID成本单元:COST_UNIT
	Key *string `json:"key,omitempty"`

	// 维度值。
	Value *string `json:"value,omitempty"`
}

func (DimensionGroup) String added in v0.0.104

func (o DimensionGroup) String() string

type DiscountDetailInfo

type DiscountDetailInfo struct {

	// 折扣类型。 500:代理订购指定折扣 501:代理订购指定减免 502:代理订购指定一口价 600:合同折扣返利 (商履折扣) 601:渠道框架合同折扣 602:专款专用合同折扣(特殊商务合同折扣) 603:线下直签合同折扣 604:电销授权合同折扣 605:商务合同折扣 606:渠道商务合同折扣 607:合作伙伴授权折扣 608:严选商品折扣 610:免单金额 700:促销折扣 (促销,只有包年/包月场景) 800:赠送奖励金
	PromotionType *string `json:"promotion_type,omitempty"`

	// 折扣金额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 折扣类型对应的标识,可为合同ID或商务ID。
	PromotionId *string `json:"promotion_id,omitempty"`

	// 金额单位,1:元 3:分,默认3
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (DiscountDetailInfo) String

func (o DiscountDetailInfo) String() string

type DiscountInfoV3

type DiscountInfoV3 struct {

	// 订单的可用折扣ID。 支付订单时,输入该参数的值,即可使用折扣。
	DiscountId string `json:"discount_id"`

	// 折扣率或者满减值,如果折扣模式是一口价,这个值为空。
	DiscountValue string `json:"discount_value"`

	// 折扣类型,取值为 0:促销折扣1:合同折扣2:商务优惠3:合作伙伴授予折扣609:订单调价折扣
	DiscountType int32 `json:"discount_type"`

	// 可使用折扣的订单列表。 具体请参见表3。
	Orders []OrderV3 `json:"orders"`
}

func (DiscountInfoV3) String

func (o DiscountInfoV3) String() string

type DiscountItemV2

type DiscountItemV2 struct {

	// 折扣类型: 200:促销产品折扣300:促销折扣券301:促销代金券302:促销现金券500:代理订购指定折扣501:代理订购指定减免502:代理订购指定一口价600:折扣返利合同601:渠道框架合同602:专款专用合同603:线下直签合同604:电销授权合同605:商务合同折扣606:渠道商务合同折扣607:合作伙伴授权折扣609:订单调价折扣610:免单金额700:促销折扣800:充值帐户折扣900:产品本身折扣901:基准价一口价的折扣
	DiscountType *string `json:"discount_type,omitempty"`

	// 折扣金额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`
}

func (DiscountItemV2) String

func (o DiscountItemV2) String() string

type DiscountSimpleInfoV3 added in v0.1.5

type DiscountSimpleInfoV3 struct {

	// 折扣ID。
	Id string `json:"id"`

	// 折扣类型: 0:促销折扣 1:合同折扣2:商务优惠3:合作伙伴授予折扣 说明: 订单支付时,如果包含609折扣(订单调价折扣),则必须使用,不能再更换折扣类型。
	Type int32 `json:"type"`
}

func (DiscountSimpleInfoV3) String added in v0.1.5

func (o DiscountSimpleInfoV3) String() string

type EnterprisePersonNew

type EnterprisePersonNew struct {

	// 法人姓名。
	LegelName string `json:"legel_name"`

	// 法人身份证号。
	LegelIdNumber string `json:"legel_id_number"`

	// 认证人角色。 legalPerson :法人代表。
	CertifierRole *string `json:"certifier_role,omitempty"`
}

func (EnterprisePersonNew) String

func (o EnterprisePersonNew) String() string

type ErrorDetail

type ErrorDetail struct {

	// 状态码。
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误描述信息。
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 出现错误的客户ID或批量处理消息的ID。
	Id *string `json:"id,omitempty"`
}

func (ErrorDetail) String

func (o ErrorDetail) String() string

type FailResourceInfo added in v0.1.25

type FailResourceInfo struct {

	// |参数名称:错误码| |参数约束及描述:错误码|
	ErrorCode *string `json:"error_code,omitempty"`

	// |参数名称:错误描述| |参数约束及描述:错误描述|
	ErrorMsg *string `json:"error_msg,omitempty"`

	// |参数名称:资源ID| |参数约束及描述:资源ID|
	ResourceId *string `json:"resource_id,omitempty"`
}

func (FailResourceInfo) String added in v0.1.25

func (o FailResourceInfo) String() string

type FilterFactor added in v0.0.104

type FilterFactor struct {

	// 维度分组条件。CLOUD_SERVICE_TYPE:产品类型ASSOCIATED_ACCOUNT:关联账号REGION_CODE:区域RES_SPEC_CODE:规格编码USAGE_TYPE:使用量类型ENTERPRISE_PROJECT_ID:企业项目RESOURCE_ID:资源CHARGING_MODE:计费模式BILL_TYPE:账单类型RESOURCE_TYPE:产品AZ_CODE:可用区BE_ID:运营实体(beid)PAYER_ACCOUNT_ID:交易账号RESOURCE_TAG:成本标签COST_UNIT:成本单元
	Key string `json:"key"`

	// 过滤器值
	Value []string `json:"value"`
}

func (FilterFactor) String added in v0.0.104

func (o FilterFactor) String() string

type FilterV2 added in v0.0.104

type FilterV2 struct {

	// 运算符,0:仅包含1:仅排除 此参数不携带或携带值为null时,不作为筛选条件。
	Operator int32 `json:"operator"`

	FilterFactor *FilterFactor `json:"filter_factor"`
}

func (FilterV2) String added in v0.0.104

func (o FilterV2) String() string

type FreeResourceDetail

type FreeResourceDetail struct {

	// 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。
	FreeResourceId *string `json:"free_resource_id,omitempty"`

	// 资源项类型名称。
	FreeResourceTypeName *string `json:"free_resource_type_name,omitempty"`

	// 重置周期,只有quota_reuse_mode为可重置,该字段才有意义。 1:小时2:天3:周4:月5:年
	QuotaReuseCycle *int32 `json:"quota_reuse_cycle,omitempty"`

	// 重置周期类别,只有quota_reuse_mode为可重置,该字段才有意义。 1:按自然周期重置是指重置周期是按照自然月/年来重置,例如如果周期是月,按自然周期重置,表示每个月的1号重置。 2:按订购周期重置。是指重置周期是按照订购时间来重置,例如如果周期是月,按订购周期重置,15号订购了该套餐,表示每个月的15号重置。
	QuotaReuseCycleType *int32 `json:"quota_reuse_cycle_type,omitempty"`

	// 使用量类型名称。
	UsageTypeName *string `json:"usage_type_name,omitempty"`

	// 开始时间,格式UTC。 如果quota_reuse_mode为可重置,则此时间为当前时间所在的重置周期的开始时间。如果quota_reuse_mode为不可重置,则此时间为订购实例的生效时间。
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间,格式UTC。 如果quota_reuse_mode为可重置,则此时间为当前时间所在的重置周期的结束时间。如果quota_reuse_mode为不可重置,则此时间为订购实例的失效时间。
	EndTime *string `json:"end_time,omitempty"`

	// 资源剩余额度,针对可重置资源包,是指当前重置周期内的剩余量。
	Amount *float64 `json:"amount,omitempty"`

	// 资源原始额度,针对可重置资源包,是指每个重置周期内的总量。
	OriginalAmount *float64 `json:"original_amount,omitempty"`

	// 度量单位,免费资源套餐额度度量单位。您可以调用查询度量单位列表接口获取。
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (FreeResourceDetail) String

func (o FreeResourceDetail) String() string

type FreeResourcePackageV3

type FreeResourcePackageV3 struct {

	// 订购资源包产品后,系统生成的ID,是这个资源包列表的标识字段。
	OrderInstanceId *string `json:"order_instance_id,omitempty"`

	// 订单ID,如果source_type为“1:软开云赠送”,该字段为空。
	OrderId *string `json:"order_id,omitempty"`

	// 产品ID,即资源包ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称,即资源包名称。
	ProductName *string `json:"product_name,omitempty"`

	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目应用范围: 0:应用所有1:应用到具体企业项目
	EnterpriseProjectScope *int32 `json:"enterprise_project_scope,omitempty"`

	// 生效时间,购买资源包的时间,格式UTC。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间,资源包到期时间,格式UTC。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订
	Status *int32 `json:"status,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 资源包的来源类型: 0:订单1:软开云赠送
	SourceType *int32 `json:"source_type,omitempty"`

	// 套餐绑定类型: ATOMIC_PKG:原子套餐BUNDLE_PKG:组合套餐
	BundleType *string `json:"bundle_type,omitempty"`

	// 使用模式。 1:可重置表示购买的资源包能够按照一定的周期恢复使用量。例如购买一个1年的按需资源包,使用量是40G,可重置,重置周期为1个月,表示1年内每个月会给予40G的使用量。 2:不可重置表示购买的资源包的使用量不会恢复。例如购买一个1年的按需资源包,使用量是40G,不可重置,表示1年内一共给予40G的使用量。
	QuotaReuseMode *int32 `json:"quota_reuse_mode,omitempty"`

	// 资源套餐内的资源项信息(资源项ID级的详情),具体参见表3。
	FreeResources *[]FreeResourceV3 `json:"free_resources,omitempty"`
}

func (FreeResourcePackageV3) String

func (o FreeResourcePackageV3) String() string

type FreeResourceRecord added in v0.1.22

type FreeResourceRecord struct {

	// 资源抵扣时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如\"2021-10-13T10:01:49Z\"。
	DeductTime *string `json:"deduct_time,omitempty"`

	// 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。
	FreeResourceId *string `json:"free_resource_id,omitempty"`

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

	// 资源类型编码。例如ECS的VM为“hws.resource.type.vm”。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 资源标签。
	ResourceTag *string `json:"resource_tag,omitempty"`

	// 产品ID,即资源包ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称,即资源包名称。
	ProductName *string `json:"product_name,omitempty"`

	// 使用量类型。
	UsageTypeCode *string `json:"usage_type_code,omitempty"`

	// 资源抵扣前余量。
	AvailableAmount *string `json:"available_amount,omitempty"`

	// 资源抵扣后余量。
	RemainingAmount *string `json:"remaining_amount,omitempty"`

	// 抵扣量。
	UsedAmount *string `json:"used_amount,omitempty"`

	// 度量单位,免费资源套餐额度度量单位。您可以调用查询度量单位列表接口获取。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 资源使用的开始时间,UTC时间。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 资源使用的结束时间,UTC时间。
	ExpireTime *string `json:"expire_time,omitempty"`
}

func (FreeResourceRecord) String added in v0.1.22

func (o FreeResourceRecord) String() string

type FreeResourceV3

type FreeResourceV3 struct {

	// 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。
	FreeResourceId *string `json:"free_resource_id,omitempty"`

	// 使用量类型名称。
	UsageTypeName *string `json:"usage_type_name,omitempty"`

	// 资源剩余额度,针对可重置资源包,是指当前重置周期内的剩余量。
	Amount *string `json:"amount,omitempty"`

	// 资源原始额度,针对可重置资源包,是指每个重置周期内的总量。
	OriginalAmount *string `json:"original_amount,omitempty"`

	// 度量单位,免费资源套餐额度度量单位。您可以调用查询度量单位列表接口获取。
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (FreeResourceV3) String

func (o FreeResourceV3) String() string

type FreezeSubCustomersReq

type FreezeSubCustomersReq struct {

	// 需要冻结的客户账号ID列表。 您可以调用查询客户列表接口获取customer_id。
	CustomerIds []string `json:"customer_ids"`

	// 冻结原因。
	Reason string `json:"reason"`

	// 云经销商ID。获取方法请参见查询云经销商列表。如果需要查询云经销商的子客户列表,必须携带该字段。除此之外,此参数不做处理。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (FreezeSubCustomersReq) String

func (o FreezeSubCustomersReq) String() string

type FreezeSubCustomersRequest

type FreezeSubCustomersRequest struct {
	Body *FreezeSubCustomersReq `json:"body,omitempty"`
}

Request Object

func (FreezeSubCustomersRequest) String

func (o FreezeSubCustomersRequest) String() string

type FreezeSubCustomersResponse

type FreezeSubCustomersResponse struct {

	// 错误原因,只有部分失败的时候才返回。 具体请参见表1。
	ErrorDetails   *[]CustomerErrorDetail `json:"error_details,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (FreezeSubCustomersResponse) String

type GroupBy added in v0.0.104

type GroupBy struct {

	// tag:按照成本标签过滤cost_unit:按照成本单元过滤dimension:默认取值
	Type string `json:"type"`

	// 如果type为tag,此处取值为tag的key。如果type为cost_unit,此处取值为cost_unit的key。如果type为dimension,此处取值如下:CLOUD_SERVICE_TYPE 产品类型RESOURCE_TYPE 产品ASSOCIATED_ACCOUNT 关联账号(企业主名下的所有企业子账号)REGION_CODE 区域AZ_CODE 可用区ENTERPRISE_PROJECT_ID 企业项目RES_SPEC_CODE 产品规格CHARGING_MODE 计费模式USAGE_TYPE 使用量类型BILL_TYPE 账单大类(billtype,前台需转换billdetailtype)BE_ID 运营实体(beid)PAYER_ACCOUNT_ID 支付账号RESOURCE_ID 资源
	Key string `json:"key"`
}

func (GroupBy) String added in v0.0.104

func (o GroupBy) String() string

type ICouponUseLimitInfoV2

type ICouponUseLimitInfoV2 struct {

	// 使用限制ID,主键。
	UseLimitiInfoId *string `json:"use_limiti_info_id,omitempty"`

	// 折扣限制,key的取值请参考表4。
	LimitKey *string `json:"limit_key,omitempty"`

	// value1。
	Value1 *string `json:"value1,omitempty"`

	// value2。
	Value2 *string `json:"value2,omitempty"`

	// value单位。
	ValueUnit *string `json:"value_unit,omitempty"`

	// 限制类型。
	LimitType *string `json:"limit_type,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`
}

func (ICouponUseLimitInfoV2) String

func (o ICouponUseLimitInfoV2) String() string

type IQueryUserCouponsResultV2

type IQueryUserCouponsResultV2 struct {

	// 优惠券实例ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 优惠券编码。
	CouponCode *string `json:"coupon_code,omitempty"`

	// 优惠券状态: 1:未激活2:待使用3:已使用4:已过期5:已回收
	Status *int32 `json:"status,omitempty"`

	// 客户账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 优惠券类型: 1:代金券2:折扣券(预留)3:产品券(预留)4:现金券(预留)
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 度量单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 优惠券金额。
	FaceValue *float64 `json:"face_value,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ValidTime *string `json:"valid_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`

	// 促销计划名称。
	PlanName *string `json:"plan_name,omitempty"`

	// 促销计划描述。
	PlanDesc *string `json:"plan_desc,omitempty"`

	// 介质类型。 1:电子券2:纸质券
	MediaType *int32 `json:"media_type,omitempty"`

	// 获取方式: 1:线上领取2:线上兑换3:线上发放4:线下获取5:事件赠送
	FetchMethod *int32 `json:"fetch_method,omitempty"`

	// 优惠券使用限制。 具体请参见表3。
	UseLimits *[]ICouponUseLimitInfoV2 `json:"use_limits,omitempty"`

	// 激活时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ActiveTime *string `json:"active_time,omitempty"`

	// 使用时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ReserveTime *string `json:"reserve_time,omitempty"`

	// 促销ID。
	PromotionId *string `json:"promotion_id,omitempty"`

	// 创建时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	CreateTime *string `json:"create_time,omitempty"`

	// 优惠券版本: 1:老版本,老版本优惠券只能使用一次2:新版本,新版本优惠券可以反复使用
	CouponVersion *int32 `json:"coupon_version,omitempty"`

	// 优惠券余额。单位:元。 如果为老版本优惠券,该值为空。
	Balance *float64 `json:"balance,omitempty"`

	// 锁定优惠券的订单ID。 如果为老版本优惠券,该值为空。
	LockOrderId *string `json:"lock_order_id,omitempty"`

	// 优惠券用途。
	CouponUsage *string `json:"coupon_usage,omitempty"`

	// 优惠券是否冻结: 0:否1:是
	IsFrozen *string `json:"is_frozen,omitempty"`

	// 币种。 USD:美元
	Currency *string `json:"currency,omitempty"`

	// 扩展字段。
	ExtendParam1 *string `json:"extend_param1,omitempty"`

	// 发券来源。 如果是合作伙伴发送的券,此处为伙伴ID。如果是活动发券,此处为活动ID:云豆兑换优惠券:云豆计划ID累计送优惠券:累计送计划ID抽奖送优惠券:抽奖计划ID事件送优惠券:事件计划ID定制优惠券:创建人ID
	SourceId *string `json:"source_id,omitempty"`
}

func (IQueryUserCouponsResultV2) String

func (o IQueryUserCouponsResultV2) String() string

type IndirectPartnerInfo added in v0.0.104

type IndirectPartnerInfo struct {

	// 云经销商ID。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`

	// 云经销商的手机号码。
	MobilePhone *string `json:"mobile_phone,omitempty"`

	// 云经销商的邮箱。
	Email *string `json:"email,omitempty"`

	// 云经销商的账户名。
	AccountName *string `json:"account_name,omitempty"`

	// 云经销商的名称。
	Name *string `json:"name,omitempty"`

	// 云经销商关联华为云总经销商的时间。 UTC时间(包括时区),例如2016-03-28T00:00:00Z。
	AssociatedOn *string `json:"associated_on,omitempty"`

	// 客户经理登录账户名。
	AccountManagerId *string `json:"account_manager_id,omitempty"`

	// 客户经理的名称。
	AccountManagerName *string `json:"account_manager_name,omitempty"`
}

func (IndirectPartnerInfo) String added in v0.0.104

func (o IndirectPartnerInfo) String() string

type InvoiceRequestInfoIntl

type InvoiceRequestInfoIntl struct {

	// 请求ID。
	RequestId *string `json:"requestId,omitempty"`

	// 驳回原因。
	CancelReason *string `json:"cancelReason,omitempty"`

	// 开票类型。 0:个人1:企业
	TitleType *int32 `json:"titleType,omitempty"`

	// 渠道类型。 0:华为云
	ChannelType *int32 `json:"channelType,omitempty"`

	// 发票种类。 0:增值税专用发票1:增值税普通发票
	InvoiceType *int32 `json:"invoiceType,omitempty"`

	// 发票抬头。
	InvoiceTitle *string `json:"invoiceTitle,omitempty"`

	// 已开票金额(美元) 。
	InvoiceAmount *float64 `json:"invoiceAmount,omitempty"`

	// 开票方式。 0:账期1:到账2:订单
	InvoiceMethod *int32 `json:"invoiceMethod,omitempty"`

	// 发票类别。 0:税票1:商票
	InvoiceClass *int32 `json:"invoiceClass,omitempty"`

	// 开票状态。 0:草稿1:待审核4:等待导出发票文件5:等待发票文件回填6:等待邮寄确认7:等待回执确认8:完成9:已退票11:等待驳回审核13:退票待审核14:待退票状态回填15:退票失败
	InvoiceState *int32 `json:"invoiceState,omitempty"`

	// 发票申请人员。
	ApplyOpera *string `json:"applyOpera,omitempty"`

	AddressInfo *PostAddressInfoIntl `json:"addressInfo,omitempty"`

	// 申请时间(UTC时间)。
	ApplyTime *string `json:"applyTime,omitempty"`

	// 发票类型。 0:纸质票
	InvoiceMode *string `json:"invoiceMode,omitempty"`

	// 电子发票寄送地。
	Email *string `json:"email,omitempty"`

	// 申请类型。 0:开票申请1:退票申请2:正向开票已退票
	RequestMode *string `json:"requestMode,omitempty"`

	// 退票时的原申请ID。
	SrcRequestId *string `json:"srcRequestId,omitempty"`

	// 签约主体ID。
	SalesId *string `json:"salesId,omitempty"`

	// 发票号码。
	InvoiceNo *string `json:"invoiceNo,omitempty"`

	// 交易类型。 3:结算信用卡扣减4:结算未结清开票5:先开票后到款6:BP月结开票7:充值开票8:包年/包月在线支付开票10:普通提现开票
	TradeType *int32 `json:"tradeType,omitempty"`

	// 发票账期。
	BillCycle *string `json:"billCycle,omitempty"`

	// 税务信息列表,参见表4。
	TaxList *[]TaxInfo `json:"taxList,omitempty"`
}

func (InvoiceRequestInfoIntl) String

func (o InvoiceRequestInfoIntl) String() string

type ListConversionsRequest

type ListConversionsRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 度量类型。1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量26:通用资源包抵扣单位 此参数不携带或携带值为空或携带值为null时,不作为筛选条件。
	MeasureType *int32 `json:"measure_type,omitempty"`
}

Request Object

func (ListConversionsRequest) String

func (o ListConversionsRequest) String() string

type ListConversionsResponse

type ListConversionsResponse struct {

	// 度量单位的换算信息,具体参见表3。
	Conversions    *[]Conversion `json:"conversions,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListConversionsResponse) String

func (o ListConversionsResponse) String() string

type ListCostsReq added in v0.0.104

type ListCostsReq struct {
	TimeCondition *TimeCondition `json:"time_condition"`

	// 查询维度,具体请参见表 GroupBy。
	Groupby []GroupBy `json:"groupby"`

	// 成本类型。ORIGINAL_COST:原始成本AMORTIZED_COST:摊销成本
	CostType string `json:"cost_type"`

	// 展示的金额类型。PAYMENT_AMOUNT:应付NET_AMOUNT:实付
	AmountType string `json:"amount_type"`

	// 偏移量。从0开始,默认为0
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的记录数,默认为10
	Limit *int32 `json:"limit,omitempty"`

	// 过滤条件,具体请参见表 过滤条件。此参数不携带或携带值为空列表或携带值为null时,不作为筛选条件。
	Filters *[]FilterV2 `json:"filters,omitempty"`
}

func (ListCostsReq) String added in v0.0.104

func (o ListCostsReq) String() string

type ListCostsRequest added in v0.0.104

type ListCostsRequest struct {

	// 语言。中文:zh_CN英文:en_US。缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

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

Request Object

func (ListCostsRequest) String added in v0.0.104

func (o ListCostsRequest) String() string

type ListCostsResponse added in v0.0.104

type ListCostsResponse struct {

	// 货币。 USD:美元
	Currency *string `json:"currency,omitempty"`

	// 总条数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 按天或按月的明细金额。
	CostData       *[]CostDataByDimension `json:"cost_data,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListCostsResponse) String added in v0.0.104

func (o ListCostsResponse) String() string

type ListCustomerOnDemandResourcesRequest

type ListCustomerOnDemandResourcesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

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

Request Object

func (ListCustomerOnDemandResourcesRequest) String

type ListCustomerOnDemandResourcesResponse

type ListCustomerOnDemandResourcesResponse struct {

	// 客户资源列表。 具体参见表2。
	Resources *[]CustomerOnDemandResource `json:"resources,omitempty"`

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

Response Object

func (ListCustomerOnDemandResourcesResponse) String

type ListCustomerOrdersRequest

type ListCustomerOrdersRequest struct {

	// 订单ID。 说明: 使用特殊字符进行查询的时候,请注意进行URL编码转换,如“%”的转码应为“%25”。
	OrderId *string `json:"order_id,omitempty"`

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/intl/zh-cn/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId *string `json:"customer_id,omitempty"`

	// 订单创建开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTimeBegin *string `json:"create_time_begin,omitempty"`

	// 订单创建结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	CreateTimeEnd *string `json:"create_time_end,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 订单状态:1:待审核3:处理中4:已取消5:已完成6:待支付9:待确认
	Status *int32 `json:"status,omitempty"`

	// 订单类型:1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整
	OrderType *string `json:"order_type,omitempty"`

	// 每次查询的订单数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 查询的订单列表排序。支持按照创建时间进行排序,带-表示倒序。创建时间:升序为createTime,倒序为-createTime。
	OrderBy *string `json:"order_by,omitempty"`

	// 订单支付开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTimeBegin *string `json:"payment_time_begin,omitempty"`

	// 订单支付结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	PaymentTimeEnd *string `json:"payment_time_end,omitempty"`

	// 云经销商ID。华为云总经销商(一级经销商)查询云经销商的客户订单列表时,需要携带该参数;除此之外,此参数不做处理。否则只能查询自己客户的订单列表。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ListCustomerOrdersRequest) String

func (o ListCustomerOrdersRequest) String() string

type ListCustomerOrdersResponse

type ListCustomerOrdersResponse struct {

	// 大于等于0的整数。 符合条件的记录总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// - 客户订单详情信息。 具体请参见表2
	OrderInfos     *[]CustomerOrderV2 `json:"order_infos,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListCustomerOrdersResponse) String

type ListCustomerselfResourceRecordDetailsRequest

type ListCustomerselfResourceRecordDetailsRequest struct {
	Body *QueryResRecordsDetailReq `json:"body,omitempty"`
}

Request Object

func (ListCustomerselfResourceRecordDetailsRequest) String

type ListCustomerselfResourceRecordDetailsResponse

type ListCustomerselfResourceRecordDetailsResponse struct {

	// 资源详单数据记录。 具体请参见表1。
	MonthlyRecords *[]MonthlyBillRes `json:"monthly_records,omitempty"`

	// 结果集数量,只有成功才返回这个参数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 货币单位代码: USD:美元
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListCustomerselfResourceRecordDetailsResponse) String

type ListCustomerselfResourceRecordsRequest

type ListCustomerselfResourceRecordsRequest struct {

	// 语言:中文:zh_CN 英文:en_US。缺省为zh_CN
	XLanguage *string `json:"X-Language,omitempty"`

	// 查询的资源消费记录所在账期,格式:YYYY-MM。
	Cycle string `json:"cycle"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。此参数不携带时,不作为筛选条件;携带值为空或携带值为空串时,作为筛选条件。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。此参数不携带时,不作为筛选条件;携带值为空或携带值为空串时,作为筛选条件。
	Region *string `json:"region,omitempty"`

	// 计费模式。1:包年/包月3:按需10:预留实例。此参数不携带时,不作为筛选条件。
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金。此参数不携带或携带值为空时,不作为筛选条件。
	BillType *int32 `json:"bill_type,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 资源ID。此参数不携带时,不作为筛选条件;携带值为空或携带值为空串时,作为筛选条件。
	ResourceId *string `json:"resource_id,omitempty"`

	// 企业项目标识(企业项目ID)。default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:null。此参数不携带时,不作为筛选条件;携带值为空或携带值为空串时,作为筛选条件。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 返回是否包含应付金额为0的记录。true:包含false:不包含。此参数不携带或携带值为空时,不作为筛选条件。
	IncludeZeroRecord *bool `json:"include_zero_record,omitempty"`

	// 查询资源消费记录的方式。oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户。此参数不携带或携带值为空时,默认值为“all”,如果没有企业子客户,取值为all时查询的是客户自己的资源消费记录。
	Method *string `json:"method,omitempty"`

	// 企业子账号ID。此参数携带值为空串时,不作为筛选条件。 说明: 如果method取值不为sub_customer,则该参数无效。如果method取值为sub_customer,则该参数不能为空。
	SubCustomerId *string `json:"sub_customer_id,omitempty"`

	// 订单ID或交易ID。账单类型为1、2、3、4和8时此处为订单ID。账单类型为其它场景时此处为交易ID,为扣费维度的唯一标识。例如非月末扣费时为应收ID;月末扣费时为账单ID。此参数不携带时,不作为筛选条件;携带值为空或携带值为空串时,作为筛选条件。
	TradeId *string `json:"trade_id,omitempty"`

	// 查询的资源消费记录的开始日期,格式为YYYY-MM-DD。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。
	BillDateBegin *string `json:"bill_date_begin,omitempty"`

	// 查询的资源消费记录的结束日期,格式为YYYY-MM-DD。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。
	BillDateEnd *string `json:"bill_date_end,omitempty"`
}

Request Object

func (ListCustomerselfResourceRecordsRequest) String

type ListCustomerselfResourceRecordsResponse

type ListCustomerselfResourceRecordsResponse struct {

	// 资源费用记录数据。 具体请参见表3。
	FeeRecords *[]ResFeeRecordV2 `json:"fee_records,omitempty"`

	// 结果集数量,只有成功才返回这个参数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 货币单位代码: USD:美元
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListCustomerselfResourceRecordsResponse) String

type ListFreeResourceInfosReq

type ListFreeResourceInfosReq struct {

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 产品ID,即资源包ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称,即资源包名称。
	ProductName *string `json:"product_name,omitempty"`

	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 状态: 0:未生效1:生效中2:已用完3:已失效4:已退订
	Status *int32 `json:"status,omitempty"`

	// 偏移量,从0开始,默认为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的记录数,默认为10。
	Limit *int32 `json:"limit,omitempty"`
}

func (ListFreeResourceInfosReq) String

func (o ListFreeResourceInfosReq) String() string

type ListFreeResourceInfosRequest

type ListFreeResourceInfosRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

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

Request Object

func (ListFreeResourceInfosRequest) String

type ListFreeResourceInfosResponse

type ListFreeResourceInfosResponse struct {

	// 资源包信息列表,具体参见表2。
	FreeResourcePackages *[]FreeResourcePackageV3 `json:"free_resource_packages,omitempty"`

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

Response Object

func (ListFreeResourceInfosResponse) String

type ListFreeResourceUsagesReq

type ListFreeResourceUsagesReq struct {

	// 资源项ID列表,每个最大64字节。 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。资源项ID来自查询资源包列表接口的响应。
	FreeResourceIds []string `json:"free_resource_ids"`
}

func (ListFreeResourceUsagesReq) String

func (o ListFreeResourceUsagesReq) String() string

type ListFreeResourceUsagesRequest

type ListFreeResourceUsagesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

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

Request Object

func (ListFreeResourceUsagesRequest) String

type ListFreeResourceUsagesResponse

type ListFreeResourceUsagesResponse struct {

	// 资源套餐内的资源项信息(资源项ID级的详情),具体参见表2。
	FreeResources  *[]FreeResourceDetail `json:"free_resources,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ListFreeResourceUsagesResponse) String

type ListFreeResourcesUsageRecordsRequest added in v0.1.22

type ListFreeResourcesUsageRecordsRequest struct {

	// 资源项ID,一个资源包中会含有多个资源项,一个使用量类型对应一个资源项。资源项ID来自查询资源包列表接口的响应。 此参数不携带或携带值为空时,不作为筛选条件。
	FreeResourceId *string `json:"free_resource_id,omitempty"`

	// 产品ID,即资源包ID。 此参数不携带或携带值为空时,不作为筛选条件。
	ProductId *string `json:"product_id,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。 此参数不携带或携带值为空时,不作为筛选条件。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源抵扣的起始时间。东八区时间,格式为YYYY-MM-DD。
	DeductTimeBegin string `json:"deduct_time_begin"`

	// 资源抵扣的结束时间。东八区时间,格式为YYYY-MM-DD。  说明: 抵扣结束时间-抵扣起始时间<=90天。
	DeductTimeEnd string `json:"deduct_time_end"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListFreeResourcesUsageRecordsRequest) String added in v0.1.22

type ListFreeResourcesUsageRecordsResponse added in v0.1.22

type ListFreeResourcesUsageRecordsResponse struct {

	// 资源包使用明细记录,具体参见表1。
	FreeResourceRecords *[]FreeResourceRecord `json:"free_resource_records,omitempty"`

	// 满足条件的总个数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListFreeResourcesUsageRecordsResponse) String added in v0.1.22

type ListIndirectPartnersRequest added in v0.0.104

type ListIndirectPartnersRequest struct {
	Body *QueryIndirectPartnersReq `json:"body,omitempty"`
}

Request Object

func (ListIndirectPartnersRequest) String added in v0.0.104

type ListIndirectPartnersResponse added in v0.0.104

type ListIndirectPartnersResponse struct {

	// 符合条件的记录个数,只有成功的时候出现。
	Count *int32 `json:"count,omitempty"`

	// 云经销商列表,具体参见表1。
	IndirectPartners *[]IndirectPartnerInfo `json:"indirect_partners,omitempty"`
	HttpStatusCode   int                    `json:"-"`
}

Response Object

func (ListIndirectPartnersResponse) String added in v0.0.104

type ListInvoicesRequest

type ListInvoicesRequest struct {

	// 发票申请开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	StartTime string `json:"start_time"`

	// 发票申请结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EndTime string `json:"end_time"`

	// 页码。
	Offset int32 `json:"offset"`

	// 每页大小。
	Limit int32 `json:"limit"`
}

Request Object

func (ListInvoicesRequest) String

func (o ListInvoicesRequest) String() string

type ListInvoicesResponse

type ListInvoicesResponse struct {

	// 记录数,只有成功的时候才返回这个字段
	Count *int32 `json:"count,omitempty"`

	// 发票信息列表,参见表2。
	Invoices       *[]InvoiceRequestInfoIntl `json:"invoices,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ListInvoicesResponse) String

func (o ListInvoicesResponse) String() string

type ListMeasureUnitsRequest

type ListMeasureUnitsRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`
}

Request Object

func (ListMeasureUnitsRequest) String

func (o ListMeasureUnitsRequest) String() string

type ListMeasureUnitsResponse

type ListMeasureUnitsResponse struct {

	// 度量单位信息,具体参见表2。
	MeasureUnits   *[]MeasureUnitRest `json:"measure_units,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListMeasureUnitsResponse) String

func (o ListMeasureUnitsResponse) String() string

type ListMonthlyExpendituresRequest

type ListMonthlyExpendituresRequest struct {

	// 查询消费汇总账单所在的账期,格式为YYYY-MM。
	Cycle string `json:"cycle"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。当不传递此参数时,查询的账单是以云服务类型为维度的月度消费账单。当传递此参数时,查询的账单是该云服务类型下以资源类型为维度的月度消费账单。
	CloudServiceTypeCode *string `json:"cloud_service_type_code,omitempty"`

	// 0:华为云账户 1:伙伴设置预算账户,仅当客户关联合作伙伴且关联类型为转售模式时,才会存在伙伴拨款设置预算账户。不传此参数默认查询华为云账户下的消费汇总。
	Type *string `json:"type,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterpriseProjectId,omitempty"`
}

Request Object

func (ListMonthlyExpendituresRequest) String

type ListMonthlyExpendituresResponse

type ListMonthlyExpendituresResponse struct {

	// 返回码
	ErrorCode *string `json:"error_code,omitempty"`

	// 返回码描述
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 货币单位代码 USD:美元
	Currency *string `json:"currency,omitempty"`

	// 总条数
	TotalCount *int32 `json:"total_count,omitempty"`

	// 总金额(包含退订)。
	TotalAmount *float64 `json:"total_amount,omitempty"`

	// 总欠费金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 代金券金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券金额,预留。
	CashcouponAmount *float64 `json:"cashcoupon_amount,omitempty"`

	// 储值卡金额,预留。
	StoredcardAmount *float64 `json:"storedcard_amount,omitempty"`

	// 现金账户金额。
	DebitAmount *float64 `json:"debit_amount,omitempty"`

	// 信用账户金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 金额单位。 1:元3:分 默认值为3。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 账单记录,具体参考表3。
	BillSums       *[]BillSumRecordInfo `json:"bill_sums,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListMonthlyExpendituresResponse) String

type ListOnDemandResourceRatingsRequest

type ListOnDemandResourceRatingsRequest struct {
	Body *RateOnDemandReq `json:"body,omitempty"`
}

Request Object

func (ListOnDemandResourceRatingsRequest) String

type ListOnDemandResourceRatingsResponse

type ListOnDemandResourceRatingsResponse struct {

	// 折扣的金额。
	Amount *float64 `json:"amount,omitempty"`

	// 优惠额(官网价和总价的差)。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 按需产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 USD:美元。 值为空代表美元。
	Currency *string `json:"currency,omitempty"`

	// 产品询价结果,具体参见表2。
	ProductRatingResults *[]DemandProductRatingResult `json:"product_rating_results,omitempty"`
	HttpStatusCode       int                          `json:"-"`
}

Response Object

func (ListOnDemandResourceRatingsResponse) String

type ListOrderDiscountsRequest

type ListOrderDiscountsRequest struct {

	// 订单ID。
	OrderId string `json:"order_id"`
}

Request Object

func (ListOrderDiscountsRequest) String

func (o ListOrderDiscountsRequest) String() string

type ListOrderDiscountsResponse

type ListOrderDiscountsResponse struct {

	// 可用的折扣列表。 具体请参见表2。
	Discounts      *[]DiscountInfoV3 `json:"discounts,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListOrderDiscountsResponse) String

type ListPayPerUseCustomerResourcesRequest

type ListPayPerUseCustomerResourcesRequest struct {
	Body *QueryResourcesReq `json:"body,omitempty"`
}

Request Object

func (ListPayPerUseCustomerResourcesRequest) String

type ListPayPerUseCustomerResourcesResponse

type ListPayPerUseCustomerResourcesResponse struct {

	// 资源列表。 具体请参见表2。
	Data *[]OrderInstanceV2 `json:"data,omitempty"`

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

Response Object

func (ListPayPerUseCustomerResourcesResponse) String

type ListPostpaidBillSumRequest

type ListPostpaidBillSumRequest struct {

	// 账单所归属的月份。格式:YYYY-MM。
	BillCycle string `json:"bill_cycle"`
}

Request Object

func (ListPostpaidBillSumRequest) String

type ListPostpaidBillSumResponse

type ListPostpaidBillSumResponse struct {

	// 账单所归属的月份。只有成功才返回这个参数。 格式:YYYY-MM
	BillCycle *string `json:"bill_cycle,omitempty"`

	// 账单中的应还金额(含税)。 应还金额(包含销项税)=消费金额+退款金额+调账金额
	InitialAmountDue *float64 `json:"initial_amount_due,omitempty"`

	// 账单中的消费金额。
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 账单中的退款金额。
	Refunds *float64 `json:"refunds,omitempty"`

	// 账单中的调账金额,即伙伴在账期内的调账信息如:欠款核销金额等。
	Adjustments *float64 `json:"adjustments,omitempty"`

	// 账单中的销项税金额,销项税不计入应还金额。
	TaxAmount *float64 `json:"tax_amount,omitempty"`

	// 只有成功才返回这个参数。 美金:USD
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPostpaidBillSumResponse) String

type ListRateOnPeriodDetailRequest

type ListRateOnPeriodDetailRequest struct {
	Body *RateOnPeriodReq `json:"body,omitempty"`
}

Request Object

func (ListRateOnPeriodDetailRequest) String

type ListRateOnPeriodDetailResponse

type ListRateOnPeriodDetailResponse struct {
	OfficialWebsiteRatingResult *OfficialWebsiteRatingResult `json:"official_website_rating_result,omitempty"`

	// 存在可选折扣优惠时返回折扣优惠维度询价结果,每个折扣优惠一组询价结果,具体参见表4。
	OptionalDiscountRatingResults *[]OptionalDiscountRatingResult `json:"optional_discount_rating_results,omitempty"`

	// 币种。 USD:美元。 值为空代表美元。
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListRateOnPeriodDetailResponse) String

type ListRenewRateOnPeriodReq added in v0.1.34

type ListRenewRateOnPeriodReq struct {

	// |参数名称:资源ID列表。只支持传入主资源ID,最多10个资源ID。| |参数约束以及描述:资源ID列表。只支持传入主资源ID,最多10个资源ID。|
	ResourceIds []string `json:"resource_ids"`

	// |参数名称:周期类型:2:月3:年| |参数的约束及描述:周期类型:2:月3:年|
	PeriodType int32 `json:"period_type"`

	// |参数名称:周期数目:如果是月,目前支持1-11如果是年,目前支持1-3| |参数的约束及描述:周期数目:如果是月,目前支持1-11如果是年,目前支持1-3|
	PeriodNum int32 `json:"period_num"`
}

func (ListRenewRateOnPeriodReq) String added in v0.1.34

func (o ListRenewRateOnPeriodReq) String() string

type ListRenewRateOnPeriodRequest added in v0.1.34

type ListRenewRateOnPeriodRequest struct {
	Body *ListRenewRateOnPeriodReq `json:"body,omitempty"`
}

Request Object

func (ListRenewRateOnPeriodRequest) String added in v0.1.34

type ListRenewRateOnPeriodResponse added in v0.1.34

type ListRenewRateOnPeriodResponse struct {

	// |参数名称:币种。CNY:人民币。USD:美元。| |参数约束及描述:币种。CNY:人民币。USD:美元。|
	Currency *string `json:"currency,omitempty"`

	// |参数名称:主资源(包含从资源)询价结果| |参数约束以及描述:主资源(包含从资源)询价结果|
	RenewInquiryResults *[]RenewInquiryResultInfo `json:"renew_inquiry_results,omitempty"`

	OfficialWebsiteRatingResult *OfficialWebsiteRatingResultV2 `json:"official_website_rating_result,omitempty"`

	// |参数名称:存在可选折扣优惠时返回折扣优惠维度询价结果,每个折扣优惠一组询价结果| |参数约束以及描述:存在可选折扣优惠时返回折扣优惠维度询价结果,每个折扣优惠一组询价结果|
	OptionalDiscountRatingResults *[]OptionalDiscountRatingResultV2 `json:"optional_discount_rating_results,omitempty"`

	// |参数名称:失败的资源信息列表| |参数约束以及描述:失败的资源信息列表|
	FailResourceInfos *[]FailResourceInfo `json:"fail_resource_infos,omitempty"`
	HttpStatusCode    int                 `json:"-"`
}

Response Object

func (ListRenewRateOnPeriodResponse) String added in v0.1.34

type ListResourceTypesRequest

type ListResourceTypesRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListResourceTypesRequest) String

func (o ListResourceTypesRequest) String() string

type ListResourceTypesResponse

type ListResourceTypesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 资源类型信息列表,具体请参见表3。
	ResourceTypes  *[]ResourceTypes `json:"resource_types,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListResourceTypesResponse) String

func (o ListResourceTypesResponse) String() string

type ListServiceResourcesRequest

type ListServiceResourcesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 云服务类型编码。例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode string `json:"service_type_code"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListServiceResourcesRequest) String

type ListServiceResourcesResponse

type ListServiceResourcesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 资源基本信息列表,具体请参见表3。
	Infos          *[]ServiceResourceInfo `json:"infos,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListServiceResourcesResponse) String

type ListServiceTypesRequest

type ListServiceTypesRequest struct {

	// 语言。zh_CN:中文en_US:英文缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListServiceTypesRequest) String

func (o ListServiceTypesRequest) String() string

type ListServiceTypesResponse

type ListServiceTypesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 云服务类型信息列表,具体请参见表3。
	ServiceTypes   *[]ServiceTypes `json:"service_types,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListServiceTypesResponse) String

func (o ListServiceTypesResponse) String() string

type ListSubCustomerCouponsRequest

type ListSubCustomerCouponsRequest struct {

	// 优惠券ID。
	CouponId *string `json:"coupon_id,omitempty"`

	// 订单ID。
	OrderId *string `json:"order_id,omitempty"`

	// 促销计划ID。
	PromotionPlanId *string `json:"promotion_plan_id,omitempty"`

	// 优惠券类型:1:代金券2:折扣券(预留)3:产品券(预留)4:现金券(预留)
	CouponType *int32 `json:"coupon_type,omitempty"`

	// 客户优惠券实例状态:1:未激活2:待使用3:已使用4:已过期
	Status *int32 `json:"status,omitempty"`

	// 激活时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	ActiveStartTime *string `json:"active_start_time,omitempty"`

	// 结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。
	ActiveEndTime *string `json:"active_end_time,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 查询的优惠券数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 发券来源,如果是合作伙伴发送的券,此处为伙伴ID。如果需要查询某个伙伴发放的券,可以在此处输入该伙伴ID。
	SourceId *string `json:"source_id,omitempty"`
}

Request Object

func (ListSubCustomerCouponsRequest) String

type ListSubCustomerCouponsResponse

type ListSubCustomerCouponsResponse struct {

	// 符合查询条件的总条数。
	Count *int32 `json:"count,omitempty"`

	// 优惠券记录。 具体请参见表2。
	UserCoupons    *[]IQueryUserCouponsResultV2 `json:"user_coupons,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (ListSubCustomerCouponsResponse) String

type ListSubCustomersRequest

type ListSubCustomersRequest struct {
	Body *QuerySubCustomerListReq `json:"body,omitempty"`
}

Request Object

func (ListSubCustomersRequest) String

func (o ListSubCustomersRequest) String() string

type ListSubCustomersResponse

type ListSubCustomersResponse struct {

	// 客户信息列表。 具体请参见表1。
	CustomerInfos *[]CustomerInformation `json:"customer_infos,omitempty"`

	// 总记录数。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListSubCustomersResponse) String

func (o ListSubCustomersResponse) String() string

type ListUsageTypesRequest

type ListUsageTypesRequest struct {

	// 语言。中文:zh_CN英文:en_US缺省为zh_CN。
	XLanguage *string `json:"X-Language,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量,默认值为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListUsageTypesRequest) String

func (o ListUsageTypesRequest) String() string

type ListUsageTypesResponse

type ListUsageTypesResponse struct {

	// 总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 使用量类型列表,具体请参见表3。
	UsageTypes     *[]UsageType `json:"usage_types,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListUsageTypesResponse) String

func (o ListUsageTypesResponse) String() string

type MeasureUnitRest

type MeasureUnitRest struct {

	// 度量单位ID。 例如:10表示GB。
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 度量单位的名称,根据查询的语言类型返回结果。 例如:GB。
	MeasureName *string `json:"measure_name,omitempty"`

	// 度量单位名称的英文缩写。 例如:度量单位名称“GB”的英文缩写为“GB”。
	Abbreviation *string `json:"abbreviation,omitempty"`

	// 度量类型。 1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量25:测试类型
	MeasureType *int32 `json:"measure_type,omitempty"`
}

func (MeasureUnitRest) String

func (o MeasureUnitRest) String() string

type ModSubCustomerBudgetReq

type ModSubCustomerBudgetReq struct {

	// 客户账号ID。您可以调用查询客户列表接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 调整的目标金额。 单位:元。精确至小数点后2位。
	BudgetAmount float64 `json:"budget_amount"`

	// 是否在设置客户预算的同时解除账号冻结: 0:否1:是 默认值为0。
	CancelPartnerFrozen *string `json:"cancel_partner_frozen,omitempty"`

	// 云经销商ID。获取方法请参见查询云经销商列表。如果需要查询云经销商的子客户列表,必须携带该字段。除此之外,此参数不做处理。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (ModSubCustomerBudgetReq) String

func (o ModSubCustomerBudgetReq) String() string

type MonthlyBillRes

type MonthlyBillRes struct {

	// 资源详单数据所在账期,东八区时间,格式为YYYY-MM。 例如2020-01。
	Cycle *string `json:"cycle,omitempty"`

	// 消费日期,东八区时间,格式为YYYY-MM-DD。  说明: 当statistic_type=2时该字段才有值,否则返回null。
	BillDate *string `json:"bill_date,omitempty"`

	// 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金
	BillType *int32 `json:"bill_type,omitempty"`

	// 消费的客户账号ID。 如果是普通客户或者企业子客户查询消费记录,只能查询到客户自己的消费记录,且此处显示的是客户自己的客户ID。如果是企业主查询消费记录,可以查询到企业主以及企业子客户的消费记录,此处为消费的实际客户ID。如果是企业主自己的消费记录,则为企业主ID;如果是某个企业子客户的消费记录,则此处为企业子账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	Region *string `json:"region,omitempty"`

	// 云服务区名称,例如:“中国-香港”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。
	RegionName *string `json:"region_name,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_Type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	CloudServiceTypeName *string `json:"cloud_service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 资源实例ID。
	ResInstanceId *string `json:"res_instance_id,omitempty"`

	// 资源名称。客户在创建资源的时候,可以输入资源名称,有些资源也可以在管理资源时,修改资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 资源标签。客户在管理资源的时候,可以设置资源标签。
	ResourceTag *string `json:"resource_tag,omitempty"`

	// SKU编码,在账单中唯一标识一个资源的规格。
	SkuCode *string `json:"sku_code,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:null其余项目对应ID获取方法请参见如何获取企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目名称。
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 计费模式。 1 : 包年/包月3:按需10:预留实例
	ChargeMode *int32 `json:"charge_mode,omitempty"`

	// 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后8位。  说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。
	ConsumeAmount *float64 `json:"consume_amount,omitempty"`

	// 现金支付金额。
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用额度支付金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 代金券支付金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券支付金额。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡支付金额。
	StoredCardAmount *float64 `json:"stored_card_amount,omitempty"`

	// 奖励金支付金额(用于现网客户未使用完的奖励金)。
	BonusAmount *float64 `json:"bonus_amount,omitempty"`

	// 欠费金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 欠费核销金额。
	AdjustmentAmount *float64 `json:"adjustment_amount,omitempty"`

	// 官网价。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 对应官网价折扣金额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 周期类型: 19:年20:月24:天25:小时5:一次性
	PeriodType *int32 `json:"period_type,omitempty"`

	// 根资源标识。
	RootResourceId *string `json:"root_resource_id,omitempty"`

	// 父资源标识。
	ParentResourceId *string `json:"parent_resource_id,omitempty"`

	// 订单ID 或 交易ID。 账单类型为1,2,3,4,8时为订单ID;其它场景下为: 交易ID(非月末扣费:应收ID;月末扣费:账单ID)。
	TradeId *string `json:"trade_id,omitempty"`

	// 产品的规格描述。
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`

	// 该字段为预留字段。
	SubServiceTypeCode *string `json:"sub_service_type_code,omitempty"`

	// 该字段为预留字段。
	SubServiceTypeName *string `json:"sub_service_type_name,omitempty"`

	// 该字段为预留字段。
	SubResourceTypeCode *string `json:"sub_resource_type_code,omitempty"`

	// 该字段为预留字段。
	SubResourceTypeName *string `json:"sub_resource_type_name,omitempty"`

	// 该字段为预留字段。
	SubResourceId *string `json:"sub_resource_id,omitempty"`

	// 该字段为预留字段。
	SubResourceName *string `json:"sub_resource_name,omitempty"`

	// |参数名称:原订单ID| |参数的约束及描述:该参数非必填,且只允许字符串|
	PreOrderId *string `json:"pre_order_id,omitempty"`

	// |参数名称:可用区信息列表| |参数的约束及描述:该参数非必填,且只允许字符串|
	AzCodeInfos *[]AzCodeInfo `json:"az_code_infos,omitempty"`
}

func (MonthlyBillRes) String

func (o MonthlyBillRes) String() string

type OfficialWebsiteRatingResult

type OfficialWebsiteRatingResult struct {

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 产品询价结果,具体参见表5。
	ProductRatingResults *[]PeriodProductOfficialRatingResult `json:"product_rating_results,omitempty"`
}

func (OfficialWebsiteRatingResult) String

type OfficialWebsiteRatingResultV2 added in v0.1.34

type OfficialWebsiteRatingResultV2 struct {

	// |参数名称:官网价格。单位为元| |参数约束及描述:官网价格。单位为元|
	OfficialWebsiteAmount *string `json:"official_website_amount,omitempty"`

	// |参数名称:分期金额的官网价。单位为元| |参数约束及描述:分期金额的官网价。单位为元|
	InstallmentOfficialWebsiteAmount *string `json:"installment_official_website_amount,omitempty"`

	// |参数名称:分期付款的周期类型。2:月| |参数的约束及描述:分期付款的周期类型。2:月|
	InstallmentPeriodType *int32 `json:"installment_period_type,omitempty"`
}

func (OfficialWebsiteRatingResultV2) String added in v0.1.34

type OptionalDiscountRatingResult

type OptionalDiscountRatingResult struct {

	// 折扣优惠ID。
	DiscountId *string `json:"discount_id,omitempty"`

	// 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。
	Amount *float64 `json:"amount,omitempty"`

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率
	DiscountType *int32 `json:"discount_type,omitempty"`

	// 折扣名称。
	DiscountName *string `json:"discount_name,omitempty"`

	// 是否为最优折扣。 0:不是最优折扣,为缺省值。1:是最优折扣最优折扣:在商务折扣、伙伴折扣中选择(优惠金额最大的折扣为最优,优惠金额相等则按此顺序排优先级),促销折扣,折扣券不参与最优折扣的计算。
	BestOffer *int32 `json:"best_offer,omitempty"`

	// 产品询价结果,具体参见表5。
	ProductRatingResults *[]PeriodProductRatingResult `json:"product_rating_results,omitempty"`
}

func (OptionalDiscountRatingResult) String

type OptionalDiscountRatingResultV2 added in v0.1.34

type OptionalDiscountRatingResultV2 struct {

	// |参数名称:折扣优惠ID| |参数约束及描述:折扣优惠ID|
	DiscountId *string `json:"discount_id,omitempty"`

	// |参数名称:总额,即最终优惠后的金额。单位为元。amount= official_website_amount - discount_amount| |参数约束及描述:总额,即最终优惠后的金额。单位为元。amount= official_website_amount - discount_amount|
	Amount *string `json:"amount,omitempty"`

	// |参数名称:官网价。单位为元| |参数约束及描述:官网价。单位为元|
	OfficialWebsiteAmount *string `json:"official_website_amount,omitempty"`

	// |参数名称:可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。单位为| |参数约束及描述:可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。单位为|
	DiscountAmount *string `json:"discount_amount,omitempty"`

	// |参数名称:折扣优惠类型。合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣伙伴授予折扣:607:合作伙伴授予折扣-折扣率| |参数的约束及描述:折扣优惠类型。合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣伙伴授予折扣:607:合作伙伴授予折扣-折扣率|
	DiscountType *int32 `json:"discount_type,omitempty"`

	// |参数名称:折扣名称| |参数约束及描述:折扣名称|
	DiscountName *string `json:"discount_name,omitempty"`

	// |参数名称:是否为最优折扣。0:不是最优折扣,为缺省值。1:是最优折扣最优折扣:在商务折扣、伙伴折扣中选择(优惠金额最大的折扣为最优,优惠金额相等则按此顺序排优先级),促销折扣,折扣券不参与最优折扣的计算| |参数的约束及描述:是否为最优折扣。0:不是最优折扣,为缺省值。1:是最优折扣最优折扣:在商务折扣、伙伴折扣中选择(优惠金额最大的折扣为最优,优惠金额相等则按此顺序排优先级),促销折扣,折扣券不参与最优折扣的计算|
	BestOffer *int32 `json:"best_offer,omitempty"`

	// |参数名称:分期金额的官网价。单位为元| |参数约束及描述:分期金额的官网价。单位为元|
	InstallmentOfficialWebsiteAmount *string `json:"installment_official_website_amount,omitempty"`

	// |参数名称:分期金额的折扣价。单位为元| |参数约束及描述:分期金额的折扣价。单位为元|
	InstallmentOfficialDiscountAmount *string `json:"installment_official_discount_amount,omitempty"`

	// |参数名称:分期金额的成交价。单位为元| |参数约束及描述:分期金额的成交价。单位为元|
	InstallmentAmount *string `json:"installment_amount,omitempty"`

	// |参数名称:分期付款的周期类型。2:月| |参数的约束及描述:分期付款的周期类型。2:月|
	InstallmentPeriodType *int32 `json:"installment_period_type,omitempty"`
}

func (OptionalDiscountRatingResultV2) String added in v0.1.34

type OrderInstanceV2

type OrderInstanceV2 struct {

	// 标识要开通资源的内部ID,资源开通以后生成的ID为resource_id。
	Id *string `json:"id,omitempty"`

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

	// 资源实例名。
	ResourceName *string `json:"resource_name,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务产品的资源规格。如果是VM的资源规格,则需要在规格后面添加“.win”或“.linux”,例如“s2.small.1.linux”。
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`

	// 资源项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 父资源ID。
	ParentResourceId *string `json:"parent_resource_id,omitempty"`

	// 是否是主资源。 0:非主资源1:主资源
	IsMainResource *int32 `json:"is_main_resource,omitempty"`

	// 资源状态。 2:使用中3:已关闭(页面不展示这个状态)4:已冻结5:已过期
	Status *int32 `json:"status,omitempty"`

	// 资源生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 资源过期时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 资源到期后的扣费策略: 0:到期进入宽限期1:到期转按需2:到期后自动删除(从生效中直接删除)3:到期后自动续费4:到期后冻结5:到期后删除(从保留期删除)  说明: 只有“3”表示该资源是自动续订,其他情况下,都是非自动续订下的到期策略。
	ExpirePolicy *int32 `json:"expire_policy,omitempty"`
}

func (OrderInstanceV2) String

func (o OrderInstanceV2) String() string

type OrderLineItemEntityV2

type OrderLineItemEntityV2 struct {

	// 订单项ID。
	OrderLineItemId *string `json:"order_line_item_id,omitempty"`

	// 云服务类型编码。例如OBS的云服务类型编码为“hws.service.type.obs”。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品规格描述。
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`

	// 周期类型。 0:天1:周2:月3:年4:小时5:一次性6:按需(预留)7:按用量报表使用(预留)
	PeriodType *int32 `json:"period_type,omitempty"`

	// 周期数量。  说明: 当订单为退订资源的订单时,参数取值为null。
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 生效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 失效时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	ExpireTime *string `json:"expire_time,omitempty"`

	// 订购数量。
	SubscriptionNum *int32 `json:"subscription_num,omitempty"`

	// 订单优惠后金额(实付价格,不含券不含卡)。
	AmountAfterDiscount *float64 `json:"amount_after_discount,omitempty"`

	// 订单金额(官网价)。 退订订单中,该金额等于currencyAfterDiscount。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	AmountInfo *AmountInfomationV2 `json:"amount_info,omitempty"`

	// 货币编码。
	Currency *string `json:"currency,omitempty"`

	// 产品目录编码。
	CategoryCode *string `json:"category_code,omitempty"`

	// 产品归属的云服务类型编码。 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ProductOwnerService *string `json:"product_owner_service,omitempty"`

	// 商务归属的资源类型编码。 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。
	CommercialResource *string `json:"commercial_resource,omitempty"`
}

func (OrderLineItemEntityV2) String

func (o OrderLineItemEntityV2) String() string

type OrderLineItemV3

type OrderLineItemV3 struct {

	// 可使用相同折扣的订单项合并后的订单项ID列表。 相同产品、相同规格(对于线性产品)、相同最终价格(例如,严选产品改价)的订单项将进行合并。
	OrderLineItemIds []string `json:"order_line_item_ids"`

	// 订单可用折扣的模式 。 0:折扣1:一口价2:满减
	DiscountMode int32 `json:"discount_mode"`

	// 订单可用的折扣金额(即减免金额)。
	DiscountAmount float64 `json:"discount_amount"`

	// 订单可用的折扣比例。
	DiscountRatio float64 `json:"discount_ratio"`
}

func (OrderLineItemV3) String

func (o OrderLineItemV3) String() string

type OrderRefundInfoV2

type OrderRefundInfoV2 struct {

	// 该记录的ID。
	Id string `json:"id"`

	// 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。
	Amount float64 `json:"amount"`

	// 金额的度量单位。 1:元
	MeasureId string `json:"measure_id"`

	// 客户账号ID。
	CustomerId string `json:"customer_id"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。
	ResourceTypeCode string `json:"resource_type_code"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。
	ServiceTypeCode string `json:"service_type_code"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode string `json:"region_code"`

	// 退订金额、已消费金额或收取退订手续费对应的原订单ID。
	BaseOrderId *string `json:"base_order_id,omitempty"`
}

func (OrderRefundInfoV2) String

func (o OrderRefundInfoV2) String() string

type OrderV3

type OrderV3 struct {

	// 可使用折扣的订单ID。
	OrderId string `json:"order_id"`

	// 可使用折扣的订单项列表,具体参见表4。
	OrderLineItems []OrderLineItemV3 `json:"order_line_items"`
}

func (OrderV3) String

func (o OrderV3) String() string

type PayCustomerOrderV3Req added in v0.1.5

type PayCustomerOrderV3Req struct {

	// 订单编号。 取值为调用“查询订单列表”接口时响应消息中的“order_id”字段的值或调用“续订包年/包月资源”接口时响应消息“order_ids”中的订单ID。
	OrderId string `json:"order_id"`

	// 本次订单支付是否使用优惠券。传递“YES”时,coupon_infos字段必选,传递“NO”时,会忽略coupon_infos字段的传值。 使用优惠券:YES,不使用优惠券:NO
	UseCoupon string `json:"use_coupon"`

	// 本次订单支付是否使用折扣。传递“YES”时,discount_infos字段必选,传递“NO”时,会忽略discount_infos字段的传值。 使用折扣:YES,不使用折扣:NO
	UseDiscount string `json:"use_discount"`

	// 优惠券ID列表,目前支持传递最多三个优惠券ID。 请从“查询订单可用优惠券”接口的响应参数中获取。 具体参见表1。 当use_coupon参数取值为“YES”,本字段必填;当use_coupon参数取值为“NO”,本字段不可填写,否则报参数错误。
	CouponInfos *[]CouponSimpleInfoOrderPayV3 `json:"coupon_infos,omitempty"`

	// 折扣ID列表,目前仅支持传递一个折扣ID。 请从“查询订单可用折扣”接口的响应参数中获取。 具体参见表2。 当use_discount参数取值为“YES”,本字段必填;当use_discount参数取值为“NO”,本字段不可填写,否则报参数错误。
	DiscountInfos *[]DiscountSimpleInfoV3 `json:"discount_infos,omitempty"`
}

func (PayCustomerOrderV3Req) String added in v0.1.5

func (o PayCustomerOrderV3Req) String() string

type PayOrdersRequest

type PayOrdersRequest struct {
	Body *PayCustomerOrderV3Req `json:"body,omitempty"`
}

Request Object

func (PayOrdersRequest) String

func (o PayOrdersRequest) String() string

type PayOrdersResponse

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

Response Object

func (PayOrdersResponse) String

func (o PayOrdersResponse) String() string

type PeriodProductInfo

type PeriodProductInfo struct {

	// ID标识,同一次询价中不能重复,用于标识返回询价结果和请求的映射关系。
	Id string `json:"id"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	CloudServiceType string `json:"cloud_service_type"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。 ResourceType是CloudServiceType中的一种资源,CloudServiceType由多种ResourceType组合提供。
	ResourceType string `json:"resource_type"`

	// 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云数据库:云数据库的资源规格信息,您可以调用查询数据库规格接口获取。 分布式缓存服务:分布式缓存服务的资源规格信息,您可以调用查询产品规格列表接口获取。
	ResourceSpec string `json:"resource_spec"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	Region string `json:"region"`

	// 可用区标识,例如:“cn-north-1a”。具体请参见地区和终端节点可用分区的“可用分区名称”列的值。
	AvailableZone *string `json:"available_zone,omitempty"`

	// 资源容量大小,例如购买的卷大小或带宽大小。 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	ResourceSize *int32 `json:"resource_size,omitempty"`

	// 资源容量度量标识。 15:Mbps(购买带宽时使用)17:GB(购买云硬盘时使用)14:个 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。
	SizeMeasureId *int32 `json:"size_measure_id,omitempty"`

	// 订购包年/包月产品的周期类型。 0:天2:月3:年4:小时
	PeriodType int32 `json:"period_type"`

	// 订购包年/包月产品的周期数。
	PeriodNum int32 `json:"period_num"`

	// 订购包年/包月产品的数量。
	SubscriptionNum int32 `json:"subscription_num"`
}

func (PeriodProductInfo) String

func (o PeriodProductInfo) String() string

type PeriodProductOfficialRatingResult

type PeriodProductOfficialRatingResult struct {

	// ID标识,来源于请求中的ID。
	Id *string `json:"id,omitempty"`

	// 包年/包月产品的ID。
	ProductId *string `json:"product_id,omitempty"`

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`
}

func (PeriodProductOfficialRatingResult) String

type PeriodProductRatingResult

type PeriodProductRatingResult struct {

	// ID标识,来源于请求中的ID。
	Id *string `json:"id,omitempty"`

	// 包年/包月产品的ID。
	ProductId *string `json:"product_id,omitempty"`

	// 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。
	Amount *float64 `json:"amount,omitempty"`

	// 包年/包月产品的官网价。
	OfficialWebsiteAmount *float64 `json:"official_website_amount,omitempty"`

	// 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 价格度量单位标识。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// |参数名称:每页数量| |参数的约束及描述:该参数非必填,且只允许1-100数字,默认10,最多100|
	Limit *int32 `json:"limit,omitempty"`
}

func (PeriodProductRatingResult) String

func (o PeriodProductRatingResult) String() string

type PeriodToOnDemandReq

type PeriodToOnDemandReq struct {

	// 设置或取消包年/包月资源到期转按需的操作。 SET_UP:设置CANCEL:取消
	Operation string `json:"operation"`

	// 资源ID。 您可以调用“查询客户包年/包月资源列表”接口获取资源ID。 此处只支持设置主资源ID,最多可设置100个资源ID。设置后,主资源及其对应的从资源将一起转为按需资源。 请根据“查询客户包年/包月资源列表”接口响应参数中的“is_main_resource”参数来标识资源是否为主资源。
	ResourceIds []string `json:"resource_ids"`
}

func (PeriodToOnDemandReq) String

func (o PeriodToOnDemandReq) String() string

type PostAddressInfoIntl

type PostAddressInfoIntl struct {

	// 收件人地址。
	Address *string `json:"address,omitempty"`

	// 收件人。
	Recipients *string `json:"recipients,omitempty"`

	// 收件所在地邮政编码。
	ZipCode *string `json:"zipCode,omitempty"`

	// 收件人手机号码。
	MobilePhone *string `json:"mobilePhone,omitempty"`
}

func (PostAddressInfoIntl) String

func (o PostAddressInfoIntl) String() string

type QueryCustomerOnDemandResourcesReq

type QueryCustomerOnDemandResourcesReq struct {

	// 客户账号ID。 您可以调用查询客户列表接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	RegionCode *string `json:"region_code,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源ID批量查询。 用于查询指定资源ID对应的资源。 最多支持同时传递50个ID的列表。
	ResourceIds *[]string `json:"resource_ids,omitempty"`

	// 生效时间的开始时间。 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTimeBegin *string `json:"effective_time_begin,omitempty"`

	// 生效时间的结束时间 UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。 其中,HH范围是0~23,mm和ss范围是0~59。
	EffectiveTimeEnd *string `json:"effective_time_end,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 一次查询的条数,默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 资源状态: 1:正常(已开通)2:宽限期3:冻结中4:变更中5:正在关闭6:已关闭
	Status *int32 `json:"status,omitempty"`

	// 云经销商ID。如果需要查询云经销商子客户的按需资源列表,必须携带该字段,除此之外,此参数不做处理。否则只能查询自己的子客户按需资源。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QueryCustomerOnDemandResourcesReq) String

type QueryIndirectPartnersReq added in v0.0.104

type QueryIndirectPartnersReq struct {

	// 云经销商伙伴的账号名。 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。
	AccountName *string `json:"account_name,omitempty"`

	// 云经销商关联华为云总经销商的开始时间。 UTC时间(包括时区),比如2016-03-28T00:00:00Z。 此参数不携带或携带值为null时,不作为筛选条件。
	AssociatedOnBegin *string `json:"associated_on_begin,omitempty"`

	// 云经销商关联华为云总经销商的结束时间。 UTC时间(包括时区),比如2016-03-28T00:00:00Z。 此参数不携带或携带值为null时,不作为筛选条件。
	AssociatedOnEnd *string `json:"associated_on_end,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的数量限制。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 云经销商ID。如果需要查询具体某个云经销商伙伴,必须携带该字段。除此之外,此参数不做处理。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QueryIndirectPartnersReq) String added in v0.0.104

func (o QueryIndirectPartnersReq) String() string

type QueryResRecordsDetailReq

type QueryResRecordsDetailReq struct {

	// 查询的资源详单所在账期,东八区时间,格式为YYYY-MM。 示例:2019-01。  说明: 不支持2019年1月份之前的资源详单。
	Cycle string `json:"cycle"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。您可以调用查询资源类型列表接口获取。 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。
	ResourceType *string `json:"resource_type,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。
	Region *string `json:"region,omitempty"`

	// 资源实例ID。 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。
	ResInstanceId *string `json:"res_instance_id,omitempty"`

	// 计费模式。 1 : 包年/包月3:按需10:预留实例 此参数不携带或者携带值为null时,返回所有计费模式的资源详单数据记录。
	ChargeMode *int32 `json:"charge_mode,omitempty"`

	// 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 此参数不携带或者携带值为null时,返回所有账单类型的资源详单数据记录。
	BillType *int32 `json:"bill_type,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:null 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 返回是否包含应付金额为0的记录。 true: 包含false: 不包含 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。
	IncludeZeroRecord *bool `json:"include_zero_record,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 页面大小。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 查询方式。 oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户 此参数不携带或携带值为空串或携带值为null时,默认值为“all”,如果没有企业子客户,all的时候也是查询客户自己的数据。
	Method *string `json:"method,omitempty"`

	// 企业子账号ID。  说明: 如果method取值不为sub_customer,则此参数无效。如果method取值为sub_customer,则此参数不能为空。
	SubCustomerId *string `json:"sub_customer_id,omitempty"`

	// 统计类型。默认值为1。 1:按账期2:按天
	StatisticType *int32 `json:"statistic_type,omitempty"`
}

func (QueryResRecordsDetailReq) String

func (o QueryResRecordsDetailReq) String() string

type QueryResourcesReq

type QueryResourcesReq struct {

	// 资源ID列表。 查询指定资源ID的资源(当only_main_resource=0时,查询指定资源及其附属资源)。最大支持50个ID同时作为条件查询,多个ID以英文逗号分隔。  说明: 资源ID是指开通资源以后,云服务针对该资源分配的标志,譬如云主机ECS的资源ID是server_id。
	ResourceIds *[]string `json:"resource_ids,omitempty"`

	// 订单号。查询指定订单下的资源。  说明: 使用特殊字符进行查询的时候,请注意进行URL编码转换,如“%”的转码应为“%25”。
	OrderId *string `json:"order_id,omitempty"`

	// 是否只查询主资源,该参数对于请求参数是子资源ID的时候无效,如果resource_ids是子资源ID,只能查询自己。 0:查询主资源及附属资源。1:只查询主资源。 默认值为0。  说明: 主资源是指有关联的几个资源中,处于主导位置的资源。 对于ECS而言,虚拟机VM是主资源,磁盘EVS是辅资源。对于VPC而言,共享带宽的情况下,带宽为主资源,对应的从资源为弹性IP(可能包含多个IP);独享带宽的情况下,弹性IP为主资源,对应的从资源为带宽。
	OnlyMainResource *int32 `json:"only_main_resource,omitempty"`

	// 资源状态。 查询指定状态的资源。多个状态以英文逗号分隔。 2:使用中4:已冻结5:已过期
	StatusList *[]int32 `json:"status_list,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的条数。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 查询指定时间段内失效的资源列表,时间段的起始时间,UTC时间。
	ExpireTimeBegin *string `json:"expire_time_begin,omitempty"`

	// 查询指定时间段内失效的资源列表,时间段的结束时间,UTC时间。
	ExpireTimeEnd *string `json:"expire_time_end,omitempty"`
}

func (QueryResourcesReq) String

func (o QueryResourcesReq) String() string

type QuerySubCustomerListReq

type QuerySubCustomerListReq struct {

	// 客户登录名称(如果客户创建了IAM用户,此处需要填写主账号登录名称。关于主账号和IAM用户的具体介绍请参见身份管理中“账号”和“IAM用户”的描述)。 支持模糊查询。
	AccountName *string `json:"account_name,omitempty"`

	// 客户的实名认证名称,支持模糊查询。
	Customer *string `json:"customer,omitempty"`

	// 偏移量,从0开始。默认值为0。  说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。 例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 每次查询的客户数量。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 标签,支持模糊查找。
	Label *string `json:"label,omitempty"`

	// 关联类型: 1:顾问销售3:转售
	AssociationType *string `json:"association_type,omitempty"`

	// 关联时间区间段开始,UTC时间。 格式:YYYY-MM-DD'T'hh:mm:ss'Z',例如“2019-05-06T08:05:01Z”。
	AssociatedOnBegin *string `json:"associated_on_begin,omitempty"`

	// 关联时间区间段结束,UTC时间。 格式:YYYY-MM-DD'T'hh:mm:ss'Z',例如“2019-05-06T08:05:01Z”。
	AssociatedOnEnd *string `json:"associated_on_end,omitempty"`

	// 云经销商ID。获取方法请参见查询云经销商列表。如果需要查询云经销商的子客户列表,必须携带该字段。除此之外,此参数不做处理。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (QuerySubCustomerListReq) String

func (o QuerySubCustomerListReq) String() string

type RateOnDemandReq

type RateOnDemandReq struct {

	// 项目ID。  说明: 使用客户Token,可以调用通过assume_role方式获取用户token接口获取“regionId”的取值对应的“project id”。具体请参见如何将合作伙伴Token置换为客户Token的步骤2。IAM子用户调用此接口,需要IAM主账号授权,具体请参考创建用户组并授权。
	ProjectId string `json:"project_id"`

	// 查询价格结果的精度模式。 0:询价结果默认精度截取,即最长保留到元后6位小数点,如0.000001元1:询价结果保留10位精度,即最长保留到元后10位小数点,如1.0000000001元  说明: 如果询价结果只到元后2位或者3位,那么价格也只到元后2位或者3位,不管传0或者传1都一样,只有询价结果到了小数点后面6位以上,传0和传1才有区别。
	InquiryPrecision *int32 `json:"inquiry_precision,omitempty"`

	// 产品信息列表,询价时要询价产品的信息的列表,具体参见表1。
	ProductInfos []DemandProductInfo `json:"product_infos"`
}

func (RateOnDemandReq) String

func (o RateOnDemandReq) String() string

type RateOnPeriodReq

type RateOnPeriodReq struct {

	// 项目ID。  说明: 获取方法: 步骤1:调用IAM获取委托Token接口,获取客户Token。步骤2:参见如何将合作伙伴Token置换为客户Token的步骤2,获取项目ID。IAM子用户调用此接口,需要IAM主账号授权,具体请参考创建用户组并授权。
	ProjectId string `json:"project_id"`

	// 产品信息列表,询价时要询价产品的信息的列表,具体参见表1。
	ProductInfos []PeriodProductInfo `json:"product_infos"`
}

func (RateOnPeriodReq) String

func (o RateOnPeriodReq) String() string

type RenewInquiryResultInfo added in v0.1.34

type RenewInquiryResultInfo struct {

	// |参数名称:资源ID。| |参数约束及描述:资源ID。|
	ResourceId *string `json:"resource_id,omitempty"`

	// |参数名称:主资源(包含从资源)续订金额。单位为元| |参数约束及描述:主资源(包含从资源)续订金额。单位为元|
	Amount *string `json:"amount,omitempty"`
}

func (RenewInquiryResultInfo) String added in v0.1.34

func (o RenewInquiryResultInfo) String() string

type RenewalResourcesReq

type RenewalResourcesReq struct {

	// 资源ID列表。 只支持传入主资源ID,最多100个资源ID。 哪些资源是主资源请根据“查询客户包年/包月资源列表”接口响应参数中的“is_main_resource”来标识。
	ResourceIds []string `json:"resource_ids"`

	// 周期类型: 2:月3:年
	PeriodType int32 `json:"period_type"`

	// 周期数目: 如果是月,目前支持1-11如果是年,目前支持1-3
	PeriodNum int32 `json:"period_num"`

	// 到期策略: 0:进入宽限期/保留期1:转按需2:自动退订3:自动续订
	ExpirePolicy int32 `json:"expire_policy"`

	// 是否自动支付。 0:否1:是 不填写的话,默认值是0,不自动支付。
	IsAutoPay *int32 `json:"is_auto_pay,omitempty"`
}

func (RenewalResourcesReq) String

func (o RenewalResourcesReq) String() string

type RenewalResourcesRequest

type RenewalResourcesRequest struct {
	Body *RenewalResourcesReq `json:"body,omitempty"`
}

Request Object

func (RenewalResourcesRequest) String

func (o RenewalResourcesRequest) String() string

type RenewalResourcesResponse

type RenewalResourcesResponse struct {

	// 续订资源生成的订单ID的列表。
	OrderIds *[]string `json:"order_ids,omitempty"`

	// |参数名称:失败的资源信息列表| |参数的约束及描述:套餐包使用量信息|
	FailResourceInfos *[]FailResourceInfo `json:"fail_resource_infos,omitempty"`
	HttpStatusCode    int                 `json:"-"`
}

Response Object

func (RenewalResourcesResponse) String

func (o RenewalResourcesResponse) String() string

type ResFeeRecordV2

type ResFeeRecordV2 struct {

	// 资源消费记录的日期。 格式:YYYY-MM-DD。按照东八区截取。
	BillDate *string `json:"bill_date,omitempty"`

	// 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金|
	BillType *int32 `json:"bill_type,omitempty"`

	// 消费的客户账号ID。 如果是普通客户或者企业子查询消费记录,只能查询到自身的消费记录,则这个地方显示的是自身的客户ID如果是企业主查询消费记录,可以查询到自身以及企业子的消费记录,这个地方是消费的实际客户ID,如果是企业主自身消费,为企业主ID,如果这条消费记录是某个企业子客户的消费,这个地方的ID是企业子账号ID。
	CustomerId *string `json:"customer_id,omitempty"`

	// 云服务区编码,例如:“ap-southeast-1”。具体请参见地区和终端节点对应云服务的“区域”列的值。
	Region *string `json:"region,omitempty"`

	// 云服务区名称,例如:“中国-香港”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。
	RegionName *string `json:"region_name,omitempty"`

	// 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 资源类型编码,例如ECS的VM为“hws.resource.type.vm”。
	ResourceType *string `json:"resource_type,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	CloudServiceTypeName *string `json:"cloud_service_type_name,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 费用对应的资源使用的开始时间,按需有效,包年/包月该字段保留。
	EffectiveTime *string `json:"effective_time,omitempty"`

	// 费用对应的资源使用的结束时间,按需有效,包年/包月该字段保留。
	ExpireTime *string `json:"expire_time,omitempty"`

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

	// 资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 资源标签。
	ResourceTag *string `json:"resource_tag,omitempty"`

	// 产品ID。
	ProductId *string `json:"product_id,omitempty"`

	// 产品名称。
	ProductName *string `json:"product_name,omitempty"`

	// 产品的规格描述。
	ProductSpecDesc *string `json:"product_spec_desc,omitempty"`

	// SKU编码,在账单中唯一标识一个资源的规格。
	SkuCode *string `json:"sku_code,omitempty"`

	// 产品的实例大小,仅线性产品有效。  说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。
	SpecSize *float64 `json:"spec_size,omitempty"`

	// 产品实例大小的单位,仅线性产品有该字段。 您可以调用查询度量单位列表接口获取。
	SpecSizeMeasureId *int32 `json:"spec_size_measure_id,omitempty"`

	// 订单ID或交易ID,扣费维度的唯一标识。
	TradeId *string `json:"trade_id,omitempty"`

	// 交易时间。
	TradeTime *string `json:"trade_time,omitempty"`

	// 企业项目标识(企业项目ID)。 default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:null
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目的名称。
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 计费模式。 1:包年/包月3:按需10:预留实例
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 订单ID。  说明: 包年/包月资源的使用记录才有该字段,按需资源则为空。
	OrderId *string `json:"order_id,omitempty"`

	// 周期类型: 19:年20:月24:天25:小时5:一次性
	PeriodType *string `json:"period_type,omitempty"`

	// 资源使用量的类型,您可以调用查询使用量类型列表接口获取。
	UsageType *string `json:"usage_type,omitempty"`

	// 资源的使用量。
	Usage *float64 `json:"usage,omitempty"`

	// 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。
	UsageMeasureId *int32 `json:"usage_measure_id,omitempty"`

	// 套餐内使用量。
	FreeResourceUsage *float64 `json:"free_resource_usage,omitempty"`

	// 套餐内使用量的度量单位,您可以调用查询度量单位列表接口获取。
	FreeResourceMeasureId *int32 `json:"free_resource_measure_id,omitempty"`

	// 预留实例使用量。
	RiUsage *float64 `json:"ri_usage,omitempty"`

	// 预留实例使用量单位。
	RiUsageMeasureId *int32 `json:"ri_usage_measure_id,omitempty"`

	// 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档
	UnitPrice *float64 `json:"unit_price,omitempty"`

	// 产品的单价单位。 线性产品的单价单位为“元/{线性单位}/月”或“元/{线性单位}/小时”等。非线性产品的单价单位为“元/月”或“元/小时”等。  说明: “线性单位”为线性产品(即订购时需要指定大小的产品)的大小的单位,比如硬盘的线性单位为GB,带宽的线性单位为Mbps。
	Unit *string `json:"unit,omitempty"`

	// 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。
	OfficialAmount *float64 `json:"official_amount,omitempty"`

	// 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。
	DiscountAmount *float64 `json:"discount_amount,omitempty"`

	// 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括代金券金额,精确到小数点后8位。  说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。
	Amount *float64 `json:"amount,omitempty"`

	// 现金支付金额。
	CashAmount *float64 `json:"cash_amount,omitempty"`

	// 信用额度支付金额。
	CreditAmount *float64 `json:"credit_amount,omitempty"`

	// 代金券支付金额。
	CouponAmount *float64 `json:"coupon_amount,omitempty"`

	// 现金券支付金额。
	FlexipurchaseCouponAmount *float64 `json:"flexipurchase_coupon_amount,omitempty"`

	// 储值卡支付金额。
	StoredCardAmount *float64 `json:"stored_card_amount,omitempty"`

	// 奖励金支付金额(用于现网客户未使用完的奖励金)。
	BonusAmount *float64 `json:"bonus_amount,omitempty"`

	// 欠费金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 欠费核销金额。
	AdjustmentAmount *float64 `json:"adjustment_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 实付金额计算公式。当前只包含如下场景: 按需简单定价 按需线性定价 包年包月新购和续费的简单定价 包年包月新购和续费的线性定价  说明: 实付金额计算公式得到的金额值等于amount - coupon_amount的差值。
	Formula *string `json:"formula,omitempty"`

	// 该字段为预留字段。
	SubServiceTypeCode *string `json:"sub_service_type_code,omitempty"`

	// 该字段为预留字段。
	SubServiceTypeName *string `json:"sub_service_type_name,omitempty"`

	// 该字段为预留字段。
	SubResourceTypeCode *string `json:"sub_resource_type_code,omitempty"`

	// 该字段为预留字段。
	SubResourceTypeName *string `json:"sub_resource_type_name,omitempty"`

	// 该字段为预留字段。
	SubResourceId *string `json:"sub_resource_id,omitempty"`

	// 该字段为预留字段。
	SubResourceName *string `json:"sub_resource_name,omitempty"`
}

func (ResFeeRecordV2) String

func (o ResFeeRecordV2) String() string

type ResourceBasicInfo

type ResourceBasicInfo struct {

	// 资源类型编码。例如:hws.resource.type.general。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型归属的服务类型编码。例如:hws.service.type.offline。
	ProductOwnerService *string `json:"product_owner_service,omitempty"`

	// 资源类型名称。例如:通用规格。
	Name *string `json:"name,omitempty"`

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

func (ResourceBasicInfo) String

func (o ResourceBasicInfo) String() string

type ResourceTypes

type ResourceTypes struct {

	// 资源类型的编码。例如ECS的VM为“hws.resource.type.vm”。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 资源类型的名称。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 资源类型的描述。
	ResourceTypeDesc *string `json:"resource_type_desc,omitempty"`

	// 资源类型归属的服务类型编码。例如:hws.service.type.offline。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`
}

func (ResourceTypes) String

func (o ResourceTypes) String() string

type SendVerificationCodeV2Req

type SendVerificationCodeV2Req struct {

	// 发送验证码的类型: 2:发送邮件验证码
	ReceiverType int32 `json:"receiver_type"`

	// 发送验证码的超时时间。 如果不填的话,采用系统默认超时时间5分钟。 单位:分钟
	Timeout *int32 `json:"timeout,omitempty"`

	// 指定发送验证码的邮箱地址。
	Email string `json:"email"`

	// 根据该参数的取值选择发送邮件验证码的语言。 zh-cn:中文en-us:英文
	Lang *string `json:"lang,omitempty"`
}

func (SendVerificationCodeV2Req) String

func (o SendVerificationCodeV2Req) String() string

type SendVerificationMessageCodeRequest

type SendVerificationMessageCodeRequest struct {
	Body *SendVerificationCodeV2Req `json:"body,omitempty"`
}

Request Object

func (SendVerificationMessageCodeRequest) String

type SendVerificationMessageCodeResponse

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

Response Object

func (SendVerificationMessageCodeResponse) String

type ServiceResourceInfo

type ServiceResourceInfo struct {
	BasicInfo *ResourceBasicInfo `json:"basic_info,omitempty"`
}

func (ServiceResourceInfo) String

func (o ServiceResourceInfo) String() string

type ServiceTypes

type ServiceTypes struct {

	// 云服务类型的名称。
	ServiceTypeName *string `json:"service_type_name,omitempty"`

	// 云服务类型的编码。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 云服务类型的缩写。
	Abbreviation *string `json:"abbreviation,omitempty"`
}

func (ServiceTypes) String

func (o ServiceTypes) String() string

type ShowCustomerAccountBalancesRequest

type ShowCustomerAccountBalancesRequest struct {
}

Request Object

func (ShowCustomerAccountBalancesRequest) String

type ShowCustomerAccountBalancesResponse

type ShowCustomerAccountBalancesResponse struct {

	// 账户余额列表。 具体请参见表1。
	AccountBalances *[]AccountBalanceV3 `json:"account_balances,omitempty"`

	// 欠款总金额。
	DebtAmount *float64 `json:"debt_amount,omitempty"`

	// 度量单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 USD:美元。
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowCustomerAccountBalancesResponse) String

type ShowCustomerOrderDetailsRequest

type ShowCustomerOrderDetailsRequest struct {

	// 语言:中文:zh_CN 英文:en_US 缺省为zh_CN|
	XLanguage *string `json:"X-Language,omitempty"`

	// 订单ID。
	OrderId string `json:"order_id"`

	// 每页大小。默认值为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。
	Offset *int32 `json:"offset,omitempty"`

	// 云经销商ID。华为云总经销商(一级经销商)查询云经销商的客户订单详情时,需要携带该参数;除此之外,此参数不做处理。否则只能查询自己客户的订单详情。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ShowCustomerOrderDetailsRequest) String

type ShowCustomerOrderDetailsResponse

type ShowCustomerOrderDetailsResponse struct {

	// 订单项个数。
	TotalCount *int32 `json:"total_count,omitempty"`

	OrderInfo *CustomerOrderV3 `json:"order_info,omitempty"`

	// 订单对应的订单项。 具体请参见表5。
	OrderLineItems *[]OrderLineItemEntityV2 `json:"order_line_items,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ShowCustomerOrderDetailsResponse) String

type ShowRealnameAuthenticationReviewResultRequest

type ShowRealnameAuthenticationReviewResultRequest struct {

	// 客户账号ID。您可以调用[查询客户列表](https://support.huaweicloud.com/intl/zh-cn/api-bpconsole/mc_00021.html)接口获取customer_id。
	CustomerId string `json:"customer_id"`
}

Request Object

func (ShowRealnameAuthenticationReviewResultRequest) String

type ShowRealnameAuthenticationReviewResultResponse

type ShowRealnameAuthenticationReviewResultResponse struct {

	// 实名认证审核结果,只有状态码为200并且已经提交过实名认证请求才返回: 0:审核中1:不通过2:通过
	ReviewResult *int32 `json:"review_result,omitempty"`

	// 审批意见,只有状态码为200并且审核不通过才返回。
	Opinion        *string `json:"opinion,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowRealnameAuthenticationReviewResultResponse) String

type ShowRefundOrderDetailsRequest

type ShowRefundOrderDetailsRequest struct {

	// 退订订单或者降配订单的ID。
	OrderId string `json:"order_id"`
}

Request Object

func (ShowRefundOrderDetailsRequest) String

type ShowRefundOrderDetailsResponse

type ShowRefundOrderDetailsResponse struct {

	// 查询总数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 资源信息列表。 具体请参见表2。
	RefundInfos    *[]OrderRefundInfoV2 `json:"refund_infos,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ShowRefundOrderDetailsResponse) String

type ShowSubCustomerBudgetRequest

type ShowSubCustomerBudgetRequest struct {

	// 客户账号ID。您可以调用查询客户列表接口获取customer_id。
	CustomerId string `json:"customer_id"`

	// 云经销商ID。获取方法请参见查询云经销商列表。如果需要查询云经销商的子客户列表,必须携带该字段。除此之外,此参数不做处理。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

Request Object

func (ShowSubCustomerBudgetRequest) String

type ShowSubCustomerBudgetResponse

type ShowSubCustomerBudgetResponse struct {

	// 初始预算金额。
	BudgetAmount *float64 `json:"budget_amount,omitempty"`

	// 已经使用的预算。该预算存在一定的时延和误差。
	UsedAmount *float64 `json:"used_amount,omitempty"`

	// 金额单位。 1:元
	MeasureId *int32 `json:"measure_id,omitempty"`

	// 币种。 USD:美金
	Currency       *string `json:"currency,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowSubCustomerBudgetResponse) String

type TaxInfo

type TaxInfo struct {

	// 税种。 VATISSWHTGST
	TaxClass *string `json:"taxClass,omitempty"`

	// 税率。
	TaxRate *string `json:"taxRate,omitempty"`

	// 税种子类。 PISCOFINSCGSTSGSTIGSTISSWHTVAT
	SubTaxClass *string `json:"subTaxClass,omitempty"`

	// 税金金额。 单位:美元
	TaxAmount *float64 `json:"taxAmount,omitempty"`
}

func (TaxInfo) String

func (o TaxInfo) String() string

type TimeCondition added in v0.0.104

type TimeCondition struct {

	// 时间单位,1:天2:月
	TimeMeasureId int32 `json:"time_measure_id"`

	// 查询开始时间,必须是日期格式。当time_measure_id值为1或为空时,格式为YYYY-MM-DD当time_measure_id值为2时,格式为YYYY-MM
	BeginTime string `json:"begin_time"`

	// 查询结束时间:必须是日期格式。当time_measure_id值为1或为空时,格式为YYYY-MM-DD当time_measure_id值为2时,格式为YYYY-MM
	EndTime string `json:"end_time"`
}

func (TimeCondition) String added in v0.0.104

func (o TimeCondition) String() string

type UnfreezeSubCustomersReq

type UnfreezeSubCustomersReq struct {

	// 需要解冻的客户账号ID列表。 您可以调用查询客户列表接口获取customer_id。
	CustomerIds []string `json:"customer_ids"`

	// 解冻原因。
	Reason string `json:"reason"`

	// 云经销商ID。获取方法请参见查询云经销商列表。如果需要查询云经销商的子客户列表,必须携带该字段。除此之外,此参数不做处理。
	IndirectPartnerId *string `json:"indirect_partner_id,omitempty"`
}

func (UnfreezeSubCustomersReq) String

func (o UnfreezeSubCustomersReq) String() string

type UnfreezeSubCustomersRequest

type UnfreezeSubCustomersRequest struct {
	Body *UnfreezeSubCustomersReq `json:"body,omitempty"`
}

Request Object

func (UnfreezeSubCustomersRequest) String

type UnfreezeSubCustomersResponse

type UnfreezeSubCustomersResponse struct {

	// 错误原因,只有部分失败的时候才返回。 具体请参见表1。
	ErrorDetails   *[]CustomerErrorDetail `json:"error_details,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (UnfreezeSubCustomersResponse) String

type UnsubscribeResourcesReq

type UnsubscribeResourcesReq struct {

	// 资源ID列表。 最大支持1次性输入10个资源ID,只能输入主资源ID。 哪些资源是主资源请根据“查询客户包年/包月资源列表”接口响应参数中的“is_main_resource”来标识。
	ResourceIds []string `json:"resource_ids"`

	// 退订类型,取值如下: 1:退订资源及其已续费周期。2:只退订资源已续费周期,不退订资源。
	UnsubscribeType int32 `json:"unsubscribe_type"`

	// 退订理由分类,取值如下: 1:产品不好用2:产品功能无法满足需求3:不会操作/操作过于复杂4:对服务不满意5:其他
	UnsubscribeReasonType *int32 `json:"unsubscribe_reason_type,omitempty"`

	// 退订原因,一般由客户输入。
	UnsubscribeReason *string `json:"unsubscribe_reason,omitempty"`
}

func (UnsubscribeResourcesReq) String

func (o UnsubscribeResourcesReq) String() string

type UpdatePeriodToOnDemandRequest

type UpdatePeriodToOnDemandRequest struct {
	Body *PeriodToOnDemandReq `json:"body,omitempty"`
}

Request Object

func (UpdatePeriodToOnDemandRequest) String

type UpdatePeriodToOnDemandResponse

type UpdatePeriodToOnDemandResponse struct {

	// HTTP 200的时候返回该字段;部分失败时仅返回失败的记录;如果全部成功,则该记录为空,具体参见表1。
	ErrorDetails   *[]ErrorDetail `json:"error_details,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdatePeriodToOnDemandResponse) String

type UpdateSubCustomerBudgetRequest

type UpdateSubCustomerBudgetRequest struct {
	Body *ModSubCustomerBudgetReq `json:"body,omitempty"`
}

Request Object

func (UpdateSubCustomerBudgetRequest) String

type UpdateSubCustomerBudgetResponse

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

Response Object

func (UpdateSubCustomerBudgetResponse) String

type UsageType

type UsageType struct {

	// 使用量类型编码。如:reqNumber。
	Code *string `json:"code,omitempty"`

	// 使用量类型名称。如:调用次数。
	Name *string `json:"name,omitempty"`

	// 资源类型编码。例如ECS的VM为“hws.resource.type.vm”。
	ResourceTypeCode *string `json:"resource_type_code,omitempty"`

	// 云服务类型编码。例如OBS的云服务类型编码为“hws.service.type.obs”。
	ServiceTypeCode *string `json:"service_type_code,omitempty"`

	// 资源类型名称。例如ECS的资源类型名称为“云主机”。
	ResourceTypeName *string `json:"resource_type_name,omitempty"`

	// 云服务类型名称。例如ECS的云服务类型名称为“弹性云服务器”。
	ServiceTypeName *string `json:"service_type_name,omitempty"`
}

func (UsageType) String

func (o UsageType) String() string

Source Files

Jump to

Keyboard shortcuts

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