Skip to content

Commit 3997edb

Browse files
committed
Updated assets for go models and clients
Signed-off-by: gurunath-avi <[email protected]>
1 parent 911aef4 commit 3997edb

File tree

1,283 files changed

+10918
-8823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,283 files changed

+10918
-8823
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/vmware/alb-sdk
22

3-
go 1.22.2
3+
go 1.23.2
44

55
require github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b

go/clients/avi_client.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ type AviClient struct {
6060
Generic *GenericClient
6161
GeoDB *GeoDBClient
6262
Gslb *GslbClient
63+
GslbCRMRuntime *GslbCRMRuntimeClient
6364
GslbGeoDbProfile *GslbGeoDbProfileClient
65+
GslbHSMRuntime *GslbHSMRuntimeClient
6466
GslbInventory *GslbInventoryClient
67+
GslbSMRuntime *GslbSMRuntimeClient
6568
GslbService *GslbServiceClient
6669
GslbServiceInventory *GslbServiceInventoryClient
6770
HTTPPolicySet *HTTPPolicySetClient
@@ -79,6 +82,7 @@ type AviClient struct {
7982
LabelGroup *LabelGroupClient
8083
LicenseLedgerDetails *LicenseLedgerDetailsClient
8184
LicenseStatus *LicenseStatusClient
85+
LocalWorkerFdsVersion *LocalWorkerFdsVersionClient
8286
LogControllerMapping *LogControllerMappingClient
8387
MemoryBalancerRequest *MemoryBalancerRequestClient
8488
MicroService *MicroServiceClient
@@ -99,6 +103,7 @@ type AviClient struct {
99103
PoolInventory *PoolInventoryClient
100104
PriorityLabels *PriorityLabelsClient
101105
ProtocolParser *ProtocolParserClient
106+
RetentionPolicy *RetentionPolicyClient
102107
Role *RoleClient
103108
SCPoolServerStateInfo *SCPoolServerStateInfoClient
104109
SCVsStateInfo *SCVsStateInfoClient
@@ -134,6 +139,7 @@ type AviClient struct {
134139
TestSeDatastoreLevel3 *TestSeDatastoreLevel3Client
135140
TrafficCloneProfile *TrafficCloneProfileClient
136141
TrustedHostProfile *TrustedHostProfileClient
142+
UpgradeProfile *UpgradeProfileClient
137143
UpgradeStatusInfo *UpgradeStatusInfoClient
138144
UpgradeStatusSummary *UpgradeStatusSummaryClient
139145
User *UserClient
@@ -222,8 +228,11 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
222228
aviClient.Generic = NewGenericClient(aviSession)
223229
aviClient.GeoDB = NewGeoDBClient(aviSession)
224230
aviClient.Gslb = NewGslbClient(aviSession)
231+
aviClient.GslbCRMRuntime = NewGslbCRMRuntimeClient(aviSession)
225232
aviClient.GslbGeoDbProfile = NewGslbGeoDbProfileClient(aviSession)
233+
aviClient.GslbHSMRuntime = NewGslbHSMRuntimeClient(aviSession)
226234
aviClient.GslbInventory = NewGslbInventoryClient(aviSession)
235+
aviClient.GslbSMRuntime = NewGslbSMRuntimeClient(aviSession)
227236
aviClient.GslbService = NewGslbServiceClient(aviSession)
228237
aviClient.GslbServiceInventory = NewGslbServiceInventoryClient(aviSession)
229238
aviClient.HTTPPolicySet = NewHTTPPolicySetClient(aviSession)
@@ -241,6 +250,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
241250
aviClient.LabelGroup = NewLabelGroupClient(aviSession)
242251
aviClient.LicenseLedgerDetails = NewLicenseLedgerDetailsClient(aviSession)
243252
aviClient.LicenseStatus = NewLicenseStatusClient(aviSession)
253+
aviClient.LocalWorkerFdsVersion = NewLocalWorkerFdsVersionClient(aviSession)
244254
aviClient.LogControllerMapping = NewLogControllerMappingClient(aviSession)
245255
aviClient.MemoryBalancerRequest = NewMemoryBalancerRequestClient(aviSession)
246256
aviClient.MicroService = NewMicroServiceClient(aviSession)
@@ -261,6 +271,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
261271
aviClient.PoolInventory = NewPoolInventoryClient(aviSession)
262272
aviClient.PriorityLabels = NewPriorityLabelsClient(aviSession)
263273
aviClient.ProtocolParser = NewProtocolParserClient(aviSession)
274+
aviClient.RetentionPolicy = NewRetentionPolicyClient(aviSession)
264275
aviClient.Role = NewRoleClient(aviSession)
265276
aviClient.SCPoolServerStateInfo = NewSCPoolServerStateInfoClient(aviSession)
266277
aviClient.SCVsStateInfo = NewSCVsStateInfoClient(aviSession)
@@ -296,6 +307,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess
296307
aviClient.TestSeDatastoreLevel3 = NewTestSeDatastoreLevel3Client(aviSession)
297308
aviClient.TrafficCloneProfile = NewTrafficCloneProfileClient(aviSession)
298309
aviClient.TrustedHostProfile = NewTrustedHostProfileClient(aviSession)
310+
aviClient.UpgradeProfile = NewUpgradeProfileClient(aviSession)
299311
aviClient.UpgradeStatusInfo = NewUpgradeStatusInfoClient(aviSession)
300312
aviClient.UpgradeStatusSummary = NewUpgradeStatusSummaryClient(aviSession)
301313
aviClient.User = NewUserClient(aviSession)
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
// Copyright 2019 VMware, Inc.
2+
// SPDX-License-Identifier: Apache License 2.0
3+
4+
package clients
5+
6+
// This file is auto-generated.
7+
8+
import (
9+
"github.com/vmware/alb-sdk/go/models"
10+
"github.com/vmware/alb-sdk/go/session"
11+
)
12+
13+
// GslbCRMRuntimeClient is a client for avi GslbCRMRuntime resource
14+
type GslbCRMRuntimeClient struct {
15+
aviSession *session.AviSession
16+
}
17+
18+
// NewGslbCRMRuntimeClient creates a new client for GslbCRMRuntime resource
19+
func NewGslbCRMRuntimeClient(aviSession *session.AviSession) *GslbCRMRuntimeClient {
20+
return &GslbCRMRuntimeClient{aviSession: aviSession}
21+
}
22+
23+
func (client *GslbCRMRuntimeClient) getAPIPath(uuid string) string {
24+
path := "api/gslbcrmruntime"
25+
if uuid != "" {
26+
path += "/" + uuid
27+
}
28+
return path
29+
}
30+
31+
// GetAll is a collection API to get a list of GslbCRMRuntime objects
32+
func (client *GslbCRMRuntimeClient) GetAll(options ...session.ApiOptionsParams) ([]*models.GslbCRMRuntime, error) {
33+
var plist []*models.GslbCRMRuntime
34+
err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...)
35+
return plist, err
36+
}
37+
38+
// Get an existing GslbCRMRuntime by uuid
39+
func (client *GslbCRMRuntimeClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
40+
var obj *models.GslbCRMRuntime
41+
err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...)
42+
return obj, err
43+
}
44+
45+
// GetByName - Get an existing GslbCRMRuntime by name
46+
func (client *GslbCRMRuntimeClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
47+
var obj *models.GslbCRMRuntime
48+
err := client.aviSession.GetObjectByName("gslbcrmruntime", name, &obj, options...)
49+
return obj, err
50+
}
51+
52+
// GetObject - Get an existing GslbCRMRuntime by filters like name, cloud, tenant
53+
// Api creates GslbCRMRuntime object with every call.
54+
func (client *GslbCRMRuntimeClient) GetObject(options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
55+
var obj *models.GslbCRMRuntime
56+
newOptions := make([]session.ApiOptionsParams, len(options)+1)
57+
for i, p := range options {
58+
newOptions[i] = p
59+
}
60+
newOptions[len(options)] = session.SetResult(&obj)
61+
err := client.aviSession.GetObject("gslbcrmruntime", newOptions...)
62+
return obj, err
63+
}
64+
65+
// Create a new GslbCRMRuntime object
66+
func (client *GslbCRMRuntimeClient) Create(obj *models.GslbCRMRuntime, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
67+
var robj *models.GslbCRMRuntime
68+
err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...)
69+
return robj, err
70+
}
71+
72+
// Update an existing GslbCRMRuntime object
73+
func (client *GslbCRMRuntimeClient) Update(obj *models.GslbCRMRuntime, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
74+
var robj *models.GslbCRMRuntime
75+
path := client.getAPIPath(*obj.UUID)
76+
err := client.aviSession.Put(path, obj, &robj, options...)
77+
return robj, err
78+
}
79+
80+
// Patch an existing GslbCRMRuntime object specified using uuid
81+
// patchOp: Patch operation - add, replace, or delete
82+
// patch: Patch payload should be compatible with the models.GslbCRMRuntime
83+
// or it should be json compatible of form map[string]interface{}
84+
func (client *GslbCRMRuntimeClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.GslbCRMRuntime, error) {
85+
var robj *models.GslbCRMRuntime
86+
path := client.getAPIPath(uuid)
87+
err := client.aviSession.Patch(path, patch, patchOp, &robj, options...)
88+
return robj, err
89+
}
90+
91+
// Delete an existing GslbCRMRuntime object with a given UUID
92+
func (client *GslbCRMRuntimeClient) Delete(uuid string, options ...session.ApiOptionsParams) error {
93+
if len(options) == 0 {
94+
return client.aviSession.Delete(client.getAPIPath(uuid))
95+
} else {
96+
return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...)
97+
}
98+
}
99+
100+
// DeleteByName - Delete an existing GslbCRMRuntime object with a given name
101+
func (client *GslbCRMRuntimeClient) DeleteByName(name string, options ...session.ApiOptionsParams) error {
102+
res, err := client.GetByName(name, options...)
103+
if err != nil {
104+
return err
105+
}
106+
return client.Delete(*res.UUID, options...)
107+
}
108+
109+
// GetAviSession
110+
func (client *GslbCRMRuntimeClient) GetAviSession() *session.AviSession {
111+
return client.aviSession
112+
}
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
// Copyright 2019 VMware, Inc.
2+
// SPDX-License-Identifier: Apache License 2.0
3+
4+
package clients
5+
6+
// This file is auto-generated.
7+
8+
import (
9+
"github.com/vmware/alb-sdk/go/models"
10+
"github.com/vmware/alb-sdk/go/session"
11+
)
12+
13+
// GslbHSMRuntimeClient is a client for avi GslbHSMRuntime resource
14+
type GslbHSMRuntimeClient struct {
15+
aviSession *session.AviSession
16+
}
17+
18+
// NewGslbHSMRuntimeClient creates a new client for GslbHSMRuntime resource
19+
func NewGslbHSMRuntimeClient(aviSession *session.AviSession) *GslbHSMRuntimeClient {
20+
return &GslbHSMRuntimeClient{aviSession: aviSession}
21+
}
22+
23+
func (client *GslbHSMRuntimeClient) getAPIPath(uuid string) string {
24+
path := "api/gslbhsmruntime"
25+
if uuid != "" {
26+
path += "/" + uuid
27+
}
28+
return path
29+
}
30+
31+
// GetAll is a collection API to get a list of GslbHSMRuntime objects
32+
func (client *GslbHSMRuntimeClient) GetAll(options ...session.ApiOptionsParams) ([]*models.GslbHSMRuntime, error) {
33+
var plist []*models.GslbHSMRuntime
34+
err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...)
35+
return plist, err
36+
}
37+
38+
// Get an existing GslbHSMRuntime by uuid
39+
func (client *GslbHSMRuntimeClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
40+
var obj *models.GslbHSMRuntime
41+
err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...)
42+
return obj, err
43+
}
44+
45+
// GetByName - Get an existing GslbHSMRuntime by name
46+
func (client *GslbHSMRuntimeClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
47+
var obj *models.GslbHSMRuntime
48+
err := client.aviSession.GetObjectByName("gslbhsmruntime", name, &obj, options...)
49+
return obj, err
50+
}
51+
52+
// GetObject - Get an existing GslbHSMRuntime by filters like name, cloud, tenant
53+
// Api creates GslbHSMRuntime object with every call.
54+
func (client *GslbHSMRuntimeClient) GetObject(options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
55+
var obj *models.GslbHSMRuntime
56+
newOptions := make([]session.ApiOptionsParams, len(options)+1)
57+
for i, p := range options {
58+
newOptions[i] = p
59+
}
60+
newOptions[len(options)] = session.SetResult(&obj)
61+
err := client.aviSession.GetObject("gslbhsmruntime", newOptions...)
62+
return obj, err
63+
}
64+
65+
// Create a new GslbHSMRuntime object
66+
func (client *GslbHSMRuntimeClient) Create(obj *models.GslbHSMRuntime, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
67+
var robj *models.GslbHSMRuntime
68+
err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...)
69+
return robj, err
70+
}
71+
72+
// Update an existing GslbHSMRuntime object
73+
func (client *GslbHSMRuntimeClient) Update(obj *models.GslbHSMRuntime, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
74+
var robj *models.GslbHSMRuntime
75+
path := client.getAPIPath(*obj.UUID)
76+
err := client.aviSession.Put(path, obj, &robj, options...)
77+
return robj, err
78+
}
79+
80+
// Patch an existing GslbHSMRuntime object specified using uuid
81+
// patchOp: Patch operation - add, replace, or delete
82+
// patch: Patch payload should be compatible with the models.GslbHSMRuntime
83+
// or it should be json compatible of form map[string]interface{}
84+
func (client *GslbHSMRuntimeClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.GslbHSMRuntime, error) {
85+
var robj *models.GslbHSMRuntime
86+
path := client.getAPIPath(uuid)
87+
err := client.aviSession.Patch(path, patch, patchOp, &robj, options...)
88+
return robj, err
89+
}
90+
91+
// Delete an existing GslbHSMRuntime object with a given UUID
92+
func (client *GslbHSMRuntimeClient) Delete(uuid string, options ...session.ApiOptionsParams) error {
93+
if len(options) == 0 {
94+
return client.aviSession.Delete(client.getAPIPath(uuid))
95+
} else {
96+
return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...)
97+
}
98+
}
99+
100+
// DeleteByName - Delete an existing GslbHSMRuntime object with a given name
101+
func (client *GslbHSMRuntimeClient) DeleteByName(name string, options ...session.ApiOptionsParams) error {
102+
res, err := client.GetByName(name, options...)
103+
if err != nil {
104+
return err
105+
}
106+
return client.Delete(*res.UUID, options...)
107+
}
108+
109+
// GetAviSession
110+
func (client *GslbHSMRuntimeClient) GetAviSession() *session.AviSession {
111+
return client.aviSession
112+
}

0 commit comments

Comments
 (0)