Skip to content

Commit

Permalink
Auto generated from API Specifications for 20.10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pdellaert committed Dec 30, 2021
1 parent 8c08fce commit 1cef1f1
Show file tree
Hide file tree
Showing 12 changed files with 515 additions and 53 deletions.
28 changes: 28 additions & 0 deletions vspk/enterprise.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,34 @@ func (o *Enterprise) PATNATPools(info *bambou.FetchingInfo) (PATNATPoolsList, *b
return list, err
}

// ScheduledTestSuites retrieves the list of child ScheduledTestSuites of the Enterprise
func (o *Enterprise) ScheduledTestSuites(info *bambou.FetchingInfo) (ScheduledTestSuitesList, *bambou.Error) {

var list ScheduledTestSuitesList
err := bambou.CurrentSession().FetchChildren(o, ScheduledTestSuiteIdentity, &list, info)
return list, err
}

// CreateScheduledTestSuite creates a new child ScheduledTestSuite under the Enterprise
func (o *Enterprise) CreateScheduledTestSuite(child *ScheduledTestSuite) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}

// ICMPEchoTestDefinitions retrieves the list of child ICMPEchoTestDefinitions of the Enterprise
func (o *Enterprise) ICMPEchoTestDefinitions(info *bambou.FetchingInfo) (ICMPEchoTestDefinitionsList, *bambou.Error) {

var list ICMPEchoTestDefinitionsList
err := bambou.CurrentSession().FetchChildren(o, ICMPEchoTestDefinitionIdentity, &list, info)
return list, err
}

// CreateICMPEchoTestDefinition creates a new child ICMPEchoTestDefinition under the Enterprise
func (o *Enterprise) CreateICMPEchoTestDefinition(child *ICMPEchoTestDefinition) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}

