Skip to content

Commit 3aa212a

Browse files
modular-magicianEdward Sun
and
Edward Sun
authored
update maxItems (#7487) (#14041)
* update maxItems * update description --------- Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Edward Sun <[email protected]>
1 parent 82d0575 commit 3aa212a

4 files changed

+12
-9
lines changed

.changelog/7487.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
networkservices: updated maxItems to 25 for fields `expose_headers`,`allow_headers`, `request_header_to_remove`, `request_header_to_add`, `response_header_to_add` and `response_header_to_remove` of `google_network_services_edge_cache_service` and `request_headers_to_add` of `google_network_services_edge_cache_origin`
3+
```

google/resource_network_services_edge_cache_origin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ headers, for request handled by this origin.`,
147147
Optional: true,
148148
Description: `Describes a header to add.
149149
150-
You may add a maximum of 5 request headers.`,
150+
You may add a maximum of 25 request headers.`,
151151
MinItems: 1,
152-
MaxItems: 5,
152+
MaxItems: 25,
153153
Elem: &schema.Resource{
154154
Schema: map[string]*schema.Schema{
155155
"header_name": {

google/resource_network_services_edge_cache_service.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the
263263
Optional: true,
264264
Description: `Describes a header to add.`,
265265
MinItems: 1,
266-
MaxItems: 5,
266+
MaxItems: 25,
267267
Elem: &schema.Resource{
268268
Schema: map[string]*schema.Schema{
269269
"header_name": {
@@ -290,7 +290,7 @@ to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the
290290
Optional: true,
291291
Description: `A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin.`,
292292
MinItems: 1,
293-
MaxItems: 10,
293+
MaxItems: 25,
294294
Elem: &schema.Resource{
295295
Schema: map[string]*schema.Schema{
296296
"header_name": {
@@ -308,7 +308,7 @@ to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the
308308
309309
Response headers are only sent to the client, and do not have an effect on the cache serving the response.`,
310310
MinItems: 1,
311-
MaxItems: 5,
311+
MaxItems: 25,
312312
Elem: &schema.Resource{
313313
Schema: map[string]*schema.Schema{
314314
"header_name": {
@@ -335,7 +335,7 @@ Response headers are only sent to the client, and do not have an effect on the c
335335
Optional: true,
336336
Description: `A list of header names for headers that need to be removed from the request prior to forwarding the request to the origin.`,
337337
MinItems: 1,
338-
MaxItems: 10,
338+
MaxItems: 25,
339339
Elem: &schema.Resource{
340340
Schema: map[string]*schema.Schema{
341341
"header_name": {
@@ -729,7 +729,7 @@ This translates to the Access-Control-Allow-Credentials response header.`,
729729
Type: schema.TypeList,
730730
Optional: true,
731731
Description: `Specifies the content for the Access-Control-Allow-Headers response header.`,
732-
MaxItems: 5,
732+
MaxItems: 25,
733733
Elem: &schema.Schema{
734734
Type: schema.TypeString,
735735
},
@@ -763,7 +763,7 @@ This translates to the Access-Control-Allow-Origin response header.`,
763763
Type: schema.TypeList,
764764
Optional: true,
765765
Description: `Specifies the content for the Access-Control-Allow-Headers response header.`,
766-
MaxItems: 5,
766+
MaxItems: 25,
767767
Elem: &schema.Schema{
768768
Type: schema.TypeString,
769769
},

website/docs/r/network_services_edge_cache_origin.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ The following arguments are supported:
314314
* `request_headers_to_add` -
315315
(Optional)
316316
Describes a header to add.
317-
You may add a maximum of 5 request headers.
317+
You may add a maximum of 25 request headers.
318318
Structure is [documented below](#nested_request_headers_to_add).
319319

320320

0 commit comments

Comments
 (0)