google-apis-memcache_v1beta2 0.1.0 → 0.2.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: 66a81c87c62a1472e32f0541dd9bde09c430a23a6fc0ff958fc9a5940ead6e1d
4
- data.tar.gz: a8769090ce9be53e346665a045ea3e615bdf38a18897eeb9c32f9340114fe136
3
+ metadata.gz: a9f7b311d1ddecaff9f57eb25a096ad52e6dae4c03a546e8ed1efaa72b59318a
4
+ data.tar.gz: 40da3d160b71060d600b7f30cc6d78bbcf65bcfc08e476ba5115f83ea2b0f0b5
5
5
  SHA512:
6
- metadata.gz: daa4826ce799f80bddc50684f5ef1251e113e846e5b9c69e6aad12d3253ae4f94c2202a7adb1ac62bacc91ab79c6a1b69690ad50061df121b8d00f25cca98afc
7
- data.tar.gz: 9ffd95cee2cd52b4270dcf96652ace2373ef38fdc6a55ed538465b2cea80f2f629f486f93ef11aff65e805298a70ba4da387e882b667db01ca055cf76421fe5c
6
+ metadata.gz: 834df1c429e48103c22d20062d2268736aea7be35c980b4c6e31d2fe86e43541f25f1d5fd5fe8fecbf274dfb05fa3b45fd7a8d76efd80bdd34b2c1d73539a131
7
+ data.tar.gz: 577656cd109c56fe8f39b1e59293a09ed980d13c68b3efe0265fe44c323bf763e90c73a17585b25dd6e9afc866b8ff451000d2fa707a3f3c3acd6758dd3dcb31
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-memcache_v1beta2
2
2
 
3
+ ### v0.2.0 (2021-01-22)
4
+
5
+ * Regenerated from discovery document revision 20210121
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -50,6 +50,35 @@ module Google
50
50
  end
51
51
  end
52
52
 
53
+ # Request for ApplySoftwareUpdate.
54
+ class ApplySoftwareUpdateRequest
55
+ include Google::Apis::Core::Hashable
56
+
57
+ # Whether to apply the update to all nodes. If set to true, will explicitly
58
+ # restrict users from specifying any nodes, and apply software update to all
59
+ # nodes (where applicable) within the instance.
60
+ # Corresponds to the JSON property `applyAll`
61
+ # @return [Boolean]
62
+ attr_accessor :apply_all
63
+ alias_method :apply_all?, :apply_all
64
+
65
+ # Nodes to which we should apply the update to. Note all the selected nodes are
66
+ # updated in parallel.
67
+ # Corresponds to the JSON property `nodeIds`
68
+ # @return [Array<String>]
69
+ attr_accessor :node_ids
70
+
71
+ def initialize(**args)
72
+ update!(**args)
73
+ end
74
+
75
+ # Update properties of this object
76
+ def update!(**args)
77
+ @apply_all = args[:apply_all] if args.key?(:apply_all)
78
+ @node_ids = args[:node_ids] if args.key?(:node_ids)
79
+ end
80
+ end
81
+
53
82
  # The request message for Operations.CancelOperation.
54
83
  class CancelOperationRequest
55
84
  include Google::Apis::Core::Hashable
@@ -424,6 +453,15 @@ module Google
424
453
  # @return [String]
425
454
  attr_accessor :rollout_management_policy
426
455
 
456
+ # schedule_deadline_time is the time deadline any schedule start time cannot go
457
+ # beyond, including reschedule. It's normally the initial schedule start time
458
+ # plus a week. If the reschedule type is next window, simply take this value as
459
+ # start time. If reschedule type is IMMEDIATELY or BY_TIME, current or selected
460
+ # time cannot go beyond this deadline.
461
+ # Corresponds to the JSON property `scheduleDeadlineTime`
462
+ # @return [String]
463
+ attr_accessor :schedule_deadline_time
464
+
427
465
  # The scheduled start time for the maintenance.
428
466
  # Corresponds to the JSON property `startTime`
429
467
  # @return [String]
@@ -438,6 +476,7 @@ module Google
438
476
  @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
439
477
  @end_time = args[:end_time] if args.key?(:end_time)
440
478
  @rollout_management_policy = args[:rollout_management_policy] if args.key?(:rollout_management_policy)
479
+ @schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
441
480
  @start_time = args[:start_time] if args.key?(:start_time)
442
481
  end
443
482
  end
@@ -764,6 +803,12 @@ module Google
764
803
  # @return [String]
