Skip to content

Commit

Permalink
Migrate google_compute_firewall_policy_association resource from DCL …
Browse files Browse the repository at this point in the history
…to MMv1 (#12466) (#20744)

[upstream:613bdaee0c0243e40465a7b5497693b9720eeb85]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Dec 18, 2024
1 parent 686bd21 commit 833c19f
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 135 deletions.
3 changes: 3 additions & 0 deletions .changelog/12466.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
compute: `google_compute_firewall_policy_association` now uses MMv1 engine instead of DCL.
```
45 changes: 22 additions & 23 deletions google/provider/provider_dcl_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,26 @@ import (
)

var dclResources = map[string]*schema.Resource{
"google_apikeys_key": apikeys.ResourceApikeysKey(),
"google_assured_workloads_workload": assuredworkloads.ResourceAssuredWorkloadsWorkload(),
"google_cloudbuild_worker_pool": cloudbuild.ResourceCloudbuildWorkerPool(),
"google_clouddeploy_delivery_pipeline": clouddeploy.ResourceClouddeployDeliveryPipeline(),
"google_clouddeploy_target": clouddeploy.ResourceClouddeployTarget(),
"google_compute_firewall_policy": compute.ResourceComputeFirewallPolicy(),
"google_compute_firewall_policy_association": compute.ResourceComputeFirewallPolicyAssociation(),
"google_container_aws_cluster": containeraws.ResourceContainerAwsCluster(),
"google_container_aws_node_pool": containeraws.ResourceContainerAwsNodePool(),
"google_container_azure_client": containerazure.ResourceContainerAzureClient(),
"google_container_azure_cluster": containerazure.ResourceContainerAzureCluster(),
"google_container_azure_node_pool": containerazure.ResourceContainerAzureNodePool(),
"google_dataplex_asset": dataplex.ResourceDataplexAsset(),
"google_dataplex_lake": dataplex.ResourceDataplexLake(),
"google_dataplex_zone": dataplex.ResourceDataplexZone(),
"google_dataproc_workflow_template": dataproc.ResourceDataprocWorkflowTemplate(),
"google_eventarc_channel": eventarc.ResourceEventarcChannel(),
"google_eventarc_google_channel_config": eventarc.ResourceEventarcGoogleChannelConfig(),
"google_eventarc_trigger": eventarc.ResourceEventarcTrigger(),
"google_firebaserules_release": firebaserules.ResourceFirebaserulesRelease(),
"google_firebaserules_ruleset": firebaserules.ResourceFirebaserulesRuleset(),
"google_gke_hub_feature_membership": gkehub.ResourceGkeHubFeatureMembership(),
"google_recaptcha_enterprise_key": recaptchaenterprise.ResourceRecaptchaEnterpriseKey(),
"google_apikeys_key": apikeys.ResourceApikeysKey(),
"google_assured_workloads_workload": assuredworkloads.ResourceAssuredWorkloadsWorkload(),
"google_cloudbuild_worker_pool": cloudbuild.ResourceCloudbuildWorkerPool(),
"google_clouddeploy_delivery_pipeline": clouddeploy.ResourceClouddeployDeliveryPipeline(),
"google_clouddeploy_target": clouddeploy.ResourceClouddeployTarget(),
"google_compute_firewall_policy": compute.ResourceComputeFirewallPolicy(),
"google_container_aws_cluster": containeraws.ResourceContainerAwsCluster(),
"google_container_aws_node_pool": containeraws.ResourceContainerAwsNodePool(),
"google_container_azure_client": containerazure.ResourceContainerAzureClient(),
"google_container_azure_cluster": containerazure.ResourceContainerAzureCluster(),
"google_container_azure_node_pool": containerazure.ResourceContainerAzureNodePool(),
"google_dataplex_asset": dataplex.ResourceDataplexAsset(),
"google_dataplex_lake": dataplex.ResourceDataplexLake(),
"google_dataplex_zone": dataplex.ResourceDataplexZone(),
"google_dataproc_workflow_template": dataproc.ResourceDataprocWorkflowTemplate(),
"google_eventarc_channel": eventarc.ResourceEventarcChannel(),
"google_eventarc_google_channel_config": eventarc.ResourceEventarcGoogleChannelConfig(),
"google_eventarc_trigger": eventarc.ResourceEventarcTrigger(),
"google_firebaserules_release": firebaserules.ResourceFirebaserulesRelease(),
"google_firebaserules_ruleset": firebaserules.ResourceFirebaserulesRuleset(),
"google_gke_hub_feature_membership": gkehub.ResourceGkeHubFeatureMembership(),
"google_recaptcha_enterprise_key": recaptchaenterprise.ResourceRecaptchaEnterpriseKey(),
}
5 changes: 3 additions & 2 deletions google/provider/provider_mmv1_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
}

// Resources
// Generated resources: 499
// Generated resources: 500
// Generated IAM resources: 261
// Total generated resources: 760
// Total generated resources: 761
var generatedResources = map[string]*schema.Resource{
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
Expand Down Expand Up @@ -645,6 +645,7 @@ var generatedResources = map[string]*schema.Resource{
"google_compute_disk_resource_policy_attachment": compute.ResourceComputeDiskResourcePolicyAttachment(),
"google_compute_external_vpn_gateway": compute.ResourceComputeExternalVpnGateway(),
"google_compute_firewall": compute.ResourceComputeFirewall(),
"google_compute_firewall_policy_association": compute.ResourceComputeFirewallPolicyAssociation(),
"google_compute_firewall_policy_rule": compute.ResourceComputeFirewallPolicyRule(),
"google_compute_forwarding_rule": compute.ResourceComputeForwardingRule(),
"google_compute_global_address": compute.ResourceComputeGlobalAddress(),
Expand Down
Loading

0 comments on commit 833c19f

Please sign in to comment.