Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto updated assets for terraform 30.2.1 #590

Merged
merged 14 commits into from
May 6, 2024
Merged
2 changes: 1 addition & 1 deletion avi/data_source_avi_certificatemanagementprofile_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_cluster_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_customipamdnsprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceCustomIpamDnsProfileBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSCustomIpamDnsProfileConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_dnspolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceDnsPolicyBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSDnsPolicyConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_ipaddrgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAVIDataSourceIpAddrGroupBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSIpAddrGroupConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_ipamdnsproviderprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAVIDataSourceIpamDnsProviderProfileBasic(t *testing.T) {

}

// nolint
//nolint
const testAccAVIDSIpamDnsProviderProfileConfig = `
data "avi_tenant" "default_tenant"{
name= "admin"
Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_pool_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
2 changes: 1 addition & 1 deletion avi/data_source_avi_useraccount_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
21 changes: 16 additions & 5 deletions avi/datasource_avi_controllerproperties.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ func dataSourceAviControllerProperties() *schema.Resource {
return &schema.Resource{
Read: ResourceAviControllerPropertiesRead,
Schema: map[string]*schema.Schema{
"alert_manager_use_evms": {
Type: schema.TypeString,
Computed: true,
},
"allow_admin_network_updates": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -154,6 +158,18 @@ func dataSourceAviControllerProperties() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"event_manager_max_goroutines": {
Type: schema.TypeString,
Computed: true,
},
"event_manager_max_subscribers": {
Type: schema.TypeString,
Computed: true,
},
"event_manager_processing_time_threshold": {
Type: schema.TypeString,
Computed: true,
},
"false_positive_learning_config": {
Type: schema.TypeSet,
Computed: true,
Expand All @@ -171,11 +187,6 @@ func dataSourceAviControllerProperties() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"file_reference_mappings": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceFileReferenceMappingSchema(),
},
"fileobject_max_file_versions": {
Type: schema.TypeString,
Computed: true,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_customipamdnsprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviCustomIpamDnsProfile() *schema.Resource {
return &schema.Resource{
Read: ResourceAviCustomIpamDnsProfileRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_dnspolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviDnsPolicy() *schema.Resource {
return &schema.Resource{
Read: ResourceAviDnsPolicyRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_dynamicdnsrecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviDynamicDnsRecord() *schema.Resource {
return &schema.Resource{
Read: ResourceAviDynamicDnsRecordRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_fileservice.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_ipaddrgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviIpAddrGroup() *schema.Resource {
return &schema.Resource{
Read: ResourceAviIpAddrGroupRead,
Expand Down
2 changes: 1 addition & 1 deletion avi/datasource_avi_ipamdnsproviderprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

// nolint
//nolint
func dataSourceAviIpamDnsProviderProfile() *schema.Resource {
return &schema.Resource{
Read: ResourceAviIpamDnsProviderProfileRead,
Expand Down
4 changes: 4 additions & 0 deletions avi/datasource_avi_serviceenginegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ func dataSourceAviServiceEngineGroup() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"max_num_http_sessions_to_store": {
Type: schema.TypeString,
Computed: true,
},
"max_num_se_dps": {
Type: schema.TypeString,
Computed: true,
Expand Down
5 changes: 5 additions & 0 deletions avi/datasource_avi_systemreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ func dataSourceAviSystemReport() *schema.Resource {
Computed: true,
Elem: ResourceReportSummarySchema(),
},
"tasks": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceReportTaskSchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Expand Down
60 changes: 60 additions & 0 deletions avi/datasource_avi_taskjournal.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Mozilla Public License 2.0

package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

func dataSourceAviTaskJournal() *schema.Resource {
return &schema.Resource{
Read: ResourceAviTaskJournalRead,
Schema: map[string]*schema.Schema{
"errors": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceJournalErrorSchema(),
},
"image_ref": {
Type: schema.TypeString,
Computed: true,
},
"info": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceJournalInfoSchema(),
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"obj_cloud_ref": {
Type: schema.TypeString,
Computed: true,
},
"operation": {
Type: schema.TypeString,
Computed: true,
},
"patch_image_ref": {
Type: schema.TypeString,
Computed: true,
},
"summary": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceJournalSummarySchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
}
2 changes: 1 addition & 1 deletion avi/diff_suppress_func.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
2 changes: 2 additions & 0 deletions avi/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func Provider() *schema.Provider {
"avi_licenseledgerdetails": dataSourceAviLicenseLedgerDetails(),
"avi_ssopolicy": dataSourceAviSSOPolicy(),
"avi_systemreport": dataSourceAviSystemReport(),
"avi_taskjournal": dataSourceAviTaskJournal(),
"avi_authprofile": dataSourceAviAuthProfile(),
"avi_authmappingprofile": dataSourceAviAuthMappingProfile(),
"avi_serviceauthprofile": dataSourceAviServiceAuthProfile(),
Expand Down Expand Up @@ -219,6 +220,7 @@ func Provider() *schema.Provider {
"avi_licenseledgerdetails": resourceAviLicenseLedgerDetails(),
"avi_ssopolicy": resourceAviSSOPolicy(),
"avi_systemreport": resourceAviSystemReport(),
"avi_taskjournal": resourceAviTaskJournal(),
"avi_authprofile": resourceAviAuthProfile(),
"avi_authmappingprofile": resourceAviAuthMappingProfile(),
"avi_serviceauthprofile": resourceAviServiceAuthProfile(),
Expand Down
2 changes: 1 addition & 1 deletion avi/provider_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
2 changes: 1 addition & 1 deletion avi/resource_avi_alertsyslogconfig_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
2 changes: 1 addition & 1 deletion avi/resource_avi_certificatemanagementprofile_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* ========================================================================
* Copyright 2023 VMware, Inc. All rights reserved. VMware Confidential
* Copyright 2024 VMware, Inc. All rights reserved. VMware Confidential
* ========================================================================
*/

Expand Down
4 changes: 2 additions & 2 deletions avi/resource_avi_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func ResourceCloudSchema() map[string]*schema.Schema {
"dhcp_enabled": {
Type: schema.TypeString,
Optional: true,
Default: "false",
Default: "true",
ValidateFunc: validateBool,
},
"dns_provider_ref": {
Expand Down Expand Up @@ -112,7 +112,7 @@ func ResourceCloudSchema() map[string]*schema.Schema {
"ip6_autocfg_enabled": {
Type: schema.TypeString,
Optional: true,
Default: "false",
Default: "true",
ValidateFunc: validateBool,
},
"ipam_provider_ref": {
Expand Down
29 changes: 24 additions & 5 deletions avi/resource_avi_controllerproperties.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import (

func ResourceControllerPropertiesSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"alert_manager_use_evms": {
Type: schema.TypeString,
Optional: true,
Default: "false",
ValidateFunc: validateBool,
},
"allow_admin_network_updates": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -226,6 +232,24 @@ func ResourceControllerPropertiesSchema() map[string]*schema.Schema {
Default: "false",
ValidateFunc: validateBool,
},
"event_manager_max_goroutines": {
Type: schema.TypeString,
Optional: true,
Default: "8",
ValidateFunc: validateInteger,
},
"event_manager_max_subscribers": {
Type: schema.TypeString,
Optional: true,
Default: "5",
ValidateFunc: validateInteger,
},
"event_manager_processing_time_threshold": {
Type: schema.TypeString,
Optional: true,
Default: "4",
ValidateFunc: validateInteger,
},
"false_positive_learning_config": {
Type: schema.TypeSet,
Optional: true,
Expand All @@ -250,11 +274,6 @@ func ResourceControllerPropertiesSchema() map[string]*schema.Schema {
Default: "1440",
ValidateFunc: validateInteger,
},
"file_reference_mappings": {
Type: schema.TypeList,
Optional: true,
Elem: ResourceFileReferenceMappingSchema(),
},
"fileobject_max_file_versions": {
Type: schema.TypeString,
Optional: true,
Expand Down
Loading
Loading