google-cloud-os_config-v1 0.8.0 → 0.10.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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/os_config/v1/os_config_service/client.rb +283 -0
- data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +1 -0
- data/lib/google/cloud/os_config/v1/version.rb +1 -1
- data/lib/google/cloud/os_config/v1.rb +2 -0
- data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +1 -1
- data/lib/google/cloud/osconfig/v1/osconfig_service_services_pb.rb +8 -0
- data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +22 -0
- data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +1 -0
- data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +8 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/osconfig/v1/inventory.rb +3 -6
- data/proto_docs/google/cloud/osconfig/v1/os_policy.rb +1 -1
- data/proto_docs/google/cloud/osconfig/v1/patch_deployments.rb +64 -6
- data/proto_docs/google/cloud/osconfig/v1/patch_jobs.rb +3 -0
- data/proto_docs/google/cloud/osconfig/v1/vulnerability.rb +32 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3d96054fa59f63991987e87c9239c085d97a82f99a250b13d0b54519dec70df
|
4
|
+
data.tar.gz: 7fa7a1fa218f9d119ff651d11a0a02f79b270b7b608a668301185d49e7019c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4a07f3235e6c9af575d3b0fa106f1cb6f2d33e2c8893be52bfab240d94a8b0407c46e5a5155e733373fc13a8809e89c892e651b1d1826a4873cf3eb799b1923
|
7
|
+
data.tar.gz: 48b017fdfdf2ef8bdec089d32e53046d721ea16e5d36a44cf6d861321949e16742086a67a0705c66c695e8dcdfcc577b6ab74b1c7ffbbf78ff1e25211cc198b0
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::OsConfig::V1::ExecutePatchJobRequest.new # (request f
|
|
37
37
|
response = client.execute_patch_job request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/compute/docs/manage-os)
|
@@ -998,6 +998,268 @@ module Google
|
|
998
998
|
raise ::Google::Cloud::Error.from_error(e)
|
999
999
|
end
|
1000
1000
|
|
1001
|
+
##
|
1002
|
+
# Update an OS Config patch deployment.
|
1003
|
+
#
|
1004
|
+
# @overload update_patch_deployment(request, options = nil)
|
1005
|
+
# Pass arguments to `update_patch_deployment` via a request object, either of type
|
1006
|
+
# {::Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest} or an equivalent Hash.
|
1007
|
+
#
|
1008
|
+
# @param request [::Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest, ::Hash]
|
1009
|
+
# A request object representing the call parameters. Required. To specify no
|
1010
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1011
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1012
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1013
|
+
#
|
1014
|
+
# @overload update_patch_deployment(patch_deployment: nil, update_mask: nil)
|
1015
|
+
# Pass arguments to `update_patch_deployment` via keyword arguments. Note that at
|
1016
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1017
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1018
|
+
#
|
1019
|
+
# @param patch_deployment [::Google::Cloud::OsConfig::V1::PatchDeployment, ::Hash]
|
1020
|
+
# Required. The patch deployment to Update.
|
1021
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1022
|
+
# Optional. Field mask that controls which fields of the patch deployment
|
1023
|
+
# should be updated.
|
1024
|
+
#
|
1025
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1026
|
+
# @yieldparam response [::Google::Cloud::OsConfig::V1::PatchDeployment]
|
1027
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1028
|
+
#
|
1029
|
+
# @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
|
1030
|
+
#
|
1031
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1032
|
+
#
|
1033
|
+
# @example Basic example
|
1034
|
+
# require "google/cloud/os_config/v1"
|
1035
|
+
#
|
1036
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1037
|
+
# client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
|
1038
|
+
#
|
1039
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1040
|
+
# request = Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest.new
|
1041
|
+
#
|
1042
|
+
# # Call the update_patch_deployment method.
|
1043
|
+
# result = client.update_patch_deployment request
|
1044
|
+
#
|
1045
|
+
# # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
|
1046
|
+
# p result
|
1047
|
+
#
|
1048
|
+
def update_patch_deployment request, options = nil
|
1049
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1050
|
+
|
1051
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest
|
1052
|
+
|
1053
|
+
# Converts hash and nil to an options object
|
1054
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1055
|
+
|
1056
|
+
# Customize the options with defaults
|
1057
|
+
metadata = @config.rpcs.update_patch_deployment.metadata.to_h
|
1058
|
+
|
1059
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1060
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1061
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1062
|
+
gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
|
1063
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1064
|
+
|
1065
|
+
header_params = {}
|
1066
|
+
if request.patch_deployment&.name
|
1067
|
+
header_params["patch_deployment.name"] = request.patch_deployment.name
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1071
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1072
|
+
|
1073
|
+
options.apply_defaults timeout: @config.rpcs.update_patch_deployment.timeout,
|
1074
|
+
metadata: metadata,
|
1075
|
+
retry_policy: @config.rpcs.update_patch_deployment.retry_policy
|
1076
|
+
|
1077
|
+
options.apply_defaults timeout: @config.timeout,
|
1078
|
+
metadata: @config.metadata,
|
1079
|
+
retry_policy: @config.retry_policy
|
1080
|
+
|
1081
|
+
@os_config_service_stub.call_rpc :update_patch_deployment, request, options: options do |response, operation|
|
1082
|
+
yield response, operation if block_given?
|
1083
|
+
return response
|
1084
|
+
end
|
1085
|
+
rescue ::GRPC::BadStatus => e
|
1086
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
##
|
1090
|
+
# Change state of patch deployment to "PAUSED".
|
1091
|
+
# Patch deployment in paused state doesn't generate patch jobs.
|
1092
|
+
#
|
1093
|
+
# @overload pause_patch_deployment(request, options = nil)
|
1094
|
+
# Pass arguments to `pause_patch_deployment` via a request object, either of type
|
1095
|
+
# {::Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest} or an equivalent Hash.
|
1096
|
+
#
|
1097
|
+
# @param request [::Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest, ::Hash]
|
1098
|
+
# A request object representing the call parameters. Required. To specify no
|
1099
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1100
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1101
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1102
|
+
#
|
1103
|
+
# @overload pause_patch_deployment(name: nil)
|
1104
|
+
# Pass arguments to `pause_patch_deployment` via keyword arguments. Note that at
|
1105
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1106
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1107
|
+
#
|
1108
|
+
# @param name [::String]
|
1109
|
+
# Required. The resource name of the patch deployment in the form
|
1110
|
+
# `projects/*/patchDeployments/*`.
|
1111
|
+
#
|
1112
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1113
|
+
# @yieldparam response [::Google::Cloud::OsConfig::V1::PatchDeployment]
|
1114
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1115
|
+
#
|
1116
|
+
# @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
|
1117
|
+
#
|
1118
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1119
|
+
#
|
1120
|
+
# @example Basic example
|
1121
|
+
# require "google/cloud/os_config/v1"
|
1122
|
+
#
|
1123
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1124
|
+
# client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
|
1125
|
+
#
|
1126
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1127
|
+
# request = Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest.new
|
1128
|
+
#
|
1129
|
+
# # Call the pause_patch_deployment method.
|
1130
|
+
# result = client.pause_patch_deployment request
|
1131
|
+
#
|
1132
|
+
# # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
|
1133
|
+
# p result
|
1134
|
+
#
|
1135
|
+
def pause_patch_deployment request, options = nil
|
1136
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1137
|
+
|
1138
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest
|
1139
|
+
|
1140
|
+
# Converts hash and nil to an options object
|
1141
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1142
|
+
|
1143
|
+
# Customize the options with defaults
|
1144
|
+
metadata = @config.rpcs.pause_patch_deployment.metadata.to_h
|
1145
|
+
|
1146
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1147
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1148
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1149
|
+
gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
|
1150
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1151
|
+
|
1152
|
+
header_params = {}
|
1153
|
+
if request.name
|
1154
|
+
header_params["name"] = request.name
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1158
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1159
|
+
|
1160
|
+
options.apply_defaults timeout: @config.rpcs.pause_patch_deployment.timeout,
|
1161
|
+
metadata: metadata,
|
1162
|
+
retry_policy: @config.rpcs.pause_patch_deployment.retry_policy
|
1163
|
+
|
1164
|
+
options.apply_defaults timeout: @config.timeout,
|
1165
|
+
metadata: @config.metadata,
|
1166
|
+
retry_policy: @config.retry_policy
|
1167
|
+
|
1168
|
+
@os_config_service_stub.call_rpc :pause_patch_deployment, request, options: options do |response, operation|
|
1169
|
+
yield response, operation if block_given?
|
1170
|
+
return response
|
1171
|
+
end
|
1172
|
+
rescue ::GRPC::BadStatus => e
|
1173
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
##
|
1177
|
+
# Change state of patch deployment back to "ACTIVE".
|
1178
|
+
# Patch deployment in active state continues to generate patch jobs.
|
1179
|
+
#
|
1180
|
+
# @overload resume_patch_deployment(request, options = nil)
|
1181
|
+
# Pass arguments to `resume_patch_deployment` via a request object, either of type
|
1182
|
+
# {::Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest} or an equivalent Hash.
|
1183
|
+
#
|
1184
|
+
# @param request [::Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest, ::Hash]
|
1185
|
+
# A request object representing the call parameters. Required. To specify no
|
1186
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1187
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1188
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1189
|
+
#
|
1190
|
+
# @overload resume_patch_deployment(name: nil)
|
1191
|
+
# Pass arguments to `resume_patch_deployment` via keyword arguments. Note that at
|
1192
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1193
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1194
|
+
#
|
1195
|
+
# @param name [::String]
|
1196
|
+
# Required. The resource name of the patch deployment in the form
|
1197
|
+
# `projects/*/patchDeployments/*`.
|
1198
|
+
#
|
1199
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1200
|
+
# @yieldparam response [::Google::Cloud::OsConfig::V1::PatchDeployment]
|
1201
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1202
|
+
#
|
1203
|
+
# @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
|
1204
|
+
#
|
1205
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1206
|
+
#
|
1207
|
+
# @example Basic example
|
1208
|
+
# require "google/cloud/os_config/v1"
|
1209
|
+
#
|
1210
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1211
|
+
# client = Google::Cloud::OsConfig::V1::OsConfigService::Client.new
|
1212
|
+
#
|
1213
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1214
|
+
# request = Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest.new
|
1215
|
+
#
|
1216
|
+
# # Call the resume_patch_deployment method.
|
1217
|
+
# result = client.resume_patch_deployment request
|
1218
|
+
#
|
1219
|
+
# # The returned object is of type Google::Cloud::OsConfig::V1::PatchDeployment.
|
1220
|
+
# p result
|
1221
|
+
#
|
1222
|
+
def resume_patch_deployment request, options = nil
|
1223
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1224
|
+
|
1225
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest
|
1226
|
+
|
1227
|
+
# Converts hash and nil to an options object
|
1228
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1229
|
+
|
1230
|
+
# Customize the options with defaults
|
1231
|
+
metadata = @config.rpcs.resume_patch_deployment.metadata.to_h
|
1232
|
+
|
1233
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1234
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1235
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1236
|
+
gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
|
1237
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1238
|
+
|
1239
|
+
header_params = {}
|
1240
|
+
if request.name
|
1241
|
+
header_params["name"] = request.name
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1245
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1246
|
+
|
1247
|
+
options.apply_defaults timeout: @config.rpcs.resume_patch_deployment.timeout,
|
1248
|
+
metadata: metadata,
|
1249
|
+
retry_policy: @config.rpcs.resume_patch_deployment.retry_policy
|
1250
|
+
|
1251
|
+
options.apply_defaults timeout: @config.timeout,
|
1252
|
+
metadata: @config.metadata,
|
1253
|
+
retry_policy: @config.retry_policy
|
1254
|
+
|
1255
|
+
@os_config_service_stub.call_rpc :resume_patch_deployment, request, options: options do |response, operation|
|
1256
|
+
yield response, operation if block_given?
|
1257
|
+
return response
|
1258
|
+
end
|
1259
|
+
rescue ::GRPC::BadStatus => e
|
1260
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1261
|
+
end
|
1262
|
+
|
1001
1263
|
##
|
1002
1264
|
# Configuration class for the OsConfigService API.
|
1003
1265
|
#
|
@@ -1178,6 +1440,21 @@ module Google
|
|
1178
1440
|
# @return [::Gapic::Config::Method]
|
1179
1441
|
#
|
1180
1442
|
attr_reader :delete_patch_deployment
|
1443
|
+
##
|
1444
|
+
# RPC-specific configuration for `update_patch_deployment`
|
1445
|
+
# @return [::Gapic::Config::Method]
|
1446
|
+
#
|
1447
|
+
attr_reader :update_patch_deployment
|
1448
|
+
##
|
1449
|
+
# RPC-specific configuration for `pause_patch_deployment`
|
1450
|
+
# @return [::Gapic::Config::Method]
|
1451
|
+
#
|
1452
|
+
attr_reader :pause_patch_deployment
|
1453
|
+
##
|
1454
|
+
# RPC-specific configuration for `resume_patch_deployment`
|
1455
|
+
# @return [::Gapic::Config::Method]
|
1456
|
+
#
|
1457
|
+
attr_reader :resume_patch_deployment
|
1181
1458
|
|
1182
1459
|
# @private
|
1183
1460
|
def initialize parent_rpcs = nil
|
@@ -1199,6 +1476,12 @@ module Google
|
|
1199
1476
|
@list_patch_deployments = ::Gapic::Config::Method.new list_patch_deployments_config
|
1200
1477
|
delete_patch_deployment_config = parent_rpcs.delete_patch_deployment if parent_rpcs.respond_to? :delete_patch_deployment
|
1201
1478
|
@delete_patch_deployment = ::Gapic::Config::Method.new delete_patch_deployment_config
|
1479
|
+
update_patch_deployment_config = parent_rpcs.update_patch_deployment if parent_rpcs.respond_to? :update_patch_deployment
|
1480
|
+
@update_patch_deployment = ::Gapic::Config::Method.new update_patch_deployment_config
|
1481
|
+
pause_patch_deployment_config = parent_rpcs.pause_patch_deployment if parent_rpcs.respond_to? :pause_patch_deployment
|
1482
|
+
@pause_patch_deployment = ::Gapic::Config::Method.new pause_patch_deployment_config
|
1483
|
+
resume_patch_deployment_config = parent_rpcs.resume_patch_deployment if parent_rpcs.respond_to? :resume_patch_deployment
|
1484
|
+
@resume_patch_deployment = ::Gapic::Config::Method.new resume_patch_deployment_config
|
1202
1485
|
|
1203
1486
|
yield self if block_given?
|
1204
1487
|
end
|
@@ -1,12 +1,12 @@
|
|
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/api/annotations_pb'
|
5
4
|
require 'google/api/client_pb'
|
6
5
|
require 'google/api/resource_pb'
|
7
6
|
require 'google/cloud/osconfig/v1/patch_deployments_pb'
|
8
7
|
require 'google/cloud/osconfig/v1/patch_jobs_pb'
|
9
8
|
require 'google/protobuf/empty_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
10
|
require 'google/protobuf'
|
11
11
|
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -56,6 +56,14 @@ module Google
|
|
56
56
|
rpc :ListPatchDeployments, ::Google::Cloud::OsConfig::V1::ListPatchDeploymentsRequest, ::Google::Cloud::OsConfig::V1::ListPatchDeploymentsResponse
|
57
57
|
# Delete an OS Config patch deployment.
|
58
58
|
rpc :DeletePatchDeployment, ::Google::Cloud::OsConfig::V1::DeletePatchDeploymentRequest, ::Google::Protobuf::Empty
|
59
|
+
# Update an OS Config patch deployment.
|
60
|
+
rpc :UpdatePatchDeployment, ::Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest, ::Google::Cloud::OsConfig::V1::PatchDeployment
|
61
|
+
# Change state of patch deployment to "PAUSED".
|
62
|
+
# Patch deployment in paused state doesn't generate patch jobs.
|
63
|
+
rpc :PausePatchDeployment, ::Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest, ::Google::Cloud::OsConfig::V1::PatchDeployment
|
64
|
+
# Change state of patch deployment back to "ACTIVE".
|
65
|
+
# Patch deployment in active state continues to generate patch jobs.
|
66
|
+
rpc :ResumePatchDeployment, ::Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest, ::Google::Cloud::OsConfig::V1::PatchDeployment
|
59
67
|
end
|
60
68
|
|
61
69
|
Stub = Service.rpc_stub_class
|
@@ -5,6 +5,7 @@ require 'google/api/field_behavior_pb'
|
|
5
5
|
require 'google/api/resource_pb'
|
6
6
|
require 'google/cloud/osconfig/v1/patch_jobs_pb'
|
7
7
|
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/field_mask_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
10
|
require 'google/type/datetime_pb'
|
10
11
|
require 'google/type/dayofweek_pb'
|
@@ -23,11 +24,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
24
|
optional :update_time, :message, 9, "google.protobuf.Timestamp"
|
24
25
|
optional :last_execute_time, :message, 10, "google.protobuf.Timestamp"
|
25
26
|
optional :rollout, :message, 11, "google.cloud.osconfig.v1.PatchRollout"
|
27
|
+
optional :state, :enum, 12, "google.cloud.osconfig.v1.PatchDeployment.State"
|
26
28
|
oneof :schedule do
|
27
29
|
optional :one_time_schedule, :message, 6, "google.cloud.osconfig.v1.OneTimeSchedule"
|
28
30
|
optional :recurring_schedule, :message, 7, "google.cloud.osconfig.v1.RecurringSchedule"
|
29
31
|
end
|
30
32
|
end
|
33
|
+
add_enum "google.cloud.osconfig.v1.PatchDeployment.State" do
|
34
|
+
value :STATE_UNSPECIFIED, 0
|
35
|
+
value :ACTIVE, 1
|
36
|
+
value :PAUSED, 2
|
37
|
+
end
|
31
38
|
add_message "google.cloud.osconfig.v1.OneTimeSchedule" do
|
32
39
|
optional :execute_time, :message, 1, "google.protobuf.Timestamp"
|
33
40
|
end
|
@@ -62,6 +69,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
62
69
|
add_message "google.cloud.osconfig.v1.WeekDayOfMonth" do
|
63
70
|
optional :week_ordinal, :int32, 1
|
64
71
|
optional :day_of_week, :enum, 2, "google.type.DayOfWeek"
|
72
|
+
optional :day_offset, :int32, 3
|
65
73
|
end
|
66
74
|
add_message "google.cloud.osconfig.v1.CreatePatchDeploymentRequest" do
|
67
75
|
optional :parent, :string, 1
|
@@ -83,6 +91,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
91
|
add_message "google.cloud.osconfig.v1.DeletePatchDeploymentRequest" do
|
84
92
|
optional :name, :string, 1
|
85
93
|
end
|
94
|
+
add_message "google.cloud.osconfig.v1.UpdatePatchDeploymentRequest" do
|
95
|
+
optional :patch_deployment, :message, 1, "google.cloud.osconfig.v1.PatchDeployment"
|
96
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
97
|
+
end
|
98
|
+
add_message "google.cloud.osconfig.v1.PausePatchDeploymentRequest" do
|
99
|
+
optional :name, :string, 1
|
100
|
+
end
|
101
|
+
add_message "google.cloud.osconfig.v1.ResumePatchDeploymentRequest" do
|
102
|
+
optional :name, :string, 1
|
103
|
+
end
|
86
104
|
end
|
87
105
|
end
|
88
106
|
|
@@ -91,6 +109,7 @@ module Google
|
|
91
109
|
module OsConfig
|
92
110
|
module V1
|
93
111
|
PatchDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchDeployment").msgclass
|
112
|
+
PatchDeployment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchDeployment.State").enummodule
|
94
113
|
OneTimeSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OneTimeSchedule").msgclass
|
95
114
|
RecurringSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule").msgclass
|
96
115
|
RecurringSchedule::Frequency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule.Frequency").enummodule
|
@@ -102,6 +121,9 @@ module Google
|
|
102
121
|
ListPatchDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsRequest").msgclass
|
103
122
|
ListPatchDeploymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsResponse").msgclass
|
104
123
|
DeletePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.DeletePatchDeploymentRequest").msgclass
|
124
|
+
UpdatePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.UpdatePatchDeploymentRequest").msgclass
|
125
|
+
PausePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PausePatchDeploymentRequest").msgclass
|
126
|
+
ResumePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ResumePatchDeploymentRequest").msgclass
|
105
127
|
end
|
106
128
|
end
|
107
129
|
end
|
@@ -103,6 +103,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
103
103
|
optional :windows_update, :message, 7, "google.cloud.osconfig.v1.WindowsUpdateSettings"
|
104
104
|
optional :pre_step, :message, 8, "google.cloud.osconfig.v1.ExecStep"
|
105
105
|
optional :post_step, :message, 9, "google.cloud.osconfig.v1.ExecStep"
|
106
|
+
optional :mig_instances_allowed, :bool, 10
|
106
107
|
end
|
107
108
|
add_enum "google.cloud.osconfig.v1.PatchConfig.RebootConfig" do
|
108
109
|
value :REBOOT_CONFIG_UNSPECIFIED, 0
|
@@ -19,6 +19,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
19
|
repeated :available_inventory_item_ids, :string, 3
|
20
20
|
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
21
21
|
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
22
|
+
repeated :items, :message, 6, "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item"
|
22
23
|
end
|
23
24
|
add_message "google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details" do
|
24
25
|
optional :cve, :string, 1
|
@@ -32,6 +33,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
33
|
optional :url, :string, 1
|
33
34
|
optional :source, :string, 2
|
34
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
|
35
42
|
add_message "google.cloud.osconfig.v1.GetVulnerabilityReportRequest" do
|
36
43
|
optional :name, :string, 1
|
37
44
|
end
|
@@ -103,6 +110,7 @@ module Google
|
|
103
110
|
VulnerabilityReport::Vulnerability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability").msgclass
|
104
111
|
VulnerabilityReport::Vulnerability::Details = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details").msgclass
|
105
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
|
106
114
|
GetVulnerabilityReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetVulnerabilityReportRequest").msgclass
|
107
115
|
ListVulnerabilityReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListVulnerabilityReportsRequest").msgclass
|
108
116
|
ListVulnerabilityReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListVulnerabilityReportsResponse").msgclass
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -287,12 +287,9 @@ module Google
|
|
287
287
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
288
288
|
end
|
289
289
|
|
290
|
-
# Contains information about a Windows application
|
291
|
-
# Windows Registry. For more information about these fields, see
|
292
|
-
#
|
293
|
-
# [Windows Installer Properties for the Uninstall
|
294
|
-
# Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
|
295
|
-
# class="external" }
|
290
|
+
# Contains information about a Windows application that is retrieved from the
|
291
|
+
# Windows Registry. For more information about these fields, see:
|
292
|
+
# https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
|
296
293
|
# @!attribute [rw] display_name
|
297
294
|
# @return [::String]
|
298
295
|
# The name of the application or product.
|
@@ -68,9 +68,25 @@ module Google
|
|
68
68
|
# @!attribute [rw] rollout
|
69
69
|
# @return [::Google::Cloud::OsConfig::V1::PatchRollout]
|
70
70
|
# Optional. Rollout strategy of the patch job.
|
71
|
+
# @!attribute [r] state
|
72
|
+
# @return [::Google::Cloud::OsConfig::V1::PatchDeployment::State]
|
73
|
+
# Output only. Current state of the patch deployment.
|
71
74
|
class PatchDeployment
|
72
75
|
include ::Google::Protobuf::MessageExts
|
73
76
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
|
78
|
+
# Represents state of patch peployment.
|
79
|
+
module State
|
80
|
+
# The default value. This value is used if the state is omitted.
|
81
|
+
STATE_UNSPECIFIED = 0
|
82
|
+
|
83
|
+
# Active value means that patch deployment generates Patch Jobs.
|
84
|
+
ACTIVE = 1
|
85
|
+
|
86
|
+
# Paused value means that patch deployment does not generate
|
87
|
+
# Patch jobs. Requires user action to move in and out from this state.
|
88
|
+
PAUSED = 2
|
89
|
+
end
|
74
90
|
end
|
75
91
|
|
76
92
|
# Sets the time for a one time patch deployment. Timestamp is in
|
@@ -123,16 +139,16 @@ module Google
|
|
123
139
|
# Invalid. A frequency must be specified.
|
124
140
|
FREQUENCY_UNSPECIFIED = 0
|
125
141
|
|
126
|
-
# Indicates that the frequency should be expressed in terms
|
127
|
-
# weeks.
|
142
|
+
# Indicates that the frequency of recurrence should be expressed in terms
|
143
|
+
# of weeks.
|
128
144
|
WEEKLY = 1
|
129
145
|
|
130
|
-
# Indicates that the frequency should be expressed in terms
|
131
|
-
# months.
|
146
|
+
# Indicates that the frequency of recurrence should be expressed in terms
|
147
|
+
# of months.
|
132
148
|
MONTHLY = 2
|
133
149
|
|
134
|
-
# Indicates that the frequency should be expressed in terms
|
135
|
-
# days.
|
150
|
+
# Indicates that the frequency of recurrence should be expressed in terms
|
151
|
+
# of days.
|
136
152
|
DAILY = 3
|
137
153
|
end
|
138
154
|
end
|
@@ -170,6 +186,15 @@ module Google
|
|
170
186
|
# @!attribute [rw] day_of_week
|
171
187
|
# @return [::Google::Type::DayOfWeek]
|
172
188
|
# Required. A day of the week.
|
189
|
+
# @!attribute [rw] day_offset
|
190
|
+
# @return [::Integer]
|
191
|
+
# Optional. Represents the number of days before or after the given week day
|
192
|
+
# of month that the patch deployment is scheduled for. For example if
|
193
|
+
# `week_ordinal` and `day_of_week` values point to the second day of the
|
194
|
+
# month and this `day_offset` value is set to `3`, the patch deployment takes
|
195
|
+
# place three days after the second Tuesday of the month. If this value is
|
196
|
+
# negative, for example -5, the patches are deployed five days before before
|
197
|
+
# the second Tuesday of the month. Allowed values are in range [-30, 30].
|
173
198
|
class WeekDayOfMonth
|
174
199
|
include ::Google::Protobuf::MessageExts
|
175
200
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -247,6 +272,39 @@ module Google
|
|
247
272
|
include ::Google::Protobuf::MessageExts
|
248
273
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
249
274
|
end
|
275
|
+
|
276
|
+
# A request message for updating a patch deployment.
|
277
|
+
# @!attribute [rw] patch_deployment
|
278
|
+
# @return [::Google::Cloud::OsConfig::V1::PatchDeployment]
|
279
|
+
# Required. The patch deployment to Update.
|
280
|
+
# @!attribute [rw] update_mask
|
281
|
+
# @return [::Google::Protobuf::FieldMask]
|
282
|
+
# Optional. Field mask that controls which fields of the patch deployment
|
283
|
+
# should be updated.
|
284
|
+
class UpdatePatchDeploymentRequest
|
285
|
+
include ::Google::Protobuf::MessageExts
|
286
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
287
|
+
end
|
288
|
+
|
289
|
+
# A request message for pausing a patch deployment.
|
290
|
+
# @!attribute [rw] name
|
291
|
+
# @return [::String]
|
292
|
+
# Required. The resource name of the patch deployment in the form
|
293
|
+
# `projects/*/patchDeployments/*`.
|
294
|
+
class PausePatchDeploymentRequest
|
295
|
+
include ::Google::Protobuf::MessageExts
|
296
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
297
|
+
end
|
298
|
+
|
299
|
+
# A request message for resuming a patch deployment.
|
300
|
+
# @!attribute [rw] name
|
301
|
+
# @return [::String]
|
302
|
+
# Required. The resource name of the patch deployment in the form
|
303
|
+
# `projects/*/patchDeployments/*`.
|
304
|
+
class ResumePatchDeploymentRequest
|
305
|
+
include ::Google::Protobuf::MessageExts
|
306
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
307
|
+
end
|
250
308
|
end
|
251
309
|
end
|
252
310
|
end
|
@@ -337,6 +337,9 @@ module Google
|
|
337
337
|
# @!attribute [rw] post_step
|
338
338
|
# @return [::Google::Cloud::OsConfig::V1::ExecStep]
|
339
339
|
# The `ExecStep` to run after the patch update.
|
340
|
+
# @!attribute [rw] mig_instances_allowed
|
341
|
+
# @return [::Boolean]
|
342
|
+
# Allows the patch job to run on Managed instance groups (MIGs).
|
340
343
|
class PatchConfig
|
341
344
|
include ::Google::Protobuf::MessageExts
|
342
345
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -69,6 +69,9 @@ module Google
|
|
69
69
|
# @!attribute [rw] update_time
|
70
70
|
# @return [::Google::Protobuf::Timestamp]
|
71
71
|
# The timestamp for when the vulnerability was last modified.
|
72
|
+
# @!attribute [rw] items
|
73
|
+
# @return [::Array<::Google::Cloud::OsConfig::V1::VulnerabilityReport::Vulnerability::Item>]
|
74
|
+
# List of items affected by the vulnerability.
|
72
75
|
class Vulnerability
|
73
76
|
include ::Google::Protobuf::MessageExts
|
74
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -112,6 +115,35 @@ module Google
|
|
112
115
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
116
|
end
|
114
117
|
end
|
118
|
+
|
119
|
+
# OS inventory item that is affected by a vulnerability or fixed as a
|
120
|
+
# result of a vulnerability.
|
121
|
+
# @!attribute [rw] installed_inventory_item_id
|
122
|
+
# @return [::String]
|
123
|
+
# Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
|
124
|
+
# This field displays the inventory items affected by this vulnerability.
|
125
|
+
# If the vulnerability report was not updated after the VM inventory
|
126
|
+
# update, these values might not display in VM inventory. For some
|
127
|
+
# operating systems, this field might be empty.
|
128
|
+
# @!attribute [rw] available_inventory_item_id
|
129
|
+
# @return [::String]
|
130
|
+
# Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
|
131
|
+
# If the vulnerability report was not updated after the VM inventory
|
132
|
+
# update, these values might not display in VM inventory. If there is no
|
133
|
+
# available fix, the field is empty. The `inventory_item` value specifies
|
134
|
+
# the latest `SoftwarePackage` available to the VM that fixes the
|
135
|
+
# vulnerability.
|
136
|
+
# @!attribute [rw] fixed_cpe_uri
|
137
|
+
# @return [::String]
|
138
|
+
# The recommended [CPE URI](https://cpe.mitre.org/specification/) update
|
139
|
+
# that contains a fix for this vulnerability.
|
140
|
+
# @!attribute [rw] upstream_fix
|
141
|
+
# @return [::String]
|
142
|
+
# The upstream OS patch, packages or KB that fixes the vulnerability.
|
143
|
+
class Item
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
end
|
115
147
|
end
|
116
148
|
end
|
117
149
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-os_config-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
|
-
rubygems_version: 3.
|
238
|
+
rubygems_version: 3.3.5
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
241
|
summary: API Client library for the Cloud OS Config V1 API
|