google-apis-redis_v1 0.5.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/redis_v1/classes.rb +205 -4
- data/lib/google/apis/redis_v1/gem_version.rb +3 -3
- data/lib/google/apis/redis_v1/representations.rb +83 -0
- data/lib/google/apis/redis_v1/service.rb +36 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a28ac68f9130a59c9d52b765992d4e969d91013c4c8faddc358733b48c1f7fa
|
4
|
+
data.tar.gz: 68df671fba7e2b56a89e54c9a7696e175c67c6cf9836fcfc3784e2960ce19587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7b800080a99f4fb5bb88747d8ac1a379c5108ab76bbca2c6fe202a50c6eb68d6a8e308041f75081dd80db5bbd965d98a37f011cd2d11c82c3fce19a6bc186d6
|
7
|
+
data.tar.gz: 6564409f3c3649ec57da914c799414566e669b4b7a9cb23985aba516189736c206a091174afad25b504b0d370dab483ec3bb7fffafbe06e8d8f280b6b2fc5ea8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-redis_v1
|
2
2
|
|
3
|
+
### v0.10.0 (2021-06-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210615
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
8
|
+
### v0.9.0 (2021-05-28)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210525
|
11
|
+
|
12
|
+
### v0.8.0 (2021-05-19)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.7.0 (2021-04-23)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210415
|
19
|
+
|
20
|
+
### v0.6.0 (2021-03-25)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210318
|
23
|
+
|
3
24
|
### v0.5.0 (2021-03-17)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210311
|
@@ -319,6 +319,17 @@ module Google
|
|
319
319
|
# @return [String]
|
320
320
|
attr_accessor :location_id
|
321
321
|
|
322
|
+
# Maintenance policy for an instance.
|
323
|
+
# Corresponds to the JSON property `maintenancePolicy`
|
324
|
+
# @return [Google::Apis::RedisV1::MaintenancePolicy]
|
325
|
+
attr_accessor :maintenance_policy
|
326
|
+
|
327
|
+
# Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
|
328
|
+
# populated.
|
329
|
+
# Corresponds to the JSON property `maintenanceSchedule`
|
330
|
+
# @return [Google::Apis::RedisV1::MaintenanceSchedule]
|
331
|
+
attr_accessor :maintenance_schedule
|
332
|
+
|
322
333
|
# Required. Redis memory size in GiB.
|
323
334
|
# Corresponds to the JSON property `memorySizeGb`
|
324
335
|
# @return [Fixnum]
|
@@ -366,10 +377,12 @@ module Google
|
|
366
377
|
# @return [String]
|
367
378
|
attr_accessor :redis_version
|
368
379
|
|
369
|
-
# Optional.
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
380
|
+
# Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that
|
381
|
+
# are reserved for this instance. Range must be unique and non-overlapping with
|
382
|
+
# existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode,
|
383
|
+
# the name of one allocated IP address ranges associated with this private
|
384
|
+
# service access connection. If not provided, the service will choose an unused /
|
385
|
+
# 29 block, for example, 10.0.0.0/29 or 192.168.0.0/29.
|
373
386
|
# Corresponds to the JSON property `reservedIpRange`
|
374
387
|
# @return [String]
|
375
388
|
attr_accessor :reserved_ip_range
|
@@ -417,6 +430,8 @@ module Google
|
|
417
430
|
@host = args[:host] if args.key?(:host)
|
418
431
|
@labels = args[:labels] if args.key?(:labels)
|
419
432
|
@location_id = args[:location_id] if args.key?(:location_id)
|
433
|
+
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
|
434
|
+
@maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
|
420
435
|
@memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
|
421
436
|
@name = args[:name] if args.key?(:name)
|
422
437
|
@persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
|
@@ -589,6 +604,88 @@ module Google
|
|
589
604
|
end
|
590
605
|
end
|
591
606
|
|
607
|
+
# Maintenance policy for an instance.
|
608
|
+
class MaintenancePolicy
|
609
|
+
include Google::Apis::Core::Hashable
|
610
|
+
|
611
|
+
# Output only. The time when the policy was created.
|
612
|
+
# Corresponds to the JSON property `createTime`
|
613
|
+
# @return [String]
|
614
|
+
attr_accessor :create_time
|
615
|
+
|
616
|
+
# Optional. Description of what this policy is for. Create/Update methods return
|
617
|
+
# INVALID_ARGUMENT if the length is greater than 512.
|
618
|
+
# Corresponds to the JSON property `description`
|
619
|
+
# @return [String]
|
620
|
+
attr_accessor :description
|
621
|
+
|
622
|
+
# Output only. The time when the policy was last updated.
|
623
|
+
# Corresponds to the JSON property `updateTime`
|
624
|
+
# @return [String]
|
625
|
+
attr_accessor :update_time
|
626
|
+
|
627
|
+
# Optional. Maintenance window that is applied to resources covered by this
|
628
|
+
# policy. Minimum 1. For the current version, the maximum number of
|
629
|
+
# weekly_window is expected to be one.
|
630
|
+
# Corresponds to the JSON property `weeklyMaintenanceWindow`
|
631
|
+
# @return [Array<Google::Apis::RedisV1::WeeklyMaintenanceWindow>]
|
632
|
+
attr_accessor :weekly_maintenance_window
|
633
|
+
|
634
|
+
def initialize(**args)
|
635
|
+
update!(**args)
|
636
|
+
end
|
637
|
+
|
638
|
+
# Update properties of this object
|
639
|
+
def update!(**args)
|
640
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
641
|
+
@description = args[:description] if args.key?(:description)
|
642
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
643
|
+
@weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window)
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
647
|
+
# Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
|
648
|
+
# populated.
|
649
|
+
class MaintenanceSchedule
|
650
|
+
include Google::Apis::Core::Hashable
|
651
|
+
|
652
|
+
# If the scheduled maintenance can be rescheduled, default is true.
|
653
|
+
# Corresponds to the JSON property `canReschedule`
|
654
|
+
# @return [Boolean]
|
655
|
+
attr_accessor :can_reschedule
|
656
|
+
alias_method :can_reschedule?, :can_reschedule
|
657
|
+
|
658
|
+
# Output only. The end time of any upcoming scheduled maintenance for this
|
659
|
+
# instance.
|
660
|
+
# Corresponds to the JSON property `endTime`
|
661
|
+
# @return [String]
|
662
|
+
attr_accessor :end_time
|
663
|
+
|
664
|
+
# Output only. The deadline that the maintenance schedule start time can not go
|
665
|
+
# beyond, including reschedule.
|
666
|
+
# Corresponds to the JSON property `scheduleDeadlineTime`
|
667
|
+
# @return [String]
|
668
|
+
attr_accessor :schedule_deadline_time
|
669
|
+
|
670
|
+
# Output only. The start time of any upcoming scheduled maintenance for this
|
671
|
+
# instance.
|
672
|
+
# Corresponds to the JSON property `startTime`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :start_time
|
675
|
+
|
676
|
+
def initialize(**args)
|
677
|
+
update!(**args)
|
678
|
+
end
|
679
|
+
|
680
|
+
# Update properties of this object
|
681
|
+
def update!(**args)
|
682
|
+
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
683
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
684
|
+
@schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
|
685
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
592
689
|
# This resource represents a long-running operation that is the result of a
|
593
690
|
# network API call.
|
594
691
|
class Operation
|
@@ -674,6 +771,34 @@ module Google
|
|
674
771
|
end
|
675
772
|
end
|
676
773
|
|
774
|
+
# Request for RescheduleMaintenance.
|
775
|
+
class RescheduleMaintenanceRequest
|
776
|
+
include Google::Apis::Core::Hashable
|
777
|
+
|
778
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
779
|
+
# well.
|
780
|
+
# Corresponds to the JSON property `rescheduleType`
|
781
|
+
# @return [String]
|
782
|
+
attr_accessor :reschedule_type
|
783
|
+
|
784
|
+
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
785
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:
|
786
|
+
# 19:00.094Z`.
|
787
|
+
# Corresponds to the JSON property `scheduleTime`
|
788
|
+
# @return [String]
|
789
|
+
attr_accessor :schedule_time
|
790
|
+
|
791
|
+
def initialize(**args)
|
792
|
+
update!(**args)
|
793
|
+
end
|
794
|
+
|
795
|
+
# Update properties of this object
|
796
|
+
def update!(**args)
|
797
|
+
@reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
|
798
|
+
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|
677
802
|
# The `Status` type defines a logical error model that is suitable for different
|
678
803
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
679
804
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -713,6 +838,47 @@ module Google
|
|
713
838
|
end
|
714
839
|
end
|
715
840
|
|
841
|
+
# Represents a time of day. The date and time zone are either not significant or
|
842
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
843
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
844
|
+
class TimeOfDay
|
845
|
+
include Google::Apis::Core::Hashable
|
846
|
+
|
847
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
|
848
|
+
# allow the value "24:00:00" for scenarios like business closing time.
|
849
|
+
# Corresponds to the JSON property `hours`
|
850
|
+
# @return [Fixnum]
|
851
|
+
attr_accessor :hours
|
852
|
+
|
853
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
854
|
+
# Corresponds to the JSON property `minutes`
|
855
|
+
# @return [Fixnum]
|
856
|
+
attr_accessor :minutes
|
857
|
+
|
858
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
859
|
+
# Corresponds to the JSON property `nanos`
|
860
|
+
# @return [Fixnum]
|
861
|
+
attr_accessor :nanos
|
862
|
+
|
863
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
864
|
+
# allow the value 60 if it allows leap-seconds.
|
865
|
+
# Corresponds to the JSON property `seconds`
|
866
|
+
# @return [Fixnum]
|
867
|
+
attr_accessor :seconds
|
868
|
+
|
869
|
+
def initialize(**args)
|
870
|
+
update!(**args)
|
871
|
+
end
|
872
|
+
|
873
|
+
# Update properties of this object
|
874
|
+
def update!(**args)
|
875
|
+
@hours = args[:hours] if args.key?(:hours)
|
876
|
+
@minutes = args[:minutes] if args.key?(:minutes)
|
877
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
878
|
+
@seconds = args[:seconds] if args.key?(:seconds)
|
879
|
+
end
|
880
|
+
end
|
881
|
+
|
716
882
|
# TlsCertificate Resource
|
717
883
|
class TlsCertificate
|
718
884
|
include Google::Apis::Core::Hashable
|
@@ -776,6 +942,41 @@ module Google
|
|
776
942
|
@redis_version = args[:redis_version] if args.key?(:redis_version)
|
777
943
|
end
|
778
944
|
end
|
945
|
+
|
946
|
+
# Time window in which disruptive maintenance updates occur. Non-disruptive
|
947
|
+
# updates can occur inside or outside this window.
|
948
|
+
class WeeklyMaintenanceWindow
|
949
|
+
include Google::Apis::Core::Hashable
|
950
|
+
|
951
|
+
# Required. The day of week that maintenance updates occur.
|
952
|
+
# Corresponds to the JSON property `day`
|
953
|
+
# @return [String]
|
954
|
+
attr_accessor :day
|
955
|
+
|
956
|
+
# Output only. Duration of the maintenance window. The current window is fixed
|
957
|
+
# at 1 hour.
|
958
|
+
# Corresponds to the JSON property `duration`
|
959
|
+
# @return [String]
|
960
|
+
attr_accessor :duration
|
961
|
+
|
962
|
+
# Represents a time of day. The date and time zone are either not significant or
|
963
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
964
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
965
|
+
# Corresponds to the JSON property `startTime`
|
966
|
+
# @return [Google::Apis::RedisV1::TimeOfDay]
|
967
|
+
attr_accessor :start_time
|
968
|
+
|
969
|
+
def initialize(**args)
|
970
|
+
update!(**args)
|
971
|
+
end
|
972
|
+
|
973
|
+
# Update properties of this object
|
974
|
+
def update!(**args)
|
975
|
+
@day = args[:day] if args.key?(:day)
|
976
|
+
@duration = args[:duration] if args.key?(:duration)
|
977
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
978
|
+
end
|
979
|
+
end
|
779
980
|
end
|
780
981
|
end
|
781
982
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RedisV1
|
18
18
|
# Version of the google-apis-redis_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210615"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,18 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class MaintenancePolicy
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class MaintenanceSchedule
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
121
133
|
class Operation
|
122
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
135
|
|
@@ -130,12 +142,24 @@ module Google
|
|
130
142
|
include Google::Apis::Core::JsonObjectSupport
|
131
143
|
end
|
132
144
|
|
145
|
+
class RescheduleMaintenanceRequest
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
133
151
|
class Status
|
134
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
153
|
|
136
154
|
include Google::Apis::Core::JsonObjectSupport
|
137
155
|
end
|
138
156
|
|
157
|
+
class TimeOfDay
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
139
163
|
class TlsCertificate
|
140
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
165
|
|
@@ -148,6 +172,12 @@ module Google
|
|
148
172
|
include Google::Apis::Core::JsonObjectSupport
|
149
173
|
end
|
150
174
|
|
175
|
+
class WeeklyMaintenanceWindow
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
151
181
|
class Empty
|
152
182
|
# @private
|
153
183
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -239,6 +269,10 @@ module Google
|
|
239
269
|
property :host, as: 'host'
|
240
270
|
hash :labels, as: 'labels'
|
241
271
|
property :location_id, as: 'locationId'
|
272
|
+
property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::RedisV1::MaintenancePolicy, decorator: Google::Apis::RedisV1::MaintenancePolicy::Representation
|
273
|
+
|
274
|
+
property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::RedisV1::MaintenanceSchedule, decorator: Google::Apis::RedisV1::MaintenanceSchedule::Representation
|
275
|
+
|
242
276
|
property :memory_size_gb, as: 'memorySizeGb'
|
243
277
|
property :name, as: 'name'
|
244
278
|
property :persistence_iam_identity, as: 'persistenceIamIdentity'
|
@@ -301,6 +335,27 @@ module Google
|
|
301
335
|
end
|
302
336
|
end
|
303
337
|
|
338
|
+
class MaintenancePolicy
|
339
|
+
# @private
|
340
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
341
|
+
property :create_time, as: 'createTime'
|
342
|
+
property :description, as: 'description'
|
343
|
+
property :update_time, as: 'updateTime'
|
344
|
+
collection :weekly_maintenance_window, as: 'weeklyMaintenanceWindow', class: Google::Apis::RedisV1::WeeklyMaintenanceWindow, decorator: Google::Apis::RedisV1::WeeklyMaintenanceWindow::Representation
|
345
|
+
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
class MaintenanceSchedule
|
350
|
+
# @private
|
351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
352
|
+
property :can_reschedule, as: 'canReschedule'
|
353
|
+
property :end_time, as: 'endTime'
|
354
|
+
property :schedule_deadline_time, as: 'scheduleDeadlineTime'
|
355
|
+
property :start_time, as: 'startTime'
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
304
359
|
class Operation
|
305
360
|
# @private
|
306
361
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -321,6 +376,14 @@ module Google
|
|
321
376
|
end
|
322
377
|
end
|
323
378
|
|
379
|
+
class RescheduleMaintenanceRequest
|
380
|
+
# @private
|
381
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
382
|
+
property :reschedule_type, as: 'rescheduleType'
|
383
|
+
property :schedule_time, as: 'scheduleTime'
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
324
387
|
class Status
|
325
388
|
# @private
|
326
389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -330,6 +393,16 @@ module Google
|
|
330
393
|
end
|
331
394
|
end
|
332
395
|
|
396
|
+
class TimeOfDay
|
397
|
+
# @private
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
399
|
+
property :hours, as: 'hours'
|
400
|
+
property :minutes, as: 'minutes'
|
401
|
+
property :nanos, as: 'nanos'
|
402
|
+
property :seconds, as: 'seconds'
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
333
406
|
class TlsCertificate
|
334
407
|
# @private
|
335
408
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -347,6 +420,16 @@ module Google
|
|
347
420
|
property :redis_version, as: 'redisVersion'
|
348
421
|
end
|
349
422
|
end
|
423
|
+
|
424
|
+
class WeeklyMaintenanceWindow
|
425
|
+
# @private
|
426
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
427
|
+
property :day, as: 'day'
|
428
|
+
property :duration, as: 'duration'
|
429
|
+
property :start_time, as: 'startTime', class: Google::Apis::RedisV1::TimeOfDay, decorator: Google::Apis::RedisV1::TimeOfDay::Representation
|
430
|
+
|
431
|
+
end
|
432
|
+
end
|
350
433
|
end
|
351
434
|
end
|
352
435
|
end
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
88
88
|
# AIP-160](https://google.aip.dev/160).
|
89
89
|
# @param [Fixnum] page_size
|
90
|
-
# The maximum number of results to return. If not set, the service
|
90
|
+
# The maximum number of results to return. If not set, the service selects a
|
91
91
|
# default.
|
92
92
|
# @param [String] page_token
|
93
93
|
# A page token received from the `next_page_token` field in the response. Send
|
@@ -476,6 +476,41 @@ module Google
|
|
476
476
|
execute_or_queue_command(command, &block)
|
477
477
|
end
|
478
478
|
|
479
|
+
# Reschedule maintenance for a given instance in a given project and location.
|
480
|
+
# @param [String] name
|
481
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
482
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
483
|
+
# a GCP region.
|
484
|
+
# @param [Google::Apis::RedisV1::RescheduleMaintenanceRequest] reschedule_maintenance_request_object
|
485
|
+
# @param [String] fields
|
486
|
+
# Selector specifying which fields to include in a partial response.
|
487
|
+
# @param [String] quota_user
|
488
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
489
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
490
|
+
# @param [Google::Apis::RequestOptions] options
|
491
|
+
# Request-specific options
|
492
|
+
#
|
493
|
+
# @yield [result, err] Result & error if block supplied
|
494
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
495
|
+
# @yieldparam err [StandardError] error object if request failed
|
496
|
+
#
|
497
|
+
# @return [Google::Apis::RedisV1::Operation]
|
498
|
+
#
|
499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
502
|
+
def reschedule_instance_maintenance(name, reschedule_maintenance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
503
|
+
command = make_simple_command(:post, 'v1/{+name}:rescheduleMaintenance', options)
|
504
|
+
command.request_representation = Google::Apis::RedisV1::RescheduleMaintenanceRequest::Representation
|
505
|
+
command.request_object = reschedule_maintenance_request_object
|
506
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
507
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
508
|
+
command.params['name'] = name unless name.nil?
|
509
|
+
command.query['fields'] = fields unless fields.nil?
|
510
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
511
|
+
execute_or_queue_command(command, &block)
|
512
|
+
end
|
513
|
+
|
479
514
|
# Upgrades Redis instance to the newer Redis version specified in the request.
|
480
515
|
# @param [String] name
|
481
516
|
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-redis_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-21 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-redis_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.10.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1
|
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.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Google Cloud Memorystore for Redis API V1
|