Skip to content

Commit 938b15e

Browse files
wata727github-actions[bot]
authored andcommitted
Update Magic Modules
1 parent 865e9d7 commit 938b15e

18 files changed

+1320
-2
lines changed

rules/magicmodules/api_definition.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ var APIDefinition = map[string]string{
9494
"google_beyondcorp_security_gateway_application": "beyondcorp.googleapis.com",
9595
"google_biglake_catalog": "biglake.googleapis.com",
9696
"google_biglake_database": "biglake.googleapis.com",
97+
"google_biglake_iceberg_catalog": "biglake.googleapis.com",
9798
"google_biglake_table": "biglake.googleapis.com",
9899
"google_bigquery_analytics_hub_data_exchange": "analyticshub.googleapis.com",
99100
"google_bigquery_analytics_hub_listing": "analyticshub.googleapis.com",
@@ -126,6 +127,14 @@ var APIDefinition = map[string]string{
126127
"google_certificate_manager_certificate_map_entry": "certificatemanager.googleapis.com",
127128
"google_certificate_manager_dns_authorization": "certificatemanager.googleapis.com",
128129
"google_certificate_manager_trust_config": "certificatemanager.googleapis.com",
130+
"google_ces_agent": "ces.googleapis.com",
131+
"google_ces_app": "ces.googleapis.com",
132+
"google_ces_app_version": "ces.googleapis.com",
133+
"google_ces_deployment": "ces.googleapis.com",
134+
"google_ces_example": "ces.googleapis.com",
135+
"google_ces_guardrail": "ces.googleapis.com",
136+
"google_ces_tool": "ces.googleapis.com",
137+
"google_ces_toolset": "ces.googleapis.com",
129138
"google_cloud_asset_folder_feed": "cloudasset.googleapis.com",
130139
"google_cloud_asset_organization_feed": "cloudasset.googleapis.com",
131140
"google_cloud_asset_project_feed": "cloudasset.googleapis.com",
@@ -139,6 +148,7 @@ var APIDefinition = map[string]string{
139148
"google_cloud_scheduler_job": "cloudscheduler.googleapis.com",
140149
"google_cloud_security_compliance_cloud_control": "cloudsecuritycompliance.googleapis.com",
141150
"google_cloud_security_compliance_framework": "cloudsecuritycompliance.googleapis.com",
151+
"google_cloud_security_compliance_framework_deployment": "cloudsecuritycompliance.googleapis.com",
142152
"google_cloud_tasks_queue": "cloudtasks.googleapis.com",
143153
"google_cloudbuild_bitbucket_server_config": "cloudbuild.googleapis.com",
144154
"google_cloudbuild_trigger": "cloudbuild.googleapis.com",
@@ -156,6 +166,7 @@ var APIDefinition = map[string]string{
156166
"google_compute_backend_bucket_signed_url_key": "compute.googleapis.com",
157167
"google_compute_backend_service": "compute.googleapis.com",
158168
"google_compute_backend_service_signed_url_key": "compute.googleapis.com",
169+
"google_compute_cross_site_network": "compute.googleapis.com",
159170
"google_compute_disk": "compute.googleapis.com",
160171
"google_compute_disk_resource_policy_attachment": "compute.googleapis.com",
161172
"google_compute_external_vpn_gateway": "compute.googleapis.com",
@@ -195,6 +206,7 @@ var APIDefinition = map[string]string{
195206
"google_compute_network_peering_routes_config": "compute.googleapis.com",
196207
"google_compute_node_group": "compute.googleapis.com",
197208
"google_compute_node_template": "compute.googleapis.com",
209+
"google_compute_organization_security_policy": "compute.googleapis.com",
198210
"google_compute_packet_mirroring": "compute.googleapis.com",
199211
"google_compute_per_instance_config": "compute.googleapis.com",
200212
"google_compute_preview_feature": "compute.googleapis.com",
@@ -248,6 +260,7 @@ var APIDefinition = map[string]string{
248260
"google_compute_url_map": "compute.googleapis.com",
249261
"google_compute_vpn_gateway": "compute.googleapis.com",
250262
"google_compute_vpn_tunnel": "compute.googleapis.com",
263+
"google_compute_wire_group": "compute.googleapis.com",
251264
"google_contact_center_insights_analysis_rule": "contactcenterinsights.googleapis.com",
252265
"google_contact_center_insights_view": "contactcenterinsights.googleapis.com",
253266
"google_container_analysis_note": "containeranalysis.googleapis.com",
@@ -299,7 +312,9 @@ var APIDefinition = map[string]string{
299312
"google_dialogflow_encryption_spec": "dialogflow.googleapis.com",
300313
"google_dialogflow_entity_type": "dialogflow.googleapis.com",
301314
"google_dialogflow_fulfillment": "dialogflow.googleapis.com",
315+
"google_dialogflow_generator": "dialogflow.googleapis.com",
302316
"google_dialogflow_intent": "dialogflow.googleapis.com",
317+
"google_dialogflow_version": "dialogflow.googleapis.com",
303318
"google_dns_managed_zone": "dns.googleapis.com",
304319
"google_dns_policy": "dns.googleapis.com",
305320
"google_dns_response_policy": "dns.googleapis.com",
@@ -391,6 +406,7 @@ var APIDefinition = map[string]string{
391406
"google_iam_workforce_pool_provider": "iam.googleapis.com",
392407
"google_iam_workforce_pool_provider_key": "iam.googleapis.com",
393408
"google_iam_workforce_pool_provider_scim_tenant": "iam.googleapis.com",
409+
"google_iam_workforce_pool_provider_scim_token": "iam.googleapis.com",
394410
"google_iam_workload_identity_pool": "iam.googleapis.com",
395411
"google_iam_workload_identity_pool_provider": "iam.googleapis.com",
396412
"google_iap_brand": "iap.googleapis.com",
@@ -451,6 +467,7 @@ var APIDefinition = map[string]string{
451467
"google_netapp_backup": "netapp.googleapis.com",
452468
"google_netapp_backup_policy": "netapp.googleapis.com",
453469
"google_netapp_backup_vault": "netapp.googleapis.com",
470+
"google_netapp_host_group": "netapp.googleapis.com",
454471
"google_netapp_kmsconfig": "netapp.googleapis.com",
455472
"google_netapp_storage_pool": "netapp.googleapis.com",
456473
"google_netapp_volume": "netapp.googleapis.com",
@@ -465,6 +482,7 @@ var APIDefinition = map[string]string{
465482
"google_network_connectivity_service_connection_policy": "networkconnectivity.googleapis.com",
466483
"google_network_connectivity_spoke": "networkconnectivity.googleapis.com",
467484
"google_network_management_connectivity_test": "networkmanagement.googleapis.com",
485+
"google_network_management_organization_vpc_flow_logs_config": "networkmanagement.googleapis.com",
468486
"google_network_management_vpc_flow_logs_config": "networkmanagement.googleapis.com",
469487
"google_network_security_address_group": "networksecurity.googleapis.com",
470488
"google_network_security_authz_policy": "networksecurity.googleapis.com",
@@ -495,9 +513,19 @@ var APIDefinition = map[string]string{
495513
"google_network_services_gateway": "networkservices.googleapis.com",
496514
"google_network_services_grpc_route": "networkservices.googleapis.com",
497515
"google_network_services_http_route": "networkservices.googleapis.com",
516+
"google_network_services_lb_edge_extension": "networkservices.googleapis.com",
498517
"google_network_services_lb_route_extension": "networkservices.googleapis.com",
499518
"google_network_services_lb_traffic_extension": "networkservices.googleapis.com",
500519
"google_network_services_mesh": "networkservices.googleapis.com",
520+
"google_network_services_multicast_consumer_association": "networkservices.googleapis.com",
521+
"google_network_services_multicast_domain": "networkservices.googleapis.com",
522+
"google_network_services_multicast_domain_activation": "networkservices.googleapis.com",
523+
"google_network_services_multicast_domain_group": "networkservices.googleapis.com",
524+
"google_network_services_multicast_group_consumer_activation": "networkservices.googleapis.com",
525+
"google_network_services_multicast_group_producer_activation": "networkservices.googleapis.com",
526+
"google_network_services_multicast_group_range": "networkservices.googleapis.com",
527+
"google_network_services_multicast_group_range_activation": "networkservices.googleapis.com",
528+
"google_network_services_multicast_producer_association": "networkservices.googleapis.com",
501529
"google_network_services_service_binding": "networkservices.googleapis.com",
502530
"google_network_services_tcp_route": "networkservices.googleapis.com",
503531
"google_network_services_tls_route": "networkservices.googleapis.com",
@@ -509,6 +537,7 @@ var APIDefinition = map[string]string{
509537
"google_oracle_database_cloud_exadata_infrastructure": "oracledatabase.googleapis.com",
510538
"google_oracle_database_cloud_vm_cluster": "oracledatabase.googleapis.com",
511539
"google_oracle_database_db_system": "oracledatabase.googleapis.com",
540+
"google_oracle_database_exascale_db_storage_vault": "oracledatabase.googleapis.com",
512541
"google_oracle_database_odb_network": "oracledatabase.googleapis.com",
513542
"google_oracle_database_odb_subnet": "oracledatabase.googleapis.com",
514543
"google_org_policy_custom_constraint": "orgpolicy.googleapis.com",
@@ -572,6 +601,9 @@ var APIDefinition = map[string]string{
572601
"google_secure_source_manager_repository": "securesourcemanager.googleapis.com",
573602
"google_securityposture_posture": "securityposture.googleapis.com",
574603
"google_securityposture_posture_deployment": "securityposture.googleapis.com",
604+
"google_service_directory_endpoint": "servicedirectory.googleapis.com",
605+
"google_service_directory_namespace": "servicedirectory.googleapis.com",
606+
"google_service_directory_service": "servicedirectory.googleapis.com",
575607
"google_service_networking_vpc_service_controls": "servicenetworking.googleapis.com",
576608
"google_site_verification_web_resource": "www.googleapis.com",
577609
"google_sourcerepo_repository": "sourcerepo.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+
// GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule checks the pattern is valid
24+
type GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule struct {
25+
tflint.DefaultRule
26+
27+
resourceType string
28+
attributeName string
29+
}
30+
31+
// NewGoogleBiglakeIcebergCatalogInvalidCatalogTypeRule returns new rule with default attributes
32+
func NewGoogleBiglakeIcebergCatalogInvalidCatalogTypeRule() *GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule {
33+
return &GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule{
34+
resourceType: "google_biglake_iceberg_catalog",
35+
attributeName: "catalog_type",
36+
}
37+
}
38+
39+
// Name returns the rule name
40+
func (r *GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule) Name() string {
41+
return "google_biglake_iceberg_catalog_invalid_catalog_type"
42+
}
43+
44+
// Enabled returns whether the rule is enabled by default
45+
func (r *GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule) Enabled() bool {
46+
return true
47+
}
48+
49+
// Severity returns the rule severity
50+
func (r *GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule) Severity() tflint.Severity {
51+
return tflint.ERROR
52+
}
53+
54+
// Link returns the rule reference link
55+
func (r *GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule) Link() string {
56+
return ""
57+
}
58+
59+
// Check checks the pattern is valid
60+
func (r *GoogleBiglakeIcebergCatalogInvalidCatalogTypeRule) 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{"CATALOG_TYPE_GCS_BUCKET"}, 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+
}
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+
// GoogleBiglakeIcebergCatalogInvalidCredentialModeRule checks the pattern is valid
24+
type GoogleBiglakeIcebergCatalogInvalidCredentialModeRule struct {
25+
tflint.DefaultRule
26+
27+
resourceType string
28+
attributeName string
29+
}
30+
31+
// NewGoogleBiglakeIcebergCatalogInvalidCredentialModeRule returns new rule with default attributes
32+
func NewGoogleBiglakeIcebergCatalogInvalidCredentialModeRule() *GoogleBiglakeIcebergCatalogInvalidCredentialModeRule {
33+
return &GoogleBiglakeIcebergCatalogInvalidCredentialModeRule{
34+
resourceType: "google_biglake_iceberg_catalog",
35+
attributeName: "credential_mode",
36+
}
37+
}
38+
39+
// Name returns the rule name
40+
func (r *GoogleBiglakeIcebergCatalogInvalidCredentialModeRule) Name() string {
41+
return "google_biglake_iceberg_catalog_invalid_credential_mode"
42+
}
43+
44+
// Enabled returns whether the rule is enabled by default
45+
func (r *GoogleBiglakeIcebergCatalogInvalidCredentialModeRule) Enabled() bool {
46+
return true
47+
}
48+
49+
// Severity returns the rule severity
50+
func (r *GoogleBiglakeIcebergCatalogInvalidCredentialModeRule) Severity() tflint.Severity {
51+
return tflint.ERROR
52+
}
53+
54+
// Link returns the rule reference link
55+
func (r *GoogleBiglakeIcebergCatalogInvalidCredentialModeRule) Link() string {
56+
return ""
57+
}
58+
59+
// Check checks the pattern is valid
60+
func (r *GoogleBiglakeIcebergCatalogInvalidCredentialModeRule) 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{"CREDENTIAL_MODE_END_USER", "CREDENTIAL_MODE_VENDED_CREDENTIALS", ""}, 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)