diff --git a/protos/google/cloud/filestore/v1/cloud_filestore_service.proto b/protos/google/cloud/filestore/v1/cloud_filestore_service.proto index 3afd7e4..676fa0b 100644 --- a/protos/google/cloud/filestore/v1/cloud_filestore_service.proto +++ b/protos/google/cloud/filestore/v1/cloud_filestore_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/common/operation_metadata.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -53,7 +54,8 @@ option php_namespace = "Google\\Cloud\\Filestore\\V1"; // * `projects/12345/locations/us-central1/backups/my-backup` service CloudFilestoreManager { option (google.api.default_host) = "file.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists all instances in a project for either a specified location // or for all locations. @@ -76,7 +78,8 @@ service CloudFilestoreManager { // When creating from a backup, the capacity of the new instance needs to be // equal to or larger than the capacity of the backup (and also equal to or // larger than the minimum capacity of the tier). - rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { + rpc CreateInstance(CreateInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/instances" body: "instance" @@ -89,7 +92,8 @@ service CloudFilestoreManager { } // Updates the settings of a specific instance. - rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { + rpc UpdateInstance(UpdateInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{instance.name=projects/*/locations/*/instances/*}" body: "instance" @@ -106,7 +110,8 @@ service CloudFilestoreManager { // The capacity of the instance needs to be equal to or larger than the // capacity of the backup (and also equal to or larger than the minimum // capacity of the tier). - rpc RestoreInstance(RestoreInstanceRequest) returns (google.longrunning.Operation) { + rpc RestoreInstance(RestoreInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/instances/*}:restore" body: "*" @@ -118,7 +123,8 @@ service CloudFilestoreManager { } // Deletes an instance. - rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { + rpc DeleteInstance(DeleteInstanceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/instances/*}" }; @@ -236,9 +242,9 @@ message FileShareConfig { // The resource name of the backup, in the format // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, // that this file share has been restored from. - string source_backup = 8 [(google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - }]; + string source_backup = 8 [ + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } + ]; } // Nfs Export Options. @@ -380,7 +386,8 @@ message Instance { string status_message = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the instance was created. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The service tier of the instance. Tier tier = 8; @@ -401,7 +408,8 @@ message Instance { string etag = 12; // Output only. Reserved for future use. - google.protobuf.BoolValue satisfies_pzs = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.BoolValue satisfies_pzs = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CreateInstanceRequest creates an instance. @@ -430,9 +438,7 @@ message GetInstanceRequest { // `projects/{project_id}/locations/{location}/instances/{instance_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } ]; } @@ -458,21 +464,19 @@ message RestoreInstanceRequest { // `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } ]; - // Required. Name of the file share in the Cloud Filestore instance that the backup - // is being restored to. + // Required. Name of the file share in the Cloud Filestore instance that the + // backup is being restored to. string file_share = 2 [(google.api.field_behavior) = REQUIRED]; oneof source { // The resource name of the backup, in the format // `projects/{project_number}/locations/{location_id}/backups/{backup_id}`. - string source_backup = 3 [(google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - }]; + string source_backup = 3 [ + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } + ]; } } @@ -482,17 +486,15 @@ message DeleteInstanceRequest { // `projects/{project_id}/locations/{location}/instances/{instance_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } ]; } // ListInstancesRequest lists instances. message ListInstancesRequest { - // Required. The project and location for which to retrieve instance information, - // in the format `projects/{project_id}/locations/{location}`. In Cloud - // Filestore, locations map to GCP zones, for example **us-west1-b**. To + // Required. The project and location for which to retrieve instance + // information, in the format `projects/{project_id}/locations/{location}`. In + // Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To // retrieve instance information for all locations, use "-" for the // `{location}` value. string parent = 1 [ @@ -572,7 +574,8 @@ message Backup { State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the backup was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Resource labels to represent user provided metadata. map labels = 5; @@ -580,32 +583,34 @@ message Backup { // Output only. Capacity of the source file share when the backup was created. int64 capacity_gb = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The size of the storage used by the backup. As backups share storage, - // this number is expected to change with backup creation/deletion. + // Output only. The size of the storage used by the backup. As backups share + // storage, this number is expected to change with backup creation/deletion. int64 storage_bytes = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // The resource name of the source Cloud Filestore instance, in the format // `projects/{project_number}/locations/{location_id}/instances/{instance_id}`, // used to create this backup. - string source_instance = 8 [(google.api.resource_reference) = { - type: "file.googleapis.com/Instance" - }]; + string source_instance = 8 [ + (google.api.resource_reference) = { type: "file.googleapis.com/Instance" } + ]; // Name of the file share in the source Cloud Filestore instance that the // backup is created from. string source_file_share = 9; - // Output only. The service tier of the source Cloud Filestore instance that this backup - // is created from. - Instance.Tier source_instance_tier = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The service tier of the source Cloud Filestore instance that + // this backup is created from. + Instance.Tier source_instance_tier = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // 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. + // 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. int64 download_bytes = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Reserved for future use. - google.protobuf.BoolValue satisfies_pzs = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.BoolValue satisfies_pzs = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CreateBackupRequest creates a backup. @@ -639,9 +644,7 @@ message DeleteBackupRequest { // `projects/{project_number}/locations/{location}/backups/{backup_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } ]; } @@ -650,9 +653,10 @@ message UpdateBackupRequest { // Required. A [backup resource][google.cloud.filestore.v1.Backup] Backup backup = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Mask of fields to update. At least one path must be supplied in this - // field. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. Mask of fields to update. At least one path must be supplied in + // this field. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // GetBackupRequest gets the state of a backup. @@ -661,19 +665,17 @@ message GetBackupRequest { // `projects/{project_number}/locations/{location}/backups/{backup_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "file.googleapis.com/Backup" - } + (google.api.resource_reference) = { type: "file.googleapis.com/Backup" } ]; } // ListBackupsRequest lists backups. message ListBackupsRequest { - // Required. The project and location for which to retrieve backup information, - // in the format `projects/{project_number}/locations/{location}`. - // In Cloud Filestore, backup locations map to GCP regions, - // for example **us-west1**. - // To retrieve backup information for all locations, use "-" for the + // Required. The project and location for which to retrieve backup + // information, in the format + // `projects/{project_number}/locations/{location}`. In Cloud Filestore, + // backup locations map to GCP regions, for example **us-west1**. To retrieve + // backup information for all locations, use "-" for the // `{location}` value. string parent = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/samples/generated/v1/cloud_filestore_manager.list_backups.js b/samples/generated/v1/cloud_filestore_manager.list_backups.js index 7d46650..9573833 100644 --- a/samples/generated/v1/cloud_filestore_manager.list_backups.js +++ b/samples/generated/v1/cloud_filestore_manager.list_backups.js @@ -20,11 +20,11 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The project and location for which to retrieve backup information, - * in the format `projects/{project_number}/locations/{location}`. - * In Cloud Filestore, backup locations map to GCP regions, - * for example **us-west1**. - * To retrieve backup information for all locations, use "-" for the + * Required. The project and location for which to retrieve backup + * information, in the format + * `projects/{project_number}/locations/{location}`. In Cloud Filestore, + * backup locations map to GCP regions, for example **us-west1**. To retrieve + * backup information for all locations, use "-" for the * `{location}` value. */ // const parent = 'abc123' diff --git a/samples/generated/v1/cloud_filestore_manager.list_instances.js b/samples/generated/v1/cloud_filestore_manager.list_instances.js index 9acc130..34e9dcf 100644 --- a/samples/generated/v1/cloud_filestore_manager.list_instances.js +++ b/samples/generated/v1/cloud_filestore_manager.list_instances.js @@ -20,9 +20,9 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The project and location for which to retrieve instance information, - * in the format `projects/{project_id}/locations/{location}`. In Cloud - * Filestore, locations map to GCP zones, for example **us-west1-b**. To + * Required. The project and location for which to retrieve instance + * information, in the format `projects/{project_id}/locations/{location}`. In + * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To * retrieve instance information for all locations, use "-" for the * `{location}` value. */ diff --git a/samples/generated/v1/cloud_filestore_manager.restore_instance.js b/samples/generated/v1/cloud_filestore_manager.restore_instance.js index 2e0d5d6..31cd209 100644 --- a/samples/generated/v1/cloud_filestore_manager.restore_instance.js +++ b/samples/generated/v1/cloud_filestore_manager.restore_instance.js @@ -25,8 +25,8 @@ function main(name, fileShare) { */ // const name = 'abc123' /** - * Required. Name of the file share in the Cloud Filestore instance that the backup - * is being restored to. + * Required. Name of the file share in the Cloud Filestore instance that the + * backup is being restored to. */ // const fileShare = 'abc123' /** diff --git a/samples/generated/v1/cloud_filestore_manager.update_backup.js b/samples/generated/v1/cloud_filestore_manager.update_backup.js index 2cef002..4c56850 100644 --- a/samples/generated/v1/cloud_filestore_manager.update_backup.js +++ b/samples/generated/v1/cloud_filestore_manager.update_backup.js @@ -24,8 +24,8 @@ function main(backup, updateMask) { */ // const backup = '' /** - * Required. Mask of fields to update. At least one path must be supplied in this - * field. + * Required. Mask of fields to update. At least one path must be supplied in + * this field. */ // const updateMask = '' diff --git a/src/v1/cloud_filestore_manager_client.ts b/src/v1/cloud_filestore_manager_client.ts index 9838ca9..113c139 100644 --- a/src/v1/cloud_filestore_manager_client.ts +++ b/src/v1/cloud_filestore_manager_client.ts @@ -971,8 +971,8 @@ export class CloudFilestoreManagerClient { * Required. The resource name of the instance, in the format * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. * @param {string} request.fileShare - * Required. Name of the file share in the Cloud Filestore instance that the backup - * is being restored to. + * Required. Name of the file share in the Cloud Filestore instance that the + * backup is being restored to. * @param {string} request.sourceBackup * The resource name of the backup, in the format * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`. @@ -1555,8 +1555,8 @@ export class CloudFilestoreManagerClient { * @param {google.cloud.filestore.v1.Backup} request.backup * Required. A {@link google.cloud.filestore.v1.Backup|backup resource} * @param {google.protobuf.FieldMask} request.updateMask - * Required. Mask of fields to update. At least one path must be supplied in this - * field. + * Required. Mask of fields to update. At least one path must be supplied in + * this field. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1693,9 +1693,9 @@ export class CloudFilestoreManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The project and location for which to retrieve instance information, - * in the format `projects/{project_id}/locations/{location}`. In Cloud - * Filestore, locations map to GCP zones, for example **us-west1-b**. To + * Required. The project and location for which to retrieve instance + * information, in the format `projects/{project_id}/locations/{location}`. In + * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To * retrieve instance information for all locations, use "-" for the * `{location}` value. * @param {number} request.pageSize @@ -1769,9 +1769,9 @@ export class CloudFilestoreManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The project and location for which to retrieve instance information, - * in the format `projects/{project_id}/locations/{location}`. In Cloud - * Filestore, locations map to GCP zones, for example **us-west1-b**. To + * Required. The project and location for which to retrieve instance + * information, in the format `projects/{project_id}/locations/{location}`. In + * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To * retrieve instance information for all locations, use "-" for the * `{location}` value. * @param {number} request.pageSize @@ -1824,9 +1824,9 @@ export class CloudFilestoreManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The project and location for which to retrieve instance information, - * in the format `projects/{project_id}/locations/{location}`. In Cloud - * Filestore, locations map to GCP zones, for example **us-west1-b**. To + * Required. The project and location for which to retrieve instance + * information, in the format `projects/{project_id}/locations/{location}`. In + * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To * retrieve instance information for all locations, use "-" for the * `{location}` value. * @param {number} request.pageSize @@ -1910,11 +1910,11 @@ export class CloudFilestoreManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The project and location for which to retrieve backup information, - * in the format `projects/{project_number}/locations/{location}`. - * In Cloud Filestore, backup locations map to GCP regions, - * for example **us-west1**. - * To retrieve backup information for all locations, use "-" for the + * Required. The project and location for which to retrieve backup + * information, in the format + * `projects/{project_number}/locations/{location}`. In Cloud Filestore, + * backup locations map to GCP regions, for example **us-west1**. To retrieve + * backup information for all locations, use "-" for the * `{location}` value. * @param {number} request.pageSize * The maximum number of items to return. @@ -1985,11 +1985,11 @@ export class CloudFilestoreManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The project and location for which to retrieve backup information, - * in the format `projects/{project_number}/locations/{location}`. - * In Cloud Filestore, backup locations map to GCP regions, - * for example **us-west1**. - * To retrieve backup information for all locations, use "-" for the + * Required. The project and location for which to retrieve backup + * information, in the format + * `projects/{project_number}/locations/{location}`. In Cloud Filestore, + * backup locations map to GCP regions, for example **us-west1**. To retrieve + * backup information for all locations, use "-" for the * `{location}` value. * @param {number} request.pageSize * The maximum number of items to return. @@ -2041,11 +2041,11 @@ export class CloudFilestoreManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The project and location for which to retrieve backup information, - * in the format `projects/{project_number}/locations/{location}`. - * In Cloud Filestore, backup locations map to GCP regions, - * for example **us-west1**. - * To retrieve backup information for all locations, use "-" for the + * Required. The project and location for which to retrieve backup + * information, in the format + * `projects/{project_number}/locations/{location}`. In Cloud Filestore, + * backup locations map to GCP regions, for example **us-west1**. To retrieve + * backup information for all locations, use "-" for the * `{location}` value. * @param {number} request.pageSize * The maximum number of items to return.