Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5851c1

Browse files
committed
neutron: add more quotas members
1 parent 992e8b7 commit b5851c1

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

openstack/networking/v2/extensions/quotas/requests.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ type UpdateOptsBuilder interface {
2828

2929
// UpdateOpts represents options used to update the Networking Quotas.
3030
type UpdateOpts struct {
31+
// BGPVPN represents a number of BGP VPNs. A "-1" value means no limit.
32+
BGPVPN *int `json:"bgpvpn,omitempty"`
33+
34+
// FirewallGroup represents a number of firewall groups. A "-1" value means no limit.
35+
FirewallGroup *int `json:"firewall_group,omitempty"`
36+
37+
// FirewallPolicy represents a number of firewall policies. A "-1" value means no limit.
38+
FirewallPolicy *int `json:"firewall_policy,omitempty"`
39+
40+
// FirewallRule represents a number of firewall rules. A "-1" value means no limit.
41+
FirewallRule *int `json:"firewall_rule,omitempty"`
42+
3143
// FloatingIP represents a number of floating IPs. A "-1" value means no limit.
3244
FloatingIP *int `json:"floatingip,omitempty"`
3345

openstack/networking/v2/extensions/quotas/results.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ type UpdateResult struct {
5454

5555
// Quota contains Networking quotas for a project.
5656
type Quota struct {
57+
// BGPVPN represents a number of BGP VPNs. A "-1" value means no limit.
58+
BGPVPN int `json:"bgpvpn"`
59+
60+
// FirewallGroup represents a number of firewall groups. A "-1" value means no limit.
61+
FirewallGroup int `json:"firewall_group"`
62+
63+
// FirewallPolicy represents a number of firewall policies. A "-1" value means no limit.
64+
FirewallPolicy int `json:"firewall_policy"`
65+
66+
// FirewallRule represents a number of firewall rules. A "-1" value means no limit.
67+
FirewallRule int `json:"firewall_rule"`
68+
5769
// FloatingIP represents a number of floating IPs. A "-1" value means no limit.
5870
FloatingIP int `json:"floatingip"`
5971

@@ -88,6 +100,18 @@ type Quota struct {
88100
// QuotaDetailSet represents details of both operational limits of Networking resources for a project
89101
// and the current usage of those resources.
90102
type QuotaDetailSet struct {
103+
// BGPVPN represents a number of BGP VPNs. A "-1" value means no limit.
104+
BGPVPN QuotaDetail `json:"bgpvpn"`
105+
106+
// FirewallGroup represents a number of firewall groups. A "-1" value means no limit.
107+
FirewallGroup QuotaDetail `json:"firewall_group"`
108+
109+
// FirewallPolicy represents a number of firewall policies. A "-1" value means no limit.
110+
FirewallPolicy QuotaDetail `json:"firewall_policy"`
111+
112+
// FirewallRule represents a number of firewall rules. A "-1" value means no limit.
113+
FirewallRule QuotaDetail `json:"firewall_rule"`
114+
91115
// FloatingIP represents a number of floating IPs. A "-1" value means no limit.
92116
FloatingIP QuotaDetail `json:"floatingip"`
93117

0 commit comments

Comments
 (0)