|
|
|
@ -25,13 +25,15 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agente |
|
|
|
|
option java_multiple_files = true; |
|
|
|
|
option java_outer_classname = "AgentEndpointProto"; |
|
|
|
|
option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta"; |
|
|
|
|
option php_namespace = "Google\\Cloud\\OsConfig\\V1beta"; |
|
|
|
|
|
|
|
|
|
// OS Config agent endpoint API. |
|
|
|
|
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,25 +43,32 @@ 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"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Lookup the effective guest policy that applies to a VM instance. This |
|
|
|
|
// lookup merges all policies that are assigned to the instance ancestry. |
|
|
|
|
rpc LookupEffectiveGuestPolicy(LookupEffectiveGuestPolicyRequest) returns (EffectiveGuestPolicy) { |
|
|
|
|
option (google.api.method_signature) = "instance_id_token,os_short_name,os_version,os_architecture"; |
|
|
|
|
rpc LookupEffectiveGuestPolicy(LookupEffectiveGuestPolicyRequest) |
|
|
|
|
returns (EffectiveGuestPolicy) { |
|
|
|
|
option (google.api.method_signature) = |
|
|
|
|
"instance_id_token,os_short_name,os_version,os_architecture"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 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"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -76,9 +85,7 @@ message ReceiveTaskNotificationRequest { |
|
|
|
|
|
|
|
|
|
// The streaming rpc message that notifies the agent when it has a task |
|
|
|
|
// that it needs to perform on the VM instance. |
|
|
|
|
message ReceiveTaskNotificationResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
message ReceiveTaskNotificationResponse {} |
|
|
|
|
|
|
|
|
|
// A request message for signaling the start of a task execution. |
|
|
|
|
message StartNextTaskRequest { |
|
|
|
@ -161,9 +168,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 { |
|
|
|
@ -178,10 +183,9 @@ 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]; |
|
|
|
|
repeated string supported_capabilities = 3 |
|
|
|
|
[(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The response message after the agent registered. |
|
|
|
|
message RegisterAgentResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
message RegisterAgentResponse {} |
|
|
|
|