From ac873420beacef8406098f67b1a5cd25762f1da2 Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 17 Sep 2021 13:10:30 -0500 Subject: [PATCH] update comment to generate downstreams (#5212) (#3633) Signed-off-by: Modular Magician --- .changelog/5212.txt | 3 +++ .../resource_access_context_manager_access_level_condition.go | 1 + ...source_access_context_manager_service_perimeter_resource.go | 1 + google-beta/resource_bigquery_dataset.go | 1 + google-beta/resource_bigquery_dataset_access.go | 1 + google-beta/resource_bigquery_job.go | 1 + google-beta/resource_bigquery_routine.go | 1 + google-beta/resource_bigtable_app_profile.go | 1 + google-beta/resource_cloud_run_domain_mapping.go | 1 + google-beta/resource_cloud_run_service.go | 1 + google-beta/resource_composer_environment.go | 1 + google-beta/resource_compute_backend_service.go | 3 +++ google-beta/resource_compute_disk.go | 1 + google-beta/resource_compute_instance_group_named_port.go | 1 + google-beta/resource_compute_network.go | 1 + google-beta/resource_compute_region_backend_service.go | 1 + google-beta/resource_compute_region_disk.go | 1 + google-beta/resource_compute_router_nat.go | 1 + google-beta/resource_compute_router_peer.go | 1 + google-beta/resource_compute_security_policy.go | 1 + google-beta/resource_compute_subnetwork.go | 1 + google-beta/resource_data_loss_prevention_stored_info_type.go | 1 + google-beta/resource_dataproc_cluster.go | 2 ++ google-beta/resource_dataproc_cluster_test.go | 2 ++ google-beta/resource_dns_managed_zone.go | 1 + google-beta/resource_gke_hub_feature_membership_test.go | 1 + google-beta/resource_monitoring_slo.go | 1 + google-beta/resource_pubsub_subscription.go | 1 + google-beta/resource_secret_manager_secret_version.go | 1 + google-beta/resource_sql_source_representation_instance.go | 1 + google-beta/resource_storage_bucket_test.go | 2 +- google-beta/resource_storage_hmac_key.go | 1 + 32 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .changelog/5212.txt diff --git a/.changelog/5212.txt b/.changelog/5212.txt new file mode 100644 index 0000000000..8ec013c069 --- /dev/null +++ b/.changelog/5212.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` diff --git a/google-beta/resource_access_context_manager_access_level_condition.go b/google-beta/resource_access_context_manager_access_level_condition.go index 3b36c9588a..12b6c8540f 100644 --- a/google-beta/resource_access_context_manager_access_level_condition.go +++ b/google-beta/resource_access_context_manager_access_level_condition.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func resourceAccessContextManagerAccessLevelCondition() *schema.Resource { diff --git a/google-beta/resource_access_context_manager_service_perimeter_resource.go b/google-beta/resource_access_context_manager_service_perimeter_resource.go index abc1ed184f..ae40c0bdf8 100644 --- a/google-beta/resource_access_context_manager_service_perimeter_resource.go +++ b/google-beta/resource_access_context_manager_service_perimeter_resource.go @@ -21,6 +21,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) func resourceAccessContextManagerServicePerimeterResource() *schema.Resource { diff --git a/google-beta/resource_bigquery_dataset.go b/google-beta/resource_bigquery_dataset.go index 4fb48010c0..4b467d7ff8 100644 --- a/google-beta/resource_bigquery_dataset.go +++ b/google-beta/resource_bigquery_dataset.go @@ -23,6 +23,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) const datasetIdRegexp = `[0-9A-Za-z_]+` diff --git a/google-beta/resource_bigquery_dataset_access.go b/google-beta/resource_bigquery_dataset_access.go index 0725c4a9c4..6f2fe3fce1 100644 --- a/google-beta/resource_bigquery_dataset_access.go +++ b/google-beta/resource_bigquery_dataset_access.go @@ -22,6 +22,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) var bigqueryAccessRoleToPrimitiveMap = map[string]string{ diff --git a/google-beta/resource_bigquery_job.go b/google-beta/resource_bigquery_job.go index a075981089..e23860ed89 100644 --- a/google-beta/resource_bigquery_job.go +++ b/google-beta/resource_bigquery_job.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) var ( diff --git a/google-beta/resource_bigquery_routine.go b/google-beta/resource_bigquery_routine.go index dda6333cae..740b91a699 100644 --- a/google-beta/resource_bigquery_routine.go +++ b/google-beta/resource_bigquery_routine.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func resourceBigQueryRoutine() *schema.Resource { diff --git a/google-beta/resource_bigtable_app_profile.go b/google-beta/resource_bigtable_app_profile.go index cc552eab61..7289e014de 100644 --- a/google-beta/resource_bigtable_app_profile.go +++ b/google-beta/resource_bigtable_app_profile.go @@ -22,6 +22,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/bigtableadmin/v2" ) func resourceBigtableAppProfile() *schema.Resource { diff --git a/google-beta/resource_cloud_run_domain_mapping.go b/google-beta/resource_cloud_run_domain_mapping.go index 58485a7941..37526d8b63 100644 --- a/google-beta/resource_cloud_run_domain_mapping.go +++ b/google-beta/resource_cloud_run_domain_mapping.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) var domainMappingGoogleProvidedLabels = []string{ diff --git a/google-beta/resource_cloud_run_service.go b/google-beta/resource_cloud_run_service.go index f9ad8d7415..d2da4408db 100644 --- a/google-beta/resource_cloud_run_service.go +++ b/google-beta/resource_cloud_run_service.go @@ -25,6 +25,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) func revisionNameCustomizeDiff(_ context.Context, diff *schema.ResourceDiff, v interface{}) error { diff --git a/google-beta/resource_composer_environment.go b/google-beta/resource_composer_environment.go index aec69f3686..afbc68c233 100644 --- a/google-beta/resource_composer_environment.go +++ b/google-beta/resource_composer_environment.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/go-version" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + composer "google.golang.org/api/composer/v1beta1" ) const ( diff --git a/google-beta/resource_compute_backend_service.go b/google-beta/resource_compute_backend_service.go index e91c631ec9..3f191aabce 100644 --- a/google-beta/resource_compute_backend_service.go +++ b/google-beta/resource_compute_backend_service.go @@ -23,8 +23,11 @@ import ( "strconv" "time" + "github.com/hashicorp/errwrap" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/compute/v1" + "google.golang.org/api/googleapi" ) // Whether the backend is a global or regional NEG diff --git a/google-beta/resource_compute_disk.go b/google-beta/resource_compute_disk.go index 87864fb2cc..fbed6f77f9 100644 --- a/google-beta/resource_compute_disk.go +++ b/google-beta/resource_compute_disk.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) // Is the new disk size smaller than the old one? diff --git a/google-beta/resource_compute_instance_group_named_port.go b/google-beta/resource_compute_instance_group_named_port.go index 9f96246d84..cb820ccbb9 100644 --- a/google-beta/resource_compute_instance_group_named_port.go +++ b/google-beta/resource_compute_instance_group_named_port.go @@ -22,6 +22,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) func resourceComputeInstanceGroupNamedPort() *schema.Resource { diff --git a/google-beta/resource_compute_network.go b/google-beta/resource_compute_network.go index edeb263732..905252d433 100644 --- a/google-beta/resource_compute_network.go +++ b/google-beta/resource_compute_network.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func resourceComputeNetwork() *schema.Resource { diff --git a/google-beta/resource_compute_region_backend_service.go b/google-beta/resource_compute_region_backend_service.go index 1429292a11..19c8472ad8 100644 --- a/google-beta/resource_compute_region_backend_service.go +++ b/google-beta/resource_compute_region_backend_service.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) // Fields in "backends" that are not allowed for non-managed backend services diff --git a/google-beta/resource_compute_region_disk.go b/google-beta/resource_compute_region_disk.go index e242bd700b..a70565efcc 100644 --- a/google-beta/resource_compute_region_disk.go +++ b/google-beta/resource_compute_region_disk.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) func resourceComputeRegionDisk() *schema.Resource { diff --git a/google-beta/resource_compute_router_nat.go b/google-beta/resource_compute_router_nat.go index f4e0d8071b..dca4d08a91 100644 --- a/google-beta/resource_compute_router_nat.go +++ b/google-beta/resource_compute_router_nat.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func resourceNameSetFromSelfLinkSet(v interface{}) *schema.Set { diff --git a/google-beta/resource_compute_router_peer.go b/google-beta/resource_compute_router_peer.go index 13c70d1ef2..1fb9539f99 100644 --- a/google-beta/resource_compute_router_peer.go +++ b/google-beta/resource_compute_router_peer.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func resourceComputeRouterBgpPeer() *schema.Resource { diff --git a/google-beta/resource_compute_security_policy.go b/google-beta/resource_compute_security_policy.go index f6bc9bf2e5..f842e34033 100644 --- a/google-beta/resource_compute_security_policy.go +++ b/google-beta/resource_compute_security_policy.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/errwrap" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + compute "google.golang.org/api/compute/v0.beta" ) func resourceComputeSecurityPolicy() *schema.Resource { diff --git a/google-beta/resource_compute_subnetwork.go b/google-beta/resource_compute_subnetwork.go index 4ae5236f37..543938bbe6 100644 --- a/google-beta/resource_compute_subnetwork.go +++ b/google-beta/resource_compute_subnetwork.go @@ -22,6 +22,7 @@ import ( "reflect" "time" + "github.com/apparentlymart/go-cidr/cidr" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" diff --git a/google-beta/resource_data_loss_prevention_stored_info_type.go b/google-beta/resource_data_loss_prevention_stored_info_type.go index 40e64e9101..8c8df234cd 100644 --- a/google-beta/resource_data_loss_prevention_stored_info_type.go +++ b/google-beta/resource_data_loss_prevention_stored_info_type.go @@ -22,6 +22,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) func resourceDataLossPreventionStoredInfoType() *schema.Resource { diff --git a/google-beta/resource_dataproc_cluster.go b/google-beta/resource_dataproc_cluster.go index b409489d64..5988c4d0f3 100644 --- a/google-beta/resource_dataproc_cluster.go +++ b/google-beta/resource_dataproc_cluster.go @@ -11,6 +11,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + dataproc "google.golang.org/api/dataproc/v1beta2" ) var ( diff --git a/google-beta/resource_dataproc_cluster_test.go b/google-beta/resource_dataproc_cluster_test.go index 25e813b876..798461eee3 100644 --- a/google-beta/resource_dataproc_cluster_test.go +++ b/google-beta/resource_dataproc_cluster_test.go @@ -14,6 +14,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "google.golang.org/api/googleapi" + + dataproc "google.golang.org/api/dataproc/v1beta2" ) func TestDataprocExtractInitTimeout(t *testing.T) { diff --git a/google-beta/resource_dns_managed_zone.go b/google-beta/resource_dns_managed_zone.go index 6cc1425d01..c8d77fde7b 100644 --- a/google-beta/resource_dns_managed_zone.go +++ b/google-beta/resource_dns_managed_zone.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/dns/v1" ) func resourceDNSManagedZone() *schema.Resource { diff --git a/google-beta/resource_gke_hub_feature_membership_test.go b/google-beta/resource_gke_hub_feature_membership_test.go index ca20f019e9..9e1f2ea64d 100644 --- a/google-beta/resource_gke_hub_feature_membership_test.go +++ b/google-beta/resource_gke_hub_feature_membership_test.go @@ -5,6 +5,7 @@ import ( "fmt" "testing" + "github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl" gkehub "github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/gkehub/beta" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/google-beta/resource_monitoring_slo.go b/google-beta/resource_monitoring_slo.go index c22d32d9d8..a3ba736c07 100644 --- a/google-beta/resource_monitoring_slo.go +++ b/google-beta/resource_monitoring_slo.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func validateMonitoringSloGoal(v interface{}, k string) (warnings []string, errors []error) { diff --git a/google-beta/resource_pubsub_subscription.go b/google-beta/resource_pubsub_subscription.go index 0b376ac58b..cc8ac003d2 100644 --- a/google-beta/resource_pubsub_subscription.go +++ b/google-beta/resource_pubsub_subscription.go @@ -24,6 +24,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) func comparePubsubSubscriptionExpirationPolicy(_, old, new string, _ *schema.ResourceData) bool { diff --git a/google-beta/resource_secret_manager_secret_version.go b/google-beta/resource_secret_manager_secret_version.go index 8ae6181063..82d2939b9a 100644 --- a/google-beta/resource_secret_manager_secret_version.go +++ b/google-beta/resource_secret_manager_secret_version.go @@ -24,6 +24,7 @@ import ( "time" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "google.golang.org/api/googleapi" ) func resourceSecretManagerSecretVersionUpdate(d *schema.ResourceData, meta interface{}) error { diff --git a/google-beta/resource_sql_source_representation_instance.go b/google-beta/resource_sql_source_representation_instance.go index 9c0eb4a96f..8847d77c9f 100644 --- a/google-beta/resource_sql_source_representation_instance.go +++ b/google-beta/resource_sql_source_representation_instance.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func resourceSQLSourceRepresentationInstance() *schema.Resource { diff --git a/google-beta/resource_storage_bucket_test.go b/google-beta/resource_storage_bucket_test.go index 46128bd993..a4a9d8fb1e 100644 --- a/google-beta/resource_storage_bucket_test.go +++ b/google-beta/resource_storage_bucket_test.go @@ -131,7 +131,7 @@ func TestAccStorageBucket_customAttributes(t *testing.T) { } func TestAccStorageBucket_lifecycleRulesMultiple(t *testing.T) { - // Multiple fine-grained resources + // multiple fine-grained resources skipIfVcr(t) t.Parallel() diff --git a/google-beta/resource_storage_hmac_key.go b/google-beta/resource_storage_hmac_key.go index 41ce7b3189..a53de79a2d 100644 --- a/google-beta/resource_storage_hmac_key.go +++ b/google-beta/resource_storage_hmac_key.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "google.golang.org/api/googleapi" ) func resourceStorageHmacKey() *schema.Resource {