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 22.1.6 #570

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ linters:
enable:
- errcheck
- gofmt
- goimports
# - goimports
- gosimple
- govet
- ineffassign
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build: fmtcheck

build13: GOOS=$(shell go env GOOS)
build13: GOARCH=$(shell go env GOARCH)
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(AVI_PROVIDER_NAMESPACE)/22.1.6/$(GOOS)_$(GOARCH)
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(AVI_PROVIDER_NAMESPACE)/22.1.5/$(GOOS)_$(GOARCH)
build13: fmtcheck
@echo "==> Installing plugin to $(DESTINATION)"
@mkdir -p $(DESTINATION)
Expand Down
3 changes: 3 additions & 0 deletions avi/data_source_avi_applicationprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ resource "avi_applicationprofile" "testApplicationProfile" {
use_app_keepalive_timeout = false
}
preserve_client_port = false
l4_ssl_profile {
ssl_stream_idle_timeout = "3600"
}
}

data "avi_applicationprofile" "testApplicationProfile" {
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_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ data "avi_useraccountprofile" "default-user-account-profile" {
}
resource "avi_user" "testUser" {
access {
role_ref = data.avi_role.default-system-admin-role.id
role_ref = "${data.avi_tenant.default_tenant.id}/role/${element(split("/", data.avi_role.default-system-admin-role.id),5)}"
tenant_ref = data.avi_tenant.default_tenant.id
all_tenants = false
}
Expand Down
5 changes: 5 additions & 0 deletions avi/datasource_avi_albservicesjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ func dataSourceAviALBServicesJob() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"status_update_time": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceTimeStampSchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Expand Down
4 changes: 4 additions & 0 deletions avi/datasource_avi_alertscriptconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func dataSourceAviAlertScriptConfig() *schema.Resource {
Optional: true,
Computed: true,
},
"timeout": {
Type: schema.TypeString,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Expand Down
12 changes: 12 additions & 0 deletions avi/datasource_avi_controllerproperties.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,18 @@ func dataSourceAviControllerProperties() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"cloud_discovery_interval": {
Type: schema.TypeString,
Computed: true,
},
"cloud_reconcile": {
Type: schema.TypeString,
Computed: true,
},
"cloud_reconcile_interval": {
Type: schema.TypeString,
Computed: true,
},
"cluster_ip_gratuitous_arp_period": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -316,6 +324,10 @@ func dataSourceAviControllerProperties() *schema.Resource {
Computed: true,
Elem: &schema.Schema{Type: schema.TypeInt},
},
"system_report_limit": {
Type: schema.TypeString,
Computed: true,
},
"unresponsive_se_reboot": {
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_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_systemconfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func dataSourceAviSystemConfiguration() *schema.Resource {
Computed: true,
Elem: ResourceProxyConfigurationSchema(),
},
"sddcmanager_fqdn": {
Type: schema.TypeString,
Computed: true,
},
"secure_channel_configuration": {
Type: schema.TypeSet,
Computed: true,
Expand Down
69 changes: 69 additions & 0 deletions avi/datasource_avi_systemreport.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// 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 dataSourceAviSystemReport() *schema.Resource {
return &schema.Resource{
Read: ResourceAviSystemReportRead,
Schema: map[string]*schema.Schema{
"archive_ref": {
Type: schema.TypeString,
Computed: true,
},
"controller_patch_image_ref": {
Type: schema.TypeString,
Computed: true,
},
"downloadable": {
Type: schema.TypeString,
Computed: true,
},
"events": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceReportEventSchema(),
},
"image_ref": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"readiness_reports": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceReportDetailSchema(),
},
"se_patch_image_ref": {
Type: schema.TypeString,
Computed: true,
},
"state": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceReportOpsStateSchema(),
},
"summary": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceReportSummarySchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
}
5 changes: 5 additions & 0 deletions avi/datasource_avi_upgradestatusinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ func dataSourceAviUpgradeStatusInfo() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"system_report_refs": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"tasks_completed": {
Type: schema.TypeString,
Computed: true,
Expand Down
2 changes: 2 additions & 0 deletions avi/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func Provider() *schema.Provider {
"avi_upgradestatussummary": dataSourceAviUpgradeStatusSummary(),
"avi_licenseledgerdetails": dataSourceAviLicenseLedgerDetails(),
"avi_ssopolicy": dataSourceAviSSOPolicy(),
"avi_systemreport": dataSourceAviSystemReport(),
"avi_authprofile": dataSourceAviAuthProfile(),
"avi_authmappingprofile": dataSourceAviAuthMappingProfile(),
"avi_controllerproperties": dataSourceAviControllerProperties(),
Expand Down Expand Up @@ -200,6 +201,7 @@ func Provider() *schema.Provider {
"avi_upgradestatussummary": resourceAviUpgradeStatusSummary(),
"avi_licenseledgerdetails": resourceAviLicenseLedgerDetails(),
"avi_ssopolicy": resourceAviSSOPolicy(),
"avi_systemreport": resourceAviSystemReport(),
"avi_authprofile": resourceAviAuthProfile(),
"avi_authmappingprofile": resourceAviAuthMappingProfile(),
"avi_controllerproperties": resourceAviControllerProperties(),
Expand Down
3 changes: 1 addition & 2 deletions avi/resource_avi_actiongroupconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceActionGroupConfigSchema() map[string]*schema.Schema {
Expand Down
3 changes: 1 addition & 2 deletions avi/resource_avi_albservicesconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceALBServicesConfigSchema() map[string]*schema.Schema {
Expand Down
3 changes: 1 addition & 2 deletions avi/resource_avi_albservicesfileupload.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceALBServicesFileUploadSchema() map[string]*schema.Schema {
Expand Down
9 changes: 7 additions & 2 deletions avi/resource_avi_albservicesjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceALBServicesJobSchema() map[string]*schema.Schema {
Expand Down Expand Up @@ -63,6 +62,12 @@ func ResourceALBServicesJobSchema() map[string]*schema.Schema {
Optional: true,
Default: "PENDING",
},
"status_update_time": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Elem: ResourceTimeStampSchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Expand Down
3 changes: 1 addition & 2 deletions avi/resource_avi_alertconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceAlertConfigSchema() map[string]*schema.Schema {
Expand Down
3 changes: 1 addition & 2 deletions avi/resource_avi_alertemailconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceAlertEmailConfigSchema() map[string]*schema.Schema {
Expand Down
9 changes: 7 additions & 2 deletions avi/resource_avi_alertscriptconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceAlertScriptConfigSchema() map[string]*schema.Schema {
Expand All @@ -31,6 +30,12 @@ func ResourceAlertScriptConfigSchema() map[string]*schema.Schema {
Optional: true,
Computed: true,
},
"timeout": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validateInteger,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Expand Down
3 changes: 1 addition & 2 deletions avi/resource_avi_alertsyslogconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
package avi

import (
"log"

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

func ResourceAlertSyslogConfigSchema() map[string]*schema.Schema {
Expand Down
Loading
Loading