// LDAPConfigurations retrieves the list of child LDAPConfigurations of the Enterprise
func (o *Enterprise) LDAPConfigurations(info *bambou.FetchingInfo) (LDAPConfigurationsList, *bambou.Error) {

Expand Down
70 changes: 36 additions & 34 deletions vspk/enterpriseprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,46 +55,48 @@ type EnterpriseProfilesParent interface {

// EnterpriseProfile represents the model of a enterpriseprofile
type EnterpriseProfile struct {
ID string `json:"ID,omitempty"`
ParentID string `json:"parentID,omitempty"`
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
BGPEnabled bool `json:"BGPEnabled"`
DHCPLeaseInterval int `json:"DHCPLeaseInterval,omitempty"`
VNFManagementEnabled bool `json:"VNFManagementEnabled"`
Name string `json:"name,omitempty"`
LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`
LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
WebFilterEnabled bool `json:"webFilterEnabled"`
ReceiveMultiCastListID string `json:"receiveMultiCastListID,omitempty"`
SendMultiCastListID string `json:"sendMultiCastListID,omitempty"`
Description string `json:"description,omitempty"`
ThreatPreventionManagementEnabled bool `json:"threatPreventionManagementEnabled"`
AllowAdvancedQOSConfiguration bool `json:"allowAdvancedQOSConfiguration"`
AllowGatewayManagement bool `json:"allowGatewayManagement"`
AllowTrustedForwardingClass bool `json:"allowTrustedForwardingClass"`
AllowedForwardingClasses []interface{} `json:"allowedForwardingClasses,omitempty"`
FloatingIPsQuota int `json:"floatingIPsQuota,omitempty"`
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EnableApplicationPerformanceManagement bool `json:"enableApplicationPerformanceManagement"`
EncryptionManagementMode string `json:"encryptionManagementMode,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
ForwardingClass []interface{} `json:"forwardingClass,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
Owner string `json:"owner,omitempty"`
ExternalID string `json:"externalID,omitempty"`
ID string `json:"ID,omitempty"`
ParentID string `json:"parentID,omitempty"`
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
BGPEnabled bool `json:"BGPEnabled"`
DHCPLeaseInterval int `json:"DHCPLeaseInterval,omitempty"`
VNFManagementEnabled bool `json:"VNFManagementEnabled"`
Name string `json:"name,omitempty"`
LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`
LastUpdatedDate string `json:"lastUpdatedDate,omitempty"`
WebFilterEnabled bool `json:"webFilterEnabled"`
ReceiveMultiCastListID string `json:"receiveMultiCastListID,omitempty"`
SendMultiCastListID string `json:"sendMultiCastListID,omitempty"`
Description string `json:"description,omitempty"`
ThreatPreventionManagementEnabled bool `json:"threatPreventionManagementEnabled"`
AllowAdvancedQOSConfiguration bool `json:"allowAdvancedQOSConfiguration"`
AllowGatewayManagement bool `json:"allowGatewayManagement"`
AllowTrustedForwardingClass bool `json:"allowTrustedForwardingClass"`
AllowedForwardingClasses []interface{} `json:"allowedForwardingClasses,omitempty"`
FloatingIPsQuota int `json:"floatingIPsQuota,omitempty"`
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EnableApplicationPerformanceManagement bool `json:"enableApplicationPerformanceManagement"`
EnableOAMConnectivityStatisticsCollection bool `json:"enableOAMConnectivityStatisticsCollection"`
EncryptionManagementMode string `json:"encryptionManagementMode,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
ForwardingClass []interface{} `json:"forwardingClass,omitempty"`
CreationDate string `json:"creationDate,omitempty"`
Owner string `json:"owner,omitempty"`
ExternalID string `json:"externalID,omitempty"`
}

// NewEnterpriseProfile returns a new *EnterpriseProfile
func NewEnterpriseProfile() *EnterpriseProfile {

return &EnterpriseProfile{
DHCPLeaseInterval: 24,
VNFManagementEnabled: false,
WebFilterEnabled: false,
ThreatPreventionManagementEnabled: false,
FloatingIPsQuota: 100,
EnableApplicationPerformanceManagement: false,
DHCPLeaseInterval: 24,
VNFManagementEnabled: false,
WebFilterEnabled: false,
ThreatPreventionManagementEnabled: false,
FloatingIPsQuota: 100,
EnableApplicationPerformanceManagement: false,
EnableOAMConnectivityStatisticsCollection: false,
}
}

Expand Down
122 changes: 122 additions & 0 deletions vspk/icmpechotestdefinition.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/*
Copyright (c) 2015, Alcatel-Lucent Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package vspk

import "github.com/nuagenetworks/go-bambou/bambou"

// ICMPEchoTestDefinitionIdentity represents the Identity of the object
var ICMPEchoTestDefinitionIdentity = bambou.Identity{
Name: "icmpechotestdefinition",
Category: "icmpechotestdefinitions",
}

// ICMPEchoTestDefinitionsList represents a list of ICMPEchoTestDefinitions
type ICMPEchoTestDefinitionsList []*ICMPEchoTestDefinition

// ICMPEchoTestDefinitionsAncestor is the interface that an ancestor of a ICMPEchoTestDefinition must implement.
// An Ancestor is defined as an entity that has ICMPEchoTestDefinition as a descendant.
// An Ancestor can get a list of its child ICMPEchoTestDefinitions, but not necessarily create one.
type ICMPEchoTestDefinitionsAncestor interface {
ICMPEchoTestDefinitions(*bambou.FetchingInfo) (ICMPEchoTestDefinitionsList, *bambou.Error)
}

// ICMPEchoTestDefinitionsParent is the interface that a parent of a ICMPEchoTestDefinition must implement.
// A Parent is defined as an entity that has ICMPEchoTestDefinition as a child.
// A Parent is an Ancestor which can create a ICMPEchoTestDefinition.
type ICMPEchoTestDefinitionsParent interface {
ICMPEchoTestDefinitionsAncestor
CreateICMPEchoTestDefinition(*ICMPEchoTestDefinition) *bambou.Error
}

// ICMPEchoTestDefinition represents the model of a icmpechotestdefinition
type ICMPEchoTestDefinition struct {
ID string `json:"ID,omitempty"`
ParentID string `json:"parentID,omitempty"`
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
PacketCount int `json:"packetCount,omitempty"`
PacketInterval int `json:"packetInterval,omitempty"`
PacketSize int `json:"packetSize,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
ThresholdAverageRoundTripTime float64 `json:"thresholdAverageRoundTripTime,omitempty"`
ThresholdPacketLoss float64 `json:"thresholdPacketLoss,omitempty"`
Timeout int `json:"timeout,omitempty"`
SlaMonitoring bool `json:"slaMonitoring"`
DonotFragment bool `json:"donotFragment"`
Tos int `json:"tos,omitempty"`
}

// NewICMPEchoTestDefinition returns a new *ICMPEchoTestDefinition
func NewICMPEchoTestDefinition() *ICMPEchoTestDefinition {

return &ICMPEchoTestDefinition{
PacketCount: 5,
PacketInterval: 1000,
PacketSize: 64,
Timeout: 60,
SlaMonitoring: false,
DonotFragment: false,
}
}

// Identity returns the Identity of the object.
func (o *ICMPEchoTestDefinition) Identity() bambou.Identity {

return ICMPEchoTestDefinitionIdentity
}

// Identifier returns the value of the object's unique identifier.
func (o *ICMPEchoTestDefinition) Identifier() string {

return o.ID
}

// SetIdentifier sets the value of the object's unique identifier.
func (o *ICMPEchoTestDefinition) SetIdentifier(ID string) {

o.ID = ID
}

// Fetch retrieves the ICMPEchoTestDefinition from the server
func (o *ICMPEchoTestDefinition) Fetch() *bambou.Error {

return bambou.CurrentSession().FetchEntity(o)
}

// Save saves the ICMPEchoTestDefinition into the server
func (o *ICMPEchoTestDefinition) Save() *bambou.Error {

return bambou.CurrentSession().SaveEntity(o)
}

// Delete deletes the ICMPEchoTestDefinition from the server
func (o *ICMPEchoTestDefinition) Delete() *bambou.Error {

return bambou.CurrentSession().DeleteEntity(o)
}
1 change: 1 addition & 0 deletions vspk/routingpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type RoutingPolicy struct {
EmbeddedMetadata []interface{} `json:"embeddedMetadata,omitempty"`
EntityScope string `json:"entityScope,omitempty"`
PolicyDefinition string `json:"policyDefinition,omitempty"`
PolicyUniqueID int `json:"policyUniqueID,omitempty"`
ContentType string `json:"contentType,omitempty"`
RoutingProtocol string `json:"routingProtocol,omitempty"`
CustomerID int `json:"CustomerID,omitempty"`
Expand Down
135 changes: 135 additions & 0 deletions vspk/scheduledtestsuite.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
Copyright (c) 2015, Alcatel-Lucent Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package vspk

import "github.com/nuagenetworks/go-bambou/bambou"

// ScheduledTestSuiteIdentity represents the Identity of the object
var ScheduledTestSuiteIdentity = bambou.Identity{
Name: "scheduledtestsuite",
Category: "scheduledtestsuites",
}

// ScheduledTestSuitesList represents a list of ScheduledTestSuites
type ScheduledTestSuitesList []*ScheduledTestSuite

// ScheduledTestSuitesAncestor is the interface that an ancestor of a ScheduledTestSuite must implement.
// An Ancestor is defined as an entity that has ScheduledTestSuite as a descendant.
// An Ancestor can get a list of its child ScheduledTestSuites, but not necessarily create one.
type ScheduledTestSuitesAncestor interface {
ScheduledTestSuites(*bambou.FetchingInfo) (ScheduledTestSuitesList, *bambou.Error)
}

// ScheduledTestSuitesParent is the interface that a parent of a ScheduledTestSuite must implement.
// A Parent is defined as an entity that has ScheduledTestSuite as a child.
// A Parent is an Ancestor which can create a ScheduledTestSuite.
type ScheduledTestSuitesParent interface {
ScheduledTestSuitesAncestor
CreateScheduledTestSuite(*ScheduledTestSuite) *bambou.Error
}

// ScheduledTestSuite represents the model of a scheduledtestsuite
type ScheduledTestSuite struct {
ID string `json:"ID,omitempty"`
ParentID string `json:"parentID,omitempty"`
ParentType string `json:"parentType,omitempty"`
Owner string `json:"owner,omitempty"`
Name string `json:"name,omitempty"`
ScheduleInterval int `json:"scheduleInterval,omitempty"`
ScheduleIntervalUnits string `json:"scheduleIntervalUnits,omitempty"`
Description string `json:"description,omitempty"`
EndDateTime float64 `json:"endDateTime,omitempty"`
StartDateTime float64 `json:"startDateTime,omitempty"`
}

// NewScheduledTestSuite returns a new *ScheduledTestSuite
func NewScheduledTestSuite() *ScheduledTestSuite {

return &ScheduledTestSuite{
ScheduleInterval: 1,
ScheduleIntervalUnits: "DAYS",
}
}

// Identity returns the Identity of the object.
func (o *ScheduledTestSuite) Identity() bambou.Identity {

return ScheduledTestSuiteIdentity
}

// Identifier returns the value of the object's unique identifier.
func (o *ScheduledTestSuite) Identifier() string {

return o.ID
}

// SetIdentifier sets the value of the object's unique identifier.
func (o *ScheduledTestSuite) SetIdentifier(ID string) {

o.ID = ID
}

// Fetch retrieves the ScheduledTestSuite from the server
func (o *ScheduledTestSuite) Fetch() *bambou.Error {

return bambou.CurrentSession().FetchEntity(o)
}

// Save saves the ScheduledTestSuite into the server
func (o *ScheduledTestSuite) Save() *bambou.Error {

return bambou.CurrentSession().SaveEntity(o)
}

// Delete deletes the ScheduledTestSuite from the server
func (o *ScheduledTestSuite) Delete() *bambou.Error {

return bambou.CurrentSession().DeleteEntity(o)
}

// Scheduledtestsuiteruns retrieves the list of child Scheduledtestsuiteruns of the ScheduledTestSuite
func (o *ScheduledTestSuite) Scheduledtestsuiteruns(info *bambou.FetchingInfo) (ScheduledtestsuiterunsList, *bambou.Error) {

var list ScheduledtestsuiterunsList
err := bambou.CurrentSession().FetchChildren(o, ScheduledtestsuiterunIdentity, &list, info)
return list, err
}

// Tests retrieves the list of child Tests of the ScheduledTestSuite
func (o *ScheduledTestSuite) Tests(info *bambou.FetchingInfo) (TestsList, *bambou.Error) {

var list TestsList
err := bambou.CurrentSession().FetchChildren(o, TestIdentity, &list, info)
return list, err
}

// CreateTest creates a new child Test under the ScheduledTestSuite
func (o *ScheduledTestSuite) CreateTest(child *Test) *bambou.Error {

return bambou.CurrentSession().CreateChild(o, child)
}
Loading

0 comments on commit 1cef1f1

Please sign in to comment.