Skip to content

Commit e0820ea

Browse files
yoshi-automationsofisl
authored andcommitted
feat(file): update the API
#### file:v1 The following keys were added: - schemas.Backup.properties.fileSystemProtocol.description - schemas.Backup.properties.fileSystemProtocol.enum - schemas.Backup.properties.fileSystemProtocol.enumDescriptions - schemas.Backup.properties.fileSystemProtocol.readOnly - schemas.Backup.properties.fileSystemProtocol.type - schemas.Instance.properties.deletionProtectionEnabled.description - schemas.Instance.properties.deletionProtectionEnabled.type - schemas.Instance.properties.deletionProtectionReason.description - schemas.Instance.properties.deletionProtectionReason.type - schemas.Instance.properties.protocol.description - schemas.Instance.properties.protocol.enum - schemas.Instance.properties.protocol.enumDescriptions - schemas.Instance.properties.protocol.type The following keys were changed: - resources.projects.resources.locations.resources.instances.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.instances.methods.promoteReplica.description - schemas.Backup.properties.tags.description - schemas.Instance.properties.replication.description - schemas.Instance.properties.tags.description - schemas.Replication.properties.replicas.description - schemas.Replication.properties.role.enumDescriptions - schemas.Snapshot.properties.tags.description
1 parent c227be2 commit e0820ea

File tree

2 files changed

+70
-17
lines changed

2 files changed

+70
-17
lines changed

discovery/file-v1.json

Lines changed: 47 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"type": "string"
503503
},
504504
"updateMask": {
505-
"description": "Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * \"description\" * \"file_shares\" * \"labels\"",
505+
"description": "Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * \"description\" * \"file_shares\" * \"labels\" * \"performance_config\" * \"deletion_protection_enabled\" * \"deletion_protection_reason\"",
506506
"format": "google-fieldmask",
507507
"location": "query",
508508
"type": "string"
@@ -520,7 +520,7 @@
520520
]
521521
},
522522
"promoteReplica": {
523-
"description": "Promote an standby instance (replica).",
523+
"description": "Promote the standby instance (replica).",
524524
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:promoteReplica",
525525
"httpMethod": "POST",
526526
"id": "file.projects.locations.instances.promoteReplica",
@@ -902,7 +902,7 @@
902902
}
903903
}
904904
},
905-
"revision": "20240716",
905+
"revision": "20240821",
906906
"rootUrl": "https://file.googleapis.com/",
907907
"schemas": {
908908
"Backup": {
@@ -931,6 +931,21 @@
931931
"readOnly": true,
932932
"type": "string"
933933
},
934+
"fileSystemProtocol": {
935+
"description": "Output only. The file system protocol of the source Filestore instance that this backup is created from.",
936+
"enum": [
937+
"FILE_PROTOCOL_UNSPECIFIED",
938+
"NFS_V3",
939+
"NFS_V4_1"
940+
],
941+
"enumDescriptions": [
942+
"FILE_PROTOCOL_UNSPECIFIED serves a \"not set\" default value when a FileProtocol is a separate field in a message.",
943+
"NFS 3.0.",
944+
"NFS 4.1."
945+
],
946+
"readOnly": true,
947+
"type": "string"
948+
},
934949
"kmsKey": {
935950
"description": "Immutable. KMS key name used for data encryption.",
936951
"type": "string"
@@ -1023,7 +1038,7 @@
10231038
"additionalProperties": {
10241039
"type": "string"
10251040
},
1026-
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
1041+
"description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
10271042
"type": "object"
10281043
}
10291044
},
@@ -1410,6 +1425,14 @@
14101425
"readOnly": true,
14111426
"type": "string"
14121427
},
1428+
"deletionProtectionEnabled": {
1429+
"description": "Optional. Indicates whether the instance is protected against deletion.",
1430+
"type": "boolean"
1431+
},
1432+
"deletionProtectionReason": {
1433+
"description": "Optional. The reason for enabling deletion protection.",
1434+
"type": "string"
1435+
},
14131436
"description": {
14141437
"description": "The description of the instance (2048 characters or less).",
14151438
"type": "string"
@@ -1448,9 +1471,23 @@
14481471
},
14491472
"type": "array"
14501473
},
1474+
"protocol": {
1475+
"description": "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`.",
1476+
"enum": [
1477+
"FILE_PROTOCOL_UNSPECIFIED",
1478+
"NFS_V3",
1479+
"NFS_V4_1"
1480+
],
1481+
"enumDescriptions": [
1482+
"FILE_PROTOCOL_UNSPECIFIED serves a \"not set\" default value when a FileProtocol is a separate field in a message.",
1483+
"NFS 3.0.",
1484+
"NFS 4.1."
1485+
],
1486+
"type": "string"
1487+
},
14511488
"replication": {
14521489
"$ref": "Replication",
1453-
"description": "Optional. Replicaition configuration."
1490+
"description": "Optional. Replication configuration."
14541491
},
14551492
"satisfiesPzi": {
14561493
"description": "Output only. Reserved for future use.",
@@ -1520,7 +1557,7 @@
15201557
"additionalProperties": {
15211558
"type": "string"
15221559
},
1523-
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
1560+
"description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
15241561
"type": "object"
15251562
},
15261563
"tier": {
@@ -2001,7 +2038,7 @@
20012038
"id": "Replication",
20022039
"properties": {
20032040
"replicas": {
2004-
"description": "Optional. Replicas configuration on the instance. For now, only a single replica config is supported.",
2041+
"description": "Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.",
20052042
"items": {
20062043
"$ref": "ReplicaConfig"
20072044
},
@@ -2016,8 +2053,8 @@
20162053
],
20172054
"enumDescriptions": [
20182055
"Role not set.",
2019-
"The instance is a Active replication member, functions as the replication source instance.",
2020-
"The instance is a Standby replication member, functions as the replication destination instance."
2056+
"The instance is the `ACTIVE` replication member, functions as the replication source instance.",
2057+
"The instance is the `STANDBY` replication member, functions as the replication destination instance."
20212058
],
20222059
"type": "string"
20232060
}
@@ -2143,7 +2180,7 @@
21432180
"additionalProperties": {
21442181
"type": "string"
21452182
},
2146-
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
2183+
"description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
21472184
"type": "object"
21482185
}
21492186
},

