Skip to content

Commit

Permalink
feat(vpcep): the VPC endpoint service resource supports new fields (#696
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ruwenqiang123 authored Oct 28, 2024
1 parent eeb6712 commit ed476dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openstack/vpcep/v1/services/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ type CreateOpts struct {
IpVersion string `json:"ip_version,omitempty"`
// Specifies whether the VPC endpoint policy is enabled.
EnablePolicy *bool `json:"enable_policy,omitempty"`
// Specifies the network ID of any subnet within the VPC used to create the VPC endpoint service
SnatNetworkId string `json:"snat_network_id,omitempty"`
// Specifies the IPv4 address or domain name of the server in the interface type VLAN scenario
IpAddress string `json:"ip,omitempty"`
// Specifies the dedicated cluster ID associated with the VPC endpoint service
PoolId string `json:"pool_id,omitempty"`
}

// PortOpts contains the port mappings opened to the VPC endpoint service.
Expand Down Expand Up @@ -101,6 +107,8 @@ type UpdateOpts struct {
Description *string `json:"description,omitempty"`
// Specifies whether the client IP address and port number or marker_id information is transmitted to the server.
TCPProxy string `json:"tcp_proxy,omitempty"`
// Specifies the IPv4 address or domain name of the server in the interface type VLAN scenario
IpAddress string `json:"ip,omitempty"`
}

// ToServiceUpdateMap builds an update body based on UpdateOpts.
Expand Down
6 changes: 6 additions & 0 deletions openstack/vpcep/v1/services/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ type Service struct {
PublicBorderGroup string `json:"public_border_group"`
// the number of VPC endpoints that are in the Creating or Accepted status.
ConnectionCount int `json:"connection_count"`
// the network ID of any subnet within the VPC used to create the VPC endpoint service
SnatNetworkId string `json:"snat_network_id"`
// the IPv4 address or domain name of the server in the interface type VLAN scenario
IpAddress string `json:"ip"`
// the dedicated cluster ID associated with the VPC endpoint service
PoolId string `json:"pool_id"`
}

// PortMapping contains the port mappings opened to the VPC endpoint service
Expand Down

0 comments on commit ed476dc

Please sign in to comment.