google-cloud-os_config-v1 0.9.0 → 0.11.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 +11 -6
- 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/os_config_zonal_service/operations.rb +3 -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/inventory_pb.rb +2 -1
- data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +2 -1
- data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +2 -1
- data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +2 -1
- data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +3 -2
- data/lib/google/cloud/osconfig/v1/osconfig_service_services_pb.rb +8 -0
- data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +2 -1
- data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +24 -1
- data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +3 -1
- data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +2 -1
- 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/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c96fbc5e3d020687360ae59c2ff38a32c10a14ee90f8fa53017007bb4cc045
|
4
|
+
data.tar.gz: 50c33395c8d67b9c8e7442a189114dda0651f2283b0c279ecbd118cb048be1fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36557b065d676fe52755da9b55c0457a5c2a1339154a0c1419543b90e26fc30434e48ec093edbf21c2cf5f0b8660bbe106e57ff1ef648a176e343a2d762d9cf7
|
7
|
+
data.tar.gz: 5f2f538cb809a7bbccb64007ad2cfadde60bece2a48f1e9fff965f1cc721bb76c3cf2ffbf1812aa6148855e44c48f17b76333e84037446cca02d7246939c376e
|
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)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -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,11 +1,12 @@
|
|
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/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/protobuf/timestamp_pb'
|
7
9
|
require 'google/type/date_pb'
|
8
|
-
require 'google/protobuf'
|
9
10
|
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/cloud/osconfig/v1/inventory.proto", :syntax => :proto3) do
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/osconfig/v1/os_policy_assignment_reports.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/cloud/osconfig/v1/os_policy_assignment_reports.proto", :syntax => :proto3) do
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/osconfig/v1/os_policy_assignments.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/osconfig/v1/os_policy_pb'
|
@@ -8,7 +10,6 @@ require 'google/cloud/osconfig/v1/osconfig_common_pb'
|
|
8
10
|
require 'google/protobuf/duration_pb'
|
9
11
|
require 'google/protobuf/field_mask_pb'
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/protobuf'
|
12
13
|
|
13
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
15
|
add_file("google/cloud/osconfig/v1/os_policy_assignments.proto", :syntax => :proto3) do
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/osconfig/v1/os_policy.proto
|
3
3
|
|
4
|
-
require 'google/api/field_behavior_pb'
|
5
4
|
require 'google/protobuf'
|
6
5
|
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/cloud/osconfig/v1/os_policy.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.cloud.osconfig.v1.OSPolicy" do
|
@@ -1,13 +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/
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
5
6
|
require 'google/api/client_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
require 'google/cloud/osconfig/v1/patch_deployments_pb'
|
8
9
|
require 'google/cloud/osconfig/v1/patch_jobs_pb'
|
9
10
|
require 'google/protobuf/empty_pb'
|
10
|
-
require 'google/
|
11
|
+
require 'google/api/annotations_pb'
|
11
12
|
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
14
|
add_file("google/cloud/osconfig/v1/osconfig_service.proto", :syntax => :proto3) 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
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/osconfig/v1/osconfig_zonal_service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/cloud/osconfig/v1/inventory_pb'
|
@@ -8,7 +10,6 @@ require 'google/cloud/osconfig/v1/os_policy_assignment_reports_pb'
|
|
8
10
|
require 'google/cloud/osconfig/v1/os_policy_assignments_pb'
|
9
11
|
require 'google/cloud/osconfig/v1/vulnerability_pb'
|
10
12
|
require 'google/longrunning/operations_pb'
|
11
|
-
require 'google/protobuf'
|
12
13
|
|
13
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
15
|
add_file("google/cloud/osconfig/v1/osconfig_zonal_service.proto", :syntax => :proto3) do
|
@@ -1,15 +1,17 @@
|
|
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
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/osconfig/v1/patch_jobs_pb'
|
7
9
|
require 'google/protobuf/duration_pb'
|
10
|
+
require 'google/protobuf/field_mask_pb'
|
8
11
|
require 'google/protobuf/timestamp_pb'
|
9
12
|
require 'google/type/datetime_pb'
|
10
13
|
require 'google/type/dayofweek_pb'
|
11
14
|
require 'google/type/timeofday_pb'
|
12
|
-
require 'google/protobuf'
|
13
15
|
|
14
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
17
|
add_file("google/cloud/osconfig/v1/patch_deployments.proto", :syntax => :proto3) do
|
@@ -23,11 +25,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
25
|
optional :update_time, :message, 9, "google.protobuf.Timestamp"
|
24
26
|
optional :last_execute_time, :message, 10, "google.protobuf.Timestamp"
|
25
27
|
optional :rollout, :message, 11, "google.cloud.osconfig.v1.PatchRollout"
|
28
|
+
optional :state, :enum, 12, "google.cloud.osconfig.v1.PatchDeployment.State"
|
26
29
|
oneof :schedule do
|
27
30
|
optional :one_time_schedule, :message, 6, "google.cloud.osconfig.v1.OneTimeSchedule"
|
28
31
|
optional :recurring_schedule, :message, 7, "google.cloud.osconfig.v1.RecurringSchedule"
|
29
32
|
end
|
30
33
|
end
|
34
|
+
add_enum "google.cloud.osconfig.v1.PatchDeployment.State" do
|
35
|
+
value :STATE_UNSPECIFIED, 0
|
36
|
+
value :ACTIVE, 1
|
37
|
+
value :PAUSED, 2
|
38
|
+
end
|
31
39
|
add_message "google.cloud.osconfig.v1.OneTimeSchedule" do
|
32
40
|
optional :execute_time, :message, 1, "google.protobuf.Timestamp"
|
33
41
|
end
|
@@ -62,6 +70,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
62
70
|
add_message "google.cloud.osconfig.v1.WeekDayOfMonth" do
|
63
71
|
optional :week_ordinal, :int32, 1
|
64
72
|
optional :day_of_week, :enum, 2, "google.type.DayOfWeek"
|
73
|
+
optional :day_offset, :int32, 3
|
65
74
|
end
|
66
75
|
add_message "google.cloud.osconfig.v1.CreatePatchDeploymentRequest" do
|
67
76
|
optional :parent, :string, 1
|
@@ -83,6 +92,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
92
|
add_message "google.cloud.osconfig.v1.DeletePatchDeploymentRequest" do
|
84
93
|
optional :name, :string, 1
|
85
94
|
end
|
95
|
+
add_message "google.cloud.osconfig.v1.UpdatePatchDeploymentRequest" do
|
96
|
+
optional :patch_deployment, :message, 1, "google.cloud.osconfig.v1.PatchDeployment"
|
97
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
98
|
+
end
|
99
|
+
add_message "google.cloud.osconfig.v1.PausePatchDeploymentRequest" do
|
100
|
+
optional :name, :string, 1
|
101
|
+
end
|
102
|
+
add_message "google.cloud.osconfig.v1.ResumePatchDeploymentRequest" do
|
103
|
+
optional :name, :string, 1
|
104
|
+
end
|
86
105
|
end
|
87
106
|
end
|
88
107
|
|
@@ -91,6 +110,7 @@ module Google
|
|
91
110
|
module OsConfig
|
92
111
|
module V1
|
93
112
|
PatchDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchDeployment").msgclass
|
113
|
+
PatchDeployment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchDeployment.State").enummodule
|
94
114
|
OneTimeSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OneTimeSchedule").msgclass
|
95
115
|
RecurringSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule").msgclass
|
96
116
|
RecurringSchedule::Frequency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule.Frequency").enummodule
|
@@ -102,6 +122,9 @@ module Google
|
|
102
122
|
ListPatchDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsRequest").msgclass
|
103
123
|
ListPatchDeploymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsResponse").msgclass
|
104
124
|
DeletePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.DeletePatchDeploymentRequest").msgclass
|
125
|
+
UpdatePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.UpdatePatchDeploymentRequest").msgclass
|
126
|
+
PausePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PausePatchDeploymentRequest").msgclass
|
127
|
+
ResumePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ResumePatchDeploymentRequest").msgclass
|
105
128
|
end
|
106
129
|
end
|
107
130
|
end
|
@@ -1,12 +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
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/osconfig/v1/osconfig_common_pb'
|
7
9
|
require 'google/protobuf/duration_pb'
|
8
10
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/protobuf'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/cloud/osconfig/v1/patch_jobs.proto", :syntax => :proto3) do
|
@@ -103,6 +104,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
103
104
|
optional :windows_update, :message, 7, "google.cloud.osconfig.v1.WindowsUpdateSettings"
|
104
105
|
optional :pre_step, :message, 8, "google.cloud.osconfig.v1.ExecStep"
|
105
106
|
optional :post_step, :message, 9, "google.cloud.osconfig.v1.ExecStep"
|
107
|
+
optional :mig_instances_allowed, :bool, 10
|
106
108
|
end
|
107
109
|
add_enum "google.cloud.osconfig.v1.PatchConfig.RebootConfig" do
|
108
110
|
value :REBOOT_CONFIG_UNSPECIFIED, 0
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/osconfig/v1/vulnerability.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/cloud/osconfig/v1/vulnerability.proto", :syntax => :proto3) do
|
@@ -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
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
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.11.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-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,14 +228,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
228
|
requirements:
|
229
229
|
- - ">="
|
230
230
|
- !ruby/object:Gem::Version
|
231
|
-
version: '2.
|
231
|
+
version: '2.6'
|
232
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
|
-
rubygems_version: 3.
|
238
|
+
rubygems_version: 3.3.14
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
241
|
summary: API Client library for the Cloud OS Config V1 API
|