| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/advisorynotifications/apiv1", |
| "version": "1.4.0", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.advisorynotifications.v1", |
| "version": "v1" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_GetNotification_sync", |
| "title": "advisorynotifications GetNotification Sample", |
| "description": "GetNotification gets a notification.", |
| "file": "Client/GetNotification/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetNotification", |
| "fullName": "google.cloud.advisorynotifications.v1.Client.GetNotification", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "advisorynotificationspb.GetNotificationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*advisorynotificationspb.Notification", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.advisorynotifications.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetNotification", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification", |
| "service": { |
| "shortName": "AdvisoryNotificationsService", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_GetSettings_sync", |
| "title": "advisorynotifications GetSettings Sample", |
| "description": "GetSettings get notification settings.", |
| "file": "Client/GetSettings/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetSettings", |
| "fullName": "google.cloud.advisorynotifications.v1.Client.GetSettings", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "advisorynotificationspb.GetSettingsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*advisorynotificationspb.Settings", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.advisorynotifications.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetSettings", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetSettings", |
| "service": { |
| "shortName": "AdvisoryNotificationsService", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_ListNotifications_sync", |
| "title": "advisorynotifications ListNotifications Sample", |
| "description": "ListNotifications lists notifications under a given parent.", |
| "file": "Client/ListNotifications/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListNotifications", |
| "fullName": "google.cloud.advisorynotifications.v1.Client.ListNotifications", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "advisorynotificationspb.ListNotificationsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "NotificationIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.advisorynotifications.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListNotifications", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications", |
| "service": { |
| "shortName": "AdvisoryNotificationsService", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_UpdateSettings_sync", |
| "title": "advisorynotifications UpdateSettings Sample", |
| "description": "UpdateSettings update notification settings.", |
| "file": "Client/UpdateSettings/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateSettings", |
| "fullName": "google.cloud.advisorynotifications.v1.Client.UpdateSettings", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "advisorynotificationspb.UpdateSettingsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*advisorynotificationspb.Settings", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.advisorynotifications.v1.Client" |
| }, |
| "method": { |
| "shortName": "UpdateSettings", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.UpdateSettings", |
| "service": { |
| "shortName": "AdvisoryNotificationsService", |
| "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |