{ "clientLibrary": { "name": "cloud.google.com/go/osconfig/agentendpoint/apiv1beta", "version": "1.15.0", "language": "GO", "apis": [ { "id": "google.cloud.osconfig.agentendpoint.v1beta", "version": "v1beta" } ] }, "snippets": [ { "regionTag": "osconfig_v1beta_generated_AgentEndpointService_LookupEffectiveGuestPolicy_sync", "title": "osconfig LookupEffectiveGuestPolicy Sample", "description": "LookupEffectiveGuestPolicy lookup the effective guest policy that applies to a VM instance. This\nlookup merges all policies that are assigned to the instance ancestry.", "file": "Client/LookupEffectiveGuestPolicy/main.go", "language": "GO", "clientMethod": { "shortName": "LookupEffectiveGuestPolicy", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.LookupEffectiveGuestPolicy", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "agentendpointpb.LookupEffectiveGuestPolicyRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*agentendpointpb.EffectiveGuestPolicy", "client": { "shortName": "Client", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" }, "method": { "shortName": "LookupEffectiveGuestPolicy", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.LookupEffectiveGuestPolicy", "service": { "shortName": "AgentEndpointService", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "osconfig_v1beta_generated_AgentEndpointService_RegisterAgent_sync", "title": "osconfig RegisterAgent Sample", "description": "RegisterAgent registers the agent running on the VM.", "file": "Client/RegisterAgent/main.go", "language": "GO", "clientMethod": { "shortName": "RegisterAgent", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.RegisterAgent", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "agentendpointpb.RegisterAgentRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*agentendpointpb.RegisterAgentResponse", "client": { "shortName": "Client", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" }, "method": { "shortName": "RegisterAgent", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.RegisterAgent", "service": { "shortName": "AgentEndpointService", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "osconfig_v1beta_generated_AgentEndpointService_ReportTaskComplete_sync", "title": "osconfig ReportTaskComplete Sample", "description": "ReportTaskComplete signals that the task execution is complete and optionally returns the next\ntask.", "file": "Client/ReportTaskComplete/main.go", "language": "GO", "clientMethod": { "shortName": "ReportTaskComplete", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.ReportTaskComplete", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "agentendpointpb.ReportTaskCompleteRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*agentendpointpb.ReportTaskCompleteResponse", "client": { "shortName": "Client", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" }, "method": { "shortName": "ReportTaskComplete", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.ReportTaskComplete", "service": { "shortName": "AgentEndpointService", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "osconfig_v1beta_generated_AgentEndpointService_ReportTaskProgress_sync", "title": "osconfig ReportTaskProgress Sample", "description": "ReportTaskProgress signals an intermediary progress checkpoint in task execution.", "file": "Client/ReportTaskProgress/main.go", "language": "GO", "clientMethod": { "shortName": "ReportTaskProgress", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.ReportTaskProgress", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "agentendpointpb.ReportTaskProgressRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*agentendpointpb.ReportTaskProgressResponse", "client": { "shortName": "Client", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" }, "method": { "shortName": "ReportTaskProgress", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.ReportTaskProgress", "service": { "shortName": "AgentEndpointService", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "osconfig_v1beta_generated_AgentEndpointService_StartNextTask_sync", "title": "osconfig StartNextTask Sample", "description": "StartNextTask signals the start of a task execution and returns the task info.", "file": "Client/StartNextTask/main.go", "language": "GO", "clientMethod": { "shortName": "StartNextTask", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.StartNextTask", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "agentendpointpb.StartNextTaskRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*agentendpointpb.StartNextTaskResponse", "client": { "shortName": "Client", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" }, "method": { "shortName": "StartNextTask", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.StartNextTask", "service": { "shortName": "AgentEndpointService", "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] } ] }