Skip to content

Commit 0c890d8

Browse files
feat(file): update the api
#### file:v1 The following keys were added: - schemas.Instance.properties.replication.$ref (Total Keys: 1) - schemas.ReplicaConfig (Total Keys: 11) - schemas.Replication (Total Keys: 5) #### file:v1beta1 The following keys were added: - schemas.Instance.properties.replication.$ref (Total Keys: 1) - schemas.ReplicaConfig (Total Keys: 8) - schemas.Replication (Total Keys: 5)
1 parent a81d881 commit 0c890d8

File tree

4 files changed

+271
-2
lines changed

4 files changed

+271
-2
lines changed

docs/dyn/file_v1.projects.locations.instances.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,19 @@ <h3>Method Details</h3>
161161
&quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
162162
},
163163
],
164+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
165+
&quot;replicas&quot;: [ # Optional. Replicas configuration on the instance. For now, only a single replica config is supported.
166+
{ # Replica configuration for the instance.
167+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
168+
&quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The peer instance.
169+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
170+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
171+
&quot;A String&quot;,
172+
],
173+
},
174+
],
175+
&quot;role&quot;: &quot;A String&quot;, # Optional. The replication role.
176+
},
164177
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
165178
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
166179
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
@@ -291,6 +304,19 @@ <h3>Method Details</h3>
291304
&quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
292305
},
293306
],
307+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
308+
&quot;replicas&quot;: [ # Optional. Replicas configuration on the instance. For now, only a single replica config is supported.
309+
{ # Replica configuration for the instance.
310+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
311+
&quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The peer instance.
312+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
313+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
314+
&quot;A String&quot;,
315+
],
316+
},
317+
],
318+
&quot;role&quot;: &quot;A String&quot;, # Optional. The replication role.
319+
},
294320
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
295321
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
296322
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
@@ -362,6 +388,19 @@ <h3>Method Details</h3>
362388
&quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
363389
},
364390
],
391+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
392+
&quot;replicas&quot;: [ # Optional. Replicas configuration on the instance. For now, only a single replica config is supported.
393+
{ # Replica configuration for the instance.
394+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
395+
&quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The peer instance.
396+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
397+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
398+
&quot;A String&quot;,
399+
],
400+
},
401+
],
402+
&quot;role&quot;: &quot;A String&quot;, # Optional. The replication role.
403+
},
365404
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
366405
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
367406
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
@@ -442,6 +481,19 @@ <h3>Method Details</h3>
442481
&quot;reservedIpRange&quot;: &quot;A String&quot;, # Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can&#x27;t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
443482
},
444483
],
484+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
485+
&quot;replicas&quot;: [ # Optional. Replicas configuration on the instance. For now, only a single replica config is supported.
486+
{ # Replica configuration for the instance.
487+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
488+
&quot;peerInstance&quot;: &quot;A String&quot;, # Optional. The peer instance.
489+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
490+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
491+
&quot;A String&quot;,
492+
],
493+
},
494+
],
495+
&quot;role&quot;: &quot;A String&quot;, # Optional. The replication role.
496+
},
445497
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
446498
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
447499
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.

