Skip to content

Commit 0685563

Browse files
authored
Merge branch 'main' into MemorystoreInstanceReplication
2 parents 9ec3d10 + 23516c6 commit 0685563

File tree

108 files changed

+5194
-150
lines changed

Some content is hidden

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

108 files changed

+5194
-150
lines changed

.ci/infra/terraform/main.tf

+8
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,14 @@ resource "google_project_service_identity" "progressiverollout_sa" {
410410
service = "progressiverollout.googleapis.com"
411411
}
412412

413+
resource "google_project_service_identity" "parametermanager_sa" {
414+
provider = google-beta
415+
depends_on = [module.project-services]
416+
417+
project = google_project.proj.project_id
418+
service = "parametermanager.googleapis.com"
419+
}
420+
413421
# TestAccComposerEnvironment_fixPyPiPackages
414422
# TestAccComposerEnvironmentComposer2_private
415423
# TestAccComposerEnvironment_withEncryptionConfigComposer1

.ci/magician/github/membership_data.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ var (
9696
vacations: []Vacation{},
9797
},
9898
"shuyama1": {
99-
vacations: []Vacation{},
99+
vacations: []Vacation{
100+
{
101+
startDate: newDate(2025, 3, 26),
102+
endDate: newDate(2025, 4, 1),
103+
},
104+
},
100105
},
101106
"SirGitsalot": {
102107
vacations: []Vacation{

mmv1/products/bigqueryreservation/ReservationAssignment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ properties:
8484
- name: 'jobType'
8585
type: String
8686
description: |
87-
Types of job, which could be specified when using the reservation. Possible values: JOB_TYPE_UNSPECIFIED, PIPELINE, QUERY
87+
Types of job, which could be specified when using the reservation. Possible values: JOB_TYPE_UNSPECIFIED, PIPELINE, QUERY, CONTINUOUS
8888
required: true
8989
- name: 'state'
9090
type: String

mmv1/products/cloudfunctions2/Function.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,10 @@ properties:
653653
description: |
654654
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
655655
required: true
656+
- name: 'binaryAuthorizationPolicy'
657+
type: String
658+
description: |
659+
The binary authorization policy to be checked when deploying the Cloud Run service.
656660
- name: 'eventTrigger'
657661
type: NestedObject
658662
description: |

mmv1/products/cloudrun/Service.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ examples:
7676
- name: 'cloud_run_service_gpu'
7777
primary_resource_id: 'default'
7878
primary_resource_name: 'fmt.Sprintf("tf-test-cloudrun-srv%s", context["random_suffix"])'
79-
min_version: 'beta'
8079
vars:
8180
cloud_run_service_name: 'cloudrun-srv'
8281
test_env_vars:
@@ -322,10 +321,14 @@ properties:
322321
for connections to the Revision.
323322
- `run.googleapis.com/startup-cpu-boost` sets whether to allocate extra CPU to containers on startup.
324323
See https://cloud.google.com/sdk/gcloud/reference/run/deploy#--[no-]cpu-boost.
324+
- `run.googleapis.com/network-interfaces` sets [Direct VPC egress](https://cloud.google.com/run/docs/configuring/vpc-direct-vpc#yaml)
325+
for the Revision.
325326
- `run.googleapis.com/vpc-access-connector` sets a [VPC connector](https://cloud.google.com/run/docs/configuring/connecting-vpc#terraform_1)
326327
for the Revision.
327328
- `run.googleapis.com/vpc-access-egress` sets the outbound traffic to send through the VPC connector for this resource.
328329
See https://cloud.google.com/sdk/gcloud/reference/run/deploy#--vpc-egress.
330+
- `run.googleapis.com/gpu-zonal-redundancy-disabled` sets
331+
[GPU zonal redundancy](https://cloud.google.com/run/docs/configuring/services/gpu-zonal-redundancy) for the Revision.
329332
default_from_api: true
330333
diff_suppress_func: 'cloudrunTemplateAnnotationDiffSuppress'
331334
- name: 'name'
@@ -762,7 +765,6 @@ properties:
762765
Node Selector describes the hardware requirements of the resources.
763766
Use the following node selector keys to configure features on a Revision:
764767
- `run.googleapis.com/accelerator` sets the [type of GPU](https://cloud.google.com/run/docs/configuring/services/gpu) required by the Revision to run.
765-
min_version: 'beta'
766768
- name: 'containerConcurrency'
767769
type: Integer
768770
description: |-

mmv1/products/cloudrunv2/Service.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ examples:
9898
- name: 'cloudrunv2_service_gpu'
9999
primary_resource_id: 'default'
100100
primary_resource_name: 'fmt.Sprintf("tf-test-cloudrun-srv%s", context["random_suffix"])'
101-
min_version: 'beta'
102101
vars:
103102
cloud_run_service_name: 'cloudrun-service'
104103
ignore_read_extra:
@@ -960,13 +959,15 @@ properties:
960959
- name: 'nodeSelector'
961960
type: NestedObject
962961
description: Node Selector describes the hardware requirements of the resources.
963-
min_version: 'beta'
964962
properties:
965963
- name: 'accelerator'
966964
type: String
967965
description:
968966
The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU.
969967
required: true
968+
- name: 'gpuZonalRedundancyDisabled'
969+
type: Boolean
970+
description: True if GPU zonal redundancy is disabled on this revision.
970971
- name: 'traffic'
971972
type: Array
972973
description: |-

mmv1/products/compute/BackendService.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ examples:
127127
default_neg_name: 'network-endpoint'
128128
health_check_name: 'health-check'
129129
network_name: 'network'
130+
- name: 'backend_service_tls_settings'
131+
primary_resource_id: 'default'
132+
min_version: 'beta'
133+
vars:
134+
backend_service_name: 'backend-service'
135+
health_check_name: 'health-check'
136+
authentication_name: 'authentication'
130137
parameters:
131138
properties:
132139
- name: 'affinityCookieTtlSec'
@@ -1466,3 +1473,45 @@ properties:
14661473
description: |
14671474
URL to networkservices.ServiceLbPolicy resource.
14681475
Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is global.
1476+
- name: 'tlsSettings'
1477+
type: NestedObject
1478+
description: |
1479+
Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend protocol is SSL, HTTPS or HTTP2.
1480+
min_version: beta
1481+
properties:
1482+
- name: 'sni'
1483+
type: String
1484+
description: |
1485+
Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string as the SNI hostname in the
1486+
TLS connection to the backend, and requires that this string match a Subject Alternative Name (SAN) in the backend's
1487+
server certificate. With a Regional Internet NEG backend, if the SNI is specified here, the load balancer uses it
1488+
regardless of whether the Regional Internet NEG is specified with FQDN or IP address and port.
1489+
- name: 'subjectAltNames'
1490+
type: Array
1491+
description: |
1492+
A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS handshake with the backend.
1493+
When the server presents its X.509 certificate to the Load Balancer, the Load Balancer inspects the certificate's SAN field,
1494+
and requires that at least one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries.
1495+
When both sni and subjectAltNames are specified, the load balancer matches the backend certificate's SAN only to
1496+
subjectAltNames.
1497+
item_type:
1498+
type: NestedObject
1499+
properties:
1500+
- name: 'dnsName'
1501+
type: String
1502+
description: The SAN specified as a DNS Name.
1503+
exactly_one_of:
1504+
- tlsSettings.0.uniform_resource_identifier
1505+
- tlsSettings.0.dns_name
1506+
- name: 'uniformResourceIdentifier'
1507+
type: String
1508+
description: The SAN specified as a URI.
1509+
exactly_one_of:
1510+
- tlsSettings.0.uniform_resource_identifier
1511+
- tlsSettings.0.dns_name
1512+
- name: 'authenticationConfig'
1513+
type: String
1514+
description: |
1515+
Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com namespace.
1516+
Can be used in authenticating TLS connections to the backend, as specified by the authenticationMode field.
1517+
Can only be specified if authenticationMode is not NONE.

mmv1/products/compute/PublicDelegatedPrefix.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ sweeper:
3939
url_substitutions:
4040
- region: "us-central1"
4141
- region: "us-west1"
42+
- region: "us-east1"
4243
examples:
4344
- name: 'public_delegated_prefixes_basic'
4445
primary_resource_id: 'prefixes'
@@ -59,6 +60,16 @@ examples:
5960
# PAPs have very low quota limits and a shared testing range so serialized tests exist in:
6061
# resource_compute_public_advertised_prefix_test.go
6162
exclude_test: true
63+
- name: 'public_delegated_prefix_ipv6_subnet_mode'
64+
vars:
65+
pap_name: "ipv6-pap"
66+
root_pdp_name: "ipv6-root-pdp"
67+
sub_pdp_name: "ipv6-sub-pdp"
68+
test_env_vars:
69+
desc: 'PAP_DESCRIPTION'
70+
# PAPs have very low quota limits and a shared testing range so serialized tests exist in:
71+
# resource_compute_public_advertised_prefix_test.go
72+
exclude_test: true
6273
parameters:
6374
properties:
6475
- name: 'region'
@@ -93,12 +104,14 @@ properties:
93104
type: Enum
94105
description: |
95106
Specifies the mode of this IPv6 PDP. MODE must be one of: DELEGATION,
96-
EXTERNAL_IPV6_FORWARDING_RULE_CREATION.
107+
EXTERNAL_IPV6_FORWARDING_RULE_CREATION and EXTERNAL_IPV6_SUBNETWORK_CREATION.
97108
enum_values:
98109
- 'DELEGATION'
99110
- 'EXTERNAL_IPV6_FORWARDING_RULE_CREATION'
111+
- 'EXTERNAL_IPV6_SUBNETWORK_CREATION'
100112
- name: 'allocatablePrefixLength'
101113
type: Integer
114+
default_from_api: true
102115
description:
103116
The allocatable prefix length supported by this public delegated prefix.
104117
This field is optional and cannot be set for prefixes in DELEGATION mode.

mmv1/products/compute/RegionNetworkEndpointGroup.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ description: |
1919
A regional NEG that can support Serverless Products, proxying traffic to
2020
external backends and providing traffic to the PSC port mapping endpoints.
2121
22-
Recreating a region network endpoint group that's in use by another resource will give a
23-
`resourceInUseByAnotherResource` error. Use `lifecycle.create_before_destroy`
24-
to avoid this type of error.
22+
When in use by a resource that can be updated, recreating a RegionNetworkEndpointGroup
23+
will give a `resourceInUseByAnotherResource` error because Terraform will attempt to
24+
delete the RegionNetworkEndpointGroup first, but an in-use RegionNetworkEndpointGroup
25+
can't be deleted in the API. Use `lifecycle.create_before_destroy` to reorder the plan
26+
and create the new resource first, allowing the deletion to go through successfully.
27+
This is only recommended when strictly necessary, as the `create_before_destroy`
28+
directive can be passed onto further dependencies, creating unexpected plans.
2529
references:
2630
guides:
2731
'Serverless NEGs Official Documentation': 'https://cloud.google.com/load-balancing/docs/negs/serverless-neg-concepts'

mmv1/products/compute/Router.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ custom_code:
4545
custom_diff:
4646
- 'resourceComputeRouterCustomDiff'
4747
sweeper:
48+
prefixes:
49+
- "swg-autogen-router" # Secure Web Proxy(SWP) auto-generated router prefix.
4850
url_substitutions:
4951
- region: "us-central1"
5052
- region: "us-east1"

mmv1/products/compute/UrlMap.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -1729,6 +1729,60 @@ properties:
17291729
prior to redirecting the request. If set to false, the query portion of the
17301730
original URL is retained. Defaults to false.
17311731
default_value: false
1732+
- name: 'customErrorResponsePolicy'
1733+
type: NestedObject
1734+
description: |
1735+
customErrorResponsePolicy specifies how the Load Balancer returns error responses when BackendService or BackendBucket responds with an error.
1736+
min_version: 'beta'
1737+
properties:
1738+
- name: 'errorResponseRule'
1739+
type: Array
1740+
description: |
1741+
Specifies rules for returning error responses.
1742+
In a given policy, if you specify rules for both a range of error codes as well as rules for specific error codes then rules with specific error codes have a higher priority.
1743+
For example, assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series error codes (4XX).
1744+
If the backend service returns a 401, then the rule for 401 will be applied. However if the backend service returns a 403, the rule for 4xx takes effect.
1745+
api_name: errorResponseRules
1746+
item_type:
1747+
type: NestedObject
1748+
properties:
1749+
- name: 'matchResponseCodes'
1750+
type: Array
1751+
description: |
1752+
Valid values include:
1753+
1754+
- A number between 400 and 599: For example 401 or 503, in which case the load balancer applies the policy if the error code exactly matches this value.
1755+
- 5xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 500 to 599.
1756+
- 4xx: Load Balancer will apply the policy if the backend service responds with any response code in the range of 400 to 499.
1757+
1758+
Values must be unique within matchResponseCodes and across all errorResponseRules of CustomErrorResponsePolicy.
1759+
item_type:
1760+
type: String
1761+
- name: 'path'
1762+
type: String
1763+
description: |
1764+
The full path to a file within backendBucket . For example: /errors/defaultError.html
1765+
path must start with a leading slash. path cannot have trailing slashes.
1766+
If the file is not available in backendBucket or the load balancer cannot reach the BackendBucket, a simple Not Found Error is returned to the client.
1767+
The value must be from 1 to 1024 characters
1768+
- name: 'overrideResponseCode'
1769+
type: Integer
1770+
description: |
1771+
The HTTP status code returned with the response containing the custom error content.
1772+
If overrideResponseCode is not supplied, the same response code returned by the original backend bucket or backend service is returned to the client.
1773+
- name: 'errorService'
1774+
type: ResourceRef
1775+
description: |
1776+
The full or partial URL to the BackendBucket resource that contains the custom error content. Examples are:
1777+
1778+
https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket
1779+
compute/v1/projects/project/global/backendBuckets/myBackendBucket
1780+
global/backendBuckets/myBackendBucket
1781+
1782+
If errorService is not specified at lower levels like pathMatcher, pathRule and routeRule, an errorService specified at a higher level in the UrlMap will be used. If UrlMap.defaultCustomErrorResponsePolicy contains one or more errorResponseRules[], it must specify errorService.
1783+
If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, with the original response code (or overrideResponseCode if configured).
1784+
resource: 'BackendBucket'
1785+
imports: 'selfLink'
17321786
- name: 'defaultUrlRedirect'
17331787
type: NestedObject
17341788
# TODO: (mbang) won't work for array path matchers yet, uncomment here once they are supported.

mmv1/products/datastream/ConnectionProfile.yaml

+20-4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ examples:
102102
vars:
103103
source_connection_profile_id: 'source-profile'
104104
exclude_test: true
105+
- name: 'datastream_connection_profile_postgres_secret_manager'
106+
primary_resource_id: 'default'
107+
vars:
108+
source_connection_profile_id: 'source-profile'
105109
parameters:
106110
- name: 'connectionProfileId'
107111
type: String
@@ -169,9 +173,12 @@ properties:
169173
type: String
170174
description: |
171175
Password for the Oracle connection.
172-
required: true
173176
sensitive: true
174177
custom_flatten: 'templates/terraform/custom_flatten/datastream_connection_profile_oracle_profile_password.go.tmpl'
178+
- name: 'secretManagerStoredPassword'
179+
type: String
180+
description: |
181+
A reference to a Secret Manager resource name storing the user's password.
175182
- name: 'databaseService'
176183
type: String
177184
description: |
@@ -234,9 +241,12 @@ properties:
234241
type: String
235242
description: |
236243
Password for the MySQL connection.
237-
required: true
238244
sensitive: true
239245
custom_flatten: 'templates/terraform/custom_flatten/datastream_connection_profile_mysql_profile_password.go.tmpl'
246+
- name: 'secretManagerStoredPassword'
247+
type: String
248+
description: |
249+
A reference to a Secret Manager resource name storing the user's password.
240250
- name: 'sslConfig'
241251
type: NestedObject
242252
description: |
@@ -332,9 +342,12 @@ properties:
332342
type: String
333343
description: |
334344
Password for the PostgreSQL connection.
335-
required: true
336345
sensitive: true
337346
custom_flatten: 'templates/terraform/custom_flatten/datastream_connection_profile_postgresql_profile_password.go.tmpl'
347+
- name: 'secretManagerStoredPassword'
348+
type: String
349+
description: |
350+
A reference to a Secret Manager resource name storing the user's password.
338351
- name: 'database'
339352
type: String
340353
description: |
@@ -439,9 +452,12 @@ properties:
439452
type: String
440453
description: |
441454
Password for the SQL Server connection.
442-
required: true
443455
sensitive: true
444456
custom_flatten: 'templates/terraform/custom_flatten/datastream_connection_profile_sql_server_profile_password.go.tmpl'
457+
- name: 'secretManagerStoredPassword'
458+
type: String
459+
description: |
460+
A reference to a Secret Manager resource name storing the user's password.
445461
- name: 'database'
446462
type: String
447463
description: |

0 commit comments

Comments
 (0)