Skip to content

Commit

Permalink
feat(dms): support port protocols for kafka instance (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
saf3dfsa authored Dec 13, 2024
1 parent a2c6b78 commit 0fa4108
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions openstack/dms/v2/kafka/instances/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ type Instance struct {
Tags []tags.ResourceTag `json:"tags"`
CertReplaced bool `json:"cert_replaced"`
SslTwoWayEnable bool `json:"ssl_two_way_enable"`
PortProtocols PortProtocols `json:"port_protocols"`
}

type Task struct {
Expand All @@ -115,6 +116,27 @@ type Task struct {
CreatedAt string `json:"created_at"`
}

type PortProtocols struct {
PrivatePlainEnable bool `json:"private_plain_enable"`
PrivatePlainAddress string `json:"private_plain_address"`
PrivatePlainDomainName string `json:"private_plain_domain_name"`
PrivateSaslSslEnable bool `json:"private_sasl_ssl_enable"`
PrivateSaslSslAddress string `json:"private_sasl_ssl_address"`
PrivateSaslSslDomainName string `json:"private_sasl_ssl_domain_name"`
PrivateSaslPlaintextEnable bool `json:"private_sasl_plaintext_enable"`
PrivateSaslPlaintextAddress string `json:"private_sasl_plaintext_address"`
PrivateSaslPlaintextDomainName string `json:"private_sasl_plaintext_domain_name"`
PublicPlainEnable bool `json:"public_plain_enable"`
PublicPlainAddress string `json:"public_plain_address"`
PublicPlainDomainName string `json:"public_plain_domain_name"`
PublicSaslSslEnable bool `json:"public_sasl_ssl_enable"`
PublicSaslSslAddress string `json:"public_sasl_ssl_address"`
PublicSaslSslDomainName string `json:"public_sasl_ssl_domain_name"`
PublicSaslPlaintextEnable bool `json:"public_sasl_plaintext_enable"`
PublicSaslPlaintextAddress string `json:"public_sasl_plaintext_address"`
PublicSaslPlaintextDomainName string `json:"public_sasl_plaintext_domain_name"`
}

// UpdateResult is a struct from which can get the result of update method
type UpdateResult struct {
golangsdk.Result
Expand Down

0 comments on commit 0fa4108

Please sign in to comment.