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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/os_config/v1/os_config_service/client.rb +198 -27
  3. data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +1628 -0
  4. data/lib/google/cloud/os_config/v1/os_config_zonal_service/credentials.rb +51 -0
  5. data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +767 -0
  6. data/lib/google/cloud/os_config/v1/os_config_zonal_service/paths.rb +192 -0
  7. data/lib/google/cloud/os_config/v1/os_config_zonal_service.rb +53 -0
  8. data/lib/google/cloud/os_config/v1/version.rb +1 -1
  9. data/lib/google/cloud/os_config/v1.rb +1 -0
  10. data/lib/google/cloud/osconfig/v1/inventory_pb.rb +37 -9
  11. data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +92 -0
  12. data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +134 -0
  13. data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +204 -0
  14. data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +2 -2
  15. data/lib/google/cloud/osconfig/v1/osconfig_service_services_pb.rb +1 -1
  16. data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -0
  17. data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_services_pb.rb +107 -0
  18. data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +3 -2
  19. data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +2 -2
  20. data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +127 -0
  21. data/proto_docs/google/cloud/osconfig/v1/inventory.rb +111 -20
  22. data/proto_docs/google/cloud/osconfig/v1/os_policy.rb +597 -0
  23. data/proto_docs/google/cloud/osconfig/v1/os_policy_assignment_reports.rb +293 -0
  24. data/proto_docs/google/cloud/osconfig/v1/os_policy_assignments.rb +392 -0
  25. data/proto_docs/google/cloud/osconfig/v1/patch_deployments.rb +4 -0
  26. data/proto_docs/google/cloud/osconfig/v1/vulnerability.rb +374 -0
  27. data/proto_docs/google/longrunning/operations.rb +164 -0
  28. data/proto_docs/google/protobuf/any.rb +141 -0
  29. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  30. data/proto_docs/google/rpc/status.rb +46 -0
  31. metadata +21 -2