765
804
  attr_accessor :state
766
805
 
806
+ # Output only. Returns true if there is an update waiting to be applied
807
+ # Corresponds to the JSON property `updateAvailable`
808
+ # @return [Boolean]
809
+ attr_accessor :update_available
810
+ alias_method :update_available?, :update_available
811
+
767
812
  # Output only. The time the instance was updated.
768
813
  # Corresponds to the JSON property `updateTime`
769
814
  # @return [String]
@@ -796,6 +841,7 @@ module Google
796
841
  @node_count = args[:node_count] if args.key?(:node_count)
797
842
  @parameters = args[:parameters] if args.key?(:parameters)
798
843
  @state = args[:state] if args.key?(:state)
844
+ @update_available = args[:update_available] if args.key?(:update_available)
799
845
  @update_time = args[:update_time] if args.key?(:update_time)
800
846
  @zones = args[:zones] if args.key?(:zones)
801
847
  end
@@ -1104,6 +1150,12 @@ module Google
1104
1150
  # @return [String]
1105
1151
  attr_accessor :state
1106
1152
 
1153
+ # Output only. Returns true if there is an update waiting to be applied
1154
+ # Corresponds to the JSON property `updateAvailable`
1155
+ # @return [Boolean]
1156
+ attr_accessor :update_available
1157
+ alias_method :update_available?, :update_available
1158
+
1107
1159
  # Output only. Location (GCP Zone) for the Memcached node.
1108
1160
  # Corresponds to the JSON property `zone`
1109
1161
  # @return [String]
@@ -1120,6 +1172,7 @@ module Google
1120
1172
  @parameters = args[:parameters] if args.key?(:parameters)
1121
1173
  @port = args[:port] if args.key?(:port)
1122
1174
  @state = args[:state] if args.key?(:state)
1175
+ @update_available = args[:update_available] if args.key?(:update_available)
1123
1176
  @zone = args[:zone] if args.key?(:zone)
1124
1177
  end
1125
1178
  end
@@ -1211,6 +1264,65 @@ module Google
1211
1264
  end
1212
1265
  end
1213
1266
 
1267
+ # Represents the metadata of a long-running operation.
1268
+ class OperationMetadata
1269
+ include Google::Apis::Core::Hashable
1270
+
1271
+ # Output only. API version used to start the operation.
1272
+ # Corresponds to the JSON property `apiVersion`
1273
+ # @return [String]
1274
+ attr_accessor :api_version
1275
+
1276
+ # Output only. Identifies whether the user has requested cancellation of the
1277
+ # operation. Operations that have successfully been cancelled have Operation.
1278
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1279
+ # CANCELLED`.
1280
+ # Corresponds to the JSON property `cancelRequested`
1281
+ # @return [Boolean]
1282
+ attr_accessor :cancel_requested
1283
+ alias_method :cancel_requested?, :cancel_requested
1284
+
1285
+ # Output only. Time when the operation was created.
1286
+ # Corresponds to the JSON property `createTime`
1287
+ # @return [String]
1288
+ attr_accessor :create_time
1289
+
1290
+ # Output only. Time when the operation finished running.
1291
+ # Corresponds to the JSON property `endTime`
1292
+ # @return [String]
1293
+ attr_accessor :end_time
1294
+
1295
+ # Output only. Human-readable status of the operation, if any.
1296
+ # Corresponds to the JSON property `statusDetail`
1297
+ # @return [String]
1298
+ attr_accessor :status_detail
1299
+
1300
+ # Output only. Server-defined resource path for the target of the operation.
1301
+ # Corresponds to the JSON property `target`
1302
+ # @return [String]
1303
+ attr_accessor :target
1304
+
1305
+ # Output only. Name of the verb executed by the operation.
1306
+ # Corresponds to the JSON property `verb`
1307
+ # @return [String]
1308
+ attr_accessor :verb
1309
+
1310
+ def initialize(**args)
1311
+ update!(**args)
1312
+ end
1313
+
1314
+ # Update properties of this object
1315
+ def update!(**args)
1316
+ @api_version = args[:api_version] if args.key?(:api_version)
1317
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1318
+ @create_time = args[:create_time] if args.key?(:create_time)
1319
+ @end_time = args[:end_time] if args.key?(:end_time)
1320
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1321
+ @target = args[:target] if args.key?(:target)
1322
+ @verb = args[:verb] if args.key?(:verb)
1323
+ end
1324
+ end
1325
+
1214
1326
  # Configure the schedule.
