Skip to content

Commit 855a833

Browse files
feat(file): update the API
#### file:v1beta1 The following keys were added: - schemas.Instance.properties.backendType.description - schemas.Instance.properties.backendType.enum - schemas.Instance.properties.backendType.enumDescriptions - schemas.Instance.properties.backendType.type The following keys were changed: - schemas.ReplicaConfig.properties.state.enum - schemas.ReplicaConfig.properties.state.enumDescriptions #### file:v1 The following keys were changed: - schemas.ReplicaConfig.properties.state.enum - schemas.ReplicaConfig.properties.state.enumDescriptions
1 parent 83a022e commit 855a833

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

discovery/file-v1.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@
908908
}
909909
}
910910
},
911-
"revision": "20250716",
911+
"revision": "20250731",
912912
"rootUrl": "https://file.googleapis.com/",
913913
"schemas": {
914914
"Backup": {
@@ -2114,14 +2114,16 @@
21142114
"CREATING",
21152115
"READY",
21162116
"REMOVING",
2117-
"FAILED"
2117+
"FAILED",
2118+
"PROMOTING"
21182119
],
21192120
"enumDescriptions": [
21202121
"State not set.",
21212122
"The replica is being created.",
21222123
"The replica is ready.",
21232124
"The replica is being removed.",
2124-
"The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object."
2125+
"The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object.",
2126+
"The replica is being promoted."
21252127
],
21262128
"readOnly": true,
21272129
"type": "string"

discovery/file-v1beta1.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@
10751075
}
10761076
}
10771077
},
1078-
"revision": "20250716",
1078+
"revision": "20250731",
10791079
"rootUrl": "https://file.googleapis.com/",
10801080
"schemas": {
10811081
"Backup": {
@@ -1635,6 +1635,20 @@
16351635
"description": "A Filestore instance.",
16361636
"id": "Instance",
16371637
"properties": {
1638+
"backendType": {
1639+
"description": "Optional. Immutable. Designates the backend type of this instance. Intended to be used by internal tests and allowed customers.",
1640+
"enum": [
1641+
"BACKEND_TYPE_UNSPECIFIED",
1642+
"COMPUTE_BASED_BACKEND",
1643+
"FILESTORE_BACKEND"
1644+
],
1645+
"enumDescriptions": [
1646+
"Backend type not set.",
1647+
"Instance is backed by Compute.",
1648+
"Instance is backed by Filestore."
1649+
],
1650+
"type": "string"
1651+
},
16381652
"capacityGb": {
16391653
"description": "The storage capacity of the instance in gigabytes (GB = 1024^3 bytes). This capacity can be increased up to `max_capacity_gb` GB in multipliers of `capacity_step_size_gb` GB.",
16401654
"format": "int64",
@@ -2433,14 +2447,16 @@
24332447
"CREATING",
24342448
"READY",
24352449
"REMOVING",
2436-
"FAILED"
2450+
"FAILED",
2451+
"PROMOTING"
24372452
],
24382453
"enumDescriptions": [
24392454
"State not set.",
24402455
"The replica is being created.",
24412456
"The replica is ready.",
24422457
"The replica is being removed.",
2443-
"The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object."
2458+
"The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object.",
2459+
"The replica is being promoted."
24442460
],
24452461
"type": "string"
24462462
},

src/apis/file/v1beta1.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ export namespace file_v1beta1 {
504504
* A Filestore instance.
505505
*/
506506
export interface Schema$Instance {
507+
/**
508+
* Optional. Immutable. Designates the backend type of this instance. Intended to be used by internal tests and allowed customers.
509+
*/
510+
backendType?: string | null;
507511
/**
508512
* The storage capacity of the instance in gigabytes (GB = 1024^3 bytes). This capacity can be increased up to `max_capacity_gb` GB in multipliers of `capacity_step_size_gb` GB.
509513
*/
@@ -2456,6 +2460,7 @@ export namespace file_v1beta1 {
24562460
* requestBody: {
24572461
* // request body parameters
24582462
* // {
2463+
* // "backendType": "my_backendType",
24592464
* // "capacityGb": "my_capacityGb",
24602465
* // "capacityStepSizeGb": "my_capacityStepSizeGb",
24612466
* // "createTime": "my_createTime",
@@ -2772,6 +2777,7 @@ export namespace file_v1beta1 {
27722777
*
27732778
* // Example response
27742779
* // {
2780+
* // "backendType": "my_backendType",
27752781
* // "capacityGb": "my_capacityGb",
27762782
* // "capacityStepSizeGb": "my_capacityStepSizeGb",
27772783
* // "createTime": "my_createTime",
@@ -3084,6 +3090,7 @@ export namespace file_v1beta1 {
30843090
* requestBody: {
30853091
* // request body parameters
30863092
* // {
3093+
* // "backendType": "my_backendType",
30873094
* // "capacityGb": "my_capacityGb",
30883095
* // "capacityStepSizeGb": "my_capacityStepSizeGb",
30893096
* // "createTime": "my_createTime",

0 commit comments

Comments
 (0)