@@ -0,0 +1,204 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1/os_policy.proto
3
+
4
+ require 'google/api/field_behavior_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/osconfig/v1/os_policy.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.osconfig.v1.OSPolicy" do
10
+ optional :id, :string, 1
11
+ optional :description, :string, 2
12
+ optional :mode, :enum, 3, "google.cloud.osconfig.v1.OSPolicy.Mode"
13
+ repeated :resource_groups, :message, 4, "google.cloud.osconfig.v1.OSPolicy.ResourceGroup"
14
+ optional :allow_no_resource_group_match, :bool, 5
15
+ end
16
+ add_message "google.cloud.osconfig.v1.OSPolicy.InventoryFilter" do
17
+ optional :os_short_name, :string, 1
18
+ optional :os_version, :string, 2
19
+ end
20
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource" do
21
+ optional :id, :string, 1
22
+ oneof :resource_type do
23
+ optional :pkg, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource"
24
+ optional :repository, :message, 3, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource"
25
+ optional :exec, :message, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource"
26
+ optional :file, :message, 5, "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource"
27
+ end
28
+ end
29
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.File" do
30
+ optional :allow_insecure, :bool, 4
31
+ oneof :type do
32
+ optional :remote, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote"
33
+ optional :gcs, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs"
34
+ optional :local_path, :string, 3
35
+ end
36
+ end
37
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote" do
38
+ optional :uri, :string, 1
39
+ optional :sha256_checksum, :string, 2
40
+ end
41
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs" do
42
+ optional :bucket, :string, 1
43
+ optional :object, :string, 2
44
+ optional :generation, :int64, 3
45
+ end
46
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource" do
47
+ optional :desired_state, :enum, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState"
48
+ oneof :system_package do
49
+ optional :apt, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT"
50
+ optional :deb, :message, 3, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb"
51
+ optional :yum, :message, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM"
52
+ optional :zypper, :message, 5, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper"
53
+ optional :rpm, :message, 6, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM"
54
+ optional :googet, :message, 7, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet"
55
+ optional :msi, :message, 8, "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI"
56
+ end
57
+ end
58
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb" do
59
+ optional :source, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
60
+ optional :pull_deps, :bool, 2
61
+ end
62
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT" do
63
+ optional :name, :string, 1
64
+ end
65
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM" do
66
+ optional :source, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
67
+ optional :pull_deps, :bool, 2
68
+ end
69
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM" do
70
+ optional :name, :string, 1
71
+ end
72
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper" do
73
+ optional :name, :string, 1
74
+ end
75
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet" do
76
+ optional :name, :string, 1
77
+ end
78
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI" do
79
+ optional :source, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
80
+ repeated :properties, :string, 2
81
+ end
82
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState" do
83
+ value :DESIRED_STATE_UNSPECIFIED, 0
84
+ value :INSTALLED, 1
85
+ value :REMOVED, 2
86
+ end
87
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource" do
88
+ oneof :repository do
89
+ optional :apt, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository"
90
+ optional :yum, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository"
91
+ optional :zypper, :message, 3, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository"
92
+ optional :goo, :message, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository"
93
+ end
94
+ end
95
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository" do
96
+ optional :archive_type, :enum, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType"
97
+ optional :uri, :string, 2
98
+ optional :distribution, :string, 3
99
+ repeated :components, :string, 4
100
+ optional :gpg_key, :string, 5
101
+ end
102
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType" do
103
+ value :ARCHIVE_TYPE_UNSPECIFIED, 0
104
+ value :DEB, 1
105
+ value :DEB_SRC, 2
106
+ end
107
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository" do
108
+ optional :id, :string, 1
109
+ optional :display_name, :string, 2
110
+ optional :base_url, :string, 3
111
+ repeated :gpg_keys, :string, 4
112
+ end
113
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository" do
114
+ optional :id, :string, 1
115
+ optional :display_name, :string, 2
116
+ optional :base_url, :string, 3
117
+ repeated :gpg_keys, :string, 4
118
+ end
119
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository" do
120
+ optional :name, :string, 1
121
+ optional :url, :string, 2
122
+ end
123
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource" do
124
+ optional :validate, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec"
125
+ optional :enforce, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec"
126
+ end
127
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec" do
128
+ repeated :args, :string, 3
129
+ optional :interpreter, :enum, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter"
130
+ optional :output_file_path, :string, 5
131
+ oneof :source do
132
+ optional :file, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
133
+ optional :script, :string, 2
134
+ end
135
+ end
136
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter" do
137
+ value :INTERPRETER_UNSPECIFIED, 0
138
+ value :NONE, 1
139
+ value :SHELL, 2
140
+ value :POWERSHELL, 3
141
+ end
142
+ add_message "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource" do
143
+ optional :path, :string, 3
144
+ optional :state, :enum, 4, "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState"
145
+ optional :permissions, :string, 5
146
+ oneof :source do
147
+ optional :file, :message, 1, "google.cloud.osconfig.v1.OSPolicy.Resource.File"
148
+ optional :content, :string, 2
149
+ end
150
+ end
151
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState" do
152
+ value :DESIRED_STATE_UNSPECIFIED, 0
153
+ value :PRESENT, 1
154
+ value :ABSENT, 2
155
+ value :CONTENTS_MATCH, 3
156
+ end
157
+ add_message "google.cloud.osconfig.v1.OSPolicy.ResourceGroup" do
158
+ repeated :inventory_filters, :message, 1, "google.cloud.osconfig.v1.OSPolicy.InventoryFilter"
159
+ repeated :resources, :message, 2, "google.cloud.osconfig.v1.OSPolicy.Resource"
160
+ end
161
+ add_enum "google.cloud.osconfig.v1.OSPolicy.Mode" do
162
+ value :MODE_UNSPECIFIED, 0
163
+ value :VALIDATION, 1
164
+ value :ENFORCEMENT, 2
165
+ end
166
+ end
167
+ end
168
+
169
+ module Google
170
+ module Cloud
171
+ module OsConfig
172
+ module V1
173
+ OSPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy").msgclass
174
+ OSPolicy::InventoryFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.InventoryFilter").msgclass
175
+ OSPolicy::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource").msgclass
176
+ OSPolicy::Resource::File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.File").msgclass
177
+ OSPolicy::Resource::File::Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote").msgclass
178
+ OSPolicy::Resource::File::Gcs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs").msgclass
179
+ OSPolicy::Resource::PackageResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource").msgclass
180
+ OSPolicy::Resource::PackageResource::Deb = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb").msgclass
181
+ OSPolicy::Resource::PackageResource::APT = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT").msgclass
182
+ OSPolicy::Resource::PackageResource::RPM = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM").msgclass
183
+ OSPolicy::Resource::PackageResource::YUM = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM").msgclass
184
+ OSPolicy::Resource::PackageResource::Zypper = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper").msgclass
185
+ OSPolicy::Resource::PackageResource::GooGet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet").msgclass
186
+ OSPolicy::Resource::PackageResource::MSI = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI").msgclass
187
+ OSPolicy::Resource::PackageResource::DesiredState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState").enummodule
188
+ OSPolicy::Resource::RepositoryResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource").msgclass
189
+ OSPolicy::Resource::RepositoryResource::AptRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository").msgclass
190
+ OSPolicy::Resource::RepositoryResource::AptRepository::ArchiveType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType").enummodule
191
+ OSPolicy::Resource::RepositoryResource::YumRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository").msgclass
192
+ OSPolicy::Resource::RepositoryResource::ZypperRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository").msgclass
193
+ OSPolicy::Resource::RepositoryResource::GooRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository").msgclass
194
+ OSPolicy::Resource::ExecResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource").msgclass
195
+ OSPolicy::Resource::ExecResource::Exec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec").msgclass
196
+ OSPolicy::Resource::ExecResource::Exec::Interpreter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter").enummodule
197
+ OSPolicy::Resource::FileResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.FileResource").msgclass
198
+ OSPolicy::Resource::FileResource::DesiredState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState").enummodule
199
+ OSPolicy::ResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.ResourceGroup").msgclass
200
+ OSPolicy::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicy.Mode").enummodule
201
+ end
202
+ end
203
+ end
204
+ end
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1/osconfig_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/resource_pb'
9
7
  require 'google/cloud/osconfig/v1/patch_deployments_pb'
