Skip to content

Auto updated assets for go models and clients eng #3028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: eng
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/vmware/alb-sdk

go 1.22.2
go 1.23.2

require github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
12 changes: 12 additions & 0 deletions go/clients/avi_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ type AviClient struct {
Generic *GenericClient
GeoDB *GeoDBClient
Gslb *GslbClient
GslbCRMRuntime *GslbCRMRuntimeClient
GslbGeoDbProfile *GslbGeoDbProfileClient
GslbHSMRuntime *GslbHSMRuntimeClient
GslbInventory *GslbInventoryClient
GslbSMRuntime *GslbSMRuntimeClient
GslbService *GslbServiceClient
GslbServiceInventory *GslbServiceInventoryClient
HTTPPolicySet *HTTPPolicySetClient
Expand All @@ -79,6 +82,7 @@ type AviClient struct {
LabelGroup *LabelGroupClient
LicenseLedgerDetails *LicenseLedgerDetailsClient
LicenseStatus *LicenseStatusClient
LocalWorkerFdsVersion *LocalWorkerFdsVersionClient
LogControllerMapping *LogControllerMappingClient
MemoryBalancerRequest *MemoryBalancerRequestClient
MicroService *MicroServiceClient
Expand All @@ -99,6 +103,7 @@ type AviClient struct {
PoolInventory *PoolInventoryClient
PriorityLabels *PriorityLabelsClient
ProtocolParser *ProtocolParserClient
RetentionPolicy *RetentionPolicyClient
Role *RoleClient
SCPoolServerStateInfo *SCPoolServerStateInfoClient
SCVsStateInfo *SCVsStateInfoClient
Expand Down Expand Up @@ -134,6 +139,7 @@ type AviClient struct {
TestSeDatastoreLevel3 *TestSeDatastoreLevel3Client
TrafficCloneProfile *TrafficCloneProfileClient
TrustedHostProfile *TrustedHostProfileClient
UpgradeProfile *UpgradeProfileClient
UpgradeStatusInfo *UpgradeStatusInfoClient
UpgradeStatusSummary *UpgradeStatusSummaryClient
User *UserClient
Expand Down Expand Up @@ -222,8 +228,11 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
aviClient.Generic = NewGenericClient(aviSession)
aviClient.GeoDB = NewGeoDBClient(aviSession)
aviClient.Gslb = NewGslbClient(aviSession)
aviClient.GslbCRMRuntime = NewGslbCRMRuntimeClient(aviSession)
aviClient.GslbGeoDbProfile = NewGslbGeoDbProfileClient(aviSession)
aviClient.GslbHSMRuntime = NewGslbHSMRuntimeClient(aviSession)
aviClient.GslbInventory = NewGslbInventoryClient(aviSession)
aviClient.GslbSMRuntime = NewGslbSMRuntimeClient(aviSession)
aviClient.GslbService = NewGslbServiceClient(aviSession)
aviClient.GslbServiceInventory = NewGslbServiceInventoryClient(aviSession)
aviClient.HTTPPolicySet = NewHTTPPolicySetClient(aviSession)
Expand All @@ -241,6 +250,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
aviClient.LabelGroup = NewLabelGroupClient(aviSession)
aviClient.LicenseLedgerDetails = NewLicenseLedgerDetailsClient(aviSession)
aviClient.LicenseStatus = NewLicenseStatusClient(aviSession)
aviClient.LocalWorkerFdsVersion = NewLocalWorkerFdsVersionClient(aviSession)
aviClient.LogControllerMapping = NewLogControllerMappingClient(aviSession)
aviClient.MemoryBalancerRequest = NewMemoryBalancerRequestClient(aviSession)
aviClient.MicroService = NewMicroServiceClient(aviSession)
Expand All @@ -261,6 +271,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
aviClient.PoolInventory = NewPoolInventoryClient(aviSession)
aviClient.PriorityLabels = NewPriorityLabelsClient(aviSession)
aviClient.ProtocolParser = NewProtocolParserClient(aviSession)
aviClient.RetentionPolicy = NewRetentionPolicyClient(aviSession)
aviClient.Role = NewRoleClient(aviSession)
aviClient.SCPoolServerStateInfo = NewSCPoolServerStateInfoClient(aviSession)
aviClient.SCVsStateInfo = NewSCVsStateInfoClient(aviSession)
Expand Down Expand Up @@ -296,6 +307,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
aviClient.TestSeDatastoreLevel3 = NewTestSeDatastoreLevel3Client(aviSession)
aviClient.TrafficCloneProfile = NewTrafficCloneProfileClient(aviSession)
aviClient.TrustedHostProfile = NewTrustedHostProfileClient(aviSession)
aviClient.UpgradeProfile = NewUpgradeProfileClient(aviSession)
aviClient.UpgradeStatusInfo = NewUpgradeStatusInfoClient(aviSession)
aviClient.UpgradeStatusSummary = NewUpgradeStatusSummaryClient(aviSession)
aviClient.User = NewUserClient(aviSession)
Expand Down
112 changes: 112 additions & 0 deletions go/clients/gslbcrmruntime_client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Apache License 2.0

package clients

// This file is auto-generated.

import (
"github.com/vmware/alb-sdk/go/models"
"github.com/vmware/alb-sdk/go/session"
)

// GslbCRMRuntimeClient is a client for avi GslbCRMRuntime resource
type GslbCRMRuntimeClient struct {
aviSession *session.AviSession
}

// NewGslbCRMRuntimeClient creates a new client for GslbCRMRuntime resource
func NewGslbCRMRuntimeClient(aviSession *session.AviSession) *GslbCRMRuntimeClient {
return &GslbCRMRuntimeClient{aviSession: aviSession}
}

func (client *GslbCRMRuntimeClient) getAPIPath(uuid string) string {
path := "api/gslbcrmruntime"
if uuid != "" {
path += "/" + uuid
}
return path
}

// GetAll is a collection API to get a list of GslbCRMRuntime objects
func (client *GslbCRMRuntimeClient) GetAll(options ...session.ApiOptionsParams) ([]*models.GslbCRMRuntime, error) {
var plist []*models.GslbCRMRuntime
err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...)
return plist, err
}

// Get an existing GslbCRMRuntime by uuid
func (client *GslbCRMRuntimeClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
var obj *models.GslbCRMRuntime
err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...)
return obj, err
}

// GetByName - Get an existing GslbCRMRuntime by name
func (client *GslbCRMRuntimeClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
var obj *models.GslbCRMRuntime
err := client.aviSession.GetObjectByName("gslbcrmruntime", name, &obj, options...)
return obj, err
}

// GetObject - Get an existing GslbCRMRuntime by filters like name, cloud, tenant
// Api creates GslbCRMRuntime object with every call.
func (client *GslbCRMRuntimeClient) GetObject(options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
var obj *models.GslbCRMRuntime
newOptions := make([]session.ApiOptionsParams, len(options)+1)
for i, p := range options {
newOptions[i] = p
}
newOptions[len(options)] = session.SetResult(&obj)
err := client.aviSession.GetObject("gslbcrmruntime", newOptions...)
return obj, err
}

// Create a new GslbCRMRuntime object
func (client *GslbCRMRuntimeClient) Create(obj *models.GslbCRMRuntime, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
var robj *models.GslbCRMRuntime
err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...)
return robj, err
}

// Update an existing GslbCRMRuntime object
func (client *GslbCRMRuntimeClient) Update(obj *models.GslbCRMRuntime, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
var robj *models.GslbCRMRuntime
path := client.getAPIPath(*obj.UUID)
err := client.aviSession.Put(path, obj, &robj, options...)
return robj, err
}

// Patch an existing GslbCRMRuntime object specified using uuid
// patchOp: Patch operation - add, replace, or delete
// patch: Patch payload should be compatible with the models.GslbCRMRuntime
// or it should be json compatible of form map[string]interface{}
func (client *GslbCRMRuntimeClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
var robj *models.GslbCRMRuntime
path := client.getAPIPath(uuid)
err := client.aviSession.Patch(path, patch, patchOp, &robj, options...)
return robj, err
}

// Delete an existing GslbCRMRuntime object with a given UUID
func (client *GslbCRMRuntimeClient) Delete(uuid string, options ...session.ApiOptionsParams) error {
if len(options) == 0 {
return client.aviSession.Delete(client.getAPIPath(uuid))
} else {
return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...)
}
}

