You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `Short name of the Mesh resource to be created.`,
28
+
},
29
+
"description": {
30
+
Type: schema.TypeString,
31
+
Optional: true,
32
+
Description: `A free-text description of the resource. Max length 1024 characters.`,
33
+
},
34
+
"interception_port": {
35
+
Type: schema.TypeInt,
36
+
Optional: true,
37
+
Description: `Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the
38
+
specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to
39
+
be redirected to this port regardless of its actual ip:port destination. If unset, a port
40
+
'15001' is used as the interception port. This will is applicable only for sidecar proxy
41
+
deployments.`,
42
+
},
43
+
"labels": {
44
+
Type: schema.TypeMap,
45
+
Optional: true,
46
+
Description: `Set of label tags associated with the Mesh resource.
47
+
48
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
49
+
Please refer to the field 'effective_labels' for all of the labels present on the resource.`,
50
+
Elem: &schema.Schema{Type: schema.TypeString},
51
+
},
52
+
"create_time": {
53
+
Type: schema.TypeString,
54
+
Computed: true,
55
+
Description: `Time the Mesh was created in UTC.`,
56
+
},
57
+
"effective_labels": {
58
+
Type: schema.TypeMap,
59
+
Computed: true,
60
+
Description: `All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.`,
61
+
Elem: &schema.Schema{Type: schema.TypeString},
62
+
},
63
+
"self_link": {
64
+
Type: schema.TypeString,
65
+
Computed: true,
66
+
Description: `Server-defined URL of this resource.`,
67
+
},
68
+
"terraform_labels": {
69
+
Type: schema.TypeMap,
70
+
Computed: true,
71
+
Description: `The combination of labels configured directly on the resource
72
+
and default labels configured on the provider.`,
73
+
Elem: &schema.Schema{Type: schema.TypeString},
74
+
},
75
+
"update_time": {
76
+
Type: schema.TypeString,
77
+
Computed: true,
78
+
Description: `Time the Mesh was updated in UTC.`,
79
+
},
80
+
"project": {
81
+
Type: schema.TypeString,
82
+
Optional: true,
83
+
Computed: true,
84
+
ForceNew: true,
85
+
},
86
+
},
87
+
UseJSONNumber: true,
88
+
}
89
+
}
90
+
91
+
func ResourceNetworkServicesMeshUpgradeV0(_ context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error){
92
+
log.Printf("[DEBUG] Attributes before migration: %#v", rawState)
93
+
if _, ok := rawState["location"]; !ok {
94
+
rawState["location"] = "global"
95
+
}
96
+
log.Printf("[DEBUG] Attributes after migration: %#v", rawState)
0 commit comments