Skip to content

Commit e740723

Browse files
Merge branch 'GoogleCloudPlatform:main' into main
2 parents 5a67add + f20028d commit e740723

27 files changed

Lines changed: 430 additions & 217 deletions

mmv1/products/alloydb/Cluster.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ custom_code:
5959
pre_create: 'templates/terraform/pre_create/alloydb_cluster.go.tmpl'
6060
pre_update: 'templates/terraform/pre_update/alloydb_cluster.go.tmpl'
6161
pre_delete: 'templates/terraform/pre_delete/alloydb_cluster.go.tmpl'
62-
constants: 'templates/terraform/constants/alloydb_cluster.go.tmpl'
6362
tgc_decoder: 'templates/tgc_next/decoders/alloydb_cluster.go.tmpl'
64-
custom_diff:
65-
- 'alloydbClusterCustomizeDiff'
6663
# Skipping the sweeper because we need to force-delete clusters.
6764
exclude_sweeper: true
6865
include_in_tgc_next: true
@@ -326,7 +323,7 @@ properties:
326323
- name: 'initialUser'
327324
type: NestedObject
328325
description: |
329-
Initial user to setup during cluster creation. This must be set for all new Clusters.
326+
Initial user to setup during cluster creation. If unset for new Clusters, a postgres role with null password is created. You will need to create additional users or set the password in order to log in.
330327
ignore_read: true
331328
custom_flatten: 'templates/terraform/custom_flatten/alloydb_cluster_input_user_flatten.go.tmpl'
332329
properties:
@@ -335,13 +332,18 @@ properties:
335332
description: |
336333
The database username.
337334
is_missing_in_cai: true
335+
at_least_one_of:
336+
- 'initial_user.0.user'
337+
- 'initial_user.0.password'
338338
- name: 'password'
339339
type: String
340340
description: |
341341
The initial password for the user.
342-
required: true
343342
sensitive: true
344343
is_missing_in_cai: true
344+
at_least_one_of:
345+
- 'initial_user.0.user'
346+
- 'initial_user.0.password'
345347
- name: 'restoreBackupSource'
346348
type: NestedObject
347349
description: |

mmv1/products/apphub/Service.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ properties:
190190
type: String
191191
description: "The resource name for the Extended Metadata Schema."
192192
output: true
193+
- name: 'identity'
194+
type: NestedObject
195+
description: "The identity associated with the service."
196+
output: true
197+
properties:
198+
- name: 'principal'
199+
type: String
200+
description: "The principal of the identity."
201+
output: true
193202
- name: 'attributes'
194203
type: NestedObject
195204
description: 'Consumer provided attributes.'

mmv1/products/apphub/Workload.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,15 @@ properties:
173173
type: String
174174
description: "The resource name for the Extended Metadata Schema."
175175
output: true
176+
- name: 'identity'
177+
type: NestedObject
178+
description: "The identity associated with the workload."
179+
output: true
180+
properties:
181+
- name: 'principal'
182+
type: String
183+
description: "The principal of the identity."
184+
output: true
176185
- name: 'discoveredWorkload'
177186
type: String
178187
description: 'Immutable. The resource name of the original discovered workload.'

