Skip to content

Commit

Permalink
Migrate Network Firewall Policy Association (global and region) resou…
Browse files Browse the repository at this point in the history
…rce from DCL to MMv1 (#11366) (#19976)

[upstream:9a1402bf3fa39860cad1fb258010cbf01450e8d8]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Oct 23, 2024
1 parent d99ec20 commit 6271874
Show file tree
Hide file tree
Showing 12 changed files with 823 additions and 460 deletions.
6 changes: 6 additions & 0 deletions .changelog/11366.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:enhancement
compute: `google_compute_network_firewall_policy_association` now uses MMv1 engine instead of DCL.
```
```release-note:enhancement
compute: `google_compute_region_network_firewall_policy_association` now uses MMv1 engine instead of DCL.
```
50 changes: 24 additions & 26 deletions google/provider/provider_dcl_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,28 @@ 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_compute_firewall_policy_rule": compute.ResourceComputeFirewallPolicyRule(),
"google_compute_network_firewall_policy_association": compute.ResourceComputeNetworkFirewallPolicyAssociation(),
"google_compute_region_network_firewall_policy_association": compute.ResourceComputeRegionNetworkFirewallPolicyAssociation(),
"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_compute_firewall_policy_association": compute.ResourceComputeFirewallPolicyAssociation(),
"google_compute_firewall_policy_rule": compute.ResourceComputeFirewallPolicyRule(),
"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(),
}
6 changes: 4 additions & 2 deletions google/provider/provider_mmv1_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
}

// Resources
// Generated resources: 479
// Generated resources: 481
// Generated IAM resources: 261
// Total generated resources: 740
// Total generated resources: 742
var generatedResources = map[string]*schema.Resource{
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
Expand Down Expand Up @@ -655,6 +655,7 @@ var generatedResources = map[string]*schema.Resource{
"google_compute_network_endpoint_group": compute.ResourceComputeNetworkEndpointGroup(),
"google_compute_network_endpoints": compute.ResourceComputeNetworkEndpoints(),
"google_compute_network_firewall_policy": compute.ResourceComputeNetworkFirewallPolicy(),
"google_compute_network_firewall_policy_association": compute.ResourceComputeNetworkFirewallPolicyAssociation(),
"google_compute_network_firewall_policy_rule": compute.ResourceComputeNetworkFirewallPolicyRule(),
"google_compute_network_peering_routes_config": compute.ResourceComputeNetworkPeeringRoutesConfig(),
"google_compute_node_group": compute.ResourceComputeNodeGroup(),
Expand All @@ -676,6 +677,7 @@ var generatedResources = map[string]*schema.Resource{
"google_compute_region_network_endpoint": compute.ResourceComputeRegionNetworkEndpoint(),
"google_compute_region_network_endpoint_group": compute.ResourceComputeRegionNetworkEndpointGroup(),
"google_compute_region_network_firewall_policy": compute.ResourceComputeRegionNetworkFirewallPolicy(),
"google_compute_region_network_firewall_policy_association": compute.ResourceComputeRegionNetworkFirewallPolicyAssociation(),
"google_compute_region_network_firewall_policy_rule": compute.ResourceComputeRegionNetworkFirewallPolicyRule(),
"google_compute_region_per_instance_config": compute.ResourceComputeRegionPerInstanceConfig(),
"google_compute_region_ssl_certificate": compute.ResourceComputeRegionSslCertificate(),
Expand Down
Loading

0 comments on commit 6271874

Please sign in to comment.