diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 14ece17cf..3454043f4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -10,7 +10,7 @@ assignees: '' **Prerequisites** * [ ] Have you tested the operation in the API directly? * [ ] Do you have the latest SDK version? -* [ ] Review [compability matrix](https://github.com/meraki/dashboard-api-go?tab=readme-ov-file#compatibility-matrix) +* [ ] Review [compability matrix](https://github.com/cisco-en-programmability/dnacenter-go-sdk/tree/main#compatibility-matrix) **Describe the bug** A clear and concise description of what the bug is. @@ -22,7 +22,7 @@ A clear and concise description of what you expected to happen. Please provide an screenshot of the successful API call with cuRL, Postman, etc. **Environment (please complete the following information):** -* Cisco Dasboard Meraki Version and patch: +* Cisco DNA Center Version and patch: * Go Version: * SDK version: * OS Version: diff --git a/README.md b/README.md index 1242d2c89..fd64fd258 100644 --- a/README.md +++ b/README.md @@ -28,13 +28,12 @@ The client could be generated with the following parameters: - `baseURL`: The base URL, FQDN or IP, of the MERAKI instance. - `dashboardApiKey`: The meraki_key for access to API. - `debug`: Boolean to enable debugging -- `customUserAgent`: Set Custom user agent, if is nil, default is: (golang/*) -- `requestPerSecond`: Set request per second allowed for client, if is nil, default is: (10) +- `sslVerify`: Boolean to enable or disable SSL certificate verification. ```go client, err = meraki.NewClientWithOptions("https://api.meraki.com/", "MERAKI_KEY", - "true", nil,nil) + "true", "false") nResponse, _, err := client.Administered.GetAdministeredIDentitiesMe() if err != nil { fmt.Println(err) @@ -49,10 +48,10 @@ The client can be configured with the following environment variables: - `MERAKI_BASE_URL`: The base URL, FQDN or IP, of the MERAKI instance. - `MERAKI_DASHBOARD_API_KEY`: The meraki_key for access to API. - `MERAKI_DEBUG`: Boolean to enable debugging -- `MERAKI_USER_AGENT`: Custom user agent can be set. Default (golang/*) +- `MERAKI_SSL_VERIFY`: Boolean to enable or disable SSL certificate verification. ```go -Client, err = meraki.NewClient(nil) +Client, err = meraki.NewClient() devicesCount, _, err := Client.Devices.GetDeviceCount() ``` @@ -61,12 +60,9 @@ devicesCount, _, err := Client.Devices.GetDeviceCount() Here is an example of how we can generate a client, get a device count and then a list of devices filtering them using query params. ```go - - requestPerSecond := 5 - custom_user_agent := "customUA" - client, err = meraki.NewClientWithOptions("https://api.meraki.com/", - "APIKEY", - "true", &custom_user_agent, &requestPerSecond) +client, err = meraki.NewClientWithOptions("https://api.meraki.com/", + "Meraki_key", + "true", "false") if err != nil { fmt.Println(err) return diff --git a/examples/administered/main.go b/examples/administered/main.go index 447d3b994..415edc8cd 100644 --- a/examples/administered/main.go +++ b/examples/administered/main.go @@ -2,22 +2,19 @@ package main import ( "fmt" - "os" meraki "github.com/meraki/dashboard-api-go/v2/sdk" ) -// Client is Dasboard Meraki API client +// Client is DNA Center API client var client *meraki.Client func main() { var err error fmt.Println("Authenticating") - requestPerSecond := 5 - custom_user_agent := "customUA" client, err = meraki.NewClientWithOptions("https://api.meraki.com/", "12f2eb53588c75e28d89e108a05ea0c2487b08cf", - "true", &custom_user_agent, &requestPerSecond) + "true", "false") if err != nil { fmt.Println(err) return @@ -25,25 +22,22 @@ func main() { nResponse, _, err := client.Administered.GetAdministeredIDentitiesMe() if err != nil { - - os.Exit(1) + fmt.Println(err) return } if nResponse != nil { fmt.Println(nResponse) - return } - nResponse2, _, err := client.Organizations.GetOrganization("828099381482762270") - if err != nil { - os.Exit(1) + nResponse2, _, err := client.Administered.GetAdministeredIDentitiesMe() + if err != nil { + fmt.Println(err) return } if nResponse2 != nil { - fmt.Println(nResponse2) - + fmt.Println(nResponse) return } - + fmt.Println("There's no data on response") } diff --git a/examples/networks/main.go b/examples/networks/main.go index 75070a3b5..d4ca25480 100644 --- a/examples/networks/main.go +++ b/examples/networks/main.go @@ -13,7 +13,7 @@ func main() { fmt.Println("Authenticating") client, err = meraki.NewClientWithOptions("https://api.meraki.com/", "12f2eb53588c75e28d89e108a05ea0c2487b08cf", - "true", nil, nil) + "true", "false") if err != nil { fmt.Println(err) return diff --git a/examples/organizations/main.go b/examples/organizations/main.go index 0a7c51b07..95d372de5 100644 --- a/examples/organizations/main.go +++ b/examples/organizations/main.go @@ -13,7 +13,7 @@ func main() { fmt.Println("Authenticating") client, err = meraki.NewClientWithOptions("https://api.meraki.com/", "12f2eb53588c75e28d89e108a05ea0c2487b08cf", - "true", nil, nil) + "true", "false") if err != nil { fmt.Println(err) return diff --git a/examples/testPagination/main.go b/examples/testPagination/main.go index a499e7cb5..61d4498cc 100644 --- a/examples/testPagination/main.go +++ b/examples/testPagination/main.go @@ -22,7 +22,7 @@ func main() { fmt.Println("Authenticating") client, err = meraki.NewClientWithOptions("https://api.meraki.com/", "12f2eb53588c75e28d89e108a05ea0c2487b08cf", - "false", nil, nil) + "false", "false") if err != nil { fmt.Println(err) return diff --git a/go.mod b/go.mod index 06a468652..9fed5e301 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,6 @@ go 1.21.5 require ( github.com/go-resty/resty/v2 v2.11.0 github.com/google/go-querystring v1.1.0 - github.com/juju/ratelimit v1.0.2 ) -require ( - golang.org/x/net v0.17.0 // indirect - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect -) +require golang.org/x/net v0.17.0 // indirect diff --git a/go.sum b/go.sum index 9fef038e8..7dff9150d 100644 --- a/go.sum +++ b/go.sum @@ -4,13 +4,6 @@ github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/juju/ratelimit v1.0.2 h1:sRxmtRiajbvrcLQT7S+JbqU0ntsb9W2yhSdNN8tWfaI= -github.com/juju/ratelimit v1.0.2/go.mod h1:qapgC/Gy+xNh9UxzV13HGGl/6UXNN+ct+vwSgWNm/qk= -github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= @@ -54,5 +47,3 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/sdk/administered.go b/sdk/administered.go index 2e566e2c4..4873b5d74 100644 --- a/sdk/administered.go +++ b/sdk/administered.go @@ -37,11 +37,11 @@ type ResponseAdministeredGetAdministeredIDentitiesMeAuthenticationTwoFactor stru /* Returns the identity of the current user. - - */ +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-administered-identities-me +*/ func (s *AdministeredService) GetAdministeredIDentitiesMe() (*ResponseAdministeredGetAdministeredIDentitiesMe, *resty.Response, error) { path := "/api/v1/administered/identities/me" - s.rateLimiterBucket.Wait(1) + response, err := s.client.R(). SetHeader("Content-Type", "application/json"). SetHeader("Accept", "application/json"). diff --git a/sdk/api_client.go b/sdk/api_client.go index 7cce32654..19de65bd8 100644 --- a/sdk/api_client.go +++ b/sdk/api_client.go @@ -1,14 +1,16 @@ package meraki import ( + "crypto/tls" "fmt" "net/http" "os" - "strconv" "time" + "io/ioutil" + "path/filepath" + "github.com/go-resty/resty/v2" - "github.com/juju/ratelimit" ) var apiURL = "https://api.meraki.com/" @@ -17,10 +19,18 @@ const MERAKI_BASE_URL = "MERAKI_BASE_URL" const MERAKI_DASHBOARD_API_KEY = "MERAKI_DASHBOARD_API_KEY" const MERAKI_DEBUG = "MERAKI_DEBUG" const MERAKI_SSL_VERIFY = "MERAKI_SSL_VERIFY" -const MERAKI_USER_AGENT = "MERAKI_USER_AGENT" -const DEFAULT_USER_AGENT = "golang-meraki/1.33.0" -// Client manages communication with the Dashboard API +type FileDownload struct { + FileName string + FileData []byte +} + +func (f *FileDownload) SaveDownload(path string) error { + fpath := filepath.Join(path, f.FileName) + return ioutil.WriteFile(fpath, f.FileData, 0664) +} + +// Client manages communication with the Cisco DNA Center API type Client struct { common service // Reuse a single struct instead of allocating one for each service on the heap. @@ -42,8 +52,7 @@ type Client struct { } type service struct { - client *resty.Client - rateLimiterBucket *ratelimit.Bucket + client *resty.Client } // SetAuthToken defines the X-Auth-Token token sent in the request @@ -56,14 +65,14 @@ func (s *Client) SetUserAgent(userAgent string) { s.common.client.SetHeader("User-Agent", userAgent) } -// Error indicates an error from the invocation of a Dashboard Meraki API. +// Error indicates an error from the invocation of a Cisco DNA Center API. var Error map[string]interface{} // NewClient creates a new API client. Requires a userAgent string describing your application. // optionally a custom http.Client to allow for advanced features such as caching. -func NewClient(request_per_second *int) (*Client, error) { +func NewClient() (*Client, error) { var err error - c, err := NewClientNoAuth(request_per_second) + c, err := NewClientNoAuth() if err != nil { return nil, err } @@ -72,50 +81,35 @@ func NewClient(request_per_second *int) (*Client, error) { if err != nil { return c, err } - var userAgent string - if os.Getenv(MERAKI_USER_AGENT) != "" { - userAgent = os.Getenv(MERAKI_USER_AGENT) - } else { - userAgent = DEFAULT_USER_AGENT - } - c.SetUserAgent(userAgent) - c.common.client.SetLogger(&CustomLogger{}) + c.SetUserAgent("MerakiGolang/2.0.4 Cisco") + c.common.client.SetLogger(&CustomLogger{}) c.common.client.AddRetryCondition( // RetryConditionFunc type is for retry condition function // input: non-nil Response OR request execution error func(r *resty.Response, err error) bool { - return err != nil || r.StatusCode() == http.StatusTooManyRequests + return r.StatusCode() == http.StatusTooManyRequests }, ) - c.common.client.SetRetryCount(3) - c.common.client.SetRetryWaitTime(time.Second) - c.common.client.SetRetryMaxWaitTime(5 * time.Second) - c.common.client.SetRetryAfter(func(cl *resty.Client, r *resty.Response) (time.Duration, error) { - retryAfter, err := strconv.Atoi(r.Header().Get("Retry-After")) - if err != nil { - retryAfter = 0 - } - return time.Duration(retryAfter), nil - }) - + c.common.client.SetRetryCount(2) + c.common.client.SetRetryWaitTime(5 * time.Second) return c, nil } // NewClientWithOptions is the client with options passed with parameters -func NewClientWithOptions(baseURL string, dashboardApiKey string, debug string, customUserAgent *string, request_per_second *int) (*Client, error) { +func NewClientWithOptions(baseURL string, dashboardApiKey string, debug string, sslVerify string) (*Client, error) { var err error - err = SetOptions(baseURL, dashboardApiKey, debug, customUserAgent) + err = SetOptions(baseURL, dashboardApiKey, debug, sslVerify) if err != nil { return nil, err } - return NewClient(request_per_second) + return NewClient() } // SetOptions sets the environment variables -func SetOptions(baseURL string, dashboardApiKey string, debug string, customUserAgent *string) error { +func SetOptions(baseURL string, dashboardApiKey string, debug string, sslVerify string) error { var err error err = os.Setenv(MERAKI_BASE_URL, baseURL) if err != nil { @@ -125,42 +119,33 @@ func SetOptions(baseURL string, dashboardApiKey string, debug string, customUser if err != nil { return err } - err = os.Setenv(MERAKI_DASHBOARD_API_KEY, dashboardApiKey) + err = os.Setenv(MERAKI_SSL_VERIFY, sslVerify) if err != nil { return err } - - if customUserAgent == nil { - custom := DEFAULT_USER_AGENT - customUserAgent = &custom - } - - err = os.Setenv(MERAKI_USER_AGENT, *customUserAgent) + err = os.Setenv(MERAKI_DASHBOARD_API_KEY, dashboardApiKey) if err != nil { return err } - return nil } // NewClientNoAuth returns the client object without trying to authenticate -func NewClientNoAuth(request_per_second *int) (*Client, error) { +func NewClientNoAuth() (*Client, error) { var err error client := resty.New() c := &Client{} c.common.client = client - var request_per_second_no_pointer int - if request_per_second != nil { - request_per_second_no_pointer = *request_per_second - } else { - request_per_second_no_pointer = 10 - } - c.common.rateLimiterBucket = ratelimit.NewBucketWithQuantum(time.Second, int64(request_per_second_no_pointer), int64(request_per_second_no_pointer)) + if os.Getenv(MERAKI_DEBUG) == "true" { client.SetDebug(true) } + if os.Getenv(MERAKI_SSL_VERIFY) == "false" { + client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true}) + } + if os.Getenv(MERAKI_BASE_URL) != "" { client.SetBaseURL(os.Getenv(MERAKI_BASE_URL)) } else { @@ -190,15 +175,15 @@ func NewClientNoAuth(request_per_second *int) (*Client, error) { } // NewClientWithOptionsNoAuth returns the client object without trying to authenticate and sets environment variables -func NewClientWithOptionsNoAuth(baseURL string, dashboardApiKey string, debug string, customUserAgent *string, requestPerSecond *int) (*Client, error) { +func NewClientWithOptionsNoAuth(baseURL string, dashboardApiKey string, debug string, sslVerify string) (*Client, error) { var err error - err = SetOptions(baseURL, dashboardApiKey, debug, customUserAgent) + err = SetOptions(baseURL, dashboardApiKey, debug, sslVerify) if err != nil { return nil, err } - return NewClientNoAuth(requestPerSecond) + return NewClientNoAuth() } func (s *Client) AuthClient() error { @@ -218,14 +203,3 @@ func (s *Client) AuthClient() error { func (s *Client) RestyClient() *resty.Client { return s.common.client } - -func convertToString(i interface{}) string { - switch v := i.(type) { - case float64: - return strconv.Itoa(int(v)) - case string: - return v - default: - return "" - } -} diff --git a/sdk/appliance.go b/sdk/appliance.go index 5b5185c66..17d46d157 100644 --- a/sdk/appliance.go +++ b/sdk/appliance.go @@ -1,7 +1,6 @@ package meraki import ( - "encoding/json" "fmt" "log" "strings" @@ -419,47 +418,10 @@ type ResponseApplianceGetNetworkApplianceFirewallL7FirewallRules struct { Rules *[]ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesRules `json:"rules,omitempty"` // } type ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesRules struct { - Policy string `json:"policy,omitempty"` // - Type string `json:"type,omitempty"` // - Value *string // - ValueObj *ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesRulesValueObj // - ValueList *[]string // + Policy string `json:"policy,omitempty"` // + Type string `json:"type,omitempty"` // + Value string `json:"value,omitempty"` // } -type ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesRulesValueObj struct { - ID string `json:"id,omitempty"` // - Name string `json:"name,omitempty"` // -} - -func (r *ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesRules) UnmarshalJSON(data []byte) error { - type Alias ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesRules - aux := &struct { - Value interface{} `json:"value"` - *Alias - }{ - Alias: (*Alias)(r), - } - if err := json.Unmarshal(data, &aux); err != nil { - return err - } - switch v := aux.Value.(type) { - case string: - r.Value = &v - case []interface{}: - strList := make([]string, len(v)) - for i, item := range v { - strList[i] = item.(string) - } - r.ValueList = &strList - case map[string]interface{}: - valueObj := &ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesRulesValueObj{ - ID: v["id"].(string), - Name: v["name"].(string), - } - r.ValueObj = valueObj - } - return nil -} - type ResponseApplianceUpdateNetworkApplianceFirewallL7FirewallRules interface{} type ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesApplicationCategories struct { ApplicationCategories *[]ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesApplicationCategoriesApplicationCategories `json:"applicationCategories,omitempty"` // @@ -1635,13 +1597,9 @@ type RequestApplianceUpdateNetworkApplianceFirewallL7FirewallRules struct { Rules *[]RequestApplianceUpdateNetworkApplianceFirewallL7FirewallRulesRules `json:"rules,omitempty"` // An ordered array of the MX L7 firewall rules } type RequestApplianceUpdateNetworkApplianceFirewallL7FirewallRulesRules struct { - Policy string `json:"policy,omitempty"` // 'Deny' traffic specified by this rule - Type string `json:"type,omitempty"` // Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange' - Value interface{} `json:"value,omitempty"` // The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. The application categories and application ids can be retrieved from the the 'MX L7 application categories' endpoint. The countries follow the two-letter ISO 3166-1 alpha-2 format. -} -type RequestApplianceUpdateNetworkApplianceFirewallL7FirewallRulesRulesValue struct { - ID string `json:"id,omitempty"` - Name string `json:"name,omitempty"` + Policy string `json:"policy,omitempty"` // 'Deny' traffic specified by this rule + Type string `json:"type,omitempty"` // Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange' + Value string `json:"value,omitempty"` // The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. The application categories and application ids can be retrieved from the the 'MX L7 application categories' endpoint. The countries follow the two-letter ISO 3166-1 alpha-2 format. } type RequestApplianceUpdateNetworkApplianceFirewallOneToManyNatRules struct { Rules *[]RequestApplianceUpdateNetworkApplianceFirewallOneToManyNatRulesRules `json:"rules,omitempty"` // An array of 1:Many nat rules @@ -2134,11 +2092,10 @@ type RequestApplianceUpdateOrganizationApplianceVpnVpnFirewallRulesRules struct @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-appliance-dhcp-subnets */ func (s *ApplianceService) GetDeviceApplianceDhcpSubnets(serial string) (*ResponseApplianceGetDeviceApplianceDhcpSubnets, *resty.Response, error) { path := "/api/v1/devices/{serial}/appliance/dhcp/subnets" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2167,11 +2124,10 @@ func (s *ApplianceService) GetDeviceApplianceDhcpSubnets(serial string) (*Respon @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-appliance-performance */ func (s *ApplianceService) GetDeviceAppliancePerformance(serial string) (*ResponseApplianceGetDeviceAppliancePerformance, *resty.Response, error) { path := "/api/v1/devices/{serial}/appliance/performance" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2200,11 +2156,10 @@ func (s *ApplianceService) GetDeviceAppliancePerformance(serial string) (*Respon @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-appliance-prefixes-delegated */ func (s *ApplianceService) GetDeviceAppliancePrefixesDelegated(serial string) (*ResponseApplianceGetDeviceAppliancePrefixesDelegated, *resty.Response, error) { path := "/api/v1/devices/{serial}/appliance/prefixes/delegated" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2233,11 +2188,10 @@ func (s *ApplianceService) GetDeviceAppliancePrefixesDelegated(serial string) (* @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-appliance-prefixes-delegated-vlan-assignments */ func (s *ApplianceService) GetDeviceAppliancePrefixesDelegatedVLANAssignments(serial string) (*ResponseApplianceGetDeviceAppliancePrefixesDelegatedVLANAssignments, *resty.Response, error) { path := "/api/v1/devices/{serial}/appliance/prefixes/delegated/vlanAssignments" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2266,11 +2220,10 @@ func (s *ApplianceService) GetDeviceAppliancePrefixesDelegatedVLANAssignments(se @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-appliance-uplinks-settings */ func (s *ApplianceService) GetDeviceApplianceUplinksSettings(serial string) (*ResponseApplianceGetDeviceApplianceUplinksSettings, *resty.Response, error) { path := "/api/v1/devices/{serial}/appliance/uplinks/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2301,11 +2254,10 @@ func (s *ApplianceService) GetDeviceApplianceUplinksSettings(serial string) (*Re @param clientID clientId path parameter. Client ID @param getNetworkApplianceClientSecurityEventsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-client-security-events */ func (s *ApplianceService) GetNetworkApplianceClientSecurityEvents(networkID string, clientID string, getNetworkApplianceClientSecurityEventsQueryParams *GetNetworkApplianceClientSecurityEventsQueryParams) (*ResponseApplianceGetNetworkApplianceClientSecurityEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/clients/{clientId}/security/events" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -2337,11 +2289,10 @@ func (s *ApplianceService) GetNetworkApplianceClientSecurityEvents(networkID str @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-connectivity-monitoring-destinations */ func (s *ApplianceService) GetNetworkApplianceConnectivityMonitoringDestinations(networkID string) (*ResponseApplianceGetNetworkApplianceConnectivityMonitoringDestinations, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/connectivityMonitoringDestinations" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2370,11 +2321,10 @@ func (s *ApplianceService) GetNetworkApplianceConnectivityMonitoringDestinations @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-content-filtering */ func (s *ApplianceService) GetNetworkApplianceContentFiltering(networkID string) (*ResponseApplianceGetNetworkApplianceContentFiltering, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/contentFiltering" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2403,11 +2353,10 @@ func (s *ApplianceService) GetNetworkApplianceContentFiltering(networkID string) @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-content-filtering-categories */ func (s *ApplianceService) GetNetworkApplianceContentFilteringCategories(networkID string) (*ResponseApplianceGetNetworkApplianceContentFilteringCategories, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/contentFiltering/categories" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2436,11 +2385,10 @@ func (s *ApplianceService) GetNetworkApplianceContentFilteringCategories(network @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-cellular-firewall-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallCellularFirewallRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallCellularFirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/cellularFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2469,11 +2417,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallCellularFirewallRules(netw @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-firewalled-services */ func (s *ApplianceService) GetNetworkApplianceFirewallFirewalledServices(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallFirewalledServices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/firewalledServices" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2503,11 +2450,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallFirewalledServices(network @param networkID networkId path parameter. Network ID @param service service path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-firewalled-service */ func (s *ApplianceService) GetNetworkApplianceFirewallFirewalledService(networkID string, service string) (*ResponseApplianceGetNetworkApplianceFirewallFirewalledService, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/firewalledServices/{service}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{service}", fmt.Sprintf("%v", service), -1) @@ -2537,11 +2483,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallFirewalledService(networkI @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-inbound-cellular-firewall-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallInboundCellularFirewallRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallInboundCellularFirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/inboundCellularFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2570,11 +2515,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallInboundCellularFirewallRul @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-inbound-firewall-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallInboundFirewallRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallInboundFirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/inboundFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2603,11 +2547,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallInboundFirewallRules(netwo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-l3-firewall-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallL3FirewallRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallL3FirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/l3FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2636,11 +2579,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallL3FirewallRules(networkID @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-l7-firewall-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallL7FirewallRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallL7FirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/l7FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2669,11 +2611,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallL7FirewallRules(networkID @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-l7-firewall-rules-application-categories */ func (s *ApplianceService) GetNetworkApplianceFirewallL7FirewallRulesApplicationCategories(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallL7FirewallRulesApplicationCategories, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/l7FirewallRules/applicationCategories" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2702,11 +2643,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallL7FirewallRulesApplication @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-one-to-many-nat-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallOneToManyNatRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallOneToManyNatRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/oneToManyNatRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2735,11 +2675,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallOneToManyNatRules(networkI @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-one-to-one-nat-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallOneToOneNatRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallOneToOneNatRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/oneToOneNatRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2768,11 +2707,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallOneToOneNatRules(networkID @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-port-forwarding-rules */ func (s *ApplianceService) GetNetworkApplianceFirewallPortForwardingRules(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallPortForwardingRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/portForwardingRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2801,11 +2739,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallPortForwardingRules(networ @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-firewall-settings */ func (s *ApplianceService) GetNetworkApplianceFirewallSettings(networkID string) (*ResponseApplianceGetNetworkApplianceFirewallSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2834,11 +2771,10 @@ func (s *ApplianceService) GetNetworkApplianceFirewallSettings(networkID string) @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-ports */ func (s *ApplianceService) GetNetworkAppliancePorts(networkID string) (*ResponseApplianceGetNetworkAppliancePorts, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/ports" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2868,11 +2804,10 @@ func (s *ApplianceService) GetNetworkAppliancePorts(networkID string) (*Response @param networkID networkId path parameter. Network ID @param portID portId path parameter. Port ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-port */ func (s *ApplianceService) GetNetworkAppliancePort(networkID string, portID string) (*ResponseApplianceGetNetworkAppliancePort, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/ports/{portId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{portId}", fmt.Sprintf("%v", portID), -1) @@ -2902,11 +2837,10 @@ func (s *ApplianceService) GetNetworkAppliancePort(networkID string, portID stri @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-prefixes-delegated-statics */ func (s *ApplianceService) GetNetworkAppliancePrefixesDelegatedStatics(networkID string) (*ResponseApplianceGetNetworkAppliancePrefixesDelegatedStatics, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/prefixes/delegated/statics" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2936,11 +2870,10 @@ func (s *ApplianceService) GetNetworkAppliancePrefixesDelegatedStatics(networkID @param networkID networkId path parameter. Network ID @param staticDelegatedPrefixID staticDelegatedPrefixId path parameter. Static delegated prefix ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-prefixes-delegated-static */ func (s *ApplianceService) GetNetworkAppliancePrefixesDelegatedStatic(networkID string, staticDelegatedPrefixID string) (*ResponseApplianceGetNetworkAppliancePrefixesDelegatedStatic, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/prefixes/delegated/statics/{staticDelegatedPrefixId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{staticDelegatedPrefixId}", fmt.Sprintf("%v", staticDelegatedPrefixID), -1) @@ -2971,11 +2904,10 @@ func (s *ApplianceService) GetNetworkAppliancePrefixesDelegatedStatic(networkID @param networkID networkId path parameter. Network ID @param getNetworkApplianceSecurityEventsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-security-events */ func (s *ApplianceService) GetNetworkApplianceSecurityEvents(networkID string, getNetworkApplianceSecurityEventsQueryParams *GetNetworkApplianceSecurityEventsQueryParams) (*ResponseApplianceGetNetworkApplianceSecurityEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/security/events" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkApplianceSecurityEventsQueryParams) @@ -3006,11 +2938,10 @@ func (s *ApplianceService) GetNetworkApplianceSecurityEvents(networkID string, g @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-security-intrusion */ func (s *ApplianceService) GetNetworkApplianceSecurityIntrusion(networkID string) (*ResponseApplianceGetNetworkApplianceSecurityIntrusion, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/security/intrusion" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3039,11 +2970,10 @@ func (s *ApplianceService) GetNetworkApplianceSecurityIntrusion(networkID string @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-security-malware */ func (s *ApplianceService) GetNetworkApplianceSecurityMalware(networkID string) (*ResponseApplianceGetNetworkApplianceSecurityMalware, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/security/malware" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3072,11 +3002,10 @@ func (s *ApplianceService) GetNetworkApplianceSecurityMalware(networkID string) @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-settings */ func (s *ApplianceService) GetNetworkApplianceSettings(networkID string) (*ResponseApplianceGetNetworkApplianceSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3105,11 +3034,10 @@ func (s *ApplianceService) GetNetworkApplianceSettings(networkID string) (*Respo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-single-lan */ func (s *ApplianceService) GetNetworkApplianceSingleLan(networkID string) (*ResponseApplianceGetNetworkApplianceSingleLan, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/singleLan" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3138,11 +3066,10 @@ func (s *ApplianceService) GetNetworkApplianceSingleLan(networkID string) (*Resp @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-ssids */ func (s *ApplianceService) GetNetworkApplianceSSIDs(networkID string) (*ResponseApplianceGetNetworkApplianceSSIDs, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/ssids" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3172,11 +3099,10 @@ func (s *ApplianceService) GetNetworkApplianceSSIDs(networkID string) (*Response @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-ssid */ func (s *ApplianceService) GetNetworkApplianceSSID(networkID string, number string) (*ResponseApplianceGetNetworkApplianceSSID, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/ssids/{number}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3206,11 +3132,10 @@ func (s *ApplianceService) GetNetworkApplianceSSID(networkID string, number stri @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-static-routes */ func (s *ApplianceService) GetNetworkApplianceStaticRoutes(networkID string) (*ResponseApplianceGetNetworkApplianceStaticRoutes, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/staticRoutes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3240,11 +3165,10 @@ func (s *ApplianceService) GetNetworkApplianceStaticRoutes(networkID string) (*R @param networkID networkId path parameter. Network ID @param staticRouteID staticRouteId path parameter. Static route ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-static-route */ func (s *ApplianceService) GetNetworkApplianceStaticRoute(networkID string, staticRouteID string) (*ResponseApplianceGetNetworkApplianceStaticRoute, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -3274,11 +3198,10 @@ func (s *ApplianceService) GetNetworkApplianceStaticRoute(networkID string, stat @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-traffic-shaping */ func (s *ApplianceService) GetNetworkApplianceTrafficShaping(networkID string) (*ResponseApplianceGetNetworkApplianceTrafficShaping, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3307,11 +3230,10 @@ func (s *ApplianceService) GetNetworkApplianceTrafficShaping(networkID string) ( @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-traffic-shaping-custom-performance-classes */ func (s *ApplianceService) GetNetworkApplianceTrafficShapingCustomPerformanceClasses(networkID string) (*ResponseApplianceGetNetworkApplianceTrafficShapingCustomPerformanceClasses, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/customPerformanceClasses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3341,11 +3263,10 @@ func (s *ApplianceService) GetNetworkApplianceTrafficShapingCustomPerformanceCla @param networkID networkId path parameter. Network ID @param customPerformanceClassID customPerformanceClassId path parameter. Custom performance class ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-traffic-shaping-custom-performance-class */ func (s *ApplianceService) GetNetworkApplianceTrafficShapingCustomPerformanceClass(networkID string, customPerformanceClassID string) (*ResponseApplianceGetNetworkApplianceTrafficShapingCustomPerformanceClass, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/customPerformanceClasses/{customPerformanceClassId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{customPerformanceClassId}", fmt.Sprintf("%v", customPerformanceClassID), -1) @@ -3375,11 +3296,10 @@ func (s *ApplianceService) GetNetworkApplianceTrafficShapingCustomPerformanceCla @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-traffic-shaping-rules */ func (s *ApplianceService) GetNetworkApplianceTrafficShapingRules(networkID string) (*ResponseApplianceGetNetworkApplianceTrafficShapingRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/rules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3408,11 +3328,10 @@ func (s *ApplianceService) GetNetworkApplianceTrafficShapingRules(networkID stri @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-traffic-shaping-uplink-bandwidth */ func (s *ApplianceService) GetNetworkApplianceTrafficShapingUplinkBandwidth(networkID string) (*ResponseApplianceGetNetworkApplianceTrafficShapingUplinkBandwidth, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/uplinkBandwidth" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3441,11 +3360,10 @@ func (s *ApplianceService) GetNetworkApplianceTrafficShapingUplinkBandwidth(netw @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-traffic-shaping-uplink-selection */ func (s *ApplianceService) GetNetworkApplianceTrafficShapingUplinkSelection(networkID string) (*ResponseApplianceGetNetworkApplianceTrafficShapingUplinkSelection, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/uplinkSelection" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3475,11 +3393,10 @@ func (s *ApplianceService) GetNetworkApplianceTrafficShapingUplinkSelection(netw @param networkID networkId path parameter. Network ID @param getNetworkApplianceUplinksUsageHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-uplinks-usage-history */ func (s *ApplianceService) GetNetworkApplianceUplinksUsageHistory(networkID string, getNetworkApplianceUplinksUsageHistoryQueryParams *GetNetworkApplianceUplinksUsageHistoryQueryParams) (*ResponseApplianceGetNetworkApplianceUplinksUsageHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/uplinks/usageHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkApplianceUplinksUsageHistoryQueryParams) @@ -3510,11 +3427,10 @@ func (s *ApplianceService) GetNetworkApplianceUplinksUsageHistory(networkID stri @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-vlans */ func (s *ApplianceService) GetNetworkApplianceVLANs(networkID string) (*ResponseApplianceGetNetworkApplianceVLANs, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vlans" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3547,11 +3463,10 @@ func (s *ApplianceService) GetNetworkApplianceVLANs(networkID string) (*Response @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-vlans-settings */ func (s *ApplianceService) GetNetworkApplianceVLANsSettings(networkID string) (*ResponseApplianceGetNetworkApplianceVLANsSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vlans/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3581,11 +3496,10 @@ func (s *ApplianceService) GetNetworkApplianceVLANsSettings(networkID string) (* @param networkID networkId path parameter. Network ID @param vlanID vlanId path parameter. Vlan ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-vlan */ func (s *ApplianceService) GetNetworkApplianceVLAN(networkID string, vlanID string) (*ResponseApplianceGetNetworkApplianceVLAN, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vlans/{vlanId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{vlanId}", fmt.Sprintf("%v", vlanID), -1) @@ -3615,11 +3529,10 @@ func (s *ApplianceService) GetNetworkApplianceVLAN(networkID string, vlanID stri @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-vpn-bgp */ func (s *ApplianceService) GetNetworkApplianceVpnBgp(networkID string) (*ResponseApplianceGetNetworkApplianceVpnBgp, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vpn/bgp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3648,11 +3561,10 @@ func (s *ApplianceService) GetNetworkApplianceVpnBgp(networkID string) (*Respons @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-vpn-site-to-site-vpn */ func (s *ApplianceService) GetNetworkApplianceVpnSiteToSiteVpn(networkID string) (*ResponseApplianceGetNetworkApplianceVpnSiteToSiteVpn, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vpn/siteToSiteVpn" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3681,11 +3593,10 @@ func (s *ApplianceService) GetNetworkApplianceVpnSiteToSiteVpn(networkID string) @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-appliance-warm-spare */ func (s *ApplianceService) GetNetworkApplianceWarmSpare(networkID string) (*ResponseApplianceGetNetworkApplianceWarmSpare, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/warmSpare" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3715,11 +3626,10 @@ func (s *ApplianceService) GetNetworkApplianceWarmSpare(networkID string) (*Resp @param organizationID organizationId path parameter. Organization ID @param getOrganizationApplianceSecurityEventsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-appliance-security-events */ func (s *ApplianceService) GetOrganizationApplianceSecurityEvents(organizationID string, getOrganizationApplianceSecurityEventsQueryParams *GetOrganizationApplianceSecurityEventsQueryParams) (*ResponseApplianceGetOrganizationApplianceSecurityEvents, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/security/events" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationApplianceSecurityEventsQueryParams) @@ -3750,11 +3660,10 @@ func (s *ApplianceService) GetOrganizationApplianceSecurityEvents(organizationID @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-appliance-security-intrusion */ func (s *ApplianceService) GetOrganizationApplianceSecurityIntrusion(organizationID string) (*ResponseApplianceGetOrganizationApplianceSecurityIntrusion, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/security/intrusion" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3784,11 +3693,10 @@ func (s *ApplianceService) GetOrganizationApplianceSecurityIntrusion(organizatio @param organizationID organizationId path parameter. Organization ID @param getOrganizationApplianceUplinkStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-appliance-uplink-statuses */ func (s *ApplianceService) GetOrganizationApplianceUplinkStatuses(organizationID string, getOrganizationApplianceUplinkStatusesQueryParams *GetOrganizationApplianceUplinkStatusesQueryParams) (*ResponseApplianceGetOrganizationApplianceUplinkStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/uplink/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationApplianceUplinkStatusesQueryParams) @@ -3820,11 +3728,10 @@ func (s *ApplianceService) GetOrganizationApplianceUplinkStatuses(organizationID @param organizationID organizationId path parameter. Organization ID @param getOrganizationApplianceVpnStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-appliance-vpn-stats */ func (s *ApplianceService) GetOrganizationApplianceVpnStats(organizationID string, getOrganizationApplianceVpnStatsQueryParams *GetOrganizationApplianceVpnStatsQueryParams) (*ResponseApplianceGetOrganizationApplianceVpnStats, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/vpn/stats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationApplianceVpnStatsQueryParams) @@ -3856,11 +3763,10 @@ func (s *ApplianceService) GetOrganizationApplianceVpnStats(organizationID strin @param organizationID organizationId path parameter. Organization ID @param getOrganizationApplianceVpnStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-appliance-vpn-statuses */ func (s *ApplianceService) GetOrganizationApplianceVpnStatuses(organizationID string, getOrganizationApplianceVpnStatusesQueryParams *GetOrganizationApplianceVpnStatusesQueryParams) (*ResponseApplianceGetOrganizationApplianceVpnStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/vpn/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationApplianceVpnStatusesQueryParams) @@ -3891,11 +3797,10 @@ func (s *ApplianceService) GetOrganizationApplianceVpnStatuses(organizationID st @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-appliance-vpn-third-party-vpnpeers */ func (s *ApplianceService) GetOrganizationApplianceVpnThirdPartyVpnpeers(organizationID string) (*ResponseApplianceGetOrganizationApplianceVpnThirdPartyVpnpeers, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/vpn/thirdPartyVPNPeers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3924,11 +3829,10 @@ func (s *ApplianceService) GetOrganizationApplianceVpnThirdPartyVpnpeers(organiz @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-appliance-vpn-vpn-firewall-rules */ func (s *ApplianceService) GetOrganizationApplianceVpnVpnFirewallRules(organizationID string) (*ResponseApplianceGetOrganizationApplianceVpnVpnFirewallRules, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/vpn/vpnFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3957,12 +3861,11 @@ func (s *ApplianceService) GetOrganizationApplianceVpnVpnFirewallRules(organizat @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-device-appliance-vmx-authentication-token */ func (s *ApplianceService) CreateDeviceApplianceVmxAuthenticationToken(serial string) (*ResponseApplianceCreateDeviceApplianceVmxAuthenticationToken, *resty.Response, error) { path := "/api/v1/devices/{serial}/appliance/vmx/authenticationToken" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -3991,12 +3894,11 @@ func (s *ApplianceService) CreateDeviceApplianceVmxAuthenticationToken(serial st @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-appliance-prefixes-delegated-static */ func (s *ApplianceService) CreateNetworkAppliancePrefixesDelegatedStatic(networkID string, requestApplianceCreateNetworkAppliancePrefixesDelegatedStatic *RequestApplianceCreateNetworkAppliancePrefixesDelegatedStatic) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/prefixes/delegated/statics" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4025,12 +3927,11 @@ func (s *ApplianceService) CreateNetworkAppliancePrefixesDelegatedStatic(network @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-appliance-static-route */ func (s *ApplianceService) CreateNetworkApplianceStaticRoute(networkID string, requestApplianceCreateNetworkApplianceStaticRoute *RequestApplianceCreateNetworkApplianceStaticRoute) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/staticRoutes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4059,12 +3960,11 @@ func (s *ApplianceService) CreateNetworkApplianceStaticRoute(networkID string, r @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-appliance-traffic-shaping-custom-performance-class */ func (s *ApplianceService) CreateNetworkApplianceTrafficShapingCustomPerformanceClass(networkID string, requestApplianceCreateNetworkApplianceTrafficShapingCustomPerformanceClass *RequestApplianceCreateNetworkApplianceTrafficShapingCustomPerformanceClass) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/customPerformanceClasses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4093,12 +3993,11 @@ func (s *ApplianceService) CreateNetworkApplianceTrafficShapingCustomPerformance @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-appliance-vlan */ func (s *ApplianceService) CreateNetworkApplianceVLAN(networkID string, requestApplianceCreateNetworkApplianceVlan *RequestApplianceCreateNetworkApplianceVLAN) (*ResponseApplianceCreateNetworkApplianceVLAN, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vlans" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4128,12 +4027,11 @@ func (s *ApplianceService) CreateNetworkApplianceVLAN(networkID string, requestA @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!swap-network-appliance-warm-spare */ func (s *ApplianceService) SwapNetworkApplianceWarmSpare(networkID string) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/warmSpare/swap" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4164,7 +4062,6 @@ func (s *ApplianceService) SwapNetworkApplianceWarmSpare(networkID string) (*res */ func (s *ApplianceService) UpdateDeviceApplianceUplinksSettings(serial string, requestApplianceUpdateDeviceApplianceUplinksSettings *RequestApplianceUpdateDeviceApplianceUplinksSettings) (*ResponseApplianceUpdateDeviceApplianceUplinksSettings, *resty.Response, error) { path := "/api/v1/devices/{serial}/appliance/uplinks/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -4196,7 +4093,6 @@ func (s *ApplianceService) UpdateDeviceApplianceUplinksSettings(serial string, r */ func (s *ApplianceService) UpdateNetworkApplianceConnectivityMonitoringDestinations(networkID string, requestApplianceUpdateNetworkApplianceConnectivityMonitoringDestinations *RequestApplianceUpdateNetworkApplianceConnectivityMonitoringDestinations) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/connectivityMonitoringDestinations" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4226,7 +4122,6 @@ func (s *ApplianceService) UpdateNetworkApplianceConnectivityMonitoringDestinati */ func (s *ApplianceService) UpdateNetworkApplianceContentFiltering(networkID string, requestApplianceUpdateNetworkApplianceContentFiltering *RequestApplianceUpdateNetworkApplianceContentFiltering) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/contentFiltering" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4256,7 +4151,6 @@ func (s *ApplianceService) UpdateNetworkApplianceContentFiltering(networkID stri */ func (s *ApplianceService) UpdateNetworkApplianceFirewallCellularFirewallRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallCellularFirewallRules *RequestApplianceUpdateNetworkApplianceFirewallCellularFirewallRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/cellularFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4287,7 +4181,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallCellularFirewallRules(n */ func (s *ApplianceService) UpdateNetworkApplianceFirewallFirewalledService(networkID string, service string, requestApplianceUpdateNetworkApplianceFirewallFirewalledService *RequestApplianceUpdateNetworkApplianceFirewallFirewalledService) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/firewalledServices/{service}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{service}", fmt.Sprintf("%v", service), -1) @@ -4318,7 +4211,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallFirewalledService(netwo */ func (s *ApplianceService) UpdateNetworkApplianceFirewallInboundCellularFirewallRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallInboundCellularFirewallRules *RequestApplianceUpdateNetworkApplianceFirewallInboundCellularFirewallRules) (*ResponseApplianceUpdateNetworkApplianceFirewallInboundCellularFirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/inboundCellularFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4350,7 +4242,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallInboundCellularFirewall */ func (s *ApplianceService) UpdateNetworkApplianceFirewallInboundFirewallRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallInboundFirewallRules *RequestApplianceUpdateNetworkApplianceFirewallInboundFirewallRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/inboundFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4380,7 +4271,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallInboundFirewallRules(ne */ func (s *ApplianceService) UpdateNetworkApplianceFirewallL3FirewallRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallL3FirewallRules *RequestApplianceUpdateNetworkApplianceFirewallL3FirewallRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/l3FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4410,7 +4300,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallL3FirewallRules(network */ func (s *ApplianceService) UpdateNetworkApplianceFirewallL7FirewallRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallL7FirewallRules *RequestApplianceUpdateNetworkApplianceFirewallL7FirewallRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/l7FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4440,7 +4329,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallL7FirewallRules(network */ func (s *ApplianceService) UpdateNetworkApplianceFirewallOneToManyNatRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallOneToManyNatRules *RequestApplianceUpdateNetworkApplianceFirewallOneToManyNatRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/oneToManyNatRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4470,7 +4358,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallOneToManyNatRules(netwo */ func (s *ApplianceService) UpdateNetworkApplianceFirewallOneToOneNatRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallOneToOneNatRules *RequestApplianceUpdateNetworkApplianceFirewallOneToOneNatRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/oneToOneNatRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4500,7 +4387,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallOneToOneNatRules(networ */ func (s *ApplianceService) UpdateNetworkApplianceFirewallPortForwardingRules(networkID string, requestApplianceUpdateNetworkApplianceFirewallPortForwardingRules *RequestApplianceUpdateNetworkApplianceFirewallPortForwardingRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/portForwardingRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4530,7 +4416,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallPortForwardingRules(net */ func (s *ApplianceService) UpdateNetworkApplianceFirewallSettings(networkID string, requestApplianceUpdateNetworkApplianceFirewallSettings *RequestApplianceUpdateNetworkApplianceFirewallSettings) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/firewall/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4561,7 +4446,6 @@ func (s *ApplianceService) UpdateNetworkApplianceFirewallSettings(networkID stri */ func (s *ApplianceService) UpdateNetworkAppliancePort(networkID string, portID string, requestApplianceUpdateNetworkAppliancePort *RequestApplianceUpdateNetworkAppliancePort) (*ResponseApplianceUpdateNetworkAppliancePort, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/ports/{portId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{portId}", fmt.Sprintf("%v", portID), -1) @@ -4595,7 +4479,6 @@ func (s *ApplianceService) UpdateNetworkAppliancePort(networkID string, portID s */ func (s *ApplianceService) UpdateNetworkAppliancePrefixesDelegatedStatic(networkID string, staticDelegatedPrefixID string, requestApplianceUpdateNetworkAppliancePrefixesDelegatedStatic *RequestApplianceUpdateNetworkAppliancePrefixesDelegatedStatic) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/prefixes/delegated/statics/{staticDelegatedPrefixId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{staticDelegatedPrefixId}", fmt.Sprintf("%v", staticDelegatedPrefixID), -1) @@ -4626,7 +4509,6 @@ func (s *ApplianceService) UpdateNetworkAppliancePrefixesDelegatedStatic(network */ func (s *ApplianceService) UpdateNetworkApplianceSecurityIntrusion(networkID string, requestApplianceUpdateNetworkApplianceSecurityIntrusion *RequestApplianceUpdateNetworkApplianceSecurityIntrusion) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/security/intrusion" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4656,7 +4538,6 @@ func (s *ApplianceService) UpdateNetworkApplianceSecurityIntrusion(networkID str */ func (s *ApplianceService) UpdateNetworkApplianceSecurityMalware(networkID string, requestApplianceUpdateNetworkApplianceSecurityMalware *RequestApplianceUpdateNetworkApplianceSecurityMalware) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/security/malware" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4686,7 +4567,6 @@ func (s *ApplianceService) UpdateNetworkApplianceSecurityMalware(networkID strin */ func (s *ApplianceService) UpdateNetworkApplianceSettings(networkID string, requestApplianceUpdateNetworkApplianceSettings *RequestApplianceUpdateNetworkApplianceSettings) (*ResponseApplianceUpdateNetworkApplianceSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4718,7 +4598,6 @@ func (s *ApplianceService) UpdateNetworkApplianceSettings(networkID string, requ */ func (s *ApplianceService) UpdateNetworkApplianceSingleLan(networkID string, requestApplianceUpdateNetworkApplianceSingleLan *RequestApplianceUpdateNetworkApplianceSingleLan) (*ResponseApplianceUpdateNetworkApplianceSingleLan, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/singleLan" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4751,7 +4630,6 @@ func (s *ApplianceService) UpdateNetworkApplianceSingleLan(networkID string, req */ func (s *ApplianceService) UpdateNetworkApplianceSSID(networkID string, number string, requestApplianceUpdateNetworkApplianceSsid *RequestApplianceUpdateNetworkApplianceSSID) (*ResponseApplianceUpdateNetworkApplianceSSID, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/ssids/{number}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4785,7 +4663,6 @@ func (s *ApplianceService) UpdateNetworkApplianceSSID(networkID string, number s */ func (s *ApplianceService) UpdateNetworkApplianceStaticRoute(networkID string, staticRouteID string, requestApplianceUpdateNetworkApplianceStaticRoute *RequestApplianceUpdateNetworkApplianceStaticRoute) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -4816,7 +4693,6 @@ func (s *ApplianceService) UpdateNetworkApplianceStaticRoute(networkID string, s */ func (s *ApplianceService) UpdateNetworkApplianceTrafficShaping(networkID string, requestApplianceUpdateNetworkApplianceTrafficShaping *RequestApplianceUpdateNetworkApplianceTrafficShaping) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4847,7 +4723,6 @@ func (s *ApplianceService) UpdateNetworkApplianceTrafficShaping(networkID string */ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingCustomPerformanceClass(networkID string, customPerformanceClassID string, requestApplianceUpdateNetworkApplianceTrafficShapingCustomPerformanceClass *RequestApplianceUpdateNetworkApplianceTrafficShapingCustomPerformanceClass) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/customPerformanceClasses/{customPerformanceClassId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{customPerformanceClassId}", fmt.Sprintf("%v", customPerformanceClassID), -1) @@ -4878,7 +4753,6 @@ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingCustomPerformance */ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingRules(networkID string, requestApplianceUpdateNetworkApplianceTrafficShapingRules *RequestApplianceUpdateNetworkApplianceTrafficShapingRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/rules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4908,7 +4782,6 @@ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingRules(networkID s */ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingUplinkBandwidth(networkID string, requestApplianceUpdateNetworkApplianceTrafficShapingUplinkBandwidth *RequestApplianceUpdateNetworkApplianceTrafficShapingUplinkBandwidth) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/uplinkBandwidth" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4938,7 +4811,6 @@ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingUplinkBandwidth(n */ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingUplinkSelection(networkID string, requestApplianceUpdateNetworkApplianceTrafficShapingUplinkSelection *RequestApplianceUpdateNetworkApplianceTrafficShapingUplinkSelection) (*ResponseApplianceUpdateNetworkApplianceTrafficShapingUplinkSelection, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/trafficShaping/uplinkSelection" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4970,7 +4842,6 @@ func (s *ApplianceService) UpdateNetworkApplianceTrafficShapingUplinkSelection(n */ func (s *ApplianceService) UpdateNetworkApplianceVLANsSettings(networkID string, requestApplianceUpdateNetworkApplianceVlansSettings *RequestApplianceUpdateNetworkApplianceVLANsSettings) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vlans/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5001,7 +4872,6 @@ func (s *ApplianceService) UpdateNetworkApplianceVLANsSettings(networkID string, */ func (s *ApplianceService) UpdateNetworkApplianceVLAN(networkID string, vlanID string, requestApplianceUpdateNetworkApplianceVlan *RequestApplianceUpdateNetworkApplianceVLAN) (*ResponseApplianceUpdateNetworkApplianceVLAN, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vlans/{vlanId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{vlanId}", fmt.Sprintf("%v", vlanID), -1) @@ -5034,7 +4904,6 @@ func (s *ApplianceService) UpdateNetworkApplianceVLAN(networkID string, vlanID s */ func (s *ApplianceService) UpdateNetworkApplianceVpnBgp(networkID string, requestApplianceUpdateNetworkApplianceVpnBgp *RequestApplianceUpdateNetworkApplianceVpnBgp) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vpn/bgp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5064,7 +4933,6 @@ func (s *ApplianceService) UpdateNetworkApplianceVpnBgp(networkID string, reques */ func (s *ApplianceService) UpdateNetworkApplianceVpnSiteToSiteVpn(networkID string, requestApplianceUpdateNetworkApplianceVpnSiteToSiteVpn *RequestApplianceUpdateNetworkApplianceVpnSiteToSiteVpn) (*ResponseApplianceUpdateNetworkApplianceVpnSiteToSiteVpn, *resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/vpn/siteToSiteVpn" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5096,7 +4964,6 @@ func (s *ApplianceService) UpdateNetworkApplianceVpnSiteToSiteVpn(networkID stri */ func (s *ApplianceService) UpdateNetworkApplianceWarmSpare(networkID string, requestApplianceUpdateNetworkApplianceWarmSpare *RequestApplianceUpdateNetworkApplianceWarmSpare) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/appliance/warmSpare" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5126,7 +4993,6 @@ func (s *ApplianceService) UpdateNetworkApplianceWarmSpare(networkID string, req */ func (s *ApplianceService) UpdateOrganizationApplianceSecurityIntrusion(organizationID string, requestApplianceUpdateOrganizationApplianceSecurityIntrusion *RequestApplianceUpdateOrganizationApplianceSecurityIntrusion) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/security/intrusion" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5156,7 +5022,6 @@ func (s *ApplianceService) UpdateOrganizationApplianceSecurityIntrusion(organiza */ func (s *ApplianceService) UpdateOrganizationApplianceVpnThirdPartyVpnpeers(organizationID string, requestApplianceUpdateOrganizationApplianceVpnThirdPartyVPNPeers *RequestApplianceUpdateOrganizationApplianceVpnThirdPartyVpnpeers) (*ResponseApplianceUpdateOrganizationApplianceVpnThirdPartyVpnpeers, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/vpn/thirdPartyVPNPeers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5188,7 +5053,6 @@ func (s *ApplianceService) UpdateOrganizationApplianceVpnThirdPartyVpnpeers(orga */ func (s *ApplianceService) UpdateOrganizationApplianceVpnVpnFirewallRules(organizationID string, requestApplianceUpdateOrganizationApplianceVpnVpnFirewallRules *RequestApplianceUpdateOrganizationApplianceVpnVpnFirewallRules) (*ResponseApplianceUpdateOrganizationApplianceVpnVpnFirewallRules, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/appliance/vpn/vpnFirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5219,12 +5083,11 @@ func (s *ApplianceService) UpdateOrganizationApplianceVpnVpnFirewallRules(organi @param networkID networkId path parameter. Network ID @param staticDelegatedPrefixID staticDelegatedPrefixId path parameter. Static delegated prefix ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-appliance-prefixes-delegated-static */ func (s *ApplianceService) DeleteNetworkAppliancePrefixesDelegatedStatic(networkID string, staticDelegatedPrefixID string) (*resty.Response, error) { //networkID string,staticDelegatedPrefixID string path := "/api/v1/networks/{networkId}/appliance/prefixes/delegated/statics/{staticDelegatedPrefixId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{staticDelegatedPrefixId}", fmt.Sprintf("%v", staticDelegatedPrefixID), -1) @@ -5253,12 +5116,11 @@ func (s *ApplianceService) DeleteNetworkAppliancePrefixesDelegatedStatic(network @param networkID networkId path parameter. Network ID @param staticRouteID staticRouteId path parameter. Static route ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-appliance-static-route */ func (s *ApplianceService) DeleteNetworkApplianceStaticRoute(networkID string, staticRouteID string) (*resty.Response, error) { //networkID string,staticRouteID string path := "/api/v1/networks/{networkId}/appliance/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -5287,12 +5149,11 @@ func (s *ApplianceService) DeleteNetworkApplianceStaticRoute(networkID string, s @param networkID networkId path parameter. Network ID @param customPerformanceClassID customPerformanceClassId path parameter. Custom performance class ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-appliance-traffic-shaping-custom-performance-class */ func (s *ApplianceService) DeleteNetworkApplianceTrafficShapingCustomPerformanceClass(networkID string, customPerformanceClassID string) (*resty.Response, error) { //networkID string,customPerformanceClassID string path := "/api/v1/networks/{networkId}/appliance/trafficShaping/customPerformanceClasses/{customPerformanceClassId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{customPerformanceClassId}", fmt.Sprintf("%v", customPerformanceClassID), -1) @@ -5321,12 +5182,11 @@ func (s *ApplianceService) DeleteNetworkApplianceTrafficShapingCustomPerformance @param networkID networkId path parameter. Network ID @param vlanID vlanId path parameter. Vlan ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-appliance-vlan */ func (s *ApplianceService) DeleteNetworkApplianceVLAN(networkID string, vlanID string) (*resty.Response, error) { //networkID string,vlanID string path := "/api/v1/networks/{networkId}/appliance/vlans/{vlanId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{vlanId}", fmt.Sprintf("%v", vlanID), -1) diff --git a/sdk/camera.go b/sdk/camera.go index f7389143a..3094ea000 100644 --- a/sdk/camera.go +++ b/sdk/camera.go @@ -503,11 +503,10 @@ type RequestCameraUpdateOrganizationCameraOnboardingStatuses struct { @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-analytics-live */ func (s *CameraService) GetDeviceCameraAnalyticsLive(serial string) (*ResponseCameraGetDeviceCameraAnalyticsLive, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/analytics/live" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -537,11 +536,10 @@ func (s *CameraService) GetDeviceCameraAnalyticsLive(serial string) (*ResponseCa @param serial serial path parameter. @param getDeviceCameraAnalyticsOverviewQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-analytics-overview */ func (s *CameraService) GetDeviceCameraAnalyticsOverview(serial string, getDeviceCameraAnalyticsOverviewQueryParams *GetDeviceCameraAnalyticsOverviewQueryParams) (*ResponseCameraGetDeviceCameraAnalyticsOverview, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/analytics/overview" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceCameraAnalyticsOverviewQueryParams) @@ -573,11 +571,10 @@ func (s *CameraService) GetDeviceCameraAnalyticsOverview(serial string, getDevic @param serial serial path parameter. @param getDeviceCameraAnalyticsRecentQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-analytics-recent */ func (s *CameraService) GetDeviceCameraAnalyticsRecent(serial string, getDeviceCameraAnalyticsRecentQueryParams *GetDeviceCameraAnalyticsRecentQueryParams) (*ResponseCameraGetDeviceCameraAnalyticsRecent, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/analytics/recent" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceCameraAnalyticsRecentQueryParams) @@ -608,11 +605,10 @@ func (s *CameraService) GetDeviceCameraAnalyticsRecent(serial string, getDeviceC @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-analytics-zones */ func (s *CameraService) GetDeviceCameraAnalyticsZones(serial string) (*ResponseCameraGetDeviceCameraAnalyticsZones, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/analytics/zones" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -643,11 +639,10 @@ func (s *CameraService) GetDeviceCameraAnalyticsZones(serial string) (*ResponseC @param zoneID zoneId path parameter. Zone ID @param getDeviceCameraAnalyticsZoneHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-analytics-zone-history */ func (s *CameraService) GetDeviceCameraAnalyticsZoneHistory(serial string, zoneID string, getDeviceCameraAnalyticsZoneHistoryQueryParams *GetDeviceCameraAnalyticsZoneHistoryQueryParams) (*ResponseCameraGetDeviceCameraAnalyticsZoneHistory, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/analytics/zones/{zoneId}/history" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{zoneId}", fmt.Sprintf("%v", zoneID), -1) @@ -679,11 +674,10 @@ func (s *CameraService) GetDeviceCameraAnalyticsZoneHistory(serial string, zoneI @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-custom-analytics */ func (s *CameraService) GetDeviceCameraCustomAnalytics(serial string) (*ResponseCameraGetDeviceCameraCustomAnalytics, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/customAnalytics" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -712,11 +706,10 @@ func (s *CameraService) GetDeviceCameraCustomAnalytics(serial string) (*Response @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-quality-and-retention */ func (s *CameraService) GetDeviceCameraQualityAndRetention(serial string) (*ResponseCameraGetDeviceCameraQualityAndRetention, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/qualityAndRetention" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -745,11 +738,10 @@ func (s *CameraService) GetDeviceCameraQualityAndRetention(serial string) (*Resp @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-sense */ func (s *CameraService) GetDeviceCameraSense(serial string) (*ResponseCameraGetDeviceCameraSense, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/sense" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -778,11 +770,10 @@ func (s *CameraService) GetDeviceCameraSense(serial string) (*ResponseCameraGetD @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-sense-object-detection-models */ func (s *CameraService) GetDeviceCameraSenseObjectDetectionModels(serial string) (*ResponseCameraGetDeviceCameraSenseObjectDetectionModels, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/sense/objectDetectionModels" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -811,11 +802,10 @@ func (s *CameraService) GetDeviceCameraSenseObjectDetectionModels(serial string) @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-video-settings */ func (s *CameraService) GetDeviceCameraVideoSettings(serial string) (*ResponseCameraGetDeviceCameraVideoSettings, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/video/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -845,11 +835,10 @@ func (s *CameraService) GetDeviceCameraVideoSettings(serial string) (*ResponseCa @param serial serial path parameter. @param getDeviceCameraVideoLinkQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-video-link */ func (s *CameraService) GetDeviceCameraVideoLink(serial string, getDeviceCameraVideoLinkQueryParams *GetDeviceCameraVideoLinkQueryParams) (*ResponseCameraGetDeviceCameraVideoLink, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/videoLink" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceCameraVideoLinkQueryParams) @@ -880,11 +869,10 @@ func (s *CameraService) GetDeviceCameraVideoLink(serial string, getDeviceCameraV @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-camera-wireless-profiles */ func (s *CameraService) GetDeviceCameraWirelessProfiles(serial string) (*ResponseCameraGetDeviceCameraWirelessProfiles, *resty.Response, error) { path := "/api/v1/devices/{serial}/camera/wirelessProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -913,11 +901,10 @@ func (s *CameraService) GetDeviceCameraWirelessProfiles(serial string) (*Respons @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-camera-quality-retention-profiles */ func (s *CameraService) GetNetworkCameraQualityRetentionProfiles(networkID string) (*ResponseCameraGetNetworkCameraQualityRetentionProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/qualityRetentionProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -947,11 +934,10 @@ func (s *CameraService) GetNetworkCameraQualityRetentionProfiles(networkID strin @param networkID networkId path parameter. Network ID @param qualityRetentionProfileID qualityRetentionProfileId path parameter. Quality retention profile ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-camera-quality-retention-profile */ func (s *CameraService) GetNetworkCameraQualityRetentionProfile(networkID string, qualityRetentionProfileID string) (*ResponseCameraGetNetworkCameraQualityRetentionProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/qualityRetentionProfiles/{qualityRetentionProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{qualityRetentionProfileId}", fmt.Sprintf("%v", qualityRetentionProfileID), -1) @@ -981,11 +967,10 @@ func (s *CameraService) GetNetworkCameraQualityRetentionProfile(networkID string @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-camera-schedules */ func (s *CameraService) GetNetworkCameraSchedules(networkID string) (*ResponseCameraGetNetworkCameraSchedules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/schedules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1014,11 +999,10 @@ func (s *CameraService) GetNetworkCameraSchedules(networkID string) (*ResponseCa @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-camera-wireless-profiles */ func (s *CameraService) GetNetworkCameraWirelessProfiles(networkID string) (*ResponseCameraGetNetworkCameraWirelessProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/wirelessProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1048,11 +1032,10 @@ func (s *CameraService) GetNetworkCameraWirelessProfiles(networkID string) (*Res @param networkID networkId path parameter. Network ID @param wirelessProfileID wirelessProfileId path parameter. Wireless profile ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-camera-wireless-profile */ func (s *CameraService) GetNetworkCameraWirelessProfile(networkID string, wirelessProfileID string) (*ResponseCameraGetNetworkCameraWirelessProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/wirelessProfiles/{wirelessProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{wirelessProfileId}", fmt.Sprintf("%v", wirelessProfileID), -1) @@ -1082,11 +1065,10 @@ func (s *CameraService) GetNetworkCameraWirelessProfile(networkID string, wirele @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-camera-custom-analytics-artifacts */ func (s *CameraService) GetOrganizationCameraCustomAnalyticsArtifacts(organizationID string) (*ResponseCameraGetOrganizationCameraCustomAnalyticsArtifacts, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/camera/customAnalytics/artifacts" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -1116,11 +1098,10 @@ func (s *CameraService) GetOrganizationCameraCustomAnalyticsArtifacts(organizati @param organizationID organizationId path parameter. Organization ID @param artifactID artifactId path parameter. Artifact ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-camera-custom-analytics-artifact */ func (s *CameraService) GetOrganizationCameraCustomAnalyticsArtifact(organizationID string, artifactID string) (*ResponseCameraGetOrganizationCameraCustomAnalyticsArtifact, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/camera/customAnalytics/artifacts/{artifactId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{artifactId}", fmt.Sprintf("%v", artifactID), -1) @@ -1151,11 +1132,10 @@ func (s *CameraService) GetOrganizationCameraCustomAnalyticsArtifact(organizatio @param organizationID organizationId path parameter. Organization ID @param getOrganizationCameraOnboardingStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-camera-onboarding-statuses */ func (s *CameraService) GetOrganizationCameraOnboardingStatuses(organizationID string, getOrganizationCameraOnboardingStatusesQueryParams *GetOrganizationCameraOnboardingStatusesQueryParams) (*ResponseCameraGetOrganizationCameraOnboardingStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/camera/onboarding/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationCameraOnboardingStatusesQueryParams) @@ -1186,12 +1166,11 @@ func (s *CameraService) GetOrganizationCameraOnboardingStatuses(organizationID s @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!generate-device-camera-snapshot */ func (s *CameraService) GenerateDeviceCameraSnapshot(serial string, requestCameraGenerateDeviceCameraSnapshot *RequestCameraGenerateDeviceCameraSnapshot) (*resty.Response, error) { path := "/api/v1/devices/{serial}/camera/generateSnapshot" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1220,12 +1199,11 @@ func (s *CameraService) GenerateDeviceCameraSnapshot(serial string, requestCamer @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-camera-quality-retention-profile */ func (s *CameraService) CreateNetworkCameraQualityRetentionProfile(networkID string, requestCameraCreateNetworkCameraQualityRetentionProfile *RequestCameraCreateNetworkCameraQualityRetentionProfile) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/qualityRetentionProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1254,12 +1232,11 @@ func (s *CameraService) CreateNetworkCameraQualityRetentionProfile(networkID str @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-camera-wireless-profile */ func (s *CameraService) CreateNetworkCameraWirelessProfile(networkID string, requestCameraCreateNetworkCameraWirelessProfile *RequestCameraCreateNetworkCameraWirelessProfile) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/wirelessProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1288,12 +1265,11 @@ func (s *CameraService) CreateNetworkCameraWirelessProfile(networkID string, req @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-camera-custom-analytics-artifact */ func (s *CameraService) CreateOrganizationCameraCustomAnalyticsArtifact(organizationID string, requestCameraCreateOrganizationCameraCustomAnalyticsArtifact *RequestCameraCreateOrganizationCameraCustomAnalyticsArtifact) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/camera/customAnalytics/artifacts" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -1324,7 +1300,6 @@ func (s *CameraService) CreateOrganizationCameraCustomAnalyticsArtifact(organiza */ func (s *CameraService) UpdateDeviceCameraCustomAnalytics(serial string, requestCameraUpdateDeviceCameraCustomAnalytics *RequestCameraUpdateDeviceCameraCustomAnalytics) (*resty.Response, error) { path := "/api/v1/devices/{serial}/camera/customAnalytics" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1354,7 +1329,6 @@ func (s *CameraService) UpdateDeviceCameraCustomAnalytics(serial string, request */ func (s *CameraService) UpdateDeviceCameraQualityAndRetention(serial string, requestCameraUpdateDeviceCameraQualityAndRetention *RequestCameraUpdateDeviceCameraQualityAndRetention) (*resty.Response, error) { path := "/api/v1/devices/{serial}/camera/qualityAndRetention" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1384,7 +1358,6 @@ func (s *CameraService) UpdateDeviceCameraQualityAndRetention(serial string, req */ func (s *CameraService) UpdateDeviceCameraSense(serial string, requestCameraUpdateDeviceCameraSense *RequestCameraUpdateDeviceCameraSense) (*resty.Response, error) { path := "/api/v1/devices/{serial}/camera/sense" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1414,7 +1387,6 @@ func (s *CameraService) UpdateDeviceCameraSense(serial string, requestCameraUpda */ func (s *CameraService) UpdateDeviceCameraVideoSettings(serial string, requestCameraUpdateDeviceCameraVideoSettings *RequestCameraUpdateDeviceCameraVideoSettings) (*resty.Response, error) { path := "/api/v1/devices/{serial}/camera/video/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1444,7 +1416,6 @@ func (s *CameraService) UpdateDeviceCameraVideoSettings(serial string, requestCa */ func (s *CameraService) UpdateDeviceCameraWirelessProfiles(serial string, requestCameraUpdateDeviceCameraWirelessProfiles *RequestCameraUpdateDeviceCameraWirelessProfiles) (*resty.Response, error) { path := "/api/v1/devices/{serial}/camera/wirelessProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1475,7 +1446,6 @@ func (s *CameraService) UpdateDeviceCameraWirelessProfiles(serial string, reques */ func (s *CameraService) UpdateNetworkCameraQualityRetentionProfile(networkID string, qualityRetentionProfileID string, requestCameraUpdateNetworkCameraQualityRetentionProfile *RequestCameraUpdateNetworkCameraQualityRetentionProfile) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/qualityRetentionProfiles/{qualityRetentionProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{qualityRetentionProfileId}", fmt.Sprintf("%v", qualityRetentionProfileID), -1) @@ -1507,7 +1477,6 @@ func (s *CameraService) UpdateNetworkCameraQualityRetentionProfile(networkID str */ func (s *CameraService) UpdateNetworkCameraWirelessProfile(networkID string, wirelessProfileID string, requestCameraUpdateNetworkCameraWirelessProfile *RequestCameraUpdateNetworkCameraWirelessProfile) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/camera/wirelessProfiles/{wirelessProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{wirelessProfileId}", fmt.Sprintf("%v", wirelessProfileID), -1) @@ -1538,7 +1507,6 @@ func (s *CameraService) UpdateNetworkCameraWirelessProfile(networkID string, wir */ func (s *CameraService) UpdateOrganizationCameraOnboardingStatuses(organizationID string, requestCameraUpdateOrganizationCameraOnboardingStatuses *RequestCameraUpdateOrganizationCameraOnboardingStatuses) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/camera/onboarding/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -1567,12 +1535,11 @@ func (s *CameraService) UpdateOrganizationCameraOnboardingStatuses(organizationI @param networkID networkId path parameter. Network ID @param qualityRetentionProfileID qualityRetentionProfileId path parameter. Quality retention profile ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-camera-quality-retention-profile */ func (s *CameraService) DeleteNetworkCameraQualityRetentionProfile(networkID string, qualityRetentionProfileID string) (*resty.Response, error) { //networkID string,qualityRetentionProfileID string path := "/api/v1/networks/{networkId}/camera/qualityRetentionProfiles/{qualityRetentionProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{qualityRetentionProfileId}", fmt.Sprintf("%v", qualityRetentionProfileID), -1) @@ -1601,12 +1568,11 @@ func (s *CameraService) DeleteNetworkCameraQualityRetentionProfile(networkID str @param networkID networkId path parameter. Network ID @param wirelessProfileID wirelessProfileId path parameter. Wireless profile ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-camera-wireless-profile */ func (s *CameraService) DeleteNetworkCameraWirelessProfile(networkID string, wirelessProfileID string) (*resty.Response, error) { //networkID string,wirelessProfileID string path := "/api/v1/networks/{networkId}/camera/wirelessProfiles/{wirelessProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{wirelessProfileId}", fmt.Sprintf("%v", wirelessProfileID), -1) @@ -1635,12 +1601,11 @@ func (s *CameraService) DeleteNetworkCameraWirelessProfile(networkID string, wir @param organizationID organizationId path parameter. Organization ID @param artifactID artifactId path parameter. Artifact ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-camera-custom-analytics-artifact */ func (s *CameraService) DeleteOrganizationCameraCustomAnalyticsArtifact(organizationID string, artifactID string) (*resty.Response, error) { //organizationID string,artifactID string path := "/api/v1/organizations/{organizationId}/camera/customAnalytics/artifacts/{artifactId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{artifactId}", fmt.Sprintf("%v", artifactID), -1) diff --git a/sdk/cellular_gateway.go b/sdk/cellular_gateway.go index e49208e12..dceeef280 100644 --- a/sdk/cellular_gateway.go +++ b/sdk/cellular_gateway.go @@ -174,11 +174,10 @@ type RequestCellularGatewayUpdateNetworkCellularGatewayUplinkBandwidthLimits str @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-cellular-gateway-lan */ func (s *CellularGatewayService) GetDeviceCellularGatewayLan(serial string) (*ResponseCellularGatewayGetDeviceCellularGatewayLan, *resty.Response, error) { path := "/api/v1/devices/{serial}/cellularGateway/lan" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -207,11 +206,10 @@ func (s *CellularGatewayService) GetDeviceCellularGatewayLan(serial string) (*Re @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-cellular-gateway-port-forwarding-rules */ func (s *CellularGatewayService) GetDeviceCellularGatewayPortForwardingRules(serial string) (*ResponseCellularGatewayGetDeviceCellularGatewayPortForwardingRules, *resty.Response, error) { path := "/api/v1/devices/{serial}/cellularGateway/portForwardingRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -240,11 +238,10 @@ func (s *CellularGatewayService) GetDeviceCellularGatewayPortForwardingRules(ser @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-cellular-gateway-connectivity-monitoring-destinations */ func (s *CellularGatewayService) GetNetworkCellularGatewayConnectivityMonitoringDestinations(networkID string) (*ResponseCellularGatewayGetNetworkCellularGatewayConnectivityMonitoringDestinations, *resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/connectivityMonitoringDestinations" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -273,11 +270,10 @@ func (s *CellularGatewayService) GetNetworkCellularGatewayConnectivityMonitoring @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-cellular-gateway-dhcp */ func (s *CellularGatewayService) GetNetworkCellularGatewayDhcp(networkID string) (*ResponseCellularGatewayGetNetworkCellularGatewayDhcp, *resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/dhcp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -306,11 +302,10 @@ func (s *CellularGatewayService) GetNetworkCellularGatewayDhcp(networkID string) @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-cellular-gateway-subnet-pool */ func (s *CellularGatewayService) GetNetworkCellularGatewaySubnetPool(networkID string) (*ResponseCellularGatewayGetNetworkCellularGatewaySubnetPool, *resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/subnetPool" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -339,11 +334,10 @@ func (s *CellularGatewayService) GetNetworkCellularGatewaySubnetPool(networkID s @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-cellular-gateway-uplink */ func (s *CellularGatewayService) GetNetworkCellularGatewayUplink(networkID string) (*ResponseCellularGatewayGetNetworkCellularGatewayUplink, *resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/uplink" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -373,11 +367,10 @@ func (s *CellularGatewayService) GetNetworkCellularGatewayUplink(networkID strin @param organizationID organizationId path parameter. Organization ID @param getOrganizationCellularGatewayUplinkStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-cellular-gateway-uplink-statuses */ func (s *CellularGatewayService) GetOrganizationCellularGatewayUplinkStatuses(organizationID string, getOrganizationCellularGatewayUplinkStatusesQueryParams *GetOrganizationCellularGatewayUplinkStatusesQueryParams) (*ResponseCellularGatewayGetOrganizationCellularGatewayUplinkStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/cellularGateway/uplink/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationCellularGatewayUplinkStatusesQueryParams) @@ -410,7 +403,6 @@ func (s *CellularGatewayService) GetOrganizationCellularGatewayUplinkStatuses(or */ func (s *CellularGatewayService) UpdateDeviceCellularGatewayLan(serial string, requestCellularGatewayUpdateDeviceCellularGatewayLan *RequestCellularGatewayUpdateDeviceCellularGatewayLan) (*resty.Response, error) { path := "/api/v1/devices/{serial}/cellularGateway/lan" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -440,7 +432,6 @@ func (s *CellularGatewayService) UpdateDeviceCellularGatewayLan(serial string, r */ func (s *CellularGatewayService) UpdateDeviceCellularGatewayPortForwardingRules(serial string, requestCellularGatewayUpdateDeviceCellularGatewayPortForwardingRules *RequestCellularGatewayUpdateDeviceCellularGatewayPortForwardingRules) (*resty.Response, error) { path := "/api/v1/devices/{serial}/cellularGateway/portForwardingRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -470,7 +461,6 @@ func (s *CellularGatewayService) UpdateDeviceCellularGatewayPortForwardingRules( */ func (s *CellularGatewayService) UpdateNetworkCellularGatewayConnectivityMonitoringDestinations(networkID string, requestCellularGatewayUpdateNetworkCellularGatewayConnectivityMonitoringDestinations *RequestCellularGatewayUpdateNetworkCellularGatewayConnectivityMonitoringDestinations) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/connectivityMonitoringDestinations" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -500,7 +490,6 @@ func (s *CellularGatewayService) UpdateNetworkCellularGatewayConnectivityMonitor */ func (s *CellularGatewayService) UpdateNetworkCellularGatewayDhcp(networkID string, requestCellularGatewayUpdateNetworkCellularGatewayDhcp *RequestCellularGatewayUpdateNetworkCellularGatewayDhcp) (*ResponseCellularGatewayUpdateNetworkCellularGatewayDhcp, *resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/dhcp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -532,7 +521,6 @@ func (s *CellularGatewayService) UpdateNetworkCellularGatewayDhcp(networkID stri */ func (s *CellularGatewayService) UpdateNetworkCellularGatewaySubnetPool(networkID string, requestCellularGatewayUpdateNetworkCellularGatewaySubnetPool *RequestCellularGatewayUpdateNetworkCellularGatewaySubnetPool) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/subnetPool" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -562,7 +550,6 @@ func (s *CellularGatewayService) UpdateNetworkCellularGatewaySubnetPool(networkI */ func (s *CellularGatewayService) UpdateNetworkCellularGatewayUplink(networkID string, requestCellularGatewayUpdateNetworkCellularGatewayUplink *RequestCellularGatewayUpdateNetworkCellularGatewayUplink) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/cellularGateway/uplink" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). diff --git a/sdk/devices.go b/sdk/devices.go index 29b3882f4..7a37e5c5b 100644 --- a/sdk/devices.go +++ b/sdk/devices.go @@ -530,11 +530,10 @@ type RequestOrganizationsCloneOrganizationSwitchDevices struct { @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device */ func (s *DevicesService) GetDevice(serial string) (*ResponseDevicesGetDevice, *resty.Response, error) { path := "/api/v1/devices/{serial}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -563,11 +562,10 @@ func (s *DevicesService) GetDevice(serial string) (*ResponseDevicesGetDevice, *r @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-cellular-sims */ func (s *DevicesService) GetDeviceCellularSims(serial string) (*ResponseDevicesGetDeviceCellularSims, *resty.Response, error) { path := "/api/v1/devices/{serial}/cellular/sims" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -597,11 +595,10 @@ func (s *DevicesService) GetDeviceCellularSims(serial string) (*ResponseDevicesG @param serial serial path parameter. @param getDeviceClientsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-clients */ func (s *DevicesService) GetDeviceClients(serial string, getDeviceClientsQueryParams *GetDeviceClientsQueryParams) (*ResponseDevicesGetDeviceClients, *resty.Response, error) { path := "/api/v1/devices/{serial}/clients" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceClientsQueryParams) @@ -633,11 +630,10 @@ func (s *DevicesService) GetDeviceClients(serial string, getDeviceClientsQueryPa @param serial serial path parameter. @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-live-tools-ping */ func (s *DevicesService) GetDeviceLiveToolsPing(serial string, id string) (*ResponseDevicesGetDeviceLiveToolsPing, *resty.Response, error) { path := "/api/v1/devices/{serial}/liveTools/ping/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -668,11 +664,10 @@ func (s *DevicesService) GetDeviceLiveToolsPing(serial string, id string) (*Resp @param serial serial path parameter. @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-live-tools-ping-device */ func (s *DevicesService) GetDeviceLiveToolsPingDevice(serial string, id string) (*ResponseDevicesGetDeviceLiveToolsPingDevice, *resty.Response, error) { path := "/api/v1/devices/{serial}/liveTools/pingDevice/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -702,11 +697,10 @@ func (s *DevicesService) GetDeviceLiveToolsPingDevice(serial string, id string) @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-lldp-cdp */ func (s *DevicesService) GetDeviceLldpCdp(serial string) (*ResponseDevicesGetDeviceLldpCdp, *resty.Response, error) { path := "/api/v1/devices/{serial}/lldpCdp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -736,11 +730,10 @@ func (s *DevicesService) GetDeviceLldpCdp(serial string) (*ResponseDevicesGetDev @param serial serial path parameter. @param getDeviceLossAndLatencyHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-loss-and-latency-history */ func (s *DevicesService) GetDeviceLossAndLatencyHistory(serial string, getDeviceLossAndLatencyHistoryQueryParams *GetDeviceLossAndLatencyHistoryQueryParams) (*ResponseDevicesGetDeviceLossAndLatencyHistory, *resty.Response, error) { path := "/api/v1/devices/{serial}/lossAndLatencyHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceLossAndLatencyHistoryQueryParams) @@ -771,11 +764,10 @@ func (s *DevicesService) GetDeviceLossAndLatencyHistory(serial string, getDevice @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-management-interface */ func (s *DevicesService) GetDeviceManagementInterface(serial string) (*ResponseDevicesGetDeviceManagementInterface, *resty.Response, error) { path := "/api/v1/devices/{serial}/managementInterface" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -804,11 +796,10 @@ func (s *DevicesService) GetDeviceManagementInterface(serial string) (*ResponseD @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-devices */ func (s *DevicesService) GetNetworkDevices(networkID string) (*ResponseDevicesGetNetworkDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/devices" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -838,11 +829,10 @@ func (s *DevicesService) GetNetworkDevices(networkID string) (*ResponseDevicesGe @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-cellular-usage-history */ func (s *DevicesService) GetNetworkSmDeviceCellularUsageHistory(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceCellularUsageHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/cellularUsageHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -873,11 +863,10 @@ func (s *DevicesService) GetNetworkSmDeviceCellularUsageHistory(networkID string @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-certs */ func (s *DevicesService) GetNetworkSmDeviceCerts(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceCerts, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/certs" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -908,11 +897,10 @@ func (s *DevicesService) GetNetworkSmDeviceCerts(networkID string, deviceID stri @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-device-profiles */ func (s *DevicesService) GetNetworkSmDeviceDeviceProfiles(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceDeviceProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/deviceProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -943,11 +931,10 @@ func (s *DevicesService) GetNetworkSmDeviceDeviceProfiles(networkID string, devi @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-network-adapters */ func (s *DevicesService) GetNetworkSmDeviceNetworkAdapters(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceNetworkAdapters, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/networkAdapters" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -978,11 +965,10 @@ func (s *DevicesService) GetNetworkSmDeviceNetworkAdapters(networkID string, dev @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-restrictions */ func (s *DevicesService) GetNetworkSmDeviceRestrictions(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceRestrictions, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/restrictions" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1013,11 +999,10 @@ func (s *DevicesService) GetNetworkSmDeviceRestrictions(networkID string, device @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-security-centers */ func (s *DevicesService) GetNetworkSmDeviceSecurityCenters(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceSecurityCenters, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/securityCenters" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1048,11 +1033,10 @@ func (s *DevicesService) GetNetworkSmDeviceSecurityCenters(networkID string, dev @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-softwares */ func (s *DevicesService) GetNetworkSmDeviceSoftwares(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceSoftwares, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/softwares" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1083,11 +1067,10 @@ func (s *DevicesService) GetNetworkSmDeviceSoftwares(networkID string, deviceID @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-wlan-lists */ func (s *DevicesService) GetNetworkSmDeviceWLANLists(networkID string, deviceID string) (*ResponseDevicesGetNetworkSmDeviceWLANLists, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/wlanLists" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1118,11 +1101,10 @@ func (s *DevicesService) GetNetworkSmDeviceWLANLists(networkID string, deviceID @param organizationID organizationId path parameter. Organization ID @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-inventory-device */ func (s *DevicesService) GetOrganizationInventoryDevice(organizationID string, serial string) (*ResponseDevicesGetOrganizationInventoryDevice, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/devices/{serial}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) @@ -1152,12 +1134,11 @@ func (s *DevicesService) GetOrganizationInventoryDevice(organizationID string, s @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!blink-device-leds */ func (s *DevicesService) BlinkDeviceLeds(serial string, requestDevicesBlinkDeviceLeds *RequestDevicesBlinkDeviceLeds) (*ResponseDevicesBlinkDeviceLeds, *resty.Response, error) { path := "/api/v1/devices/{serial}/blinkLeds" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1187,12 +1168,11 @@ func (s *DevicesService) BlinkDeviceLeds(serial string, requestDevicesBlinkDevic @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-device-live-tools-ping */ func (s *DevicesService) CreateDeviceLiveToolsPing(serial string, requestDevicesCreateDeviceLiveToolsPing *RequestDevicesCreateDeviceLiveToolsPing) (*ResponseDevicesCreateDeviceLiveToolsPing, *resty.Response, error) { path := "/api/v1/devices/{serial}/liveTools/ping" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1222,12 +1202,11 @@ func (s *DevicesService) CreateDeviceLiveToolsPing(serial string, requestDevices @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-device-live-tools-ping-device */ func (s *DevicesService) CreateDeviceLiveToolsPingDevice(serial string, requestDevicesCreateDeviceLiveToolsPingDevice *RequestDevicesCreateDeviceLiveToolsPingDevice) (*ResponseDevicesCreateDeviceLiveToolsPingDevice, *resty.Response, error) { path := "/api/v1/devices/{serial}/liveTools/pingDevice" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1257,12 +1236,11 @@ func (s *DevicesService) CreateDeviceLiveToolsPingDevice(serial string, requestD @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!reboot-device */ func (s *DevicesService) RebootDevice(serial string) (*resty.Response, error) { path := "/api/v1/devices/{serial}/reboot" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1291,12 +1269,11 @@ func (s *DevicesService) RebootDevice(serial string) (*resty.Response, error) { @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!claim-network-devices */ func (s *DevicesService) ClaimNetworkDevices(networkID string, requestDevicesClaimNetworkDevices *RequestDevicesClaimNetworkDevices) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/devices/claim" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1324,12 +1301,11 @@ func (s *DevicesService) ClaimNetworkDevices(networkID string, requestDevicesCla @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!vmx-network-devices-claim */ func (s *DevicesService) VmxNetworkDevicesClaim(networkID string, requestDevicesVmxNetworkDevicesClaim *RequestDevicesVmxNetworkDevicesClaim) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/devices/claim/vmx" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1358,12 +1334,11 @@ func (s *DevicesService) VmxNetworkDevicesClaim(networkID string, requestDevices @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!remove-network-devices */ func (s *DevicesService) RemoveNetworkDevices(networkID string, requestDevicesRemoveNetworkDevices *RequestDevicesRemoveNetworkDevices) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/devices/remove" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1391,12 +1366,11 @@ func (s *DevicesService) RemoveNetworkDevices(networkID string, requestDevicesRe @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!checkin-network-sm-devices */ func (s *DevicesService) CheckinNetworkSmDevices(networkID string, requestDevicesCheckinNetworkSmDevices *RequestDevicesCheckinNetworkSmDevices) (*ResponseDevicesCheckinNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/checkin" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1426,12 +1400,11 @@ func (s *DevicesService) CheckinNetworkSmDevices(networkID string, requestDevice @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!lock-network-sm-devices */ func (s *DevicesService) LockNetworkSmDevices(networkID string, requestDevicesLockNetworkSmDevices *RequestDevicesLockNetworkSmDevices) (*ResponseDevicesLockNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/lock" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1461,12 +1434,11 @@ func (s *DevicesService) LockNetworkSmDevices(networkID string, requestDevicesLo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!modify-network-sm-devices-tags */ func (s *DevicesService) ModifyNetworkSmDevicesTags(networkID string, requestDevicesModifyNetworkSmDevicesTags *RequestDevicesModifyNetworkSmDevicesTags) (*ResponseDevicesModifyNetworkSmDevicesTags, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/modifyTags" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1496,12 +1468,11 @@ func (s *DevicesService) ModifyNetworkSmDevicesTags(networkID string, requestDev @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!move-network-sm-devices */ func (s *DevicesService) MoveNetworkSmDevices(networkID string, requestDevicesMoveNetworkSmDevices *RequestDevicesMoveNetworkSmDevices) (*ResponseDevicesMoveNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/move" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1531,12 +1502,11 @@ func (s *DevicesService) MoveNetworkSmDevices(networkID string, requestDevicesMo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!wipe-network-sm-devices */ func (s *DevicesService) WipeNetworkSmDevices(networkID string, requestDevicesWipeNetworkSmDevices *RequestDevicesWipeNetworkSmDevices) (*ResponseDevicesWipeNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/wipe" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1567,12 +1537,11 @@ func (s *DevicesService) WipeNetworkSmDevices(networkID string, requestDevicesWi @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!refresh-network-sm-device-details */ func (s *DevicesService) RefreshNetworkSmDeviceDetails(networkID string, deviceID string) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/refreshDetails" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1601,12 +1570,11 @@ func (s *DevicesService) RefreshNetworkSmDeviceDetails(networkID string, deviceI @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!unenroll-network-sm-device */ func (s *DevicesService) UnenrollNetworkSmDevice(networkID string, deviceID string) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/unenroll" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1636,12 +1604,11 @@ func (s *DevicesService) UnenrollNetworkSmDevice(networkID string, deviceID stri @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!clone-organization-switch-devices */ func (s *DevicesService) CloneOrganizationSwitchDevices(organizationID string) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/switch/devices/clone" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -1670,7 +1637,6 @@ func (s *DevicesService) CloneOrganizationSwitchDevices(organizationID string) ( */ func (s *DevicesService) UpdateDevice(serial string, requestDevicesUpdateDevice *RequestDevicesUpdateDevice) (*resty.Response, error) { path := "/api/v1/devices/{serial}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1700,7 +1666,6 @@ func (s *DevicesService) UpdateDevice(serial string, requestDevicesUpdateDevice */ func (s *DevicesService) UpdateDeviceCellularSims(serial string, requestDevicesUpdateDeviceCellularSims *RequestDevicesUpdateDeviceCellularSims) (*resty.Response, error) { path := "/api/v1/devices/{serial}/cellular/sims" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1730,7 +1695,6 @@ func (s *DevicesService) UpdateDeviceCellularSims(serial string, requestDevicesU */ func (s *DevicesService) UpdateDeviceManagementInterface(serial string, requestDevicesUpdateDeviceManagementInterface *RequestDevicesUpdateDeviceManagementInterface) (*resty.Response, error) { path := "/api/v1/devices/{serial}/managementInterface" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1760,7 +1724,6 @@ func (s *DevicesService) UpdateDeviceManagementInterface(serial string, requestD */ func (s *DevicesService) UpdateNetworkSmDevicesFields(networkID string, requestDevicesUpdateNetworkSmDevicesFields *RequestDevicesUpdateNetworkSmDevicesFields) (*ResponseDevicesUpdateNetworkSmDevicesFields, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/fields" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). diff --git a/sdk/insight.go b/sdk/insight.go index 7f8168401..58b56db35 100644 --- a/sdk/insight.go +++ b/sdk/insight.go @@ -80,11 +80,10 @@ type RequestInsightUpdateOrganizationInsightMonitoredMediaServer struct { @param applicationID applicationId path parameter. Application ID @param getNetworkInsightApplicationHealthByTimeQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-insight-application-health-by-time */ func (s *InsightService) GetNetworkInsightApplicationHealthByTime(networkID string, applicationID string, getNetworkInsightApplicationHealthByTimeQueryParams *GetNetworkInsightApplicationHealthByTimeQueryParams) (*ResponseInsightGetNetworkInsightApplicationHealthByTime, *resty.Response, error) { path := "/api/v1/networks/{networkId}/insight/applications/{applicationId}/healthByTime" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{applicationId}", fmt.Sprintf("%v", applicationID), -1) @@ -116,11 +115,10 @@ func (s *InsightService) GetNetworkInsightApplicationHealthByTime(networkID stri @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-insight-applications */ func (s *InsightService) GetOrganizationInsightApplications(organizationID string) (*ResponseInsightGetOrganizationInsightApplications, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/insight/applications" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -149,11 +147,10 @@ func (s *InsightService) GetOrganizationInsightApplications(organizationID strin @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-insight-monitored-media-servers */ func (s *InsightService) GetOrganizationInsightMonitoredMediaServers(organizationID string) (*ResponseInsightGetOrganizationInsightMonitoredMediaServers, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/insight/monitoredMediaServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -183,11 +180,10 @@ func (s *InsightService) GetOrganizationInsightMonitoredMediaServers(organizatio @param organizationID organizationId path parameter. Organization ID @param monitoredMediaServerID monitoredMediaServerId path parameter. Monitored media server ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-insight-monitored-media-server */ func (s *InsightService) GetOrganizationInsightMonitoredMediaServer(organizationID string, monitoredMediaServerID string) (*ResponseInsightGetOrganizationInsightMonitoredMediaServer, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/insight/monitoredMediaServers/{monitoredMediaServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{monitoredMediaServerId}", fmt.Sprintf("%v", monitoredMediaServerID), -1) @@ -217,12 +213,11 @@ func (s *InsightService) GetOrganizationInsightMonitoredMediaServer(organization @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-insight-monitored-media-server */ func (s *InsightService) CreateOrganizationInsightMonitoredMediaServer(organizationID string, requestInsightCreateOrganizationInsightMonitoredMediaServer *RequestInsightCreateOrganizationInsightMonitoredMediaServer) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/insight/monitoredMediaServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -254,7 +249,6 @@ func (s *InsightService) CreateOrganizationInsightMonitoredMediaServer(organizat */ func (s *InsightService) UpdateOrganizationInsightMonitoredMediaServer(organizationID string, monitoredMediaServerID string, requestInsightUpdateOrganizationInsightMonitoredMediaServer *RequestInsightUpdateOrganizationInsightMonitoredMediaServer) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/insight/monitoredMediaServers/{monitoredMediaServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{monitoredMediaServerId}", fmt.Sprintf("%v", monitoredMediaServerID), -1) @@ -284,12 +278,11 @@ func (s *InsightService) UpdateOrganizationInsightMonitoredMediaServer(organizat @param organizationID organizationId path parameter. Organization ID @param monitoredMediaServerID monitoredMediaServerId path parameter. Monitored media server ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-insight-monitored-media-server */ func (s *InsightService) DeleteOrganizationInsightMonitoredMediaServer(organizationID string, monitoredMediaServerID string) (*resty.Response, error) { //organizationID string,monitoredMediaServerID string path := "/api/v1/organizations/{organizationId}/insight/monitoredMediaServers/{monitoredMediaServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{monitoredMediaServerId}", fmt.Sprintf("%v", monitoredMediaServerID), -1) diff --git a/sdk/licensing.go b/sdk/licensing.go index a63afb91e..98c4df8da 100644 --- a/sdk/licensing.go +++ b/sdk/licensing.go @@ -109,11 +109,10 @@ type RequestLicensingMoveOrganizationLicensingCotermLicensesLicensesCounts struc @param organizationID organizationId path parameter. Organization ID @param getOrganizationLicensingCotermLicensesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-licensing-coterm-licenses */ func (s *LicensingService) GetOrganizationLicensingCotermLicenses(organizationID string, getOrganizationLicensingCotermLicensesQueryParams *GetOrganizationLicensingCotermLicensesQueryParams) (*ResponseLicensingGetOrganizationLicensingCotermLicenses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licensing/coterm/licenses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationLicensingCotermLicensesQueryParams) @@ -144,12 +143,11 @@ func (s *LicensingService) GetOrganizationLicensingCotermLicenses(organizationID @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!move-organization-licensing-coterm-licenses */ func (s *LicensingService) MoveOrganizationLicensingCotermLicenses(organizationID string, requestLicensingMoveOrganizationLicensingCotermLicenses *RequestLicensingMoveOrganizationLicensingCotermLicenses) (*ResponseLicensingMoveOrganizationLicensingCotermLicenses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licensing/coterm/licenses/move" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). diff --git a/sdk/networks.go b/sdk/networks.go index 65f2fe897..145d10490 100644 --- a/sdk/networks.go +++ b/sdk/networks.go @@ -3237,11 +3237,10 @@ type RequestNetworksCombineOrganizationNetworks struct { @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network */ func (s *NetworksService) GetNetwork(networkID string) (*ResponseNetworksGetNetwork, *resty.Response, error) { path := "/api/v1/networks/{networkId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3271,11 +3270,10 @@ func (s *NetworksService) GetNetwork(networkID string) (*ResponseNetworksGetNetw @param networkID networkId path parameter. Network ID @param getNetworkAlertsHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-alerts-history */ func (s *NetworksService) GetNetworkAlertsHistory(networkID string, getNetworkAlertsHistoryQueryParams *GetNetworkAlertsHistoryQueryParams) (*ResponseNetworksGetNetworkAlertsHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/alerts/history" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkAlertsHistoryQueryParams) @@ -3306,11 +3304,10 @@ func (s *NetworksService) GetNetworkAlertsHistory(networkID string, getNetworkAl @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-alerts-settings */ func (s *NetworksService) GetNetworkAlertsSettings(networkID string) (*ResponseNetworksGetNetworkAlertsSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/alerts/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3340,11 +3337,10 @@ func (s *NetworksService) GetNetworkAlertsSettings(networkID string) (*ResponseN @param networkID networkId path parameter. Network ID @param getNetworkBluetoothClientsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-bluetooth-clients */ func (s *NetworksService) GetNetworkBluetoothClients(networkID string, getNetworkBluetoothClientsQueryParams *GetNetworkBluetoothClientsQueryParams) (*ResponseNetworksGetNetworkBluetoothClients, *resty.Response, error) { path := "/api/v1/networks/{networkId}/bluetoothClients" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkBluetoothClientsQueryParams) @@ -3377,11 +3373,10 @@ func (s *NetworksService) GetNetworkBluetoothClients(networkID string, getNetwor @param bluetoothClientID bluetoothClientId path parameter. Bluetooth client ID @param getNetworkBluetoothClientQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-bluetooth-client */ func (s *NetworksService) GetNetworkBluetoothClient(networkID string, bluetoothClientID string, getNetworkBluetoothClientQueryParams *GetNetworkBluetoothClientQueryParams) (*ResponseNetworksGetNetworkBluetoothClient, *resty.Response, error) { path := "/api/v1/networks/{networkId}/bluetoothClients/{bluetoothClientId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{bluetoothClientId}", fmt.Sprintf("%v", bluetoothClientID), -1) @@ -3414,11 +3409,10 @@ func (s *NetworksService) GetNetworkBluetoothClient(networkID string, bluetoothC @param networkID networkId path parameter. Network ID @param getNetworkClientsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-clients */ func (s *NetworksService) GetNetworkClients(networkID string, getNetworkClientsQueryParams *GetNetworkClientsQueryParams) (*[]ResponseNetworksGetNetworkClients, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkClientsQueryParams) @@ -3450,11 +3444,10 @@ func (s *NetworksService) GetNetworkClients(networkID string, getNetworkClientsQ @param networkID networkId path parameter. Network ID @param getNetworkClientsApplicationUsageQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-clients-application-usage */ func (s *NetworksService) GetNetworkClientsApplicationUsage(networkID string, getNetworkClientsApplicationUsageQueryParams *GetNetworkClientsApplicationUsageQueryParams) (*ResponseNetworksGetNetworkClientsApplicationUsage, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/applicationUsage" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkClientsApplicationUsageQueryParams) @@ -3486,11 +3479,10 @@ func (s *NetworksService) GetNetworkClientsApplicationUsage(networkID string, ge @param networkID networkId path parameter. Network ID @param getNetworkClientsBandwidthUsageHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-clients-bandwidth-usage-history */ func (s *NetworksService) GetNetworkClientsBandwidthUsageHistory(networkID string, getNetworkClientsBandwidthUsageHistoryQueryParams *GetNetworkClientsBandwidthUsageHistoryQueryParams) (*ResponseNetworksGetNetworkClientsBandwidthUsageHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/bandwidthUsageHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkClientsBandwidthUsageHistoryQueryParams) @@ -3522,11 +3514,10 @@ func (s *NetworksService) GetNetworkClientsBandwidthUsageHistory(networkID strin @param networkID networkId path parameter. Network ID @param getNetworkClientsOverviewQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-clients-overview */ func (s *NetworksService) GetNetworkClientsOverview(networkID string, getNetworkClientsOverviewQueryParams *GetNetworkClientsOverviewQueryParams) (*ResponseNetworksGetNetworkClientsOverview, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/overview" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkClientsOverviewQueryParams) @@ -3558,11 +3549,10 @@ func (s *NetworksService) GetNetworkClientsOverview(networkID string, getNetwork @param networkID networkId path parameter. Network ID @param getNetworkClientsUsageHistoriesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-clients-usage-histories */ func (s *NetworksService) GetNetworkClientsUsageHistories(networkID string, getNetworkClientsUsageHistoriesQueryParams *GetNetworkClientsUsageHistoriesQueryParams) (*ResponseNetworksGetNetworkClientsUsageHistories, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/usageHistories" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkClientsUsageHistoriesQueryParams) @@ -3594,11 +3584,10 @@ func (s *NetworksService) GetNetworkClientsUsageHistories(networkID string, getN @param networkID networkId path parameter. Network ID @param clientID clientId path parameter. Client ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-client */ func (s *NetworksService) GetNetworkClient(networkID string, clientID string) (*ResponseNetworksGetNetworkClient, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/{clientId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -3629,11 +3618,10 @@ func (s *NetworksService) GetNetworkClient(networkID string, clientID string) (* @param networkID networkId path parameter. Network ID @param clientID clientId path parameter. Client ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-client-policy */ func (s *NetworksService) GetNetworkClientPolicy(networkID string, clientID string) (*ResponseNetworksGetNetworkClientPolicy, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/{clientId}/policy" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -3664,11 +3652,10 @@ func (s *NetworksService) GetNetworkClientPolicy(networkID string, clientID stri @param networkID networkId path parameter. Network ID @param clientID clientId path parameter. Client ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-client-splash-authorization-status */ func (s *NetworksService) GetNetworkClientSplashAuthorizationStatus(networkID string, clientID string) (*ResponseNetworksGetNetworkClientSplashAuthorizationStatus, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/{clientId}/splashAuthorizationStatus" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -3700,11 +3687,10 @@ func (s *NetworksService) GetNetworkClientSplashAuthorizationStatus(networkID st @param clientID clientId path parameter. Client ID @param getNetworkClientTrafficHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-client-traffic-history */ func (s *NetworksService) GetNetworkClientTrafficHistory(networkID string, clientID string, getNetworkClientTrafficHistoryQueryParams *GetNetworkClientTrafficHistoryQueryParams) (*ResponseNetworksGetNetworkClientTrafficHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/{clientId}/trafficHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -3737,11 +3723,10 @@ func (s *NetworksService) GetNetworkClientTrafficHistory(networkID string, clien @param networkID networkId path parameter. Network ID @param clientID clientId path parameter. Client ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-client-usage-history */ func (s *NetworksService) GetNetworkClientUsageHistory(networkID string, clientID string) (*ResponseNetworksGetNetworkClientUsageHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/{clientId}/usageHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -3771,11 +3756,10 @@ func (s *NetworksService) GetNetworkClientUsageHistory(networkID string, clientI @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-devices */ func (s *NetworksService) GetNetworkDevices(networkID string) (*ResponseNetworksGetNetworkDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/devices" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3805,11 +3789,10 @@ func (s *NetworksService) GetNetworkDevices(networkID string) (*ResponseNetworks @param networkID networkId path parameter. Network ID @param getNetworkEventsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-events */ func (s *NetworksService) GetNetworkEvents(networkID string, getNetworkEventsQueryParams *GetNetworkEventsQueryParams) (*ResponseNetworksGetNetworkEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/events" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkEventsQueryParams) @@ -3840,11 +3823,10 @@ func (s *NetworksService) GetNetworkEvents(networkID string, getNetworkEventsQue @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-events-event-types */ func (s *NetworksService) GetNetworkEventsEventTypes(networkID string) (*ResponseNetworksGetNetworkEventsEventTypes, *resty.Response, error) { path := "/api/v1/networks/{networkId}/events/eventTypes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3873,11 +3855,10 @@ func (s *NetworksService) GetNetworkEventsEventTypes(networkID string) (*Respons @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-firmware-upgrades */ func (s *NetworksService) GetNetworkFirmwareUpgrades(networkID string) (*ResponseNetworksGetNetworkFirmwareUpgrades, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3906,11 +3887,10 @@ func (s *NetworksService) GetNetworkFirmwareUpgrades(networkID string) (*Respons @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-firmware-upgrades-staged-events */ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedEvents(networkID string) (*ResponseNetworksGetNetworkFirmwareUpgradesStagedEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/events" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3939,11 +3919,10 @@ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedEvents(networkID strin @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-firmware-upgrades-staged-groups */ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedGroups(networkID string) (*ResponseNetworksGetNetworkFirmwareUpgradesStagedGroups, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/groups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3973,11 +3952,10 @@ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedGroups(networkID strin @param networkID networkId path parameter. Network ID @param groupID groupId path parameter. Group ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-firmware-upgrades-staged-group */ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedGroup(networkID string, groupID string) (*ResponseNetworksGetNetworkFirmwareUpgradesStagedGroup, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/groups/{groupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupID), -1) @@ -4007,11 +3985,10 @@ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedGroup(networkID string @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-firmware-upgrades-staged-stages */ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedStages(networkID string) (*ResponseNetworksGetNetworkFirmwareUpgradesStagedStages, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/stages" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4040,11 +4017,10 @@ func (s *NetworksService) GetNetworkFirmwareUpgradesStagedStages(networkID strin @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-floor-plans */ func (s *NetworksService) GetNetworkFloorPlans(networkID string) (*ResponseNetworksGetNetworkFloorPlans, *resty.Response, error) { path := "/api/v1/networks/{networkId}/floorPlans" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4074,11 +4050,10 @@ func (s *NetworksService) GetNetworkFloorPlans(networkID string) (*ResponseNetwo @param networkID networkId path parameter. Network ID @param floorPlanID floorPlanId path parameter. Floor plan ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-floor-plan */ func (s *NetworksService) GetNetworkFloorPlan(networkID string, floorPlanID string) (*ResponseNetworksGetNetworkFloorPlan, *resty.Response, error) { path := "/api/v1/networks/{networkId}/floorPlans/{floorPlanId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{floorPlanId}", fmt.Sprintf("%v", floorPlanID), -1) @@ -4108,11 +4083,10 @@ func (s *NetworksService) GetNetworkFloorPlan(networkID string, floorPlanID stri @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-group-policies */ func (s *NetworksService) GetNetworkGroupPolicies(networkID string) (*ResponseNetworksGetNetworkGroupPolicies, *resty.Response, error) { path := "/api/v1/networks/{networkId}/groupPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4142,11 +4116,10 @@ func (s *NetworksService) GetNetworkGroupPolicies(networkID string) (*ResponseNe @param networkID networkId path parameter. Network ID @param groupPolicyID groupPolicyId path parameter. Group policy ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-group-policy */ func (s *NetworksService) GetNetworkGroupPolicy(networkID string, groupPolicyID string) (*ResponseNetworksGetNetworkGroupPolicy, *resty.Response, error) { path := "/api/v1/networks/{networkId}/groupPolicies/{groupPolicyId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{groupPolicyId}", fmt.Sprintf("%v", groupPolicyID), -1) @@ -4176,11 +4149,10 @@ func (s *NetworksService) GetNetworkGroupPolicy(networkID string, groupPolicyID @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-health-alerts */ func (s *NetworksService) GetNetworkHealthAlerts(networkID string) (*ResponseNetworksGetNetworkHealthAlerts, *resty.Response, error) { path := "/api/v1/networks/{networkId}/health/alerts" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4209,11 +4181,10 @@ func (s *NetworksService) GetNetworkHealthAlerts(networkID string) (*ResponseNet @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-meraki-auth-users */ func (s *NetworksService) GetNetworkMerakiAuthUsers(networkID string) (*ResponseNetworksGetNetworkMerakiAuthUsers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/merakiAuthUsers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4243,11 +4214,10 @@ func (s *NetworksService) GetNetworkMerakiAuthUsers(networkID string) (*Response @param networkID networkId path parameter. Network ID @param merakiAuthUserID merakiAuthUserId path parameter. Meraki auth user ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-meraki-auth-user */ func (s *NetworksService) GetNetworkMerakiAuthUser(networkID string, merakiAuthUserID string) (*ResponseNetworksGetNetworkMerakiAuthUser, *resty.Response, error) { path := "/api/v1/networks/{networkId}/merakiAuthUsers/{merakiAuthUserId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{merakiAuthUserId}", fmt.Sprintf("%v", merakiAuthUserID), -1) @@ -4277,11 +4247,10 @@ func (s *NetworksService) GetNetworkMerakiAuthUser(networkID string, merakiAuthU @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-mqtt-brokers */ func (s *NetworksService) GetNetworkMqttBrokers(networkID string) (*ResponseNetworksGetNetworkMqttBrokers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/mqttBrokers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4311,11 +4280,10 @@ func (s *NetworksService) GetNetworkMqttBrokers(networkID string) (*ResponseNetw @param networkID networkId path parameter. Network ID @param mqttBrokerID mqttBrokerId path parameter. Mqtt broker ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-mqtt-broker */ func (s *NetworksService) GetNetworkMqttBroker(networkID string, mqttBrokerID string) (*ResponseNetworksGetNetworkMqttBroker, *resty.Response, error) { path := "/api/v1/networks/{networkId}/mqttBrokers/{mqttBrokerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{mqttBrokerId}", fmt.Sprintf("%v", mqttBrokerID), -1) @@ -4345,11 +4313,10 @@ func (s *NetworksService) GetNetworkMqttBroker(networkID string, mqttBrokerID st @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-netflow */ func (s *NetworksService) GetNetworkNetflow(networkID string) (*ResponseNetworksGetNetworkNetflow, *resty.Response, error) { path := "/api/v1/networks/{networkId}/netflow" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4379,11 +4346,10 @@ func (s *NetworksService) GetNetworkNetflow(networkID string) (*ResponseNetworks @param networkID networkId path parameter. Network ID @param getNetworkNetworkHealthChannelUtilizationQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-network-health-channel-utilization */ func (s *NetworksService) GetNetworkNetworkHealthChannelUtilization(networkID string, getNetworkNetworkHealthChannelUtilizationQueryParams *GetNetworkNetworkHealthChannelUtilizationQueryParams) (*ResponseNetworksGetNetworkNetworkHealthChannelUtilization, *resty.Response, error) { path := "/api/v1/networks/{networkId}/networkHealth/channelUtilization" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkNetworkHealthChannelUtilizationQueryParams) @@ -4421,11 +4387,10 @@ func (s *NetworksService) GetNetworkNetworkHealthChannelUtilization(networkID st @param networkID networkId path parameter. Network ID @param getNetworkPiiPiiKeysQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-pii-pii-keys */ func (s *NetworksService) GetNetworkPiiPiiKeys(networkID string, getNetworkPiiPiiKeysQueryParams *GetNetworkPiiPiiKeysQueryParams) (*ResponseNetworksGetNetworkPiiPiiKeys, *resty.Response, error) { path := "/api/v1/networks/{networkId}/pii/piiKeys" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkPiiPiiKeysQueryParams) @@ -4462,11 +4427,10 @@ func (s *NetworksService) GetNetworkPiiPiiKeys(networkID string, getNetworkPiiPi @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-pii-requests */ func (s *NetworksService) GetNetworkPiiRequests(networkID string) (*ResponseNetworksGetNetworkPiiRequests, *resty.Response, error) { path := "/api/v1/networks/{networkId}/pii/requests" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4502,11 +4466,10 @@ func (s *NetworksService) GetNetworkPiiRequests(networkID string) (*ResponseNetw @param networkID networkId path parameter. Network ID @param requestID requestId path parameter. Request ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-pii-request */ func (s *NetworksService) GetNetworkPiiRequest(networkID string, requestID string) (*ResponseNetworksGetNetworkPiiRequest, *resty.Response, error) { path := "/api/v1/networks/{networkId}/pii/requests/{requestId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{requestId}", fmt.Sprintf("%v", requestID), -1) @@ -4543,11 +4506,10 @@ func (s *NetworksService) GetNetworkPiiRequest(networkID string, requestID strin @param networkID networkId path parameter. Network ID @param getNetworkPiiSmDevicesForKeyQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-pii-sm-devices-for-key */ func (s *NetworksService) GetNetworkPiiSmDevicesForKey(networkID string, getNetworkPiiSmDevicesForKeyQueryParams *GetNetworkPiiSmDevicesForKeyQueryParams) (*ResponseNetworksGetNetworkPiiSmDevicesForKey, *resty.Response, error) { path := "/api/v1/networks/{networkId}/pii/smDevicesForKey" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkPiiSmDevicesForKeyQueryParams) @@ -4585,11 +4547,10 @@ func (s *NetworksService) GetNetworkPiiSmDevicesForKey(networkID string, getNetw @param networkID networkId path parameter. Network ID @param getNetworkPiiSmOwnersForKeyQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-pii-sm-owners-for-key */ func (s *NetworksService) GetNetworkPiiSmOwnersForKey(networkID string, getNetworkPiiSmOwnersForKeyQueryParams *GetNetworkPiiSmOwnersForKeyQueryParams) (*ResponseNetworksGetNetworkPiiSmOwnersForKey, *resty.Response, error) { path := "/api/v1/networks/{networkId}/pii/smOwnersForKey" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkPiiSmOwnersForKeyQueryParams) @@ -4621,11 +4582,10 @@ func (s *NetworksService) GetNetworkPiiSmOwnersForKey(networkID string, getNetwo @param networkID networkId path parameter. Network ID @param getNetworkPoliciesByClientQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-policies-by-client */ func (s *NetworksService) GetNetworkPoliciesByClient(networkID string, getNetworkPoliciesByClientQueryParams *GetNetworkPoliciesByClientQueryParams) (*ResponseNetworksGetNetworkPoliciesByClient, *resty.Response, error) { path := "/api/v1/networks/{networkId}/policies/byClient" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkPoliciesByClientQueryParams) @@ -4656,11 +4616,10 @@ func (s *NetworksService) GetNetworkPoliciesByClient(networkID string, getNetwor @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-settings */ func (s *NetworksService) GetNetworkSettings(networkID string) (*ResponseNetworksGetNetworkSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4689,11 +4648,10 @@ func (s *NetworksService) GetNetworkSettings(networkID string) (*ResponseNetwork @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-snmp */ func (s *NetworksService) GetNetworkSNMP(networkID string) (*ResponseNetworksGetNetworkSNMP, *resty.Response, error) { path := "/api/v1/networks/{networkId}/snmp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4723,11 +4681,10 @@ func (s *NetworksService) GetNetworkSNMP(networkID string) (*ResponseNetworksGet @param networkID networkId path parameter. Network ID @param getNetworkSplashLoginAttemptsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-splash-login-attempts */ func (s *NetworksService) GetNetworkSplashLoginAttempts(networkID string, getNetworkSplashLoginAttemptsQueryParams *GetNetworkSplashLoginAttemptsQueryParams) (*ResponseNetworksGetNetworkSplashLoginAttempts, *resty.Response, error) { path := "/api/v1/networks/{networkId}/splashLoginAttempts" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSplashLoginAttemptsQueryParams) @@ -4758,11 +4715,10 @@ func (s *NetworksService) GetNetworkSplashLoginAttempts(networkID string, getNet @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-syslog-servers */ func (s *NetworksService) GetNetworkSyslogServers(networkID string) (*ResponseNetworksGetNetworkSyslogServers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/syslogServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4791,11 +4747,10 @@ func (s *NetworksService) GetNetworkSyslogServers(networkID string) (*ResponseNe @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-topology-link-layer */ func (s *NetworksService) GetNetworkTopologyLinkLayer(networkID string) (*ResponseNetworksGetNetworkTopologyLinkLayer, *resty.Response, error) { path := "/api/v1/networks/{networkId}/topology/linkLayer" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4825,11 +4780,10 @@ func (s *NetworksService) GetNetworkTopologyLinkLayer(networkID string) (*Respon @param networkID networkId path parameter. Network ID @param getNetworkTrafficQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-traffic */ func (s *NetworksService) GetNetworkTraffic(networkID string, getNetworkTrafficQueryParams *GetNetworkTrafficQueryParams) (*ResponseNetworksGetNetworkTraffic, *resty.Response, error) { path := "/api/v1/networks/{networkId}/traffic" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkTrafficQueryParams) @@ -4860,11 +4814,10 @@ func (s *NetworksService) GetNetworkTraffic(networkID string, getNetworkTrafficQ @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-traffic-analysis */ func (s *NetworksService) GetNetworkTrafficAnalysis(networkID string) (*ResponseNetworksGetNetworkTrafficAnalysis, *resty.Response, error) { path := "/api/v1/networks/{networkId}/trafficAnalysis" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4893,11 +4846,10 @@ func (s *NetworksService) GetNetworkTrafficAnalysis(networkID string) (*Response @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-traffic-shaping-application-categories */ func (s *NetworksService) GetNetworkTrafficShapingApplicationCategories(networkID string) (*ResponseNetworksGetNetworkTrafficShapingApplicationCategories, *resty.Response, error) { path := "/api/v1/networks/{networkId}/trafficShaping/applicationCategories" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4926,11 +4878,10 @@ func (s *NetworksService) GetNetworkTrafficShapingApplicationCategories(networkI @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-traffic-shaping-dscp-tagging-options */ func (s *NetworksService) GetNetworkTrafficShapingDscpTaggingOptions(networkID string) (*ResponseNetworksGetNetworkTrafficShapingDscpTaggingOptions, *resty.Response, error) { path := "/api/v1/networks/{networkId}/trafficShaping/dscpTaggingOptions" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4959,11 +4910,10 @@ func (s *NetworksService) GetNetworkTrafficShapingDscpTaggingOptions(networkID s @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-webhooks-http-servers */ func (s *NetworksService) GetNetworkWebhooksHTTPServers(networkID string) (*ResponseNetworksGetNetworkWebhooksHTTPServers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/httpServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4993,11 +4943,10 @@ func (s *NetworksService) GetNetworkWebhooksHTTPServers(networkID string) (*Resp @param networkID networkId path parameter. Network ID @param httpServerID httpServerId path parameter. Http server ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-webhooks-http-server */ func (s *NetworksService) GetNetworkWebhooksHTTPServer(networkID string, httpServerID string) (*ResponseNetworksGetNetworkWebhooksHTTPServer, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/httpServers/{httpServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{httpServerId}", fmt.Sprintf("%v", httpServerID), -1) @@ -5027,11 +4976,10 @@ func (s *NetworksService) GetNetworkWebhooksHTTPServer(networkID string, httpSer @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-webhooks-payload-templates */ func (s *NetworksService) GetNetworkWebhooksPayloadTemplates(networkID string) (*ResponseNetworksGetNetworkWebhooksPayloadTemplates, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/payloadTemplates" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5061,11 +5009,10 @@ func (s *NetworksService) GetNetworkWebhooksPayloadTemplates(networkID string) ( @param networkID networkId path parameter. Network ID @param payloadTemplateID payloadTemplateId path parameter. Payload template ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-webhooks-payload-template */ func (s *NetworksService) GetNetworkWebhooksPayloadTemplate(networkID string, payloadTemplateID string) (*ResponseNetworksGetNetworkWebhooksPayloadTemplate, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/payloadTemplates/{payloadTemplateId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{payloadTemplateId}", fmt.Sprintf("%v", payloadTemplateID), -1) @@ -5096,11 +5043,10 @@ func (s *NetworksService) GetNetworkWebhooksPayloadTemplate(networkID string, pa @param networkID networkId path parameter. Network ID @param webhookTestID webhookTestId path parameter. Webhook test ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-webhooks-webhook-test */ func (s *NetworksService) GetNetworkWebhooksWebhookTest(networkID string, webhookTestID string) (*ResponseNetworksGetNetworkWebhooksWebhookTest, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/webhookTests/{webhookTestId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{webhookTestId}", fmt.Sprintf("%v", webhookTestID), -1) @@ -5130,12 +5076,11 @@ func (s *NetworksService) GetNetworkWebhooksWebhookTest(networkID string, webhoo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!bind-network */ func (s *NetworksService) BindNetwork(networkID string, requestNetworksBindNetwork *RequestNetworksBindNetwork) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/bind" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5164,12 +5109,11 @@ func (s *NetworksService) BindNetwork(networkID string, requestNetworksBindNetwo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!provision-network-clients */ func (s *NetworksService) ProvisionNetworkClients(networkID string, requestNetworksProvisionNetworkClients *RequestNetworksProvisionNetworkClients) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/provision" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5198,12 +5142,11 @@ func (s *NetworksService) ProvisionNetworkClients(networkID string, requestNetwo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!claim-network-devices */ func (s *NetworksService) ClaimNetworkDevices(networkID string, requestNetworksClaimNetworkDevices *RequestNetworksClaimNetworkDevices) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/devices/claim" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5231,12 +5174,11 @@ func (s *NetworksService) ClaimNetworkDevices(networkID string, requestNetworksC @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!vmx-network-devices-claim */ func (s *NetworksService) VmxNetworkDevicesClaim(networkID string, requestNetworksVmxNetworkDevicesClaim *RequestNetworksVmxNetworkDevicesClaim) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/devices/claim/vmx" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5265,12 +5207,11 @@ func (s *NetworksService) VmxNetworkDevicesClaim(networkID string, requestNetwor @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!remove-network-devices */ func (s *NetworksService) RemoveNetworkDevices(networkID string, requestNetworksRemoveNetworkDevices *RequestNetworksRemoveNetworkDevices) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/devices/remove" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5298,12 +5239,11 @@ func (s *NetworksService) RemoveNetworkDevices(networkID string, requestNetworks @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-firmware-upgrades-rollback */ func (s *NetworksService) CreateNetworkFirmwareUpgradesRollback(networkID string, requestNetworksCreateNetworkFirmwareUpgradesRollback *RequestNetworksCreateNetworkFirmwareUpgradesRollback) (*ResponseNetworksCreateNetworkFirmwareUpgradesRollback, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/rollbacks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5333,12 +5273,11 @@ func (s *NetworksService) CreateNetworkFirmwareUpgradesRollback(networkID string @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-firmware-upgrades-staged-event */ func (s *NetworksService) CreateNetworkFirmwareUpgradesStagedEvent(networkID string, requestNetworksCreateNetworkFirmwareUpgradesStagedEvent *RequestNetworksCreateNetworkFirmwareUpgradesStagedEvent) (*ResponseNetworksCreateNetworkFirmwareUpgradesStagedEvent, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/events" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5368,12 +5307,11 @@ func (s *NetworksService) CreateNetworkFirmwareUpgradesStagedEvent(networkID str @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!defer-network-firmware-upgrades-staged-events */ func (s *NetworksService) DeferNetworkFirmwareUpgradesStagedEvents(networkID string) (*ResponseNetworksDeferNetworkFirmwareUpgradesStagedEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/events/defer" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5402,12 +5340,11 @@ func (s *NetworksService) DeferNetworkFirmwareUpgradesStagedEvents(networkID str @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!rollbacks-network-firmware-upgrades-staged-events */ func (s *NetworksService) RollbacksNetworkFirmwareUpgradesStagedEvents(networkID string, requestNetworksRollbacksNetworkFirmwareUpgradesStagedEvents *RequestNetworksRollbacksNetworkFirmwareUpgradesStagedEvents) (*ResponseNetworksRollbacksNetworkFirmwareUpgradesStagedEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/events/rollbacks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5437,12 +5374,11 @@ func (s *NetworksService) RollbacksNetworkFirmwareUpgradesStagedEvents(networkID @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-firmware-upgrades-staged-group */ func (s *NetworksService) CreateNetworkFirmwareUpgradesStagedGroup(networkID string, requestNetworksCreateNetworkFirmwareUpgradesStagedGroup *RequestNetworksCreateNetworkFirmwareUpgradesStagedGroup) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/groups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5471,12 +5407,11 @@ func (s *NetworksService) CreateNetworkFirmwareUpgradesStagedGroup(networkID str @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-floor-plan */ func (s *NetworksService) CreateNetworkFloorPlan(networkID string, requestNetworksCreateNetworkFloorPlan *RequestNetworksCreateNetworkFloorPlan) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/floorPlans" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5505,12 +5440,11 @@ func (s *NetworksService) CreateNetworkFloorPlan(networkID string, requestNetwor @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-group-policy */ func (s *NetworksService) CreateNetworkGroupPolicy(networkID string, requestNetworksCreateNetworkGroupPolicy *RequestNetworksCreateNetworkGroupPolicy) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/groupPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5539,12 +5473,11 @@ func (s *NetworksService) CreateNetworkGroupPolicy(networkID string, requestNetw @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-meraki-auth-user */ func (s *NetworksService) CreateNetworkMerakiAuthUser(networkID string, requestNetworksCreateNetworkMerakiAuthUser *RequestNetworksCreateNetworkMerakiAuthUser) (*ResponseNetworksCreateNetworkMerakiAuthUser, *resty.Response, error) { path := "/api/v1/networks/{networkId}/merakiAuthUsers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5574,12 +5507,11 @@ func (s *NetworksService) CreateNetworkMerakiAuthUser(networkID string, requestN @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-mqtt-broker */ func (s *NetworksService) CreateNetworkMqttBroker(networkID string, requestNetworksCreateNetworkMqttBroker *RequestNetworksCreateNetworkMqttBroker) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/mqttBrokers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5614,12 +5546,11 @@ func (s *NetworksService) CreateNetworkMqttBroker(networkID string, requestNetwo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-pii-request */ func (s *NetworksService) CreateNetworkPiiRequest(networkID string, requestNetworksCreateNetworkPiiRequest *RequestNetworksCreateNetworkPiiRequest) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/pii/requests" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5648,12 +5579,11 @@ func (s *NetworksService) CreateNetworkPiiRequest(networkID string, requestNetwo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!split-network */ func (s *NetworksService) SplitNetwork(networkID string) (*ResponseNetworksSplitNetwork, *resty.Response, error) { path := "/api/v1/networks/{networkId}/split" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5682,12 +5612,11 @@ func (s *NetworksService) SplitNetwork(networkID string) (*ResponseNetworksSplit @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!unbind-network */ func (s *NetworksService) UnbindNetwork(networkID string, requestNetworksUnbindNetwork *RequestNetworksUnbindNetwork) (*ResponseNetworksUnbindNetwork, *resty.Response, error) { path := "/api/v1/networks/{networkId}/unbind" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5717,12 +5646,11 @@ func (s *NetworksService) UnbindNetwork(networkID string, requestNetworksUnbindN @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-webhooks-http-server */ func (s *NetworksService) CreateNetworkWebhooksHTTPServer(networkID string, requestNetworksCreateNetworkWebhooksHttpServer *RequestNetworksCreateNetworkWebhooksHTTPServer) (*ResponseNetworksCreateNetworkWebhooksHTTPServer, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/httpServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5752,12 +5680,11 @@ func (s *NetworksService) CreateNetworkWebhooksHTTPServer(networkID string, requ @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-webhooks-payload-template */ func (s *NetworksService) CreateNetworkWebhooksPayloadTemplate(networkID string, requestNetworksCreateNetworkWebhooksPayloadTemplate *RequestNetworksCreateNetworkWebhooksPayloadTemplate) (*ResponseNetworksCreateNetworkWebhooksPayloadTemplate, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/payloadTemplates" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5787,12 +5714,11 @@ func (s *NetworksService) CreateNetworkWebhooksPayloadTemplate(networkID string, @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-webhooks-webhook-test */ func (s *NetworksService) CreateNetworkWebhooksWebhookTest(networkID string, requestNetworksCreateNetworkWebhooksWebhookTest *RequestNetworksCreateNetworkWebhooksWebhookTest) (*ResponseNetworksCreateNetworkWebhooksWebhookTest, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/webhookTests" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5822,11 +5748,10 @@ func (s *NetworksService) CreateNetworkWebhooksWebhookTest(networkID string, req @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!combine-organization-networks */ func (s *NetworksService) CombineOrganizationNetworks(organizationID string, requestNetworksCombineOrganizationNetworks *RequestNetworksCombineOrganizationNetworks) (*ResponseNetworksCombineOrganizationNetworks, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/networks/combine" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5858,7 +5783,6 @@ func (s *NetworksService) CombineOrganizationNetworks(organizationID string, req */ func (s *NetworksService) UpdateNetwork(networkID string, requestNetworksUpdateNetwork *RequestNetworksUpdateNetwork) (*ResponseNetworksUpdateNetwork, *resty.Response, error) { path := "/api/v1/networks/{networkId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5890,7 +5814,6 @@ func (s *NetworksService) UpdateNetwork(networkID string, requestNetworksUpdateN */ func (s *NetworksService) UpdateNetworkAlertsSettings(networkID string, requestNetworksUpdateNetworkAlertsSettings *RequestNetworksUpdateNetworkAlertsSettings) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/alerts/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -5921,7 +5844,6 @@ func (s *NetworksService) UpdateNetworkAlertsSettings(networkID string, requestN */ func (s *NetworksService) UpdateNetworkClientPolicy(networkID string, clientID string, requestNetworksUpdateNetworkClientPolicy *RequestNetworksUpdateNetworkClientPolicy) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/{clientId}/policy" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -5953,7 +5875,6 @@ func (s *NetworksService) UpdateNetworkClientPolicy(networkID string, clientID s */ func (s *NetworksService) UpdateNetworkClientSplashAuthorizationStatus(networkID string, clientID string, requestNetworksUpdateNetworkClientSplashAuthorizationStatus *RequestNetworksUpdateNetworkClientSplashAuthorizationStatus) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/clients/{clientId}/splashAuthorizationStatus" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -5984,7 +5905,6 @@ func (s *NetworksService) UpdateNetworkClientSplashAuthorizationStatus(networkID */ func (s *NetworksService) UpdateNetworkFirmwareUpgrades(networkID string, requestNetworksUpdateNetworkFirmwareUpgrades *RequestNetworksUpdateNetworkFirmwareUpgrades) (*ResponseNetworksUpdateNetworkFirmwareUpgrades, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6016,7 +5936,6 @@ func (s *NetworksService) UpdateNetworkFirmwareUpgrades(networkID string, reques */ func (s *NetworksService) UpdateNetworkFirmwareUpgradesStagedEvents(networkID string, requestNetworksUpdateNetworkFirmwareUpgradesStagedEvents *RequestNetworksUpdateNetworkFirmwareUpgradesStagedEvents) (*ResponseNetworksUpdateNetworkFirmwareUpgradesStagedEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/events" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6049,7 +5968,6 @@ func (s *NetworksService) UpdateNetworkFirmwareUpgradesStagedEvents(networkID st */ func (s *NetworksService) UpdateNetworkFirmwareUpgradesStagedGroup(networkID string, groupID string, requestNetworksUpdateNetworkFirmwareUpgradesStagedGroup *RequestNetworksUpdateNetworkFirmwareUpgradesStagedGroup) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/groups/{groupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupID), -1) @@ -6080,7 +5998,6 @@ func (s *NetworksService) UpdateNetworkFirmwareUpgradesStagedGroup(networkID str */ func (s *NetworksService) UpdateNetworkFirmwareUpgradesStagedStages(networkID string, requestNetworksUpdateNetworkFirmwareUpgradesStagedStages *RequestNetworksUpdateNetworkFirmwareUpgradesStagedStages) (*ResponseNetworksUpdateNetworkFirmwareUpgradesStagedStages, *resty.Response, error) { path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/stages" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6113,7 +6030,6 @@ func (s *NetworksService) UpdateNetworkFirmwareUpgradesStagedStages(networkID st */ func (s *NetworksService) UpdateNetworkFloorPlan(networkID string, floorPlanID string, requestNetworksUpdateNetworkFloorPlan *RequestNetworksUpdateNetworkFloorPlan) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/floorPlans/{floorPlanId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{floorPlanId}", fmt.Sprintf("%v", floorPlanID), -1) @@ -6145,7 +6061,6 @@ func (s *NetworksService) UpdateNetworkFloorPlan(networkID string, floorPlanID s */ func (s *NetworksService) UpdateNetworkGroupPolicy(networkID string, groupPolicyID string, requestNetworksUpdateNetworkGroupPolicy *RequestNetworksUpdateNetworkGroupPolicy) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/groupPolicies/{groupPolicyId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{groupPolicyId}", fmt.Sprintf("%v", groupPolicyID), -1) @@ -6177,7 +6092,6 @@ func (s *NetworksService) UpdateNetworkGroupPolicy(networkID string, groupPolicy */ func (s *NetworksService) UpdateNetworkMerakiAuthUser(networkID string, merakiAuthUserID string, requestNetworksUpdateNetworkMerakiAuthUser *RequestNetworksUpdateNetworkMerakiAuthUser) (*ResponseNetworksUpdateNetworkMerakiAuthUser, *resty.Response, error) { path := "/api/v1/networks/{networkId}/merakiAuthUsers/{merakiAuthUserId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{merakiAuthUserId}", fmt.Sprintf("%v", merakiAuthUserID), -1) @@ -6211,7 +6125,6 @@ func (s *NetworksService) UpdateNetworkMerakiAuthUser(networkID string, merakiAu */ func (s *NetworksService) UpdateNetworkMqttBroker(networkID string, mqttBrokerID string, requestNetworksUpdateNetworkMqttBroker *RequestNetworksUpdateNetworkMqttBroker) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/mqttBrokers/{mqttBrokerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{mqttBrokerId}", fmt.Sprintf("%v", mqttBrokerID), -1) @@ -6242,7 +6155,6 @@ func (s *NetworksService) UpdateNetworkMqttBroker(networkID string, mqttBrokerID */ func (s *NetworksService) UpdateNetworkNetflow(networkID string, requestNetworksUpdateNetworkNetflow *RequestNetworksUpdateNetworkNetflow) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/netflow" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6272,7 +6184,6 @@ func (s *NetworksService) UpdateNetworkNetflow(networkID string, requestNetworks */ func (s *NetworksService) UpdateNetworkSettings(networkID string, requestNetworksUpdateNetworkSettings *RequestNetworksUpdateNetworkSettings) (*ResponseNetworksUpdateNetworkSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6304,7 +6215,6 @@ func (s *NetworksService) UpdateNetworkSettings(networkID string, requestNetwork */ func (s *NetworksService) UpdateNetworkSNMP(networkID string, requestNetworksUpdateNetworkSnmp *RequestNetworksUpdateNetworkSNMP) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/snmp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6334,7 +6244,6 @@ func (s *NetworksService) UpdateNetworkSNMP(networkID string, requestNetworksUpd */ func (s *NetworksService) UpdateNetworkSyslogServers(networkID string, requestNetworksUpdateNetworkSyslogServers *RequestNetworksUpdateNetworkSyslogServers) (*ResponseNetworksUpdateNetworkSyslogServers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/syslogServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6366,7 +6275,6 @@ func (s *NetworksService) UpdateNetworkSyslogServers(networkID string, requestNe */ func (s *NetworksService) UpdateNetworkTrafficAnalysis(networkID string, requestNetworksUpdateNetworkTrafficAnalysis *RequestNetworksUpdateNetworkTrafficAnalysis) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/trafficAnalysis" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6397,7 +6305,6 @@ func (s *NetworksService) UpdateNetworkTrafficAnalysis(networkID string, request */ func (s *NetworksService) UpdateNetworkWebhooksHTTPServer(networkID string, httpServerID string, requestNetworksUpdateNetworkWebhooksHttpServer *RequestNetworksUpdateNetworkWebhooksHTTPServer) (*ResponseNetworksUpdateNetworkWebhooksHTTPServer, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/httpServers/{httpServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{httpServerId}", fmt.Sprintf("%v", httpServerID), -1) @@ -6431,7 +6338,6 @@ func (s *NetworksService) UpdateNetworkWebhooksHTTPServer(networkID string, http */ func (s *NetworksService) UpdateNetworkWebhooksPayloadTemplate(networkID string, payloadTemplateID string, requestNetworksUpdateNetworkWebhooksPayloadTemplate *RequestNetworksUpdateNetworkWebhooksPayloadTemplate) (*ResponseNetworksUpdateNetworkWebhooksPayloadTemplate, *resty.Response, error) { path := "/api/v1/networks/{networkId}/webhooks/payloadTemplates/{payloadTemplateId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{payloadTemplateId}", fmt.Sprintf("%v", payloadTemplateID), -1) @@ -6462,12 +6368,11 @@ func (s *NetworksService) UpdateNetworkWebhooksPayloadTemplate(networkID string, @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network */ func (s *NetworksService) DeleteNetwork(networkID string) (*resty.Response, error) { //networkID string path := "/api/v1/networks/{networkId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -6495,12 +6400,11 @@ func (s *NetworksService) DeleteNetwork(networkID string) (*resty.Response, erro @param networkID networkId path parameter. Network ID @param groupID groupId path parameter. Group ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-firmware-upgrades-staged-group */ func (s *NetworksService) DeleteNetworkFirmwareUpgradesStagedGroup(networkID string, groupID string) (*resty.Response, error) { //networkID string,groupID string path := "/api/v1/networks/{networkId}/firmwareUpgrades/staged/groups/{groupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{groupId}", fmt.Sprintf("%v", groupID), -1) @@ -6529,12 +6433,11 @@ func (s *NetworksService) DeleteNetworkFirmwareUpgradesStagedGroup(networkID str @param networkID networkId path parameter. Network ID @param floorPlanID floorPlanId path parameter. Floor plan ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-floor-plan */ func (s *NetworksService) DeleteNetworkFloorPlan(networkID string, floorPlanID string) (*resty.Response, error) { //networkID string,floorPlanID string path := "/api/v1/networks/{networkId}/floorPlans/{floorPlanId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{floorPlanId}", fmt.Sprintf("%v", floorPlanID), -1) @@ -6563,12 +6466,11 @@ func (s *NetworksService) DeleteNetworkFloorPlan(networkID string, floorPlanID s @param networkID networkId path parameter. Network ID @param groupPolicyID groupPolicyId path parameter. Group policy ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-group-policy */ func (s *NetworksService) DeleteNetworkGroupPolicy(networkID string, groupPolicyID string) (*resty.Response, error) { //networkID string,groupPolicyID string path := "/api/v1/networks/{networkId}/groupPolicies/{groupPolicyId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{groupPolicyId}", fmt.Sprintf("%v", groupPolicyID), -1) @@ -6597,12 +6499,11 @@ func (s *NetworksService) DeleteNetworkGroupPolicy(networkID string, groupPolicy @param networkID networkId path parameter. Network ID @param merakiAuthUserID merakiAuthUserId path parameter. Meraki auth user ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-meraki-auth-user */ func (s *NetworksService) DeleteNetworkMerakiAuthUser(networkID string, merakiAuthUserID string) (*resty.Response, error) { //networkID string,merakiAuthUserID string path := "/api/v1/networks/{networkId}/merakiAuthUsers/{merakiAuthUserId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{merakiAuthUserId}", fmt.Sprintf("%v", merakiAuthUserID), -1) @@ -6631,12 +6532,11 @@ func (s *NetworksService) DeleteNetworkMerakiAuthUser(networkID string, merakiAu @param networkID networkId path parameter. Network ID @param mqttBrokerID mqttBrokerId path parameter. Mqtt broker ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-mqtt-broker */ func (s *NetworksService) DeleteNetworkMqttBroker(networkID string, mqttBrokerID string) (*resty.Response, error) { //networkID string,mqttBrokerID string path := "/api/v1/networks/{networkId}/mqttBrokers/{mqttBrokerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{mqttBrokerId}", fmt.Sprintf("%v", mqttBrokerID), -1) @@ -6671,12 +6571,11 @@ func (s *NetworksService) DeleteNetworkMqttBroker(networkID string, mqttBrokerID @param networkID networkId path parameter. Network ID @param requestID requestId path parameter. Request ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-pii-request */ func (s *NetworksService) DeleteNetworkPiiRequest(networkID string, requestID string) (*resty.Response, error) { //networkID string,requestID string path := "/api/v1/networks/{networkId}/pii/requests/{requestId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{requestId}", fmt.Sprintf("%v", requestID), -1) @@ -6705,12 +6604,11 @@ func (s *NetworksService) DeleteNetworkPiiRequest(networkID string, requestID st @param networkID networkId path parameter. Network ID @param httpServerID httpServerId path parameter. Http server ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-webhooks-http-server */ func (s *NetworksService) DeleteNetworkWebhooksHTTPServer(networkID string, httpServerID string) (*resty.Response, error) { //networkID string,httpServerID string path := "/api/v1/networks/{networkId}/webhooks/httpServers/{httpServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{httpServerId}", fmt.Sprintf("%v", httpServerID), -1) @@ -6739,12 +6637,11 @@ func (s *NetworksService) DeleteNetworkWebhooksHTTPServer(networkID string, http @param networkID networkId path parameter. Network ID @param payloadTemplateID payloadTemplateId path parameter. Payload template ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-webhooks-payload-template */ func (s *NetworksService) DeleteNetworkWebhooksPayloadTemplate(networkID string, payloadTemplateID string) (*resty.Response, error) { //networkID string,payloadTemplateID string path := "/api/v1/networks/{networkId}/webhooks/payloadTemplates/{payloadTemplateId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{payloadTemplateId}", fmt.Sprintf("%v", payloadTemplateID), -1) diff --git a/sdk/organizations.go b/sdk/organizations.go index 553edf094..5c4ebd8b0 100644 --- a/sdk/organizations.go +++ b/sdk/organizations.go @@ -2554,11 +2554,11 @@ type RequestOrganizationsUpdateOrganizationSNMP struct { /* List the organizations that the user has privileges on - - */ +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organizations +*/ func (s *OrganizationsService) GetOrganizations() (*ResponseOrganizationsGetOrganizations, *resty.Response, error) { path := "/api/v1/organizations" - s.rateLimiterBucket.Wait(1) + response, err := s.client.R(). SetHeader("Content-Type", "application/json"). SetHeader("Accept", "application/json"). @@ -2585,11 +2585,10 @@ func (s *OrganizationsService) GetOrganizations() (*ResponseOrganizationsGetOrga @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization */ func (s *OrganizationsService) GetOrganization(organizationID string) (*ResponseOrganizationsGetOrganization, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -2619,11 +2618,10 @@ func (s *OrganizationsService) GetOrganization(organizationID string) (*Response @param organizationID organizationId path parameter. Organization ID @param getOrganizationActionBatchesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-action-batches */ func (s *OrganizationsService) GetOrganizationActionBatches(organizationID string, getOrganizationActionBatchesQueryParams *GetOrganizationActionBatchesQueryParams) (*ResponseOrganizationsGetOrganizationActionBatches, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/actionBatches" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationActionBatchesQueryParams) @@ -2655,11 +2653,10 @@ func (s *OrganizationsService) GetOrganizationActionBatches(organizationID strin @param organizationID organizationId path parameter. Organization ID @param actionBatchID actionBatchId path parameter. Action batch ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-action-batch */ func (s *OrganizationsService) GetOrganizationActionBatch(organizationID string, actionBatchID string) (*ResponseOrganizationsGetOrganizationActionBatch, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/actionBatches/{actionBatchId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{actionBatchId}", fmt.Sprintf("%v", actionBatchID), -1) @@ -2689,11 +2686,10 @@ func (s *OrganizationsService) GetOrganizationActionBatch(organizationID string, @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-acls */ func (s *OrganizationsService) GetOrganizationAdaptivePolicyACLs(organizationID string) (*ResponseOrganizationsGetOrganizationAdaptivePolicyACLs, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/acls" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -2723,11 +2719,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicyACLs(organizationID @param organizationID organizationId path parameter. Organization ID @param aclID aclId path parameter. Acl ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-acl */ func (s *OrganizationsService) GetOrganizationAdaptivePolicyACL(organizationID string, aclID string) (*ResponseOrganizationsGetOrganizationAdaptivePolicyACL, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/acls/{aclId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{aclId}", fmt.Sprintf("%v", aclID), -1) @@ -2757,11 +2752,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicyACL(organizationID s @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-groups */ func (s *OrganizationsService) GetOrganizationAdaptivePolicyGroups(organizationID string) (*ResponseOrganizationsGetOrganizationAdaptivePolicyGroups, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/groups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -2791,11 +2785,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicyGroups(organizationI @param organizationID organizationId path parameter. Organization ID @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-group */ func (s *OrganizationsService) GetOrganizationAdaptivePolicyGroup(organizationID string, id string) (*ResponseOrganizationsGetOrganizationAdaptivePolicyGroup, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/groups/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -2825,11 +2818,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicyGroup(organizationID @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-overview */ func (s *OrganizationsService) GetOrganizationAdaptivePolicyOverview(organizationID string) (*ResponseOrganizationsGetOrganizationAdaptivePolicyOverview, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/overview" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -2858,11 +2850,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicyOverview(organizatio @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-policies */ func (s *OrganizationsService) GetOrganizationAdaptivePolicyPolicies(organizationID string) (*ResponseOrganizationsGetOrganizationAdaptivePolicyPolicies, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/policies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -2892,11 +2883,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicyPolicies(organizatio @param organizationID organizationId path parameter. Organization ID @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-policy */ func (s *OrganizationsService) GetOrganizationAdaptivePolicyPolicy(organizationID string, id string) (*ResponseOrganizationsGetOrganizationAdaptivePolicyPolicy, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/policies/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -2926,11 +2916,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicyPolicy(organizationI @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-adaptive-policy-settings */ func (s *OrganizationsService) GetOrganizationAdaptivePolicySettings(organizationID string) (*ResponseOrganizationsGetOrganizationAdaptivePolicySettings, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -2959,11 +2948,10 @@ func (s *OrganizationsService) GetOrganizationAdaptivePolicySettings(organizatio @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-admins */ func (s *OrganizationsService) GetOrganizationAdmins(organizationID string) (*ResponseOrganizationsGetOrganizationAdmins, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/admins" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -2992,11 +2980,10 @@ func (s *OrganizationsService) GetOrganizationAdmins(organizationID string) (*Re @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-alerts-profiles */ func (s *OrganizationsService) GetOrganizationAlertsProfiles(organizationID string) (*ResponseOrganizationsGetOrganizationAlertsProfiles, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/alerts/profiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3026,11 +3013,10 @@ func (s *OrganizationsService) GetOrganizationAlertsProfiles(organizationID stri @param organizationID organizationId path parameter. Organization ID @param getOrganizationApiRequestsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-api-requests */ func (s *OrganizationsService) GetOrganizationAPIRequests(organizationID string, getOrganizationApiRequestsQueryParams *GetOrganizationAPIRequestsQueryParams) (*ResponseOrganizationsGetOrganizationAPIRequests, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/apiRequests" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationApiRequestsQueryParams) @@ -3062,11 +3048,10 @@ func (s *OrganizationsService) GetOrganizationAPIRequests(organizationID string, @param organizationID organizationId path parameter. Organization ID @param getOrganizationApiRequestsOverviewQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-api-requests-overview */ func (s *OrganizationsService) GetOrganizationAPIRequestsOverview(organizationID string, getOrganizationApiRequestsOverviewQueryParams *GetOrganizationAPIRequestsOverviewQueryParams) (*ResponseOrganizationsGetOrganizationAPIRequestsOverview, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/apiRequests/overview" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationApiRequestsOverviewQueryParams) @@ -3098,11 +3083,10 @@ func (s *OrganizationsService) GetOrganizationAPIRequestsOverview(organizationID @param organizationID organizationId path parameter. Organization ID @param getOrganizationApiRequestsOverviewResponseCodesByIntervalQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-api-requests-overview-response-codes-by-interval */ func (s *OrganizationsService) GetOrganizationAPIRequestsOverviewResponseCodesByInterval(organizationID string, getOrganizationApiRequestsOverviewResponseCodesByIntervalQueryParams *GetOrganizationAPIRequestsOverviewResponseCodesByIntervalQueryParams) (*ResponseOrganizationsGetOrganizationAPIRequestsOverviewResponseCodesByInterval, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/apiRequests/overview/responseCodes/byInterval" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationApiRequestsOverviewResponseCodesByIntervalQueryParams) @@ -3133,11 +3117,10 @@ func (s *OrganizationsService) GetOrganizationAPIRequestsOverviewResponseCodesBy @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-branding-policies */ func (s *OrganizationsService) GetOrganizationBrandingPolicies(organizationID string) (*ResponseOrganizationsGetOrganizationBrandingPolicies, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/brandingPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3166,11 +3149,10 @@ func (s *OrganizationsService) GetOrganizationBrandingPolicies(organizationID st @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-branding-policies-priorities */ func (s *OrganizationsService) GetOrganizationBrandingPoliciesPriorities(organizationID string) (*ResponseOrganizationsGetOrganizationBrandingPoliciesPriorities, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/brandingPolicies/priorities" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3200,11 +3182,10 @@ func (s *OrganizationsService) GetOrganizationBrandingPoliciesPriorities(organiz @param organizationID organizationId path parameter. Organization ID @param brandingPolicyID brandingPolicyId path parameter. Branding policy ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-branding-policy */ func (s *OrganizationsService) GetOrganizationBrandingPolicy(organizationID string, brandingPolicyID string) (*ResponseOrganizationsGetOrganizationBrandingPolicy, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/brandingPolicies/{brandingPolicyId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{brandingPolicyId}", fmt.Sprintf("%v", brandingPolicyID), -1) @@ -3235,11 +3216,10 @@ func (s *OrganizationsService) GetOrganizationBrandingPolicy(organizationID stri @param organizationID organizationId path parameter. Organization ID @param getOrganizationClientsBandwidthUsageHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-clients-bandwidth-usage-history */ func (s *OrganizationsService) GetOrganizationClientsBandwidthUsageHistory(organizationID string, getOrganizationClientsBandwidthUsageHistoryQueryParams *GetOrganizationClientsBandwidthUsageHistoryQueryParams) (*ResponseOrganizationsGetOrganizationClientsBandwidthUsageHistory, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/clients/bandwidthUsageHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationClientsBandwidthUsageHistoryQueryParams) @@ -3271,11 +3251,10 @@ func (s *OrganizationsService) GetOrganizationClientsBandwidthUsageHistory(organ @param organizationID organizationId path parameter. Organization ID @param getOrganizationClientsOverviewQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-clients-overview */ func (s *OrganizationsService) GetOrganizationClientsOverview(organizationID string, getOrganizationClientsOverviewQueryParams *GetOrganizationClientsOverviewQueryParams) (*ResponseOrganizationsGetOrganizationClientsOverview, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/clients/overview" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationClientsOverviewQueryParams) @@ -3307,11 +3286,10 @@ func (s *OrganizationsService) GetOrganizationClientsOverview(organizationID str @param organizationID organizationId path parameter. Organization ID @param getOrganizationClientsSearchQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-clients-search */ func (s *OrganizationsService) GetOrganizationClientsSearch(organizationID string, getOrganizationClientsSearchQueryParams *GetOrganizationClientsSearchQueryParams) (*ResponseOrganizationsGetOrganizationClientsSearch, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/clients/search" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationClientsSearchQueryParams) @@ -3342,11 +3320,10 @@ func (s *OrganizationsService) GetOrganizationClientsSearch(organizationID strin @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-config-templates */ func (s *OrganizationsService) GetOrganizationConfigTemplates(organizationID string) (*ResponseOrganizationsGetOrganizationConfigTemplates, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3376,11 +3353,10 @@ func (s *OrganizationsService) GetOrganizationConfigTemplates(organizationID str @param organizationID organizationId path parameter. Organization ID @param configTemplateID configTemplateId path parameter. Config template ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-config-template */ func (s *OrganizationsService) GetOrganizationConfigTemplate(organizationID string, configTemplateID string) (*ResponseOrganizationsGetOrganizationConfigTemplate, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates/{configTemplateId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{configTemplateId}", fmt.Sprintf("%v", configTemplateID), -1) @@ -3411,11 +3387,10 @@ func (s *OrganizationsService) GetOrganizationConfigTemplate(organizationID stri @param organizationID organizationId path parameter. Organization ID @param getOrganizationConfigurationChangesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-configuration-changes */ func (s *OrganizationsService) GetOrganizationConfigurationChanges(organizationID string, getOrganizationConfigurationChangesQueryParams *GetOrganizationConfigurationChangesQueryParams) (*ResponseOrganizationsGetOrganizationConfigurationChanges, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configurationChanges" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationConfigurationChangesQueryParams) @@ -3447,11 +3422,10 @@ func (s *OrganizationsService) GetOrganizationConfigurationChanges(organizationI @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices */ func (s *OrganizationsService) GetOrganizationDevices(organizationID string, getOrganizationDevicesQueryParams *GetOrganizationDevicesQueryParams) (*ResponseOrganizationsGetOrganizationDevices, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesQueryParams) @@ -3483,11 +3457,10 @@ func (s *OrganizationsService) GetOrganizationDevices(organizationID string, get @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesAvailabilitiesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices-availabilities */ func (s *OrganizationsService) GetOrganizationDevicesAvailabilities(organizationID string, getOrganizationDevicesAvailabilitiesQueryParams *GetOrganizationDevicesAvailabilitiesQueryParams) (*ResponseOrganizationsGetOrganizationDevicesAvailabilities, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices/availabilities" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesAvailabilitiesQueryParams) @@ -3519,11 +3492,10 @@ func (s *OrganizationsService) GetOrganizationDevicesAvailabilities(organization @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesPowerModulesStatusesByDeviceQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices-power-modules-statuses-by-device */ func (s *OrganizationsService) GetOrganizationDevicesPowerModulesStatusesByDevice(organizationID string, getOrganizationDevicesPowerModulesStatusesByDeviceQueryParams *GetOrganizationDevicesPowerModulesStatusesByDeviceQueryParams) (*ResponseOrganizationsGetOrganizationDevicesPowerModulesStatusesByDevice, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices/powerModules/statuses/byDevice" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesPowerModulesStatusesByDeviceQueryParams) @@ -3555,11 +3527,10 @@ func (s *OrganizationsService) GetOrganizationDevicesPowerModulesStatusesByDevic @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesProvisioningStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices-provisioning-statuses */ func (s *OrganizationsService) GetOrganizationDevicesProvisioningStatuses(organizationID string, getOrganizationDevicesProvisioningStatusesQueryParams *GetOrganizationDevicesProvisioningStatusesQueryParams) (*ResponseOrganizationsGetOrganizationDevicesProvisioningStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices/provisioning/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesProvisioningStatusesQueryParams) @@ -3591,11 +3562,10 @@ func (s *OrganizationsService) GetOrganizationDevicesProvisioningStatuses(organi @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices-statuses */ func (s *OrganizationsService) GetOrganizationDevicesStatuses(organizationID string, getOrganizationDevicesStatusesQueryParams *GetOrganizationDevicesStatusesQueryParams) (*ResponseOrganizationsGetOrganizationDevicesStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesStatusesQueryParams) @@ -3627,11 +3597,10 @@ func (s *OrganizationsService) GetOrganizationDevicesStatuses(organizationID str @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesStatusesOverviewQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices-statuses-overview */ func (s *OrganizationsService) GetOrganizationDevicesStatusesOverview(organizationID string, getOrganizationDevicesStatusesOverviewQueryParams *GetOrganizationDevicesStatusesOverviewQueryParams) (*ResponseOrganizationsGetOrganizationDevicesStatusesOverview, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices/statuses/overview" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesStatusesOverviewQueryParams) @@ -3663,11 +3632,10 @@ func (s *OrganizationsService) GetOrganizationDevicesStatusesOverview(organizati @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesUplinksAddressesByDeviceQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices-uplinks-addresses-by-device */ func (s *OrganizationsService) GetOrganizationDevicesUplinksAddressesByDevice(organizationID string, getOrganizationDevicesUplinksAddressesByDeviceQueryParams *GetOrganizationDevicesUplinksAddressesByDeviceQueryParams) (*ResponseOrganizationsGetOrganizationDevicesUplinksAddressesByDevice, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices/uplinks/addresses/byDevice" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesUplinksAddressesByDeviceQueryParams) @@ -3699,11 +3667,10 @@ func (s *OrganizationsService) GetOrganizationDevicesUplinksAddressesByDevice(or @param organizationID organizationId path parameter. Organization ID @param getOrganizationDevicesUplinksLossAndLatencyQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-devices-uplinks-loss-and-latency */ func (s *OrganizationsService) GetOrganizationDevicesUplinksLossAndLatency(organizationID string, getOrganizationDevicesUplinksLossAndLatencyQueryParams *GetOrganizationDevicesUplinksLossAndLatencyQueryParams) (*ResponseOrganizationsGetOrganizationDevicesUplinksLossAndLatency, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/devices/uplinksLossAndLatency" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationDevicesUplinksLossAndLatencyQueryParams) @@ -3734,11 +3701,10 @@ func (s *OrganizationsService) GetOrganizationDevicesUplinksLossAndLatency(organ @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-early-access-features */ func (s *OrganizationsService) GetOrganizationEarlyAccessFeatures(organizationID string) (*ResponseOrganizationsGetOrganizationEarlyAccessFeatures, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/earlyAccess/features" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3767,11 +3733,10 @@ func (s *OrganizationsService) GetOrganizationEarlyAccessFeatures(organizationID @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-early-access-features-opt-ins */ func (s *OrganizationsService) GetOrganizationEarlyAccessFeaturesOptIns(organizationID string) (*ResponseOrganizationsGetOrganizationEarlyAccessFeaturesOptIns, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/earlyAccess/features/optIns" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3801,11 +3766,10 @@ func (s *OrganizationsService) GetOrganizationEarlyAccessFeaturesOptIns(organiza @param organizationID organizationId path parameter. Organization ID @param optInID optInId path parameter. Opt in ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-early-access-features-opt-in */ func (s *OrganizationsService) GetOrganizationEarlyAccessFeaturesOptIn(organizationID string, optInID string) (*ResponseOrganizationsGetOrganizationEarlyAccessFeaturesOptIn, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/earlyAccess/features/optIns/{optInId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{optInId}", fmt.Sprintf("%v", optInID), -1) @@ -3836,11 +3800,10 @@ func (s *OrganizationsService) GetOrganizationEarlyAccessFeaturesOptIn(organizat @param organizationID organizationId path parameter. Organization ID @param getOrganizationFirmwareUpgradesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-firmware-upgrades */ func (s *OrganizationsService) GetOrganizationFirmwareUpgrades(organizationID string, getOrganizationFirmwareUpgradesQueryParams *GetOrganizationFirmwareUpgradesQueryParams) (*ResponseOrganizationsGetOrganizationFirmwareUpgrades, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/firmware/upgrades" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationFirmwareUpgradesQueryParams) @@ -3872,11 +3835,10 @@ func (s *OrganizationsService) GetOrganizationFirmwareUpgrades(organizationID st @param organizationID organizationId path parameter. Organization ID @param getOrganizationFirmwareUpgradesByDeviceQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-firmware-upgrades-by-device */ func (s *OrganizationsService) GetOrganizationFirmwareUpgradesByDevice(organizationID string, getOrganizationFirmwareUpgradesByDeviceQueryParams *GetOrganizationFirmwareUpgradesByDeviceQueryParams) (*ResponseOrganizationsGetOrganizationFirmwareUpgradesByDevice, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/firmware/upgrades/byDevice" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationFirmwareUpgradesByDeviceQueryParams) @@ -3908,11 +3870,10 @@ func (s *OrganizationsService) GetOrganizationFirmwareUpgradesByDevice(organizat @param organizationID organizationId path parameter. Organization ID @param getOrganizationInventoryDevicesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-inventory-devices */ func (s *OrganizationsService) GetOrganizationInventoryDevices(organizationID string, getOrganizationInventoryDevicesQueryParams *GetOrganizationInventoryDevicesQueryParams) (*ResponseOrganizationsGetOrganizationInventoryDevices, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/devices" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationInventoryDevicesQueryParams) @@ -3944,11 +3905,10 @@ func (s *OrganizationsService) GetOrganizationInventoryDevices(organizationID st @param organizationID organizationId path parameter. Organization ID @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-inventory-device */ func (s *OrganizationsService) GetOrganizationInventoryDevice(organizationID string, serial string) (*ResponseOrganizationsGetOrganizationInventoryDevice, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/devices/{serial}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) @@ -3979,11 +3939,10 @@ func (s *OrganizationsService) GetOrganizationInventoryDevice(organizationID str @param organizationID organizationId path parameter. Organization ID @param getOrganizationInventoryOnboardingCloudMonitoringImportsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-inventory-onboarding-cloud-monitoring-imports */ func (s *OrganizationsService) GetOrganizationInventoryOnboardingCloudMonitoringImports(organizationID string, getOrganizationInventoryOnboardingCloudMonitoringImportsQueryParams *GetOrganizationInventoryOnboardingCloudMonitoringImportsQueryParams) (*ResponseOrganizationsGetOrganizationInventoryOnboardingCloudMonitoringImports, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/onboarding/cloudMonitoring/imports" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationInventoryOnboardingCloudMonitoringImportsQueryParams) @@ -4015,11 +3974,10 @@ func (s *OrganizationsService) GetOrganizationInventoryOnboardingCloudMonitoring @param organizationID organizationId path parameter. Organization ID @param getOrganizationInventoryOnboardingCloudMonitoringNetworksQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-inventory-onboarding-cloud-monitoring-networks */ func (s *OrganizationsService) GetOrganizationInventoryOnboardingCloudMonitoringNetworks(organizationID string, getOrganizationInventoryOnboardingCloudMonitoringNetworksQueryParams *GetOrganizationInventoryOnboardingCloudMonitoringNetworksQueryParams) (*ResponseOrganizationsGetOrganizationInventoryOnboardingCloudMonitoringNetworks, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/onboarding/cloudMonitoring/networks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationInventoryOnboardingCloudMonitoringNetworksQueryParams) @@ -4051,11 +4009,10 @@ func (s *OrganizationsService) GetOrganizationInventoryOnboardingCloudMonitoring @param organizationID organizationId path parameter. Organization ID @param getOrganizationLicensesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-licenses */ func (s *OrganizationsService) GetOrganizationLicenses(organizationID string, getOrganizationLicensesQueryParams *GetOrganizationLicensesQueryParams) (*ResponseOrganizationsGetOrganizationLicenses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationLicensesQueryParams) @@ -4086,11 +4043,10 @@ func (s *OrganizationsService) GetOrganizationLicenses(organizationID string, ge @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-licenses-overview */ func (s *OrganizationsService) GetOrganizationLicensesOverview(organizationID string) (*ResponseOrganizationsGetOrganizationLicensesOverview, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses/overview" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -4120,11 +4076,10 @@ func (s *OrganizationsService) GetOrganizationLicensesOverview(organizationID st @param organizationID organizationId path parameter. Organization ID @param licenseID licenseId path parameter. License ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-license */ func (s *OrganizationsService) GetOrganizationLicense(organizationID string, licenseID string) (*ResponseOrganizationsGetOrganizationLicense, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses/{licenseId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{licenseId}", fmt.Sprintf("%v", licenseID), -1) @@ -4154,11 +4109,10 @@ func (s *OrganizationsService) GetOrganizationLicense(organizationID string, lic @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-login-security */ func (s *OrganizationsService) GetOrganizationLoginSecurity(organizationID string) (*ResponseOrganizationsGetOrganizationLoginSecurity, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/loginSecurity" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -4188,11 +4142,10 @@ func (s *OrganizationsService) GetOrganizationLoginSecurity(organizationID strin @param organizationID organizationId path parameter. Organization ID @param getOrganizationNetworksQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-networks */ func (s *OrganizationsService) GetOrganizationNetworks(organizationID string, getOrganizationNetworksQueryParams *GetOrganizationNetworksQueryParams) (*ResponseOrganizationsGetOrganizationNetworks, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/networks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationNetworksQueryParams) @@ -4223,11 +4176,10 @@ func (s *OrganizationsService) GetOrganizationNetworks(organizationID string, ge @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-openapi-spec */ func (s *OrganizationsService) GetOrganizationOpenapiSpec(organizationID string) (*ResponseOrganizationsGetOrganizationOpenapiSpec, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/openapiSpec" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -4257,11 +4209,10 @@ func (s *OrganizationsService) GetOrganizationOpenapiSpec(organizationID string) @param organizationID organizationId path parameter. Organization ID @param getOrganizationPolicyObjectsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-policy-objects */ func (s *OrganizationsService) GetOrganizationPolicyObjects(organizationID string, getOrganizationPolicyObjectsQueryParams *GetOrganizationPolicyObjectsQueryParams) (*ResponseOrganizationsGetOrganizationPolicyObjects, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationPolicyObjectsQueryParams) @@ -4293,11 +4244,10 @@ func (s *OrganizationsService) GetOrganizationPolicyObjects(organizationID strin @param organizationID organizationId path parameter. Organization ID @param getOrganizationPolicyObjectsGroupsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-policy-objects-groups */ func (s *OrganizationsService) GetOrganizationPolicyObjectsGroups(organizationID string, getOrganizationPolicyObjectsGroupsQueryParams *GetOrganizationPolicyObjectsGroupsQueryParams) (*ResponseOrganizationsGetOrganizationPolicyObjectsGroups, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects/groups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationPolicyObjectsGroupsQueryParams) @@ -4329,11 +4279,10 @@ func (s *OrganizationsService) GetOrganizationPolicyObjectsGroups(organizationID @param organizationID organizationId path parameter. Organization ID @param policyObjectGroupID policyObjectGroupId path parameter. Policy object group ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-policy-objects-group */ func (s *OrganizationsService) GetOrganizationPolicyObjectsGroup(organizationID string, policyObjectGroupID string) (*ResponseOrganizationsGetOrganizationPolicyObjectsGroup, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects/groups/{policyObjectGroupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{policyObjectGroupId}", fmt.Sprintf("%v", policyObjectGroupID), -1) @@ -4364,11 +4313,10 @@ func (s *OrganizationsService) GetOrganizationPolicyObjectsGroup(organizationID @param organizationID organizationId path parameter. Organization ID @param policyObjectID policyObjectId path parameter. Policy object ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-policy-object */ func (s *OrganizationsService) GetOrganizationPolicyObject(organizationID string, policyObjectID string) (*ResponseOrganizationsGetOrganizationPolicyObject, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects/{policyObjectId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{policyObjectId}", fmt.Sprintf("%v", policyObjectID), -1) @@ -4398,11 +4346,10 @@ func (s *OrganizationsService) GetOrganizationPolicyObject(organizationID string @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-saml */ func (s *OrganizationsService) GetOrganizationSaml(organizationID string) (*ResponseOrganizationsGetOrganizationSaml, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/saml" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -4431,11 +4378,10 @@ func (s *OrganizationsService) GetOrganizationSaml(organizationID string) (*Resp @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-saml-idps */ func (s *OrganizationsService) GetOrganizationSamlIDps(organizationID string) (*ResponseOrganizationsGetOrganizationSamlIDps, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/saml/idps" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -4465,11 +4411,10 @@ func (s *OrganizationsService) GetOrganizationSamlIDps(organizationID string) (* @param organizationID organizationId path parameter. Organization ID @param idpID idpId path parameter. Idp ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-saml-idp */ func (s *OrganizationsService) GetOrganizationSamlIDp(organizationID string, idpID string) (*ResponseOrganizationsGetOrganizationSamlIDp, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/saml/idps/{idpId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{idpId}", fmt.Sprintf("%v", idpID), -1) @@ -4499,11 +4444,10 @@ func (s *OrganizationsService) GetOrganizationSamlIDp(organizationID string, idp @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-saml-roles */ func (s *OrganizationsService) GetOrganizationSamlRoles(organizationID string) (*ResponseOrganizationsGetOrganizationSamlRoles, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/samlRoles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -4533,11 +4477,10 @@ func (s *OrganizationsService) GetOrganizationSamlRoles(organizationID string) ( @param organizationID organizationId path parameter. Organization ID @param samlRoleID samlRoleId path parameter. Saml role ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-saml-role */ func (s *OrganizationsService) GetOrganizationSamlRole(organizationID string, samlRoleID string) (*ResponseOrganizationsGetOrganizationSamlRole, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/samlRoles/{samlRoleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{samlRoleId}", fmt.Sprintf("%v", samlRoleID), -1) @@ -4567,11 +4510,10 @@ func (s *OrganizationsService) GetOrganizationSamlRole(organizationID string, sa @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-snmp */ func (s *OrganizationsService) GetOrganizationSNMP(organizationID string) (*ResponseOrganizationsGetOrganizationSNMP, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/snmp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -4601,11 +4543,10 @@ func (s *OrganizationsService) GetOrganizationSNMP(organizationID string) (*Resp @param organizationID organizationId path parameter. Organization ID @param getOrganizationSummaryTopAppliancesByUtilizationQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-summary-top-appliances-by-utilization */ func (s *OrganizationsService) GetOrganizationSummaryTopAppliancesByUtilization(organizationID string, getOrganizationSummaryTopAppliancesByUtilizationQueryParams *GetOrganizationSummaryTopAppliancesByUtilizationQueryParams) (*ResponseOrganizationsGetOrganizationSummaryTopAppliancesByUtilization, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/summary/top/appliances/byUtilization" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSummaryTopAppliancesByUtilizationQueryParams) @@ -4637,11 +4578,10 @@ func (s *OrganizationsService) GetOrganizationSummaryTopAppliancesByUtilization( @param organizationID organizationId path parameter. Organization ID @param getOrganizationSummaryTopClientsByUsageQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-summary-top-clients-by-usage */ func (s *OrganizationsService) GetOrganizationSummaryTopClientsByUsage(organizationID string, getOrganizationSummaryTopClientsByUsageQueryParams *GetOrganizationSummaryTopClientsByUsageQueryParams) (*ResponseOrganizationsGetOrganizationSummaryTopClientsByUsage, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/summary/top/clients/byUsage" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSummaryTopClientsByUsageQueryParams) @@ -4673,11 +4613,10 @@ func (s *OrganizationsService) GetOrganizationSummaryTopClientsByUsage(organizat @param organizationID organizationId path parameter. Organization ID @param getOrganizationSummaryTopClientsManufacturersByUsageQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-summary-top-clients-manufacturers-by-usage */ func (s *OrganizationsService) GetOrganizationSummaryTopClientsManufacturersByUsage(organizationID string, getOrganizationSummaryTopClientsManufacturersByUsageQueryParams *GetOrganizationSummaryTopClientsManufacturersByUsageQueryParams) (*ResponseOrganizationsGetOrganizationSummaryTopClientsManufacturersByUsage, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/summary/top/clients/manufacturers/byUsage" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSummaryTopClientsManufacturersByUsageQueryParams) @@ -4709,11 +4648,10 @@ func (s *OrganizationsService) GetOrganizationSummaryTopClientsManufacturersByUs @param organizationID organizationId path parameter. Organization ID @param getOrganizationSummaryTopDevicesByUsageQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-summary-top-devices-by-usage */ func (s *OrganizationsService) GetOrganizationSummaryTopDevicesByUsage(organizationID string, getOrganizationSummaryTopDevicesByUsageQueryParams *GetOrganizationSummaryTopDevicesByUsageQueryParams) (*ResponseOrganizationsGetOrganizationSummaryTopDevicesByUsage, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/summary/top/devices/byUsage" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSummaryTopDevicesByUsageQueryParams) @@ -4745,11 +4683,10 @@ func (s *OrganizationsService) GetOrganizationSummaryTopDevicesByUsage(organizat @param organizationID organizationId path parameter. Organization ID @param getOrganizationSummaryTopDevicesModelsByUsageQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-summary-top-devices-models-by-usage */ func (s *OrganizationsService) GetOrganizationSummaryTopDevicesModelsByUsage(organizationID string, getOrganizationSummaryTopDevicesModelsByUsageQueryParams *GetOrganizationSummaryTopDevicesModelsByUsageQueryParams) (*ResponseOrganizationsGetOrganizationSummaryTopDevicesModelsByUsage, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/summary/top/devices/models/byUsage" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSummaryTopDevicesModelsByUsageQueryParams) @@ -4781,11 +4718,10 @@ func (s *OrganizationsService) GetOrganizationSummaryTopDevicesModelsByUsage(org @param organizationID organizationId path parameter. Organization ID @param getOrganizationSummaryTopSsidsByUsageQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-summary-top-ssids-by-usage */ func (s *OrganizationsService) GetOrganizationSummaryTopSSIDsByUsage(organizationID string, getOrganizationSummaryTopSsidsByUsageQueryParams *GetOrganizationSummaryTopSSIDsByUsageQueryParams) (*ResponseOrganizationsGetOrganizationSummaryTopSSIDsByUsage, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/summary/top/ssids/byUsage" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSummaryTopSsidsByUsageQueryParams) @@ -4817,11 +4753,10 @@ func (s *OrganizationsService) GetOrganizationSummaryTopSSIDsByUsage(organizatio @param organizationID organizationId path parameter. Organization ID @param getOrganizationSummaryTopSwitchesByEnergyUsageQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-summary-top-switches-by-energy-usage */ func (s *OrganizationsService) GetOrganizationSummaryTopSwitchesByEnergyUsage(organizationID string, getOrganizationSummaryTopSwitchesByEnergyUsageQueryParams *GetOrganizationSummaryTopSwitchesByEnergyUsageQueryParams) (*ResponseOrganizationsGetOrganizationSummaryTopSwitchesByEnergyUsage, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/summary/top/switches/byEnergyUsage" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSummaryTopSwitchesByEnergyUsageQueryParams) @@ -4853,11 +4788,10 @@ func (s *OrganizationsService) GetOrganizationSummaryTopSwitchesByEnergyUsage(or @param organizationID organizationId path parameter. Organization ID @param getOrganizationUplinksStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-uplinks-statuses */ func (s *OrganizationsService) GetOrganizationUplinksStatuses(organizationID string, getOrganizationUplinksStatusesQueryParams *GetOrganizationUplinksStatusesQueryParams) (*ResponseOrganizationsGetOrganizationUplinksStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/uplinks/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationUplinksStatusesQueryParams) @@ -4889,11 +4823,10 @@ func (s *OrganizationsService) GetOrganizationUplinksStatuses(organizationID str @param organizationID organizationId path parameter. Organization ID @param getOrganizationWebhooksAlertTypesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-webhooks-alert-types */ func (s *OrganizationsService) GetOrganizationWebhooksAlertTypes(organizationID string, getOrganizationWebhooksAlertTypesQueryParams *GetOrganizationWebhooksAlertTypesQueryParams) (*ResponseOrganizationsGetOrganizationWebhooksAlertTypes, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/webhooks/alertTypes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationWebhooksAlertTypesQueryParams) @@ -4925,11 +4858,10 @@ func (s *OrganizationsService) GetOrganizationWebhooksAlertTypes(organizationID @param organizationID organizationId path parameter. Organization ID @param getOrganizationWebhooksLogsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-webhooks-logs */ func (s *OrganizationsService) GetOrganizationWebhooksLogs(organizationID string, getOrganizationWebhooksLogsQueryParams *GetOrganizationWebhooksLogsQueryParams) (*ResponseOrganizationsGetOrganizationWebhooksLogs, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/webhooks/logs" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationWebhooksLogsQueryParams) @@ -4959,12 +4891,11 @@ func (s *OrganizationsService) GetOrganizationWebhooksLogs(organizationID string /* Create a new organization - - */ +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization +*/ func (s *OrganizationsService) CreateOrganization(requestOrganizationsCreateOrganization *RequestOrganizationsCreateOrganization) (*ResponseOrganizationsCreateOrganization, *resty.Response, error) { path := "/api/v1/organizations" - s.rateLimiterBucket.Wait(1) response, err := s.client.R(). SetHeader("Content-Type", "application/json"). @@ -4993,12 +4924,11 @@ func (s *OrganizationsService) CreateOrganization(requestOrganizationsCreateOrga @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-action-batch */ func (s *OrganizationsService) CreateOrganizationActionBatch(organizationID string, requestOrganizationsCreateOrganizationActionBatch *RequestOrganizationsCreateOrganizationActionBatch) (*ResponseOrganizationsCreateOrganizationActionBatch, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/actionBatches" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5028,12 +4958,11 @@ func (s *OrganizationsService) CreateOrganizationActionBatch(organizationID stri @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-adaptive-policy-acl */ func (s *OrganizationsService) CreateOrganizationAdaptivePolicyACL(organizationID string, requestOrganizationsCreateOrganizationAdaptivePolicyAcl *RequestOrganizationsCreateOrganizationAdaptivePolicyACL) (*ResponseOrganizationsCreateOrganizationAdaptivePolicyACL, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/acls" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5063,12 +4992,11 @@ func (s *OrganizationsService) CreateOrganizationAdaptivePolicyACL(organizationI @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-adaptive-policy-group */ func (s *OrganizationsService) CreateOrganizationAdaptivePolicyGroup(organizationID string, requestOrganizationsCreateOrganizationAdaptivePolicyGroup *RequestOrganizationsCreateOrganizationAdaptivePolicyGroup) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/groups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5097,12 +5025,11 @@ func (s *OrganizationsService) CreateOrganizationAdaptivePolicyGroup(organizatio @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-adaptive-policy-policy */ func (s *OrganizationsService) CreateOrganizationAdaptivePolicyPolicy(organizationID string, requestOrganizationsCreateOrganizationAdaptivePolicyPolicy *RequestOrganizationsCreateOrganizationAdaptivePolicyPolicy) (*ResponseOrganizationsCreateOrganizationAdaptivePolicyPolicy, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/policies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5132,12 +5059,11 @@ func (s *OrganizationsService) CreateOrganizationAdaptivePolicyPolicy(organizati @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-admin */ func (s *OrganizationsService) CreateOrganizationAdmin(organizationID string, requestOrganizationsCreateOrganizationAdmin *RequestOrganizationsCreateOrganizationAdmin) (*ResponseOrganizationsCreateOrganizationAdmin, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/admins" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5167,12 +5093,11 @@ func (s *OrganizationsService) CreateOrganizationAdmin(organizationID string, re @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-alerts-profile */ func (s *OrganizationsService) CreateOrganizationAlertsProfile(organizationID string, requestOrganizationsCreateOrganizationAlertsProfile *RequestOrganizationsCreateOrganizationAlertsProfile) (*ResponseOrganizationsCreateOrganizationAlertsProfile, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/alerts/profiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5202,12 +5127,11 @@ func (s *OrganizationsService) CreateOrganizationAlertsProfile(organizationID st @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-branding-policy */ func (s *OrganizationsService) CreateOrganizationBrandingPolicy(organizationID string, requestOrganizationsCreateOrganizationBrandingPolicy *RequestOrganizationsCreateOrganizationBrandingPolicy) (*ResponseOrganizationsCreateOrganizationBrandingPolicy, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/brandingPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5237,12 +5161,11 @@ func (s *OrganizationsService) CreateOrganizationBrandingPolicy(organizationID s @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!claim-into-organization */ func (s *OrganizationsService) ClaimIntoOrganization(organizationID string, requestOrganizationsClaimIntoOrganization *RequestOrganizationsClaimIntoOrganization) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/claim" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5271,12 +5194,11 @@ func (s *OrganizationsService) ClaimIntoOrganization(organizationID string, requ @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!clone-organization */ func (s *OrganizationsService) CloneOrganization(organizationID string, requestOrganizationsCloneOrganization *RequestOrganizationsCloneOrganization) (*ResponseOrganizationsCloneOrganization, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/clone" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5306,12 +5228,11 @@ func (s *OrganizationsService) CloneOrganization(organizationID string, requestO @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-config-template */ func (s *OrganizationsService) CreateOrganizationConfigTemplate(organizationID string, requestOrganizationsCreateOrganizationConfigTemplate *RequestOrganizationsCreateOrganizationConfigTemplate) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5340,12 +5261,11 @@ func (s *OrganizationsService) CreateOrganizationConfigTemplate(organizationID s @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-early-access-features-opt-in */ func (s *OrganizationsService) CreateOrganizationEarlyAccessFeaturesOptIn(organizationID string, requestOrganizationsCreateOrganizationEarlyAccessFeaturesOptIn *RequestOrganizationsCreateOrganizationEarlyAccessFeaturesOptIn) (*ResponseOrganizationsCreateOrganizationEarlyAccessFeaturesOptIn, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/earlyAccess/features/optIns" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5375,12 +5295,11 @@ func (s *OrganizationsService) CreateOrganizationEarlyAccessFeaturesOptIn(organi @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!claim-into-organization-inventory */ func (s *OrganizationsService) ClaimIntoOrganizationInventory(organizationID string, requestOrganizationsClaimIntoOrganizationInventory *RequestOrganizationsClaimIntoOrganizationInventory) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/claim" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5409,12 +5328,11 @@ func (s *OrganizationsService) ClaimIntoOrganizationInventory(organizationID str @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-inventory-onboarding-cloud-monitoring-export-event */ func (s *OrganizationsService) CreateOrganizationInventoryOnboardingCloudMonitoringExportEvent(organizationID string, requestOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringExportEvent *RequestOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringExportEvent) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/onboarding/cloudMonitoring/exportEvents" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5443,12 +5361,11 @@ func (s *OrganizationsService) CreateOrganizationInventoryOnboardingCloudMonitor @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-inventory-onboarding-cloud-monitoring-import */ func (s *OrganizationsService) CreateOrganizationInventoryOnboardingCloudMonitoringImport(organizationID string, requestOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringImport *RequestOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringImport) (*ResponseOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringImport, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/onboarding/cloudMonitoring/imports" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5478,12 +5395,11 @@ func (s *OrganizationsService) CreateOrganizationInventoryOnboardingCloudMonitor @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-inventory-onboarding-cloud-monitoring-prepare */ func (s *OrganizationsService) CreateOrganizationInventoryOnboardingCloudMonitoringPrepare(organizationID string, requestOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringPrepare *RequestOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringPrepare) (*ResponseOrganizationsCreateOrganizationInventoryOnboardingCloudMonitoringPrepare, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/onboarding/cloudMonitoring/prepare" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5513,12 +5429,11 @@ func (s *OrganizationsService) CreateOrganizationInventoryOnboardingCloudMonitor @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!release-from-organization-inventory */ func (s *OrganizationsService) ReleaseFromOrganizationInventory(organizationID string, requestOrganizationsReleaseFromOrganizationInventory *RequestOrganizationsReleaseFromOrganizationInventory) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/inventory/release" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5547,12 +5462,11 @@ func (s *OrganizationsService) ReleaseFromOrganizationInventory(organizationID s @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!assign-organization-licenses-seats */ func (s *OrganizationsService) AssignOrganizationLicensesSeats(organizationID string, requestOrganizationsAssignOrganizationLicensesSeats *RequestOrganizationsAssignOrganizationLicensesSeats) (*ResponseOrganizationsAssignOrganizationLicensesSeats, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses/assignSeats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5582,12 +5496,11 @@ func (s *OrganizationsService) AssignOrganizationLicensesSeats(organizationID st @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!move-organization-licenses */ func (s *OrganizationsService) MoveOrganizationLicenses(organizationID string, requestOrganizationsMoveOrganizationLicenses *RequestOrganizationsMoveOrganizationLicenses) (*ResponseOrganizationsMoveOrganizationLicenses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses/move" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5617,12 +5530,11 @@ func (s *OrganizationsService) MoveOrganizationLicenses(organizationID string, r @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!move-organization-licenses-seats */ func (s *OrganizationsService) MoveOrganizationLicensesSeats(organizationID string, requestOrganizationsMoveOrganizationLicensesSeats *RequestOrganizationsMoveOrganizationLicensesSeats) (*ResponseOrganizationsMoveOrganizationLicensesSeats, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses/moveSeats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5652,12 +5564,11 @@ func (s *OrganizationsService) MoveOrganizationLicensesSeats(organizationID stri @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!renew-organization-licenses-seats */ func (s *OrganizationsService) RenewOrganizationLicensesSeats(organizationID string, requestOrganizationsRenewOrganizationLicensesSeats *RequestOrganizationsRenewOrganizationLicensesSeats) (*ResponseOrganizationsRenewOrganizationLicensesSeats, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses/renewSeats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5687,12 +5598,11 @@ func (s *OrganizationsService) RenewOrganizationLicensesSeats(organizationID str @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-network */ func (s *OrganizationsService) CreateOrganizationNetwork(organizationID string, requestOrganizationsCreateOrganizationNetwork *RequestOrganizationsCreateOrganizationNetwork) (*ResponseOrganizationsCreateOrganizationNetwork, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/networks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5722,12 +5632,11 @@ func (s *OrganizationsService) CreateOrganizationNetwork(organizationID string, @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!combine-organization-networks */ func (s *OrganizationsService) CombineOrganizationNetworks(organizationID string, requestOrganizationsCombineOrganizationNetworks *RequestOrganizationsCombineOrganizationNetworks) (*ResponseOrganizationsCombineOrganizationNetworks, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/networks/combine" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5757,12 +5666,11 @@ func (s *OrganizationsService) CombineOrganizationNetworks(organizationID string @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-policy-object */ func (s *OrganizationsService) CreateOrganizationPolicyObject(organizationID string, requestOrganizationsCreateOrganizationPolicyObject *RequestOrganizationsCreateOrganizationPolicyObject) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5791,12 +5699,11 @@ func (s *OrganizationsService) CreateOrganizationPolicyObject(organizationID str @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-policy-objects-group */ func (s *OrganizationsService) CreateOrganizationPolicyObjectsGroup(organizationID string, requestOrganizationsCreateOrganizationPolicyObjectsGroup *RequestOrganizationsCreateOrganizationPolicyObjectsGroup) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects/groups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5825,12 +5732,11 @@ func (s *OrganizationsService) CreateOrganizationPolicyObjectsGroup(organization @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-saml-idp */ func (s *OrganizationsService) CreateOrganizationSamlIDp(organizationID string, requestOrganizationsCreateOrganizationSamlIdp *RequestOrganizationsCreateOrganizationSamlIDp) (*ResponseOrganizationsCreateOrganizationSamlIDp, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/saml/idps" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5860,12 +5766,11 @@ func (s *OrganizationsService) CreateOrganizationSamlIDp(organizationID string, @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-organization-saml-role */ func (s *OrganizationsService) CreateOrganizationSamlRole(organizationID string, requestOrganizationsCreateOrganizationSamlRole *RequestOrganizationsCreateOrganizationSamlRole) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/samlRoles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5896,7 +5801,6 @@ func (s *OrganizationsService) CreateOrganizationSamlRole(organizationID string, */ func (s *OrganizationsService) UpdateOrganization(organizationID string, requestOrganizationsUpdateOrganization *RequestOrganizationsUpdateOrganization) (*ResponseOrganizationsUpdateOrganization, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -5929,7 +5833,6 @@ func (s *OrganizationsService) UpdateOrganization(organizationID string, request */ func (s *OrganizationsService) UpdateOrganizationActionBatch(organizationID string, actionBatchID string, requestOrganizationsUpdateOrganizationActionBatch *RequestOrganizationsUpdateOrganizationActionBatch) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/actionBatches/{actionBatchId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{actionBatchId}", fmt.Sprintf("%v", actionBatchID), -1) @@ -5961,7 +5864,6 @@ func (s *OrganizationsService) UpdateOrganizationActionBatch(organizationID stri */ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicyACL(organizationID string, aclID string, requestOrganizationsUpdateOrganizationAdaptivePolicyAcl *RequestOrganizationsUpdateOrganizationAdaptivePolicyACL) (*ResponseOrganizationsUpdateOrganizationAdaptivePolicyACL, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/acls/{aclId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{aclId}", fmt.Sprintf("%v", aclID), -1) @@ -5995,7 +5897,6 @@ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicyACL(organizationI */ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicyGroup(organizationID string, id string, requestOrganizationsUpdateOrganizationAdaptivePolicyGroup *RequestOrganizationsUpdateOrganizationAdaptivePolicyGroup) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/groups/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -6027,7 +5928,6 @@ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicyGroup(organizatio */ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicyPolicy(organizationID string, id string, requestOrganizationsUpdateOrganizationAdaptivePolicyPolicy *RequestOrganizationsUpdateOrganizationAdaptivePolicyPolicy) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/policies/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -6058,7 +5958,6 @@ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicyPolicy(organizati */ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicySettings(organizationID string, requestOrganizationsUpdateOrganizationAdaptivePolicySettings *RequestOrganizationsUpdateOrganizationAdaptivePolicySettings) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/adaptivePolicy/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -6089,7 +5988,6 @@ func (s *OrganizationsService) UpdateOrganizationAdaptivePolicySettings(organiza */ func (s *OrganizationsService) UpdateOrganizationAdmin(organizationID string, adminID string, requestOrganizationsUpdateOrganizationAdmin *RequestOrganizationsUpdateOrganizationAdmin) (*ResponseOrganizationsUpdateOrganizationAdmin, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/admins/{adminId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{adminId}", fmt.Sprintf("%v", adminID), -1) @@ -6123,7 +6021,6 @@ func (s *OrganizationsService) UpdateOrganizationAdmin(organizationID string, ad */ func (s *OrganizationsService) UpdateOrganizationAlertsProfile(organizationID string, alertConfigID string, requestOrganizationsUpdateOrganizationAlertsProfile *RequestOrganizationsUpdateOrganizationAlertsProfile) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/alerts/profiles/{alertConfigId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{alertConfigId}", fmt.Sprintf("%v", alertConfigID), -1) @@ -6154,7 +6051,6 @@ func (s *OrganizationsService) UpdateOrganizationAlertsProfile(organizationID st */ func (s *OrganizationsService) UpdateOrganizationBrandingPoliciesPriorities(organizationID string, requestOrganizationsUpdateOrganizationBrandingPoliciesPriorities *RequestOrganizationsUpdateOrganizationBrandingPoliciesPriorities) (*ResponseOrganizationsUpdateOrganizationBrandingPoliciesPriorities, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/brandingPolicies/priorities" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -6187,7 +6083,6 @@ func (s *OrganizationsService) UpdateOrganizationBrandingPoliciesPriorities(orga */ func (s *OrganizationsService) UpdateOrganizationBrandingPolicy(organizationID string, brandingPolicyID string, requestOrganizationsUpdateOrganizationBrandingPolicy *RequestOrganizationsUpdateOrganizationBrandingPolicy) (*ResponseOrganizationsUpdateOrganizationBrandingPolicy, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/brandingPolicies/{brandingPolicyId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{brandingPolicyId}", fmt.Sprintf("%v", brandingPolicyID), -1) @@ -6221,7 +6116,6 @@ func (s *OrganizationsService) UpdateOrganizationBrandingPolicy(organizationID s */ func (s *OrganizationsService) UpdateOrganizationConfigTemplate(organizationID string, configTemplateID string, requestOrganizationsUpdateOrganizationConfigTemplate *RequestOrganizationsUpdateOrganizationConfigTemplate) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates/{configTemplateId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{configTemplateId}", fmt.Sprintf("%v", configTemplateID), -1) @@ -6253,7 +6147,6 @@ func (s *OrganizationsService) UpdateOrganizationConfigTemplate(organizationID s */ func (s *OrganizationsService) UpdateOrganizationEarlyAccessFeaturesOptIn(organizationID string, optInID string, requestOrganizationsUpdateOrganizationEarlyAccessFeaturesOptIn *RequestOrganizationsUpdateOrganizationEarlyAccessFeaturesOptIn) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/earlyAccess/features/optIns/{optInId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{optInId}", fmt.Sprintf("%v", optInID), -1) @@ -6285,7 +6178,6 @@ func (s *OrganizationsService) UpdateOrganizationEarlyAccessFeaturesOptIn(organi */ func (s *OrganizationsService) UpdateOrganizationLicense(organizationID string, licenseID string, requestOrganizationsUpdateOrganizationLicense *RequestOrganizationsUpdateOrganizationLicense) (*ResponseOrganizationsUpdateOrganizationLicense, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/licenses/{licenseId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{licenseId}", fmt.Sprintf("%v", licenseID), -1) @@ -6318,7 +6210,6 @@ func (s *OrganizationsService) UpdateOrganizationLicense(organizationID string, */ func (s *OrganizationsService) UpdateOrganizationLoginSecurity(organizationID string, requestOrganizationsUpdateOrganizationLoginSecurity *RequestOrganizationsUpdateOrganizationLoginSecurity) (*ResponseOrganizationsUpdateOrganizationLoginSecurity, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/loginSecurity" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -6351,7 +6242,6 @@ func (s *OrganizationsService) UpdateOrganizationLoginSecurity(organizationID st */ func (s *OrganizationsService) UpdateOrganizationPolicyObjectsGroup(organizationID string, policyObjectGroupID string, requestOrganizationsUpdateOrganizationPolicyObjectsGroup *RequestOrganizationsUpdateOrganizationPolicyObjectsGroup) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects/groups/{policyObjectGroupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{policyObjectGroupId}", fmt.Sprintf("%v", policyObjectGroupID), -1) @@ -6383,7 +6273,6 @@ func (s *OrganizationsService) UpdateOrganizationPolicyObjectsGroup(organization */ func (s *OrganizationsService) UpdateOrganizationPolicyObject(organizationID string, policyObjectID string, requestOrganizationsUpdateOrganizationPolicyObject *RequestOrganizationsUpdateOrganizationPolicyObject) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/policyObjects/{policyObjectId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{policyObjectId}", fmt.Sprintf("%v", policyObjectID), -1) @@ -6414,7 +6303,6 @@ func (s *OrganizationsService) UpdateOrganizationPolicyObject(organizationID str */ func (s *OrganizationsService) UpdateOrganizationSaml(organizationID string, requestOrganizationsUpdateOrganizationSaml *RequestOrganizationsUpdateOrganizationSaml) (*ResponseOrganizationsUpdateOrganizationSaml, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/saml" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -6447,7 +6335,6 @@ func (s *OrganizationsService) UpdateOrganizationSaml(organizationID string, req */ func (s *OrganizationsService) UpdateOrganizationSamlIDp(organizationID string, idpID string, requestOrganizationsUpdateOrganizationSamlIdp *RequestOrganizationsUpdateOrganizationSamlIDp) (*ResponseOrganizationsUpdateOrganizationSamlIDp, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/saml/idps/{idpId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{idpId}", fmt.Sprintf("%v", idpID), -1) @@ -6481,7 +6368,6 @@ func (s *OrganizationsService) UpdateOrganizationSamlIDp(organizationID string, */ func (s *OrganizationsService) UpdateOrganizationSamlRole(organizationID string, samlRoleID string, requestOrganizationsUpdateOrganizationSamlRole *RequestOrganizationsUpdateOrganizationSamlRole) (*ResponseOrganizationsUpdateOrganizationSamlRole, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/samlRoles/{samlRoleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{samlRoleId}", fmt.Sprintf("%v", samlRoleID), -1) @@ -6514,7 +6400,6 @@ func (s *OrganizationsService) UpdateOrganizationSamlRole(organizationID string, */ func (s *OrganizationsService) UpdateOrganizationSNMP(organizationID string, requestOrganizationsUpdateOrganizationSnmp *RequestOrganizationsUpdateOrganizationSNMP) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/snmp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -6542,12 +6427,11 @@ func (s *OrganizationsService) UpdateOrganizationSNMP(organizationID string, req @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization */ func (s *OrganizationsService) DeleteOrganization(organizationID string) (*resty.Response, error) { //organizationID string path := "/api/v1/organizations/{organizationId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -6575,12 +6459,11 @@ func (s *OrganizationsService) DeleteOrganization(organizationID string) (*resty @param organizationID organizationId path parameter. Organization ID @param actionBatchID actionBatchId path parameter. Action batch ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-action-batch */ func (s *OrganizationsService) DeleteOrganizationActionBatch(organizationID string, actionBatchID string) (*resty.Response, error) { //organizationID string,actionBatchID string path := "/api/v1/organizations/{organizationId}/actionBatches/{actionBatchId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{actionBatchId}", fmt.Sprintf("%v", actionBatchID), -1) @@ -6609,12 +6492,11 @@ func (s *OrganizationsService) DeleteOrganizationActionBatch(organizationID stri @param organizationID organizationId path parameter. Organization ID @param aclID aclId path parameter. Acl ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-adaptive-policy-acl */ func (s *OrganizationsService) DeleteOrganizationAdaptivePolicyACL(organizationID string, aclID string) (*resty.Response, error) { //organizationID string,aclID string path := "/api/v1/organizations/{organizationId}/adaptivePolicy/acls/{aclId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{aclId}", fmt.Sprintf("%v", aclID), -1) @@ -6643,12 +6525,11 @@ func (s *OrganizationsService) DeleteOrganizationAdaptivePolicyACL(organizationI @param organizationID organizationId path parameter. Organization ID @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-adaptive-policy-group */ func (s *OrganizationsService) DeleteOrganizationAdaptivePolicyGroup(organizationID string, id string) (*resty.Response, error) { //organizationID string,id string path := "/api/v1/organizations/{organizationId}/adaptivePolicy/groups/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -6677,12 +6558,11 @@ func (s *OrganizationsService) DeleteOrganizationAdaptivePolicyGroup(organizatio @param organizationID organizationId path parameter. Organization ID @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-adaptive-policy-policy */ func (s *OrganizationsService) DeleteOrganizationAdaptivePolicyPolicy(organizationID string, id string) (*resty.Response, error) { //organizationID string,id string path := "/api/v1/organizations/{organizationId}/adaptivePolicy/policies/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -6711,12 +6591,11 @@ func (s *OrganizationsService) DeleteOrganizationAdaptivePolicyPolicy(organizati @param organizationID organizationId path parameter. Organization ID @param adminID adminId path parameter. Admin ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-admin */ func (s *OrganizationsService) DeleteOrganizationAdmin(organizationID string, adminID string) (*resty.Response, error) { //organizationID string,adminID string path := "/api/v1/organizations/{organizationId}/admins/{adminId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{adminId}", fmt.Sprintf("%v", adminID), -1) @@ -6745,12 +6624,11 @@ func (s *OrganizationsService) DeleteOrganizationAdmin(organizationID string, ad @param organizationID organizationId path parameter. Organization ID @param alertConfigID alertConfigId path parameter. Alert config ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-alerts-profile */ func (s *OrganizationsService) DeleteOrganizationAlertsProfile(organizationID string, alertConfigID string) (*resty.Response, error) { //organizationID string,alertConfigID string path := "/api/v1/organizations/{organizationId}/alerts/profiles/{alertConfigId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{alertConfigId}", fmt.Sprintf("%v", alertConfigID), -1) @@ -6779,12 +6657,11 @@ func (s *OrganizationsService) DeleteOrganizationAlertsProfile(organizationID st @param organizationID organizationId path parameter. Organization ID @param brandingPolicyID brandingPolicyId path parameter. Branding policy ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-branding-policy */ func (s *OrganizationsService) DeleteOrganizationBrandingPolicy(organizationID string, brandingPolicyID string) (*resty.Response, error) { //organizationID string,brandingPolicyID string path := "/api/v1/organizations/{organizationId}/brandingPolicies/{brandingPolicyId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{brandingPolicyId}", fmt.Sprintf("%v", brandingPolicyID), -1) @@ -6813,12 +6690,11 @@ func (s *OrganizationsService) DeleteOrganizationBrandingPolicy(organizationID s @param organizationID organizationId path parameter. Organization ID @param configTemplateID configTemplateId path parameter. Config template ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-config-template */ func (s *OrganizationsService) DeleteOrganizationConfigTemplate(organizationID string, configTemplateID string) (*resty.Response, error) { //organizationID string,configTemplateID string path := "/api/v1/organizations/{organizationId}/configTemplates/{configTemplateId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{configTemplateId}", fmt.Sprintf("%v", configTemplateID), -1) @@ -6847,12 +6723,11 @@ func (s *OrganizationsService) DeleteOrganizationConfigTemplate(organizationID s @param organizationID organizationId path parameter. Organization ID @param optInID optInId path parameter. Opt in ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-early-access-features-opt-in */ func (s *OrganizationsService) DeleteOrganizationEarlyAccessFeaturesOptIn(organizationID string, optInID string) (*resty.Response, error) { //organizationID string,optInID string path := "/api/v1/organizations/{organizationId}/earlyAccess/features/optIns/{optInId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{optInId}", fmt.Sprintf("%v", optInID), -1) @@ -6881,12 +6756,11 @@ func (s *OrganizationsService) DeleteOrganizationEarlyAccessFeaturesOptIn(organi @param organizationID organizationId path parameter. Organization ID @param policyObjectGroupID policyObjectGroupId path parameter. Policy object group ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-policy-objects-group */ func (s *OrganizationsService) DeleteOrganizationPolicyObjectsGroup(organizationID string, policyObjectGroupID string) (*resty.Response, error) { //organizationID string,policyObjectGroupID string path := "/api/v1/organizations/{organizationId}/policyObjects/groups/{policyObjectGroupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{policyObjectGroupId}", fmt.Sprintf("%v", policyObjectGroupID), -1) @@ -6915,12 +6789,11 @@ func (s *OrganizationsService) DeleteOrganizationPolicyObjectsGroup(organization @param organizationID organizationId path parameter. Organization ID @param policyObjectID policyObjectId path parameter. Policy object ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-policy-object */ func (s *OrganizationsService) DeleteOrganizationPolicyObject(organizationID string, policyObjectID string) (*resty.Response, error) { //organizationID string,policyObjectID string path := "/api/v1/organizations/{organizationId}/policyObjects/{policyObjectId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{policyObjectId}", fmt.Sprintf("%v", policyObjectID), -1) @@ -6949,12 +6822,11 @@ func (s *OrganizationsService) DeleteOrganizationPolicyObject(organizationID str @param organizationID organizationId path parameter. Organization ID @param idpID idpId path parameter. Idp ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-saml-idp */ func (s *OrganizationsService) DeleteOrganizationSamlIDp(organizationID string, idpID string) (*resty.Response, error) { //organizationID string,idpID string path := "/api/v1/organizations/{organizationId}/saml/idps/{idpId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{idpId}", fmt.Sprintf("%v", idpID), -1) @@ -6983,12 +6855,11 @@ func (s *OrganizationsService) DeleteOrganizationSamlIDp(organizationID string, @param organizationID organizationId path parameter. Organization ID @param samlRoleID samlRoleId path parameter. Saml role ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-saml-role */ func (s *OrganizationsService) DeleteOrganizationSamlRole(organizationID string, samlRoleID string) (*resty.Response, error) { //organizationID string,samlRoleID string path := "/api/v1/organizations/{organizationId}/samlRoles/{samlRoleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{samlRoleId}", fmt.Sprintf("%v", samlRoleID), -1) @@ -7017,12 +6888,11 @@ func (s *OrganizationsService) DeleteOrganizationSamlRole(organizationID string, @param organizationID organizationId path parameter. Organization ID @param userID userId path parameter. User ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-organization-user */ func (s *OrganizationsService) DeleteOrganizationUser(organizationID string, userID string) (*resty.Response, error) { //organizationID string,userID string path := "/api/v1/organizations/{organizationId}/users/{userId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userID), -1) diff --git a/sdk/sensor.go b/sdk/sensor.go index b9bf467c0..f9e77ef34 100644 --- a/sdk/sensor.go +++ b/sdk/sensor.go @@ -656,11 +656,10 @@ type RequestSensorUpdateNetworkSensorMqttBroker struct { @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-sensor-relationships */ func (s *SensorService) GetDeviceSensorRelationships(serial string) (*ResponseSensorGetDeviceSensorRelationships, *resty.Response, error) { path := "/api/v1/devices/{serial}/sensor/relationships" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -689,11 +688,10 @@ func (s *SensorService) GetDeviceSensorRelationships(serial string) (*ResponseSe @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sensor-alerts-current-overview-by-metric */ func (s *SensorService) GetNetworkSensorAlertsCurrentOverviewByMetric(networkID string) (*ResponseSensorGetNetworkSensorAlertsCurrentOverviewByMetric, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/alerts/current/overview/byMetric" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -723,11 +721,10 @@ func (s *SensorService) GetNetworkSensorAlertsCurrentOverviewByMetric(networkID @param networkID networkId path parameter. Network ID @param getNetworkSensorAlertsOverviewByMetricQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sensor-alerts-overview-by-metric */ func (s *SensorService) GetNetworkSensorAlertsOverviewByMetric(networkID string, getNetworkSensorAlertsOverviewByMetricQueryParams *GetNetworkSensorAlertsOverviewByMetricQueryParams) (*ResponseSensorGetNetworkSensorAlertsOverviewByMetric, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/alerts/overview/byMetric" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSensorAlertsOverviewByMetricQueryParams) @@ -758,11 +755,10 @@ func (s *SensorService) GetNetworkSensorAlertsOverviewByMetric(networkID string, @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sensor-alerts-profiles */ func (s *SensorService) GetNetworkSensorAlertsProfiles(networkID string) (*ResponseSensorGetNetworkSensorAlertsProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/alerts/profiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -792,11 +788,10 @@ func (s *SensorService) GetNetworkSensorAlertsProfiles(networkID string) (*Respo @param networkID networkId path parameter. Network ID @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sensor-alerts-profile */ func (s *SensorService) GetNetworkSensorAlertsProfile(networkID string, id string) (*ResponseSensorGetNetworkSensorAlertsProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/alerts/profiles/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -826,11 +821,10 @@ func (s *SensorService) GetNetworkSensorAlertsProfile(networkID string, id strin @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sensor-mqtt-brokers */ func (s *SensorService) GetNetworkSensorMqttBrokers(networkID string) (*ResponseSensorGetNetworkSensorMqttBrokers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/mqttBrokers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -860,11 +854,10 @@ func (s *SensorService) GetNetworkSensorMqttBrokers(networkID string) (*Response @param networkID networkId path parameter. Network ID @param mqttBrokerID mqttBrokerId path parameter. Mqtt broker ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sensor-mqtt-broker */ func (s *SensorService) GetNetworkSensorMqttBroker(networkID string, mqttBrokerID string) (*ResponseSensorGetNetworkSensorMqttBroker, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/mqttBrokers/{mqttBrokerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{mqttBrokerId}", fmt.Sprintf("%v", mqttBrokerID), -1) @@ -894,11 +887,10 @@ func (s *SensorService) GetNetworkSensorMqttBroker(networkID string, mqttBrokerI @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sensor-relationships */ func (s *SensorService) GetNetworkSensorRelationships(networkID string) (*ResponseSensorGetNetworkSensorRelationships, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/relationships" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -928,11 +920,10 @@ func (s *SensorService) GetNetworkSensorRelationships(networkID string) (*Respon @param organizationID organizationId path parameter. Organization ID @param getOrganizationSensorReadingsHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-sensor-readings-history */ func (s *SensorService) GetOrganizationSensorReadingsHistory(organizationID string, getOrganizationSensorReadingsHistoryQueryParams *GetOrganizationSensorReadingsHistoryQueryParams) (*ResponseSensorGetOrganizationSensorReadingsHistory, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/sensor/readings/history" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSensorReadingsHistoryQueryParams) @@ -964,11 +955,10 @@ func (s *SensorService) GetOrganizationSensorReadingsHistory(organizationID stri @param organizationID organizationId path parameter. Organization ID @param getOrganizationSensorReadingsLatestQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-sensor-readings-latest */ func (s *SensorService) GetOrganizationSensorReadingsLatest(organizationID string, getOrganizationSensorReadingsLatestQueryParams *GetOrganizationSensorReadingsLatestQueryParams) (*ResponseSensorGetOrganizationSensorReadingsLatest, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/sensor/readings/latest" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSensorReadingsLatestQueryParams) @@ -999,12 +989,11 @@ func (s *SensorService) GetOrganizationSensorReadingsLatest(organizationID strin @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-sensor-alerts-profile */ func (s *SensorService) CreateNetworkSensorAlertsProfile(networkID string, requestSensorCreateNetworkSensorAlertsProfile *RequestSensorCreateNetworkSensorAlertsProfile) (*ResponseSensorCreateNetworkSensorAlertsProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/alerts/profiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1036,7 +1025,6 @@ func (s *SensorService) CreateNetworkSensorAlertsProfile(networkID string, reque */ func (s *SensorService) UpdateDeviceSensorRelationships(serial string, requestSensorUpdateDeviceSensorRelationships *RequestSensorUpdateDeviceSensorRelationships) (*ResponseSensorUpdateDeviceSensorRelationships, *resty.Response, error) { path := "/api/v1/devices/{serial}/sensor/relationships" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1069,7 +1057,6 @@ func (s *SensorService) UpdateDeviceSensorRelationships(serial string, requestSe */ func (s *SensorService) UpdateNetworkSensorAlertsProfile(networkID string, id string, requestSensorUpdateNetworkSensorAlertsProfile *RequestSensorUpdateNetworkSensorAlertsProfile) (*ResponseSensorUpdateNetworkSensorAlertsProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/alerts/profiles/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) @@ -1103,7 +1090,6 @@ func (s *SensorService) UpdateNetworkSensorAlertsProfile(networkID string, id st */ func (s *SensorService) UpdateNetworkSensorMqttBroker(networkID string, mqttBrokerID string, requestSensorUpdateNetworkSensorMqttBroker *RequestSensorUpdateNetworkSensorMqttBroker) (*ResponseSensorUpdateNetworkSensorMqttBroker, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sensor/mqttBrokers/{mqttBrokerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{mqttBrokerId}", fmt.Sprintf("%v", mqttBrokerID), -1) @@ -1135,12 +1121,11 @@ func (s *SensorService) UpdateNetworkSensorMqttBroker(networkID string, mqttBrok @param networkID networkId path parameter. Network ID @param id id path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-sensor-alerts-profile */ func (s *SensorService) DeleteNetworkSensorAlertsProfile(networkID string, id string) (*resty.Response, error) { //networkID string,id string path := "/api/v1/networks/{networkId}/sensor/alerts/profiles/{id}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{id}", fmt.Sprintf("%v", id), -1) diff --git a/sdk/sm.go b/sdk/sm.go index 1228b1973..55a94b9c2 100644 --- a/sdk/sm.go +++ b/sdk/sm.go @@ -452,11 +452,10 @@ type RequestSmUpdateNetworkSmTargetGroup struct { @param networkID networkId path parameter. Network ID @param attemptID attemptId path parameter. Attempt ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-bypass-activation-lock-attempt */ func (s *SmService) GetNetworkSmBypassActivationLockAttempt(networkID string, attemptID string) (*ResponseSmGetNetworkSmBypassActivationLockAttempt, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/bypassActivationLockAttempts/{attemptId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{attemptId}", fmt.Sprintf("%v", attemptID), -1) @@ -487,11 +486,10 @@ func (s *SmService) GetNetworkSmBypassActivationLockAttempt(networkID string, at @param networkID networkId path parameter. Network ID @param getNetworkSmDevicesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-devices */ func (s *SmService) GetNetworkSmDevices(networkID string, getNetworkSmDevicesQueryParams *GetNetworkSmDevicesQueryParams) (*ResponseSmGetNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSmDevicesQueryParams) @@ -523,11 +521,10 @@ func (s *SmService) GetNetworkSmDevices(networkID string, getNetworkSmDevicesQue @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-cellular-usage-history */ func (s *SmService) GetNetworkSmDeviceCellularUsageHistory(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceCellularUsageHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/cellularUsageHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -558,11 +555,10 @@ func (s *SmService) GetNetworkSmDeviceCellularUsageHistory(networkID string, dev @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-certs */ func (s *SmService) GetNetworkSmDeviceCerts(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceCerts, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/certs" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -594,11 +590,10 @@ func (s *SmService) GetNetworkSmDeviceCerts(networkID string, deviceID string) ( @param deviceID deviceId path parameter. Device ID @param getNetworkSmDeviceConnectivityQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-connectivity */ func (s *SmService) GetNetworkSmDeviceConnectivity(networkID string, deviceID string, getNetworkSmDeviceConnectivityQueryParams *GetNetworkSmDeviceConnectivityQueryParams) (*ResponseSmGetNetworkSmDeviceConnectivity, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/connectivity" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -632,11 +627,10 @@ func (s *SmService) GetNetworkSmDeviceConnectivity(networkID string, deviceID st @param deviceID deviceId path parameter. Device ID @param getNetworkSmDeviceDesktopLogsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-desktop-logs */ func (s *SmService) GetNetworkSmDeviceDesktopLogs(networkID string, deviceID string, getNetworkSmDeviceDesktopLogsQueryParams *GetNetworkSmDeviceDesktopLogsQueryParams) (*ResponseSmGetNetworkSmDeviceDesktopLogs, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/desktopLogs" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -670,11 +664,10 @@ func (s *SmService) GetNetworkSmDeviceDesktopLogs(networkID string, deviceID str @param deviceID deviceId path parameter. Device ID @param getNetworkSmDeviceDeviceCommandLogsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-device-command-logs */ func (s *SmService) GetNetworkSmDeviceDeviceCommandLogs(networkID string, deviceID string, getNetworkSmDeviceDeviceCommandLogsQueryParams *GetNetworkSmDeviceDeviceCommandLogsQueryParams) (*ResponseSmGetNetworkSmDeviceDeviceCommandLogs, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/deviceCommandLogs" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -707,11 +700,10 @@ func (s *SmService) GetNetworkSmDeviceDeviceCommandLogs(networkID string, device @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-device-profiles */ func (s *SmService) GetNetworkSmDeviceDeviceProfiles(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceDeviceProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/deviceProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -742,11 +734,10 @@ func (s *SmService) GetNetworkSmDeviceDeviceProfiles(networkID string, deviceID @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-network-adapters */ func (s *SmService) GetNetworkSmDeviceNetworkAdapters(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceNetworkAdapters, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/networkAdapters" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -778,11 +769,10 @@ func (s *SmService) GetNetworkSmDeviceNetworkAdapters(networkID string, deviceID @param deviceID deviceId path parameter. Device ID @param getNetworkSmDevicePerformanceHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-performance-history */ func (s *SmService) GetNetworkSmDevicePerformanceHistory(networkID string, deviceID string, getNetworkSmDevicePerformanceHistoryQueryParams *GetNetworkSmDevicePerformanceHistoryQueryParams) (*ResponseSmGetNetworkSmDevicePerformanceHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/performanceHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -815,11 +805,10 @@ func (s *SmService) GetNetworkSmDevicePerformanceHistory(networkID string, devic @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-restrictions */ func (s *SmService) GetNetworkSmDeviceRestrictions(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceRestrictions, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/restrictions" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -850,11 +839,10 @@ func (s *SmService) GetNetworkSmDeviceRestrictions(networkID string, deviceID st @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-security-centers */ func (s *SmService) GetNetworkSmDeviceSecurityCenters(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceSecurityCenters, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/securityCenters" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -885,11 +873,10 @@ func (s *SmService) GetNetworkSmDeviceSecurityCenters(networkID string, deviceID @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-softwares */ func (s *SmService) GetNetworkSmDeviceSoftwares(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceSoftwares, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/softwares" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -920,11 +907,10 @@ func (s *SmService) GetNetworkSmDeviceSoftwares(networkID string, deviceID strin @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-device-wlan-lists */ func (s *SmService) GetNetworkSmDeviceWLANLists(networkID string, deviceID string) (*ResponseSmGetNetworkSmDeviceWLANLists, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/wlanLists" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -954,11 +940,10 @@ func (s *SmService) GetNetworkSmDeviceWLANLists(networkID string, deviceID strin @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-profiles */ func (s *SmService) GetNetworkSmProfiles(networkID string) (*ResponseSmGetNetworkSmProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/profiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -988,11 +973,10 @@ func (s *SmService) GetNetworkSmProfiles(networkID string) (*ResponseSmGetNetwor @param networkID networkId path parameter. Network ID @param getNetworkSmTargetGroupsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-target-groups */ func (s *SmService) GetNetworkSmTargetGroups(networkID string, getNetworkSmTargetGroupsQueryParams *GetNetworkSmTargetGroupsQueryParams) (*ResponseSmGetNetworkSmTargetGroups, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/targetGroups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSmTargetGroupsQueryParams) @@ -1025,11 +1009,10 @@ func (s *SmService) GetNetworkSmTargetGroups(networkID string, getNetworkSmTarge @param targetGroupID targetGroupId path parameter. Target group ID @param getNetworkSmTargetGroupQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-target-group */ func (s *SmService) GetNetworkSmTargetGroup(networkID string, targetGroupID string, getNetworkSmTargetGroupQueryParams *GetNetworkSmTargetGroupQueryParams) (*ResponseSmGetNetworkSmTargetGroup, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/targetGroups/{targetGroupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{targetGroupId}", fmt.Sprintf("%v", targetGroupID), -1) @@ -1062,11 +1045,10 @@ func (s *SmService) GetNetworkSmTargetGroup(networkID string, targetGroupID stri @param networkID networkId path parameter. Network ID @param getNetworkSmTrustedAccessConfigsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-trusted-access-configs */ func (s *SmService) GetNetworkSmTrustedAccessConfigs(networkID string, getNetworkSmTrustedAccessConfigsQueryParams *GetNetworkSmTrustedAccessConfigsQueryParams) (*ResponseSmGetNetworkSmTrustedAccessConfigs, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/trustedAccessConfigs" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSmTrustedAccessConfigsQueryParams) @@ -1098,11 +1080,10 @@ func (s *SmService) GetNetworkSmTrustedAccessConfigs(networkID string, getNetwor @param networkID networkId path parameter. Network ID @param getNetworkSmUserAccessDevicesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-user-access-devices */ func (s *SmService) GetNetworkSmUserAccessDevices(networkID string, getNetworkSmUserAccessDevicesQueryParams *GetNetworkSmUserAccessDevicesQueryParams) (*ResponseSmGetNetworkSmUserAccessDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/userAccessDevices" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSmUserAccessDevicesQueryParams) @@ -1134,11 +1115,10 @@ func (s *SmService) GetNetworkSmUserAccessDevices(networkID string, getNetworkSm @param networkID networkId path parameter. Network ID @param getNetworkSmUsersQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-users */ func (s *SmService) GetNetworkSmUsers(networkID string, getNetworkSmUsersQueryParams *GetNetworkSmUsersQueryParams) (*ResponseSmGetNetworkSmUsers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/users" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSmUsersQueryParams) @@ -1170,11 +1150,10 @@ func (s *SmService) GetNetworkSmUsers(networkID string, getNetworkSmUsersQueryPa @param networkID networkId path parameter. Network ID @param userID userId path parameter. User ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-user-device-profiles */ func (s *SmService) GetNetworkSmUserDeviceProfiles(networkID string, userID string) (*ResponseSmGetNetworkSmUserDeviceProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/users/{userId}/deviceProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userID), -1) @@ -1205,11 +1184,10 @@ func (s *SmService) GetNetworkSmUserDeviceProfiles(networkID string, userID stri @param networkID networkId path parameter. Network ID @param userID userId path parameter. User ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-sm-user-softwares */ func (s *SmService) GetNetworkSmUserSoftwares(networkID string, userID string) (*ResponseSmGetNetworkSmUserSoftwares, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/users/{userId}/softwares" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{userId}", fmt.Sprintf("%v", userID), -1) @@ -1239,11 +1217,10 @@ func (s *SmService) GetNetworkSmUserSoftwares(networkID string, userID string) ( @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-sm-apns-cert */ func (s *SmService) GetOrganizationSmApnsCert(organizationID string) (*ResponseSmGetOrganizationSmApnsCert, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/sm/apnsCert" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -1272,11 +1249,10 @@ func (s *SmService) GetOrganizationSmApnsCert(organizationID string) (*ResponseS @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-sm-vpp-accounts */ func (s *SmService) GetOrganizationSmVppAccounts(organizationID string) (*ResponseSmGetOrganizationSmVppAccounts, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/sm/vppAccounts" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -1306,11 +1282,10 @@ func (s *SmService) GetOrganizationSmVppAccounts(organizationID string) (*Respon @param organizationID organizationId path parameter. Organization ID @param vppAccountID vppAccountId path parameter. Vpp account ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-sm-vpp-account */ func (s *SmService) GetOrganizationSmVppAccount(organizationID string, vppAccountID string) (*ResponseSmGetOrganizationSmVppAccount, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/sm/vppAccounts/{vppAccountId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{vppAccountId}", fmt.Sprintf("%v", vppAccountID), -1) @@ -1340,12 +1315,11 @@ func (s *SmService) GetOrganizationSmVppAccount(organizationID string, vppAccoun @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-sm-bypass-activation-lock-attempt */ func (s *SmService) CreateNetworkSmBypassActivationLockAttempt(networkID string, requestSmCreateNetworkSmBypassActivationLockAttempt *RequestSmCreateNetworkSmBypassActivationLockAttempt) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/bypassActivationLockAttempts" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1374,12 +1348,11 @@ func (s *SmService) CreateNetworkSmBypassActivationLockAttempt(networkID string, @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!checkin-network-sm-devices */ func (s *SmService) CheckinNetworkSmDevices(networkID string, requestSmCheckinNetworkSmDevices *RequestSmCheckinNetworkSmDevices) (*ResponseSmCheckinNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/checkin" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1409,12 +1382,11 @@ func (s *SmService) CheckinNetworkSmDevices(networkID string, requestSmCheckinNe @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!lock-network-sm-devices */ func (s *SmService) LockNetworkSmDevices(networkID string, requestSmLockNetworkSmDevices *RequestSmLockNetworkSmDevices) (*ResponseSmLockNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/lock" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1444,12 +1416,11 @@ func (s *SmService) LockNetworkSmDevices(networkID string, requestSmLockNetworkS @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!modify-network-sm-devices-tags */ func (s *SmService) ModifyNetworkSmDevicesTags(networkID string, requestSmModifyNetworkSmDevicesTags *RequestSmModifyNetworkSmDevicesTags) (*ResponseSmModifyNetworkSmDevicesTags, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/modifyTags" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1479,12 +1450,11 @@ func (s *SmService) ModifyNetworkSmDevicesTags(networkID string, requestSmModify @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!move-network-sm-devices */ func (s *SmService) MoveNetworkSmDevices(networkID string, requestSmMoveNetworkSmDevices *RequestSmMoveNetworkSmDevices) (*ResponseSmMoveNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/move" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1514,12 +1484,11 @@ func (s *SmService) MoveNetworkSmDevices(networkID string, requestSmMoveNetworkS @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!wipe-network-sm-devices */ func (s *SmService) WipeNetworkSmDevices(networkID string, requestSmWipeNetworkSmDevices *RequestSmWipeNetworkSmDevices) (*ResponseSmWipeNetworkSmDevices, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/wipe" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1550,12 +1519,11 @@ func (s *SmService) WipeNetworkSmDevices(networkID string, requestSmWipeNetworkS @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!refresh-network-sm-device-details */ func (s *SmService) RefreshNetworkSmDeviceDetails(networkID string, deviceID string) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/refreshDetails" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1584,12 +1552,11 @@ func (s *SmService) RefreshNetworkSmDeviceDetails(networkID string, deviceID str @param networkID networkId path parameter. Network ID @param deviceID deviceId path parameter. Device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!unenroll-network-sm-device */ func (s *SmService) UnenrollNetworkSmDevice(networkID string, deviceID string) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/{deviceId}/unenroll" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{deviceId}", fmt.Sprintf("%v", deviceID), -1) @@ -1619,12 +1586,11 @@ func (s *SmService) UnenrollNetworkSmDevice(networkID string, deviceID string) ( @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-sm-target-group */ func (s *SmService) CreateNetworkSmTargetGroup(networkID string, requestSmCreateNetworkSmTargetGroup *RequestSmCreateNetworkSmTargetGroup) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/targetGroups" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1655,7 +1621,6 @@ func (s *SmService) CreateNetworkSmTargetGroup(networkID string, requestSmCreate */ func (s *SmService) UpdateNetworkSmDevicesFields(networkID string, requestSmUpdateNetworkSmDevicesFields *RequestSmUpdateNetworkSmDevicesFields) (*ResponseSmUpdateNetworkSmDevicesFields, *resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/devices/fields" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -1688,7 +1653,6 @@ func (s *SmService) UpdateNetworkSmDevicesFields(networkID string, requestSmUpda */ func (s *SmService) UpdateNetworkSmTargetGroup(networkID string, targetGroupID string, requestSmUpdateNetworkSmTargetGroup *RequestSmUpdateNetworkSmTargetGroup) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/sm/targetGroups/{targetGroupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{targetGroupId}", fmt.Sprintf("%v", targetGroupID), -1) @@ -1718,12 +1682,11 @@ func (s *SmService) UpdateNetworkSmTargetGroup(networkID string, targetGroupID s @param networkID networkId path parameter. Network ID @param targetGroupID targetGroupId path parameter. Target group ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-sm-target-group */ func (s *SmService) DeleteNetworkSmTargetGroup(networkID string, targetGroupID string) (*resty.Response, error) { //networkID string,targetGroupID string path := "/api/v1/networks/{networkId}/sm/targetGroups/{targetGroupId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{targetGroupId}", fmt.Sprintf("%v", targetGroupID), -1) @@ -1752,12 +1715,11 @@ func (s *SmService) DeleteNetworkSmTargetGroup(networkID string, targetGroupID s @param networkID networkId path parameter. Network ID @param userAccessDeviceID userAccessDeviceId path parameter. User access device ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-sm-user-access-device */ func (s *SmService) DeleteNetworkSmUserAccessDevice(networkID string, userAccessDeviceID string) (*resty.Response, error) { //networkID string,userAccessDeviceID string path := "/api/v1/networks/{networkId}/sm/userAccessDevices/{userAccessDeviceId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{userAccessDeviceId}", fmt.Sprintf("%v", userAccessDeviceID), -1) diff --git a/sdk/switch.go b/sdk/switch.go index b3fa170b4..eae43ceb1 100644 --- a/sdk/switch.go +++ b/sdk/switch.go @@ -1,7 +1,6 @@ package meraki import ( - "encoding/json" "fmt" "strings" @@ -416,31 +415,6 @@ type ResponseSwitchGetNetworkSwitchAccessControlListsRules struct { SrcPort string `json:"srcPort,omitempty"` // Source port VLAN string `json:"vlan,omitempty"` // ncoming traffic VLAN } - -func (r *ResponseSwitchGetNetworkSwitchAccessControlListsRules) UnmarshalJSON(data []byte) error { - type Alias ResponseSwitchGetNetworkSwitchAccessControlListsRules - aux := &struct { - SrcPort interface{} `json:"srcPort"` - VLAN interface{} `json:"vlan"` - DstCidr interface{} `json:"dstCidr"` - DstPort interface{} `json:"dstPort"` - SrcCidr interface{} `json:"srcCidr"` - - *Alias - }{ - Alias: (*Alias)(r), - } - if err := json.Unmarshal(data, &aux); err != nil { - return err - } - r.SrcPort = convertToString(aux.SrcPort) - r.VLAN = convertToString(aux.VLAN) - r.DstCidr = convertToString(aux.DstCidr) - r.DstPort = convertToString(aux.DstPort) - r.SrcCidr = convertToString(aux.SrcCidr) - return nil -} - type ResponseSwitchUpdateNetworkSwitchAccessControlLists struct { Rules *[]ResponseSwitchUpdateNetworkSwitchAccessControlListsRules `json:"rules,omitempty"` // An ordered array of the access control list rules } @@ -455,31 +429,6 @@ type ResponseSwitchUpdateNetworkSwitchAccessControlListsRules struct { SrcPort string `json:"srcPort,omitempty"` // Source port VLAN string `json:"vlan,omitempty"` // ncoming traffic VLAN } - -func (r *ResponseSwitchUpdateNetworkSwitchAccessControlListsRules) UnmarshalJSON(data []byte) error { - type Alias ResponseSwitchUpdateNetworkSwitchAccessControlListsRules - aux := &struct { - SrcPort interface{} `json:"srcPort"` - VLAN interface{} `json:"vlan"` - DstCidr interface{} `json:"dstCidr"` - DstPort interface{} `json:"dstPort"` - SrcCidr interface{} `json:"srcCidr"` - - *Alias - }{ - Alias: (*Alias)(r), - } - if err := json.Unmarshal(data, &aux); err != nil { - return err - } - r.SrcPort = convertToString(aux.SrcPort) - r.VLAN = convertToString(aux.VLAN) - r.DstCidr = convertToString(aux.DstCidr) - r.DstPort = convertToString(aux.DstPort) - r.SrcCidr = convertToString(aux.SrcCidr) - return nil -} - type ResponseSwitchGetNetworkSwitchAccessPolicies []ResponseItemSwitchGetNetworkSwitchAccessPolicies // Array of ResponseSwitchGetNetworkSwitchAccessPolicies type ResponseItemSwitchGetNetworkSwitchAccessPolicies struct { AccessPolicyType string `json:"accessPolicyType,omitempty"` // Access Type of the policy. Automatically 'Hybrid authentication' when hostMode is 'Multi-Domain'. @@ -1941,11 +1890,10 @@ type RequestSwitchCloneOrganizationSwitchDevices struct { @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-ports */ func (s *SwitchService) GetDeviceSwitchPorts(serial string) (*ResponseSwitchGetDeviceSwitchPorts, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/ports" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -1975,11 +1923,10 @@ func (s *SwitchService) GetDeviceSwitchPorts(serial string) (*ResponseSwitchGetD @param serial serial path parameter. @param getDeviceSwitchPortsStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-ports-statuses */ func (s *SwitchService) GetDeviceSwitchPortsStatuses(serial string, getDeviceSwitchPortsStatusesQueryParams *GetDeviceSwitchPortsStatusesQueryParams) (*ResponseSwitchGetDeviceSwitchPortsStatuses, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/ports/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceSwitchPortsStatusesQueryParams) @@ -2011,11 +1958,10 @@ func (s *SwitchService) GetDeviceSwitchPortsStatuses(serial string, getDeviceSwi @param serial serial path parameter. @param getDeviceSwitchPortsStatusesPacketsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-ports-statuses-packets */ func (s *SwitchService) GetDeviceSwitchPortsStatusesPackets(serial string, getDeviceSwitchPortsStatusesPacketsQueryParams *GetDeviceSwitchPortsStatusesPacketsQueryParams) (*ResponseSwitchGetDeviceSwitchPortsStatusesPackets, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/ports/statuses/packets" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceSwitchPortsStatusesPacketsQueryParams) @@ -2047,11 +1993,10 @@ func (s *SwitchService) GetDeviceSwitchPortsStatusesPackets(serial string, getDe @param serial serial path parameter. @param portID portId path parameter. Port ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-port */ func (s *SwitchService) GetDeviceSwitchPort(serial string, portID string) (*ResponseSwitchGetDeviceSwitchPort, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/ports/{portId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{portId}", fmt.Sprintf("%v", portID), -1) @@ -2081,11 +2026,10 @@ func (s *SwitchService) GetDeviceSwitchPort(serial string, portID string) (*Resp @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-routing-interfaces */ func (s *SwitchService) GetDeviceSwitchRoutingInterfaces(serial string) (*ResponseSwitchGetDeviceSwitchRoutingInterfaces, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/interfaces" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2115,11 +2059,10 @@ func (s *SwitchService) GetDeviceSwitchRoutingInterfaces(serial string) (*Respon @param serial serial path parameter. @param interfaceID interfaceId path parameter. Interface ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-routing-interface */ func (s *SwitchService) GetDeviceSwitchRoutingInterface(serial string, interfaceID string) (*ResponseSwitchGetDeviceSwitchRoutingInterface, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/interfaces/{interfaceId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -2150,11 +2093,10 @@ func (s *SwitchService) GetDeviceSwitchRoutingInterface(serial string, interface @param serial serial path parameter. @param interfaceID interfaceId path parameter. Interface ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-routing-interface-dhcp */ func (s *SwitchService) GetDeviceSwitchRoutingInterfaceDhcp(serial string, interfaceID string) (*ResponseSwitchGetDeviceSwitchRoutingInterfaceDhcp, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/interfaces/{interfaceId}/dhcp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -2184,11 +2126,10 @@ func (s *SwitchService) GetDeviceSwitchRoutingInterfaceDhcp(serial string, inter @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-routing-static-routes */ func (s *SwitchService) GetDeviceSwitchRoutingStaticRoutes(serial string) (*ResponseSwitchGetDeviceSwitchRoutingStaticRoutes, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/staticRoutes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2218,11 +2159,10 @@ func (s *SwitchService) GetDeviceSwitchRoutingStaticRoutes(serial string) (*Resp @param serial serial path parameter. @param staticRouteID staticRouteId path parameter. Static route ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-routing-static-route */ func (s *SwitchService) GetDeviceSwitchRoutingStaticRoute(serial string, staticRouteID string) (*ResponseSwitchGetDeviceSwitchRoutingStaticRoute, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -2252,11 +2192,10 @@ func (s *SwitchService) GetDeviceSwitchRoutingStaticRoute(serial string, staticR @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-switch-warm-spare */ func (s *SwitchService) GetDeviceSwitchWarmSpare(serial string) (*ResponseSwitchGetDeviceSwitchWarmSpare, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/warmSpare" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2285,11 +2224,10 @@ func (s *SwitchService) GetDeviceSwitchWarmSpare(serial string) (*ResponseSwitch @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-access-control-lists */ func (s *SwitchService) GetNetworkSwitchAccessControlLists(networkID string) (*ResponseSwitchGetNetworkSwitchAccessControlLists, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/accessControlLists" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2318,11 +2256,10 @@ func (s *SwitchService) GetNetworkSwitchAccessControlLists(networkID string) (*R @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-access-policies */ func (s *SwitchService) GetNetworkSwitchAccessPolicies(networkID string) (*ResponseSwitchGetNetworkSwitchAccessPolicies, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/accessPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2352,11 +2289,10 @@ func (s *SwitchService) GetNetworkSwitchAccessPolicies(networkID string) (*Respo @param networkID networkId path parameter. Network ID @param accessPolicyNumber accessPolicyNumber path parameter. Access policy number - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-access-policy */ func (s *SwitchService) GetNetworkSwitchAccessPolicy(networkID string, accessPolicyNumber string) (*ResponseSwitchGetNetworkSwitchAccessPolicy, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/accessPolicies/{accessPolicyNumber}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{accessPolicyNumber}", fmt.Sprintf("%v", accessPolicyNumber), -1) @@ -2386,11 +2322,10 @@ func (s *SwitchService) GetNetworkSwitchAccessPolicy(networkID string, accessPol @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-alternate-management-interface */ func (s *SwitchService) GetNetworkSwitchAlternateManagementInterface(networkID string) (*ResponseSwitchGetNetworkSwitchAlternateManagementInterface, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/alternateManagementInterface" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2420,11 +2355,10 @@ func (s *SwitchService) GetNetworkSwitchAlternateManagementInterface(networkID s @param networkID networkId path parameter. Network ID @param getNetworkSwitchDhcpV4ServersSeenQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-dhcp-v4-servers-seen */ func (s *SwitchService) GetNetworkSwitchDhcpV4ServersSeen(networkID string, getNetworkSwitchDhcpV4ServersSeenQueryParams *GetNetworkSwitchDhcpV4ServersSeenQueryParams) (*ResponseSwitchGetNetworkSwitchDhcpV4ServersSeen, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dhcp/v4/servers/seen" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSwitchDhcpV4ServersSeenQueryParams) @@ -2455,11 +2389,10 @@ func (s *SwitchService) GetNetworkSwitchDhcpV4ServersSeen(networkID string, getN @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-dhcp-server-policy */ func (s *SwitchService) GetNetworkSwitchDhcpServerPolicy(networkID string) (*ResponseSwitchGetNetworkSwitchDhcpServerPolicy, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dhcpServerPolicy" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2489,11 +2422,10 @@ func (s *SwitchService) GetNetworkSwitchDhcpServerPolicy(networkID string) (*Res @param networkID networkId path parameter. Network ID @param getNetworkSwitchDhcpServerPolicyArpInspectionTrustedServersQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-dhcp-server-policy-arp-inspection-trusted-servers */ func (s *SwitchService) GetNetworkSwitchDhcpServerPolicyArpInspectionTrustedServers(networkID string, getNetworkSwitchDhcpServerPolicyArpInspectionTrustedServersQueryParams *GetNetworkSwitchDhcpServerPolicyArpInspectionTrustedServersQueryParams) (*ResponseSwitchGetNetworkSwitchDhcpServerPolicyArpInspectionTrustedServers, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dhcpServerPolicy/arpInspection/trustedServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSwitchDhcpServerPolicyArpInspectionTrustedServersQueryParams) @@ -2525,11 +2457,10 @@ func (s *SwitchService) GetNetworkSwitchDhcpServerPolicyArpInspectionTrustedServ @param networkID networkId path parameter. Network ID @param getNetworkSwitchDhcpServerPolicyArpInspectionWarningsByDeviceQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-dhcp-server-policy-arp-inspection-warnings-by-device */ func (s *SwitchService) GetNetworkSwitchDhcpServerPolicyArpInspectionWarningsByDevice(networkID string, getNetworkSwitchDhcpServerPolicyArpInspectionWarningsByDeviceQueryParams *GetNetworkSwitchDhcpServerPolicyArpInspectionWarningsByDeviceQueryParams) (*ResponseSwitchGetNetworkSwitchDhcpServerPolicyArpInspectionWarningsByDevice, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dhcpServerPolicy/arpInspection/warnings/byDevice" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkSwitchDhcpServerPolicyArpInspectionWarningsByDeviceQueryParams) @@ -2560,11 +2491,10 @@ func (s *SwitchService) GetNetworkSwitchDhcpServerPolicyArpInspectionWarningsByD @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-dscp-to-cos-mappings */ func (s *SwitchService) GetNetworkSwitchDscpToCosMappings(networkID string) (*ResponseSwitchGetNetworkSwitchDscpToCosMappings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dscpToCosMappings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2593,11 +2523,10 @@ func (s *SwitchService) GetNetworkSwitchDscpToCosMappings(networkID string) (*Re @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-link-aggregations */ func (s *SwitchService) GetNetworkSwitchLinkAggregations(networkID string) (*ResponseSwitchGetNetworkSwitchLinkAggregations, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/linkAggregations" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2626,11 +2555,10 @@ func (s *SwitchService) GetNetworkSwitchLinkAggregations(networkID string) (*Res @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-mtu */ func (s *SwitchService) GetNetworkSwitchMtu(networkID string) (*ResponseSwitchGetNetworkSwitchMtu, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/mtu" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2659,11 +2587,10 @@ func (s *SwitchService) GetNetworkSwitchMtu(networkID string) (*ResponseSwitchGe @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-port-schedules */ func (s *SwitchService) GetNetworkSwitchPortSchedules(networkID string) (*ResponseSwitchGetNetworkSwitchPortSchedules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/portSchedules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2692,11 +2619,10 @@ func (s *SwitchService) GetNetworkSwitchPortSchedules(networkID string) (*Respon @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-qos-rules */ func (s *SwitchService) GetNetworkSwitchQosRules(networkID string) (*ResponseSwitchGetNetworkSwitchQosRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/qosRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2725,11 +2651,10 @@ func (s *SwitchService) GetNetworkSwitchQosRules(networkID string) (*ResponseSwi @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-qos-rules-order */ func (s *SwitchService) GetNetworkSwitchQosRulesOrder(networkID string) (*ResponseSwitchGetNetworkSwitchQosRulesOrder, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/qosRules/order" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2759,11 +2684,10 @@ func (s *SwitchService) GetNetworkSwitchQosRulesOrder(networkID string) (*Respon @param networkID networkId path parameter. Network ID @param qosRuleID qosRuleId path parameter. Qos rule ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-qos-rule */ func (s *SwitchService) GetNetworkSwitchQosRule(networkID string, qosRuleID string) (*ResponseSwitchGetNetworkSwitchQosRule, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/qosRules/{qosRuleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{qosRuleId}", fmt.Sprintf("%v", qosRuleID), -1) @@ -2793,11 +2717,10 @@ func (s *SwitchService) GetNetworkSwitchQosRule(networkID string, qosRuleID stri @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-routing-multicast */ func (s *SwitchService) GetNetworkSwitchRoutingMulticast(networkID string) (*ResponseSwitchGetNetworkSwitchRoutingMulticast, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/multicast" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2826,11 +2749,10 @@ func (s *SwitchService) GetNetworkSwitchRoutingMulticast(networkID string) (*Res @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-routing-multicast-rendezvous-points */ func (s *SwitchService) GetNetworkSwitchRoutingMulticastRendezvousPoints(networkID string) (*ResponseSwitchGetNetworkSwitchRoutingMulticastRendezvousPoints, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/multicast/rendezvousPoints" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2860,11 +2782,10 @@ func (s *SwitchService) GetNetworkSwitchRoutingMulticastRendezvousPoints(network @param networkID networkId path parameter. Network ID @param rendezvousPointID rendezvousPointId path parameter. Rendezvous point ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-routing-multicast-rendezvous-point */ func (s *SwitchService) GetNetworkSwitchRoutingMulticastRendezvousPoint(networkID string, rendezvousPointID string) (*ResponseSwitchGetNetworkSwitchRoutingMulticastRendezvousPoint, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/multicast/rendezvousPoints/{rendezvousPointId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{rendezvousPointId}", fmt.Sprintf("%v", rendezvousPointID), -1) @@ -2894,11 +2815,10 @@ func (s *SwitchService) GetNetworkSwitchRoutingMulticastRendezvousPoint(networkI @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-routing-ospf */ func (s *SwitchService) GetNetworkSwitchRoutingOspf(networkID string) (*ResponseSwitchGetNetworkSwitchRoutingOspf, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/ospf" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2927,11 +2847,10 @@ func (s *SwitchService) GetNetworkSwitchRoutingOspf(networkID string) (*Response @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-settings */ func (s *SwitchService) GetNetworkSwitchSettings(networkID string) (*ResponseSwitchGetNetworkSwitchSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2960,11 +2879,10 @@ func (s *SwitchService) GetNetworkSwitchSettings(networkID string) (*ResponseSwi @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stacks */ func (s *SwitchService) GetNetworkSwitchStacks(networkID string) (*ResponseSwitchGetNetworkSwitchStacks, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2994,11 +2912,10 @@ func (s *SwitchService) GetNetworkSwitchStacks(networkID string) (*ResponseSwitc @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stack */ func (s *SwitchService) GetNetworkSwitchStack(networkID string, switchStackID string) (*ResponseSwitchGetNetworkSwitchStack, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -3029,11 +2946,10 @@ func (s *SwitchService) GetNetworkSwitchStack(networkID string, switchStackID st @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stack-routing-interfaces */ func (s *SwitchService) GetNetworkSwitchStackRoutingInterfaces(networkID string, switchStackID string) (*ResponseSwitchGetNetworkSwitchStackRoutingInterfaces, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -3065,11 +2981,10 @@ func (s *SwitchService) GetNetworkSwitchStackRoutingInterfaces(networkID string, @param switchStackID switchStackId path parameter. Switch stack ID @param interfaceID interfaceId path parameter. Interface ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stack-routing-interface */ func (s *SwitchService) GetNetworkSwitchStackRoutingInterface(networkID string, switchStackID string, interfaceID string) (*ResponseSwitchGetNetworkSwitchStackRoutingInterface, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces/{interfaceId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -3102,11 +3017,10 @@ func (s *SwitchService) GetNetworkSwitchStackRoutingInterface(networkID string, @param switchStackID switchStackId path parameter. Switch stack ID @param interfaceID interfaceId path parameter. Interface ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stack-routing-interface-dhcp */ func (s *SwitchService) GetNetworkSwitchStackRoutingInterfaceDhcp(networkID string, switchStackID string, interfaceID string) (*ResponseSwitchGetNetworkSwitchStackRoutingInterfaceDhcp, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces/{interfaceId}/dhcp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -3138,11 +3052,10 @@ func (s *SwitchService) GetNetworkSwitchStackRoutingInterfaceDhcp(networkID stri @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stack-routing-static-routes */ func (s *SwitchService) GetNetworkSwitchStackRoutingStaticRoutes(networkID string, switchStackID string) (*ResponseSwitchGetNetworkSwitchStackRoutingStaticRoutes, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/staticRoutes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -3174,11 +3087,10 @@ func (s *SwitchService) GetNetworkSwitchStackRoutingStaticRoutes(networkID strin @param switchStackID switchStackId path parameter. Switch stack ID @param staticRouteID staticRouteId path parameter. Static route ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stack-routing-static-route */ func (s *SwitchService) GetNetworkSwitchStackRoutingStaticRoute(networkID string, switchStackID string, staticRouteID string) (*ResponseSwitchGetNetworkSwitchStackRoutingStaticRoute, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -3209,11 +3121,10 @@ func (s *SwitchService) GetNetworkSwitchStackRoutingStaticRoute(networkID string @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-storm-control */ func (s *SwitchService) GetNetworkSwitchStormControl(networkID string) (*ResponseSwitchGetNetworkSwitchStormControl, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stormControl" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3242,11 +3153,10 @@ func (s *SwitchService) GetNetworkSwitchStormControl(networkID string) (*Respons @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-switch-stp */ func (s *SwitchService) GetNetworkSwitchStp(networkID string) (*ResponseSwitchGetNetworkSwitchStp, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3276,11 +3186,10 @@ func (s *SwitchService) GetNetworkSwitchStp(networkID string) (*ResponseSwitchGe @param organizationID organizationId path parameter. Organization ID @param configTemplateID configTemplateId path parameter. Config template ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-config-template-switch-profiles */ func (s *SwitchService) GetOrganizationConfigTemplateSwitchProfiles(organizationID string, configTemplateID string) (*ResponseSwitchGetOrganizationConfigTemplateSwitchProfiles, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates/{configTemplateId}/switch/profiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{configTemplateId}", fmt.Sprintf("%v", configTemplateID), -1) @@ -3312,11 +3221,10 @@ func (s *SwitchService) GetOrganizationConfigTemplateSwitchProfiles(organization @param configTemplateID configTemplateId path parameter. Config template ID @param profileID profileId path parameter. Profile ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-config-template-switch-profile-ports */ func (s *SwitchService) GetOrganizationConfigTemplateSwitchProfilePorts(organizationID string, configTemplateID string, profileID string) (*ResponseSwitchGetOrganizationConfigTemplateSwitchProfilePorts, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates/{configTemplateId}/switch/profiles/{profileId}/ports" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{configTemplateId}", fmt.Sprintf("%v", configTemplateID), -1) path = strings.Replace(path, "{profileId}", fmt.Sprintf("%v", profileID), -1) @@ -3350,11 +3258,10 @@ func (s *SwitchService) GetOrganizationConfigTemplateSwitchProfilePorts(organiza @param profileID profileId path parameter. Profile ID @param portID portId path parameter. Port ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-config-template-switch-profile-port */ func (s *SwitchService) GetOrganizationConfigTemplateSwitchProfilePort(organizationID string, configTemplateID string, profileID string, portID string) (*ResponseSwitchGetOrganizationConfigTemplateSwitchProfilePort, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates/{configTemplateId}/switch/profiles/{profileId}/ports/{portId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{configTemplateId}", fmt.Sprintf("%v", configTemplateID), -1) path = strings.Replace(path, "{profileId}", fmt.Sprintf("%v", profileID), -1) @@ -3387,11 +3294,10 @@ func (s *SwitchService) GetOrganizationConfigTemplateSwitchProfilePort(organizat @param organizationID organizationId path parameter. Organization ID @param getOrganizationSwitchPortsBySwitchQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-switch-ports-by-switch */ func (s *SwitchService) GetOrganizationSwitchPortsBySwitch(organizationID string, getOrganizationSwitchPortsBySwitchQueryParams *GetOrganizationSwitchPortsBySwitchQueryParams) (*ResponseSwitchGetOrganizationSwitchPortsBySwitch, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/switch/ports/bySwitch" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationSwitchPortsBySwitchQueryParams) @@ -3422,12 +3328,11 @@ func (s *SwitchService) GetOrganizationSwitchPortsBySwitch(organizationID string @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!cycle-device-switch-ports */ func (s *SwitchService) CycleDeviceSwitchPorts(serial string, requestSwitchCycleDeviceSwitchPorts *RequestSwitchCycleDeviceSwitchPorts) (*ResponseSwitchCycleDeviceSwitchPorts, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/ports/cycle" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -3457,12 +3362,11 @@ func (s *SwitchService) CycleDeviceSwitchPorts(serial string, requestSwitchCycle @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-device-switch-routing-interface */ func (s *SwitchService) CreateDeviceSwitchRoutingInterface(serial string, requestSwitchCreateDeviceSwitchRoutingInterface *RequestSwitchCreateDeviceSwitchRoutingInterface) (*ResponseSwitchCreateDeviceSwitchRoutingInterface, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/interfaces" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -3492,12 +3396,11 @@ func (s *SwitchService) CreateDeviceSwitchRoutingInterface(serial string, reques @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-device-switch-routing-static-route */ func (s *SwitchService) CreateDeviceSwitchRoutingStaticRoute(serial string, requestSwitchCreateDeviceSwitchRoutingStaticRoute *RequestSwitchCreateDeviceSwitchRoutingStaticRoute) (*resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/staticRoutes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -3526,12 +3429,11 @@ func (s *SwitchService) CreateDeviceSwitchRoutingStaticRoute(serial string, requ @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-access-policy */ func (s *SwitchService) CreateNetworkSwitchAccessPolicy(networkID string, requestSwitchCreateNetworkSwitchAccessPolicy *RequestSwitchCreateNetworkSwitchAccessPolicy) (*ResponseSwitchCreateNetworkSwitchAccessPolicy, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/accessPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3561,12 +3463,11 @@ func (s *SwitchService) CreateNetworkSwitchAccessPolicy(networkID string, reques @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-dhcp-server-policy-arp-inspection-trusted-server */ func (s *SwitchService) CreateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer(networkID string, requestSwitchCreateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer *RequestSwitchCreateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer) (*ResponseSwitchCreateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dhcpServerPolicy/arpInspection/trustedServers" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3596,12 +3497,11 @@ func (s *SwitchService) CreateNetworkSwitchDhcpServerPolicyArpInspectionTrustedS @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-link-aggregation */ func (s *SwitchService) CreateNetworkSwitchLinkAggregation(networkID string, requestSwitchCreateNetworkSwitchLinkAggregation *RequestSwitchCreateNetworkSwitchLinkAggregation) (*ResponseSwitchCreateNetworkSwitchLinkAggregation, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/linkAggregations" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3631,12 +3531,11 @@ func (s *SwitchService) CreateNetworkSwitchLinkAggregation(networkID string, req @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-port-schedule */ func (s *SwitchService) CreateNetworkSwitchPortSchedule(networkID string, requestSwitchCreateNetworkSwitchPortSchedule *RequestSwitchCreateNetworkSwitchPortSchedule) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/portSchedules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3665,12 +3564,11 @@ func (s *SwitchService) CreateNetworkSwitchPortSchedule(networkID string, reques @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-qos-rule */ func (s *SwitchService) CreateNetworkSwitchQosRule(networkID string, requestSwitchCreateNetworkSwitchQosRule *RequestSwitchCreateNetworkSwitchQosRule) (*ResponseSwitchCreateNetworkSwitchQosRule, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/qosRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3700,12 +3598,11 @@ func (s *SwitchService) CreateNetworkSwitchQosRule(networkID string, requestSwit @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-routing-multicast-rendezvous-point */ func (s *SwitchService) CreateNetworkSwitchRoutingMulticastRendezvousPoint(networkID string, requestSwitchCreateNetworkSwitchRoutingMulticastRendezvousPoint *RequestSwitchCreateNetworkSwitchRoutingMulticastRendezvousPoint) (*ResponseSwitchCreateNetworkSwitchRoutingMulticastRendezvousPoint, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/multicast/rendezvousPoints" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3735,12 +3632,11 @@ func (s *SwitchService) CreateNetworkSwitchRoutingMulticastRendezvousPoint(netwo @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-stack */ func (s *SwitchService) CreateNetworkSwitchStack(networkID string, requestSwitchCreateNetworkSwitchStack *RequestSwitchCreateNetworkSwitchStack) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3770,12 +3666,11 @@ func (s *SwitchService) CreateNetworkSwitchStack(networkID string, requestSwitch @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!add-network-switch-stack */ func (s *SwitchService) AddNetworkSwitchStack(networkID string, switchStackID string, requestSwitchAddNetworkSwitchStack *RequestSwitchAddNetworkSwitchStack) (*ResponseSwitchAddNetworkSwitchStack, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/add" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -3807,12 +3702,11 @@ func (s *SwitchService) AddNetworkSwitchStack(networkID string, switchStackID st @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!remove-network-switch-stack */ func (s *SwitchService) RemoveNetworkSwitchStack(networkID string, switchStackID string, requestSwitchRemoveNetworkSwitchStack *RequestSwitchRemoveNetworkSwitchStack) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/remove" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -3843,12 +3737,11 @@ func (s *SwitchService) RemoveNetworkSwitchStack(networkID string, switchStackID @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-stack-routing-interface */ func (s *SwitchService) CreateNetworkSwitchStackRoutingInterface(networkID string, switchStackID string, requestSwitchCreateNetworkSwitchStackRoutingInterface *RequestSwitchCreateNetworkSwitchStackRoutingInterface) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -3879,12 +3772,11 @@ func (s *SwitchService) CreateNetworkSwitchStackRoutingInterface(networkID strin @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-switch-stack-routing-static-route */ func (s *SwitchService) CreateNetworkSwitchStackRoutingStaticRoute(networkID string, switchStackID string, requestSwitchCreateNetworkSwitchStackRoutingStaticRoute *RequestSwitchCreateNetworkSwitchStackRoutingStaticRoute) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/staticRoutes" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -3914,12 +3806,11 @@ func (s *SwitchService) CreateNetworkSwitchStackRoutingStaticRoute(networkID str @param organizationID organizationId path parameter. Organization ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!clone-organization-switch-devices */ func (s *SwitchService) CloneOrganizationSwitchDevices(organizationID string, requestSwitchCloneOrganizationSwitchDevices *RequestSwitchCloneOrganizationSwitchDevices) (*resty.Response, error) { path := "/api/v1/organizations/{organizationId}/switch/devices/clone" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) response, err := s.client.R(). @@ -3951,7 +3842,6 @@ func (s *SwitchService) CloneOrganizationSwitchDevices(organizationID string, re */ func (s *SwitchService) UpdateDeviceSwitchPort(serial string, portID string, requestSwitchUpdateDeviceSwitchPort *RequestSwitchUpdateDeviceSwitchPort) (*ResponseSwitchUpdateDeviceSwitchPort, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/ports/{portId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{portId}", fmt.Sprintf("%v", portID), -1) @@ -3985,7 +3875,6 @@ func (s *SwitchService) UpdateDeviceSwitchPort(serial string, portID string, req */ func (s *SwitchService) UpdateDeviceSwitchRoutingInterface(serial string, interfaceID string, requestSwitchUpdateDeviceSwitchRoutingInterface *RequestSwitchUpdateDeviceSwitchRoutingInterface) (*ResponseSwitchUpdateDeviceSwitchRoutingInterface, *resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/interfaces/{interfaceId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -4019,7 +3908,6 @@ func (s *SwitchService) UpdateDeviceSwitchRoutingInterface(serial string, interf */ func (s *SwitchService) UpdateDeviceSwitchRoutingInterfaceDhcp(serial string, interfaceID string, requestSwitchUpdateDeviceSwitchRoutingInterfaceDhcp *RequestSwitchUpdateDeviceSwitchRoutingInterfaceDhcp) (*resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/interfaces/{interfaceId}/dhcp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -4051,7 +3939,6 @@ func (s *SwitchService) UpdateDeviceSwitchRoutingInterfaceDhcp(serial string, in */ func (s *SwitchService) UpdateDeviceSwitchRoutingStaticRoute(serial string, staticRouteID string, requestSwitchUpdateDeviceSwitchRoutingStaticRoute *RequestSwitchUpdateDeviceSwitchRoutingStaticRoute) (*resty.Response, error) { path := "/api/v1/devices/{serial}/switch/routing/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -4082,7 +3969,6 @@ func (s *SwitchService) UpdateDeviceSwitchRoutingStaticRoute(serial string, stat */ func (s *SwitchService) UpdateDeviceSwitchWarmSpare(serial string, requestSwitchUpdateDeviceSwitchWarmSpare *RequestSwitchUpdateDeviceSwitchWarmSpare) (*resty.Response, error) { path := "/api/v1/devices/{serial}/switch/warmSpare" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -4112,7 +3998,6 @@ func (s *SwitchService) UpdateDeviceSwitchWarmSpare(serial string, requestSwitch */ func (s *SwitchService) UpdateNetworkSwitchAccessControlLists(networkID string, requestSwitchUpdateNetworkSwitchAccessControlLists *RequestSwitchUpdateNetworkSwitchAccessControlLists) (*ResponseSwitchUpdateNetworkSwitchAccessControlLists, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/accessControlLists" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4145,7 +4030,6 @@ func (s *SwitchService) UpdateNetworkSwitchAccessControlLists(networkID string, */ func (s *SwitchService) UpdateNetworkSwitchAccessPolicy(networkID string, accessPolicyNumber string, requestSwitchUpdateNetworkSwitchAccessPolicy *RequestSwitchUpdateNetworkSwitchAccessPolicy) (*ResponseSwitchUpdateNetworkSwitchAccessPolicy, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/accessPolicies/{accessPolicyNumber}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{accessPolicyNumber}", fmt.Sprintf("%v", accessPolicyNumber), -1) @@ -4178,7 +4062,6 @@ func (s *SwitchService) UpdateNetworkSwitchAccessPolicy(networkID string, access */ func (s *SwitchService) UpdateNetworkSwitchAlternateManagementInterface(networkID string, requestSwitchUpdateNetworkSwitchAlternateManagementInterface *RequestSwitchUpdateNetworkSwitchAlternateManagementInterface) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/alternateManagementInterface" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4208,7 +4091,6 @@ func (s *SwitchService) UpdateNetworkSwitchAlternateManagementInterface(networkI */ func (s *SwitchService) UpdateNetworkSwitchDhcpServerPolicy(networkID string, requestSwitchUpdateNetworkSwitchDhcpServerPolicy *RequestSwitchUpdateNetworkSwitchDhcpServerPolicy) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dhcpServerPolicy" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4239,7 +4121,6 @@ func (s *SwitchService) UpdateNetworkSwitchDhcpServerPolicy(networkID string, re */ func (s *SwitchService) UpdateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer(networkID string, trustedServerID string, requestSwitchUpdateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer *RequestSwitchUpdateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer) (*ResponseSwitchUpdateNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dhcpServerPolicy/arpInspection/trustedServers/{trustedServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{trustedServerId}", fmt.Sprintf("%v", trustedServerID), -1) @@ -4272,7 +4153,6 @@ func (s *SwitchService) UpdateNetworkSwitchDhcpServerPolicyArpInspectionTrustedS */ func (s *SwitchService) UpdateNetworkSwitchDscpToCosMappings(networkID string, requestSwitchUpdateNetworkSwitchDscpToCosMappings *RequestSwitchUpdateNetworkSwitchDscpToCosMappings) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/dscpToCosMappings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4303,7 +4183,6 @@ func (s *SwitchService) UpdateNetworkSwitchDscpToCosMappings(networkID string, r */ func (s *SwitchService) UpdateNetworkSwitchLinkAggregation(networkID string, linkAggregationID string, requestSwitchUpdateNetworkSwitchLinkAggregation *RequestSwitchUpdateNetworkSwitchLinkAggregation) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/linkAggregations/{linkAggregationId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{linkAggregationId}", fmt.Sprintf("%v", linkAggregationID), -1) @@ -4334,7 +4213,6 @@ func (s *SwitchService) UpdateNetworkSwitchLinkAggregation(networkID string, lin */ func (s *SwitchService) UpdateNetworkSwitchMtu(networkID string, requestSwitchUpdateNetworkSwitchMtu *RequestSwitchUpdateNetworkSwitchMtu) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/mtu" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4365,7 +4243,6 @@ func (s *SwitchService) UpdateNetworkSwitchMtu(networkID string, requestSwitchUp */ func (s *SwitchService) UpdateNetworkSwitchPortSchedule(networkID string, portScheduleID string, requestSwitchUpdateNetworkSwitchPortSchedule *RequestSwitchUpdateNetworkSwitchPortSchedule) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/portSchedules/{portScheduleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{portScheduleId}", fmt.Sprintf("%v", portScheduleID), -1) @@ -4396,7 +4273,6 @@ func (s *SwitchService) UpdateNetworkSwitchPortSchedule(networkID string, portSc */ func (s *SwitchService) UpdateNetworkSwitchQosRulesOrder(networkID string, requestSwitchUpdateNetworkSwitchQosRulesOrder *RequestSwitchUpdateNetworkSwitchQosRulesOrder) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/qosRules/order" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4427,7 +4303,6 @@ func (s *SwitchService) UpdateNetworkSwitchQosRulesOrder(networkID string, reque */ func (s *SwitchService) UpdateNetworkSwitchQosRule(networkID string, qosRuleID string, requestSwitchUpdateNetworkSwitchQosRule *RequestSwitchUpdateNetworkSwitchQosRule) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/qosRules/{qosRuleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{qosRuleId}", fmt.Sprintf("%v", qosRuleID), -1) @@ -4458,7 +4333,6 @@ func (s *SwitchService) UpdateNetworkSwitchQosRule(networkID string, qosRuleID s */ func (s *SwitchService) UpdateNetworkSwitchRoutingMulticast(networkID string, requestSwitchUpdateNetworkSwitchRoutingMulticast *RequestSwitchUpdateNetworkSwitchRoutingMulticast) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/multicast" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4489,7 +4363,6 @@ func (s *SwitchService) UpdateNetworkSwitchRoutingMulticast(networkID string, re */ func (s *SwitchService) UpdateNetworkSwitchRoutingMulticastRendezvousPoint(networkID string, rendezvousPointID string, requestSwitchUpdateNetworkSwitchRoutingMulticastRendezvousPoint *RequestSwitchUpdateNetworkSwitchRoutingMulticastRendezvousPoint) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/multicast/rendezvousPoints/{rendezvousPointId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{rendezvousPointId}", fmt.Sprintf("%v", rendezvousPointID), -1) @@ -4520,7 +4393,6 @@ func (s *SwitchService) UpdateNetworkSwitchRoutingMulticastRendezvousPoint(netwo */ func (s *SwitchService) UpdateNetworkSwitchRoutingOspf(networkID string, requestSwitchUpdateNetworkSwitchRoutingOspf *RequestSwitchUpdateNetworkSwitchRoutingOspf) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/routing/ospf" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4550,7 +4422,6 @@ func (s *SwitchService) UpdateNetworkSwitchRoutingOspf(networkID string, request */ func (s *SwitchService) UpdateNetworkSwitchSettings(networkID string, requestSwitchUpdateNetworkSwitchSettings *RequestSwitchUpdateNetworkSwitchSettings) (*ResponseSwitchUpdateNetworkSwitchSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4584,7 +4455,6 @@ func (s *SwitchService) UpdateNetworkSwitchSettings(networkID string, requestSwi */ func (s *SwitchService) UpdateNetworkSwitchStackRoutingInterface(networkID string, switchStackID string, interfaceID string, requestSwitchUpdateNetworkSwitchStackRoutingInterface *RequestSwitchUpdateNetworkSwitchStackRoutingInterface) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces/{interfaceId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -4618,7 +4488,6 @@ func (s *SwitchService) UpdateNetworkSwitchStackRoutingInterface(networkID strin */ func (s *SwitchService) UpdateNetworkSwitchStackRoutingInterfaceDhcp(networkID string, switchStackID string, interfaceID string, requestSwitchUpdateNetworkSwitchStackRoutingInterfaceDhcp *RequestSwitchUpdateNetworkSwitchStackRoutingInterfaceDhcp) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces/{interfaceId}/dhcp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -4652,7 +4521,6 @@ func (s *SwitchService) UpdateNetworkSwitchStackRoutingInterfaceDhcp(networkID s */ func (s *SwitchService) UpdateNetworkSwitchStackRoutingStaticRoute(networkID string, switchStackID string, staticRouteID string, requestSwitchUpdateNetworkSwitchStackRoutingStaticRoute *RequestSwitchUpdateNetworkSwitchStackRoutingStaticRoute) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -4684,7 +4552,6 @@ func (s *SwitchService) UpdateNetworkSwitchStackRoutingStaticRoute(networkID str */ func (s *SwitchService) UpdateNetworkSwitchStormControl(networkID string, requestSwitchUpdateNetworkSwitchStormControl *RequestSwitchUpdateNetworkSwitchStormControl) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stormControl" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4714,7 +4581,6 @@ func (s *SwitchService) UpdateNetworkSwitchStormControl(networkID string, reques */ func (s *SwitchService) UpdateNetworkSwitchStp(networkID string, requestSwitchUpdateNetworkSwitchStp *RequestSwitchUpdateNetworkSwitchStp) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/switch/stp" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4747,7 +4613,6 @@ func (s *SwitchService) UpdateNetworkSwitchStp(networkID string, requestSwitchUp */ func (s *SwitchService) UpdateOrganizationConfigTemplateSwitchProfilePort(organizationID string, configTemplateID string, profileID string, portID string, requestSwitchUpdateOrganizationConfigTemplateSwitchProfilePort *RequestSwitchUpdateOrganizationConfigTemplateSwitchProfilePort) (*ResponseSwitchUpdateOrganizationConfigTemplateSwitchProfilePort, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/configTemplates/{configTemplateId}/switch/profiles/{profileId}/ports/{portId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) path = strings.Replace(path, "{configTemplateId}", fmt.Sprintf("%v", configTemplateID), -1) path = strings.Replace(path, "{profileId}", fmt.Sprintf("%v", profileID), -1) @@ -4781,12 +4646,11 @@ func (s *SwitchService) UpdateOrganizationConfigTemplateSwitchProfilePort(organi @param serial serial path parameter. @param interfaceID interfaceId path parameter. Interface ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-device-switch-routing-interface */ func (s *SwitchService) DeleteDeviceSwitchRoutingInterface(serial string, interfaceID string) (*resty.Response, error) { //serial string,interfaceID string path := "/api/v1/devices/{serial}/switch/routing/interfaces/{interfaceId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -4815,12 +4679,11 @@ func (s *SwitchService) DeleteDeviceSwitchRoutingInterface(serial string, interf @param serial serial path parameter. @param staticRouteID staticRouteId path parameter. Static route ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-device-switch-routing-static-route */ func (s *SwitchService) DeleteDeviceSwitchRoutingStaticRoute(serial string, staticRouteID string) (*resty.Response, error) { //serial string,staticRouteID string path := "/api/v1/devices/{serial}/switch/routing/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) @@ -4849,12 +4712,11 @@ func (s *SwitchService) DeleteDeviceSwitchRoutingStaticRoute(serial string, stat @param networkID networkId path parameter. Network ID @param accessPolicyNumber accessPolicyNumber path parameter. Access policy number - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-access-policy */ func (s *SwitchService) DeleteNetworkSwitchAccessPolicy(networkID string, accessPolicyNumber string) (*resty.Response, error) { //networkID string,accessPolicyNumber string path := "/api/v1/networks/{networkId}/switch/accessPolicies/{accessPolicyNumber}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{accessPolicyNumber}", fmt.Sprintf("%v", accessPolicyNumber), -1) @@ -4883,12 +4745,11 @@ func (s *SwitchService) DeleteNetworkSwitchAccessPolicy(networkID string, access @param networkID networkId path parameter. Network ID @param trustedServerID trustedServerId path parameter. Trusted server ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-dhcp-server-policy-arp-inspection-trusted-server */ func (s *SwitchService) DeleteNetworkSwitchDhcpServerPolicyArpInspectionTrustedServer(networkID string, trustedServerID string) (*resty.Response, error) { //networkID string,trustedServerID string path := "/api/v1/networks/{networkId}/switch/dhcpServerPolicy/arpInspection/trustedServers/{trustedServerId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{trustedServerId}", fmt.Sprintf("%v", trustedServerID), -1) @@ -4917,12 +4778,11 @@ func (s *SwitchService) DeleteNetworkSwitchDhcpServerPolicyArpInspectionTrustedS @param networkID networkId path parameter. Network ID @param linkAggregationID linkAggregationId path parameter. Link aggregation ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-link-aggregation */ func (s *SwitchService) DeleteNetworkSwitchLinkAggregation(networkID string, linkAggregationID string) (*resty.Response, error) { //networkID string,linkAggregationID string path := "/api/v1/networks/{networkId}/switch/linkAggregations/{linkAggregationId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{linkAggregationId}", fmt.Sprintf("%v", linkAggregationID), -1) @@ -4951,12 +4811,11 @@ func (s *SwitchService) DeleteNetworkSwitchLinkAggregation(networkID string, lin @param networkID networkId path parameter. Network ID @param portScheduleID portScheduleId path parameter. Port schedule ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-port-schedule */ func (s *SwitchService) DeleteNetworkSwitchPortSchedule(networkID string, portScheduleID string) (*resty.Response, error) { //networkID string,portScheduleID string path := "/api/v1/networks/{networkId}/switch/portSchedules/{portScheduleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{portScheduleId}", fmt.Sprintf("%v", portScheduleID), -1) @@ -4985,12 +4844,11 @@ func (s *SwitchService) DeleteNetworkSwitchPortSchedule(networkID string, portSc @param networkID networkId path parameter. Network ID @param qosRuleID qosRuleId path parameter. Qos rule ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-qos-rule */ func (s *SwitchService) DeleteNetworkSwitchQosRule(networkID string, qosRuleID string) (*resty.Response, error) { //networkID string,qosRuleID string path := "/api/v1/networks/{networkId}/switch/qosRules/{qosRuleId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{qosRuleId}", fmt.Sprintf("%v", qosRuleID), -1) @@ -5019,12 +4877,11 @@ func (s *SwitchService) DeleteNetworkSwitchQosRule(networkID string, qosRuleID s @param networkID networkId path parameter. Network ID @param rendezvousPointID rendezvousPointId path parameter. Rendezvous point ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-routing-multicast-rendezvous-point */ func (s *SwitchService) DeleteNetworkSwitchRoutingMulticastRendezvousPoint(networkID string, rendezvousPointID string) (*resty.Response, error) { //networkID string,rendezvousPointID string path := "/api/v1/networks/{networkId}/switch/routing/multicast/rendezvousPoints/{rendezvousPointId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{rendezvousPointId}", fmt.Sprintf("%v", rendezvousPointID), -1) @@ -5053,12 +4910,11 @@ func (s *SwitchService) DeleteNetworkSwitchRoutingMulticastRendezvousPoint(netwo @param networkID networkId path parameter. Network ID @param switchStackID switchStackId path parameter. Switch stack ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-stack */ func (s *SwitchService) DeleteNetworkSwitchStack(networkID string, switchStackID string) (*resty.Response, error) { //networkID string,switchStackID string path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) @@ -5088,12 +4944,11 @@ func (s *SwitchService) DeleteNetworkSwitchStack(networkID string, switchStackID @param switchStackID switchStackId path parameter. Switch stack ID @param interfaceID interfaceId path parameter. Interface ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-stack-routing-interface */ func (s *SwitchService) DeleteNetworkSwitchStackRoutingInterface(networkID string, switchStackID string, interfaceID string) (*resty.Response, error) { //networkID string,switchStackID string,interfaceID string path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces/{interfaceId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{interfaceId}", fmt.Sprintf("%v", interfaceID), -1) @@ -5124,12 +4979,11 @@ func (s *SwitchService) DeleteNetworkSwitchStackRoutingInterface(networkID strin @param switchStackID switchStackId path parameter. Switch stack ID @param staticRouteID staticRouteId path parameter. Static route ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-switch-stack-routing-static-route */ func (s *SwitchService) DeleteNetworkSwitchStackRoutingStaticRoute(networkID string, switchStackID string, staticRouteID string) (*resty.Response, error) { //networkID string,switchStackID string,staticRouteID string path := "/api/v1/networks/{networkId}/switch/stacks/{switchStackId}/routing/staticRoutes/{staticRouteId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{switchStackId}", fmt.Sprintf("%v", switchStackID), -1) path = strings.Replace(path, "{staticRouteId}", fmt.Sprintf("%v", staticRouteID), -1) diff --git a/sdk/wireless.go b/sdk/wireless.go index f6fb98ad3..a049eff05 100644 --- a/sdk/wireless.go +++ b/sdk/wireless.go @@ -2448,11 +2448,10 @@ type RequestWirelessUpdateNetworkWirelessSSIDVpnSplitTunnelRules struct { @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-wireless-bluetooth-settings */ func (s *WirelessService) GetDeviceWirelessBluetoothSettings(serial string) (*ResponseWirelessGetDeviceWirelessBluetoothSettings, *resty.Response, error) { path := "/api/v1/devices/{serial}/wireless/bluetooth/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2482,11 +2481,10 @@ func (s *WirelessService) GetDeviceWirelessBluetoothSettings(serial string) (*Re @param serial serial path parameter. @param getDeviceWirelessConnectionStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-wireless-connection-stats */ func (s *WirelessService) GetDeviceWirelessConnectionStats(serial string, getDeviceWirelessConnectionStatsQueryParams *GetDeviceWirelessConnectionStatsQueryParams) (*ResponseWirelessGetDeviceWirelessConnectionStats, *resty.Response, error) { path := "/api/v1/devices/{serial}/wireless/connectionStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceWirelessConnectionStatsQueryParams) @@ -2518,11 +2516,10 @@ func (s *WirelessService) GetDeviceWirelessConnectionStats(serial string, getDev @param serial serial path parameter. @param getDeviceWirelessLatencyStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-wireless-latency-stats */ func (s *WirelessService) GetDeviceWirelessLatencyStats(serial string, getDeviceWirelessLatencyStatsQueryParams *GetDeviceWirelessLatencyStatsQueryParams) (*ResponseWirelessGetDeviceWirelessLatencyStats, *resty.Response, error) { path := "/api/v1/devices/{serial}/wireless/latencyStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) queryString, _ := query.Values(getDeviceWirelessLatencyStatsQueryParams) @@ -2553,11 +2550,10 @@ func (s *WirelessService) GetDeviceWirelessLatencyStats(serial string, getDevice @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-wireless-radio-settings */ func (s *WirelessService) GetDeviceWirelessRadioSettings(serial string) (*ResponseWirelessGetDeviceWirelessRadioSettings, *resty.Response, error) { path := "/api/v1/devices/{serial}/wireless/radio/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2586,11 +2582,10 @@ func (s *WirelessService) GetDeviceWirelessRadioSettings(serial string) (*Respon @param serial serial path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-device-wireless-status */ func (s *WirelessService) GetDeviceWirelessStatus(serial string) (*ResponseWirelessGetDeviceWirelessStatus, *resty.Response, error) { path := "/api/v1/devices/{serial}/wireless/status" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -2620,11 +2615,10 @@ func (s *WirelessService) GetDeviceWirelessStatus(serial string) (*ResponseWirel @param networkID networkId path parameter. Network ID @param getNetworkWirelessAirMarshalQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-air-marshal */ func (s *WirelessService) GetNetworkWirelessAirMarshal(networkID string, getNetworkWirelessAirMarshalQueryParams *GetNetworkWirelessAirMarshalQueryParams) (*ResponseWirelessGetNetworkWirelessAirMarshal, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/airMarshal" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessAirMarshalQueryParams) @@ -2655,11 +2649,10 @@ func (s *WirelessService) GetNetworkWirelessAirMarshal(networkID string, getNetw @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-alternate-management-interface */ func (s *WirelessService) GetNetworkWirelessAlternateManagementInterface(networkID string) (*ResponseWirelessGetNetworkWirelessAlternateManagementInterface, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/alternateManagementInterface" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2688,11 +2681,10 @@ func (s *WirelessService) GetNetworkWirelessAlternateManagementInterface(network @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-billing */ func (s *WirelessService) GetNetworkWirelessBilling(networkID string) (*ResponseWirelessGetNetworkWirelessBilling, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/billing" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2723,11 +2715,10 @@ Bluetooth settings @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-bluetooth-settings */ func (s *WirelessService) GetNetworkWirelessBluetoothSettings(networkID string) (*ResponseWirelessGetNetworkWirelessBluetoothSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/bluetooth/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -2757,11 +2748,10 @@ func (s *WirelessService) GetNetworkWirelessBluetoothSettings(networkID string) @param networkID networkId path parameter. Network ID @param getNetworkWirelessChannelUtilizationHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-channel-utilization-history */ func (s *WirelessService) GetNetworkWirelessChannelUtilizationHistory(networkID string, getNetworkWirelessChannelUtilizationHistoryQueryParams *GetNetworkWirelessChannelUtilizationHistoryQueryParams) (*ResponseWirelessGetNetworkWirelessChannelUtilizationHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/channelUtilizationHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessChannelUtilizationHistoryQueryParams) @@ -2793,11 +2783,10 @@ func (s *WirelessService) GetNetworkWirelessChannelUtilizationHistory(networkID @param networkID networkId path parameter. Network ID @param getNetworkWirelessClientCountHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-client-count-history */ func (s *WirelessService) GetNetworkWirelessClientCountHistory(networkID string, getNetworkWirelessClientCountHistoryQueryParams *GetNetworkWirelessClientCountHistoryQueryParams) (*ResponseWirelessGetNetworkWirelessClientCountHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/clientCountHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessClientCountHistoryQueryParams) @@ -2829,11 +2818,10 @@ func (s *WirelessService) GetNetworkWirelessClientCountHistory(networkID string, @param networkID networkId path parameter. Network ID @param getNetworkWirelessClientsConnectionStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-clients-connection-stats */ func (s *WirelessService) GetNetworkWirelessClientsConnectionStats(networkID string, getNetworkWirelessClientsConnectionStatsQueryParams *GetNetworkWirelessClientsConnectionStatsQueryParams) (*ResponseWirelessGetNetworkWirelessClientsConnectionStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/clients/connectionStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessClientsConnectionStatsQueryParams) @@ -2865,11 +2853,10 @@ func (s *WirelessService) GetNetworkWirelessClientsConnectionStats(networkID str @param networkID networkId path parameter. Network ID @param getNetworkWirelessClientsLatencyStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-clients-latency-stats */ func (s *WirelessService) GetNetworkWirelessClientsLatencyStats(networkID string, getNetworkWirelessClientsLatencyStatsQueryParams *GetNetworkWirelessClientsLatencyStatsQueryParams) (*ResponseWirelessGetNetworkWirelessClientsLatencyStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/clients/latencyStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessClientsLatencyStatsQueryParams) @@ -2902,11 +2889,10 @@ func (s *WirelessService) GetNetworkWirelessClientsLatencyStats(networkID string @param clientID clientId path parameter. Client ID @param getNetworkWirelessClientConnectionStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-client-connection-stats */ func (s *WirelessService) GetNetworkWirelessClientConnectionStats(networkID string, clientID string, getNetworkWirelessClientConnectionStatsQueryParams *GetNetworkWirelessClientConnectionStatsQueryParams) (*ResponseWirelessGetNetworkWirelessClientConnectionStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/clients/{clientId}/connectionStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -2940,11 +2926,10 @@ func (s *WirelessService) GetNetworkWirelessClientConnectionStats(networkID stri @param clientID clientId path parameter. Client ID @param getNetworkWirelessClientConnectivityEventsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-client-connectivity-events */ func (s *WirelessService) GetNetworkWirelessClientConnectivityEvents(networkID string, clientID string, getNetworkWirelessClientConnectivityEventsQueryParams *GetNetworkWirelessClientConnectivityEventsQueryParams) (*ResponseWirelessGetNetworkWirelessClientConnectivityEvents, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/clients/{clientId}/connectivityEvents" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -2978,11 +2963,10 @@ func (s *WirelessService) GetNetworkWirelessClientConnectivityEvents(networkID s @param clientID clientId path parameter. Client ID @param getNetworkWirelessClientLatencyHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-client-latency-history */ func (s *WirelessService) GetNetworkWirelessClientLatencyHistory(networkID string, clientID string, getNetworkWirelessClientLatencyHistoryQueryParams *GetNetworkWirelessClientLatencyHistoryQueryParams) (*ResponseWirelessGetNetworkWirelessClientLatencyHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/clients/{clientId}/latencyHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -3016,11 +3000,10 @@ func (s *WirelessService) GetNetworkWirelessClientLatencyHistory(networkID strin @param clientID clientId path parameter. Client ID @param getNetworkWirelessClientLatencyStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-client-latency-stats */ func (s *WirelessService) GetNetworkWirelessClientLatencyStats(networkID string, clientID string, getNetworkWirelessClientLatencyStatsQueryParams *GetNetworkWirelessClientLatencyStatsQueryParams) (*ResponseWirelessGetNetworkWirelessClientLatencyStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/clients/{clientId}/latencyStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{clientId}", fmt.Sprintf("%v", clientID), -1) @@ -3053,11 +3036,10 @@ func (s *WirelessService) GetNetworkWirelessClientLatencyStats(networkID string, @param networkID networkId path parameter. Network ID @param getNetworkWirelessConnectionStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-connection-stats */ func (s *WirelessService) GetNetworkWirelessConnectionStats(networkID string, getNetworkWirelessConnectionStatsQueryParams *GetNetworkWirelessConnectionStatsQueryParams) (*ResponseWirelessGetNetworkWirelessConnectionStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/connectionStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessConnectionStatsQueryParams) @@ -3089,11 +3071,10 @@ func (s *WirelessService) GetNetworkWirelessConnectionStats(networkID string, ge @param networkID networkId path parameter. Network ID @param getNetworkWirelessDataRateHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-data-rate-history */ func (s *WirelessService) GetNetworkWirelessDataRateHistory(networkID string, getNetworkWirelessDataRateHistoryQueryParams *GetNetworkWirelessDataRateHistoryQueryParams) (*ResponseWirelessGetNetworkWirelessDataRateHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/dataRateHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessDataRateHistoryQueryParams) @@ -3125,11 +3106,10 @@ func (s *WirelessService) GetNetworkWirelessDataRateHistory(networkID string, ge @param networkID networkId path parameter. Network ID @param getNetworkWirelessDevicesConnectionStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-devices-connection-stats */ func (s *WirelessService) GetNetworkWirelessDevicesConnectionStats(networkID string, getNetworkWirelessDevicesConnectionStatsQueryParams *GetNetworkWirelessDevicesConnectionStatsQueryParams) (*ResponseWirelessGetNetworkWirelessDevicesConnectionStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/devices/connectionStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessDevicesConnectionStatsQueryParams) @@ -3161,11 +3141,10 @@ func (s *WirelessService) GetNetworkWirelessDevicesConnectionStats(networkID str @param networkID networkId path parameter. Network ID @param getNetworkWirelessDevicesLatencyStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-devices-latency-stats */ func (s *WirelessService) GetNetworkWirelessDevicesLatencyStats(networkID string, getNetworkWirelessDevicesLatencyStatsQueryParams *GetNetworkWirelessDevicesLatencyStatsQueryParams) (*ResponseWirelessGetNetworkWirelessDevicesLatencyStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/devices/latencyStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessDevicesLatencyStatsQueryParams) @@ -3197,11 +3176,10 @@ func (s *WirelessService) GetNetworkWirelessDevicesLatencyStats(networkID string @param networkID networkId path parameter. Network ID @param getNetworkWirelessFailedConnectionsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-failed-connections */ func (s *WirelessService) GetNetworkWirelessFailedConnections(networkID string, getNetworkWirelessFailedConnectionsQueryParams *GetNetworkWirelessFailedConnectionsQueryParams) (*ResponseWirelessGetNetworkWirelessFailedConnections, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/failedConnections" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessFailedConnectionsQueryParams) @@ -3233,11 +3211,10 @@ func (s *WirelessService) GetNetworkWirelessFailedConnections(networkID string, @param networkID networkId path parameter. Network ID @param getNetworkWirelessLatencyHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-latency-history */ func (s *WirelessService) GetNetworkWirelessLatencyHistory(networkID string, getNetworkWirelessLatencyHistoryQueryParams *GetNetworkWirelessLatencyHistoryQueryParams) (*ResponseWirelessGetNetworkWirelessLatencyHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/latencyHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessLatencyHistoryQueryParams) @@ -3269,11 +3246,10 @@ func (s *WirelessService) GetNetworkWirelessLatencyHistory(networkID string, get @param networkID networkId path parameter. Network ID @param getNetworkWirelessLatencyStatsQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-latency-stats */ func (s *WirelessService) GetNetworkWirelessLatencyStats(networkID string, getNetworkWirelessLatencyStatsQueryParams *GetNetworkWirelessLatencyStatsQueryParams) (*ResponseWirelessGetNetworkWirelessLatencyStats, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/latencyStats" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessLatencyStatsQueryParams) @@ -3305,11 +3281,10 @@ func (s *WirelessService) GetNetworkWirelessLatencyStats(networkID string, getNe @param networkID networkId path parameter. Network ID @param getNetworkWirelessMeshStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-mesh-statuses */ func (s *WirelessService) GetNetworkWirelessMeshStatuses(networkID string, getNetworkWirelessMeshStatusesQueryParams *GetNetworkWirelessMeshStatusesQueryParams) (*ResponseWirelessGetNetworkWirelessMeshStatuses, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/meshStatuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessMeshStatusesQueryParams) @@ -3341,11 +3316,10 @@ func (s *WirelessService) GetNetworkWirelessMeshStatuses(networkID string, getNe @param networkID networkId path parameter. Network ID @param getNetworkWirelessRfProfilesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-rf-profiles */ func (s *WirelessService) GetNetworkWirelessRfProfiles(networkID string, getNetworkWirelessRfProfilesQueryParams *GetNetworkWirelessRfProfilesQueryParams) (*ResponseWirelessGetNetworkWirelessRfProfiles, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/rfProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessRfProfilesQueryParams) @@ -3377,11 +3351,10 @@ func (s *WirelessService) GetNetworkWirelessRfProfiles(networkID string, getNetw @param networkID networkId path parameter. Network ID @param rfProfileID rfProfileId path parameter. Rf profile ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-rf-profile */ func (s *WirelessService) GetNetworkWirelessRfProfile(networkID string, rfProfileID string) (*ResponseWirelessGetNetworkWirelessRfProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/rfProfiles/{rfProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{rfProfileId}", fmt.Sprintf("%v", rfProfileID), -1) @@ -3411,11 +3384,10 @@ func (s *WirelessService) GetNetworkWirelessRfProfile(networkID string, rfProfil @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-settings */ func (s *WirelessService) GetNetworkWirelessSettings(networkID string) (*ResponseWirelessGetNetworkWirelessSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3445,11 +3417,10 @@ func (s *WirelessService) GetNetworkWirelessSettings(networkID string) (*Respons @param networkID networkId path parameter. Network ID @param getNetworkWirelessSignalQualityHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-signal-quality-history */ func (s *WirelessService) GetNetworkWirelessSignalQualityHistory(networkID string, getNetworkWirelessSignalQualityHistoryQueryParams *GetNetworkWirelessSignalQualityHistoryQueryParams) (*ResponseWirelessGetNetworkWirelessSignalQualityHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/signalQualityHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessSignalQualityHistoryQueryParams) @@ -3480,11 +3451,10 @@ func (s *WirelessService) GetNetworkWirelessSignalQualityHistory(networkID strin @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssids */ func (s *WirelessService) GetNetworkWirelessSSIDs(networkID string) (*ResponseWirelessGetNetworkWirelessSSIDs, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -3514,11 +3484,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDs(networkID string) (*ResponseWi @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid */ func (s *WirelessService) GetNetworkWirelessSSID(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSID, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3549,11 +3518,10 @@ func (s *WirelessService) GetNetworkWirelessSSID(networkID string, number string @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-bonjour-forwarding */ func (s *WirelessService) GetNetworkWirelessSSIDBonjourForwarding(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDBonjourForwarding, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/bonjourForwarding" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3584,11 +3552,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDBonjourForwarding(networkID stri @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-device-type-group-policies */ func (s *WirelessService) GetNetworkWirelessSSIDDeviceTypeGroupPolicies(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDDeviceTypeGroupPolicies, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/deviceTypeGroupPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3619,11 +3586,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDDeviceTypeGroupPolicies(networkI @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-eap-override */ func (s *WirelessService) GetNetworkWirelessSSIDEapOverride(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDEapOverride, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/eapOverride" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3654,11 +3620,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDEapOverride(networkID string, nu @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-firewall-l3-firewall-rules */ func (s *WirelessService) GetNetworkWirelessSSIDFirewallL3FirewallRules(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDFirewallL3FirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/firewall/l3FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3689,11 +3654,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDFirewallL3FirewallRules(networkI @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-firewall-l7-firewall-rules */ func (s *WirelessService) GetNetworkWirelessSSIDFirewallL7FirewallRules(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDFirewallL7FirewallRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/firewall/l7FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3724,11 +3688,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDFirewallL7FirewallRules(networkI @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-hotspot20 */ func (s *WirelessService) GetNetworkWirelessSSIDHotspot20(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDHotspot20, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/hotspot20" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3759,11 +3722,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDHotspot20(networkID string, numb @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-identity-psks */ func (s *WirelessService) GetNetworkWirelessSSIDIDentityPsks(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDIDentityPsks, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/identityPsks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3795,11 +3757,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDIDentityPsks(networkID string, n @param number number path parameter. @param identityPskID identityPskId path parameter. Identity psk ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-identity-psk */ func (s *WirelessService) GetNetworkWirelessSSIDIDentityPsk(networkID string, number string, identityPskID string) (*ResponseWirelessGetNetworkWirelessSSIDIDentityPsk, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/identityPsks/{identityPskId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) path = strings.Replace(path, "{identityPskId}", fmt.Sprintf("%v", identityPskID), -1) @@ -3831,11 +3792,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDIDentityPsk(networkID string, nu @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-schedules */ func (s *WirelessService) GetNetworkWirelessSSIDSchedules(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDSchedules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/schedules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3866,11 +3826,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDSchedules(networkID string, numb @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-splash-settings */ func (s *WirelessService) GetNetworkWirelessSSIDSplashSettings(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDSplashSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/splash/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3901,11 +3860,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDSplashSettings(networkID string, @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-traffic-shaping-rules */ func (s *WirelessService) GetNetworkWirelessSSIDTrafficShapingRules(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDTrafficShapingRules, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/trafficShaping/rules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3936,11 +3894,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDTrafficShapingRules(networkID st @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-ssid-vpn */ func (s *WirelessService) GetNetworkWirelessSSIDVpn(networkID string, number string) (*ResponseWirelessGetNetworkWirelessSSIDVpn, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/vpn" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -3971,11 +3928,10 @@ func (s *WirelessService) GetNetworkWirelessSSIDVpn(networkID string, number str @param networkID networkId path parameter. Network ID @param getNetworkWirelessUsageHistoryQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-network-wireless-usage-history */ func (s *WirelessService) GetNetworkWirelessUsageHistory(networkID string, getNetworkWirelessUsageHistoryQueryParams *GetNetworkWirelessUsageHistoryQueryParams) (*ResponseWirelessGetNetworkWirelessUsageHistory, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/usageHistory" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) queryString, _ := query.Values(getNetworkWirelessUsageHistoryQueryParams) @@ -4007,11 +3963,10 @@ func (s *WirelessService) GetNetworkWirelessUsageHistory(networkID string, getNe @param organizationID organizationId path parameter. Organization ID @param getOrganizationWirelessDevicesEthernetStatusesQueryParams Filtering parameter - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!get-organization-wireless-devices-ethernet-statuses */ func (s *WirelessService) GetOrganizationWirelessDevicesEthernetStatuses(organizationID string, getOrganizationWirelessDevicesEthernetStatusesQueryParams *GetOrganizationWirelessDevicesEthernetStatusesQueryParams) (*ResponseWirelessGetOrganizationWirelessDevicesEthernetStatuses, *resty.Response, error) { path := "/api/v1/organizations/{organizationId}/wireless/devices/ethernet/statuses" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{organizationId}", fmt.Sprintf("%v", organizationID), -1) queryString, _ := query.Values(getOrganizationWirelessDevicesEthernetStatusesQueryParams) @@ -4042,12 +3997,11 @@ func (s *WirelessService) GetOrganizationWirelessDevicesEthernetStatuses(organiz @param networkID networkId path parameter. Network ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-wireless-rf-profile */ func (s *WirelessService) CreateNetworkWirelessRfProfile(networkID string, requestWirelessCreateNetworkWirelessRfProfile *RequestWirelessCreateNetworkWirelessRfProfile) (*ResponseWirelessCreateNetworkWirelessRfProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/rfProfiles" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4078,12 +4032,11 @@ func (s *WirelessService) CreateNetworkWirelessRfProfile(networkID string, reque @param networkID networkId path parameter. Network ID @param number number path parameter. - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!create-network-wireless-ssid-identity-psk */ func (s *WirelessService) CreateNetworkWirelessSSIDIDentityPsk(networkID string, number string, requestWirelessCreateNetworkWirelessSsidIdentityPsk *RequestWirelessCreateNetworkWirelessSSIDIDentityPsk) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/identityPsks" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4115,7 +4068,6 @@ func (s *WirelessService) CreateNetworkWirelessSSIDIDentityPsk(networkID string, */ func (s *WirelessService) UpdateDeviceWirelessBluetoothSettings(serial string, requestWirelessUpdateDeviceWirelessBluetoothSettings *RequestWirelessUpdateDeviceWirelessBluetoothSettings) (*ResponseWirelessUpdateDeviceWirelessBluetoothSettings, *resty.Response, error) { path := "/api/v1/devices/{serial}/wireless/bluetooth/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -4147,7 +4099,6 @@ func (s *WirelessService) UpdateDeviceWirelessBluetoothSettings(serial string, r */ func (s *WirelessService) UpdateDeviceWirelessRadioSettings(serial string, requestWirelessUpdateDeviceWirelessRadioSettings *RequestWirelessUpdateDeviceWirelessRadioSettings) (*resty.Response, error) { path := "/api/v1/devices/{serial}/wireless/radio/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{serial}", fmt.Sprintf("%v", serial), -1) response, err := s.client.R(). @@ -4177,7 +4128,6 @@ func (s *WirelessService) UpdateDeviceWirelessRadioSettings(serial string, reque */ func (s *WirelessService) UpdateNetworkWirelessAlternateManagementInterface(networkID string, requestWirelessUpdateNetworkWirelessAlternateManagementInterface *RequestWirelessUpdateNetworkWirelessAlternateManagementInterface) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/alternateManagementInterface" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4207,7 +4157,6 @@ func (s *WirelessService) UpdateNetworkWirelessAlternateManagementInterface(netw */ func (s *WirelessService) UpdateNetworkWirelessBilling(networkID string, requestWirelessUpdateNetworkWirelessBilling *RequestWirelessUpdateNetworkWirelessBilling) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/billing" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4239,7 +4188,6 @@ Bluetooth settings */ func (s *WirelessService) UpdateNetworkWirelessBluetoothSettings(networkID string, requestWirelessUpdateNetworkWirelessBluetoothSettings *RequestWirelessUpdateNetworkWirelessBluetoothSettings) (*ResponseWirelessUpdateNetworkWirelessBluetoothSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/bluetooth/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4272,7 +4220,6 @@ func (s *WirelessService) UpdateNetworkWirelessBluetoothSettings(networkID strin */ func (s *WirelessService) UpdateNetworkWirelessRfProfile(networkID string, rfProfileID string, requestWirelessUpdateNetworkWirelessRfProfile *RequestWirelessUpdateNetworkWirelessRfProfile) (*ResponseWirelessUpdateNetworkWirelessRfProfile, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/rfProfiles/{rfProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{rfProfileId}", fmt.Sprintf("%v", rfProfileID), -1) @@ -4305,7 +4252,6 @@ func (s *WirelessService) UpdateNetworkWirelessRfProfile(networkID string, rfPro */ func (s *WirelessService) UpdateNetworkWirelessSettings(networkID string, requestWirelessUpdateNetworkWirelessSettings *RequestWirelessUpdateNetworkWirelessSettings) (*ResponseWirelessUpdateNetworkWirelessSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) response, err := s.client.R(). @@ -4338,7 +4284,6 @@ func (s *WirelessService) UpdateNetworkWirelessSettings(networkID string, reques */ func (s *WirelessService) UpdateNetworkWirelessSSID(networkID string, number string, requestWirelessUpdateNetworkWirelessSsid *RequestWirelessUpdateNetworkWirelessSSID) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4370,7 +4315,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSID(networkID string, number str */ func (s *WirelessService) UpdateNetworkWirelessSSIDBonjourForwarding(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidBonjourForwarding *RequestWirelessUpdateNetworkWirelessSSIDBonjourForwarding) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/bonjourForwarding" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4402,7 +4346,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDBonjourForwarding(networkID s */ func (s *WirelessService) UpdateNetworkWirelessSSIDDeviceTypeGroupPolicies(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidDeviceTypeGroupPolicies *RequestWirelessUpdateNetworkWirelessSSIDDeviceTypeGroupPolicies) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/deviceTypeGroupPolicies" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4434,7 +4377,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDDeviceTypeGroupPolicies(netwo */ func (s *WirelessService) UpdateNetworkWirelessSSIDEapOverride(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidEapOverride *RequestWirelessUpdateNetworkWirelessSSIDEapOverride) (*ResponseWirelessUpdateNetworkWirelessSSIDEapOverride, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/eapOverride" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4468,7 +4410,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDEapOverride(networkID string, */ func (s *WirelessService) UpdateNetworkWirelessSSIDFirewallL3FirewallRules(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidFirewallL3FirewallRules *RequestWirelessUpdateNetworkWirelessSSIDFirewallL3FirewallRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/firewall/l3FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4500,7 +4441,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDFirewallL3FirewallRules(netwo */ func (s *WirelessService) UpdateNetworkWirelessSSIDFirewallL7FirewallRules(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidFirewallL7FirewallRules *RequestWirelessUpdateNetworkWirelessSSIDFirewallL7FirewallRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/firewall/l7FirewallRules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4532,7 +4472,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDFirewallL7FirewallRules(netwo */ func (s *WirelessService) UpdateNetworkWirelessSSIDHotspot20(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidHotspot20 *RequestWirelessUpdateNetworkWirelessSSIDHotspot20) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/hotspot20" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4565,7 +4504,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDHotspot20(networkID string, n */ func (s *WirelessService) UpdateNetworkWirelessSSIDIDentityPsk(networkID string, number string, identityPskID string, requestWirelessUpdateNetworkWirelessSsidIdentityPsk *RequestWirelessUpdateNetworkWirelessSSIDIDentityPsk) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/identityPsks/{identityPskId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) path = strings.Replace(path, "{identityPskId}", fmt.Sprintf("%v", identityPskID), -1) @@ -4598,7 +4536,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDIDentityPsk(networkID string, */ func (s *WirelessService) UpdateNetworkWirelessSSIDSchedules(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidSchedules *RequestWirelessUpdateNetworkWirelessSSIDSchedules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/schedules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4630,7 +4567,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDSchedules(networkID string, n */ func (s *WirelessService) UpdateNetworkWirelessSSIDSplashSettings(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidSplashSettings *RequestWirelessUpdateNetworkWirelessSSIDSplashSettings) (*ResponseWirelessUpdateNetworkWirelessSSIDSplashSettings, *resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/splash/settings" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4664,7 +4600,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDSplashSettings(networkID stri */ func (s *WirelessService) UpdateNetworkWirelessSSIDTrafficShapingRules(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidTrafficShapingRules *RequestWirelessUpdateNetworkWirelessSSIDTrafficShapingRules) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/trafficShaping/rules" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4696,7 +4631,6 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDTrafficShapingRules(networkID */ func (s *WirelessService) UpdateNetworkWirelessSSIDVpn(networkID string, number string, requestWirelessUpdateNetworkWirelessSsidVpn *RequestWirelessUpdateNetworkWirelessSSIDVpn) (*resty.Response, error) { path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/vpn" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) @@ -4726,12 +4660,11 @@ func (s *WirelessService) UpdateNetworkWirelessSSIDVpn(networkID string, number @param networkID networkId path parameter. Network ID @param rfProfileID rfProfileId path parameter. Rf profile ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-wireless-rf-profile */ func (s *WirelessService) DeleteNetworkWirelessRfProfile(networkID string, rfProfileID string) (*resty.Response, error) { //networkID string,rfProfileID string path := "/api/v1/networks/{networkId}/wireless/rfProfiles/{rfProfileId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{rfProfileId}", fmt.Sprintf("%v", rfProfileID), -1) @@ -4761,12 +4694,11 @@ func (s *WirelessService) DeleteNetworkWirelessRfProfile(networkID string, rfPro @param number number path parameter. @param identityPskID identityPskId path parameter. Identity psk ID - +Documentation Link: https://developer.cisco.com/docs/dna-center/#!delete-network-wireless-ssid-identity-psk */ func (s *WirelessService) DeleteNetworkWirelessSSIDIDentityPsk(networkID string, number string, identityPskID string) (*resty.Response, error) { //networkID string,number string,identityPskID string path := "/api/v1/networks/{networkId}/wireless/ssids/{number}/identityPsks/{identityPskId}" - s.rateLimiterBucket.Wait(1) path = strings.Replace(path, "{networkId}", fmt.Sprintf("%v", networkID), -1) path = strings.Replace(path, "{number}", fmt.Sprintf("%v", number), -1) path = strings.Replace(path, "{identityPskId}", fmt.Sprintf("%v", identityPskID), -1)