Skip to content

Commit

Permalink
Auto generated from API Specifications for 20.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pdellaert committed Aug 21, 2021
1 parent 65aef3f commit 320357c
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 7 deletions.
5 changes: 4 additions & 1 deletion vspk/egressqospolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,17 @@ type EgressQOSPolicy struct {
Queue3ForwardingClasses []interface{} `json:"queue3ForwardingClasses,omitempty"`
Queue4AssociatedRateLimiterID string `json:"queue4AssociatedRateLimiterID,omitempty"`
Queue4ForwardingClasses []interface{} `json:"queue4ForwardingClasses,omitempty"`
CustomSpqDepth int `json:"customSpqDepth,omitempty"`
Owner string `json:"owner,omitempty"`
ExternalID string `json:"externalID,omitempty"`
}

// NewEgressQOSPolicy returns a new *EgressQOSPolicy
func NewEgressQOSPolicy() *EgressQOSPolicy {

return &EgressQOSPolicy{}
return &EgressQOSPolicy{
CustomSpqDepth: 0,
}
}

// Identity returns the Identity of the object.
Expand Down
1 change: 1 addition & 0 deletions vspk/ingressaclentrytemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type IngressACLEntryTemplate struct {
WebFilterID string `json:"webFilterID,omitempty"`
WebFilterStatsLoggingEnabled bool `json:"webFilterStatsLoggingEnabled"`
WebFilterType string `json:"webFilterType,omitempty"`
ReputationScore string `json:"reputationScore,omitempty"`
Description string `json:"description,omitempty"`
DestinationPort string `json:"destinationPort,omitempty"`
NetworkEntityType string `json:"networkEntityType,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions vspk/ingressauditaclentrytemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type IngressAuditACLEntryTemplate struct {
WebFilterID string `json:"webFilterID,omitempty"`
WebFilterStatsLoggingEnabled bool `json:"webFilterStatsLoggingEnabled"`
WebFilterType string `json:"webFilterType,omitempty"`
ReputationScore string `json:"reputationScore,omitempty"`
Description string `json:"description,omitempty"`
DestinationPort string `json:"destinationPort,omitempty"`
NetworkEntityType string `json:"networkEntityType,omitempty"`
Expand Down
5 changes: 4 additions & 1 deletion vspk/ingressqospolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,17 @@ type IngressQOSPolicy struct {
Queue3ForwardingClasses []interface{} `json:"queue3ForwardingClasses,omitempty"`
Queue4AssociatedRateLimiterID string `json:"queue4AssociatedRateLimiterID,omitempty"`
Queue4ForwardingClasses []interface{} `json:"queue4ForwardingClasses,omitempty"`
CustomSpqDepth int `json:"customSpqDepth,omitempty"`
Owner string `json:"owner,omitempty"`
ExternalID string `json:"externalID,omitempty"`
}

// NewIngressQOSPolicy returns a new *IngressQOSPolicy
func NewIngressQOSPolicy() *IngressQOSPolicy {

return &IngressQOSPolicy{}
return &IngressQOSPolicy{
CustomSpqDepth: 0,
}
}

// Identity returns the Identity of the object.
Expand Down
2 changes: 1 addition & 1 deletion vspk/me.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ func (o *Me) VCenterVRSConfigs(info *bambou.FetchingInfo) (VCenterVRSConfigsList
return list, err
}

// vrsInfos retrieves the list of child vrsInfos of the Me
// VrsInfos retrieves the list of child VrsInfos of the Me
func (o *Me) VrsInfos(info *bambou.FetchingInfo) (VrsInfosList, *bambou.Error) {

var list VrsInfosList
Expand Down
1 change: 1 addition & 0 deletions vspk/permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type Permission struct {
LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
PermittedAction string `json:"permittedAction,omitempty"`
PermittedEnterpriseDescription string `json:"permittedEnterpriseDescription,omitempty"`
PermittedEnterpriseID string `json:"permittedEnterpriseID,omitempty"`
PermittedEnterpriseName string `json:"permittedEnterpriseName,omitempty"`
PermittedEntityID string `json:"permittedEntityID,omitempty"`
PermittedEntityName string `json:"permittedEntityName,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions vspk/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type Port struct {
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
PortType string `json:"portType,omitempty"`
Routed bool `json:"routed"`
OperationalState string `json:"operationalState,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
IsResilient bool `json:"isResilient"`
Expand All @@ -91,6 +92,7 @@ type Port struct {
func NewPort() *Port {

return &Port{
Routed: false,
AssociatedEthernetSegmentVirtual: false,
}
}
Expand Down
5 changes: 1 addition & 4 deletions vspk/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,14 @@ type Role struct {
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
CspOnly bool `json:"cspOnly"`
Owner string `json:"owner,omitempty"`
ExternalID string `json:"externalID,omitempty"`
}

// NewRole returns a new *Role
func NewRole() *Role {

return &Role{
CspOnly: false,
}
return &Role{}
}

// Identity returns the Identity of the object.
Expand Down
1 change: 1 addition & 0 deletions vspk/roleentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type Roleentry struct {
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EndPointRestName string `json:"endPointRestName,omitempty"`
EndPointType string `json:"endPointType,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
RoleAccessTypeList []interface{} `json:"roleAccessTypeList,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions vspk/virtualfirewallrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type VirtualFirewallRule struct {
WebFilterID string `json:"webFilterID,omitempty"`
WebFilterStatsLoggingEnabled bool `json:"webFilterStatsLoggingEnabled"`
WebFilterType string `json:"webFilterType,omitempty"`
ReputationScore string `json:"reputationScore,omitempty"`
Description string `json:"description,omitempty"`
DestinationPort string `json:"destinationPort,omitempty"`
NetworkEntityType string `json:"networkEntityType,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions vspk/virtualuplink.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type VirtualUplink struct {
ParentID string `json:"parentID,omitempty"`
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
FecEnabled string `json:"fecEnabled,omitempty"`
PeerEndpoint string `json:"peerEndpoint,omitempty"`
PeerGatewayID string `json:"peerGatewayID,omitempty"`
PeerGatewayName string `json:"peerGatewayName,omitempty"`
Expand Down Expand Up @@ -91,6 +92,7 @@ type VirtualUplink struct {
func NewVirtualUplink() *VirtualUplink {

return &VirtualUplink{
FecEnabled: "DISABLED",
EnableNATProbes: false,
UnderlayNAT: true,
UnderlayRouting: true,
Expand Down
2 changes: 2 additions & 0 deletions vspk/vport.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type VPort struct {
DomainServiceLabel string `json:"domainServiceLabel,omitempty"`
DomainVLANID int `json:"domainVLANID,omitempty"`
ZoneID string `json:"zoneID,omitempty"`
Routed bool `json:"routed"`
OperationalState string `json:"operationalState,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
TrunkRole string `json:"trunkRole,omitempty"`
Expand Down Expand Up @@ -124,6 +125,7 @@ func NewVPort() *VPort {
AddressSpoofing: "INHERITED",
FlowLimitEnabled: "INHERITED",
Color: 0,
Routed: false,
OperationalState: "INIT",
SubType: "NONE",
Multicast: "INHERITED",
Expand Down

0 comments on commit 320357c

Please sign in to comment.