@@ -16,6 +16,7 @@ syntax = "proto3";
1616
1717package google.cloud.osconfig.agentendpoint.v1beta ;
1818
19+ import "google/api/annotations.proto" ;
1920import "google/api/client.proto" ;
2021import "google/api/field_behavior.proto" ;
2122import "google/cloud/osconfig/agentendpoint/v1beta/guest_policies.proto" ;
@@ -32,8 +33,7 @@ service AgentEndpointService {
3233 option (google.api.default_host ) = "osconfig.googleapis.com" ;
3334
3435 // Stream established by client to receive Task notifications.
35- rpc ReceiveTaskNotification (ReceiveTaskNotificationRequest )
36- returns (stream ReceiveTaskNotificationResponse ) {
36+ rpc ReceiveTaskNotification (ReceiveTaskNotificationRequest ) returns (stream ReceiveTaskNotificationResponse ) {
3737 option (google.api.method_signature ) = "instance_id_token,agent_version" ;
3838 }
3939
@@ -43,32 +43,25 @@ service AgentEndpointService {
4343 }
4444
4545 // Signals an intermediary progress checkpoint in task execution.
46- rpc ReportTaskProgress (ReportTaskProgressRequest )
47- returns (ReportTaskProgressResponse ) {
48- option (google.api.method_signature ) =
49- "instance_id_token,task_id,task_type" ;
46+ rpc ReportTaskProgress (ReportTaskProgressRequest ) returns (ReportTaskProgressResponse ) {
47+ option (google.api.method_signature ) = "instance_id_token,task_id,task_type" ;
5048 }
5149
5250 // Signals that the task execution is complete and optionally returns the next
5351 // task.
54- rpc ReportTaskComplete (ReportTaskCompleteRequest )
55- returns (ReportTaskCompleteResponse ) {
56- option (google.api.method_signature ) =
57- "instance_id_token,task_id,task_type,error_message" ;
52+ rpc ReportTaskComplete (ReportTaskCompleteRequest ) returns (ReportTaskCompleteResponse ) {
53+ option (google.api.method_signature ) = "instance_id_token,task_id,task_type,error_message" ;
5854 }
5955
6056 // Lookup the effective guest policy that applies to a VM instance. This
6157 // lookup merges all policies that are assigned to the instance ancestry.
62- rpc LookupEffectiveGuestPolicy (LookupEffectiveGuestPolicyRequest )
63- returns (EffectiveGuestPolicy ) {
64- option (google.api.method_signature ) =
65- "instance_id_token,os_short_name,os_version,os_architecture" ;
58+ rpc LookupEffectiveGuestPolicy (LookupEffectiveGuestPolicyRequest ) returns (EffectiveGuestPolicy ) {
59+ option (google.api.method_signature ) = "instance_id_token,os_short_name,os_version,os_architecture" ;
6660 }
6761
6862 // Registers the agent running on the VM.
6963 rpc RegisterAgent (RegisterAgentRequest ) returns (RegisterAgentResponse ) {
70- option (google.api.method_signature ) =
71- "instance_id_token,agent_version,supported_capabilities" ;
64+ option (google.api.method_signature ) = "instance_id_token,agent_version,supported_capabilities" ;
7265 }
7366}
7467
@@ -85,7 +78,9 @@ message ReceiveTaskNotificationRequest {
8578
8679// The streaming rpc message that notifies the agent when it has a task
8780// that it needs to perform on the VM instance.
88- message ReceiveTaskNotificationResponse {}
81+ message ReceiveTaskNotificationResponse {
82+
83+ }
8984
9085// A request message for signaling the start of a task execution.
9186message StartNextTaskRequest {
@@ -118,6 +113,7 @@ message ReportTaskProgressRequest {
118113 // specified below:
119114 // APPLY_PATCHES = ApplyPatchesTaskProgress
120115 // EXEC_STEP = Progress not supported for this type.
116+ // APPLY_CONFIG_TASK = ApplyConfigTaskProgress
121117 TaskType task_type = 3 [(google.api.field_behavior ) = REQUIRED ];
122118
123119 // Intermediate progress of the current task.
@@ -152,6 +148,7 @@ message ReportTaskCompleteRequest {
152148 // enum values:
153149 // APPLY_PATCHES = ApplyPatchesTaskOutput
154150 // EXEC_STEP = ExecStepTaskOutput
151+ // APPLY_CONFIG_TASK = ApplyConfigTaskOutput
155152 TaskType task_type = 3 [(google.api.field_behavior ) = REQUIRED ];
156153
157154 // Descriptive error message if the task execution ended in error.
@@ -168,7 +165,9 @@ message ReportTaskCompleteRequest {
168165}
169166
170167// The response message after the agent signaled the current task complete.
171- message ReportTaskCompleteResponse {}
168+ message ReportTaskCompleteResponse {
169+
170+ }
172171
173172// The request message for registering the agent.
174173message RegisterAgentRequest {
@@ -183,9 +182,26 @@ message RegisterAgentRequest {
183182 // Required. The capabilities supported by the agent. Supported values are:
184183 // PATCH_GA
185184 // GUEST_POLICY_BETA
186- repeated string supported_capabilities = 3
187- [(google.api.field_behavior ) = REQUIRED ];
185+ // CONFIG_V1
186+ repeated string supported_capabilities = 3 [(google.api.field_behavior ) = REQUIRED ];
187+
188+ // The operating system long name.
189+ // For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019
190+ // Datacenter'.
191+ string os_long_name = 4 ;
192+
193+ // The operating system short name.
194+ // For example, 'windows' or 'debian'.
195+ string os_short_name = 5 ;
196+
197+ // The version of the operating system.
198+ string os_version = 6 ;
199+
200+ // The system architecture of the operating system.
201+ string os_architecture = 7 ;
188202}
189203
190204// The response message after the agent registered.
191- message RegisterAgentResponse {}
205+ message RegisterAgentResponse {
206+
207+ }
0 commit comments