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

Commit 0fc41d0

Browse files
author
[Partner] Alexander Sokolov
committed
GCLOUD2-7717 TERMINATED_HTTPS added to resource_gcore_lblistener
1 parent fa617d0 commit 0fc41d0

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

docs/data-sources/gcore_floatingip.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
- `port_id` (String)
4951
- `project_id` (Number)
5052
- `project_name` (String)
@@ -55,7 +57,17 @@ output "view" {
5557

5658
- `fixed_ip_address` (String)
5759
- `id` (String) The ID of this resource.
60+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
5861
- `router_id` (String)
5962
- `status` (String)
6063

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

docs/resources/gcore_floatingip.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ resource "gcore_floatingip" "floating_ip" {
3232

3333
- `fixed_ip_address` (String)
3434
- `last_updated` (String)
35+
- `metadata_map` (Map of String)
3536
- `port_id` (String)
3637
- `project_id` (Number)
3738
- `project_name` (String)
@@ -43,10 +44,20 @@ resource "gcore_floatingip" "floating_ip" {
4344
- `created_at` (String)
4445
- `floating_ip_address` (String)
4546
- `id` (String) The ID of this resource.
47+
- `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only))
4648
- `router_id` (String)
4749
- `status` (String)
4850
- `updated_at` (String)
4951

52+
<a id="nestedatt--metadata_read_only"></a>
53+
### Nested Schema for `metadata_read_only`
54+
55+
Read-Only:
56+
57+
- `key` (String)
58+
- `read_only` (Boolean)
59+
- `value` (String)
60+
5061
## Import
5162

5263
Import is supported using the following syntax:

docs/resources/gcore_lblistener.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ resource "gcore_lblistener" "listener" {
4141

4242
- `loadbalancer_id` (String)
4343
- `name` (String)
44-
- `protocol` (String) Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'
44+
- `protocol` (String) Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS'
4545
- `protocol_port` (Number)
4646

4747
### Optional

gcore/resource_gcore_lblistener.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ func resourceLbListener() *schema.Resource {
9797
Type: schema.TypeString,
9898
Required: true,
9999
ForceNew: true,
100-
Description: "Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'",
100+
Description: "Available values is 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS'",
101101
ValidateDiagFunc: func(val interface{}, key cty.Path) diag.Diagnostics {
102102
v := val.(string)
103103
switch types.ProtocolType(v) {
104-
case types.ProtocolTypeHTTP, types.ProtocolTypeHTTPS, types.ProtocolTypeTCP, types.ProtocolTypeUDP:
104+
case types.ProtocolTypeHTTP, types.ProtocolTypeHTTPS, types.ProtocolTypeTCP, types.ProtocolTypeUDP, types.ProtocolTypeTerminatedHTTPS:
105105
return diag.Diagnostics{}
106106
}
107-
return diag.Errorf("wrong protocol %s, available values is 'HTTP', 'HTTPS', 'TCP', 'UDP'", v)
107+
return diag.Errorf("wrong protocol %s, available values is 'HTTP', 'HTTPS', 'TCP', 'UDP', 'TERMINATED_HTTPS", v)
108108
},
109109
},
110110
"protocol_port": &schema.Schema{

0 commit comments

Comments
 (0)