123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702 |
- syntax = "proto3";
- package google.cloud.osconfig.v1beta;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/osconfig/v1beta/osconfig_common.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta;osconfig";
- option java_outer_classname = "PatchJobs";
- option java_package = "com.google.cloud.osconfig.v1beta";
- message ExecutePatchJobRequest {
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- string description = 2;
-
-
- PatchInstanceFilter instance_filter = 7 [(google.api.field_behavior) = REQUIRED];
-
-
- PatchConfig patch_config = 4;
-
-
- google.protobuf.Duration duration = 5;
-
-
- bool dry_run = 6;
-
- string display_name = 8;
-
- PatchRollout rollout = 9;
- }
- message GetPatchJobRequest {
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message ListPatchJobInstanceDetailsRequest {
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
- int32 page_size = 2;
-
-
- string page_token = 3;
-
-
-
- string filter = 4;
- }
- message ListPatchJobInstanceDetailsResponse {
-
- repeated PatchJobInstanceDetails patch_job_instance_details = 1;
-
- string next_page_token = 2;
- }
- message PatchJobInstanceDetails {
-
- string name = 1;
-
-
- string instance_system_id = 2;
-
- Instance.PatchState state = 3;
-
- string failure_reason = 4;
-
- int64 attempt_count = 5;
- }
- message ListPatchJobsRequest {
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
- int32 page_size = 2;
-
-
- string page_token = 3;
-
-
-
- string filter = 4;
- }
- message ListPatchJobsResponse {
-
- repeated PatchJob patch_jobs = 1;
-
- string next_page_token = 2;
- }
- message PatchJob {
- option (google.api.resource) = {
- type: "osconfig.googleapis.com/PatchJob"
- pattern: "projects/{project}/patchJobs/{patch_job}"
- };
-
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- STARTED = 1;
-
- INSTANCE_LOOKUP = 2;
-
- PATCHING = 3;
-
- SUCCEEDED = 4;
-
- COMPLETED_WITH_ERRORS = 5;
-
- CANCELED = 6;
-
- TIMED_OUT = 7;
- }
-
-
-
-
- message InstanceDetailsSummary {
-
- int64 pending_instance_count = 1;
-
- int64 inactive_instance_count = 2;
-
- int64 notified_instance_count = 3;
-
- int64 started_instance_count = 4;
-
- int64 downloading_patches_instance_count = 5;
-
- int64 applying_patches_instance_count = 6;
-
- int64 rebooting_instance_count = 7;
-
- int64 succeeded_instance_count = 8;
-
- int64 succeeded_reboot_required_instance_count = 9;
-
- int64 failed_instance_count = 10;
-
- int64 acked_instance_count = 11;
-
- int64 timed_out_instance_count = 12;
-
- int64 pre_patch_step_instance_count = 13;
-
- int64 post_patch_step_instance_count = 14;
-
-
-
- int64 no_agent_detected_instance_count = 15;
- }
-
-
- string name = 1;
-
- string display_name = 14;
-
-
- string description = 2;
-
- google.protobuf.Timestamp create_time = 3;
-
- google.protobuf.Timestamp update_time = 4;
-
- State state = 5;
-
- PatchInstanceFilter instance_filter = 13;
-
- PatchConfig patch_config = 7;
-
-
- google.protobuf.Duration duration = 8;
-
- InstanceDetailsSummary instance_details_summary = 9;
-
-
- bool dry_run = 10;
-
-
- string error_message = 11;
-
-
- double percent_complete = 12;
-
- string patch_deployment = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- PatchRollout rollout = 16;
- }
- message PatchConfig {
-
- enum RebootConfig {
-
- REBOOT_CONFIG_UNSPECIFIED = 0;
-
-
-
-
- DEFAULT = 1;
-
- ALWAYS = 2;
-
- NEVER = 3;
- }
-
- RebootConfig reboot_config = 1;
-
-
- AptSettings apt = 3;
-
-
- YumSettings yum = 4;
-
-
- GooSettings goo = 5;
-
-
- ZypperSettings zypper = 6;
-
- WindowsUpdateSettings windows_update = 7;
-
- ExecStep pre_step = 8;
-
- ExecStep post_step = 9;
-
- bool mig_instances_allowed = 10;
- }
- message Instance {
-
- enum PatchState {
-
- PATCH_STATE_UNSPECIFIED = 0;
-
- PENDING = 1;
-
- INACTIVE = 2;
-
- NOTIFIED = 3;
-
- STARTED = 4;
-
- DOWNLOADING_PATCHES = 5;
-
- APPLYING_PATCHES = 6;
-
- REBOOTING = 7;
-
- SUCCEEDED = 8;
-
- SUCCEEDED_REBOOT_REQUIRED = 9;
-
- FAILED = 10;
-
- ACKED = 11;
-
- TIMED_OUT = 12;
-
- RUNNING_PRE_PATCH_STEP = 13;
-
- RUNNING_POST_PATCH_STEP = 14;
-
-
-
- NO_AGENT_DETECTED = 15;
- }
- }
- message CancelPatchJobRequest {
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message AptSettings {
-
- enum Type {
-
- TYPE_UNSPECIFIED = 0;
-
- DIST = 1;
-
- UPGRADE = 2;
- }
-
-
- Type type = 1;
-
- repeated string excludes = 2;
-
-
-
-
- repeated string exclusive_packages = 3;
- }
- message YumSettings {
-
-
- bool security = 1;
-
- bool minimal = 2;
-
-
- repeated string excludes = 3;
-
-
-
-
- repeated string exclusive_packages = 4;
- }
- message GooSettings {
- }
- message ZypperSettings {
-
- bool with_optional = 1;
-
- bool with_update = 2;
-
-
- repeated string categories = 3;
-
-
- repeated string severities = 4;
-
- repeated string excludes = 5;
-
-
-
- repeated string exclusive_patches = 6;
- }
- message WindowsUpdateSettings {
-
-
-
- enum Classification {
-
- CLASSIFICATION_UNSPECIFIED = 0;
-
-
- CRITICAL = 1;
-
-
-
-
- SECURITY = 2;
-
-
-
-
- DEFINITION = 3;
-
- DRIVER = 4;
-
-
-
- FEATURE_PACK = 5;
-
-
-
-
-
- SERVICE_PACK = 6;
-
- TOOL = 7;
-
-
-
-
- UPDATE_ROLLUP = 8;
-
-
- UPDATE = 9;
- }
-
-
- repeated Classification classifications = 1;
-
- repeated string excludes = 2;
-
-
-
- repeated string exclusive_patches = 3;
- }
- message ExecStep {
-
- ExecStepConfig linux_exec_step_config = 1;
-
- ExecStepConfig windows_exec_step_config = 2;
- }
- message ExecStepConfig {
-
- enum Interpreter {
-
-
-
- INTERPRETER_UNSPECIFIED = 0;
-
-
- SHELL = 1;
-
-
- POWERSHELL = 2;
- }
-
- oneof executable {
-
- string local_path = 1;
-
- GcsObject gcs_object = 2;
- }
-
-
- repeated int32 allowed_success_codes = 3;
-
-
-
-
- Interpreter interpreter = 4;
- }
- message GcsObject {
-
- string bucket = 1 [(google.api.field_behavior) = REQUIRED];
-
- string object = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- int64 generation_number = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message PatchInstanceFilter {
-
-
- message GroupLabel {
-
-
- map<string, string> labels = 1;
- }
-
-
- bool all = 1;
-
-
- repeated GroupLabel group_labels = 2;
-
-
- repeated string zones = 3;
-
-
-
-
- repeated string instances = 4;
-
-
-
- repeated string instance_name_prefixes = 5;
- }
- message PatchRollout {
-
- enum Mode {
-
- MODE_UNSPECIFIED = 0;
-
-
-
-
-
-
- ZONE_BY_ZONE = 1;
-
- CONCURRENT_ZONES = 2;
- }
-
- Mode mode = 1;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- FixedOrPercent disruption_budget = 2;
- }
|