// DeleteByName - Delete an existing GslbCRMRuntime object with a given name
func (client *GslbCRMRuntimeClient) DeleteByName(name string, options ...session.ApiOptionsParams) error {
res, err := client.GetByName(name, options...)
if err != nil {
return err
}
return client.Delete(*res.UUID, options...)
}

// GetAviSession
func (client *GslbCRMRuntimeClient) GetAviSession() *session.AviSession {
return client.aviSession
}
112 changes: 112 additions & 0 deletions go/clients/gslbhsmruntime_client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Apache License 2.0

package clients

// This file is auto-generated.

import (
"github.com/vmware/alb-sdk/go/models"
"github.com/vmware/alb-sdk/go/session"
)

// GslbHSMRuntimeClient is a client for avi GslbHSMRuntime resource
type GslbHSMRuntimeClient struct {
aviSession *session.AviSession
}

// NewGslbHSMRuntimeClient creates a new client for GslbHSMRuntime resource
func NewGslbHSMRuntimeClient(aviSession *session.AviSession) *GslbHSMRuntimeClient {
return &GslbHSMRuntimeClient{aviSession: aviSession}
}

func (client *GslbHSMRuntimeClient) getAPIPath(uuid string) string {
path := "api/gslbhsmruntime"
if uuid != "" {
path += "/" + uuid
}
return path
}

