This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix caps in spanner resource schema accesses (#7346) (#1390)
Signed-off-by: Modular Magician <magic-modules@google.com>
- Loading branch information
1 parent
1362b81
commit 2275b1e
Showing
6 changed files
with
225 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...ata/generatedconvert/CloudRunDomainMapping_cloudRunDomainMappingBasicExample_offline.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[ | ||
{ | ||
"name": "//run.googleapis.com/projects/foobar/locations/us-central1/DomainMappings/tf-test-domainmeepmerp.gcp.tfacc.hashicorptest.com", | ||
"asset_type": "run.googleapis.com/DomainMapping", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/run/v1/rest", | ||
"discovery_name": "DomainMapping", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/foobar", | ||
"data": { | ||
"apiVersion": "domains.cloudrun.com/v1", | ||
"kind": "DomainMapping", | ||
"metadata": { | ||
"name": "tf-test-domainmeepmerp.gcp.tfacc.hashicorptest.com", | ||
"namespace": "foobar" | ||
}, | ||
"spec": { | ||
"certificateMode": "AUTOMATIC", | ||
"routeName": "tf-test-cloudrun-srvmeepmerp" | ||
} | ||
} | ||
}, | ||
"ancestors": [ | ||
"projects/foobar", | ||
"folders/67890", | ||
"organizations/12345" | ||
] | ||
}, | ||
{ | ||
"name": "//run.googleapis.com/projects/foobar/locations/us-central1/services/tf-test-cloudrun-srvmeepmerp", | ||
"asset_type": "run.googleapis.com/Service", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/run/v1/rest", | ||
"discovery_name": "Service", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/foobar", | ||
"data": { | ||
"apiVersion": "serving.knative.dev/v1", | ||
"kind": "Service", | ||
"metadata": { | ||
"name": "tf-test-cloudrun-srvmeepmerp", | ||
"namespace": "foobar" | ||
}, | ||
"spec": { | ||
"template": { | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"image": "us-docker.pkg.dev/cloudrun/container/hello" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"ancestors": [ | ||
"projects/foobar", | ||
"folders/67890", | ||
"organizations/12345" | ||
] | ||
} | ||
] |
41 changes: 41 additions & 0 deletions
41
testdata/generatedconvert/CloudRunService_cloudRunServiceBasicExample_offline.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[ | ||
{ | ||
"name": "//run.googleapis.com/projects/foobar/locations/us-central1/services/tf-test-cloudrun-srvmeepmerp", | ||
"asset_type": "run.googleapis.com/Service", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/run/v1/rest", | ||
"discovery_name": "Service", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/foobar", | ||
"data": { | ||
"apiVersion": "serving.knative.dev/v1", | ||
"kind": "Service", | ||
"metadata": { | ||
"name": "tf-test-cloudrun-srvmeepmerp" | ||
}, | ||
"spec": { | ||
"template": { | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"image": "us-docker.pkg.dev/cloudrun/container/hello" | ||
} | ||
] | ||
} | ||
}, | ||
"traffic": [ | ||
{ | ||
"latestRevision": true, | ||
"percent": 100 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"ancestors": [ | ||
"projects/foobar", | ||
"folders/67890", | ||
"organizations/12345" | ||
] | ||
} | ||
] |
54 changes: 54 additions & 0 deletions
54
...edconvert/CloudRunService_cloudRunServiceMultipleEnvironmentVariablesExample_offline.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[ | ||
{ | ||
"name": "//run.googleapis.com/projects/foobar/locations/us-central1/services/tf-test-cloudrun-srvmeepmerp", | ||
"asset_type": "run.googleapis.com/Service", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/run/v1/rest", | ||
"discovery_name": "Service", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/foobar", | ||
"data": { | ||
"apiVersion": "serving.knative.dev/v1", | ||
"kind": "Service", | ||
"metadata": { | ||
"annotations": { | ||
"generated-by": "magic-modules" | ||
}, | ||
"name": "tf-test-cloudrun-srvmeepmerp" | ||
}, | ||
"spec": { | ||
"template": { | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"env": [ | ||
{ | ||
"name": "SOURCE", | ||
"value": "remote" | ||
}, | ||
{ | ||
"name": "TARGET", | ||
"value": "home" | ||
} | ||
], | ||
"image": "us-docker.pkg.dev/cloudrun/container/hello" | ||
} | ||
] | ||
} | ||
}, | ||
"traffic": [ | ||
{ | ||
"latestRevision": true, | ||
"percent": 100 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"ancestors": [ | ||
"projects/foobar", | ||
"folders/67890", | ||
"organizations/12345" | ||
] | ||
} | ||
] |
64 changes: 64 additions & 0 deletions
64
testdata/generatedconvert/CloudRunService_cloudRunServiceSqlExample_offline.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[ | ||
{ | ||
"name": "//cloudsql.googleapis.com/projects/foobar/instances/tf-test-cloudrun-sqlmeepmerp", | ||
"asset_type": "sqladmin.googleapis.com/Instance", | ||
"resource": { | ||
"version": "v1beta4", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/sqladmin/v1beta4/rest", | ||
"discovery_name": "DatabaseInstance", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/foobar", | ||
"data": { | ||
"databaseVersion": "MYSQL_5_7", | ||
"name": "tf-test-cloudrun-sqlmeepmerp", | ||
"project": "foobar", | ||
"region": "us-east1", | ||
"settings": { | ||
"activationPolicy": "ALWAYS", | ||
"availabilityType": "ZONAL", | ||
"dataDiskType": "PD_SSD", | ||
"pricingPlan": "PER_USE", | ||
"storageAutoResize": true, | ||
"tier": "db-f1-micro" | ||
} | ||
} | ||
}, | ||
"ancestors": [ | ||
"projects/foobar", | ||
"folders/67890", | ||
"organizations/12345" | ||
] | ||
}, | ||
{ | ||
"name": "//run.googleapis.com/projects/foobar/locations/us-central1/services/tf-test-cloudrun-srvmeepmerp", | ||
"asset_type": "run.googleapis.com/Service", | ||
"resource": { | ||
"version": "v1", | ||
"discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/run/v1/rest", | ||
"discovery_name": "Service", | ||
"parent": "//cloudresourcemanager.googleapis.com/projects/foobar", | ||
"data": { | ||
"apiVersion": "serving.knative.dev/v1", | ||
"kind": "Service", | ||
"metadata": { | ||
"name": "tf-test-cloudrun-srvmeepmerp" | ||
}, | ||
"spec": { | ||
"template": { | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"image": "us-docker.pkg.dev/cloudrun/container/hello" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"ancestors": [ | ||
"projects/foobar", | ||
"folders/67890", | ||
"organizations/12345" | ||
] | ||
} | ||
] |