Skip to content

Commit 4c19bad

Browse files
location attribute incorrectly marked as optional for cross-cloud interconnect (#13665) (#22480)
[upstream:b5195e9aebd183d32970fd8e87289a050ec91b97] Signed-off-by: Modular Magician <[email protected]>
1 parent f50db22 commit 4c19bad

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.changelog/13665.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
compute: marked `location` field as required in `google_compute_interconnect` resource
3+
```

google/services/compute/resource_compute_interconnect.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ bundle, not the speed of the entire bundle. Can take one of the following values
8282
- LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics.
8383
- LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics.
8484
- LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics Possible values: ["LINK_TYPE_ETHERNET_10G_LR", "LINK_TYPE_ETHERNET_100G_LR", "LINK_TYPE_ETHERNET_400G_LR4"]`,
85+
},
86+
"location": {
87+
Type: schema.TypeString,
88+
Required: true,
89+
ForceNew: true,
90+
DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
91+
Description: `URL of the InterconnectLocation object that represents where this connection is to be provisioned.
92+
Specifies the location inside Google's Networks.`,
8593
},
8694
"name": {
8795
Type: schema.TypeString,
@@ -132,14 +140,6 @@ method. Each label key/value pair must comply with RFC1035. Label values may be
132140
Please refer to the field 'effective_labels' for all of the labels present on the resource.`,
133141
Elem: &schema.Schema{Type: schema.TypeString},
134142
},
135-
"location": {
136-
Type: schema.TypeString,
137-
Optional: true,
138-
ForceNew: true,
139-
DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
140-
Description: `URL of the InterconnectLocation object that represents where this connection is to be provisioned.
141-
Specifies the location inside Google's Networks, should not be passed in case of cross-cloud interconnect.`,
142-
},
143143
"macsec": {
144144
Type: schema.TypeList,
145145
Optional: true,

website/docs/r/compute_interconnect.html.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ The following arguments are supported:
6060
character must be a lowercase letter, and all following characters must be a dash,
6161
lowercase letter, or digit, except the last character, which cannot be a dash.
6262

63+
* `location` -
64+
(Required)
65+
URL of the InterconnectLocation object that represents where this connection is to be provisioned.
66+
Specifies the location inside Google's Networks.
67+
6368
* `link_type` -
6469
(Required)
6570
Type of link requested. Note that this field indicates the speed of each of the links in the
@@ -89,11 +94,6 @@ The following arguments are supported:
8994
(Optional)
9095
An optional description of this resource. Provide this property when you create the resource.
9196

92-
* `location` -
93-
(Optional)
94-
URL of the InterconnectLocation object that represents where this connection is to be provisioned.
95-
Specifies the location inside Google's Networks, should not be passed in case of cross-cloud interconnect.
96-
9797
* `admin_enabled` -
9898
(Optional)
9999
Administrative status of the interconnect. When this is set to true, the Interconnect is

0 commit comments

Comments
 (0)