google-cloud-os_config-v1 0.5.0 → 0.9.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 +4 -4
- data/lib/google/cloud/os_config/v1/os_config_service/client.rb +198 -27
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +1628 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/credentials.rb +51 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +767 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/paths.rb +192 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service.rb +53 -0
- data/lib/google/cloud/os_config/v1/version.rb +1 -1
- data/lib/google/cloud/os_config/v1.rb +1 -0
- data/lib/google/cloud/osconfig/v1/inventory_pb.rb +37 -9
- data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +92 -0
- data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +134 -0
- data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +204 -0
- data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +2 -2
- data/lib/google/cloud/osconfig/v1/osconfig_service_services_pb.rb +1 -1
- data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -0
- data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_services_pb.rb +107 -0
- data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +3 -2
- data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +2 -2
- data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +127 -0
- data/proto_docs/google/cloud/osconfig/v1/inventory.rb +111 -20
- data/proto_docs/google/cloud/osconfig/v1/os_policy.rb +597 -0
- data/proto_docs/google/cloud/osconfig/v1/os_policy_assignment_reports.rb +293 -0
- data/proto_docs/google/cloud/osconfig/v1/os_policy_assignments.rb +392 -0
- data/proto_docs/google/cloud/osconfig/v1/patch_deployments.rb +4 -0
- data/proto_docs/google/cloud/osconfig/v1/vulnerability.rb +374 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +21 -2
@@ -0,0 +1,192 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 OsConfigZonalService
|
25
|
+
# Path helper methods for the OsConfigZonalService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Instance resource string.
|
29
|
+
#
|
30
|
+
# @overload instance_path(project:, zone:, instance:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/zones/{zone}/instances/{instance}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param zone [String]
|
37
|
+
# @param instance [String]
|
38
|
+
#
|
39
|
+
# @overload instance_path(project:, location:, instance:)
|
40
|
+
# The resource will be in the following format:
|
41
|
+
#
|
42
|
+
# `projects/{project}/locations/{location}/instances/{instance}`
|
43
|
+
#
|
44
|
+
# @param project [String]
|
45
|
+
# @param location [String]
|
46
|
+
# @param instance [String]
|
47
|
+
#
|
48
|
+
# @return [::String]
|
49
|
+
def instance_path **args
|
50
|
+
resources = {
|
51
|
+
"instance:project:zone" => (proc do |project:, zone:, instance:|
|
52
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
53
|
+
raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
|
54
|
+
|
55
|
+
"projects/#{project}/zones/#{zone}/instances/#{instance}"
|
56
|
+
end),
|
57
|
+
"instance:location:project" => (proc do |project:, location:, instance:|
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
60
|
+
|
61
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}"
|
62
|
+
end)
|
63
|
+
}
|
64
|
+
|
65
|
+
resource = resources[args.keys.sort.join(":")]
|
66
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
67
|
+
resource.call(**args)
|
68
|
+
end
|
69
|
+
|
70
|
+
##
|
71
|
+
# Create a fully-qualified InstanceOSPolicyAssignment resource string.
|
72
|
+
#
|
73
|
+
# The resource will be in the following format:
|
74
|
+
#
|
75
|
+
# `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}`
|
76
|
+
#
|
77
|
+
# @param project [String]
|
78
|
+
# @param location [String]
|
79
|
+
# @param instance [String]
|
80
|
+
# @param assignment [String]
|
81
|
+
#
|
82
|
+
# @return [::String]
|
83
|
+
def instance_os_policy_assignment_path project:, location:, instance:, assignment:
|
84
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
85
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
86
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
87
|
+
|
88
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/osPolicyAssignments/#{assignment}"
|
89
|
+
end
|
90
|
+
|
91
|
+
##
|
92
|
+
# Create a fully-qualified Inventory resource string.
|
93
|
+
#
|
94
|
+
# The resource will be in the following format:
|
95
|
+
#
|
96
|
+
# `projects/{project}/locations/{location}/instances/{instance}/inventory`
|
97
|
+
#
|
98
|
+
# @param project [String]
|
99
|
+
# @param location [String]
|
100
|
+
# @param instance [String]
|
101
|
+
#
|
102
|
+
# @return [::String]
|
103
|
+
def inventory_path project:, location:, instance:
|
104
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
105
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
106
|
+
|
107
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/inventory"
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# Create a fully-qualified Location resource string.
|
112
|
+
#
|
113
|
+
# The resource will be in the following format:
|
114
|
+
#
|
115
|
+
# `projects/{project}/locations/{location}`
|
116
|
+
#
|
117
|
+
# @param project [String]
|
118
|
+
# @param location [String]
|
119
|
+
#
|
120
|
+
# @return [::String]
|
121
|
+
def location_path project:, location:
|
122
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
123
|
+
|
124
|
+
"projects/#{project}/locations/#{location}"
|
125
|
+
end
|
126
|
+
|
127
|
+
##
|
128
|
+
# Create a fully-qualified OSPolicyAssignment resource string.
|
129
|
+
#
|
130
|
+
# The resource will be in the following format:
|
131
|
+
#
|
132
|
+
# `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}`
|
133
|
+
#
|
134
|
+
# @param project [String]
|
135
|
+
# @param location [String]
|
136
|
+
# @param os_policy_assignment [String]
|
137
|
+
#
|
138
|
+
# @return [::String]
|
139
|
+
def os_policy_assignment_path project:, location:, os_policy_assignment:
|
140
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
141
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
142
|
+
|
143
|
+
"projects/#{project}/locations/#{location}/osPolicyAssignments/#{os_policy_assignment}"
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# Create a fully-qualified OSPolicyAssignmentReport resource string.
|
148
|
+
#
|
149
|
+
# The resource will be in the following format:
|
150
|
+
#
|
151
|
+
# `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
|
152
|
+
#
|
153
|
+
# @param project [String]
|
154
|
+
# @param location [String]
|
155
|
+
# @param instance [String]
|
156
|
+
# @param assignment [String]
|
157
|
+
#
|
158
|
+
# @return [::String]
|
159
|
+
def os_policy_assignment_report_path project:, location:, instance:, assignment:
|
160
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
161
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
162
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
163
|
+
|
164
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/osPolicyAssignments/#{assignment}/report"
|
165
|
+
end
|
166
|
+
|
167
|
+
##
|
168
|
+
# Create a fully-qualified VulnerabilityReport resource string.
|
169
|
+
#
|
170
|
+
# The resource will be in the following format:
|
171
|
+
#
|
172
|
+
# `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport`
|
173
|
+
#
|
174
|
+
# @param project [String]
|
175
|
+
# @param location [String]
|
176
|
+
# @param instance [String]
|
177
|
+
#
|
178
|
+
# @return [::String]
|
179
|
+
def vulnerability_report_path project:, location:, instance:
|
180
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
181
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
182
|
+
|
183
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/vulnerabilityReport"
|
184
|
+
end
|
185
|
+
|
186
|
+
extend self
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/os_config/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/os_config/v1/os_config_zonal_service/credentials"
|
26
|
+
require "google/cloud/os_config/v1/os_config_zonal_service/paths"
|
27
|
+
require "google/cloud/os_config/v1/os_config_zonal_service/operations"
|
28
|
+
require "google/cloud/os_config/v1/os_config_zonal_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module OsConfig
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# Zonal OS Config API
|
36
|
+
#
|
37
|
+
# The OS Config service is the server-side component that allows users to
|
38
|
+
# manage package installations and patch jobs for Compute Engine VM instances.
|
39
|
+
#
|
40
|
+
# To load this service and instantiate a client:
|
41
|
+
#
|
42
|
+
# require "google/cloud/os_config/v1/os_config_zonal_service"
|
43
|
+
# client = ::Google::Cloud::OsConfig::V1::OsConfigZonalService::Client.new
|
44
|
+
#
|
45
|
+
module OsConfigZonalService
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "os_config_zonal_service", "helpers.rb"
|
53
|
+
require "google/cloud/os_config/v1/os_config_zonal_service/helpers" if ::File.file? helper_path
|
@@ -1,15 +1,19 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/osconfig/v1/inventory.proto
|
3
3
|
|
4
|
-
require 'google/
|
5
|
-
|
4
|
+
require 'google/api/field_behavior_pb'
|
5
|
+
require 'google/api/resource_pb'
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
7
|
require 'google/type/date_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
8
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
11
|
add_file("google/cloud/osconfig/v1/inventory.proto", :syntax => :proto3) do
|
10
12
|
add_message "google.cloud.osconfig.v1.Inventory" do
|
13
|
+
optional :name, :string, 3
|
11
14
|
optional :os_info, :message, 1, "google.cloud.osconfig.v1.Inventory.OsInfo"
|
12
15
|
map :items, :string, :message, 2, "google.cloud.osconfig.v1.Inventory.Item"
|
16
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
13
17
|
end
|
14
18
|
add_message "google.cloud.osconfig.v1.Inventory.OsInfo" do
|
15
19
|
optional :hostname, :string, 9
|
@@ -59,6 +63,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
59
63
|
optional :architecture, :string, 2
|
60
64
|
optional :version, :string, 3
|
61
65
|
end
|
66
|
+
add_message "google.cloud.osconfig.v1.Inventory.ZypperPatch" do
|
67
|
+
optional :patch_name, :string, 5
|
68
|
+
optional :category, :string, 2
|
69
|
+
optional :severity, :string, 3
|
70
|
+
optional :summary, :string, 4
|
71
|
+
end
|
62
72
|
add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage" do
|
63
73
|
optional :title, :string, 1
|
64
74
|
optional :description, :string, 2
|
@@ -74,12 +84,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
74
84
|
optional :id, :string, 1
|
75
85
|
optional :name, :string, 2
|
76
86
|
end
|
77
|
-
add_message "google.cloud.osconfig.v1.Inventory.ZypperPatch" do
|
78
|
-
optional :patch_name, :string, 5
|
79
|
-
optional :category, :string, 2
|
80
|
-
optional :severity, :string, 3
|
81
|
-
optional :summary, :string, 4
|
82
|
-
end
|
83
87
|
add_message "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage" do
|
84
88
|
optional :caption, :string, 1
|
85
89
|
optional :description, :string, 2
|
@@ -93,6 +97,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
93
97
|
optional :install_date, :message, 4, "google.type.Date"
|
94
98
|
optional :help_link, :string, 5
|
95
99
|
end
|
100
|
+
add_message "google.cloud.osconfig.v1.GetInventoryRequest" do
|
101
|
+
optional :name, :string, 1
|
102
|
+
optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
|
103
|
+
end
|
104
|
+
add_message "google.cloud.osconfig.v1.ListInventoriesRequest" do
|
105
|
+
optional :parent, :string, 1
|
106
|
+
optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
|
107
|
+
optional :page_size, :int32, 3
|
108
|
+
optional :page_token, :string, 4
|
109
|
+
optional :filter, :string, 5
|
110
|
+
end
|
111
|
+
add_message "google.cloud.osconfig.v1.ListInventoriesResponse" do
|
112
|
+
repeated :inventories, :message, 1, "google.cloud.osconfig.v1.Inventory"
|
113
|
+
optional :next_page_token, :string, 2
|
114
|
+
end
|
115
|
+
add_enum "google.cloud.osconfig.v1.InventoryView" do
|
116
|
+
value :INVENTORY_VIEW_UNSPECIFIED, 0
|
117
|
+
value :BASIC, 1
|
118
|
+
value :FULL, 2
|
119
|
+
end
|
96
120
|
end
|
97
121
|
end
|
98
122
|
|
@@ -107,11 +131,15 @@ module Google
|
|
107
131
|
Inventory::Item::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.Item.Type").enummodule
|
108
132
|
Inventory::SoftwarePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.SoftwarePackage").msgclass
|
109
133
|
Inventory::VersionedPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.VersionedPackage").msgclass
|
134
|
+
Inventory::ZypperPatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.ZypperPatch").msgclass
|
110
135
|
Inventory::WindowsUpdatePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage").msgclass
|
111
136
|
Inventory::WindowsUpdatePackage::WindowsUpdateCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory").msgclass
|
112
|
-
Inventory::ZypperPatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.ZypperPatch").msgclass
|
113
137
|
Inventory::WindowsQuickFixEngineeringPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage").msgclass
|
114
138
|
Inventory::WindowsApplication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsApplication").msgclass
|
139
|
+
GetInventoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetInventoryRequest").msgclass
|
140
|
+
ListInventoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListInventoriesRequest").msgclass
|
141
|
+
ListInventoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListInventoriesResponse").msgclass
|
142
|
+
InventoryView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.InventoryView").enummodule
|
115
143
|
end
|
116
144
|
end
|
117
145
|
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/osconfig/v1/os_policy_assignment_reports.proto
|
3
|
+
|
4
|
+
require 'google/api/field_behavior_pb'
|
5
|
+
require 'google/api/resource_pb'
|
6
|
+
require 'google/protobuf/timestamp_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/osconfig/v1/os_policy_assignment_reports.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest" do
|
12
|
+
optional :name, :string, 1
|
13
|
+
end
|
14
|
+
add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest" do
|
15
|
+
optional :parent, :string, 1
|
16
|
+
optional :page_size, :int32, 2
|
17
|
+
optional :filter, :string, 3
|
18
|
+
optional :page_token, :string, 4
|
19
|
+
end
|
20
|
+
add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse" do
|
21
|
+
repeated :os_policy_assignment_reports, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignmentReport"
|
22
|
+
optional :next_page_token, :string, 2
|
23
|
+
end
|
24
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport" do
|
25
|
+
optional :name, :string, 1
|
26
|
+
optional :instance, :string, 2
|
27
|
+
optional :os_policy_assignment, :string, 3
|
28
|
+
repeated :os_policy_compliances, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance"
|
29
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
30
|
+
optional :last_run_id, :string, 6
|
31
|
+
end
|
32
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance" do
|
33
|
+
optional :os_policy_id, :string, 1
|
34
|
+
optional :compliance_state, :enum, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState"
|
35
|
+
optional :compliance_state_reason, :string, 3
|
36
|
+
repeated :os_policy_resource_compliances, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance"
|
37
|
+
end
|
38
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance" do
|
39
|
+
optional :os_policy_resource_id, :string, 1
|
40
|
+
repeated :config_steps, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep"
|
41
|
+
optional :compliance_state, :enum, 3, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState"
|
42
|
+
optional :compliance_state_reason, :string, 4
|
43
|
+
oneof :output do
|
44
|
+
optional :exec_resource_output, :message, 5, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep" do
|
48
|
+
optional :type, :enum, 1, "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type"
|
49
|
+
optional :error_message, :string, 2
|
50
|
+
end
|
51
|
+
add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type" do
|
52
|
+
value :TYPE_UNSPECIFIED, 0
|
53
|
+
value :VALIDATION, 1
|
54
|
+
value :DESIRED_STATE_CHECK, 2
|
55
|
+
value :DESIRED_STATE_ENFORCEMENT, 3
|
56
|
+
value :DESIRED_STATE_CHECK_POST_ENFORCEMENT, 4
|
57
|
+
end
|
58
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput" do
|
59
|
+
optional :enforcement_output, :bytes, 2
|
60
|
+
end
|
61
|
+
add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState" do
|
62
|
+
value :UNKNOWN, 0
|
63
|
+
value :COMPLIANT, 1
|
64
|
+
value :NON_COMPLIANT, 2
|
65
|
+
end
|
66
|
+
add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState" do
|
67
|
+
value :UNKNOWN, 0
|
68
|
+
value :COMPLIANT, 1
|
69
|
+
value :NON_COMPLIANT, 2
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
module Google
|
75
|
+
module Cloud
|
76
|
+
module OsConfig
|
77
|
+
module V1
|
78
|
+
GetOSPolicyAssignmentReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetOSPolicyAssignmentReportRequest").msgclass
|
79
|
+
ListOSPolicyAssignmentReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRequest").msgclass
|
80
|
+
ListOSPolicyAssignmentReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse").msgclass
|
81
|
+
OSPolicyAssignmentReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport").msgclass
|
82
|
+
OSPolicyAssignmentReport::OSPolicyCompliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance").msgclass
|
83
|
+
OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance").msgclass
|
84
|
+
OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::OSPolicyResourceConfigStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep").msgclass
|
85
|
+
OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::OSPolicyResourceConfigStep::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type").enummodule
|
86
|
+
OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::ExecResourceOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput").msgclass
|
87
|
+
OSPolicyAssignmentReport::OSPolicyCompliance::OSPolicyResourceCompliance::ComplianceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState").enummodule
|
88
|
+
OSPolicyAssignmentReport::OSPolicyCompliance::ComplianceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState").enummodule
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/osconfig/v1/os_policy_assignments.proto
|
3
|
+
|
4
|
+
require 'google/api/field_behavior_pb'
|
5
|
+
require 'google/api/resource_pb'
|
6
|
+
require 'google/cloud/osconfig/v1/os_policy_pb'
|
7
|
+
require 'google/cloud/osconfig/v1/osconfig_common_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/osconfig/v1/os_policy_assignments.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignment" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :description, :string, 2
|
18
|
+
repeated :os_policies, :message, 3, "google.cloud.osconfig.v1.OSPolicy"
|
19
|
+
optional :instance_filter, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter"
|
20
|
+
optional :rollout, :message, 5, "google.cloud.osconfig.v1.OSPolicyAssignment.Rollout"
|
21
|
+
optional :revision_id, :string, 6
|
22
|
+
optional :revision_create_time, :message, 7, "google.protobuf.Timestamp"
|
23
|
+
optional :etag, :string, 8
|
24
|
+
optional :rollout_state, :enum, 9, "google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState"
|
25
|
+
optional :baseline, :bool, 10
|
26
|
+
optional :deleted, :bool, 11
|
27
|
+
optional :reconciling, :bool, 12
|
28
|
+
optional :uid, :string, 13
|
29
|
+
end
|
30
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet" do
|
31
|
+
map :labels, :string, :string, 1
|
32
|
+
end
|
33
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter" do
|
34
|
+
optional :all, :bool, 1
|
35
|
+
repeated :inclusion_labels, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet"
|
36
|
+
repeated :exclusion_labels, :message, 3, "google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet"
|
37
|
+
repeated :inventories, :message, 4, "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory"
|
38
|
+
end
|
39
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory" do
|
40
|
+
optional :os_short_name, :string, 1
|
41
|
+
optional :os_version, :string, 2
|
42
|
+
end
|
43
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignment.Rollout" do
|
44
|
+
optional :disruption_budget, :message, 1, "google.cloud.osconfig.v1.FixedOrPercent"
|
45
|
+
optional :min_wait_duration, :message, 2, "google.protobuf.Duration"
|
46
|
+
end
|
47
|
+
add_enum "google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState" do
|
48
|
+
value :ROLLOUT_STATE_UNSPECIFIED, 0
|
49
|
+
value :IN_PROGRESS, 1
|
50
|
+
value :CANCELLING, 2
|
51
|
+
value :CANCELLED, 3
|
52
|
+
value :SUCCEEDED, 4
|
53
|
+
end
|
54
|
+
add_message "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata" do
|
55
|
+
optional :os_policy_assignment, :string, 1
|
56
|
+
optional :api_method, :enum, 2, "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod"
|
57
|
+
optional :rollout_state, :enum, 3, "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState"
|
58
|
+
optional :rollout_start_time, :message, 4, "google.protobuf.Timestamp"
|
59
|
+
optional :rollout_update_time, :message, 5, "google.protobuf.Timestamp"
|
60
|
+
end
|
61
|
+
add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod" do
|
62
|
+
value :API_METHOD_UNSPECIFIED, 0
|
63
|
+
value :CREATE, 1
|
64
|
+
value :UPDATE, 2
|
65
|
+
value :DELETE, 3
|
66
|
+
end
|
67
|
+
add_enum "google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState" do
|
68
|
+
value :ROLLOUT_STATE_UNSPECIFIED, 0
|
69
|
+
value :IN_PROGRESS, 1
|
70
|
+
value :CANCELLING, 2
|
71
|
+
value :CANCELLED, 3
|
72
|
+
value :SUCCEEDED, 4
|
73
|
+
end
|
74
|
+
add_message "google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest" do
|
75
|
+
optional :parent, :string, 1
|
76
|
+
optional :os_policy_assignment, :message, 2, "google.cloud.osconfig.v1.OSPolicyAssignment"
|
77
|
+
optional :os_policy_assignment_id, :string, 3
|
78
|
+
end
|
79
|
+
add_message "google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest" do
|
80
|
+
optional :os_policy_assignment, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
|
81
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
82
|
+
end
|
83
|
+
add_message "google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest" do
|
84
|
+
optional :name, :string, 1
|
85
|
+
end
|
86
|
+
add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest" do
|
87
|
+
optional :parent, :string, 1
|
88
|
+
optional :page_size, :int32, 2
|
89
|
+
optional :page_token, :string, 3
|
90
|
+
end
|
91
|
+
add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse" do
|
92
|
+
repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
|
93
|
+
optional :next_page_token, :string, 2
|
94
|
+
end
|
95
|
+
add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest" do
|
96
|
+
optional :name, :string, 1
|
97
|
+
optional :page_size, :int32, 2
|
98
|
+
optional :page_token, :string, 3
|
99
|
+
end
|
100
|
+
add_message "google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse" do
|
101
|
+
repeated :os_policy_assignments, :message, 1, "google.cloud.osconfig.v1.OSPolicyAssignment"
|
102
|
+
optional :next_page_token, :string, 2
|
103
|
+
end
|
104
|
+
add_message "google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest" do
|
105
|
+
optional :name, :string, 1
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
module Google
|
111
|
+
module Cloud
|
112
|
+
module OsConfig
|
113
|
+
module V1
|
114
|
+
OSPolicyAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment").msgclass
|
115
|
+
OSPolicyAssignment::LabelSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet").msgclass
|
116
|
+
OSPolicyAssignment::InstanceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter").msgclass
|
117
|
+
OSPolicyAssignment::InstanceFilter::Inventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory").msgclass
|
118
|
+
OSPolicyAssignment::Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.Rollout").msgclass
|
119
|
+
OSPolicyAssignment::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState").enummodule
|
120
|
+
OSPolicyAssignmentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata").msgclass
|
121
|
+
OSPolicyAssignmentOperationMetadata::APIMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod").enummodule
|
122
|
+
OSPolicyAssignmentOperationMetadata::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState").enummodule
|
123
|
+
CreateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest").msgclass
|
124
|
+
UpdateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest").msgclass
|
125
|
+
GetOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest").msgclass
|
126
|
+
ListOSPolicyAssignmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest").msgclass
|
127
|
+
ListOSPolicyAssignmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse").msgclass
|
128
|
+
ListOSPolicyAssignmentRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest").msgclass
|
129
|
+
ListOSPolicyAssignmentRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse").msgclass
|
130
|
+
DeleteOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest").msgclass
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|