Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit cf457f5

Browse files
author
[Partner] Alexander Sokolov
committed
GCLOUD2-7928 deprecated mtu param
1 parent f0b4162 commit cf457f5

File tree

10 files changed

+88
-3
lines changed

10 files changed

+88
-3
lines changed

docs/data-sources/gcore_loadbalancer.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ output "view" {
4545

4646
### Optional
4747

48+
- `metadata_k` (String)
49+
- `metadata_kv` (Map of String)
4850
- `project_id` (Number)
4951
- `project_name` (String)
5052
- `region_id` (Number)
@@ -54,6 +56,7 @@ output "view" {
5456

5557
- `id` (String) The ID of this resource.
5658
- `listener` (List of Object) (see [below for nested schema](#nestedatt--listener))
59+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
5760
- `vip_address` (String)
5861
- `vip_port_id` (String)
5962

@@ -68,3 +71,13 @@ Read-Only:
6871
- `protocol_port` (Number)
6972

7073

74+
<a id="nestedatt--metadata_read_only"></a>
75+
### Nested Schema for `metadata_read_only`
76+
77+
Read-Only:
78+
79+
- `key` (String)
80+
- `read_only` (Boolean)
81+
- `value` (String)
82+
83+

docs/data-sources/gcore_loadbalancerv2.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ output "view" {
4545

4646
### Optional
4747

48+
- `metadata_k` (String)
49+
- `metadata_kv` (Map of String)
4850
- `project_id` (Number)
4951
- `project_name` (String)
5052
- `region_id` (Number)
@@ -53,7 +55,17 @@ output "view" {
5355
### Read-Only
5456

5557
- `id` (String) The ID of this resource.
58+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
5659
- `vip_address` (String)
5760
- `vip_port_id` (String)
5861

62+
<a id="nestedatt--metadata_read_only"></a>
63+
### Nested Schema for `metadata_read_only`
64+
65+
Read-Only:
66+
67+
- `key` (String)
68+
- `read_only` (Boolean)
69+
- `value` (String)
70+
5971

docs/data-sources/gcore_volume.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ output "view" {
4545

4646
### Optional
4747

48+
- `metadata_k` (String)
49+
- `metadata_kv` (Map of String)
4850
- `project_id` (Number)
4951
- `project_name` (String)
5052
- `region_id` (Number)
@@ -53,7 +55,17 @@ output "view" {
5355
### Read-Only
5456

5557
- `id` (String) The ID of this resource.
58+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
5659
- `size` (Number)
5760
- `type_name` (String) Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'. Defaults to standard
5861

62+
<a id="nestedatt--metadata_read_only"></a>
63+
### Nested Schema for `metadata_read_only`
64+
65+
Read-Only:
66+
67+
- `key` (String)
68+
- `read_only` (Boolean)
69+
- `value` (String)
70+
5971

docs/resources/gcore_loadbalancer.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ resource "gcore_loadbalancer" "lb" {
4646

4747
- `flavor` (String)
4848
- `last_updated` (String)
49+
- `metadata_map` (Map of String)
4950
- `project_id` (Number)
5051
- `project_name` (String)
5152
- `region_id` (Number)
@@ -57,6 +58,7 @@ resource "gcore_loadbalancer" "lb" {
5758
### Read-Only
5859

5960
- `id` (String) The ID of this resource.
61+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
6062
- `vip_address` (String) Load balancer IP address
6163

6264
<a id="nestedblock--listener"></a>
@@ -90,6 +92,16 @@ Optional:
9092
- `create` (String)
9193
- `delete` (String)
9294

95+
96+
<a id="nestedatt--metadata_read_only"></a>
97+
### Nested Schema for `metadata_read_only`
98+
99+
Read-Only:
100+
101+
- `key` (String)
102+
- `read_only` (Boolean)
103+
- `value` (String)
104+
93105
## Import
94106

95107
Import is supported using the following syntax:

docs/resources/gcore_loadbalancerv2.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ resource "gcore_loadbalancerv2" "lb" {
3636

3737
- `flavor` (String)
3838
- `last_updated` (String)
39+
- `metadata_map` (Map of String)
3940
- `project_id` (Number)
4041
- `project_name` (String)
4142
- `region_id` (Number)
@@ -47,6 +48,7 @@ resource "gcore_loadbalancerv2" "lb" {
4748
### Read-Only
4849

4950
- `id` (String) The ID of this resource.
51+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
5052
- `vip_address` (String) Load balancer IP address
5153

5254
<a id="nestedblock--timeouts"></a>
@@ -57,6 +59,16 @@ Optional:
5759
- `create` (String)
5860
- `delete` (String)
5961

62+
63+
<a id="nestedatt--metadata_read_only"></a>
64+
### Nested Schema for `metadata_read_only`
65+
66+
Read-Only:
67+
68+
- `key` (String)
69+
- `read_only` (Boolean)
70+
- `value` (String)
71+
6072
## Import
6173

6274
Import is supported using the following syntax:

docs/resources/gcore_network.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ resource "gcore_network" "network" {
3838
- `create_router` (Boolean) Create external router to the network, default true
3939
- `last_updated` (String)
4040
- `metadata_map` (Map of String)
41-
- `mtu` (Number)
4241
- `project_id` (Number)
4342
- `project_name` (String)
4443
- `region_id` (Number)
@@ -49,6 +48,7 @@ resource "gcore_network" "network" {
4948

5049
- `id` (String) The ID of this resource.
5150
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
51+
- `mtu` (Number)
5252

5353
<a id="nestedatt--metadata_read_only"></a>
5454
### Nested Schema for `metadata_read_only`

docs/resources/gcore_volume.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ resource "gcore_volume" "volume" {
3737

3838
- `image_id` (String) Mandatory if volume is created from image
3939
- `last_updated` (String)
40+
- `metadata_map` (Map of String)
4041
- `project_id` (Number)
4142
- `project_name` (String)
4243
- `region_id` (Number)
@@ -48,6 +49,16 @@ resource "gcore_volume" "volume" {
4849
### Read-Only
4950

5051
- `id` (String) The ID of this resource.
52+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
53+
54+
<a id="nestedatt--metadata_read_only"></a>
55+
### Nested Schema for `metadata_read_only`
56+
57+
Read-Only:
58+
59+
- `key` (String)
60+
- `read_only` (Boolean)
61+
- `value` (String)
5162

5263
## Import
5364

gcore/resource_gcore_network.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ func resourceNetwork() *schema.Resource {
8181
},
8282
"mtu": &schema.Schema{
8383
Type: schema.TypeInt,
84-
Optional: true,
8584
Computed: true,
8685
},
8786
"type": &schema.Schema{
@@ -145,7 +144,6 @@ func resourceNetworkCreate(ctx context.Context, d *schema.ResourceData, m interf
145144

146145
createOpts := networks.CreateOpts{
147146
Name: d.Get("name").(string),
148-
Mtu: d.Get("mtu").(int),
149147
Type: d.Get("type").(string),
150148
CreateRouter: d.Get("create_router").(bool),
151149
}

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ require (
4747
github.com/hashicorp/hcl/v2 v2.11.1 // indirect
4848
github.com/hashicorp/logutils v1.0.0 // indirect
4949
github.com/hashicorp/terraform-json v0.14.0 // indirect
50+
github.com/hashicorp/terraform-plugin-docs v0.13.0 // indirect
5051
github.com/hashicorp/terraform-plugin-go v0.5.0 // indirect
5152
github.com/hashicorp/terraform-plugin-log v0.2.0 // indirect
5253
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 // indirect

go.sum

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,13 @@ github.com/G-Core/gcorelabscdn-go v0.1.24/go.mod h1:iSGXaTvZBzDHQW+rKFS918BgFVpO
8888
github.com/G-Core/gcorelabscloud-go v0.5.20 h1:pqwzbdRhuJK7TlzvQkWkz2ozGyk2UCuup+WNyOQYeqk=
8989
github.com/G-Core/gcorelabscloud-go v0.5.20/go.mod h1:EFyllSaVpPPIXnU35ALXXXQJhPRmwjShgOGHqHnb2Xk=
9090
github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
91+
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
92+
github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
9193
github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
94+
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
95+
github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60=
9296
github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o=
97+
github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8=
9398
github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
9499
github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
95100
github.com/Microsoft/go-winio v0.5.0 h1:Elr9Wn+sGKPlkaBvwu4mTrxtmOp3F3yV9qhaHbXGjwU=
@@ -138,6 +143,7 @@ github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hC
138143
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
139144
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
140145
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
146+
github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI=
141147
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
142148
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
143149
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
@@ -153,6 +159,7 @@ github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod
153159
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
154160
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
155161
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4=
162+
github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
156163
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
157164
github.com/bmatcuk/doublestar v1.1.5/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE=
158165
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
@@ -489,6 +496,8 @@ github.com/hashicorp/terraform-json v0.12.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv
489496
github.com/hashicorp/terraform-json v0.13.0/go.mod h1:y5OdLBCT+rxbwnpxZs9kGL7R9ExU76+cpdY8zHwoazk=
490497
github.com/hashicorp/terraform-json v0.14.0 h1:sh9iZ1Y8IFJLx+xQiKHGud6/TSUCM0N8e17dKDpqV7s=
491498
github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM=
499+
github.com/hashicorp/terraform-plugin-docs v0.13.0 h1:6e+VIWsVGb6jYJewfzq2ok2smPzZrt1Wlm9koLeKazY=
500+
github.com/hashicorp/terraform-plugin-docs v0.13.0/go.mod h1:W0oCmHAjIlTHBbvtppWHe8fLfZ2BznQbuv8+UD8OucQ=
492501
github.com/hashicorp/terraform-plugin-go v0.4.0/go.mod h1:7u/6nt6vaiwcWE2GuJKbJwNlDFnf5n95xKw4hqIVr58=
493502
github.com/hashicorp/terraform-plugin-go v0.5.0 h1:+gCDdF0hcYCm0YBTxrP4+K1NGIS5ZKZBKDORBewLJmg=
494503
github.com/hashicorp/terraform-plugin-go v0.5.0/go.mod h1:PAVN26PNGpkkmsvva1qfriae5Arky3xl3NfzKa8XFVM=
@@ -505,6 +514,7 @@ github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKe
505514
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ=
506515
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
507516
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
517+
github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw=
508518
github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
509519
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
510520
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
@@ -608,6 +618,7 @@ github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3N
608618
github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
609619
github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
610620
github.com/mitchellh/cli v1.1.2/go.mod h1:6iaV0fGdElS6dPBx0EApTxHrcWvmJphyh2n8YBLPPZ4=
621+
github.com/mitchellh/cli v1.1.4 h1:qj8czE26AU4PbiaPXK5uVmMSM+V5BYsFBiM9HhGRLUA=
611622
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
612623
github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
613624
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
@@ -685,6 +696,7 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
685696
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
686697
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
687698
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
699+
github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo=
688700
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
689701
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
690702
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
@@ -698,6 +710,7 @@ github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6So
698710
github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
699711
github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
700712
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
713+
github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww=
701714
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
702715
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
703716
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
@@ -720,6 +733,7 @@ github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM
720733
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
721734
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
722735
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
736+
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
723737
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
724738
github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
725739
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=

0 commit comments

Comments
 (0)