google-cloud-os_config-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google-cloud-os_config-v1.rb +21 -0
- data/lib/google/cloud/os_config/v1.rb +35 -0
- data/lib/google/cloud/os_config/v1/os_config_service.rb +52 -0
- data/lib/google/cloud/os_config/v1/os_config_service/client.rb +1021 -0
- data/lib/google/cloud/os_config/v1/os_config_service/credentials.rb +51 -0
- data/lib/google/cloud/os_config/v1/os_config_service/paths.rb +81 -0
- data/lib/google/cloud/os_config/v1/version.rb +28 -0
- data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +24 -0
- data/lib/google/cloud/osconfig/v1/osconfig_service_services_pb.rb +66 -0
- data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +106 -0
- data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +246 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/osconfig/v1/patch_deployments.rb +242 -0
- data/proto_docs/google/cloud/osconfig/v1/patch_jobs.rb +713 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/type/datetime.rb +91 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +44 -0
- metadata +209 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module OsConfig
|
24
|
+
module V1
|
25
|
+
module OsConfigService
|
26
|
+
# Credentials for the OsConfigService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"OS_CONFIG_CREDENTIALS",
|
33
|
+
"OS_CONFIG_KEYFILE",
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
36
|
+
"GCLOUD_KEYFILE",
|
37
|
+
"OS_CONFIG_CREDENTIALS_JSON",
|
38
|
+
"OS_CONFIG_KEYFILE_JSON",
|
39
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
40
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
41
|
+
"GCLOUD_KEYFILE_JSON"
|
42
|
+
]
|
43
|
+
self.paths = [
|
44
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
45
|
+
]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module OsConfig
|
23
|
+
module V1
|
24
|
+
module OsConfigService
|
25
|
+
# Path helper methods for the OsConfigService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified PatchDeployment resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/patchDeployments/{patch_deployment}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param patch_deployment [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def patch_deployment_path project:, patch_deployment:
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project}/patchDeployments/#{patch_deployment}"
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create a fully-qualified PatchJob resource string.
|
46
|
+
#
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `projects/{project}/patchJobs/{patch_job}`
|
50
|
+
#
|
51
|
+
# @param project [String]
|
52
|
+
# @param patch_job [String]
|
53
|
+
#
|
54
|
+
# @return [::String]
|
55
|
+
def patch_job_path project:, patch_job:
|
56
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
57
|
+
|
58
|
+
"projects/#{project}/patchJobs/#{patch_job}"
|
59
|
+
end
|
60
|
+
|
61
|
+
##
|
62
|
+
# Create a fully-qualified Project resource string.
|
63
|
+
#
|
64
|
+
# The resource will be in the following format:
|
65
|
+
#
|
66
|
+
# `projects/{project}`
|
67
|
+
#
|
68
|
+
# @param project [String]
|
69
|
+
#
|
70
|
+
# @return [::String]
|
71
|
+
def project_path project:
|
72
|
+
"projects/#{project}"
|
73
|
+
end
|
74
|
+
|
75
|
+
extend self
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module OsConfig
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/osconfig/v1/osconfig_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/cloud/osconfig/v1/patch_deployments_pb'
|
10
|
+
require 'google/cloud/osconfig/v1/patch_jobs_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/osconfig/v1/osconfig_service.proto", :syntax => :proto3) do
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module OsConfig
|
20
|
+
module V1
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/osconfig/v1/osconfig_service.proto for package 'Google.Cloud.OsConfig.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2020 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/osconfig/v1/osconfig_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module OsConfig
|
25
|
+
module V1
|
26
|
+
module OsConfigService
|
27
|
+
# OS Config API
|
28
|
+
#
|
29
|
+
# The OS Config service is a server-side component that you can use to
|
30
|
+
# manage package installations and patch jobs for virtual machine instances.
|
31
|
+
class Service
|
32
|
+
|
33
|
+
include GRPC::GenericService
|
34
|
+
|
35
|
+
self.marshal_class_method = :encode
|
36
|
+
self.unmarshal_class_method = :decode
|
37
|
+
self.service_name = 'google.cloud.osconfig.v1.OsConfigService'
|
38
|
+
|
39
|
+
# Patch VM instances by creating and running a patch job.
|
40
|
+
rpc :ExecutePatchJob, Google::Cloud::OsConfig::V1::ExecutePatchJobRequest, Google::Cloud::OsConfig::V1::PatchJob
|
41
|
+
# Get the patch job. This can be used to track the progress of an
|
42
|
+
# ongoing patch job or review the details of completed jobs.
|
43
|
+
rpc :GetPatchJob, Google::Cloud::OsConfig::V1::GetPatchJobRequest, Google::Cloud::OsConfig::V1::PatchJob
|
44
|
+
# Cancel a patch job. The patch job must be active. Canceled patch jobs
|
45
|
+
# cannot be restarted.
|
46
|
+
rpc :CancelPatchJob, Google::Cloud::OsConfig::V1::CancelPatchJobRequest, Google::Cloud::OsConfig::V1::PatchJob
|
47
|
+
# Get a list of patch jobs.
|
48
|
+
rpc :ListPatchJobs, Google::Cloud::OsConfig::V1::ListPatchJobsRequest, Google::Cloud::OsConfig::V1::ListPatchJobsResponse
|
49
|
+
# Get a list of instance details for a given patch job.
|
50
|
+
rpc :ListPatchJobInstanceDetails, Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsRequest, Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsResponse
|
51
|
+
# Create an OS Config patch deployment.
|
52
|
+
rpc :CreatePatchDeployment, Google::Cloud::OsConfig::V1::CreatePatchDeploymentRequest, Google::Cloud::OsConfig::V1::PatchDeployment
|
53
|
+
# Get an OS Config patch deployment.
|
54
|
+
rpc :GetPatchDeployment, Google::Cloud::OsConfig::V1::GetPatchDeploymentRequest, Google::Cloud::OsConfig::V1::PatchDeployment
|
55
|
+
# Get a page of OS Config patch deployments.
|
56
|
+
rpc :ListPatchDeployments, Google::Cloud::OsConfig::V1::ListPatchDeploymentsRequest, Google::Cloud::OsConfig::V1::ListPatchDeploymentsResponse
|
57
|
+
# Delete an OS Config patch deployment.
|
58
|
+
rpc :DeletePatchDeployment, Google::Cloud::OsConfig::V1::DeletePatchDeploymentRequest, Google::Protobuf::Empty
|
59
|
+
end
|
60
|
+
|
61
|
+
Stub = Service.rpc_stub_class
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/osconfig/v1/patch_deployments.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/osconfig/v1/patch_jobs_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/type/datetime_pb'
|
12
|
+
require 'google/type/dayofweek_pb'
|
13
|
+
require 'google/type/timeofday_pb'
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/cloud/osconfig/v1/patch_deployments.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.osconfig.v1.PatchDeployment" do
|
17
|
+
optional :name, :string, 1
|
18
|
+
optional :description, :string, 2
|
19
|
+
optional :instance_filter, :message, 3, "google.cloud.osconfig.v1.PatchInstanceFilter"
|
20
|
+
optional :patch_config, :message, 4, "google.cloud.osconfig.v1.PatchConfig"
|
21
|
+
optional :duration, :message, 5, "google.protobuf.Duration"
|
22
|
+
optional :create_time, :message, 8, "google.protobuf.Timestamp"
|
23
|
+
optional :update_time, :message, 9, "google.protobuf.Timestamp"
|
24
|
+
optional :last_execute_time, :message, 10, "google.protobuf.Timestamp"
|
25
|
+
oneof :schedule do
|
26
|
+
optional :one_time_schedule, :message, 6, "google.cloud.osconfig.v1.OneTimeSchedule"
|
27
|
+
optional :recurring_schedule, :message, 7, "google.cloud.osconfig.v1.RecurringSchedule"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
add_message "google.cloud.osconfig.v1.OneTimeSchedule" do
|
31
|
+
optional :execute_time, :message, 1, "google.protobuf.Timestamp"
|
32
|
+
end
|
33
|
+
add_message "google.cloud.osconfig.v1.RecurringSchedule" do
|
34
|
+
optional :time_zone, :message, 1, "google.type.TimeZone"
|
35
|
+
optional :start_time, :message, 2, "google.protobuf.Timestamp"
|
36
|
+
optional :end_time, :message, 3, "google.protobuf.Timestamp"
|
37
|
+
optional :time_of_day, :message, 4, "google.type.TimeOfDay"
|
38
|
+
optional :frequency, :enum, 5, "google.cloud.osconfig.v1.RecurringSchedule.Frequency"
|
39
|
+
optional :last_execute_time, :message, 9, "google.protobuf.Timestamp"
|
40
|
+
optional :next_execute_time, :message, 10, "google.protobuf.Timestamp"
|
41
|
+
oneof :schedule_config do
|
42
|
+
optional :weekly, :message, 6, "google.cloud.osconfig.v1.WeeklySchedule"
|
43
|
+
optional :monthly, :message, 7, "google.cloud.osconfig.v1.MonthlySchedule"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
add_enum "google.cloud.osconfig.v1.RecurringSchedule.Frequency" do
|
47
|
+
value :FREQUENCY_UNSPECIFIED, 0
|
48
|
+
value :WEEKLY, 1
|
49
|
+
value :MONTHLY, 2
|
50
|
+
end
|
51
|
+
add_message "google.cloud.osconfig.v1.WeeklySchedule" do
|
52
|
+
optional :day_of_week, :enum, 1, "google.type.DayOfWeek"
|
53
|
+
end
|
54
|
+
add_message "google.cloud.osconfig.v1.MonthlySchedule" do
|
55
|
+
oneof :day_of_month do
|
56
|
+
optional :week_day_of_month, :message, 1, "google.cloud.osconfig.v1.WeekDayOfMonth"
|
57
|
+
optional :month_day, :int32, 2
|
58
|
+
end
|
59
|
+
end
|
60
|
+
add_message "google.cloud.osconfig.v1.WeekDayOfMonth" do
|
61
|
+
optional :week_ordinal, :int32, 1
|
62
|
+
optional :day_of_week, :enum, 2, "google.type.DayOfWeek"
|
63
|
+
end
|
64
|
+
add_message "google.cloud.osconfig.v1.CreatePatchDeploymentRequest" do
|
65
|
+
optional :parent, :string, 1
|
66
|
+
optional :patch_deployment_id, :string, 2
|
67
|
+
optional :patch_deployment, :message, 3, "google.cloud.osconfig.v1.PatchDeployment"
|
68
|
+
end
|
69
|
+
add_message "google.cloud.osconfig.v1.GetPatchDeploymentRequest" do
|
70
|
+
optional :name, :string, 1
|
71
|
+
end
|
72
|
+
add_message "google.cloud.osconfig.v1.ListPatchDeploymentsRequest" do
|
73
|
+
optional :parent, :string, 1
|
74
|
+
optional :page_size, :int32, 2
|
75
|
+
optional :page_token, :string, 3
|
76
|
+
end
|
77
|
+
add_message "google.cloud.osconfig.v1.ListPatchDeploymentsResponse" do
|
78
|
+
repeated :patch_deployments, :message, 1, "google.cloud.osconfig.v1.PatchDeployment"
|
79
|
+
optional :next_page_token, :string, 2
|
80
|
+
end
|
81
|
+
add_message "google.cloud.osconfig.v1.DeletePatchDeploymentRequest" do
|
82
|
+
optional :name, :string, 1
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
module Google
|
88
|
+
module Cloud
|
89
|
+
module OsConfig
|
90
|
+
module V1
|
91
|
+
PatchDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchDeployment").msgclass
|
92
|
+
OneTimeSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OneTimeSchedule").msgclass
|
93
|
+
RecurringSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule").msgclass
|
94
|
+
RecurringSchedule::Frequency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule.Frequency").enummodule
|
95
|
+
WeeklySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WeeklySchedule").msgclass
|
96
|
+
MonthlySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.MonthlySchedule").msgclass
|
97
|
+
WeekDayOfMonth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WeekDayOfMonth").msgclass
|
98
|
+
CreatePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CreatePatchDeploymentRequest").msgclass
|
99
|
+
GetPatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetPatchDeploymentRequest").msgclass
|
100
|
+
ListPatchDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsRequest").msgclass
|
101
|
+
ListPatchDeploymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsResponse").msgclass
|
102
|
+
DeletePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.DeletePatchDeploymentRequest").msgclass
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,246 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/osconfig/v1/patch_jobs.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/cloud/osconfig/v1/patch_jobs.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.osconfig.v1.ExecutePatchJobRequest" do
|
13
|
+
optional :parent, :string, 1
|
14
|
+
optional :description, :string, 2
|
15
|
+
optional :instance_filter, :message, 7, "google.cloud.osconfig.v1.PatchInstanceFilter"
|
16
|
+
optional :patch_config, :message, 4, "google.cloud.osconfig.v1.PatchConfig"
|
17
|
+
optional :duration, :message, 5, "google.protobuf.Duration"
|
18
|
+
optional :dry_run, :bool, 6
|
19
|
+
optional :display_name, :string, 8
|
20
|
+
end
|
21
|
+
add_message "google.cloud.osconfig.v1.GetPatchJobRequest" do
|
22
|
+
optional :name, :string, 1
|
23
|
+
end
|
24
|
+
add_message "google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest" do
|
25
|
+
optional :parent, :string, 1
|
26
|
+
optional :page_size, :int32, 2
|
27
|
+
optional :page_token, :string, 3
|
28
|
+
optional :filter, :string, 4
|
29
|
+
end
|
30
|
+
add_message "google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse" do
|
31
|
+
repeated :patch_job_instance_details, :message, 1, "google.cloud.osconfig.v1.PatchJobInstanceDetails"
|
32
|
+
optional :next_page_token, :string, 2
|
33
|
+
end
|
34
|
+
add_message "google.cloud.osconfig.v1.PatchJobInstanceDetails" do
|
35
|
+
optional :name, :string, 1
|
36
|
+
optional :instance_system_id, :string, 2
|
37
|
+
optional :state, :enum, 3, "google.cloud.osconfig.v1.Instance.PatchState"
|
38
|
+
optional :failure_reason, :string, 4
|
39
|
+
optional :attempt_count, :int64, 5
|
40
|
+
end
|
41
|
+
add_message "google.cloud.osconfig.v1.ListPatchJobsRequest" do
|
42
|
+
optional :parent, :string, 1
|
43
|
+
optional :page_size, :int32, 2
|
44
|
+
optional :page_token, :string, 3
|
45
|
+
optional :filter, :string, 4
|
46
|
+
end
|
47
|
+
add_message "google.cloud.osconfig.v1.ListPatchJobsResponse" do
|
48
|
+
repeated :patch_jobs, :message, 1, "google.cloud.osconfig.v1.PatchJob"
|
49
|
+
optional :next_page_token, :string, 2
|
50
|
+
end
|
51
|
+
add_message "google.cloud.osconfig.v1.PatchJob" do
|
52
|
+
optional :name, :string, 1
|
53
|
+
optional :display_name, :string, 14
|
54
|
+
optional :description, :string, 2
|
55
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
56
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
57
|
+
optional :state, :enum, 5, "google.cloud.osconfig.v1.PatchJob.State"
|
58
|
+
optional :instance_filter, :message, 13, "google.cloud.osconfig.v1.PatchInstanceFilter"
|
59
|
+
optional :patch_config, :message, 7, "google.cloud.osconfig.v1.PatchConfig"
|
60
|
+
optional :duration, :message, 8, "google.protobuf.Duration"
|
61
|
+
optional :instance_details_summary, :message, 9, "google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary"
|
62
|
+
optional :dry_run, :bool, 10
|
63
|
+
optional :error_message, :string, 11
|
64
|
+
optional :percent_complete, :double, 12
|
65
|
+
optional :patch_deployment, :string, 15
|
66
|
+
end
|
67
|
+
add_message "google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary" do
|
68
|
+
optional :pending_instance_count, :int64, 1
|
69
|
+
optional :inactive_instance_count, :int64, 2
|
70
|
+
optional :notified_instance_count, :int64, 3
|
71
|
+
optional :started_instance_count, :int64, 4
|
72
|
+
optional :downloading_patches_instance_count, :int64, 5
|
73
|
+
optional :applying_patches_instance_count, :int64, 6
|
74
|
+
optional :rebooting_instance_count, :int64, 7
|
75
|
+
optional :succeeded_instance_count, :int64, 8
|
76
|
+
optional :succeeded_reboot_required_instance_count, :int64, 9
|
77
|
+
optional :failed_instance_count, :int64, 10
|
78
|
+
optional :acked_instance_count, :int64, 11
|
79
|
+
optional :timed_out_instance_count, :int64, 12
|
80
|
+
optional :pre_patch_step_instance_count, :int64, 13
|
81
|
+
optional :post_patch_step_instance_count, :int64, 14
|
82
|
+
optional :no_agent_detected_instance_count, :int64, 15
|
83
|
+
end
|
84
|
+
add_enum "google.cloud.osconfig.v1.PatchJob.State" do
|
85
|
+
value :STATE_UNSPECIFIED, 0
|
86
|
+
value :STARTED, 1
|
87
|
+
value :INSTANCE_LOOKUP, 2
|
88
|
+
value :PATCHING, 3
|
89
|
+
value :SUCCEEDED, 4
|
90
|
+
value :COMPLETED_WITH_ERRORS, 5
|
91
|
+
value :CANCELED, 6
|
92
|
+
value :TIMED_OUT, 7
|
93
|
+
end
|
94
|
+
add_message "google.cloud.osconfig.v1.PatchConfig" do
|
95
|
+
optional :reboot_config, :enum, 1, "google.cloud.osconfig.v1.PatchConfig.RebootConfig"
|
96
|
+
optional :apt, :message, 3, "google.cloud.osconfig.v1.AptSettings"
|
97
|
+
optional :yum, :message, 4, "google.cloud.osconfig.v1.YumSettings"
|
98
|
+
optional :goo, :message, 5, "google.cloud.osconfig.v1.GooSettings"
|
99
|
+
optional :zypper, :message, 6, "google.cloud.osconfig.v1.ZypperSettings"
|
100
|
+
optional :windows_update, :message, 7, "google.cloud.osconfig.v1.WindowsUpdateSettings"
|
101
|
+
optional :pre_step, :message, 8, "google.cloud.osconfig.v1.ExecStep"
|
102
|
+
optional :post_step, :message, 9, "google.cloud.osconfig.v1.ExecStep"
|
103
|
+
end
|
104
|
+
add_enum "google.cloud.osconfig.v1.PatchConfig.RebootConfig" do
|
105
|
+
value :REBOOT_CONFIG_UNSPECIFIED, 0
|
106
|
+
value :DEFAULT, 1
|
107
|
+
value :ALWAYS, 2
|
108
|
+
value :NEVER, 3
|
109
|
+
end
|
110
|
+
add_message "google.cloud.osconfig.v1.Instance" do
|
111
|
+
end
|
112
|
+
add_enum "google.cloud.osconfig.v1.Instance.PatchState" do
|
113
|
+
value :PATCH_STATE_UNSPECIFIED, 0
|
114
|
+
value :PENDING, 1
|
115
|
+
value :INACTIVE, 2
|
116
|
+
value :NOTIFIED, 3
|
117
|
+
value :STARTED, 4
|
118
|
+
value :DOWNLOADING_PATCHES, 5
|
119
|
+
value :APPLYING_PATCHES, 6
|
120
|
+
value :REBOOTING, 7
|
121
|
+
value :SUCCEEDED, 8
|
122
|
+
value :SUCCEEDED_REBOOT_REQUIRED, 9
|
123
|
+
value :FAILED, 10
|
124
|
+
value :ACKED, 11
|
125
|
+
value :TIMED_OUT, 12
|
126
|
+
value :RUNNING_PRE_PATCH_STEP, 13
|
127
|
+
value :RUNNING_POST_PATCH_STEP, 14
|
128
|
+
value :NO_AGENT_DETECTED, 15
|
129
|
+
end
|
130
|
+
add_message "google.cloud.osconfig.v1.CancelPatchJobRequest" do
|
131
|
+
optional :name, :string, 1
|
132
|
+
end
|
133
|
+
add_message "google.cloud.osconfig.v1.AptSettings" do
|
134
|
+
optional :type, :enum, 1, "google.cloud.osconfig.v1.AptSettings.Type"
|
135
|
+
repeated :excludes, :string, 2
|
136
|
+
repeated :exclusive_packages, :string, 3
|
137
|
+
end
|
138
|
+
add_enum "google.cloud.osconfig.v1.AptSettings.Type" do
|
139
|
+
value :TYPE_UNSPECIFIED, 0
|
140
|
+
value :DIST, 1
|
141
|
+
value :UPGRADE, 2
|
142
|
+
end
|
143
|
+
add_message "google.cloud.osconfig.v1.YumSettings" do
|
144
|
+
optional :security, :bool, 1
|
145
|
+
optional :minimal, :bool, 2
|
146
|
+
repeated :excludes, :string, 3
|
147
|
+
repeated :exclusive_packages, :string, 4
|
148
|
+
end
|
149
|
+
add_message "google.cloud.osconfig.v1.GooSettings" do
|
150
|
+
end
|
151
|
+
add_message "google.cloud.osconfig.v1.ZypperSettings" do
|
152
|
+
optional :with_optional, :bool, 1
|
153
|
+
optional :with_update, :bool, 2
|
154
|
+
repeated :categories, :string, 3
|
155
|
+
repeated :severities, :string, 4
|
156
|
+
repeated :excludes, :string, 5
|
157
|
+
repeated :exclusive_patches, :string, 6
|
158
|
+
end
|
159
|
+
add_message "google.cloud.osconfig.v1.WindowsUpdateSettings" do
|
160
|
+
repeated :classifications, :enum, 1, "google.cloud.osconfig.v1.WindowsUpdateSettings.Classification"
|
161
|
+
repeated :excludes, :string, 2
|
162
|
+
repeated :exclusive_patches, :string, 3
|
163
|
+
end
|
164
|
+
add_enum "google.cloud.osconfig.v1.WindowsUpdateSettings.Classification" do
|
165
|
+
value :CLASSIFICATION_UNSPECIFIED, 0
|
166
|
+
value :CRITICAL, 1
|
167
|
+
value :SECURITY, 2
|
168
|
+
value :DEFINITION, 3
|
169
|
+
value :DRIVER, 4
|
170
|
+
value :FEATURE_PACK, 5
|
171
|
+
value :SERVICE_PACK, 6
|
172
|
+
value :TOOL, 7
|
173
|
+
value :UPDATE_ROLLUP, 8
|
174
|
+
value :UPDATE, 9
|
175
|
+
end
|
176
|
+
add_message "google.cloud.osconfig.v1.ExecStep" do
|
177
|
+
optional :linux_exec_step_config, :message, 1, "google.cloud.osconfig.v1.ExecStepConfig"
|
178
|
+
optional :windows_exec_step_config, :message, 2, "google.cloud.osconfig.v1.ExecStepConfig"
|
179
|
+
end
|
180
|
+
add_message "google.cloud.osconfig.v1.ExecStepConfig" do
|
181
|
+
repeated :allowed_success_codes, :int32, 3
|
182
|
+
optional :interpreter, :enum, 4, "google.cloud.osconfig.v1.ExecStepConfig.Interpreter"
|
183
|
+
oneof :executable do
|
184
|
+
optional :local_path, :string, 1
|
185
|
+
optional :gcs_object, :message, 2, "google.cloud.osconfig.v1.GcsObject"
|
186
|
+
end
|
187
|
+
end
|
188
|
+
add_enum "google.cloud.osconfig.v1.ExecStepConfig.Interpreter" do
|
189
|
+
value :INTERPRETER_UNSPECIFIED, 0
|
190
|
+
value :SHELL, 1
|
191
|
+
value :POWERSHELL, 2
|
192
|
+
end
|
193
|
+
add_message "google.cloud.osconfig.v1.GcsObject" do
|
194
|
+
optional :bucket, :string, 1
|
195
|
+
optional :object, :string, 2
|
196
|
+
optional :generation_number, :int64, 3
|
197
|
+
end
|
198
|
+
add_message "google.cloud.osconfig.v1.PatchInstanceFilter" do
|
199
|
+
optional :all, :bool, 1
|
200
|
+
repeated :group_labels, :message, 2, "google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel"
|
201
|
+
repeated :zones, :string, 3
|
202
|
+
repeated :instances, :string, 4
|
203
|
+
repeated :instance_name_prefixes, :string, 5
|
204
|
+
end
|
205
|
+
add_message "google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel" do
|
206
|
+
map :labels, :string, :string, 1
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
module Google
|
212
|
+
module Cloud
|
213
|
+
module OsConfig
|
214
|
+
module V1
|
215
|
+
ExecutePatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecutePatchJobRequest").msgclass
|
216
|
+
GetPatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetPatchJobRequest").msgclass
|
217
|
+
ListPatchJobInstanceDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobInstanceDetailsRequest").msgclass
|
218
|
+
ListPatchJobInstanceDetailsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse").msgclass
|
219
|
+
PatchJobInstanceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJobInstanceDetails").msgclass
|
220
|
+
ListPatchJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobsRequest").msgclass
|
221
|
+
ListPatchJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchJobsResponse").msgclass
|
222
|
+
PatchJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJob").msgclass
|
223
|
+
PatchJob::InstanceDetailsSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary").msgclass
|
224
|
+
PatchJob::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchJob.State").enummodule
|
225
|
+
PatchConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchConfig").msgclass
|
226
|
+
PatchConfig::RebootConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchConfig.RebootConfig").enummodule
|
227
|
+
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Instance").msgclass
|
228
|
+
Instance::PatchState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Instance.PatchState").enummodule
|
229
|
+
CancelPatchJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CancelPatchJobRequest").msgclass
|
230
|
+
AptSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.AptSettings").msgclass
|
231
|
+
AptSettings::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.AptSettings.Type").enummodule
|
232
|
+
YumSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.YumSettings").msgclass
|
233
|
+
GooSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GooSettings").msgclass
|
234
|
+
ZypperSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ZypperSettings").msgclass
|
235
|
+
WindowsUpdateSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WindowsUpdateSettings").msgclass
|
236
|
+
WindowsUpdateSettings::Classification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WindowsUpdateSettings.Classification").enummodule
|
237
|
+
ExecStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecStep").msgclass
|
238
|
+
ExecStepConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecStepConfig").msgclass
|
239
|
+
ExecStepConfig::Interpreter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ExecStepConfig.Interpreter").enummodule
|
240
|
+
GcsObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GcsObject").msgclass
|
241
|
+
PatchInstanceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchInstanceFilter").msgclass
|
242
|
+
PatchInstanceFilter::GroupLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel").msgclass
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|