mmv1/products/netapp/HostGroup.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ description: |
1818
Hostgroup is a regional resource and independent of the volumes or any other resource
1919
references:
2020
guides:
21-
'Documentation': ''
22-
api: ''
21+
'Documentation': 'https://docs.cloud.google.com/netapp/volumes/docs/configure-and-use/host-groups/overview'
22+
api: 'https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1/projects.locations.hostGroups'
2323
docs:
2424
id_format: 'projects/{{project}}/locations/{{location}}/hostGroups/{{name}}'
2525
base_url: 'projects/{{project}}/locations/{{location}}/hostGroups'
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Copyright 2025 Google Inc.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
---
15+
# API resource name
16+
name: 'GatewayAdvertisedRoute'
17+
# Resource description for the provider documentation.
18+
description: |
19+
A gateway advertised route is a route that a gateway spoke advertises somewhere.
20+
references:
21+
guides:
22+
'QUICKSTART_TITLE': 'https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/ncc-gateway-overview'
23+
api: 'https://docs.cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest/v1beta/projects.locations.spokes.gatewayAdvertisedRoutes'
24+
min_version: beta
25+
base_url: 'projects/{{project}}/locations/{{location}}/spokes/{{spoke}}/gatewayAdvertisedRoutes'
26+
self_link: 'projects/{{project}}/locations/{{location}}/spokes/{{spoke}}/gatewayAdvertisedRoutes/{{name}}'
27+
create_url: 'projects/{{project}}/locations/{{location}}/spokes/{{spoke}}/gatewayAdvertisedRoutes?gatewayAdvertisedRouteId={{name}}'
28+
immutable: true
29+
autogen_async: true
30+
async:
31+
operation:
32+
base_url: '{{op_id}}'
33+
examples:
34+
- name: 'network_connectivity_gateway_advertised_route_basic'
35+
min_version: beta
36+
primary_resource_id: 'default'
37+
vars:
38+
resource_name: 'gateway-advertised-route-name'
39+
spoke_name: 'spoke-name'
40+
network_name: 'net-spoke'
41+
hub_name: 'hub'
42+
parameters:
43+
- name: 'location'
44+
type: String
45+
required: true
46+
immutable: true
47+
url_param_only: true
48+
description: |
49+
The location for the resource
50+
- name: 'spoke'
51+
type: String
52+
required: true
53+
immutable: true
54+
url_param_only: true
55+
description: |
56+
The name of the spoke
57+
properties:
58+
- name: 'name'
59+
type: String
60+
description: The name of the gateway advertised route. Route names must be unique.
61+
required: true
62+
immutable: true
63+
custom_flatten: 'templates/terraform/custom_flatten/id_from_name.tmpl'
64+
- name: 'createTime'
65+
type: String
66+
description: The time the gateway advertised route was created.
67+
output: true
68+
- name: 'updateTime'
69+
type: String
70+
description: The time the gateway advertised route was last updated.
71+
output: true
72+
- name: 'labels'
73+
type: KeyValueLabels
74+
description: Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
75+
- name: 'description'
76+
type: String
77+
description: An optional description of the gateway advertised route.
78+
- name: 'uniqueId'
79+
type: String
80+
description: |
81+
The Google-generated UUID for the gateway advertised route.
82+
This value is unique across all gateway advertised route resources.
83+
If a gateway advertised route is deleted and another with the same name is created, the new route is assigned a different uniqueId.
84+
output: true
85+
- name: 'state'
86+
type: Enum
87+
description: The current lifecycle state of this gateway advertised route.
88+
enum_values:
89+
- 'STATE_UNSPECIFIED'
90+
- 'CREATING'
91+
- 'ACTIVE'
92+
- 'DELETING'
93+
- 'ACCEPTING'
94+
- 'REJECTING'
95+
- 'UPDATING'
96+
- 'INACTIVE'
97+
- 'OBSOLETE'
98+
- 'FAILED'
99+
output: true
100+
- name: 'ipRange'
101+
type: String
102+
description: |
103+
This route's advertised IP address range. Must be a valid CIDR-formatted prefix.
104+
If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128
105+
immutable: true
106+
- name: 'recipient'
107+
type: Enum
108+
description: 'the recipient of this advertised route'
109+
enum_values:
110+
- 'RECIPIENT_UNSPECIFIED'
111+
- 'ADVERTISE_TO_HUB'
112+
- name: 'priority'
113+
type: Integer
114+
description: |
115+
The priority of this advertised route. You can choose a value from 0 to 65335.
116+
If you don't provide a value, Google Cloud assigns a priority of 100 to the ranges.

mmv1/products/networkconnectivity/Spoke.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ properties:
131131
required: true
132132
immutable: true
133133
diff_suppress_func: 'tpgresource.CompareSelfLinkOrResourceName'
134+
custom_flatten: 'templates/terraform/custom_flatten/id_from_name.tmpl'
134135
- name: 'createTime'
135136
type: String
136137
description: Output only. The time the spoke was created.

mmv1/products/networkservices/ServiceBinding.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ create_url: 'projects/{{project}}/locations/global/serviceBindings?serviceBindin
2525
immutable: true
2626
import_format:
2727
- 'projects/{{project}}/locations/global/serviceBindings/{{name}}'
28+
deprecation_message: >-
29+
Cloud Service Mesh's integration with Service Directory is going to be deprecated.
30+
[Learn more](https://docs.cloud.google.com/service-mesh/docs/service-routing/service-directory-integration-setup).
31+
Creating new service binding resources will be disabled.
2832
timeouts:
2933
insert_minutes: 10
3034
update_minutes: 10
@@ -46,6 +50,7 @@ schema_version: 1
4650
state_upgraders: true
4751
examples:
4852
- name: 'network_services_service_binding_basic'
53+
exclude_test: true
4954
primary_resource_id: 'default'
5055
vars:
5156
resource_name: 'my-service-binding'

mmv1/templates/terraform/constants/alloydb_cluster.go.tmpl

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

mmv1/templates/terraform/constants/workbench_instance.go.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ func resizeWorkbenchInstanceDisk(config *transport_tpg.Config, d *schema.Resourc
237237
UserAgent: userAgent,
238238
Body: diskObj,
239239
Timeout: d.Timeout(schema.TimeoutUpdate),
240+
ErrorRetryPredicates: []transport_tpg.RetryErrorPredicateFunc{transport_tpg.IsWorkbenchQueueError},
240241
})
241242

242243
if err != nil {

mmv1/templates/terraform/examples/alloydb_backup_basic.tf.tmpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ resource "google_alloydb_cluster" "{{$.PrimaryResourceId}}" {
1313
network = google_compute_network.default.id
1414
}
1515

16-
initial_user {
17-
password = "{{index $.Vars "alloydb_cluster_name"}}"
18-
}
19-
2016
deletion_protection = false
2117
}
2218

0 commit comments

Comments
 (0)