docs/dyn/file_v1beta1.projects.locations.instances.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,19 @@ <h3>Method Details</h3>
184184
},
185185
],
186186
&quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
187+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
188+
&quot;replicas&quot;: [ # Replicas configuration on the instance. For now, only a single replica config is supported.
189+
{ # Replica configuration for the instance.
190+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
191+
&quot;peerInstance&quot;: &quot;A String&quot;, # The peer instance.
192+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
193+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
194+
&quot;A String&quot;,
195+
],
196+
},
197+
],
198+
&quot;role&quot;: &quot;A String&quot;, # Output only. The replication role.
199+
},
187200
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
188201
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
189202
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
@@ -329,6 +342,19 @@ <h3>Method Details</h3>
329342
},
330343
],
331344
&quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
345+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
346+
&quot;replicas&quot;: [ # Replicas configuration on the instance. For now, only a single replica config is supported.
347+
{ # Replica configuration for the instance.
348+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
349+
&quot;peerInstance&quot;: &quot;A String&quot;, # The peer instance.
350+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
351+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
352+
&quot;A String&quot;,
353+
],
354+
},
355+
],
356+
&quot;role&quot;: &quot;A String&quot;, # Output only. The replication role.
357+
},
332358
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
333359
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
334360
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
@@ -415,6 +441,19 @@ <h3>Method Details</h3>
415441
},
416442
],
417443
&quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
444+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
445+
&quot;replicas&quot;: [ # Replicas configuration on the instance. For now, only a single replica config is supported.
446+
{ # Replica configuration for the instance.
447+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
448+
&quot;peerInstance&quot;: &quot;A String&quot;, # The peer instance.
449+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
450+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
451+
&quot;A String&quot;,
452+
],
453+
},
454+
],
455+
&quot;role&quot;: &quot;A String&quot;, # Output only. The replication role.
456+
},
418457
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
419458
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
420459
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.
@@ -510,6 +549,19 @@ <h3>Method Details</h3>
510549
},
511550
],
512551
&quot;protocol&quot;: &quot;A String&quot;, # Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
552+
&quot;replication&quot;: { # Replication specifications. # Optional. Replicaition configuration.
553+
&quot;replicas&quot;: [ # Replicas configuration on the instance. For now, only a single replica config is supported.
554+
{ # Replica configuration for the instance.
555+
&quot;lastActiveSyncTime&quot;: &quot;A String&quot;, # Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
556+
&quot;peerInstance&quot;: &quot;A String&quot;, # The peer instance.
557+
&quot;state&quot;: &quot;A String&quot;, # Output only. The replica state.
558+
&quot;stateReasons&quot;: [ # Output only. Additional information about the replication state, if available.
559+
&quot;A String&quot;,
560+
],
561+
},
562+
],
563+
&quot;role&quot;: &quot;A String&quot;, # Output only. The replication role.
564+
},
513565
&quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
514566
&quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
515567
&quot;state&quot;: &quot;A String&quot;, # Output only. The instance state.

