Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions mmv1/products/alloydb/Cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ custom_code:
pre_create: 'templates/terraform/pre_create/alloydb_cluster.go.tmpl'
pre_update: 'templates/terraform/pre_update/alloydb_cluster.go.tmpl'
pre_delete: 'templates/terraform/pre_delete/alloydb_cluster.go.tmpl'
test_constants: 'templates/terraform/test_constants/import_tpgcompute.go.tmpl'
# Skipping the sweeper because we need to force-delete clusters.
exclude_sweeper: true
include_in_tgc_next: true
Expand All @@ -76,7 +77,7 @@ examples:
alloydb_instance_name: 'alloydb-instance'
network_name: 'alloydb-network'
test_vars_overrides:
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "alloydb-1")'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "alloydb-1")'
ignore_read_extra:
- 'deletion_protection'
- name: 'alloydb_cluster_after_upgrade'
Expand All @@ -86,7 +87,7 @@ examples:
alloydb_instance_name: 'alloydb-instance'
network_name: 'alloydb-network'
test_vars_overrides:
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "alloydb-1")'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "alloydb-1")'
ignore_read_extra:
- 'deletion_protection'
- name: 'alloydb_cluster_full'
Expand All @@ -105,7 +106,7 @@ examples:
alloydb_instance_name: 'alloydb-instance'
network_name: 'alloydb-network'
test_vars_overrides:
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "alloydb-instance-basic")'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "alloydb-instance-basic")'
ignore_read_extra:
- 'deletion_protection'
- 'reconciling'
Expand Down
4 changes: 2 additions & 2 deletions mmv1/products/bigqueryconnection/Connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ examples:
username: '"user" + randomSuffix'
password: '"password"'
ignore_read_extra:
# username and password are not returned by the API
- 'configuration.0.authentication.0.username_password.0.username'
# The plaintext password is redacted by the API on read, so it cannot
# be verified against the original config.
- 'configuration.0.authentication.0.username_password.0.password'
external_providers: ["random", "time"]
# Random provider
Expand Down
2 changes: 2 additions & 0 deletions mmv1/products/colab/NotebookExecution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async:
operation:
import_format:
- 'projects/{{project}}/locations/{{location}}/notebookExecutionJobs/{{notebook_execution_job_id}}'
include_in_tgc_next: true
custom_code:
post_create: 'templates/terraform/post_create/colab_notebook_execution.go.tmpl'
examples:
Expand Down Expand Up @@ -146,6 +147,7 @@ properties:
required: true
description: 'The base64-encoded contents of the input notebook file.'
custom_flatten: 'templates/terraform/custom_flatten/colab_notebook_execution_direct_content.go.tmpl'
tgc_ignore_terraform_custom_flatten: true
- name: executionTimeout
type: String
description: 'Max running time of the execution job in seconds (default 86400s / 24 hrs).'
Expand Down
1 change: 1 addition & 0 deletions mmv1/products/compute/NetworkEndpointGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ properties:
- 'INTERNET_FQDN_PORT'
- 'SERVERLESS'
- 'PRIVATE_SERVICE_CONNECT'
- 'GCE_VM_IP_DEDICATED_BACKEND'
- name: 'size'
type: Integer
description: Number of network endpoints in the network endpoint group.
Expand Down
2 changes: 2 additions & 0 deletions mmv1/products/compute/Subnetwork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -563,3 +563,5 @@ properties:
enum_values:
- ARP_ALL_RANGES
- ARP_PRIMARY_RANGE
- ARP_BROADCAST_PRIMARY_RANGE
- ARP_BROADCAST_PRIMARY_RANGE_WITH_LEARNING
1 change: 1 addition & 0 deletions mmv1/products/datacatalog/TagTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ properties:
- 'STRING'
- 'BOOL'
- 'TIMESTAMP'
- 'RICHTEXT'
- name: 'enumType'
type: NestedObject
description: |
Expand Down
3 changes: 2 additions & 1 deletion mmv1/products/datalineage/Config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ examples:
- name: 'data_lineage_config_project'
primary_resource_id: 'default'
test_env_vars:
project: 'PROJECT_NAME'
org_id: 'ORG_ID'
external_providers: ["time"]
- name: 'data_lineage_config_folder'
primary_resource_id: 'default'
vars:
Expand Down
10 changes: 5 additions & 5 deletions mmv1/products/dataproc/Batch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ examples:
project_name: PROJECT_NAME
test_vars_overrides:
prevent_destroy: "false"
subnetwork_name: acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-spark-test-network", "dataproc-spark-test-subnetwork")
subnetwork_name: BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-spark-test-network", "dataproc-spark-test-subnetwork")
- name: dataproc_batch_spark_full
primary_resource_id: example_batch_spark
ignore_read_extra:
Expand All @@ -81,7 +81,7 @@ examples:
project_name: PROJECT_NAME
test_vars_overrides:
prevent_destroy: "false"
subnetwork_name: acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-sparksql-test-network", "dataproc-sparksql-test-subnetwork")
subnetwork_name: BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-sparksql-test-network", "dataproc-sparksql-test-subnetwork")
- name: dataproc_batch_pyspark
primary_resource_id: example_batch_pyspark
ignore_read_extra:
Expand All @@ -93,7 +93,7 @@ examples:
project_name: PROJECT_NAME
test_vars_overrides:
prevent_destroy: "false"
subnetwork_name: acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-pyspark-test-network", "dataproc-pyspark-test-subnetwork")
subnetwork_name: BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-pyspark-test-network", "dataproc-pyspark-test-subnetwork")
- name: dataproc_batch_sparkr
primary_resource_id: example_batch_sparkr
ignore_read_extra:
Expand All @@ -105,7 +105,7 @@ examples:
project_name: PROJECT_NAME
test_vars_overrides:
prevent_destroy: "false"
subnetwork_name: acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-pyspark-test-network", "dataproc-pyspark-test-subnetwork")
subnetwork_name: BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-pyspark-test-network", "dataproc-pyspark-test-subnetwork")
- name: dataproc_batch_autotuning
primary_resource_id: example_batch_autotuning
ignore_read_extra:
Expand All @@ -117,7 +117,7 @@ examples:
project_name: PROJECT_NAME
test_vars_overrides:
prevent_destroy: "false"
subnetwork_name: acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-autotuning-test-network", "dataproc-autotuning-test-subnetwork")
subnetwork_name: BootstrapSubnetWithFirewallForDataprocBatches(t, "dataproc-autotuning-test-network", "dataproc-autotuning-test-subnetwork")
parameters:
- name: location
type: String
Expand Down
6 changes: 3 additions & 3 deletions mmv1/products/dataproc/SessionTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ examples:
test_env_vars:
project_name: 'PROJECT_NAME'
test_vars_overrides:
'subnetwork_name': 'acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "jupyer-session-test-network", "jupyter-session-test-subnetwork")'
'subnetwork_name': 'BootstrapSubnetWithFirewallForDataprocBatches(t, "jupyer-session-test-network", "jupyter-session-test-subnetwork")'
'prevent_destroy': 'false'
ignore_read_extra:
- 'runtime_config.0.properties'
Expand All @@ -58,7 +58,7 @@ examples:
test_env_vars:
project_name: 'PROJECT_NAME'
test_vars_overrides:
'subnetwork_name': 'acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "jupyer-session-test-network", "jupyter-session-test-subnetwork")'
'subnetwork_name': 'BootstrapSubnetWithFirewallForDataprocBatches(t, "jupyer-session-test-network", "jupyter-session-test-subnetwork")'
'prevent_destroy': 'false'
'kms_key_name': 'acctest.BootstrapKMSKeyWithPurposeInLocationAndName(t, "ENCRYPT_DECRYPT", "us-central1", "tf-bootstrap-dataproc-session-template-key1").CryptoKey.Name'
ignore_read_extra:
Expand All @@ -72,7 +72,7 @@ examples:
test_env_vars:
project_name: 'PROJECT_NAME'
test_vars_overrides:
'subnetwork_name': 'acctest.BootstrapSubnetWithFirewallForDataprocBatches(t, "spark-connect-session-test-network", "spark-connect-session-test-subnetwork")'
'subnetwork_name': 'BootstrapSubnetWithFirewallForDataprocBatches(t, "spark-connect-session-test-network", "spark-connect-session-test-subnetwork")'
'prevent_destroy': 'false'
ignore_read_extra:
- 'runtime_config.0.properties'
Expand Down
2 changes: 2 additions & 0 deletions mmv1/products/datastream/PrivateConnection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ custom_code:
post_create: 'templates/terraform/post_create/private_connection.go.tmpl'
pre_delete: 'templates/terraform/pre_delete/private_connection.go.tmpl'
post_import: 'templates/terraform/post_import/private_connection.go.tmpl'
tgc_decoder: 'templates/tgc_next/decoders/datastream_private_connection.go.tmpl'
include_in_tgc_next: true
schema_version: 1
state_upgraders: true
Expand Down Expand Up @@ -165,6 +166,7 @@ properties:
A free subnet for peering. (CIDR of /29)
required: true
- name: 'pscInterfaceConfig'
is_missing_in_cai: true
type: NestedObject
description: |
The PSC Interface configuration is used to create PSC Interface
Expand Down
10 changes: 6 additions & 4 deletions mmv1/products/eventarc/Pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ references:
api: https://cloud.google.com/eventarc/docs/reference/rest/v1/projects.locations.pipelines
description: |
The Eventarc Pipeline resource
custom_code:
test_constants: 'templates/terraform/test_constants/import_tpgcompute.go.tmpl'
async:
actions: ['create', 'update', 'delete']
operation:
Expand All @@ -52,7 +54,7 @@ examples:
test_env_vars:
project_id: 'PROJECT_NAME'
test_vars_overrides:
'network_attachment_name': 'acctest.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", acctest.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", acctest.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
'network_attachment_name': 'tpgcompute.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", tpgcompute.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", tpgcompute.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
- name: eventarc_pipeline_with_workflow_destination
primary_resource_id: primary
vars:
Expand All @@ -69,7 +71,7 @@ examples:
project_id: 'PROJECT_NAME'
service_account: 'SERVICE_ACCT'
test_vars_overrides:
'network_attachment_name': 'acctest.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", acctest.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", acctest.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
'network_attachment_name': 'tpgcompute.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", tpgcompute.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", tpgcompute.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
- name: eventarc_pipeline_with_oauth_and_protobuf_format
primary_resource_id: primary
vars:
Expand All @@ -79,7 +81,7 @@ examples:
project_id: 'PROJECT_NAME'
service_account: 'SERVICE_ACCT'
test_vars_overrides:
'network_attachment_name': 'acctest.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", acctest.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", acctest.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
'network_attachment_name': 'tpgcompute.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", tpgcompute.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", tpgcompute.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
- name: eventarc_pipeline_with_cmek_and_avro_format
primary_resource_id: primary
bootstrap_iam:
Expand All @@ -92,7 +94,7 @@ examples:
test_env_vars:
project_id: 'PROJECT_NAME'
test_vars_overrides:
'network_attachment_name': 'acctest.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", acctest.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", acctest.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
'network_attachment_name': 'tpgcompute.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-pipeline-na", tpgcompute.BootstrapSubnet(t, "tf-bootstrap-eventarc-pipeline-subnet", tpgcompute.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-pipeline-network")))'
'key_name': 'acctest.BootstrapKMSKeyWithPurposeInLocationAndName(t, "ENCRYPT_DECRYPT", "us-central1", "tf-bootstrap-eventarc-pipeline-key").CryptoKey.Name'
parameters:
- name: location
Expand Down
4 changes: 3 additions & 1 deletion mmv1/products/eventarc/Trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ sweeper:
url_substitutions:
- region: "us-central1"
- region: "europe-west1"
custom_code:
test_constants: 'templates/terraform/test_constants/import_tpgcompute.go.tmpl'
examples:
- name: eventarc_trigger_with_cloud_run_destination
primary_resource_id: primary
Expand All @@ -52,7 +54,7 @@ examples:
trigger_name: some-trigger
network_attachment_name: network-attachment
test_vars_overrides:
'network_attachment_name': 'acctest.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-trigger-na", acctest.BootstrapSubnet(t, "tf-bootstrap-eventarc-trigger-subnet", acctest.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-trigger-network")))'
'network_attachment_name': 'tpgcompute.BootstrapNetworkAttachment(t, "tf-bootstrap-eventarc-trigger-na", tpgcompute.BootstrapSubnet(t, "tf-bootstrap-eventarc-trigger-subnet", tpgcompute.BootstrapSharedTestNetwork(t, "tf-bootstrap-eventarc-trigger-network")))'
test_env_vars:
project_id: 'PROJECT_NAME'
service_account: 'SERVICE_ACCT'
Expand Down
33 changes: 17 additions & 16 deletions mmv1/products/gkebackup/BackupPlan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ iam_policy:
- 'projects/{{project}}/locations/{{location}}/backupPlans/{{name}}'
- '{{name}}'
custom_code:
test_constants: 'templates/terraform/test_constants/import_tpgcompute.go.tmpl'
include_in_tgc_next: true
examples:
- name: 'gkebackup_backupplan_basic'
Expand All @@ -58,8 +59,8 @@ examples:
project: 'PROJECT_NAME'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
- name: 'gkebackup_backupplan_autopilot'
Expand All @@ -72,8 +73,8 @@ examples:
subnetwork_name: 'default'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
- name: 'gkebackup_backupplan_cmek'
Expand All @@ -89,8 +90,8 @@ examples:
project: 'PROJECT_NAME'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
- name: 'gkebackup_backupplan_nslabels'
Expand All @@ -105,8 +106,8 @@ examples:
project: 'PROJECT_NAME'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
- name: 'gkebackup_backupplan_full'
Expand All @@ -121,8 +122,8 @@ examples:
project: 'PROJECT_NAME'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
- name: 'gkebackup_backupplan_permissive'
Expand All @@ -137,8 +138,8 @@ examples:
project: 'PROJECT_NAME'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
- name: 'gkebackup_backupplan_rpo_daily_window'
Expand All @@ -153,8 +154,8 @@ examples:
project: 'PROJECT_NAME'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
- name: 'gkebackup_backupplan_rpo_weekly_window'
Expand All @@ -169,8 +170,8 @@ examples:
project: 'PROJECT_NAME'
test_vars_overrides:
'deletion_protection': 'false'
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'acctest.BootstrapSubnet(t, "gke-cluster", acctest.BootstrapSharedTestNetwork(t, "gke-cluster"))'
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster")'
'subnetwork_name': 'tpgcompute.BootstrapSubnet(t, "gke-cluster", tpgcompute.BootstrapSharedTestNetwork(t, "gke-cluster"))'
oics_vars_overrides:
'deletion_protection': 'false'
parameters:
Expand Down
Loading