Skip to content

Commit

Permalink
feat(apig/channel): add new params support (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lance52259 authored Dec 24, 2024
1 parent 38357cb commit 3881691
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openstack/apigw/dedicated/v2/channels/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ type ChannelOpts struct {
// + 2: Server type.
// + 3: Microservice type.
Type int `json:"type,omitempty"`
// builtin: server type
// + microservice: microservice type
// + reference: reference load balance channel
// If vpc_channel_type is empty, the load balance channel type depends on the value of the type field.
// If vpc_channel_type is non-empty and type is non-empty or non-zero, an error occurs when they are specified.
// If vpc_channel_type is non-empty and type is empty or 0, the value of vpc_channel_type is used to specify the load balance channel type.
VpcChannelType string `json:"vpc_channel_type,omitempty"`
// Dictionary code of the channel.
// The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).
DictCode string `json:"dict_code,omitempty"`
Expand Down Expand Up @@ -74,6 +81,9 @@ type MemberGroup struct {
// Tags of the backend server group.
// This parameter is supported only when the channel type is microservice.
MicroserviceLabels []MicroserviceLabel `json:"microservice_labels,omitempty"`
// ID of the reference load balance channel.
// This parameter is supported only when the VPC channel type is reference (vpc_channel_type=reference).
ReferenceVpcChannelId string `json:"reference_vpc_channel_id,omitempty"`
}

// MicroserviceLabel is an object that represents a specified microservice label.
Expand Down
4 changes: 4 additions & 0 deletions openstack/apigw/dedicated/v2/channels/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ type Channel struct {
// + 2: Server type.
// + 3: Microservice type.
Type int `json:"type"`
// builtin: server type
// + microservice: microservice type
// + reference: reference load balance
VpcChannelType string `json:"vpc_channel_type"`
// Dictionary code of the channel.
// The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).
DictCode string `json:"dict_code"`
Expand Down

0 comments on commit 3881691

Please sign in to comment.