googleapiclient/discovery_cache/documents/file.v1.json

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@
874874
}
875875
}
876876
},
877-
"revision": "20240307",
877+
"revision": "20240511",
878878
"rootUrl": "https://file.googleapis.com/",
879879
"schemas": {
880880
"Backup": {
@@ -1413,6 +1413,10 @@
14131413
},
14141414
"type": "array"
14151415
},
1416+
"replication": {
1417+
"$ref": "Replication",
1418+
"description": "Optional. Replicaition configuration."
1419+
},
14161420
"satisfiesPzi": {
14171421
"description": "Output only. Reserved for future use.",
14181422
"readOnly": true,
@@ -1890,6 +1894,86 @@
18901894
},
18911895
"type": "object"
18921896
},
1897+
"ReplicaConfig": {
1898+
"description": "Replica configuration for the instance.",
1899+
"id": "ReplicaConfig",
1900+
"properties": {
1901+
"lastActiveSyncTime": {
1902+
"description": "Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.",
1903+
"format": "google-datetime",
1904+
"readOnly": true,
1905+
"type": "string"
1906+
},
1907+
"peerInstance": {
1908+
"description": "Optional. The peer instance.",
1909+
"type": "string"
1910+
},
1911+
"state": {
1912+
"description": "Output only. The replica state.",
1913+
"enum": [
1914+
"STATE_UNSPECIFIED",
1915+
"CREATING",
1916+
"READY",
1917+
"REMOVING",
1918+
"FAILED"
1919+
],
1920+
"enumDescriptions": [
1921+
"State not set.",
1922+
"The replica is being created.",
1923+
"The replica is ready.",
1924+
"The replica is being removed.",
1925+
"The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object."
1926+
],
1927+
"readOnly": true,
1928+
"type": "string"
1929+
},
1930+
"stateReasons": {
1931+
"description": "Output only. Additional information about the replication state, if available.",
1932+
"items": {
1933+
"enum": [
1934+
"STATE_REASON_UNSPECIFIED",
1935+
"PEER_INSTANCE_UNREACHABLE"
1936+
],
1937+
"enumDescriptions": [
1938+
"Reason not specified.",
1939+
"The peer instance is unreachable."
1940+
],
1941+
"type": "string"
1942+
},
1943+
"readOnly": true,
1944+
"type": "array"
1945+
}
1946+
},
1947+
"type": "object"
1948+
},
1949+
"Replication": {
1950+
"description": "Replication specifications.",
1951+
"id": "Replication",
1952+
"properties": {
1953+
"replicas": {
1954+
"description": "Optional. Replicas configuration on the instance. For now, only a single replica config is supported.",
1955+
"items": {
1956+
"$ref": "ReplicaConfig"
1957+
},
1958+
"type": "array"
1959+
},
1960+
"role": {
1961+
"description": "Optional. The replication role.",
1962+
"enum": [
1963+
"ROLE_UNSPECIFIED",
1964+
"ACTIVE",
1965+
"STANDBY"
1966+
],
1967+
"enumDescriptions": [
1968+
"Role not set.",
1969+
"The instance is a Active replication member, functions as the replication source instance.",
1970+
"The instance is a Standby replication member, functions as the replication destination instance."
1971+
],
1972+
"type": "string"
1973+
}
1974+
},
1975+
"type": "object"
1976+
},
18931977
"RestoreInstanceRequest": {
18941978
"description": "RestoreInstanceRequest restores an existing instance's file share from a backup.",
18951979
"id": "RestoreInstanceRequest",

googleapiclient/discovery_cache/documents/file.v1beta1.json

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@
10691069
}
10701070
}
10711071
},
1072-
"revision": "20240307",
1072+
"revision": "20240511",
10731073
"rootUrl": "https://file.googleapis.com/",
10741074
"schemas": {
10751075
"Backup": {
@@ -1663,6 +1663,10 @@
16631663
],
16641664
"type": "string"
16651665
},
1666+
"replication": {
1667+
"$ref": "Replication",
1668+
"description": "Optional. Replicaition configuration."
1669+
},
16661670
"satisfiesPzi": {
16671671
"description": "Output only. Reserved for future use.",
16681672
"readOnly": true,
@@ -2209,6 +2213,83 @@
22092213
"properties": {},
22102214
"type": "object"
22112215
},
2216+
"ReplicaConfig": {
2217+
"description": "Replica configuration for the instance.",
2218+
"id": "ReplicaConfig",
2219+
"properties": {
2220+
"lastActiveSyncTime": {
2221+
"description": "Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.",
2222+
"format": "google-datetime",
2223+
"type": "string"
2224+
},
2225+
"peerInstance": {
2226+
"description": "The peer instance.",
2227+
"type": "string"
2228+
},
2229+
"state": {
2230+
"description": "Output only. The replica state.",
2231+
"enum": [
2232+
"STATE_UNSPECIFIED",
2233+
"CREATING",
2234+
"READY",
2235+
"REMOVING",
2236+
"FAILED"
2237+
],
2238+
"enumDescriptions": [
2239+
"State not set.",
2240+
"The replica is being created.",
2241+
"The replica is ready.",
2242+
"The replica is being removed.",
2243+
"The replica is experiencing an issue and might be unusable. You can get further details from the `stateReasons` field of the `ReplicaConfig` object."
2244+
],
2245+
"type": "string"
2246+
},
2247+
"stateReasons": {
2248+
"description": "Output only. Additional information about the replication state, if available.",
2249+
"items": {
2250+
"enum": [
2251+
"STATE_REASON_UNSPECIFIED",
2252+
"PEER_INSTANCE_UNREACHABLE"
2253+
],
2254+
"enumDescriptions": [
2255+
"Reason not specified.",
2256+
"The peer instance is unreachable."
2257+
],
2258+
"type": "string"
2259+
},
2260+
"type": "array"
2261+
}
2262+
},
2263+
"type": "object"
2264+
},
2265+
"Replication": {
2266+
"description": "Replication specifications.",
2267+
"id": "Replication",
2268+
"properties": {
2269+
"replicas": {
2270+
"description": "Replicas configuration on the instance. For now, only a single replica config is supported.",
2271+
"items": {
2272+
"$ref": "ReplicaConfig"
2273+
},
2274+
"type": "array"
2275+
},
2276+
"role": {
2277+
"description": "Output only. The replication role.",
2278+
"enum": [
2279+
"ROLE_UNSPECIFIED",
2280+
"ACTIVE",
2281+
"STANDBY"
2282+
],
2283+
"enumDescriptions": [
2284+
"Role not set.",
2285+
"The instance is a Active replication member, functions as the replication source instance.",
2286+
"The instance is a Standby replication member, functions as the replication destination instance."
2287+
],
2288+
"type": "string"
2289+
}
2290+
},
2291+
"type": "object"
2292+
},
22122293
"RestoreInstanceRequest": {
22132294
"description": "RestoreInstanceRequest restores an existing instance's file share from a backup.",
22142295
"id": "RestoreInstanceRequest",

0 commit comments

Comments
 (0)