10
8
  require 'google/cloud/osconfig/v1/patch_jobs_pb'
11
9
  require 'google/protobuf/empty_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/osconfig/v1/osconfig_service.proto", :syntax => :proto3) do
14
14
  end
@@ -30,7 +30,7 @@ module Google
30
30
  # manage package installations and patch jobs for virtual machine instances.
31
31
  class Service
32
32
 
33
- include GRPC::GenericService
33
+ include ::GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1/osconfig_zonal_service.proto
3
+
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/client_pb'
6
+ require 'google/cloud/osconfig/v1/inventory_pb'
7
+ require 'google/cloud/osconfig/v1/os_policy_assignment_reports_pb'
8
+ require 'google/cloud/osconfig/v1/os_policy_assignments_pb'
9
+ require 'google/cloud/osconfig/v1/vulnerability_pb'
10
+ require 'google/longrunning/operations_pb'
11
+ require 'google/protobuf'
12
+
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/osconfig/v1/osconfig_zonal_service.proto", :syntax => :proto3) do
15
+ end
16
+ end
17
+
18
+ module Google
19
+ module Cloud
20
+ module OsConfig
21
+ module V1
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,107 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/osconfig/v1/osconfig_zonal_service.proto for package 'Google.Cloud.OsConfig.V1'
3
+ # Original file comments:
4
+ # Copyright 2021 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_zonal_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module OsConfig
25
+ module V1
26
+ module OsConfigZonalService
27
+ # Zonal OS Config API
28
+ #
29
+ # The OS Config service is the server-side component that allows users to
30
+ # manage package installations and patch jobs for Compute Engine VM 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.OsConfigZonalService'
38
+
39
+ # Create an OS policy assignment.
40
+ #
41
+ # This method also creates the first revision of the OS policy assignment.
42
+ #
43
+ # This method returns a long running operation (LRO) that contains the
44
+ # rollout details. The rollout can be cancelled by cancelling the LRO.
45
+ #
46
+ # For more information, see [Method:
47
+ # projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
48
+ rpc :CreateOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::CreateOSPolicyAssignmentRequest, ::Google::Longrunning::Operation
49
+ # Update an existing OS policy assignment.
50
+ #
51
+ # This method creates a new revision of the OS policy assignment.
52
+ #
53
+ # This method returns a long running operation (LRO) that contains the
54
+ # rollout details. The rollout can be cancelled by cancelling the LRO.
55
+ #
56
+ # For more information, see [Method:
57
+ # projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
58
+ rpc :UpdateOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::UpdateOSPolicyAssignmentRequest, ::Google::Longrunning::Operation
59
+ # Retrieve an existing OS policy assignment.
60
+ #
61
+ # This method always returns the latest revision. In order to retrieve a
62
+ # previous revision of the assignment, also provide the revision ID in the
63
+ # `name` parameter.
64
+ rpc :GetOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::GetOSPolicyAssignmentRequest, ::Google::Cloud::OsConfig::V1::OSPolicyAssignment
65
+ # List the OS policy assignments under the parent resource.
66
+ #
67
+ # For each OS policy assignment, the latest revision is returned.
68
+ rpc :ListOSPolicyAssignments, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentsRequest, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentsResponse
69
+ # List the OS policy assignment revisions for a given OS policy assignment.
70
+ rpc :ListOSPolicyAssignmentRevisions, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentRevisionsRequest, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentRevisionsResponse
71
+ # Delete the OS policy assignment.
72
+ #
73
+ # This method creates a new revision of the OS policy assignment.
74
+ #
75
+ # This method returns a long running operation (LRO) that contains the
76
+ # rollout details. The rollout can be cancelled by cancelling the LRO.
77
+ #
78
+ # If the LRO completes and is not cancelled, all revisions associated with
79
+ # the OS policy assignment are deleted.
80
+ #
81
+ # For more information, see [Method:
82
+ # projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).
83
+ rpc :DeleteOSPolicyAssignment, ::Google::Cloud::OsConfig::V1::DeleteOSPolicyAssignmentRequest, ::Google::Longrunning::Operation
84
+ # Get the OS policy asssignment report for the specified Compute Engine VM
85
+ # instance.
86
+ rpc :GetOSPolicyAssignmentReport, ::Google::Cloud::OsConfig::V1::GetOSPolicyAssignmentReportRequest, ::Google::Cloud::OsConfig::V1::OSPolicyAssignmentReport
87
+ # List OS policy asssignment reports for all Compute Engine VM instances in
88
+ # the specified zone.
89
+ rpc :ListOSPolicyAssignmentReports, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentReportsRequest, ::Google::Cloud::OsConfig::V1::ListOSPolicyAssignmentReportsResponse
90
+ # Get inventory data for the specified VM instance. If the VM has no
91
+ # associated inventory, the message `NOT_FOUND` is returned.
92
+ rpc :GetInventory, ::Google::Cloud::OsConfig::V1::GetInventoryRequest, ::Google::Cloud::OsConfig::V1::Inventory
93
+ # List inventory data for all VM instances in the specified zone.
94
+ rpc :ListInventories, ::Google::Cloud::OsConfig::V1::ListInventoriesRequest, ::Google::Cloud::OsConfig::V1::ListInventoriesResponse
95
+ # Gets the vulnerability report for the specified VM instance. Only VMs with
96
+ # inventory data have vulnerability reports associated with them.
97
+ rpc :GetVulnerabilityReport, ::Google::Cloud::OsConfig::V1::GetVulnerabilityReportRequest, ::Google::Cloud::OsConfig::V1::VulnerabilityReport
98
+ # List vulnerability reports for all VM instances in the specified zone.
99
+ rpc :ListVulnerabilityReports, ::Google::Cloud::OsConfig::V1::ListVulnerabilityReportsRequest, ::Google::Cloud::OsConfig::V1::ListVulnerabilityReportsResponse
100
+ end
101
+
102
+ Stub = Service.rpc_stub_class
103
+ end
104
+ end
105
+ end
106
+ end
107
+ end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1/patch_deployments.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/osconfig/v1/patch_jobs_pb'
@@ -11,6 +9,8 @@ require 'google/protobuf/timestamp_pb'
11
9
  require 'google/type/datetime_pb'
