From 4153474d3a3c7230b1373d1410104c6171709227 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 12:47:31 -0700 Subject: [PATCH] build(node): update client library version in samples metadata (#1356) (#87) * build(node): add feat in node post-processor to add client library version number in snippet metadata Co-authored-by: Benjamin E. Coe Source-Link: https://github.com/googleapis/synthtool/commit/d337b88dd1494365183718a2de0b7b4056b6fdfe Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:d106724ad2a96daa1b8d88de101ba50bdb30b8df62ffa0aa2b451d93b4556641 Co-authored-by: Owl Bot Co-authored-by: Benjamin E. Coe --- ...ata.google.cloud.essentialcontacts.v1.json | 632 +++++++++--------- 1 file changed, 316 insertions(+), 316 deletions(-) diff --git a/packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata.google.cloud.essentialcontacts.v1.json b/packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata.google.cloud.essentialcontacts.v1.json index 7ccf018e230..567e977453a 100644 --- a/packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata.google.cloud.essentialcontacts.v1.json +++ b/packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata.google.cloud.essentialcontacts.v1.json @@ -1,331 +1,331 @@ { - "clientLibrary": { - "name": "nodejs-essentialcontacts", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.essentialcontacts.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_CreateContact_async", - "title": "EssentialContactsService createContact Sample", - "origin": "API_DEFINITION", - "description": " Adds a new contact for a resource.", - "canonical": true, - "file": "essential_contacts_service.create_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.CreateContact", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "contact", - "type": ".google.cloud.essentialcontacts.v1.Contact" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.Contact", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "CreateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.CreateContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } + "clientLibrary": { + "name": "nodejs-essentialcontacts", + "version": "1.1.1", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.essentialcontacts.v1", + "version": "v1" + } + ] }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_UpdateContact_async", - "title": "EssentialContactsService updateContact Sample", - "origin": "API_DEFINITION", - "description": " Updates a contact. Note: A contact's email address cannot be changed.", - "canonical": true, - "file": "essential_contacts_service.update_contact.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.UpdateContact", - "async": true, - "parameters": [ - { - "name": "contact", - "type": ".google.cloud.essentialcontacts.v1.Contact" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.Contact", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_CreateContact_async", + "title": "EssentialContactsService createContact Sample", + "origin": "API_DEFINITION", + "description": " Adds a new contact for a resource.", + "canonical": true, + "file": "essential_contacts_service.create_contact.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.CreateContact", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "contact", + "type": ".google.cloud.essentialcontacts.v1.Contact" + } + ], + "resultType": ".google.cloud.essentialcontacts.v1.Contact", + "client": { + "shortName": "EssentialContactsServiceClient", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + }, + "method": { + "shortName": "CreateContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.CreateContact", + "service": { + "shortName": "EssentialContactsService", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" + } + } + } }, - "method": { - "shortName": "UpdateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.UpdateContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_ListContacts_async", - "title": "EssentialContactsService listContacts Sample", - "origin": "API_DEFINITION", - "description": " Lists the contacts that have been set on a resource.", - "canonical": true, - "file": "essential_contacts_service.list_contacts.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ListContacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.ListContactsResponse", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_UpdateContact_async", + "title": "EssentialContactsService updateContact Sample", + "origin": "API_DEFINITION", + "description": " Updates a contact. Note: A contact's email address cannot be changed.", + "canonical": true, + "file": "essential_contacts_service.update_contact.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.UpdateContact", + "async": true, + "parameters": [ + { + "name": "contact", + "type": ".google.cloud.essentialcontacts.v1.Contact" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.essentialcontacts.v1.Contact", + "client": { + "shortName": "EssentialContactsServiceClient", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + }, + "method": { + "shortName": "UpdateContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.UpdateContact", + "service": { + "shortName": "EssentialContactsService", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" + } + } + } }, - "method": { - "shortName": "ListContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ListContacts", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_GetContact_async", - "title": "EssentialContactsService getContact Sample", - "origin": "API_DEFINITION", - "description": " Gets a single contact.", - "canonical": true, - "file": "essential_contacts_service.get_contact.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.GetContact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.Contact", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_ListContacts_async", + "title": "EssentialContactsService listContacts Sample", + "origin": "API_DEFINITION", + "description": " Lists the contacts that have been set on a resource.", + "canonical": true, + "file": "essential_contacts_service.list_contacts.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListContacts", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ListContacts", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.essentialcontacts.v1.ListContactsResponse", + "client": { + "shortName": "EssentialContactsServiceClient", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + }, + "method": { + "shortName": "ListContacts", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ListContacts", + "service": { + "shortName": "EssentialContactsService", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" + } + } + } }, - "method": { - "shortName": "GetContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.GetContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_async", - "title": "EssentialContactsService deleteContact Sample", - "origin": "API_DEFINITION", - "description": " Deletes a contact.", - "canonical": true, - "file": "essential_contacts_service.delete_contact.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.DeleteContact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_GetContact_async", + "title": "EssentialContactsService getContact Sample", + "origin": "API_DEFINITION", + "description": " Gets a single contact.", + "canonical": true, + "file": "essential_contacts_service.get_contact.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.GetContact", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.essentialcontacts.v1.Contact", + "client": { + "shortName": "EssentialContactsServiceClient", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + }, + "method": { + "shortName": "GetContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.GetContact", + "service": { + "shortName": "EssentialContactsService", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" + } + } + } }, - "method": { - "shortName": "DeleteContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.DeleteContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_async", - "title": "EssentialContactsService computeContacts Sample", - "origin": "API_DEFINITION", - "description": " Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.", - "canonical": true, - "file": "essential_contacts_service.compute_contacts.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ComputeContacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notification_categories", - "type": "TYPE_ENUM[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.ComputeContactsResponse", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_async", + "title": "EssentialContactsService deleteContact Sample", + "origin": "API_DEFINITION", + "description": " Deletes a contact.", + "canonical": true, + "file": "essential_contacts_service.delete_contact.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.DeleteContact", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "EssentialContactsServiceClient", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + }, + "method": { + "shortName": "DeleteContact", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.DeleteContact", + "service": { + "shortName": "EssentialContactsService", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" + } + } + } }, - "method": { - "shortName": "ComputeContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ComputeContacts", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_SendTestMessage_async", - "title": "EssentialContactsService sendTestMessage Sample", - "origin": "API_DEFINITION", - "description": " Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", - "canonical": true, - "file": "essential_contacts_service.send_test_message.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SendTestMessage", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.SendTestMessage", - "async": true, - "parameters": [ - { - "name": "contacts", - "type": "TYPE_STRING[]" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "notification_category", - "type": ".google.cloud.essentialcontacts.v1.NotificationCategory" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_async", + "title": "EssentialContactsService computeContacts Sample", + "origin": "API_DEFINITION", + "description": " Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.", + "canonical": true, + "file": "essential_contacts_service.compute_contacts.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ComputeContacts", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ComputeContacts", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "notification_categories", + "type": "TYPE_ENUM[]" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.essentialcontacts.v1.ComputeContactsResponse", + "client": { + "shortName": "EssentialContactsServiceClient", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + }, + "method": { + "shortName": "ComputeContacts", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ComputeContacts", + "service": { + "shortName": "EssentialContactsService", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" + } + } + } }, - "method": { - "shortName": "SendTestMessage", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.SendTestMessage", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } + { + "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_SendTestMessage_async", + "title": "EssentialContactsService sendTestMessage Sample", + "origin": "API_DEFINITION", + "description": " Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", + "canonical": true, + "file": "essential_contacts_service.send_test_message.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SendTestMessage", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.SendTestMessage", + "async": true, + "parameters": [ + { + "name": "contacts", + "type": "TYPE_STRING[]" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "notification_category", + "type": ".google.cloud.essentialcontacts.v1.NotificationCategory" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "EssentialContactsServiceClient", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" + }, + "method": { + "shortName": "SendTestMessage", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.SendTestMessage", + "service": { + "shortName": "EssentialContactsService", + "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file