// GetAll is a collection API to get a list of GslbHSMRuntime objects
func (client *GslbHSMRuntimeClient) GetAll(options ...session.ApiOptionsParams) ([]*models.GslbHSMRuntime, error) {
var plist []*models.GslbHSMRuntime
err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...)
return plist, err
}

// Get an existing GslbHSMRuntime by uuid
func (client *GslbHSMRuntimeClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
var obj *models.GslbHSMRuntime
err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...)
return obj, err
}

// GetByName - Get an existing GslbHSMRuntime by name
func (client *GslbHSMRuntimeClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
var obj *models.GslbHSMRuntime
err := client.aviSession.GetObjectByName("gslbhsmruntime", name, &obj, options...)
return obj, err
}

// GetObject - Get an existing GslbHSMRuntime by filters like name, cloud, tenant
// Api creates GslbHSMRuntime object with every call.
func (client *GslbHSMRuntimeClient) GetObject(options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
var obj *models.GslbHSMRuntime
newOptions := make([]session.ApiOptionsParams, len(options)+1)
for i, p := range options {
newOptions[i] = p
}
newOptions[len(options)] = session.SetResult(&obj)
err := client.aviSession.GetObject("gslbhsmruntime", newOptions...)
return obj, err
}

// Create a new GslbHSMRuntime object
func (client *GslbHSMRuntimeClient) Create(obj *models.GslbHSMRuntime, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
var robj *models.GslbHSMRuntime
err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...)
return robj, err
}

// Update an existing GslbHSMRuntime object
func (client *GslbHSMRuntimeClient) Update(obj *models.GslbHSMRuntime, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
var robj *models.GslbHSMRuntime
path := client.getAPIPath(*obj.UUID)
err := client.aviSession.Put(path, obj, &robj, options...)
return robj, err
}

// Patch an existing GslbHSMRuntime object specified using uuid
// patchOp: Patch operation - add, replace, or delete
// patch: Patch payload should be compatible with the models.GslbHSMRuntime
// or it should be json compatible of form map[string]interface{}
func (client *GslbHSMRuntimeClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
var robj *models.GslbHSMRuntime
path := client.getAPIPath(uuid)
err := client.aviSession.Patch(path, patch, patchOp, &robj, options...)
return robj, err
}

// Delete an existing GslbHSMRuntime object with a given UUID
func (client *GslbHSMRuntimeClient) Delete(uuid string, options ...session.ApiOptionsParams) error {
if len(options) == 0 {
return client.aviSession.Delete(client.getAPIPath(uuid))
} else {
return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...)
}
}

// DeleteByName - Delete an existing GslbHSMRuntime object with a given name
func (client *GslbHSMRuntimeClient) DeleteByName(name string, options ...session.ApiOptionsParams) error {
res, err := client.GetByName(name, options...)
if err != nil {
return err
}
return client.Delete(*res.UUID, options...)
}

// GetAviSession
func (client *GslbHSMRuntimeClient) GetAviSession() *session.AviSession {
return client.aviSession
}
Loading