12
10
  require 'google/type/dayofweek_pb'
13
11
  require 'google/type/timeofday_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/osconfig/v1/patch_deployments.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.osconfig.v1.PatchDeployment" do
@@ -48,6 +48,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
48
48
  value :FREQUENCY_UNSPECIFIED, 0
49
49
  value :WEEKLY, 1
50
50
  value :MONTHLY, 2
51
+ value :DAILY, 3
51
52
  end
52
53
  add_message "google.cloud.osconfig.v1.WeeklySchedule" do
53
54
  optional :day_of_week, :enum, 1, "google.type.DayOfWeek"
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/osconfig/v1/patch_jobs.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/osconfig/v1/osconfig_common_pb'
9
7
  require 'google/protobuf/duration_pb'
10
8
  require 'google/protobuf/timestamp_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/osconfig/v1/patch_jobs.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.osconfig.v1.ExecutePatchJobRequest" do
@@ -0,0 +1,127 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1/vulnerability.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/vulnerability.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.osconfig.v1.VulnerabilityReport" do
12
+ optional :name, :string, 1
13
+ repeated :vulnerabilities, :message, 2, "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability"
14
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
15
+ end
16
+ add_message "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability" do
17
+ optional :details, :message, 1, "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details"
18
+ repeated :installed_inventory_item_ids, :string, 2
19
+ repeated :available_inventory_item_ids, :string, 3
20
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
21
+ optional :update_time, :message, 5, "google.protobuf.Timestamp"
22
+ repeated :items, :message, 6, "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item"
23
+ end
24
+ add_message "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details" do
25
+ optional :cve, :string, 1
26
+ optional :cvss_v2_score, :float, 2
27
+ optional :cvss_v3, :message, 3, "google.cloud.osconfig.v1.CVSSv3"
28
+ optional :severity, :string, 4
29
+ optional :description, :string, 5
30
+ repeated :references, :message, 6, "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference"
31
+ end
32
+ add_message "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference" do
33
+ optional :url, :string, 1
34
+ optional :source, :string, 2
35
+ end
36
+ add_message "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item" do
37
+ optional :installed_inventory_item_id, :string, 1
38
+ optional :available_inventory_item_id, :string, 2
39
+ optional :fixed_cpe_uri, :string, 3
40
+ optional :upstream_fix, :string, 4
41
+ end
42
+ add_message "google.cloud.osconfig.v1.GetVulnerabilityReportRequest" do
43
+ optional :name, :string, 1
44
+ end
45
+ add_message "google.cloud.osconfig.v1.ListVulnerabilityReportsRequest" do
46
+ optional :parent, :string, 1
47
+ optional :page_size, :int32, 2
48
+ optional :page_token, :string, 3
49
+ optional :filter, :string, 4
50
+ end
51
+ add_message "google.cloud.osconfig.v1.ListVulnerabilityReportsResponse" do
52
+ repeated :vulnerability_reports, :message, 1, "google.cloud.osconfig.v1.VulnerabilityReport"
53
+ optional :next_page_token, :string, 2
54
+ end
55
+ add_message "google.cloud.osconfig.v1.CVSSv3" do
56
+ optional :base_score, :float, 1
57
+ optional :exploitability_score, :float, 2
58
+ optional :impact_score, :float, 3
59
+ optional :attack_vector, :enum, 5, "google.cloud.osconfig.v1.CVSSv3.AttackVector"
60
+ optional :attack_complexity, :enum, 6, "google.cloud.osconfig.v1.CVSSv3.AttackComplexity"
61
+ optional :privileges_required, :enum, 7, "google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired"
62
+ optional :user_interaction, :enum, 8, "google.cloud.osconfig.v1.CVSSv3.UserInteraction"
63
+ optional :scope, :enum, 9, "google.cloud.osconfig.v1.CVSSv3.Scope"
64
+ optional :confidentiality_impact, :enum, 10, "google.cloud.osconfig.v1.CVSSv3.Impact"
65
+ optional :integrity_impact, :enum, 11, "google.cloud.osconfig.v1.CVSSv3.Impact"
66
+ optional :availability_impact, :enum, 12, "google.cloud.osconfig.v1.CVSSv3.Impact"
67
+ end
68
+ add_enum "google.cloud.osconfig.v1.CVSSv3.AttackVector" do
69
+ value :ATTACK_VECTOR_UNSPECIFIED, 0
70
+ value :ATTACK_VECTOR_NETWORK, 1
71
+ value :ATTACK_VECTOR_ADJACENT, 2
72
+ value :ATTACK_VECTOR_LOCAL, 3
73
+ value :ATTACK_VECTOR_PHYSICAL, 4
74
+ end
75
+ add_enum "google.cloud.osconfig.v1.CVSSv3.AttackComplexity" do
76
+ value :ATTACK_COMPLEXITY_UNSPECIFIED, 0
77
+ value :ATTACK_COMPLEXITY_LOW, 1
78
+ value :ATTACK_COMPLEXITY_HIGH, 2
79
+ end
80
+ add_enum "google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired" do
81
+ value :PRIVILEGES_REQUIRED_UNSPECIFIED, 0
82
+ value :PRIVILEGES_REQUIRED_NONE, 1
83
+ value :PRIVILEGES_REQUIRED_LOW, 2
84
+ value :PRIVILEGES_REQUIRED_HIGH, 3
85
+ end
86
+ add_enum "google.cloud.osconfig.v1.CVSSv3.UserInteraction" do
87
+ value :USER_INTERACTION_UNSPECIFIED, 0
88
+ value :USER_INTERACTION_NONE, 1
89
+ value :USER_INTERACTION_REQUIRED, 2
90
+ end
91
+ add_enum "google.cloud.osconfig.v1.CVSSv3.Scope" do
92
+ value :SCOPE_UNSPECIFIED, 0
93
+ value :SCOPE_UNCHANGED, 1
94
+ value :SCOPE_CHANGED, 2
95
+ end
96
+ add_enum "google.cloud.osconfig.v1.CVSSv3.Impact" do
97
+ value :IMPACT_UNSPECIFIED, 0
98
+ value :IMPACT_HIGH, 1
99
+ value :IMPACT_LOW, 2
100
+ value :IMPACT_NONE, 3
101
+ end
102
+ end
103
+ end
104
+
105
+ module Google
106
+ module Cloud
107
+ module OsConfig
108
+ module V1
109
+ VulnerabilityReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.VulnerabilityReport").msgclass
110
+ VulnerabilityReport::Vulnerability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability").msgclass
111
+ VulnerabilityReport::Vulnerability::Details = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details").msgclass
112
+ VulnerabilityReport::Vulnerability::Details::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference").msgclass
113
+ VulnerabilityReport::Vulnerability::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item").msgclass
114
+ GetVulnerabilityReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetVulnerabilityReportRequest").msgclass
115
+ ListVulnerabilityReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListVulnerabilityReportsRequest").msgclass
116
+ ListVulnerabilityReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListVulnerabilityReportsResponse").msgclass
117
+ CVSSv3 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CVSSv3").msgclass
118
+ CVSSv3::AttackVector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CVSSv3.AttackVector").enummodule
119
+ CVSSv3::AttackComplexity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CVSSv3.AttackComplexity").enummodule
120
+ CVSSv3::PrivilegesRequired = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired").enummodule
121
+ CVSSv3::UserInteraction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CVSSv3.UserInteraction").enummodule
122
+ CVSSv3::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CVSSv3.Scope").enummodule
123
+ CVSSv3::Impact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CVSSv3.Impact").enummodule
124
+ end
125
+ end
126
+ end
127
+ end