From 19e2f2071e76c52f93d5c512a1d1b7800ed70ece Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 17 Sep 2021 18:10:23 +0000 Subject: [PATCH] update comment to generate downstreams (#5212) 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/resource_bigquery_dataset.go | 1 + google/resource_bigquery_dataset_access.go | 1 + google/resource_bigquery_job.go | 1 + google/resource_bigquery_routine.go | 1 + google/resource_bigtable_app_profile.go | 1 + google/resource_cloud_run_domain_mapping.go | 1 + google/resource_cloud_run_service.go | 1 + google/resource_composer_environment.go | 1 + google/resource_compute_backend_service.go | 3 +++ google/resource_compute_disk.go | 1 + google/resource_compute_instance_group_named_port.go | 1 + google/resource_compute_network.go | 1 + google/resource_compute_region_backend_service.go | 1 + google/resource_compute_region_disk.go | 1 + google/resource_compute_router_nat.go | 1 + google/resource_compute_router_peer.go | 1 + google/resource_compute_subnetwork.go | 1 + google/resource_data_loss_prevention_stored_info_type.go | 1 + google/resource_dns_managed_zone.go | 1 + google/resource_monitoring_slo.go | 1 + google/resource_pubsub_subscription.go | 1 + google/resource_secret_manager_secret_version.go | 1 + google/resource_sql_source_representation_instance.go | 1 + google/resource_storage_bucket_test.go | 2 +- google/resource_storage_hmac_key.go | 1 + 28 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .changelog/5212.txt diff --git a/.changelog/5212.txt b/.changelog/5212.txt new file mode 100644 index 00000000000..8ec013c0699 --- /dev/null +++ b/.changelog/5212.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` diff --git a/google/resource_access_context_manager_access_level_condition.go b/google/resource_access_context_manager_access_level_condition.go index 3b36c9588ae..12b6c8540f5 100644 --- a/google/resource_access_context_manager_access_level_condition.go +++ b/google/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/resource_access_context_manager_service_perimeter_resource.go b/google/resource_access_context_manager_service_perimeter_resource.go index abc1ed184f3..ae40c0bdf83 100644 --- a/google/resource_access_context_manager_service_perimeter_resource.go +++ b/google/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/resource_bigquery_dataset.go b/google/resource_bigquery_dataset.go index 4fb48010c0f..4b467d7ff8e 100644 --- a/google/resource_bigquery_dataset.go +++ b/google/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/resource_bigquery_dataset_access.go b/google/resource_bigquery_dataset_access.go index 0725c4a9c46..6f2fe3fce13 100644 --- a/google/resource_bigquery_dataset_access.go +++ b/google/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/resource_bigquery_job.go b/google/resource_bigquery_job.go index a0759810894..e23860ed89e 100644 --- a/google/resource_bigquery_job.go +++ b/google/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/resource_bigquery_routine.go b/google/resource_bigquery_routine.go index dda6333cae9..740b91a699f 100644 --- a/google/resource_bigquery_routine.go +++ b/google/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/resource_bigtable_app_profile.go b/google/resource_bigtable_app_profile.go index cc552eab612..7289e014de1 100644 --- a/google/resource_bigtable_app_profile.go +++ b/google/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/resource_cloud_run_domain_mapping.go b/google/resource_cloud_run_domain_mapping.go index 58485a7941b..37526d8b633 100644 --- a/google/resource_cloud_run_domain_mapping.go +++ b/google/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/resource_cloud_run_service.go b/google/resource_cloud_run_service.go index e9cd03e6463..e23750d7006 100644 --- a/google/resource_cloud_run_service.go +++ b/google/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/resource_composer_environment.go b/google/resource_composer_environment.go index 2489bf4d169..7a9d37a9e3a 100644 --- a/google/resource_composer_environment.go +++ b/google/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/resource_compute_backend_service.go b/google/resource_compute_backend_service.go index c782bd4bd80..cdcdadbb915 100644 --- a/google/resource_compute_backend_service.go +++ b/google/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/resource_compute_disk.go b/google/resource_compute_disk.go index 058c2f7aaa9..6b808ab5b93 100644 --- a/google/resource_compute_disk.go +++ b/google/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/resource_compute_instance_group_named_port.go b/google/resource_compute_instance_group_named_port.go index 9f96246d845..cb820ccbb97 100644 --- a/google/resource_compute_instance_group_named_port.go +++ b/google/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/resource_compute_network.go b/google/resource_compute_network.go index edeb2637325..905252d4331 100644 --- a/google/resource_compute_network.go +++ b/google/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/resource_compute_region_backend_service.go b/google/resource_compute_region_backend_service.go index 89b762f5cfc..217f7fd6ef0 100644 --- a/google/resource_compute_region_backend_service.go +++ b/google/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/resource_compute_region_disk.go b/google/resource_compute_region_disk.go index fe9d5ebb4a0..35aba982a79 100644 --- a/google/resource_compute_region_disk.go +++ b/google/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/resource_compute_router_nat.go b/google/resource_compute_router_nat.go index f4e0d8071b8..dca4d08a91f 100644 --- a/google/resource_compute_router_nat.go +++ b/google/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/resource_compute_router_peer.go b/google/resource_compute_router_peer.go index 13c70d1ef23..1fb9539f990 100644 --- a/google/resource_compute_router_peer.go +++ b/google/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/resource_compute_subnetwork.go b/google/resource_compute_subnetwork.go index 4ae5236f37d..543938bbe62 100644 --- a/google/resource_compute_subnetwork.go +++ b/google/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/resource_data_loss_prevention_stored_info_type.go b/google/resource_data_loss_prevention_stored_info_type.go index 40e64e91017..8c8df234cd8 100644 --- a/google/resource_data_loss_prevention_stored_info_type.go +++ b/google/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/resource_dns_managed_zone.go b/google/resource_dns_managed_zone.go index 138b6cb573c..8ce04b88a85 100644 --- a/google/resource_dns_managed_zone.go +++ b/google/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/resource_monitoring_slo.go b/google/resource_monitoring_slo.go index c22d32d9d86..a3ba736c07a 100644 --- a/google/resource_monitoring_slo.go +++ b/google/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/resource_pubsub_subscription.go b/google/resource_pubsub_subscription.go index 0b376ac58b9..cc8ac003d29 100644 --- a/google/resource_pubsub_subscription.go +++ b/google/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/resource_secret_manager_secret_version.go b/google/resource_secret_manager_secret_version.go index 8ae6181063b..82d2939b9ad 100644 --- a/google/resource_secret_manager_secret_version.go +++ b/google/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/resource_sql_source_representation_instance.go b/google/resource_sql_source_representation_instance.go index 9c0eb4a96f4..8847d77c9f4 100644 --- a/google/resource_sql_source_representation_instance.go +++ b/google/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/resource_storage_bucket_test.go b/google/resource_storage_bucket_test.go index 46128bd993a..a4a9d8fb1e9 100644 --- a/google/resource_storage_bucket_test.go +++ b/google/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/resource_storage_hmac_key.go b/google/resource_storage_hmac_key.go index 41ce7b3189b..a53de79a2d9 100644 --- a/google/resource_storage_hmac_key.go +++ b/google/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 {