Skip to content

Commit

Permalink
Merge pull request #120 from cisco-en-programmability/develop
Browse files Browse the repository at this point in the history
Develop v1.0.15-beta
  • Loading branch information
fmunozmiranda authored Jan 10, 2023
2 parents fe1f492 + 2fbcf29 commit 2bfd351
Show file tree
Hide file tree
Showing 263 changed files with 441 additions and 438 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.15-beta (Jan 10, 2023)
BUGFIXES:
* `Offset` and `Limit` query params change to `int`.

## 1.0.14-beta (Nov 30, 2022)
BUGFIXES:
* Resource `dnacenter_reserve_ip_subpool` expand functions fixed.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOSTNAME=hashicorp.com
NAMESPACE=edu
NAME=dnacenter
BINARY=terraform-provider-${NAME}
VERSION=1.0.14-beta
VERSION=1.0.15-beta
OS_ARCH=darwin_amd64
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
WEBSITE_REPO=github.com/hashicorp/terraform-website
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following table shows the supported versions.
| 2.1.1 | 0.0.4 |
| 2.2.3.3 | 0.3.0-beta |
| 2.2.3.3 | 0.3.0 |
| 2.3.3.0 | 1.0.14-beta |
| 2.3.3.0 | 1.0.15-beta |

If your SDK, Terraform provider is older please consider updating it first.

Expand Down Expand Up @@ -64,7 +64,7 @@ To use this provider, copy and paste this code into your Terraform configuration
terraform {
required_providers {
dnacenter = {
source = "hashicorp.com/edu/dnacenter" version = "1.0.14-beta" }
source = "hashicorp.com/edu/dnacenter" version = "1.0.15-beta" }
}
}
Expand Down Expand Up @@ -125,7 +125,7 @@ $ make testacc

## Documentation

In the [docs directory](./docs/) you can find the documentation source for this 1.0.14-beta version.
In the [docs directory](./docs/) you can find the documentation source for this 1.0.15-beta version.

