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
* Move tier to string
* Add note on possible values
* Add note for beta-only on enterprise
* Starting to move to location
* Add precreate
* Write state migration
* Use location in examples
* Use upgrade state function instead of migrate
* Fix linter
* Update validator test to use location
* Update TFV test config to use location
Signed-off-by: Modular Magician <[email protected]>
Description: `The service tier of the instance. Possible values: ["TIER_UNSPECIFIED", "STANDARD", "PREMIUM", "BASIC_HDD", "BASIC_SSD", "HIGH_SCALE_SSD"]`,
127
-
},
128
-
"zone": {
129
-
Type: schema.TypeString,
130
-
Required: true,
131
-
ForceNew: true,
132
-
Description: `The name of the Filestore zone of the instance.`,
132
+
Type: schema.TypeString,
133
+
Required: true,
134
+
ForceNew: true,
135
+
Description: `The service tier of the instance.
136
+
Possible values include: STANDARD, PREMIUM, BASIC_HDD, BASIC_SSD, HIGH_SCALE_SSD and ENTERPRISE (beta only)`,
133
137
},
134
138
"description": {
135
139
Type: schema.TypeString,
@@ -142,6 +146,23 @@ addresses reserved for this instance.`,
142
146
Description: `Resource labels to represent user-provided metadata.`,
143
147
Elem: &schema.Schema{Type: schema.TypeString},
144
148
},
149
+
"location": {
150
+
Type: schema.TypeString,
151
+
Computed: true,
152
+
Optional: true,
153
+
ForceNew: true,
154
+
Description: `The name of the location of the instance. This can be a region for ENTERPRISE tier instances.`,
155
+
ExactlyOneOf: []string{},
156
+
},
157
+
"zone": {
158
+
Type: schema.TypeString,
159
+
Computed: true,
160
+
Optional: true,
161
+
Deprecated: "Deprecated in favor of location.",
162
+
ForceNew: true,
163
+
Description: `The name of the Filestore zone of the instance.`,
164
+
ExactlyOneOf: []string{},
165
+
},
145
166
"create_time": {
146
167
Type: schema.TypeString,
147
168
Computed: true,
@@ -210,7 +231,7 @@ func resourceFilestoreInstanceCreate(d *schema.ResourceData, meta interface{}) e
Description: `Either READ_ONLY, for allowing only read requests on the exported directory,
776
+
or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE. Default value: "READ_WRITE" Possible values: ["READ_ONLY", "READ_WRITE"]`,
777
+
Default: "READ_WRITE",
778
+
},
779
+
"anon_gid": {
780
+
Type: schema.TypeInt,
781
+
Optional: true,
782
+
Description: `An integer representing the anonymous group id with a default value of 65534.
783
+
Anon_gid may only be set with squashMode of ROOT_SQUASH. An error will be returned
784
+
if this field is specified for other squashMode settings.`,
785
+
},
786
+
"anon_uid": {
787
+
Type: schema.TypeInt,
788
+
Optional: true,
789
+
Description: `An integer representing the anonymous user id with a default value of 65534.
790
+
Anon_uid may only be set with squashMode of ROOT_SQUASH. An error will be returned
791
+
if this field is specified for other squashMode settings.`,
792
+
},
793
+
"ip_ranges": {
794
+
Type: schema.TypeList,
795
+
Optional: true,
796
+
Description: `List of either IPv4 addresses, or ranges in CIDR notation which may mount the file share.
797
+
Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned.
798
+
The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.`,
Description: `The service tier of the instance. Possible values: ["TIER_UNSPECIFIED", "STANDARD", "PREMIUM", "BASIC_HDD", "BASIC_SSD", "HIGH_SCALE_SSD"]`,
883
+
},
884
+
"zone": {
885
+
Type: schema.TypeString,
886
+
Required: true,
887
+
ForceNew: true,
888
+
Description: `The name of the Filestore zone of the instance.`,
889
+
},
890
+
"description": {
891
+
Type: schema.TypeString,
892
+
Optional: true,
893
+
Description: `A description of the instance.`,
894
+
},
895
+
"labels": {
896
+
Type: schema.TypeMap,
897
+
Optional: true,
898
+
Description: `Resource labels to represent user-provided metadata.`,
899
+
Elem: &schema.Schema{Type: schema.TypeString},
900
+
},
901
+
"create_time": {
902
+
Type: schema.TypeString,
903
+
Computed: true,
904
+
Description: `Creation timestamp in RFC3339 text format.`,
905
+
},
906
+
"etag": {
907
+
Type: schema.TypeString,
908
+
Computed: true,
909
+
Description: `Server-specified ETag for the instance resource to prevent
910
+
simultaneous updates from overwriting each other.`,
0 commit comments