Skip to content

Commit 13886db

Browse files
authored
Merge feature branch major release 7.0.0 (#14962)
2 parents 87b4ef0 + 73a1e53 commit 13886db

File tree

174 files changed

+1542
-1437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+1542
-1437
lines changed

mmv1/products/alloydb/Cluster.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ examples:
6767
primary_resource_id: 'default'
6868
vars:
6969
alloydb_cluster_name: 'alloydb-cluster'
70+
ignore_read_extra:
71+
- 'deletion_protection'
7072
- name: 'alloydb_cluster_before_upgrade'
7173
primary_resource_id: 'default'
7274
vars:
@@ -75,6 +77,8 @@ examples:
7577
network_name: 'alloydb-network'
7678
test_vars_overrides:
7779
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "alloydb-1")'
80+
ignore_read_extra:
81+
- 'deletion_protection'
7882
- name: 'alloydb_cluster_after_upgrade'
7983
primary_resource_id: 'default'
8084
vars:
@@ -83,10 +87,14 @@ examples:
8387
network_name: 'alloydb-network'
8488
test_vars_overrides:
8589
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "alloydb-1")'
90+
ignore_read_extra:
91+
- 'deletion_protection'
8692
- name: 'alloydb_cluster_full'
8793
primary_resource_id: 'full'
8894
vars:
8995
alloydb_cluster_name: 'alloydb-cluster-full'
96+
ignore_read_extra:
97+
- 'deletion_protection'
9098
- name: 'alloydb_cluster_restore'
9199
primary_resource_id: 'source'
92100
vars:
@@ -99,6 +107,7 @@ examples:
99107
test_vars_overrides:
100108
'network_name': 'acctest.BootstrapSharedTestNetwork(t, "alloydb-instance-basic")'
101109
ignore_read_extra:
110+
- 'deletion_protection'
102111
- 'reconciling'
103112
- 'update_time'
104113
exclude_test: true
@@ -108,6 +117,8 @@ examples:
108117
alloydb_primary_cluster_name: 'alloydb-primary-cluster'
109118
alloydb_primary_instance_name: 'alloydb-primary-instance'
110119
alloydb_secondary_cluster_name: 'alloydb-secondary-cluster'
120+
ignore_read_extra:
121+
- 'deletion_protection'
111122
exclude_test: true
112123
- name: 'alloydb_secondary_cluster_basic_test'
113124
primary_resource_id: 'secondary'
@@ -118,6 +129,8 @@ examples:
118129
network_name: 'alloydb-network'
119130
test_vars_overrides:
120131
'network_name': 'acctest.BootstrapSharedServiceNetworkingConnection(t, "alloydb-1")'
132+
ignore_read_extra:
133+
- 'deletion_protection'
121134
exclude_docs: true
122135
virtual_fields:
123136
- name: 'deletion_policy'
@@ -128,6 +141,14 @@ virtual_fields:
128141
Possible values: DEFAULT, FORCE
129142
type: String
130143
default_value: "DEFAULT"
144+
- name: 'deletion_protection'
145+
description: |
146+
Whether Terraform will be prevented from destroying the cluster.
147+
When the field is set to true or unset in Terraform state, a `terraform apply`
148+
or `terraform destroy` that would delete the cluster will fail.
149+
When the field is set to false, deleting the cluster is allowed.
150+
type: Boolean
151+
default_value: true
131152
- name: 'skip_await_major_version_upgrade'
132153
type: Boolean
133154
default_value: true

mmv1/products/artifactregistry/Repository.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ iam_policy:
5353
custom_code:
5454
constants: 'templates/terraform/constants/artifact_registry_repository.go.tmpl'
5555
encoder: 'templates/terraform/encoders/location_from_region.go.tmpl'
56-
pre_create: 'templates/terraform/pre_create/artifact_registry_remote_repository.go.tmpl'
5756
sweeper:
5857
url_substitutions:
5958
- region: "us-central1"
@@ -517,9 +516,6 @@ properties:
517516
immutable: true
518517
conflicts:
519518
- remoteRepositoryConfig.0.docker_repository.0.custom_repository
520-
custom_flatten: 'templates/terraform/custom_flatten/default_if_empty.tmpl'
521-
# Eventually lets delete default_value and custom_flatten in a major release
522-
default_value: "DOCKER_HUB"
523519
enum_values:
524520
- 'DOCKER_HUB'
525521
- name: 'customRepository'
@@ -556,9 +552,6 @@ properties:
556552
immutable: true
557553
conflicts:
558554
- remoteRepositoryConfig.0.maven_repository.0.custom_repository
559-
custom_flatten: 'templates/terraform/custom_flatten/default_if_empty.tmpl'
560-
# Eventually lets delete default_value and custom_flatten in a major release
561-
default_value: "MAVEN_CENTRAL"
562555
enum_values:
563556
- 'MAVEN_CENTRAL'
564557
- name: 'customRepository'
@@ -595,9 +588,6 @@ properties:
595588
immutable: true
596589
conflicts:
597590
- remoteRepositoryConfig.0.npm_repository.0.custom_repository
598-
custom_flatten: 'templates/terraform/custom_flatten/default_if_empty.tmpl'
599-
# Eventually lets delete default_value and custom_flatten in a major release
600-
default_value: "NPMJS"
601591
enum_values:
602592
- 'NPMJS'
603593
- name: 'customRepository'
@@ -634,9 +624,6 @@ properties:
634624
immutable: true
635625
conflicts:
636626
- remoteRepositoryConfig.0.python_repository.0.custom_repository
637-
custom_flatten: 'templates/terraform/custom_flatten/default_if_empty.tmpl'
638-
# Eventually lets delete default_value and custom_flatten in a major release
639-
default_value: "PYPI"
640627
enum_values:
641628
- 'PYPI'
642629
- name: 'customRepository'

