Skip to content

Commit

Permalink
Merge pull request #62 from cisco-en-programmability/develop
Browse files Browse the repository at this point in the history
Develop v1.01-beta
  • Loading branch information
fmunozmiranda authored Jul 9, 2022
2 parents bbbf3a7 + 4507fea commit efa4a57
Show file tree
Hide file tree
Showing 194 changed files with 677 additions and 494 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 1.0.1-beta (July 17, 2022)
BUG FIXES:
* Add `site_name_hierarchy`,`fabric_name`,`fabric_type`,`fabric_domain_type` parameters to `item` schema of `data_source_sda_fabric_site`
* `payload` for array request added in following resources: `resource_event_subscription`,`resource_event_subscription_rest`,`resource_sda_fabric_authentication_profile`,`resource_sda_fabric_control_plane_device`,`resource_sda_fabric_edge_device`,`resource_sda_fabric_site`,`resource_sda_virtual_network`

IMPROVEMENTS:
* In `resource_event_subscription` a `CustomCall` was added for verify creation state.
* * `dnacenter_sda_fabric_site` examples were added.

REMOVED:
* `dnacenter_sda_fabric` examples were removed.

## 1.0.0-beta (June 17, 2022)

NOTES:
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.0-beta
VERSION=1.0.1-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 @@ -23,7 +23,7 @@ Other versions of this collection have support for previous Cisco DNA Center ver
| 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.0-beta |
| 2.3.3.0 | 1.0.1-beta |

## Using the provider

Expand Down Expand Up @@ -61,7 +61,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.0-beta" }
source = "hashicorp.com/edu/dnacenter" version = "1.0.1-beta" }
}
}
Expand Down Expand Up @@ -122,7 +122,7 @@ $ make testacc

## Documentation

In the [docs directory](./docs/) you can find the documentation source for this 1.0.0-beta version.
In the [docs directory](./docs/) you can find the documentation source for this 1.0.1-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 @@ -138,7 +138,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.0-beta version.
**NOTE**: Consider reviewing the Changelog to review the new features of the 1.0.1-beta version.

## License

Expand Down
6 changes: 3 additions & 3 deletions dnacenter/data_source_event_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func dataSourceEventSubscription() *schema.Resource {

"connect_timeout": &schema.Schema{
Description: `Connect Timeout`,
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},

Expand Down Expand Up @@ -290,7 +290,7 @@ func dataSourceEventSubscription() *schema.Resource {

"read_timeout": &schema.Schema{
Description: `Read Timeout`,
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},

Expand Down Expand Up @@ -449,7 +449,7 @@ func flattenEventManagementGetEventSubscriptionsItemsSubscriptionEndpointsSubscr
respItem["base_path"] = item.BasePath
respItem["resource"] = item.Resource
respItem["method"] = item.Method
respItem["trust_cert"] = item.TrustCert
respItem["trust_cert"] = boolPtrToString(item.TrustCert)
respItem["headers"] = flattenEventManagementGetEventSubscriptionsItemsSubscriptionEndpointsSubscriptionDetailsHeaders(item.Headers)
respItem["query_params"] = flattenEventManagementGetEventSubscriptionsItemsSubscriptionEndpointsSubscriptionDetailsQueryParams(item.QueryParams)
respItem["path_params"] = flattenEventManagementGetEventSubscriptionsItemsSubscriptionEndpointsSubscriptionDetailsPathParams(item.PathParams)
Expand Down
27 changes: 27 additions & 0 deletions dnacenter/data_source_sda_fabric_site.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,29 @@ func dataSourceSdaFabricSite() *schema.Resource {
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"site_name_hierarchy": &schema.Schema{
Description: `Description`,
Type: schema.TypeString,
Computed: true,
},

"fabric_name": &schema.Schema{
Description: `Description`,
Type: schema.TypeString,
Computed: true,
},

"fabric_type": &schema.Schema{
Description: `Description`,
Type: schema.TypeString,
Computed: true,
},

"fabric_domain_type": &schema.Schema{
Description: `Description`,
Type: schema.TypeString,
Computed: true,
},

"description": &schema.Schema{
Description: `Description`,
Expand Down Expand Up @@ -103,6 +126,10 @@ func flattenSdaGetSiteFromSdaFabricItem(item *dnacentersdkgo.ResponseSdaGetSiteF
return nil
}
respItem := make(map[string]interface{})
respItem["site_name_hierarchy"] = item.SiteNameHierarchy
respItem["fabric_name"] = item.FabricName
respItem["fabric_type"] = item.FabricType
respItem["fabric_domain_type"] = item.FabricDomainType
respItem["status"] = item.Status
respItem["description"] = item.Description
respItem["execution_status_url"] = item.ExecutionStatusURL
Expand Down
Loading

0 comments on commit efa4a57

Please sign in to comment.