# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/osconfig/v1/patch_jobs.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/osconfig/v1/patch_jobs.proto", :syntax => :proto3) do add_message "google.cloud.osconfig.v1.ExecutePatchJobRequest" do optional :parent, :string, 1 optional :description, :string, 2 optional :instance_filter, :message, 7, "google.cloud.osconfig.v1.PatchInstanceFilter" optional :patch_config, :message, 4, "google.cloud.osconfig.v1.PatchConfig" optional :duration, :message, 5, "google.protobuf.Duration" optional :dry_run, :bool, 6 optional :display_name, :string, 8 end add_message "google.cloud.osconfig.v1.GetPatchJobRequest" do optional :name, :string, 1 end add_message "google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 optional :filter, :string, 4 end add_message "google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse" do repeated :patch_job_instance_details, :message, 1, "google.cloud.osconfig.v1.PatchJobInstanceDetails" optional :next_page_token, :string, 2 end add_message "google.cloud.osconfig.v1.PatchJobInstanceDetails" do optional :name, :string, 1 optional :instance_system_id, :string, 2 optional :state, :enum, 3, "google.cloud.osconfig.v1.Instance.PatchState" optional :failure_reason, :string, 4 optional :attempt_count, :int64, 5 end add_message "google.cloud.osconfig.v1.ListPatchJobsRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 optional :filter, :string, 4 end add_message "google.cloud.osconfig.v1.ListPatchJobsResponse" do repeated :patch_jobs, :message, 1, "google.cloud.osconfig.v1.PatchJob" optional :next_page_token, :string, 2 end add_message "google.cloud.osconfig.v1.PatchJob" do optional :name, :string, 1 optional :display_name, :string, 14 optional :description, :string, 2 optional :create_time, :message, 3, "google.protobuf.Timestamp" optional :update_time, :message, 4, "google.protobuf.Timestamp" optional :state, :enum, 5, "google.cloud.osconfig.v1.PatchJob.State" optional :instance_filter, :message, 13, "google.cloud.osconfig.v1.PatchInstanceFilter" optional :patch_config, :message, 7, "google.cloud.osconfig.v1.PatchConfig" optional :duration, :message, 8, "google.protobuf.Duration" optional :instance_details_summary, :message, 9, "google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary" optional :dry_run, :bool, 10 optional :error_message, :string, 11 optional :percent_complete, :double, 12 optional :patch_deployment, :string, 15 end add_message "google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary" do optional :pending_instance_count, :int64, 1 optional :inactive_instance_count, :int64, 2 optional :notified_instance_count, :int64, 3 optional :started_instance_count, :int64, 4 optional :downloading_patches_instance_count, :int64, 5 optional :applying_patches_instance_count, :int64, 6 optional :rebooting_instance_count, :int64, 7 optional :succeeded_instance_count, :int64, 8 optional :succeeded_reboot_required_instance_count, :int64, 9 optional :failed_instance_count, :int64, 10 optional :acked_instance_count, :int64, 11 optional :timed_out_instance_count, :int64, 12 optional :pre_patch_step_instance_count, :int64, 13 optional :post_patch_step_instance_count, :int64, 14 optional :no_agent_detected_instance_count, :int64, 15 end add_enum "google.cloud.osconfig.v1.PatchJob.State" do value :STATE_UNSPECIFIED, 0 value :STARTED, 1 value :INSTANCE_LOOKUP, 2 value :PATCHING, 3 value :SUCCEEDED, 4 value :COMPLETED_WITH_ERRORS, 5 value :CANCELED, 6 value :TIMED_OUT, 7 end add_message "google.cloud.osconfig.v1.PatchConfig" do optional :reboot_config, :enum, 1, "google.cloud.osconfig.v1.PatchConfig.RebootConfig" optional :apt, :message, 3, "google.cloud.osconfig.v1.AptSettings" optional :yum, :message, 4, "google.cloud.osconfig.v1.YumSettings" optional :goo, :message, 5, "google.cloud.osconfig.v1.GooSettings" optional :zypper, :message, 6, "google.cloud.osconfig.v1.ZypperSettings" optional :windows_update, :message, 7, "google.cloud.osconfig.v1.WindowsUpdateSettings" optional :pre_step, :message, 8, "google.cloud.osconfig.v1.ExecStep" optional :post_step, :message, 9, "google.cloud.osconfig.v1.ExecStep" end add_enum "google.cloud.osconfig.v1.PatchConfig.RebootConfig" do value :REBOOT_CONFIG_UNSPECIFIED, 0 value :DEFAULT, 1 value :ALWAYS, 2 value :NEVER, 3 end add_message "google.cloud.osconfig.v1.Instance" do end add_enum "google.cloud.osconfig.v1.Instance.PatchState" do value :PATCH_STATE_UNSPECIFIED, 0 value :PENDING, 1 value :INACTIVE, 2 value :NOTIFIED, 3 value :STARTED, 4 value :DOWNLOADING_PATCHES, 5 value :APPLYING_PATCHES, 6 value :REBOOTING, 7 value :SUCCEEDED, 8 value :SUCCEEDED_REBOOT_REQUIRED, 9 value :FAILED, 10 value :ACKED, 11 value :TIMED_OUT, 12 value :RUNNING_PRE_PATCH_STEP, 13 value :RUNNING_POST_PATCH_STEP, 14 value :NO_AGENT_DETECTED, 15 end add_message "google.cloud.osconfig.v1.CancelPatchJobRequest" do optional :name, :string, 1 end add_message "google.cloud.osconfig.v1.AptSettings" do optional :type, :enum, 1, "google.cloud.osconfig.v1.AptSettings.Type" repeated :excludes, :string, 2 repeated :exclusive_packages, :string, 3 end add_enum "google.cloud.osconfig.v1.AptSettings.Type" do value :TYPE_UNSPECIFIED, 0 value :DIST, 1 value :UPGRADE, 2 end add_message "google.cloud.osconfig.v1.YumSettings" do optional :security, :bool, 1 optional :minimal, :bool, 2 repeated :excludes, :string, 3 repeated :exclusive_packages, :string, 4 end add_message "google.cloud.osconfig.v1.GooSettings" do end add_message "google.cloud.osconfig.v1.ZypperSettings" do optional :with_optional, :bool, 1 optional :with_update, :bool, 2 repeated :categories, :string, 3 repeated :severities, :string, 4 repeated :excludes, :string, 5 repeated :exclusive_patches, :string, 6 end add_message "google.cloud.osconfig.v1.WindowsUpdateSettings" do repeated :classifications, :enum, 1, "google.cloud.osconfig.v1.WindowsUpdateSettings.Classification" repeated :excludes, :string, 2 repeated :exclusive_patches, :string, 3 end add_enum "google.cloud.osconfig.v1.WindowsUpdateSettings.Classification" do value :CLASSIFICATION_UNSPECIFIED, 0 value :CRITICAL, 1 value :SECURITY, 2 value :DEFINITION, 3 value :DRIVER, 4 value :FEATURE_PACK, 5 value :SERVICE_PACK, 6 value :TOOL, 7 value :UPDATE_ROLLUP, 8 value :UPDATE, 9 end add_message "google.cloud.osconfig.v1.ExecStep" do optional :linux_exec_step_config, :message, 1, "google.cloud.osconfig.v1.ExecStepConfig" optional :windows_exec_step_config, :message, 2, "google.cloud.osconfig.v1.ExecStepConfig" end add_message "google.cloud.osconfig.v1.ExecStepConfig" do repeated :allowed_success_codes, :int32, 3 optional :interpreter, :enum, 4, "google.cloud.osconfig.v1.ExecStepConfig.Interpreter" oneof :executable do optional :local_path, :string, 1 optional :gcs_object, :message, 2, "google.cloud.osconfig.v1.GcsObject" end end add_enum "google.cloud.osconfig.v1.ExecStepConfig.Interpreter" do value :INTERPRETER_UNSPECIFIED, 0 value :SHELL, 1 value :POWERSHELL, 2 end add_message "google.cloud.osconfig.v1.GcsObject" do optional :bucket, :string, 1 optional :object, :string, 2 optional :generation_number, :int64, 3 end add_message "google.cloud.osconfig.v1.PatchInstanceFilter" do optional :all, :bool, 1 repeated :group_labels, :message, 2, "google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel" repeated :zones, :string, 3 repeated :instances, :string, 4 repeated :instance_name_prefixes, :string, 5 end add_message "google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel" do map :labels, :string, :string, 1 end end end module Google module Cloud module OsConfig module V1 ExecutePatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecutePatchJobRequest").msgclass GetPatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetPatchJobRequest").msgclass ListPatchJobInstanceDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest").msgclass ListPatchJobInstanceDetailsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse").msgclass PatchJobInstanceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJobInstanceDetails").msgclass ListPatchJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobsRequest").msgclass ListPatchJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobsResponse").msgclass PatchJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJob").msgclass PatchJob::InstanceDetailsSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary").msgclass PatchJob::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJob.State").enummodule PatchConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchConfig").msgclass PatchConfig::RebootConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchConfig.RebootConfig").enummodule Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Instance").msgclass Instance::PatchState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Instance.PatchState").enummodule CancelPatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CancelPatchJobRequest").msgclass AptSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.AptSettings").msgclass AptSettings::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.AptSettings.Type").enummodule YumSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.YumSettings").msgclass GooSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GooSettings").msgclass ZypperSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ZypperSettings").msgclass WindowsUpdateSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WindowsUpdateSettings").msgclass WindowsUpdateSettings::Classification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WindowsUpdateSettings.Classification").enummodule ExecStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecStep").msgclass ExecStepConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecStepConfig").msgclass ExecStepConfig::Interpreter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecStepConfig.Interpreter").enummodule GcsObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GcsObject").msgclass PatchInstanceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchInstanceFilter").msgclass PatchInstanceFilter::GroupLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel").msgclass end end end end