Skip to content

Commit 1cfde9c

Browse files
wata727github-actions[bot]
authored andcommitted
Update Magic Modules
1 parent 408c926 commit 1cfde9c

18 files changed

+1151
-3
lines changed

rules/magicmodules/api_definition.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ var APIDefinition = map[string]string{
5656
"google_apigee_keystores_aliases_self_signed_cert": "apigee.googleapis.com",
5757
"google_apigee_nat_address": "apigee.googleapis.com",
5858
"google_apigee_organization": "apigee.googleapis.com",
59+
"google_apigee_security_monitoring_condition": "apigee.googleapis.com",
60+
"google_apigee_security_profile_v2": "apigee.googleapis.com",
5961
"google_apigee_sync_authorization": "apigee.googleapis.com",
6062
"google_apigee_target_server": "apigee.googleapis.com",
6163
"google_apihub_api_hub_instance": "apihub.googleapis.com",
@@ -81,6 +83,7 @@ var APIDefinition = map[string]string{
8183
"google_beyondcorp_app_gateway": "beyondcorp.googleapis.com",
8284
"google_beyondcorp_application": "beyondcorp.googleapis.com",
8385
"google_beyondcorp_security_gateway": "beyondcorp.googleapis.com",
86+
"google_beyondcorp_security_gateway_application": "beyondcorp.googleapis.com",
8487
"google_biglake_catalog": "biglake.googleapis.com",
8588
"google_biglake_database": "biglake.googleapis.com",
8689
"google_biglake_table": "biglake.googleapis.com",
@@ -98,7 +101,10 @@ var APIDefinition = map[string]string{
98101
"google_bigquery_reservation": "bigqueryreservation.googleapis.com",
99102
"google_bigquery_reservation_assignment": "bigqueryreservation.googleapis.com",
100103
"google_bigquery_routine": "bigquery.googleapis.com",
104+
"google_bigquery_row_access_policy": "bigquery.googleapis.com",
101105
"google_bigtable_app_profile": "bigtableadmin.googleapis.com",
106+
"google_bigtable_logical_view": "bigtableadmin.googleapis.com",
107+
"google_bigtable_materialized_view": "bigtableadmin.googleapis.com",
102108
"google_billing_budget": "billingbudgets.googleapis.com",
103109
"google_billing_project_info": "cloudbilling.googleapis.com",
104110
"google_binary_authorization_attestor": "binaryauthorization.googleapis.com",
@@ -119,6 +125,7 @@ var APIDefinition = map[string]string{
119125
"google_cloud_quotas_quota_preference": "cloudquotas.googleapis.com",
120126
"google_cloud_run_v2_job": "run.googleapis.com",
121127
"google_cloud_run_v2_service": "run.googleapis.com",
128+
"google_cloud_run_v2_worker_pool": "run.googleapis.com",
122129
"google_cloud_scheduler_job": "cloudscheduler.googleapis.com",
123130
"google_cloud_tasks_queue": "cloudtasks.googleapis.com",
124131
"google_cloudbuild_bitbucket_server_config": "cloudbuild.googleapis.com",
@@ -144,6 +151,7 @@ var APIDefinition = map[string]string{
144151
"google_compute_firewall_policy": "compute.googleapis.com",
145152
"google_compute_firewall_policy_association": "compute.googleapis.com",
146153
"google_compute_firewall_policy_rule": "compute.googleapis.com",
154+
"google_compute_firewall_policy_with_rules": "compute.googleapis.com",
147155
"google_compute_forwarding_rule": "compute.googleapis.com",
148156
"google_compute_global_address": "compute.googleapis.com",
149157
"google_compute_global_forwarding_rule": "compute.googleapis.com",
@@ -169,6 +177,7 @@ var APIDefinition = map[string]string{
169177
"google_compute_network_firewall_policy": "compute.googleapis.com",
170178
"google_compute_network_firewall_policy_association": "compute.googleapis.com",
171179
"google_compute_network_firewall_policy_rule": "compute.googleapis.com",
180+
"google_compute_network_firewall_policy_with_rules": "compute.googleapis.com",
172181
"google_compute_network_peering_routes_config": "compute.googleapis.com",
173182
"google_compute_node_group": "compute.googleapis.com",
174183
"google_compute_node_template": "compute.googleapis.com",
@@ -188,7 +197,10 @@ var APIDefinition = map[string]string{
188197
"google_compute_region_network_firewall_policy": "compute.googleapis.com",
189198
"google_compute_region_network_firewall_policy_association": "compute.googleapis.com",
190199
"google_compute_region_network_firewall_policy_rule": "compute.googleapis.com",
200+
"google_compute_region_network_firewall_policy_with_rules": "compute.googleapis.com",
191201
"google_compute_region_per_instance_config": "compute.googleapis.com",
202+
"google_compute_region_security_policy": "compute.googleapis.com",
203+
"google_compute_region_security_policy_rule": "compute.googleapis.com",
192204
"google_compute_region_ssl_certificate": "compute.googleapis.com",
193205
"google_compute_region_ssl_policy": "compute.googleapis.com",
194206
"google_compute_region_target_http_proxy": "compute.googleapis.com",
@@ -198,6 +210,7 @@ var APIDefinition = map[string]string{
198210
"google_compute_reservation": "compute.googleapis.com",
199211
"google_compute_resize_request": "compute.googleapis.com",
200212
"google_compute_resource_policy": "compute.googleapis.com",
213+
"google_compute_resource_policy_attachment": "compute.googleapis.com",
201214
"google_compute_route": "compute.googleapis.com",
202215
"google_compute_router": "compute.googleapis.com",
203216
"google_compute_router_nat": "compute.googleapis.com",
@@ -208,6 +221,7 @@ var APIDefinition = map[string]string{
208221
"google_compute_snapshot": "compute.googleapis.com",
209222
"google_compute_ssl_certificate": "compute.googleapis.com",
210223
"google_compute_ssl_policy": "compute.googleapis.com",
224+
"google_compute_storage_pool": "compute.googleapis.com",
211225
"google_compute_subnetwork": "compute.googleapis.com",
212226
"google_compute_target_grpc_proxy": "compute.googleapis.com",
213227
"google_compute_target_http_proxy": "compute.googleapis.com",
@@ -238,8 +252,12 @@ var APIDefinition = map[string]string{
238252
"google_database_migration_service_private_connection": "datamigration.googleapis.com",
239253
"google_dataplex_aspect_type": "dataplex.googleapis.com",
240254
"google_dataplex_datascan": "dataplex.googleapis.com",
255+
"google_dataplex_entry": "dataplex.googleapis.com",
241256
"google_dataplex_entry_group": "dataplex.googleapis.com",
242257
"google_dataplex_entry_type": "dataplex.googleapis.com",
258+
"google_dataplex_glossary": "dataplex.googleapis.com",
259+
"google_dataplex_glossary_category": "dataplex.googleapis.com",
260+
"google_dataplex_glossary_term": "dataplex.googleapis.com",
243261
"google_dataplex_task": "dataplex.googleapis.com",
244262
"google_dataproc_autoscaling_policy": "dataproc.googleapis.com",
245263
"google_dataproc_batch": "dataproc.googleapis.com",
@@ -291,6 +309,9 @@ var APIDefinition = map[string]string{
291309
"google_firebase_app_check_service_config": "firebaseappcheck.googleapis.com",
292310
"google_firebase_app_hosting_backend": "firebaseapphosting.googleapis.com",
293311
"google_firebase_app_hosting_build": "firebaseapphosting.googleapis.com",
312+
"google_firebase_app_hosting_default_domain": "firebaseapphosting.googleapis.com",
313+
"google_firebase_app_hosting_domain": "firebaseapphosting.googleapis.com",
314+
"google_firebase_app_hosting_traffic": "firebaseapphosting.googleapis.com",
294315
"google_firebase_data_connect_service": "firebasedataconnect.googleapis.com",
295316
"google_firestore_backup_schedule": "firestore.googleapis.com",
296317
"google_firestore_database": "firestore.googleapis.com",
@@ -310,7 +331,9 @@ var APIDefinition = map[string]string{
310331
"google_gemini_release_channel_setting": "cloudaicompanion.googleapis.com",
311332
"google_gemini_release_channel_setting_binding": "cloudaicompanion.googleapis.com",
312333
"google_gemini_repository_group": "cloudaicompanion.googleapis.com",
334+
"google_gke_backup_backup_channel": "gkebackup.googleapis.com",
313335
"google_gke_backup_backup_plan": "gkebackup.googleapis.com",
336+
"google_gke_backup_restore_channel": "gkebackup.googleapis.com",
314337
"google_gke_backup_restore_plan": "gkebackup.googleapis.com",
315338
"google_gke_hub_feature": "gkehub.googleapis.com",
316339
"google_gke_hub_fleet": "gkehub.googleapis.com",
@@ -341,6 +364,7 @@ var APIDefinition = map[string]string{
341364
"google_iam_projects_policy_binding": "iam.googleapis.com",
342365
"google_iam_workforce_pool": "iam.googleapis.com",
343366
"google_iam_workforce_pool_provider": "iam.googleapis.com",
367+
"google_iam_workforce_pool_provider_key": "iam.googleapis.com",
344368
"google_iam_workload_identity_pool": "iam.googleapis.com",
345369
"google_iam_workload_identity_pool_provider": "iam.googleapis.com",
346370
"google_iap_brand": "iap.googleapis.com",
@@ -374,6 +398,7 @@ var APIDefinition = map[string]string{
374398
"google_logging_organization_settings": "logging.googleapis.com",
375399
"google_looker_instance": "looker.googleapis.com",
376400
"google_lustre_instance": "lustre.googleapis.com",
401+
"google_managed_kafka_acl": "managedkafka.googleapis.com",
377402
"google_managed_kafka_cluster": "managedkafka.googleapis.com",
378403
"google_managed_kafka_topic": "managedkafka.googleapis.com",
379404
"google_memcache_instance": "memcache.googleapis.com",
@@ -417,6 +442,10 @@ var APIDefinition = map[string]string{
417442
"google_network_security_firewall_endpoint_association": "networksecurity.googleapis.com",
418443
"google_network_security_gateway_security_policy": "networksecurity.googleapis.com",
419444
"google_network_security_gateway_security_policy_rule": "networksecurity.googleapis.com",
445+
"google_network_security_intercept_deployment": "networksecurity.googleapis.com",
446+
"google_network_security_intercept_deployment_group": "networksecurity.googleapis.com",
447+
"google_network_security_intercept_endpoint_group": "networksecurity.googleapis.com",
448+
"google_network_security_intercept_endpoint_group_association": "networksecurity.googleapis.com",
420449
"google_network_security_mirroring_deployment": "networksecurity.googleapis.com",
421450
"google_network_security_mirroring_deployment_group": "networksecurity.googleapis.com",
422451
"google_network_security_mirroring_endpoint_group": "networksecurity.googleapis.com",
@@ -452,6 +481,7 @@ var APIDefinition = map[string]string{
452481
"google_organization_access_approval_settings": "accessapproval.googleapis.com",
453482
"google_os_config_patch_deployment": "osconfig.googleapis.com",
454483
"google_os_config_v2_policy_orchestrator": "osconfig.googleapis.com",
484+
"google_os_config_v2_policy_orchestrator_for_folder": "osconfig.googleapis.com",
455485
"google_os_config_v2_policy_orchestrator_for_organization": "osconfig.googleapis.com",
456486
"google_os_login_ssh_public_key": "oslogin.googleapis.com",
457487
"google_parallelstore_instance": "parallelstore.googleapis.com",
@@ -516,6 +546,7 @@ var APIDefinition = map[string]string{
516546
"google_sql_database": "sqladmin.googleapis.com",
517547
"google_sql_source_representation_instance": "sqladmin.googleapis.com",
518548
"google_storage_anywhere_cache": "storage.googleapis.com",
549+
"google_storage_batch_operations_job": "storagebatchoperations.googleapis.com",
519550
"google_storage_bucket_access_control": "storage.googleapis.com",
520551
"google_storage_control_folder_intelligence_config": "storage.googleapis.com",
521552
"google_storage_control_organization_intelligence_config": "storage.googleapis.com",
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
// ----------------------------------------------------------------------------
2+
//
3+
// *** AUTO GENERATED CODE *** Type: MMv1 ***
4+
//
5+
// ----------------------------------------------------------------------------
6+
//
7+
// This file is automatically generated by Magic Modules and manual
8+
// changes will be clobbered when the file is regenerated.
9+
//
10+
// Please read more about how to change this file in
11+
// .github/CONTRIBUTING.md.
12+
//
13+
// ----------------------------------------------------------------------------
14+
15+
package magicmodules
16+
17+
import (
18+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
19+
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
20+
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
21+
)
22+
23+
// GoogleAlloydbInstanceInvalidActivationPolicyRule checks the pattern is valid
24+
type GoogleAlloydbInstanceInvalidActivationPolicyRule struct {
25+
tflint.DefaultRule
26+
27+
resourceType string
28+
attributeName string
29+
}
30+
31+
// NewGoogleAlloydbInstanceInvalidActivationPolicyRule returns new rule with default attributes
32+
func NewGoogleAlloydbInstanceInvalidActivationPolicyRule() *GoogleAlloydbInstanceInvalidActivationPolicyRule {
33+
return &GoogleAlloydbInstanceInvalidActivationPolicyRule{
34+
resourceType: "google_alloydb_instance",
35+
attributeName: "activation_policy",
36+
}
37+
}
38+
39+
// Name returns the rule name
40+
func (r *GoogleAlloydbInstanceInvalidActivationPolicyRule) Name() string {
41+
return "google_alloydb_instance_invalid_activation_policy"
42+
}
43+
44+
// Enabled returns whether the rule is enabled by default
45+
func (r *GoogleAlloydbInstanceInvalidActivationPolicyRule) Enabled() bool {
46+
return true
47+
}
48+
49+
// Severity returns the rule severity
50+
func (r *GoogleAlloydbInstanceInvalidActivationPolicyRule) Severity() tflint.Severity {
51+
return tflint.ERROR
52+
}
53+
54+
// Link returns the rule reference link
55+
func (r *GoogleAlloydbInstanceInvalidActivationPolicyRule) Link() string {
56+
return ""
57+
}
58+
59+
// Check checks the pattern is valid
60+
func (r *GoogleAlloydbInstanceInvalidActivationPolicyRule) Check(runner tflint.Runner) error {
61+
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
62+
Attributes: []hclext.AttributeSchema{{Name: r.attributeName}},
63+
}, nil)
64+
if err != nil {
65+
return err
66+
}
67+
68+
for _, resource := range resources.Blocks {
69+
attribute, exists := resource.Body.Attributes[r.attributeName]
70+
if !exists {
71+
continue
72+
}
73+
74+
err := runner.EvaluateExpr(attribute.Expr, func(val string) error {
75+
validateFunc := validation.StringInSlice([]string{"ACTIVATION_POLICY_UNSPECIFIED", "ALWAYS", "NEVER", ""}, false)
76+
77+
_, errors := validateFunc(val, r.attributeName)
78+
for _, err := range errors {
79+
if err := runner.EmitIssue(r, err.Error(), attribute.Expr.Range()); err != nil {
80+
return err
81+
}
82+
}
83+
return nil
84+
}, nil)
85+
if err != nil {
86+
return err
87+
}
88+
}
89+
90+
return nil
91+
}

0 commit comments

Comments
 (0)