diff --git a/packages/google-cloud-filestore/samples/generated/v1/snippet_metadata.google.cloud.filestore.v1.json b/packages/google-cloud-filestore/samples/generated/v1/snippet_metadata.google.cloud.filestore.v1.json index 8ff56c35917..9c47f13309e 100644 --- a/packages/google-cloud-filestore/samples/generated/v1/snippet_metadata.google.cloud.filestore.v1.json +++ b/packages/google-cloud-filestore/samples/generated/v1/snippet_metadata.google.cloud.filestore.v1.json @@ -1,519 +1,519 @@ { - "clientLibrary": { - "name": "nodejs-filestore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.filestore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "file_v1_generated_CloudFilestoreManager_ListInstances_async", - "title": "CloudFilestoreManager listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all instances in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.ListInstancesResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListInstances", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } + "clientLibrary": { + "name": "nodejs-filestore", + "version": "1.1.2", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.filestore.v1", + "version": "v1" + } + ] }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_GetInstance_async", - "title": "CloudFilestoreManager getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.Instance", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_ListInstances_async", + "title": "CloudFilestoreManager listInstances Sample", + "origin": "API_DEFINITION", + "description": " Lists all instances in a project for either a specified location or for all locations.", + "canonical": true, + "file": "cloud_filestore_manager.list_instances.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListInstances", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1.ListInstancesResponse", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListInstances", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_CreateInstance_async", - "title": "CloudFilestoreManager createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance. 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).", - "canonical": true, - "file": "cloud_filestore_manager.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_GetInstance_async", + "title": "CloudFilestoreManager getInstance Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of a specific instance.", + "canonical": true, + "file": "cloud_filestore_manager.get_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1.Instance", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_UpdateInstance_async", - "title": "CloudFilestoreManager updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_CreateInstance_async", + "title": "CloudFilestoreManager createInstance Sample", + "origin": "API_DEFINITION", + "description": " Creates an instance. 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).", + "canonical": true, + "file": "cloud_filestore_manager.create_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateInstance", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "instance_id", + "type": "TYPE_STRING" + }, + { + "name": "instance", + "type": ".google.cloud.filestore.v1.Instance" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_RestoreInstance_async", - "title": "CloudFilestoreManager restoreInstance Sample", - "origin": "API_DEFINITION", - "description": " Restores an existing instance's file share from a backup. 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).", - "canonical": true, - "file": "cloud_filestore_manager.restore_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "file_share", - "type": "TYPE_STRING" - }, - { - "name": "source_backup", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_UpdateInstance_async", + "title": "CloudFilestoreManager updateInstance Sample", + "origin": "API_DEFINITION", + "description": " Updates the settings of a specific instance.", + "canonical": true, + "file": "cloud_filestore_manager.update_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstance", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "instance", + "type": ".google.cloud.filestore.v1.Instance" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_DeleteInstance_async", - "title": "CloudFilestoreManager deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes an instance.", - "canonical": true, - "file": "cloud_filestore_manager.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_RestoreInstance_async", + "title": "CloudFilestoreManager restoreInstance Sample", + "origin": "API_DEFINITION", + "description": " Restores an existing instance's file share from a backup. 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).", + "canonical": true, + "file": "cloud_filestore_manager.restore_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RestoreInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "file_share", + "type": "TYPE_STRING" + }, + { + "name": "source_backup", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "RestoreInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_ListBackups_async", - "title": "CloudFilestoreManager listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.ListBackupsResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_DeleteInstance_async", + "title": "CloudFilestoreManager deleteInstance Sample", + "origin": "API_DEFINITION", + "description": " Deletes an instance.", + "canonical": true, + "file": "cloud_filestore_manager.delete_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListBackups", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_GetBackup_async", - "title": "CloudFilestoreManager getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.Backup", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_ListBackups_async", + "title": "CloudFilestoreManager listBackups Sample", + "origin": "API_DEFINITION", + "description": " Lists all backups in a project for either a specified location or for all locations.", + "canonical": true, + "file": "cloud_filestore_manager.list_backups.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListBackups", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListBackups", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1.ListBackupsResponse", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListBackups", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_CreateBackup_async", - "title": "CloudFilestoreManager createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a backup.", - "canonical": true, - "file": "cloud_filestore_manager.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.filestore.v1.Backup" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_GetBackup_async", + "title": "CloudFilestoreManager getBackup Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of a specific backup.", + "canonical": true, + "file": "cloud_filestore_manager.get_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetBackup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1.Backup", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_DeleteBackup_async", - "title": "CloudFilestoreManager deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a backup.", - "canonical": true, - "file": "cloud_filestore_manager.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_CreateBackup_async", + "title": "CloudFilestoreManager createBackup Sample", + "origin": "API_DEFINITION", + "description": " Creates a backup.", + "canonical": true, + "file": "cloud_filestore_manager.create_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateBackup", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "backup", + "type": ".google.cloud.filestore.v1.Backup" + }, + { + "name": "backup_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_UpdateBackup_async", - "title": "CloudFilestoreManager updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.cloud.filestore.v1.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + "regionTag": "file_v1_generated_CloudFilestoreManager_DeleteBackup_async", + "title": "CloudFilestoreManager deleteBackup Sample", + "origin": "API_DEFINITION", + "description": " Deletes a backup.", + "canonical": true, + "file": "cloud_filestore_manager.delete_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } + { + "regionTag": "file_v1_generated_CloudFilestoreManager_UpdateBackup_async", + "title": "CloudFilestoreManager updateBackup Sample", + "origin": "API_DEFINITION", + "description": " Updates the settings of a specific backup.", + "canonical": true, + "file": "cloud_filestore_manager.update_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackup", + "async": true, + "parameters": [ + { + "name": "backup", + "type": ".google.cloud.filestore.v1.Backup" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata.google.cloud.filestore.v1beta1.json b/packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata.google.cloud.filestore.v1beta1.json index 319df898695..de48671338a 100644 --- a/packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata.google.cloud.filestore.v1beta1.json +++ b/packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata.google.cloud.filestore.v1beta1.json @@ -1,523 +1,523 @@ { - "clientLibrary": { - "name": "nodejs-filestore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.filestore.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListInstances_async", - "title": "CloudFilestoreManager listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all instances in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.ListInstancesResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstances", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } + "clientLibrary": { + "name": "nodejs-filestore", + "version": "1.1.2", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.filestore.v1beta1", + "version": "v1beta1" + } + ] }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetInstance_async", - "title": "CloudFilestoreManager getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.Instance", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListInstances_async", + "title": "CloudFilestoreManager listInstances Sample", + "origin": "API_DEFINITION", + "description": " Lists all instances in a project for either a specified location or for all locations.", + "canonical": true, + "file": "cloud_filestore_manager.list_instances.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstances", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1beta1.ListInstancesResponse", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstances", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateInstance_async", - "title": "CloudFilestoreManager createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance. 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).", - "canonical": true, - "file": "cloud_filestore_manager.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetInstance_async", + "title": "CloudFilestoreManager getInstance Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of a specific instance.", + "canonical": true, + "file": "cloud_filestore_manager.get_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1beta1.Instance", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateInstance_async", - "title": "CloudFilestoreManager updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateInstance_async", + "title": "CloudFilestoreManager createInstance Sample", + "origin": "API_DEFINITION", + "description": " Creates an instance. 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).", + "canonical": true, + "file": "cloud_filestore_manager.create_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstance", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "instance_id", + "type": "TYPE_STRING" + }, + { + "name": "instance", + "type": ".google.cloud.filestore.v1beta1.Instance" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_RestoreInstance_async", - "title": "CloudFilestoreManager restoreInstance Sample", - "origin": "API_DEFINITION", - "description": " Restores an existing instance's file share from a backup. 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).", - "canonical": true, - "file": "cloud_filestore_manager.restore_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "file_share", - "type": "TYPE_STRING" - }, - { - "name": "source_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "source_backup", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateInstance_async", + "title": "CloudFilestoreManager updateInstance Sample", + "origin": "API_DEFINITION", + "description": " Updates the settings of a specific instance.", + "canonical": true, + "file": "cloud_filestore_manager.update_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstance", + "async": true, + "parameters": [ + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "instance", + "type": ".google.cloud.filestore.v1beta1.Instance" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteInstance_async", - "title": "CloudFilestoreManager deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes an instance.", - "canonical": true, - "file": "cloud_filestore_manager.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_RestoreInstance_async", + "title": "CloudFilestoreManager restoreInstance Sample", + "origin": "API_DEFINITION", + "description": " Restores an existing instance's file share from a backup. 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).", + "canonical": true, + "file": "cloud_filestore_manager.restore_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RestoreInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "file_share", + "type": "TYPE_STRING" + }, + { + "name": "source_snapshot", + "type": "TYPE_STRING" + }, + { + "name": "source_backup", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "RestoreInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListBackups_async", - "title": "CloudFilestoreManager listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.ListBackupsResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteInstance_async", + "title": "CloudFilestoreManager deleteInstance Sample", + "origin": "API_DEFINITION", + "description": " Deletes an instance.", + "canonical": true, + "file": "cloud_filestore_manager.delete_instance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstance", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstance", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackups", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetBackup_async", - "title": "CloudFilestoreManager getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.Backup", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListBackups_async", + "title": "CloudFilestoreManager listBackups Sample", + "origin": "API_DEFINITION", + "description": " Lists all backups in a project for either a specified location or for all locations.", + "canonical": true, + "file": "cloud_filestore_manager.list_backups.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListBackups", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackups", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1beta1.ListBackupsResponse", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackups", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateBackup_async", - "title": "CloudFilestoreManager createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a backup.", - "canonical": true, - "file": "cloud_filestore_manager.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.filestore.v1beta1.Backup" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetBackup_async", + "title": "CloudFilestoreManager getBackup Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of a specific backup.", + "canonical": true, + "file": "cloud_filestore_manager.get_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.filestore.v1beta1.Backup", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteBackup_async", - "title": "CloudFilestoreManager deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a backup.", - "canonical": true, - "file": "cloud_filestore_manager.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateBackup_async", + "title": "CloudFilestoreManager createBackup Sample", + "origin": "API_DEFINITION", + "description": " Creates a backup.", + "canonical": true, + "file": "cloud_filestore_manager.create_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackup", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "backup", + "type": ".google.cloud.filestore.v1beta1.Backup" + }, + { + "name": "backup_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateBackup_async", - "title": "CloudFilestoreManager updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.cloud.filestore.v1beta1.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteBackup_async", + "title": "CloudFilestoreManager deleteBackup Sample", + "origin": "API_DEFINITION", + "description": " Deletes a backup.", + "canonical": true, + "file": "cloud_filestore_manager.delete_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } + { + "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateBackup_async", + "title": "CloudFilestoreManager updateBackup Sample", + "origin": "API_DEFINITION", + "description": " Updates the settings of a specific backup.", + "canonical": true, + "file": "cloud_filestore_manager.update_backup.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackup", + "async": true, + "parameters": [ + { + "name": "backup", + "type": ".google.cloud.filestore.v1beta1.Backup" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "CloudFilestoreManagerClient", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackup", + "service": { + "shortName": "CloudFilestoreManager", + "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file