Skip to content

Commit 2a9d86c

Browse files
authored
Merge pull request #85 from cisco-en-programmability/develop
Develop
2 parents bbb1269 + ff5ce6a commit 2a9d86c

File tree

8 files changed

+117
-84
lines changed

8 files changed

+117
-84
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [5.0.30] - 2024-06-26
10+
### Fixed
11+
- Fix functions name in `DevicesService`, `EoXService`, `HealthAndPerformanceService`, `SystemSettingsService` and `UserandRolesService`
12+
913
## [5.0.29] - 2024-06-14
1014
- Added `SiteHierarchyGraphId` parameters to `ResponseDevicesGetDeviceDetailResponse`
1115

@@ -632,4 +636,5 @@ Services removed on Cisco DNA Center 2.3.3.0's API:
632636
[5.0.27]: https://github.com/cisco-en-programmability/dnacenter-go-sdk/compare/v5.0.26...v5.0.27
633637
[5.0.28]: https://github.com/cisco-en-programmability/dnacenter-go-sdk/compare/v5.0.27...v5.0.28
634638
[5.0.29]: https://github.com/cisco-en-programmability/dnacenter-go-sdk/compare/v5.0.28...v5.0.29
635-
[Unreleased]: https://github.com/cisco-en-programmability/dnacenter-go-sdk/compare/v5.0.29...main
639+
[5.0.30]: https://github.com/cisco-en-programmability/dnacenter-go-sdk/compare/v5.0.29...v5.0.30
640+
[Unreleased]: https://github.com/cisco-en-programmability/dnacenter-go-sdk/compare/v5.0.30...main

go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ require (
77
github.com/google/go-querystring v1.1.0
88
)
99

10-
require golang.org/x/net v0.12.0 // indirect
10+
require (
11+
github.com/google/go-cmp v0.6.0 // indirect
12+
golang.org/x/net v0.26.0 // indirect
13+
)

go.sum

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11
github.com/go-resty/resty/v2 v2.7.0 h1:me+K9p3uhSmXtrBZ4k9jcEAfJmuC8IivWHwaLZwPrFY=
22
github.com/go-resty/resty/v2 v2.7.0/go.mod h1:9PWDzw47qPphMRFfhsyk0NnSgvluHcljSMVIq3w7q0I=
3-
github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
43
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4+
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
5+
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
56
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
67
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
78
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
89
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
910
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
10-
golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio=
11+
golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
12+
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
13+
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
14+
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
1115
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
1216
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
17+
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
18+
golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
19+
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
1320
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
1421
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
1522
golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
1623
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
1724
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
1825
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
19-
golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50=
20-
golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
26+
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
27+
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
28+
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
29+
golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
30+
golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE=
2131
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
2232
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
2333
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
34+
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
35+
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
36+
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
2437
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
2538
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2639
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -29,22 +42,34 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc
2942
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
3043
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
3144
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
32-
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
45+
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
46+
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
47+
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
48+
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
49+
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
3350
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
3451
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
3552
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
3653
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
37-
golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o=
54+
golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
55+
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
56+
golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
57+
golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0=
3858
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
3959
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
4060
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
4161
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
4262
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
4363
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
44-
golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
64+
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
65+
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
66+
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
67+
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
4568
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
4669
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
4770
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
4871
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
72+
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
73+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
4974
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
5075
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

