Skip to content

Commit

Permalink
Changes to capture gosdk format errors and updating go.mod with gosdk…
Browse files Browse the repository at this point in the history
… v4.0.1

DELETING A FILE THAT WAS AN UPLOADING ERROR. `dnacenter_app_policy_intent_create`
  • Loading branch information
fmunoz committed Jun 18, 2022
1 parent 93f0df0 commit 4f18b72
Show file tree
Hide file tree
Showing 57 changed files with 1,016 additions and 651 deletions.
6 changes: 3 additions & 3 deletions dnacenter/data_source_event_subscription_syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func dataSourceEventSubscriptionSyslog() *schema.Resource {

"port": &schema.Schema{
Description: `Port`,
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},

Expand Down Expand Up @@ -416,8 +416,8 @@ func flattenEventManagementGetSyslogEventSubscriptionsItems(items *dnacentersdkg
var respItems []map[string]interface{}
for _, item := range *items {
respItem := make(map[string]interface{})
respItem["version"] = item.Version
respItem["subscription_id"] = item.SubscriptionID
respItem["version"] = responseInterfaceToString(item.Version)
respItem["subscription_id"] = responseInterfaceToString(item.SubscriptionID)
respItem["name"] = item.Name
respItem["description"] = item.Description
respItem["subscription_endpoints"] = flattenEventManagementGetSyslogEventSubscriptionsItemsSubscriptionEndpoints(item.SubscriptionEndpoints)
Expand Down
108 changes: 0 additions & 108 deletions dnacenter/dnacenter_app_policy_intent_create.yml

This file was deleted.

12 changes: 12 additions & 0 deletions dnacenter/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ func Provider() *schema.Provider {
},
},
ResourcesMap: map[string]*schema.Resource{
"dnacenter_sensor_test_delete": resourceSensorTestDelete(),
"dnacenter_sensor_test_create": resourceSensorTestCreate(),
"dnacenter_license_device": resourceLicenseDevice(),
"dnacenter_golden_image": resourceGoldenImage(),
"dnacenter_deploy_template_v1": resourceDeployTemplateV1(),
"dnacenter_global_credential_snmpv3": resourceGlobalCredentialSNMPv3(),
"dnacenter_global_credential_snmpv2_write_community": resourceGlobalCredentialSNMPv2WriteCommunity(),
"dnacenter_global_credential_snmpv2_read_community": resourceGlobalCredentialSNMPv2ReadCommunity(),
"dnacenter_global_credential_netconf": resourceGlobalCredentialNetconf(),
"dnacenter_global_credential_http_write": resourceGlobalCredentialHTTPWrite(),
"dnacenter_global_credential_http_read": resourceGlobalCredentialHTTPRead(),
"dnacenter_global_credential_cli": resourceGlobalCredentialCli(),
"dnacenter_pnp_device_authorize": resourcePnpDeviceAuthorize(),
"dnacenter_assign_device_to_site": resourceAssignDeviceToSite(),
"dnacenter_transit_peer_network": resourceTransitPeerNetwork(),
Expand Down
211 changes: 11 additions & 200 deletions dnacenter/resource_application_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,68 +43,29 @@ func resourceApplicationSets() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{

"application_set": &schema.Schema{
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{

"id_ref": &schema.Schema{
Description: `Id Ref`,
Type: schema.TypeString,
Computed: true,
},
},
},
},

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

"indicative_network_identity": &schema.Schema{
"identity_source": &schema.Schema{
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{

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

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

"lower_port": &schema.Schema{
Description: `lowerPort`,
Type: schema.TypeInt,
Computed: true,
},

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

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

"upper_port": &schema.Schema{
Description: `upperPort`,
Type: schema.TypeInt,
Computed: true,
},
},
},
},
Expand All @@ -114,162 +75,6 @@ func resourceApplicationSets() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},

"network_applications": &schema.Schema{
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{

"app_protocol": &schema.Schema{
Description: `App Protocol`,
Type: schema.TypeString,
Computed: true,
},

"application_sub_type": &schema.Schema{
Description: `Application Sub Type`,
Type: schema.TypeString,
Computed: true,
},

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

"category_id": &schema.Schema{
Description: `Category Id`,
Type: schema.TypeString,
Computed: true,
},

"display_name": &schema.Schema{
Description: `Display Name`,
Type: schema.TypeString,
Computed: true,
},

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

"engine_id": &schema.Schema{
Description: `Engine Id`,
Type: schema.TypeString,
Computed: true,
},

"help_string": &schema.Schema{
Description: `Help String`,
Type: schema.TypeString,
Computed: true,
},

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

"ignore_conflict": &schema.Schema{
Description: `Ignore Conflict`,
Type: schema.TypeString,
Computed: true,
},

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

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

"popularity": &schema.Schema{
Description: `Popularity`,
Type: schema.TypeInt,
Computed: true,
},

"rank": &schema.Schema{
Description: `Rank`,
Type: schema.TypeInt,
Computed: true,
},

"server_name": &schema.Schema{
Description: `Server Name`,
Type: schema.TypeString,
Computed: true,
},

"traffic_class": &schema.Schema{
Description: `Traffic Class`,
Type: schema.TypeString,
Computed: true,
},

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

"network_identity": &schema.Schema{
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{

"display_name": &schema.Schema{
Description: `Display Name`,
Type: schema.TypeString,
Computed: true,
},

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

"lower_port": &schema.Schema{
Description: `Lower Port`,
Type: schema.TypeInt,
Computed: true,
},

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

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

"upper_port": &schema.Schema{
Description: `Upper Port`,
Type: schema.TypeInt,
Computed: true,
},
},
},
},
},
},
},
Expand Down Expand Up @@ -390,7 +195,13 @@ func resourceApplicationSetsRead(ctx context.Context, d *schema.ResourceData, m

response1, err := searchApplicationPolicyGetApplicationSets(m, queryParams1)

if err != nil || response1 == nil {
if err != nil {
diags = append(diags, diagError(
"Failure when setting GetApplicationSets search response",
err))
return diags
}
if response1 == nil {
d.SetId("")
return diags
}
Expand Down
Loading

0 comments on commit 4f18b72

Please sign in to comment.