google-cloud-os_config-v1 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82956fc56fa7f9057233fca9a117c67dc38cf5eef452c2c493ad130d83de2166
4
- data.tar.gz: 116827bfa0dc4ad2d738cbb4913e5543aa865739ffacaeee84e87278dd402781
3
+ metadata.gz: c3d96054fa59f63991987e87c9239c085d97a82f99a250b13d0b54519dec70df
4
+ data.tar.gz: 7fa7a1fa218f9d119ff651d11a0a02f79b270b7b608a668301185d49e7019c49
5
5
  SHA512:
6
- metadata.gz: 392d9f6f8fd20da540dfe01fb9e5370b17b9bcaecee6b3676f2a18b2fd28783e17e78a6bdbe2076d5296c66156f81b72b1848d9cfad4a67ab0fc65e04d18beb1
7
- data.tar.gz: 95dc01660362e553c60c7d2fed2906c2023f262cd10be8778e7cbfa2ff71dee9093fdca3c48cc59700a5714620c48b598af91979614dcdb2831e82799e404182
6
+ metadata.gz: e4a07f3235e6c9af575d3b0fa106f1cb6f2d33e2c8893be52bfab240d94a8b0407c46e5a5155e733373fc13a8809e89c892e651b1d1826a4873cf3eb799b1923
7
+ data.tar.gz: 48b017fdfdf2ef8bdec089d32e53046d721ea16e5d36a44cf6d861321949e16742086a67a0705c66c695e8dcdfcc577b6ab74b1c7ffbbf78ff1e25211cc198b0
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://googleapis.dev/ruby/google-cloud-os_config-v1/latest)
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- VERSION = "0.9.1"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/os_config/v1"
30
32
  # client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new
31
33
  #
@@ -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
@@ -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 as retrieved from the
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.
@@ -473,7 +473,7 @@ module Google
473
473
 
474
474
  # The interpreter to use.
475
475
  module Interpreter
476
- # Defaults to NONE.
476
+ # Invalid value, the request will return validation error.
477
477
  INTERPRETER_UNSPECIFIED = 0
478
478
 
479
479
  # If an interpreter is not specified, the
@@ -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 of
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 of
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 of
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
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.9.1
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: 2022-01-11 00:00:00.000000000 Z
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.3.4
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