Skip to content

Commit

Permalink
Merge pull request #74 from cisco-en-programmability/develop
Browse files Browse the repository at this point in the history
## [5.0.23] - 2023-11-24
  • Loading branch information
fmunozmiranda committed Nov 24, 2023
2 parents 932c70a + 65f8c10 commit 6e888a0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [5.0.23] - 2023-11-24
- `Progress` struct removed from `ResponseDeviceOnboardingPnpGetDeviceByIDDeviceInfo`.
- `Progress` struct added to `ResponseDeviceOnboardingPnpGetDeviceByIDDeviceInfoProgress`.

## [5.0.22] - 2023-11-24
- `Progress` struct added to `ResponseDeviceOnboardingPnpGetDeviceByIDDeviceInfo`.

Expand Down
27 changes: 27 additions & 0 deletions examples/custom-call/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package main

import (
"fmt"

dnac "github.com/cisco-en-programmability/dnacenter-go-sdk/v5/sdk"
)

// Client is DNA Center API client
var Client *dnac.Client

func main() {
fmt.Println("Authenticating")
var err error
Client, err = dnac.NewClientWithOptions("https://100.119.103.190",
"cloverhound_user", "LABchsys!23$",
"true", "false", nil)
if err != nil {
fmt.Println(err)
return
}
resourcePath := fmt.Sprintf("%s/api/v1/siteprofile", Client.RestyClient().BaseURL)
a, err := Client.CustomCall.GetCustomCall(resourcePath, nil)

print(a.String())

}
4 changes: 2 additions & 2 deletions sdk/device_onboarding_pnp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,7 @@ type ResponseDeviceOnboardingPnpGetDeviceByID struct {
DayZeroConfigPreview *ResponseDeviceOnboardingPnpGetDeviceByIDDayZeroConfigPreview `json:"dayZeroConfigPreview,omitempty"` // Day Zero Config Preview
Version *float64 `json:"version,omitempty"` // Version
TenantID string `json:"tenantId,omitempty"` // Tenant Id
Progress *ResponseDeviceOnboardingPnpGetDeviceByIDProgress `json:"progress,omitempty"` // Progress
}
type ResponseDeviceOnboardingPnpGetDeviceByIDDeviceInfo struct {
Source string `json:"source,omitempty"` // Source
Expand Down Expand Up @@ -1925,10 +1926,9 @@ type ResponseDeviceOnboardingPnpGetDeviceByIDDeviceInfo struct {
PopulateInventory *bool `json:"populateInventory,omitempty"` // Populate Inventory
SiteName string `json:"siteName,omitempty"` // Site Name
Name string `json:"name,omitempty"` // Name
Progress *ResponseDeviceOnboardingPnpGetDeviceByIDDeviceInfoProgress `json:"progress,omitempty"` // Progress
}

type ResponseDeviceOnboardingPnpGetDeviceByIDDeviceInfoProgress struct {
type ResponseDeviceOnboardingPnpGetDeviceByIDProgress struct {
Message string `json:"message,omitempty"`
InProgress bool `json:"inProgress,omitempty"`
ProgressPercent int `json:"progressPercent,omitempty"`
Expand Down

0 comments on commit 6e888a0

Please sign in to comment.