Skip to content

Commit

Permalink
Add partition in provider.go resource declarations for tpgtool gene…
Browse files Browse the repository at this point in the history
…rated resources (#5148) (#3572)

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Aug 27, 2021
1 parent 48dd6ec commit 373da43
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .changelog/5148.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
24 changes: 14 additions & 10 deletions google-beta/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1258,20 +1258,15 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_workflows_workflow": resourceWorkflowsWorkflow(),
},
map[string]*schema.Resource{
"google_assured_workloads_workload": resourceAssuredWorkloadsWorkload(),
"google_app_engine_application": resourceAppEngineApplication(),
"google_bigquery_table": resourceBigQueryTable(),
"google_bigtable_gc_policy": resourceBigtableGCPolicy(),
"google_bigtable_instance": resourceBigtableInstance(),
"google_bigtable_table": resourceBigtableTable(),
"google_billing_subaccount": resourceBillingSubaccount(),
"google_cloudbuild_worker_pool": resourceCloudbuildWorkerPool(),
"google_cloudfunctions_function": resourceCloudFunctionsFunction(),
"google_composer_environment": resourceComposerEnvironment(),
"google_compute_attached_disk": resourceComputeAttachedDisk(),
"google_compute_firewall_policy_association": resourceComputeFirewallPolicyAssociation(),
"google_compute_firewall_policy": resourceComputeFirewallPolicy(),
"google_compute_firewall_policy_rule": resourceComputeFirewallPolicyRule(),
"google_compute_instance": resourceComputeInstance(),
"google_compute_instance_from_machine_image": resourceComputeInstanceFromMachineImage(),
"google_compute_instance_from_template": resourceComputeInstanceFromTemplate(),
Expand All @@ -1295,14 +1290,9 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_dataflow_flex_template_job": resourceDataflowFlexTemplateJob(),
"google_dataproc_cluster": resourceDataprocCluster(),
"google_dataproc_job": resourceDataprocJob(),
"google_dataproc_workflow_template": resourceDataprocWorkflowTemplate(),
"google_endpoints_service": resourceEndpointsService(),
"google_eventarc_trigger": resourceEventarcTrigger(),
"google_folder": resourceGoogleFolder(),
"google_folder_organization_policy": resourceGoogleFolderOrganizationPolicy(),
"google_privateca_certificate_template": resourcePrivatecaCertificateTemplate(),
"google_gke_hub_feature": resourceGkeHubFeature(),
"google_gke_hub_feature_membership": resourceGkeHubFeatureMembership(),
"google_logging_billing_account_sink": resourceLoggingBillingAccountSink(),
"google_logging_billing_account_exclusion": ResourceLoggingExclusion(BillingAccountLoggingExclusionSchema, NewBillingAccountLoggingExclusionUpdater, billingAccountLoggingExclusionIdParseFunc),
"google_logging_billing_account_bucket_config": ResourceLoggingBillingAccountBucketConfig(),
Expand Down Expand Up @@ -1341,6 +1331,20 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_storage_notification": resourceStorageNotification(),
"google_storage_transfer_job": resourceStorageTransferJob(),
},
// resources implemented within tpgtools
map[string]*schema.Resource{
"google_assured_workloads_workload": resourceAssuredWorkloadsWorkload(),
"google_cloudbuild_worker_pool": resourceCloudbuildWorkerPool(),
"google_compute_firewall_policy_association": resourceComputeFirewallPolicyAssociation(),
"google_compute_firewall_policy": resourceComputeFirewallPolicy(),
"google_compute_firewall_policy_rule": resourceComputeFirewallPolicyRule(),
"google_dataproc_workflow_template": resourceDataprocWorkflowTemplate(),
"google_eventarc_trigger": resourceEventarcTrigger(),
"google_gke_hub_feature": resourceGkeHubFeature(),
"google_gke_hub_feature_membership": resourceGkeHubFeatureMembership(),
"google_privateca_certificate_template": resourcePrivatecaCertificateTemplate(),
},
// ------------------------------------
map[string]*schema.Resource{
"google_bigtable_instance_iam_binding": ResourceIamBinding(IamBigtableInstanceSchema, NewBigtableInstanceUpdater, BigtableInstanceIdParseFunc),
"google_bigtable_instance_iam_member": ResourceIamMember(IamBigtableInstanceSchema, NewBigtableInstanceUpdater, BigtableInstanceIdParseFunc),
Expand Down
3 changes: 2 additions & 1 deletion google-beta/resource_dataproc_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

dataproc "google.golang.org/api/dataproc/v1beta2"
"google.golang.org/api/googleapi"

dataproc "google.golang.org/api/dataproc/v1beta2"
)

func TestDataprocExtractInitTimeout(t *testing.T) {
Expand Down

0 comments on commit 373da43

Please sign in to comment.