chore: migrate osconfig/agentendpoint/{v1, v1beta} to the PHP microgenerator

Committer: @miraleung
PiperOrigin-RevId: 368272547
pull/647/head
Google APIs 4 years ago committed by Copybara-Service
parent c5436a6b41
commit c09459df06
  1. 13
      google/cloud/osconfig/agentendpoint/v1/BUILD.bazel
  2. 13
      google/cloud/osconfig/agentendpoint/v1beta/BUILD.bazel
  3. 40
      google/cloud/osconfig/agentendpoint/v1beta/agentendpoint.proto
  4. 1
      google/cloud/osconfig/agentendpoint/v1beta/guest_policies.proto
  5. 5
      google/cloud/osconfig/agentendpoint/v1beta/patch_jobs.proto
  6. 1
      google/cloud/osconfig/agentendpoint/v1beta/tasks.proto

@ -172,13 +172,14 @@ py_gapic_assembly_pkg(
############################################################################## ##############################################################################
# PHP # PHP
# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules.
############################################################################## ##############################################################################
# load( # load(
# "@com_google_googleapis_imports//:imports.bzl", # "@com_google_googleapis_imports//:imports.bzl",
# "php_gapic_assembly_pkg", # php_gapic_assembly_pkg = "php_gapic_assembly_pkg2",
# "php_gapic_library", # php_gapic_library = "php_gapic_library2",
# "php_grpc_library", # php_grpc_library = "php_grpc_library2",
# "php_proto_library", # php_proto_library = "php_proto_library2",
# ) # )
# #
# php_proto_library( # php_proto_library(
@ -194,10 +195,8 @@ py_gapic_assembly_pkg(
# #
# php_gapic_library( # php_gapic_library(
# name = "agentendpoint_php_gapic", # name = "agentendpoint_php_gapic",
# src = ":agentendpoint_proto_with_info", # srcs = [":agentendpoint_proto_with_info"],
# gapic_yaml = "osconfig_gapic.yaml",
# grpc_service_config = "agentendpoint_grpc_service_config.json", # grpc_service_config = "agentendpoint_grpc_service_config.json",
# package = "google.cloud.osconfig.agentendpoint.v1",
# service_yaml = "osconfig_v1.yaml", # service_yaml = "osconfig_v1.yaml",
# deps = [ # deps = [
# ":agentendpoint_php_grpc", # ":agentendpoint_php_grpc",

@ -168,13 +168,14 @@ py_gapic_assembly_pkg(
############################################################################## ##############################################################################
# PHP # PHP
# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules.
############################################################################## ##############################################################################
load( load(
"@com_google_googleapis_imports//:imports.bzl", "@com_google_googleapis_imports//:imports.bzl",
"php_gapic_assembly_pkg", php_gapic_assembly_pkg = "php_gapic_assembly_pkg2",
"php_gapic_library", php_gapic_library = "php_gapic_library2",
"php_grpc_library", php_grpc_library = "php_grpc_library2",
"php_proto_library", php_proto_library = "php_proto_library2",
) )
php_proto_library( php_proto_library(
@ -192,11 +193,9 @@ php_grpc_library(
# generation # generation
#php_gapic_library( #php_gapic_library(
# name = "agentendpoint_php_gapic", # name = "agentendpoint_php_gapic",
# src = ":agentendpoint_proto_with_info", # srcs = [":agentendpoint_proto_with_info"],
# gapic_yaml = "osconfig_gapic.yaml",
# grpc_service_config = "agentendpoint_grpc_service_config.json", # grpc_service_config = "agentendpoint_grpc_service_config.json",
# package = "google.cloud.osconfig.agentendpoint.v1beta", # package = "google.cloud.osconfig.agentendpoint.v1beta",
# service_yaml = "osconfig_v1beta.yaml",
# deps = [ # deps = [
# ":agentendpoint_php_grpc", # ":agentendpoint_php_grpc",
# ":agentendpoint_php_proto", # ":agentendpoint_php_proto",

@ -25,13 +25,15 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agente
option java_multiple_files = true; option java_multiple_files = true;
option java_outer_classname = "AgentEndpointProto"; option java_outer_classname = "AgentEndpointProto";
option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta"; option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta";
option php_namespace = "Google\\Cloud\\OsConfig\\V1beta";
// OS Config agent endpoint API. // OS Config agent endpoint API.
service AgentEndpointService { service AgentEndpointService {
option (google.api.default_host) = "osconfig.googleapis.com"; option (google.api.default_host) = "osconfig.googleapis.com";
// Stream established by client to receive Task notifications. // 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"; option (google.api.method_signature) = "instance_id_token,agent_version";
} }
@ -41,25 +43,32 @@ service AgentEndpointService {
} }
// Signals an intermediary progress checkpoint in task execution. // Signals an intermediary progress checkpoint in task execution.
rpc ReportTaskProgress(ReportTaskProgressRequest) returns (ReportTaskProgressResponse) { rpc ReportTaskProgress(ReportTaskProgressRequest)
option (google.api.method_signature) = "instance_id_token,task_id,task_type"; 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 // Signals that the task execution is complete and optionally returns the next
// task. // task.
rpc ReportTaskComplete(ReportTaskCompleteRequest) returns (ReportTaskCompleteResponse) { rpc ReportTaskComplete(ReportTaskCompleteRequest)
option (google.api.method_signature) = "instance_id_token,task_id,task_type,error_message"; 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 the effective guest policy that applies to a VM instance. This
// lookup merges all policies that are assigned to the instance ancestry. // lookup merges all policies that are assigned to the instance ancestry.
rpc LookupEffectiveGuestPolicy(LookupEffectiveGuestPolicyRequest) returns (EffectiveGuestPolicy) { rpc LookupEffectiveGuestPolicy(LookupEffectiveGuestPolicyRequest)
option (google.api.method_signature) = "instance_id_token,os_short_name,os_version,os_architecture"; returns (EffectiveGuestPolicy) {
option (google.api.method_signature) =
"instance_id_token,os_short_name,os_version,os_architecture";
} }
// Registers the agent running on the VM. // Registers the agent running on the VM.
rpc RegisterAgent(RegisterAgentRequest) returns (RegisterAgentResponse) { 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 // The streaming rpc message that notifies the agent when it has a task
// that it needs to perform on the VM instance. // that it needs to perform on the VM instance.
message ReceiveTaskNotificationResponse { message ReceiveTaskNotificationResponse {}
}
// A request message for signaling the start of a task execution. // A request message for signaling the start of a task execution.
message StartNextTaskRequest { message StartNextTaskRequest {
@ -161,9 +168,7 @@ message ReportTaskCompleteRequest {
} }
// The response message after the agent signaled the current task complete. // The response message after the agent signaled the current task complete.
message ReportTaskCompleteResponse { message ReportTaskCompleteResponse {}
}
// The request message for registering the agent. // The request message for registering the agent.
message RegisterAgentRequest { message RegisterAgentRequest {
@ -178,10 +183,9 @@ message RegisterAgentRequest {
// Required. The capabilities supported by the agent. Supported values are: // Required. The capabilities supported by the agent. Supported values are:
// PATCH_GA // PATCH_GA
// GUEST_POLICY_BETA // 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. // The response message after the agent registered.
message RegisterAgentResponse { message RegisterAgentResponse {}
}

@ -21,6 +21,7 @@ import "google/api/field_behavior.proto";
option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta;agentendpoint"; option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta;agentendpoint";
option java_outer_classname = "GuestPolicies"; option java_outer_classname = "GuestPolicies";
option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta"; option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta";
option php_namespace = "Google\\Cloud\\OsConfig\\V1beta";
// The desired state that the OS Config agent will maintain on the VM. // The desired state that the OS Config agent will maintain on the VM.
enum DesiredState { enum DesiredState {

@ -19,6 +19,7 @@ package google.cloud.osconfig.agentendpoint.v1beta;
option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta;agentendpoint"; option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta;agentendpoint";
option java_outer_classname = "PatchJobs"; option java_outer_classname = "PatchJobs";
option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta"; option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta";
option php_namespace = "Google\\Cloud\\OsConfig\\V1beta";
// Patch configuration specifications. Contains details on how to // Patch configuration specifications. Contains details on how to
// apply patches to a VM instance. // apply patches to a VM instance.
@ -124,9 +125,7 @@ message YumSettings {
} }
// Googet patching is performed by running `googet update`. // Googet patching is performed by running `googet update`.
message GooSettings { message GooSettings {}
}
// Zypper patching is performed by running `zypper patch`. // Zypper patching is performed by running `zypper patch`.
// See also https://en.opensuse.org/SDB:Zypper_manual. // See also https://en.opensuse.org/SDB:Zypper_manual.

@ -23,6 +23,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agente
option java_multiple_files = true; option java_multiple_files = true;
option java_outer_classname = "Tasks"; option java_outer_classname = "Tasks";
option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta"; option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta";
option php_namespace = "Google\\Cloud\\OsConfig\\V1beta";
// Specifies the current agent behavior. // Specifies the current agent behavior.
enum TaskDirective { enum TaskDirective {

Loading…
Cancel
Save