mmv1/products/beyondcorp/Application.yaml

Lines changed: 0 additions & 153 deletions
This file was deleted.

mmv1/products/billingbudget/Budget.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,6 @@ properties:
213213
Optional. If creditTypesTreatment is INCLUDE_SPECIFIED_CREDITS,
214214
this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See a list of acceptable credit type values.
215215
If creditTypesTreatment is not INCLUDE_SPECIFIED_CREDITS, this field must be empty.
216-
217-
**Note:** If the field has a value in the config and needs to be removed, the field has to be an empty array in the config.
218-
default_from_api: true
219216
at_least_one_of:
220217
- 'budget_filter.0.projects'
221218
- 'budget_filter.0.resource_ancestors'
@@ -236,9 +233,6 @@ properties:
236233
the parent account, usage from the parent account will be included.
237234
If the field is omitted, the report will include usage from the parent
238235
account and all subaccounts, if they exist.
239-
240-
**Note:** If the field has a value in the config and needs to be removed, the field has to be an empty array in the config.
241-
default_from_api: true
242236
at_least_one_of:
243237
- 'budget_filter.0.projects'
244238
- 'budget_filter.0.resource_ancestors'

mmv1/products/cloudfunctions2/Function.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ properties:
503503
type: String
504504
description: |
505505
Name of the service associated with a Function.
506-
default_from_api: true
506+
output: true
507507
- name: 'timeoutSeconds'
508508
type: Integer
509509
description: |
@@ -678,6 +678,7 @@ properties:
678678
default_from_api: true
679679
- name: 'eventType'
680680
type: String
681+
required: true
681682
description: 'Required. The type of event to observe.'
682683
- name: 'eventFilters'
683684
type: Array

mmv1/products/cloudrunv2/WorkerPool.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,6 @@ properties:
478478
type: String
479479
description: |-
480480
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
481-
- name: 'dependsOn'
482-
type: Array
483-
description: |-
484-
Containers which should be started before this container. If specified the container will wait to start until all containers with the listed names are healthy.
485-
item_type:
486-
type: String
487481
- name: 'volumes'
488482
type: Array
489483
description: |-

mmv1/products/colab/RuntimeTemplate.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -209,21 +209,3 @@ properties:
209209
If a variable cannot be resolved, the reference in the input string will be unchanged.
210210
The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
211211
references will never be expanded, regardless of whether the variable exists or not.'
212-
- name: 'postStartupScriptConfig'
213-
deprecation_message: '`post_startup_script_config` is deprecated and will be removed in a future major release. New resource creation with this field is unavailable at this time.'
214-
type: NestedObject
215-
description: 'Post startup script config.'
216-
properties:
217-
- name: 'postStartupScript'
218-
type: String
219-
description: 'Post startup script to run after runtime is started.'
220-
- name: 'postStartupScriptUrl'
221-
type: String
222-
description: 'Post startup script url to download. Example: https://bucket/script.sh.'
223-
- name: 'postStartupScriptBehavior'
224-
type: Enum
225-
description: 'Post startup script behavior that defines download and execution behavior.'
226-
enum_values:
227-
- 'RUN_ONCE'
228-
- 'RUN_EVERY_START'
229-
- 'DOWNLOAD_AND_RUN_EVERY_START'

mmv1/products/compute/PacketMirroring.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ properties:
144144
properties:
145145
- name: 'subnetworks'
146146
type: Array
147+
is_set: true
148+
set_hash_func: tpgresource.NestedUrlSetHashFunc
147149
description: |
148150
All instances in one of these subnetworks will be mirrored.
149151
at_least_one_of:
@@ -161,10 +163,13 @@ properties:
161163
The URL of the subnetwork where this rule should be active.
162164
required: true
163165
custom_expand: 'templates/terraform/custom_expand/resourceref_with_validation.go.tmpl'
166+
diff_suppress_func: 'tpgresource.CompareSelfLinkRelativePaths'
164167
resource: 'Subnetwork'
165168
imports: 'selfLink'
166169
- name: 'instances'
167170
type: Array
171+
is_set: true
172+
set_hash_func: tpgresource.NestedUrlSetHashFunc
168173
description: |
169174
All the listed instances will be mirrored. Specify at most 50.
170175
at_least_one_of:
@@ -181,6 +186,7 @@ properties:
181186
The URL of the instances where this rule should be active.
182187
required: true
183188
custom_expand: 'templates/terraform/custom_expand/resourceref_with_validation.go.tmpl'
189+
diff_suppress_func: 'tpgresource.CompareSelfLinkRelativePaths'
184190
resource: 'Instance'
185191
imports: 'selfLink'
186192
- name: 'tags'

mmv1/products/compute/Router.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ properties:
171171
ranges will be advertised in addition to any specified groups.
172172
Leave this field blank to advertise no custom IP ranges.
173173
send_empty_value: true
174-
custom_flatten: 'templates/terraform/custom_flatten/compute_router_range.go.tmpl'
174+
is_set: true
175175
item_type:
176176
type: NestedObject
177177
properties:

0 commit comments

Comments
 (0)