src/apis/file/v1.ts

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ export namespace file_v1 {
144144
* Output only. Amount of bytes that will be downloaded if the backup is restored. This may be different than storage bytes, since sequential backups of the same disk will share storage.
145145
*/
146146
downloadBytes?: string | null;
147+
/**
148+
* Output only. The file system protocol of the source Filestore instance that this backup is created from.
149+
*/
150+
fileSystemProtocol?: string | null;
147151
/**
148152
* Immutable. KMS key name used for data encryption.
149153
*/
@@ -185,7 +189,7 @@ export namespace file_v1 {
185189
*/
186190
storageBytes?: string | null;
187191
/**
188-
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
192+
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
189193
*/
190194
tags?: {[key: string]: string} | null;
191195
}
@@ -478,6 +482,14 @@ export namespace file_v1 {
478482
* Output only. The time when the instance was created.
479483
*/
480484
createTime?: string | null;
485+
/**
486+
* Optional. Indicates whether the instance is protected against deletion.
487+
*/
488+
deletionProtectionEnabled?: boolean | null;
489+
/**
490+
* Optional. The reason for enabling deletion protection.
491+
*/
492+
deletionProtectionReason?: string | null;
481493
/**
482494
* The description of the instance (2048 characters or less).
483495
*/
@@ -507,7 +519,11 @@ export namespace file_v1 {
507519
*/
508520
networks?: Schema$NetworkConfig[];
509521
/**
510-
* Optional. Replicaition configuration.
522+
* 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`.
523+
*/
524+
protocol?: string | null;
525+
/**
526+
* Optional. Replication configuration.
511527
*/
512528
replication?: Schema$Replication;
513529
/**
@@ -531,7 +547,7 @@ export namespace file_v1 {
531547
*/
532548
suspensionReasons?: string[] | null;
533549
/**
534-
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
550+
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
535551
*/
536552
tags?: {[key: string]: string} | null;
537553
/**
@@ -821,7 +837,7 @@ export namespace file_v1 {
821837
*/
822838
export interface Schema$Replication {
823839
/**
824-
* Optional. Replicas configuration on the instance. For now, only a single replica config is supported.
840+
* Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
825841
*/
826842
replicas?: Schema$ReplicaConfig[];
827843
/**
@@ -897,7 +913,7 @@ export namespace file_v1 {
897913
*/
898914
state?: string | null;
899915
/**
900-
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
916+
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
901917
*/
902918
tags?: {[key: string]: string} | null;
903919
}
@@ -2157,7 +2173,7 @@ export namespace file_v1 {
21572173
}
21582174

21592175
/**
2160-
* Promote an standby instance (replica).
2176+
* Promote the standby instance (replica).
21612177
*
21622178
* @param params - Parameters for request
21632179
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2483,7 +2499,7 @@ export namespace file_v1 {
24832499
*/
24842500
name?: string;
24852501
/**
2486-
* Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * "description" * "file_shares" * "labels"
2502+
* Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * "description" * "file_shares" * "labels" * "performance_config" * "deletion_protection_enabled" * "deletion_protection_reason"
24872503
*/
24882504
updateMask?: string;
24892505

0 commit comments

Comments
 (0)