sdk/devices.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,10 +1043,10 @@ type ResponseDevicesGetFunctionalCapabilityByIDResponseFunctionDetails struct {
10431043
}
10441044
type ResponseDevicesGetFunctionalCapabilityByIDResponseFunctionDetailsAttributeInfo interface{}
10451045
type ResponseDevicesInventoryInsightDeviceLinkMismatchApI struct {
1046-
Response *[]ResponseDevicesInventoryInsightDeviceLinkMismatchAPIResponse `json:"response,omitempty"` //
1046+
Response *[]ResponseDevicesInventoryInsightDeviceLinkMismatchApIResponse `json:"response,omitempty"` //
10471047
Version string `json:"version,omitempty"` // Api version
10481048
}
1049-
type ResponseDevicesInventoryInsightDeviceLinkMismatchAPIResponse struct {
1049+
type ResponseDevicesInventoryInsightDeviceLinkMismatchApIResponse struct {
10501050
EndPortAllowedVLANIDs string `json:"endPortAllowedVlanIds,omitempty"` // End port allowed vlan ids
10511051
EndPortNativeVLANID string `json:"endPortNativeVlanId,omitempty"` // End port native vlan id
10521052
StartPortAllowedVLANIDs string `json:"startPortAllowedVlanIds,omitempty"` // Start port allowed vlan ids
@@ -2599,20 +2599,20 @@ func (s *DevicesService) GetFunctionalCapabilityByID(id string) (*ResponseDevice
25992599

26002600
}
26012601

2602-
//InventoryInsightDeviceLinkMismatchAPI Inventory Insight Device Link Mismatch API - 5792-59d8-4208-8190
2602+
//InventoryInsightDeviceLinkMismatchApI Inventory Insight Device Link Mismatch API - 5792-59d8-4208-8190
26032603
/* Find all devices with link mismatch (speed / vlan)
26042604
26052605
26062606
@param siteID siteId path parameter.
2607-
@param InventoryInsightDeviceLinkMismatchAPIQueryParams Filtering parameter
2607+
@param InventoryInsightDeviceLinkMismatchApIQueryParams Filtering parameter
26082608
26092609
Documentation Link: https://developer.cisco.com/docs/dna-center/#!inventory-insight-device-link-mismatch-api
26102610
*/
2611-
func (s *DevicesService) InventoryInsightDeviceLinkMismatchAPI(siteID string, InventoryInsightDeviceLinkMismatchAPIQueryParams *InventoryInsightDeviceLinkMismatchApIQueryParams) (*ResponseDevicesInventoryInsightDeviceLinkMismatchApI, *resty.Response, error) {
2611+
func (s *DevicesService) InventoryInsightDeviceLinkMismatchApI(siteID string, InventoryInsightDeviceLinkMismatchApIQueryParams *InventoryInsightDeviceLinkMismatchApIQueryParams) (*ResponseDevicesInventoryInsightDeviceLinkMismatchApI, *resty.Response, error) {
26122612
path := "/dna/intent/api/v1/network-device/insight/{siteId}/device-link"
26132613
path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteID), -1)
26142614

2615-
queryString, _ := query.Values(InventoryInsightDeviceLinkMismatchAPIQueryParams)
2615+
queryString, _ := query.Values(InventoryInsightDeviceLinkMismatchApIQueryParams)
26162616

26172617
response, err := s.client.R().
26182618
SetHeader("Content-Type", "application/json").
@@ -2628,7 +2628,7 @@ func (s *DevicesService) InventoryInsightDeviceLinkMismatchAPI(siteID string, In
26282628

26292629
if response.IsError() {
26302630
if response.StatusCode() == http.StatusUnauthorized {
2631-
return s.InventoryInsightDeviceLinkMismatchAPI(siteID, InventoryInsightDeviceLinkMismatchAPIQueryParams)
2631+
return s.InventoryInsightDeviceLinkMismatchApI(siteID, InventoryInsightDeviceLinkMismatchApIQueryParams)
26322632
}
26332633
return nil, response, fmt.Errorf("error with operation InventoryInsightDeviceLinkMismatchApi")
26342634
}
@@ -2638,7 +2638,7 @@ func (s *DevicesService) InventoryInsightDeviceLinkMismatchAPI(siteID string, In
26382638

26392639
}
26402640

2641-
//ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3Des Returns devices added to Cisco DNA center with snmp v3 DES. - afba-7a69-4d38-8de1
2641+
//ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3DES Returns devices added to Cisco DNA center with snmp v3 DES. - afba-7a69-4d38-8de1
26422642
/* Returns devices added to Cisco DNA center with snmp v3 DES, where siteId is mandatory & accepts offset, limit, sortby, order which are optional.
26432643
26442644
@@ -2647,7 +2647,7 @@ func (s *DevicesService) InventoryInsightDeviceLinkMismatchAPI(siteID string, In
26472647
26482648
Documentation Link: https://developer.cisco.com/docs/dna-center/#!returns-devices-added-to-cisco-dna-center-with-snmp-v3-des
26492649
*/
2650-
func (s *DevicesService) ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3Des(siteID string, ReturnsDevicesAddedToCiscoDNACenterWithSnmpV3DESQueryParams *ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3DESQueryParams) (*ResponseDevicesReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3DES, *resty.Response, error) {
2650+
func (s *DevicesService) ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3DES(siteID string, ReturnsDevicesAddedToCiscoDNACenterWithSnmpV3DESQueryParams *ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3DESQueryParams) (*ResponseDevicesReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3DES, *resty.Response, error) {
26512651
path := "/dna/intent/api/v1/network-device/insight/{siteId}/insecure-connection"
26522652
path = strings.Replace(path, "{siteId}", fmt.Sprintf("%v", siteID), -1)
26532653

@@ -2667,7 +2667,7 @@ func (s *DevicesService) ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3Des(siteID
26672667

26682668
if response.IsError() {
26692669
if response.StatusCode() == http.StatusUnauthorized {
2670-
return s.ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3Des(siteID, ReturnsDevicesAddedToCiscoDNACenterWithSnmpV3DESQueryParams)
2670+
return s.ReturnsDevicesAddedToCiscoDnaCenterWithSNMPV3DES(siteID, ReturnsDevicesAddedToCiscoDNACenterWithSnmpV3DESQueryParams)
26712671
}
26722672
return nil, response, fmt.Errorf("error with operation ReturnsDevicesAddedToCiscoDnaCenterWithSnmpV3Des")
26732673
}

sdk/eox.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ type ResponseEoXGetEoXSummaryResponse struct {
7373
7474
Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-eo-x-status-for-all-devices
7575
*/
76-
func (s *EoXService) GetEoxStatusForAllDevices() (*ResponseEoXGetEoXStatusForAllDevices, *resty.Response, error) {
76+
func (s *EoXService) GetEoXStatusForAllDevices() (*ResponseEoXGetEoXStatusForAllDevices, *resty.Response, error) {
7777
path := "/dna/intent/api/v1/eox-status/device"
7878

7979
response, err := s.client.R().
@@ -90,17 +90,17 @@ func (s *EoXService) GetEoxStatusForAllDevices() (*ResponseEoXGetEoXStatusForAll
9090

9191
if response.IsError() {
9292
if response.StatusCode() == http.StatusUnauthorized {
93-
return s.GetEoxStatusForAllDevices()
93+
return s.GetEoXStatusForAllDevices()
9494
}
95-
return nil, response, fmt.Errorf("error with operation GetEoxStatusForAllDevices")
95+
return nil, response, fmt.Errorf("error with operation GetEoXStatusForAllDevices")
9696
}
9797

9898
result := response.Result().(*ResponseEoXGetEoXStatusForAllDevices)
9999
return result, response, err
100100

101101
}
102102

103-
//GetEoxDetailsPerDevice Get EoX Details Per Device - dc80-099e-4d59-986d
103+
//GetEoXDetailsPerDevice Get EoX Details Per Device - dc80-099e-4d59-986d
104104
/* Retrieves EoX details for a device
105105
106106
@@ -109,7 +109,7 @@ func (s *EoXService) GetEoxStatusForAllDevices() (*ResponseEoXGetEoXStatusForAll
109109
110110
Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-eox-details-per-device
111111
*/
112-
func (s *EoXService) GetEoxDetailsPerDevice(deviceID string) (*ResponseEoXGetEoXDetailsPerDevice, *resty.Response, error) {
112+
func (s *EoXService) GetEoXDetailsPerDevice(deviceID string) (*ResponseEoXGetEoXDetailsPerDevice, *resty.Response, error) {
113113
path := "/dna/intent/api/v1/eox-status/device/{deviceId}"
114114
path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1)
115115

@@ -127,24 +127,24 @@ func (s *EoXService) GetEoxDetailsPerDevice(deviceID string) (*ResponseEoXGetEoX
127127

128128
if response.IsError() {
129129
if response.StatusCode() == http.StatusUnauthorized {
130-
return s.GetEoxDetailsPerDevice(deviceID)
130+
return s.GetEoXDetailsPerDevice(deviceID)
131131
}
132-
return nil, response, fmt.Errorf("error with operation GetEoxDetailsPerDevice")
132+
return nil, response, fmt.Errorf("error with operation GetEoXDetailsPerDevice")
133133
}
134134

135135
result := response.Result().(*ResponseEoXGetEoXDetailsPerDevice)
136136
return result, response, err
137137

138138
}
139139

140-
//GetEoxSummary Get EoX Summary - f0b2-7a23-4fea-96fc
140+
//GetEoXSummary Get EoX Summary - f0b2-7a23-4fea-96fc
141141
/* Retrieves EoX summary for all devices in the network
142142
143143
144144
145145
Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-eox-summary
146146
*/
147-
func (s *EoXService) GetEoxSummary() (*ResponseEoXGetEoXSummary, *resty.Response, error) {
147+
func (s *EoXService) GetEoXSummary() (*ResponseEoXGetEoXSummary, *resty.Response, error) {
148148
path := "/dna/intent/api/v1/eox-status/summary"
149149

150150
response, err := s.client.R().
@@ -161,9 +161,9 @@ func (s *EoXService) GetEoxSummary() (*ResponseEoXGetEoXSummary, *resty.Response
161161

162162
if response.IsError() {
163163
if response.StatusCode() == http.StatusUnauthorized {
164-
return s.GetEoxSummary()
164+
return s.GetEoXSummary()
165165
}
166-
return nil, response, fmt.Errorf("error with operation GetEoxSummary")
166+
return nil, response, fmt.Errorf("error with operation GetEoXSummary")
167167
}
168168

169169
result := response.Result().(*ResponseEoXGetEoXSummary)

0 commit comments

Comments
 (0)