@@ -31,7 +31,8 @@ service AgentEndpointService {
3131 option (google.api.default_host ) = "osconfig.googleapis.com" ;
3232
3333 // Stream established by client to receive Task notifications.
34- rpc ReceiveTaskNotification (ReceiveTaskNotificationRequest ) returns (stream ReceiveTaskNotificationResponse ) {
34+ rpc ReceiveTaskNotification (ReceiveTaskNotificationRequest )
35+ returns (stream ReceiveTaskNotificationResponse ) {
3536 option (google.api.method_signature ) = "instance_id_token,agent_version" ;
3637 }
3738
@@ -41,24 +42,31 @@ service AgentEndpointService {
4142 }
4243
4344 // Signals an intermediary progress checkpoint in task execution.
44- rpc ReportTaskProgress (ReportTaskProgressRequest ) returns (ReportTaskProgressResponse ) {
45- option (google.api.method_signature ) = "instance_id_token,task_id,task_type" ;
45+ rpc ReportTaskProgress (ReportTaskProgressRequest )
46+ returns (ReportTaskProgressResponse ) {
47+ option (google.api.method_signature ) =
48+ "instance_id_token,task_id,task_type" ;
4649 }
4750
4851 // Signals that the task execution is complete and optionally returns the next
4952 // task.
50- rpc ReportTaskComplete (ReportTaskCompleteRequest ) returns (ReportTaskCompleteResponse ) {
51- option (google.api.method_signature ) = "instance_id_token,task_id,task_type,error_message" ;
53+ rpc ReportTaskComplete (ReportTaskCompleteRequest )
54+ returns (ReportTaskCompleteResponse ) {
55+ option (google.api.method_signature ) =
56+ "instance_id_token,task_id,task_type,error_message" ;
5257 }
5358
5459 // Registers the agent running on the VM.
5560 rpc RegisterAgent (RegisterAgentRequest ) returns (RegisterAgentResponse ) {
56- option (google.api.method_signature ) = "instance_id_token,agent_version,supported_capabilities" ;
61+ option (google.api.method_signature ) =
62+ "instance_id_token,agent_version,supported_capabilities" ;
5763 }
5864
5965 // Reports the VMs current inventory.
60- rpc ReportInventory (ReportInventoryRequest ) returns (ReportInventoryResponse ) {
61- option (google.api.method_signature ) = "instance_id_token,inventory_checksum,inventory" ;
66+ rpc ReportInventory (ReportInventoryRequest )
67+ returns (ReportInventoryResponse ) {
68+ option (google.api.method_signature ) =
69+ "instance_id_token,inventory_checksum,inventory" ;
6270 }
6371}
6472
@@ -75,9 +83,7 @@ message ReceiveTaskNotificationRequest {
7583
7684// The streaming rpc message that will notify the agent when it has a task
7785// it needs to perform on the instance.
78- message ReceiveTaskNotificationResponse {
79-
80- }
86+ message ReceiveTaskNotificationResponse {}
8187
8288// A request message for signaling the start of a task execution.
8389message StartNextTaskRequest {
@@ -110,6 +116,7 @@ message ReportTaskProgressRequest {
110116 // specified below:
111117 // APPLY_PATCHES = ApplyPatchesTaskProgress
112118 // EXEC_STEP = Progress not supported for this type.
119+ // APPLY_CONFIG_TASK = ApplyConfigTaskProgress
113120 TaskType task_type = 3 [(google.api.field_behavior ) = REQUIRED ];
114121
115122 // Intermediate progress of the current task.
@@ -147,6 +154,7 @@ message ReportTaskCompleteRequest {
147154 // specified below:
148155 // APPLY_PATCHES = ApplyPatchesTaskOutput
149156 // EXEC_STEP = ExecStepTaskOutput
157+ // APPLY_CONFIG_TASK = ApplyConfigTaskOutput
150158 TaskType task_type = 3 [(google.api.field_behavior ) = REQUIRED ];
151159
152160 // Descriptive error message if the task execution ended in error.
@@ -166,9 +174,7 @@ message ReportTaskCompleteRequest {
166174}
167175
168176// The response message after the agent signaled the current task complete.
169- message ReportTaskCompleteResponse {
170-
171- }
177+ message ReportTaskCompleteResponse {}
172178
173179// The request message for registering the agent.
174180message RegisterAgentRequest {
@@ -183,13 +189,13 @@ message RegisterAgentRequest {
183189 // Required. The capabilities supported by the agent. Supported values are:
184190 // PATCH_GA
185191 // GUEST_POLICY_BETA
186- repeated string supported_capabilities = 3 [(google.api.field_behavior ) = REQUIRED ];
192+ // CONFIG_V1
193+ repeated string supported_capabilities = 3
194+ [(google.api.field_behavior ) = REQUIRED ];
187195}
188196
189197// The response message after the agent registered.
190- message RegisterAgentResponse {
191-
192- }
198+ message RegisterAgentResponse {}
193199
194200// The request message for having the agent report inventory.
195201message ReportInventoryRequest {
@@ -198,13 +204,13 @@ message ReportInventoryRequest {
198204 // where the audience is 'osconfig.googleapis.com' and the format is 'full'.
199205 string instance_id_token = 1 [(google.api.field_behavior ) = REQUIRED ];
200206
201- // Required. This is a client created checksum that should be generated based on the
202- // contents of the reported inventory. This will be used by the service to
203- // determine if it has the latest version of inventory.
207+ // Required. This is a client created checksum that should be generated based
208+ // on the contents of the reported inventory. This will be used by the
209+ // service to determine if it has the latest version of inventory.
204210 string inventory_checksum = 2 [(google.api.field_behavior ) = REQUIRED ];
205211
206- // Optional. This is the details of the inventory. Should only be provided if the
207- // inventory has changed since the last report, or if instructed by the
212+ // Optional. This is the details of the inventory. Should only be provided if
213+ // the inventory has changed since the last report, or if instructed by the
208214 // service to provide full inventory.
209215 Inventory inventory = 3 [(google.api.field_behavior ) = OPTIONAL ];
210216}
0 commit comments