Skip to content

Commit

Permalink
release 0.1.120 source code
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaweicloud-SDK committed Oct 31, 2024
1 parent 50c62f8 commit b72f50f
Show file tree
Hide file tree
Showing 670 changed files with 21,427 additions and 1,454 deletions.
755 changes: 755 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

755 changes: 755 additions & 0 deletions CHANGELOG_CN.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.119
0.1.120
2 changes: 1 addition & 1 deletion services/apig/v2/apig_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4544,7 +4544,7 @@ func (c *ApigClient) UpdateHealthCheckInvoker(request *model.UpdateHealthCheckRe

// UpdateMemberGroup 更新VPC通道后端服务器组
//
// 更新指定VPC通道后端服务器组
// 更新指定VPC通道后端服务器组。当负载通道为nacos微服务类型时,不支持修改服务器组权重。
//
// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateMemberGroup(request *model.UpdateMemberGroupRequest) (*model.UpdateMemberGroupResponse, error) {
Expand Down
44 changes: 44 additions & 0 deletions services/apig/v2/apig_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,10 @@ func GenReqDefForListApisBindedToSignatureKeyV2() *def.HttpRequestDef {
WithName("GroupId").
WithJsonTag("group_id").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -1467,6 +1471,10 @@ func GenReqDefForListApisNotBoundWithSignatureKeyV2() *def.HttpRequestDef {
WithName("GroupId").
WithJsonTag("group_id").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -2303,6 +2311,10 @@ func GenReqDefForListPluginAttachableApis() *def.HttpRequestDef {
WithName("ReqUri").
WithJsonTag("req_uri").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -2356,6 +2368,10 @@ func GenReqDefForListPluginAttachedApis() *def.HttpRequestDef {
WithName("ReqUri").
WithJsonTag("req_uri").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -4121,6 +4137,10 @@ func GenReqDefForListApisBindedToRequestThrottlingPolicyV2() *def.HttpRequestDef
WithName("ApiName").
WithJsonTag("api_name").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -4166,6 +4186,10 @@ func GenReqDefForListApisUnbindedToRequestThrottlingPolicyV2() *def.HttpRequestD
WithName("ApiName").
WithJsonTag("api_name").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -4239,6 +4263,10 @@ func GenReqDefForListApisV2() *def.HttpRequestDef {
WithName("ReturnDataMode").
WithJsonTag("return_data_mode").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -4523,6 +4551,10 @@ func GenReqDefForListApisBindedToAclPolicyV2() *def.HttpRequestDef {
WithName("GroupId").
WithJsonTag("group_id").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -4568,6 +4600,10 @@ func GenReqDefForListApisUnbindedToAclPolicyV2() *def.HttpRequestDef {
WithName("GroupId").
WithJsonTag("group_id").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -4657,6 +4693,10 @@ func GenReqDefForListApisBindedToAppV2() *def.HttpRequestDef {
WithName("EnvId").
WithJsonTag("env_id").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down Expand Up @@ -4702,6 +4742,10 @@ func GenReqDefForListApisUnbindedToAppV2() *def.HttpRequestDef {
WithName("ApiName").
WithJsonTag("api_name").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Tags").
WithJsonTag("tags").
WithLocationType(def.Query))

requestDef := reqDefBuilder.Build()
return requestDef
Expand Down
3 changes: 3 additions & 0 deletions services/apig/v2/model/model_acl_bind_api_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ type AclBindApiInfo struct {

// API请求方法
ReqMethod *AclBindApiInfoReqMethod `json:"req_method,omitempty"`

// API绑定的标签,标签配额默认10条,可以联系技术调整。
Tags *[]string `json:"tags,omitempty"`
}

func (o AclBindApiInfo) String() string {
Expand Down
3 changes: 3 additions & 0 deletions services/apig/v2/model/model_api_auth_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ type ApiAuthBase struct {

// ROMA_APP的类型: - subscription:订阅应用 - integration:集成应用 暂不支持
RomaAppType *string `json:"roma_app_type,omitempty"`

// API绑定的标签,标签配额默认10条,可以联系技术调整。
Tags *[]string `json:"tags,omitempty"`
}

func (o ApiAuthBase) String() string {
Expand Down
3 changes: 3 additions & 0 deletions services/apig/v2/model/model_api_auth_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ type ApiAuthInfo struct {
// ROMA_APP的类型: - subscription:订阅应用 - integration:集成应用 暂不支持
RomaAppType *string `json:"roma_app_type,omitempty"`

// API绑定的标签,标签配额默认10条,可以联系技术调整。
Tags *[]string `json:"tags,omitempty"`

// api授权绑定的环境名称
EnvName *string `json:"env_name,omitempty"`

Expand Down
3 changes: 3 additions & 0 deletions services/apig/v2/model/model_api_for_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ type ApiForSign struct {
// API的请求地址
ReqUri *string `json:"req_uri,omitempty"`

// API绑定的标签,标签配额默认10条,可以联系技术调整。
Tags *[]string `json:"tags,omitempty"`

// API类型
Type *int32 `json:"type,omitempty"`

Expand Down
3 changes: 3 additions & 0 deletions services/apig/v2/model/model_api_for_throttle.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ type ApiForThrottle struct {

// API请求方法
ReqMethod *ApiForThrottleReqMethod `json:"req_method,omitempty"`

// API绑定的标签,标签配额默认10条,可以联系技术调整。
Tags *[]string `json:"tags,omitempty"`
}

func (o ApiForThrottle) String() string {
Expand Down
3 changes: 3 additions & 0 deletions services/apig/v2/model/model_api_outline.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ type ApiOutline struct {

// API的请求地址
ReqUri *string `json:"req_uri,omitempty"`

// API绑定的标签,标签配额默认10条,可以联系技术调整。
Tags *[]string `json:"tags,omitempty"`
}

func (o ApiOutline) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ListApisBindedToAclPolicyV2Request struct {

// API分组编号
GroupId *string `json:"group_id,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisBindedToAclPolicyV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ type ListApisBindedToAppV2Request struct {

// 授权的环境编号
EnvId *string `json:"env_id,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisBindedToAppV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ListApisBindedToRequestThrottlingPolicyV2Request struct {

// API名称
ApiName *string `json:"api_name,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisBindedToRequestThrottlingPolicyV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ListApisBindedToSignatureKeyV2Request struct {

// API分组编号
GroupId *string `json:"group_id,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisBindedToSignatureKeyV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ListApisNotBoundWithSignatureKeyV2Request struct {

// API分组编号
GroupId *string `json:"group_id,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisNotBoundWithSignatureKeyV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ListApisUnbindedToAclPolicyV2Request struct {

// API分组编号
GroupId *string `json:"group_id,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisUnbindedToAclPolicyV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ListApisUnbindedToAppV2Request struct {

// API名称
ApiName *string `json:"api_name,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisUnbindedToAppV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ListApisUnbindedToRequestThrottlingPolicyV2Request struct {

// API名称
ApiName *string `json:"api_name,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisUnbindedToRequestThrottlingPolicyV2Request) String() string {
Expand Down
3 changes: 3 additions & 0 deletions services/apig/v2/model/model_list_apis_v2_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ type ListApisV2Request struct {

// 指定API详情中需要包含的额外返回结果,多个参数之间使用“,”隔开,当brief和其他include参数共同使用时,brief不生效。 目前仅支持brief,include_group,include_group_backend。 brief:默认值,不包含额外信息。 include_group:返回结果中包含api_group_info。 include_group_backend:返回结果中包含backend_api。
ReturnDataMode *string `json:"return_data_mode,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListApisV2Request) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ type ListPluginAttachableApisRequest struct {

// 请求路径
ReqUri *string `json:"req_uri,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListPluginAttachableApisRequest) String() string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ type ListPluginAttachedApisRequest struct {

// 请求路径
ReqUri *string `json:"req_uri,omitempty"`

// API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。
Tags *string `json:"tags,omitempty"`
}

func (o ListPluginAttachedApisRequest) String() string {
Expand Down
8 changes: 7 additions & 1 deletion services/apig/v2/model/model_micro_service_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import (
// MicroServiceCreate 微服务详情。
type MicroServiceCreate struct {

// 微服务类型: - CSE:CSE微服务注册中心 - CCE:CCE云容器引擎(工作负载) - CCE_SERVICE: CCE云容器引擎(Service)
// 微服务类型: - CSE:CSE微服务注册中心 - CCE:CCE云容器引擎(工作负载) - CCE_SERVICE: CCE云容器引擎(Service) - NACOS: Nacos注册中心,nacos_info必填
ServiceType *MicroServiceCreateServiceType `json:"service_type,omitempty"`

CseInfo *MicroServiceInfoCseBase `json:"cse_info,omitempty"`

CceInfo *MicroServiceInfoCceBase `json:"cce_info,omitempty"`

NacosInfo *MicroServiceInfoNacosBase `json:"nacos_info,omitempty"`
}

func (o MicroServiceCreate) String() string {
Expand All @@ -37,6 +39,7 @@ type MicroServiceCreateServiceTypeEnum struct {
CSE MicroServiceCreateServiceType
CCE MicroServiceCreateServiceType
CCE_SERVICE MicroServiceCreateServiceType
NACOS MicroServiceCreateServiceType
}

func GetMicroServiceCreateServiceTypeEnum() MicroServiceCreateServiceTypeEnum {
Expand All @@ -50,6 +53,9 @@ func GetMicroServiceCreateServiceTypeEnum() MicroServiceCreateServiceTypeEnum {
CCE_SERVICE: MicroServiceCreateServiceType{
value: "CCE_SERVICE",
},
NACOS: MicroServiceCreateServiceType{
value: "NACOS",
},
}
}

Expand Down
8 changes: 7 additions & 1 deletion services/apig/v2/model/model_micro_service_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ type MicroServiceInfo struct {
// 实例编号
InstanceId *string `json:"instance_id,omitempty"`

// 微服务类型: - CSE:CSE微服务注册中心 - CCE:CCE云容器引擎(工作负载) - CCE_SERVICE: CCE云容器引擎(Service)
// 微服务类型: - CSE:CSE微服务注册中心 - CCE:CCE云容器引擎(工作负载) - CCE_SERVICE: CCE云容器引擎(Service) - NACOS: nacos引擎,nacos_info必填
ServiceType *MicroServiceInfoServiceType `json:"service_type,omitempty"`

CseInfo *MicroServiceInfoCse `json:"cse_info,omitempty"`

CceInfo *MicroServiceInfoCce `json:"cce_info,omitempty"`

NacosInfo *MicroServiceInfoNacosBase `json:"nacos_info,omitempty"`

// 微服务更新时间
UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`

Expand All @@ -48,6 +50,7 @@ type MicroServiceInfoServiceTypeEnum struct {
CSE MicroServiceInfoServiceType
CCE MicroServiceInfoServiceType
CCE_SERVICE MicroServiceInfoServiceType
NACOS MicroServiceInfoServiceType
}

func GetMicroServiceInfoServiceTypeEnum() MicroServiceInfoServiceTypeEnum {
Expand All @@ -61,6 +64,9 @@ func GetMicroServiceInfoServiceTypeEnum() MicroServiceInfoServiceTypeEnum {
CCE_SERVICE: MicroServiceInfoServiceType{
value: "CCE_SERVICE",
},
NACOS: MicroServiceInfoServiceType{
value: "NACOS",
},
}
}

Expand Down
Loading

0 comments on commit b72f50f

Please sign in to comment.