Skip to content

Commit cd9ea9f

Browse files
feat(file): update the API
#### file:v1beta1 The following keys were added: - schemas.Instance.properties.deletionProtectionEnabled.description - schemas.Instance.properties.deletionProtectionEnabled.type - schemas.Instance.properties.deletionProtectionReason.description - schemas.Instance.properties.deletionProtectionReason.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.ManagedActiveDirectoryConfig.description - schemas.ManagedActiveDirectoryConfig.properties.computer.description - schemas.Replication.properties.replicas.description - schemas.Replication.properties.role.enumDescriptions - schemas.Snapshot.properties.tags.description
1 parent 50e9ac1 commit cd9ea9f

File tree

2 files changed

+37
-21
lines changed

2 files changed

+37
-21
lines changed

discovery/file-v1beta1.json

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
"type": "string"
503503
},
504504
"updateMask": {
505-
"description": "Required. 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\" * \"directory_services\" * \"file_shares\" * \"labels\"",
505+
"description": "Required. 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\" * \"directory_services\" * \"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": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:promoteReplica",
525525
"httpMethod": "POST",
526526
"id": "file.projects.locations.instances.promoteReplica",
@@ -1069,7 +1069,7 @@
10691069
}
10701070
}
10711071
},
1072-
"revision": "20240716",
1072+
"revision": "20240821",
10731073
"rootUrl": "https://file.googleapis.com/",
10741074
"schemas": {
10751075
"Backup": {
@@ -1205,7 +1205,7 @@
12051205
"additionalProperties": {
12061206
"type": "string"
12071207
},
1208-
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
1208+
"description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
12091209
"type": "object"
12101210
}
12111211
},
@@ -1614,6 +1614,14 @@
16141614
"readOnly": true,
16151615
"type": "string"
16161616
},
1617+
"deletionProtectionEnabled": {
1618+
"description": "Optional. Indicates whether the instance is protected against deletion.",
1619+
"type": "boolean"
1620+
},
1621+
"deletionProtectionReason": {
1622+
"description": "Optional. The reason for enabling deletion protection.",
1623+
"type": "string"
1624+
},
16171625
"description": {
16181626
"description": "The description of the instance (2048 characters or less).",
16191627
"type": "string"
@@ -1687,7 +1695,7 @@
16871695
},
16881696
"replication": {
16891697
"$ref": "Replication",
1690-
"description": "Optional. Replicaition configuration."
1698+
"description": "Optional. Replication configuration."
16911699
},
16921700
"satisfiesPzi": {
16931701
"description": "Output only. Reserved for future use.",
@@ -1757,7 +1765,7 @@
17571765
"additionalProperties": {
17581766
"type": "string"
17591767
},
1760-
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
1768+
"description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
17611769
"type": "object"
17621770
},
17631771
"tier": {
@@ -2018,11 +2026,11 @@
20182026
"type": "object"
20192027
},
20202028
"ManagedActiveDirectoryConfig": {
2021-
"description": "ManagedActiveDirectoryConfig contains all the parameters for connecting to Managed Active Directory.",
2029+
"description": "ManagedActiveDirectoryConfig contains all the parameters for connecting to Managed Service for Microsoft Active Directory (Managed Microsoft AD).",
20222030
"id": "ManagedActiveDirectoryConfig",
20232031
"properties": {
20242032
"computer": {
2025-
"description": "Required. The computer name is used as a prefix to the mount remote target. Example: if the computer is `my-computer`, the mount command will look like: `$mount -o vers=4.1,sec=krb5 my-computer.filestore.: `.",
2033+
"description": "Required. The computer name is used as a prefix in the command to mount the remote target. For example: if the computer is `my-computer`, the mount command will look like: `$mount -o vers=4.1,sec=krb5 my-computer.filestore.: `.",
20262034
"type": "string"
20272035
},
20282036
"domain": {
@@ -2296,7 +2304,7 @@
22962304
"id": "Replication",
22972305
"properties": {
22982306
"replicas": {
2299-
"description": "Replicas configuration on the instance. For now, only a single replica config is supported.",
2307+
"description": "Replication configuration for the replica instance associated with this instance. Only a single replica is supported.",
23002308
"items": {
23012309
"$ref": "ReplicaConfig"
23022310
},
@@ -2311,8 +2319,8 @@
23112319
],
23122320
"enumDescriptions": [
23132321
"Role not set.",
2314-
"The instance is a Active replication member, functions as the replication source instance.",
2315-
"The instance is a Standby replication member, functions as the replication destination instance."
2322+
"The instance is the `ACTIVE` replication member, functions as the replication source instance.",
2323+
"The instance is the `STANDBY` replication member, functions as the replication destination instance."
23162324
],
23172325
"type": "string"
23182326
}
@@ -2509,7 +2517,7 @@
25092517
"additionalProperties": {
25102518
"type": "string"
25112519
},
2512-
"description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
2520+
"description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
25132521
"type": "object"
25142522
}
25152523
},

src/apis/file/v1beta1.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export namespace file_v1beta1 {
189189
*/
190190
storageBytes?: string | null;
191191
/**
192-
* 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"
193193
*/
194194
tags?: {[key: string]: string} | null;
195195
}
@@ -499,6 +499,14 @@ export namespace file_v1beta1 {
499499
* Output only. The time when the instance was created.
500500
*/
501501
createTime?: string | null;
502+
/**
503+
* Optional. Indicates whether the instance is protected against deletion.
504+
*/
505+
deletionProtectionEnabled?: boolean | null;
506+
/**
507+
* Optional. The reason for enabling deletion protection.
508+
*/
509+
deletionProtectionReason?: string | null;
502510
/**
503511
* The description of the instance (2048 characters or less).
504512
*/
@@ -548,7 +556,7 @@ export namespace file_v1beta1 {
548556
*/
549557
protocol?: string | null;
550558
/**
551-
* Optional. Replicaition configuration.
559+
* Optional. Replication configuration.
552560
*/
553561
replication?: Schema$Replication;
554562
/**
@@ -572,7 +580,7 @@ export namespace file_v1beta1 {
572580
*/
573581
suspensionReasons?: string[] | null;
574582
/**
575-
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
583+
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
576584
*/
577585
tags?: {[key: string]: string} | null;
578586
/**
@@ -742,11 +750,11 @@ export namespace file_v1beta1 {
742750
weeklyCycle?: Schema$WeeklyCycle;
743751
}
744752
/**
745-
* ManagedActiveDirectoryConfig contains all the parameters for connecting to Managed Active Directory.
753+
* ManagedActiveDirectoryConfig contains all the parameters for connecting to Managed Service for Microsoft Active Directory (Managed Microsoft AD).
746754
*/
747755
export interface Schema$ManagedActiveDirectoryConfig {
748756
/**
749-
* Required. The computer name is used as a prefix to the mount remote target. Example: if the computer is `my-computer`, the mount command will look like: `$mount -o vers=4.1,sec=krb5 my-computer.filestore.: `.
757+
* Required. The computer name is used as a prefix in the command to mount the remote target. For example: if the computer is `my-computer`, the mount command will look like: `$mount -o vers=4.1,sec=krb5 my-computer.filestore.: `.
750758
*/
751759
computer?: string | null;
752760
/**
@@ -896,7 +904,7 @@ export namespace file_v1beta1 {
896904
*/
897905
export interface Schema$Replication {
898906
/**
899-
* Replicas configuration on the instance. For now, only a single replica config is supported.
907+
* Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
900908
*/
901909
replicas?: Schema$ReplicaConfig[];
902910
/**
@@ -1017,7 +1025,7 @@ export namespace file_v1beta1 {
10171025
*/
10181026
state?: string | null;
10191027
/**
1020-
* Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
1028+
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
10211029
*/
10221030
tags?: {[key: string]: string} | null;
10231031
}
@@ -2281,7 +2289,7 @@ export namespace file_v1beta1 {
22812289
}
22822290

22832291
/**
2284-
* Promote an standby instance (replica).
2292+
* Promote the standby instance (replica).
22852293
*
22862294
* @param params - Parameters for request
22872295
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2610,7 +2618,7 @@ export namespace file_v1beta1 {
26102618
*/
26112619
name?: string;
26122620
/**
2613-
* Required. 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" * "directory_services" * "file_shares" * "labels"
2621+
* Required. 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" * "directory_services" * "file_shares" * "labels" * "performance_config" * "deletion_protection_enabled" * "deletion_protection_reason"
26142622
*/
26152623
updateMask?: string;
26162624

0 commit comments

Comments
 (0)