|
|
|
@ -31,7 +31,8 @@ service AgentEndpointService { |
|
|
|
|
option (google.api.default_host) = "osconfig.googleapis.com"; |
|
|
|
|
|
|
|
|
|
// Stream established by client to receive Task notifications. |
|
|
|
|
rpc ReceiveTaskNotification(ReceiveTaskNotificationRequest) returns (stream ReceiveTaskNotificationResponse) { |
|
|
|
|
rpc ReceiveTaskNotification(ReceiveTaskNotificationRequest) |
|
|
|
|
returns (stream ReceiveTaskNotificationResponse) { |
|
|
|
|
option (google.api.method_signature) = "instance_id_token,agent_version"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -41,24 +42,31 @@ service AgentEndpointService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Signals an intermediary progress checkpoint in task execution. |
|
|
|
|
rpc ReportTaskProgress(ReportTaskProgressRequest) returns (ReportTaskProgressResponse) { |
|
|
|
|
option (google.api.method_signature) = "instance_id_token,task_id,task_type"; |
|
|
|
|
rpc ReportTaskProgress(ReportTaskProgressRequest) |
|
|
|
|
returns (ReportTaskProgressResponse) { |
|
|
|
|
option (google.api.method_signature) = |
|
|
|
|
"instance_id_token,task_id,task_type"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Signals that the task execution is complete and optionally returns the next |
|
|
|
|
// task. |
|
|
|
|
rpc ReportTaskComplete(ReportTaskCompleteRequest) returns (ReportTaskCompleteResponse) { |
|
|
|
|
option (google.api.method_signature) = "instance_id_token,task_id,task_type,error_message"; |
|
|
|
|
rpc ReportTaskComplete(ReportTaskCompleteRequest) |
|
|
|
|
returns (ReportTaskCompleteResponse) { |
|
|
|
|
option (google.api.method_signature) = |
|
|
|
|
"instance_id_token,task_id,task_type,error_message"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Registers the agent running on the VM. |
|
|
|
|
rpc RegisterAgent(RegisterAgentRequest) returns (RegisterAgentResponse) { |
|
|
|
|
option (google.api.method_signature) = "instance_id_token,agent_version,supported_capabilities"; |
|
|
|
|
option (google.api.method_signature) = |
|
|
|
|
"instance_id_token,agent_version,supported_capabilities"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Reports the VMs current inventory. |
|
|
|
|
rpc ReportInventory(ReportInventoryRequest) returns (ReportInventoryResponse) { |
|
|
|
|
option (google.api.method_signature) = "instance_id_token,inventory_checksum,inventory"; |
|
|
|
|
rpc ReportInventory(ReportInventoryRequest) |
|
|
|
|
returns (ReportInventoryResponse) { |
|
|
|
|
option (google.api.method_signature) = |
|
|
|
|
"instance_id_token,inventory_checksum,inventory"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -75,9 +83,7 @@ message ReceiveTaskNotificationRequest { |
|
|
|
|
|
|
|
|
|
// The streaming rpc message that will notify the agent when it has a task |
|
|
|
|
// it needs to perform on the instance. |
|
|
|
|
message ReceiveTaskNotificationResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
message ReceiveTaskNotificationResponse {} |
|
|
|
|
|
|
|
|
|
// A request message for signaling the start of a task execution. |
|
|
|
|
message StartNextTaskRequest { |
|
|
|
@ -110,6 +116,7 @@ message ReportTaskProgressRequest { |
|
|
|
|
// specified below: |
|
|
|
|
// APPLY_PATCHES = ApplyPatchesTaskProgress |
|
|
|
|
// EXEC_STEP = Progress not supported for this type. |
|
|
|
|
// APPLY_CONFIG_TASK = ApplyConfigTaskProgress |
|
|
|
|
TaskType task_type = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Intermediate progress of the current task. |
|
|
|
@ -147,6 +154,7 @@ message ReportTaskCompleteRequest { |
|
|
|
|
// specified below: |
|
|
|
|
// APPLY_PATCHES = ApplyPatchesTaskOutput |
|
|
|
|
// EXEC_STEP = ExecStepTaskOutput |
|
|
|
|
// APPLY_CONFIG_TASK = ApplyConfigTaskOutput |
|
|
|
|
TaskType task_type = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Descriptive error message if the task execution ended in error. |
|
|
|
@ -166,9 +174,7 @@ message ReportTaskCompleteRequest { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The response message after the agent signaled the current task complete. |
|
|
|
|
message ReportTaskCompleteResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
message ReportTaskCompleteResponse {} |
|
|
|
|
|
|
|
|
|
// The request message for registering the agent. |
|
|
|
|
message RegisterAgentRequest { |
|
|
|
@ -183,13 +189,13 @@ message RegisterAgentRequest { |
|
|
|
|
// Required. The capabilities supported by the agent. Supported values are: |
|
|
|
|
// PATCH_GA |
|
|
|
|
// GUEST_POLICY_BETA |
|
|
|
|
repeated string supported_capabilities = 3 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
// CONFIG_V1 |
|
|
|
|
repeated string supported_capabilities = 3 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The response message after the agent registered. |
|
|
|
|
message RegisterAgentResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
message RegisterAgentResponse {} |
|
|
|
|
|
|
|
|
|
// The request message for having the agent report inventory. |
|
|
|
|
message ReportInventoryRequest { |
|
|
|
@ -198,13 +204,13 @@ message ReportInventoryRequest { |
|
|
|
|
// where the audience is 'osconfig.googleapis.com' and the format is 'full'. |
|
|
|
|
string instance_id_token = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Required. This is a client created checksum that should be generated based on the |
|
|
|
|
// contents of the reported inventory. This will be used by the service to |
|
|
|
|
// determine if it has the latest version of inventory. |
|
|
|
|
// Required. This is a client created checksum that should be generated based |
|
|
|
|
// on the contents of the reported inventory. This will be used by the |
|
|
|
|
// service to determine if it has the latest version of inventory. |
|
|
|
|
string inventory_checksum = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
|
|
|
|
|
// Optional. This is the details of the inventory. Should only be provided if the |
|
|
|
|
// inventory has changed since the last report, or if instructed by the |
|
|
|
|
// Optional. This is the details of the inventory. Should only be provided if |
|
|
|
|
// the inventory has changed since the last report, or if instructed by the |
|
|
|
|
// service to provide full inventory. |
|
|
|
|
Inventory inventory = 3 [(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
} |
|
|
|
|