You can find the documentation online for the previously released versions at [Terraform Registry - Cisco DNA Center provider](https://registry.terraform.io/providers/cisco-en-programmability/dnacenter/latest/docs).

Expand All @@ -141,7 +141,7 @@ All notable changes to this project will be documented in the [CHANGELOG](./CHAN

The development team may make additional changes as the library evolves with the Cisco DNA Center.

**NOTE**: Consider reviewing the Changelog to review the new features of the 1.0.14-beta version.
**NOTE**: Consider reviewing the Changelog to review the new features of the 1.0.15-beta version.

## License

Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_application_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func dataSourceApplicationSets() *schema.Resource {
Schema: map[string]*schema.Schema{
"limit": &schema.Schema{
Description: `limit query parameter.`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"name": &schema.Schema{
Expand All @@ -32,7 +32,7 @@ func dataSourceApplicationSets() *schema.Resource {
},
"offset": &schema.Schema{
Description: `offset query parameter.`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},

Expand Down Expand Up @@ -95,10 +95,10 @@ func dataSourceApplicationSetsRead(ctx context.Context, d *schema.ResourceData,
queryParams1 := dnacentersdkgo.GetApplicationSetsQueryParams{}

if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okName {
queryParams1.Name = vName.(string)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func dataSourceApplications() *schema.Resource {
"limit": &schema.Schema{
Description: `limit query parameter. The maximum number of applications to be returned
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"name": &schema.Schema{
Expand All @@ -35,7 +35,7 @@ func dataSourceApplications() *schema.Resource {
"offset": &schema.Schema{
Description: `offset query parameter. The offset of the first application to be returned
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},

Expand Down Expand Up @@ -293,10 +293,10 @@ func dataSourceApplicationsRead(ctx context.Context, d *schema.ResourceData, m i
queryParams1 := dnacentersdkgo.GetApplicationsQueryParams{}

if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okName {
queryParams1.Name = vName.(string)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_applications_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ combination of a specific application with site and/or device the API gets list
"limit": &schema.Schema{
Description: `limit query parameter. The max number of application entries in returned data [1, 1000] (optionally used with siteId only)
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"mac_address": &schema.Schema{
Expand All @@ -60,7 +60,7 @@ combination of a specific application with site and/or device the API gets list
"offset": &schema.Schema{
Description: `offset query parameter. The offset of the first application in the returned data (optionally used with siteId only)
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"site_id": &schema.Schema{
Expand Down Expand Up @@ -343,10 +343,10 @@ func dataSourceApplicationsHealthRead(ctx context.Context, d *schema.ResourceDat
queryParams1.ApplicationHealth = vApplicationHealth.(string)
}
if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okApplicationName {
queryParams1.ApplicationName = vApplicationName.(string)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_buildings_planned_access_points.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ func dataSourceBuildingsPlannedAccessPoints() *schema.Resource {
},
"limit": &schema.Schema{
Description: `limit query parameter.`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"offset": &schema.Schema{
Description: `offset query parameter.`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"radios": &schema.Schema{
Expand Down Expand Up @@ -298,10 +298,10 @@ func dataSourceBuildingsPlannedAccessPointsRead(ctx context.Context, d *schema.R
queryParams1 := dnacentersdkgo.GetPlannedAccessPointsForBuildingQueryParams{}

if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okRadios {
queryParams1.Radios = vRadios.(bool)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_compliance_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ func dataSourceComplianceDevice() *schema.Resource {
"limit": &schema.Schema{
Description: `limit query parameter. Number of records to be retrieved
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"offset": &schema.Schema{
Description: `offset query parameter. offset/starting row
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},

Expand Down Expand Up @@ -108,10 +108,10 @@ func dataSourceComplianceDeviceRead(ctx context.Context, d *schema.ResourceData,
queryParams1.DeviceUUID = vDeviceUUID.(string)
}
if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}

response1, restyResp1, err := client.Compliance.GetComplianceStatus(&queryParams1)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_compliance_device_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ func dataSourceComplianceDeviceDetails() *schema.Resource {
"limit": &schema.Schema{
Description: `limit query parameter. Number of records to be retrieved
`,
Type: schema.TypeString,
Type: schema.TypeInt,
Optional: true,
},
"offset": &schema.Schema{
Description: `offset query parameter. offset/starting row
`,
Type: schema.TypeString,
Type: schema.TypeInt,
Optional: true,
},

Expand Down Expand Up @@ -136,10 +136,10 @@ func dataSourceComplianceDeviceDetailsRead(ctx context.Context, d *schema.Resour
queryParams1.DeviceUUID = vDeviceUUID.(string)
}
if okOffset {
queryParams1.Offset = vOffset.(string)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(string)
queryParams1.Limit = vLimit.(int)
}

response1, restyResp1, err := client.Compliance.GetComplianceDetail(&queryParams1)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_device_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ additional value added services.
"limit": &schema.Schema{
Description: `limit query parameter. Max number of device entries in the response (default to 50. Max at 1000)
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"offset": &schema.Schema{
Description: `offset query parameter. The offset of the first device in the returned data
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"site_id": &schema.Schema{
Expand Down Expand Up @@ -364,10 +364,10 @@ func dataSourceDeviceHealthRead(ctx context.Context, d *schema.ResourceData, m i
queryParams1.EndTime = vEndTime.(float64)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}

response1, restyResp1, err := client.Devices.Devices(&queryParams1)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_device_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ func dataSourceDeviceInterface() *schema.Resource {
},
"limit": &schema.Schema{
Description: `limit query parameter.`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"offset": &schema.Schema{
Description: `offset query parameter.`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},

Expand Down Expand Up @@ -379,10 +379,10 @@ func dataSourceDeviceInterfaceRead(ctx context.Context, d *schema.ResourceData,
queryParams1 := dnacentersdkgo.GetAllInterfacesQueryParams{}

if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}

response1, restyResp1, err := client.Devices.GetAllInterfaces(&queryParams1)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ func dataSourceEvent() *schema.Resource {
"limit": &schema.Schema{
Description: `limit query parameter. The number of Registries to limit in the resultset whose default value 10
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"offset": &schema.Schema{
Description: `offset query parameter. The number of Registries to offset in the resultset whose default value 0
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"order": &schema.Schema{
Expand Down Expand Up @@ -174,10 +174,10 @@ func dataSourceEventRead(ctx context.Context, d *schema.ResourceData, m interfac
queryParams1.Tags = vTags.(string)

if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okSortBy {
queryParams1.SortBy = vSortBy.(string)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_event_artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ func dataSourceEventArtifact() *schema.Resource {
"limit": &schema.Schema{
Description: `limit query parameter. # of records to return in result set
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"offset": &schema.Schema{
Description: `offset query parameter. Record start offset
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"order": &schema.Schema{
Expand Down Expand Up @@ -279,10 +279,10 @@ func dataSourceEventArtifactRead(ctx context.Context, d *schema.ResourceData, m
queryParams1.Tags = vTags.(string)
}
if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okSortBy {
queryParams1.SortBy = vSortBy.(string)
Expand Down
8 changes: 4 additions & 4 deletions dnacenter/data_source_event_series.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func dataSourceEventSeries() *schema.Resource {
"limit": &schema.Schema{
Description: `limit query parameter. # of records
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"namespace": &schema.Schema{
Expand All @@ -56,7 +56,7 @@ func dataSourceEventSeries() *schema.Resource {
"offset": &schema.Schema{
Description: `offset query parameter. Start Offset
`,
Type: schema.TypeFloat,
Type: schema.TypeInt,
Optional: true,
},
"order": &schema.Schema{
Expand Down Expand Up @@ -287,10 +287,10 @@ func dataSourceEventSeriesRead(ctx context.Context, d *schema.ResourceData, m in
queryParams1.Source = vSource.(string)
}
if okOffset {
queryParams1.Offset = vOffset.(float64)
queryParams1.Offset = vOffset.(int)
}
if okLimit {
queryParams1.Limit = vLimit.(float64)
queryParams1.Limit = vLimit.(int)
}
if okSortBy {
queryParams1.SortBy = vSortBy.(string)
Expand Down
Loading

0 comments on commit 2bfd351

Please sign in to comment.