in mmv1/provider/terraform_tgc.go [344:436]
func (tgc TerraformGoogleConversion) CopyCommonFiles(outputFolder string, generateCode, generateDocs bool) {
log.Printf("Copying common files for tgc.")
if !generateCode {
return
}
tgc.CopyFileList(outputFolder, retrieveFullListOfTestTilesWithLocation())
tgc.CopyFileList(outputFolder, retrieveTestSourceCodeWithLocation(".go"))
resourceConverters := map[string]string{
"converters/google/resources/cai/constants.go": "third_party/tgc/cai/constants.go",
"converters/google/resources/constants.go": "third_party/tgc/constants.go",
"converters/google/resources/cai.go": "third_party/tgc/cai.go",
"converters/google/resources/cai/cai.go": "third_party/tgc/cai/cai.go",
"converters/google/resources/cai/cai_test.go": "third_party/tgc/cai/cai_test.go",
"converters/google/resources/services/resourcemanager/org_policy_policy.go": "third_party/tgc/services/resourcemanager/org_policy_policy.go",
"converters/google/resources/getconfig.go": "third_party/tgc/getconfig.go",
"converters/google/resources/services/resourcemanager/folder.go": "third_party/tgc/services/resourcemanager/folder.go",
"converters/google/resources/getconfig_test.go": "third_party/tgc/getconfig_test.go",
"converters/google/resources/cai/json_map.go": "third_party/tgc/cai/json_map.go",
"converters/google/resources/cai/string_helpers.go": "third_party/tgc/cai/string_helpers.go",
"converters/google/resources/services/resourcemanager/project.go": "third_party/tgc/services/resourcemanager/project.go",
"converters/google/resources/services/sql/sql_database_instance.go": "third_party/tgc/services/sql/sql_database_instance.go",
"converters/google/resources/services/storage/storage_bucket.go": "third_party/tgc/services/storage/storage_bucket.go",
"converters/google/resources/services/cloudfunctions/cloudfunctions_function.go": "third_party/tgc/services/cloudfunctions/cloudfunctions_function.go",
"converters/google/resources/services/cloudfunctions/cloudfunctions_cloud_function.go": "third_party/tgc/services/cloudfunctions/cloudfunctions_cloud_function.go",
"converters/google/resources/services/bigquery/bigquery_table.go": "third_party/tgc/services/bigquery/bigquery_table.go",
"converters/google/resources/services/bigtable/bigtable_cluster.go": "third_party/tgc/services/bigtable/bigtable_cluster.go",
"converters/google/resources/services/bigtable/bigtable_instance.go": "third_party/tgc/services/bigtable/bigtable_instance.go",
"converters/google/resources/cai/iam_helpers.go": "third_party/tgc/cai/iam_helpers.go",
"converters/google/resources/cai/iam_helpers_test.go": "third_party/tgc/cai/iam_helpers_test.go",
"converters/google/resources/services/resourcemanager/organization_iam.go": "third_party/tgc/services/resourcemanager/organization_iam.go",
"converters/google/resources/services/resourcemanager/project_iam.go": "third_party/tgc/services/resourcemanager/project_iam.go",
"converters/google/resources/services/resourcemanager/project_organization_policy.go": "third_party/tgc/services/resourcemanager/project_organization_policy.go",
"converters/google/resources/services/resourcemanager/folder_organization_policy.go": "third_party/tgc/services/resourcemanager/folder_organization_policy.go",
"converters/google/resources/services/resourcemanager/folder_iam.go": "third_party/tgc/services/resourcemanager/folder_iam.go",
"converters/google/resources/services/container/container.go": "third_party/tgc/services/container/container.go",
"converters/google/resources/services/resourcemanager/project_service.go": "third_party/tgc/services/resourcemanager/project_service.go",
"converters/google/resources/services/monitoring/monitoring_slo_helper.go": "third_party/tgc/services/monitoring/monitoring_slo_helper.go",
"converters/google/resources/services/resourcemanager/service_account.go": "third_party/tgc/services/resourcemanager/service_account.go",
"converters/google/resources/services/compute/image.go": "third_party/terraform/services/compute/image.go",
"converters/google/resources/services/compute/disk_type.go": "third_party/terraform/services/compute/disk_type.go",
"converters/google/resources/services/kms/kms_utils.go": "third_party/terraform/services/kms/kms_utils.go",
"converters/google/resources/services/sourcerepo/source_repo_utils.go": "third_party/terraform/services/sourcerepo/source_repo_utils.go",
"converters/google/resources/services/pubsub/pubsub_utils.go": "third_party/terraform/services/pubsub/pubsub_utils.go",
"converters/google/resources/services/resourcemanager/iam_organization.go": "third_party/terraform/services/resourcemanager/iam_organization.go",
"converters/google/resources/services/resourcemanager/iam_folder.go": "third_party/terraform/services/resourcemanager/iam_folder.go",
"converters/google/resources/services/resourcemanager/iam_project.go": "third_party/terraform/services/resourcemanager/iam_project.go",
"converters/google/resources/services/privateca/privateca_utils.go": "third_party/terraform/services/privateca/privateca_utils.go",
"converters/google/resources/services/bigquery/iam_bigquery_dataset.go": "third_party/terraform/services/bigquery/iam_bigquery_dataset.go",
"converters/google/resources/services/bigquery/bigquery_dataset_iam.go": "third_party/tgc/services/bigquery/bigquery_dataset_iam.go",
"converters/google/resources/services/compute/compute_security_policy.go": "third_party/tgc/services/compute/compute_security_policy.go",
"converters/google/resources/services/eventarc/eventarc_utils.go": "third_party/terraform/services/eventarc/eventarc_utils.go",
"converters/google/resources/services/kms/kms_key_ring_iam.go": "third_party/tgc/services/kms/kms_key_ring_iam.go",
"converters/google/resources/services/kms/kms_crypto_key_iam.go": "third_party/tgc/services/kms/kms_crypto_key_iam.go",
"converters/google/resources/services/resourcemanager/project_iam_custom_role.go": "third_party/tgc/services/resourcemanager/project_iam_custom_role.go",
"converters/google/resources/services/resourcemanager/organization_iam_custom_role.go": "third_party/tgc/services/resourcemanager/organization_iam_custom_role.go",
"converters/google/resources/services/pubsub/iam_pubsub_subscription.go": "third_party/terraform/services/pubsub/iam_pubsub_subscription.go",
"converters/google/resources/services/pubsub/pubsub_subscription_iam.go": "third_party/tgc/services/pubsub/pubsub_subscription_iam.go",
"converters/google/resources/services/spanner/iam_spanner_database.go": "third_party/terraform/services/spanner/iam_spanner_database.go",
"converters/google/resources/services/spanner/spanner_database_iam.go": "third_party/tgc/services/spanner/spanner_database_iam.go",
"converters/google/resources/services/spanner/iam_spanner_instance.go": "third_party/terraform/services/spanner/iam_spanner_instance.go",
"converters/google/resources/services/spanner/spanner_instance_iam.go": "third_party/tgc/services/spanner/spanner_instance_iam.go",
"converters/google/resources/services/storage/storage_bucket_iam.go": "third_party/tgc/services/storage/storage_bucket_iam.go",
"converters/google/resources/services/resourcemanager/organization_policy.go": "third_party/tgc/services/resourcemanager/organization_policy.go",
"converters/google/resources/services/storage/iam_storage_bucket.go": "third_party/tgc/services/storage/iam_storage_bucket.go",
"ancestrymanager/ancestrymanager.go": "third_party/tgc/ancestrymanager/ancestrymanager.go",
"ancestrymanager/ancestrymanager_test.go": "third_party/tgc/ancestrymanager/ancestrymanager_test.go",
"ancestrymanager/ancestryutil.go": "third_party/tgc/ancestrymanager/ancestryutil.go",
"ancestrymanager/ancestryutil_test.go": "third_party/tgc/ancestrymanager/ancestryutil_test.go",
"converters/google/convert.go": "third_party/tgc/convert.go",
"converters/google/convert_test.go": "third_party/tgc/convert_test.go",
"tfdata/fake_resource_data.go": "third_party/tgc/tfdata/fake_resource_data.go",
"tfdata/fake_resource_data_test.go": "third_party/tgc/tfdata/fake_resource_data_test.go",
"converters/google/resources/services/compute/compute_instance_group.go": "third_party/tgc/services/compute/compute_instance_group.go",
"converters/google/resources/services/dataflow/job.go": "third_party/tgc/services/dataflow/job.go",
"converters/google/resources/services/resourcemanager/service_account_key.go": "third_party/tgc/services/resourcemanager/service_account_key.go",
"converters/google/resources/services/compute/compute_target_pool.go": "third_party/tgc/services/compute/compute_target_pool.go",
"converters/google/resources/services/dataproc/dataproc_cluster.go": "third_party/tgc/services/dataproc/dataproc_cluster.go",
"converters/google/resources/services/composer/composer_environment.go": "third_party/tgc/services/composer/composer_environment.go",
"converters/google/resources/services/compute/commitment.go": "third_party/tgc/services/compute/commitment.go",
"converters/google/resources/services/firebase/firebase_project.go": "third_party/tgc/services/firebase/firebase_project.go",
"converters/google/resources/services/appengine/appengine_application.go": "third_party/tgc/services/appengine/appengine_application.go",
"converters/google/resources/services/apikeys/apikeys_key.go": "third_party/tgc/services/apikeys/apikeys_key.go",
"converters/google/resources/services/logging/logging_folder_bucket_config.go": "third_party/tgc/services/logging/logging_folder_bucket_config.go",
"converters/google/resources/services/logging/logging_organization_bucket_config.go": "third_party/tgc/services/logging/logging_organization_bucket_config.go",
"converters/google/resources/services/logging/logging_project_bucket_config.go": "third_party/tgc/services/logging/logging_project_bucket_config.go",
"converters/google/resources/services/logging/logging_billing_account_bucket_config.go": "third_party/tgc/services/logging/logging_billing_account_bucket_config.go",
"converters/google/resources/services/appengine/appengine_standard_version.go": "third_party/tgc/services/appengine/appengine_standard_version.go",
}
tgc.CopyFileList(outputFolder, resourceConverters)
}