1215
1327
  class Schedule
1216
1328
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MemcacheV1beta2
18
18
  # Version of the google-apis-memcache_v1beta2 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201109"
25
+ REVISION = "20210121"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class ApplySoftwareUpdateRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class CancelOperationRequest
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -190,6 +196,12 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class OperationMetadata
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
193
205
  class Schedule
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
@@ -240,6 +252,14 @@ module Google
240
252
  end
241
253
  end
242
254
 
255
+ class ApplySoftwareUpdateRequest
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :apply_all, as: 'applyAll'
259
+ collection :node_ids, as: 'nodeIds'
260
+ end
261
+ end
262
+
243
263
  class CancelOperationRequest
244
264
  # @private
245
265
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -334,6 +354,7 @@ module Google
334
354
  property :can_reschedule, as: 'canReschedule'
335
355
  property :end_time, as: 'endTime'
336
356
  property :rollout_management_policy, as: 'rolloutManagementPolicy'
357
+ property :schedule_deadline_time, as: 'scheduleDeadlineTime'
337
358
  property :start_time, as: 'startTime'
338
359
  end
339
360
  end
@@ -417,6 +438,7 @@ module Google
417
438
  property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1beta2::MemcacheParameters, decorator: Google::Apis::MemcacheV1beta2::MemcacheParameters::Representation
418
439
 
419
440
  property :state, as: 'state'
441
+ property :update_available, as: 'updateAvailable'
420
442
  property :update_time, as: 'updateTime'
421
443
  collection :zones, as: 'zones'
422
444
  end
@@ -510,6 +532,7 @@ module Google
510
532
 
511
533
  property :port, as: 'port'
512
534
  property :state, as: 'state'
535
+ property :update_available, as: 'updateAvailable'
513
536
  property :zone, as: 'zone'
514
537
  end
515
538
  end
@@ -534,6 +557,19 @@ module Google
534
557
  end
535
558
  end
536
559
 
560
+ class OperationMetadata
561
+ # @private
562
+ class Representation < Google::Apis::Core::JsonRepresentation
563
+ property :api_version, as: 'apiVersion'
564
+ property :cancel_requested, as: 'cancelRequested'
565
+ property :create_time, as: 'createTime'
566
+ property :end_time, as: 'endTime'
567
+ property :status_detail, as: 'statusDetail'
568
+ property :target, as: 'target'
569
+ property :verb, as: 'verb'
570
+ end
571
+ end
572
+
537
573
  class Schedule
538
574
  # @private
539
575
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -154,6 +154,40 @@ module Google
154
154
  execute_or_queue_command(command, &block)
155
155
  end
156
156
 
157
+ # Updates software on the selected nodes of the Instance.
158
+ # @param [String] instance
159
+ # Required. Resource name of the Memcached instance for which software update
160
+ # should be applied.
161
+ # @param [Google::Apis::MemcacheV1beta2::ApplySoftwareUpdateRequest] apply_software_update_request_object
162
+ # @param [String] fields
163
+ # Selector specifying which fields to include in a partial response.
164
+ # @param [String] quota_user
165
+ # Available to use for quota purposes for server-side applications. Can be any
166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [Google::Apis::RequestOptions] options
168
+ # Request-specific options
169
+ #
170
+ # @yield [result, err] Result & error if block supplied
171
+ # @yieldparam result [Google::Apis::MemcacheV1beta2::Operation] parsed result object
172
+ # @yieldparam err [StandardError] error object if request failed
173
+ #
174
+ # @return [Google::Apis::MemcacheV1beta2::Operation]
175
+ #
176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
179
+ def apply_instance_software_update(instance, apply_software_update_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
180
+ command = make_simple_command(:post, 'v1beta2/{+instance}:applySoftwareUpdate', options)
181
+ command.request_representation = Google::Apis::MemcacheV1beta2::ApplySoftwareUpdateRequest::Representation
182
+ command.request_object = apply_software_update_request_object
183
+ command.response_representation = Google::Apis::MemcacheV1beta2::Operation::Representation
184
+ command.response_class = Google::Apis::MemcacheV1beta2::Operation
185
+ command.params['instance'] = instance unless instance.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
157
191
  # Creates a new Instance in a given location.
158
192
  # @param [String] parent
159
193
  # Required. The resource name of the instance location using the form: `projects/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-memcache_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-memcache_v1beta2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-memcache_v1beta2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Memorystore for Memcached API V1beta2