google-apis-redis_v1beta1 0.4.0 → 0.5.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: e9369e9be45d7f54b553c265ee9e1068a64353adc6b05805b57d8ff2eeecfaa6
4
- data.tar.gz: 609301c1b50c1256b580317f74021c81ea021cda05a4b207b6fdeb13dbbf5cf4
3
+ metadata.gz: 4a79003109a415c09903d634e6618f2689eec060280b861c2c7bcbcb8b7a32ba
4
+ data.tar.gz: e5541a3caa58f3732af857f84786da8f8e4d4bdf0c9df545544947710fd091a3
5
5
  SHA512:
6
- metadata.gz: d93930b9b767845f7e5c32b1eeba46af7d22a2adaeaddb024a0ebfedbfc586fe7a15a8b06a45360a20b14847f6e0d415d497b1f32aa40e0351c30051dc70896e
7
- data.tar.gz: b4619e181f74884f9ead9f2761ec825a9e681585c52ac811773f644cb756ae2cf8560d3a1c8e5d6a892eb50e2c08aa305f5c8c1b68fa1497a96a3de16cb4a315
6
+ metadata.gz: 8a0583b182618ac0c795e166c3e0dd710b76e0f6eb12ead226b6fc0ace886b9e7da79dbb9b085ce12512e5659a5763b1b43250c27ae2f5c27a5474b73f764e8e
7
+ data.tar.gz: c94f1eae18fa3ae31b0c2df0610adee57070264156a3c410291b67ba67a8ee5807d3d54f2571133110973ec0c438b362886ca5ad6c921964f3edd7e5a82773ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-redis_v1beta1
2
2
 
3
+ ### v0.5.0 (2021-05-14)
4
+
5
+ * Regenerated from discovery document revision 20210511
6
+
3
7
  ### v0.4.0 (2021-03-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20210318
@@ -322,6 +322,17 @@ module Google
322
322
  # @return [String]
323
323
  attr_accessor :location_id
324
324
 
325
+ # Maintenance policy for an instance.
326
+ # Corresponds to the JSON property `maintenancePolicy`
327
+ # @return [Google::Apis::RedisV1beta1::MaintenancePolicy]
328
+ attr_accessor :maintenance_policy
329
+
330
+ # Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
331
+ # populated.
332
+ # Corresponds to the JSON property `maintenanceSchedule`
333
+ # @return [Google::Apis::RedisV1beta1::MaintenanceSchedule]
334
+ attr_accessor :maintenance_schedule
335
+
325
336
  # Required. Redis memory size in GiB.
326
337
  # Corresponds to the JSON property `memorySizeGb`
327
338
  # @return [Fixnum]
@@ -421,6 +432,8 @@ module Google
421
432
  @host = args[:host] if args.key?(:host)
422
433
  @labels = args[:labels] if args.key?(:labels)
423
434
  @location_id = args[:location_id] if args.key?(:location_id)
435
+ @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
436
+ @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
424
437
  @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
425
438
  @name = args[:name] if args.key?(:name)
426
439
  @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
@@ -593,6 +606,88 @@ module Google
593
606
  end
594
607
  end
595
608
 
609
+ # Maintenance policy for an instance.
610
+ class MaintenancePolicy
611
+ include Google::Apis::Core::Hashable
612
+
613
+ # Output only. The time when the policy was created.
614
+ # Corresponds to the JSON property `createTime`
615
+ # @return [String]
616
+ attr_accessor :create_time
617
+
618
+ # Optional. Description of what this policy is for. Create/Update methods return
619
+ # INVALID_ARGUMENT if the length is greater than 512.
620
+ # Corresponds to the JSON property `description`
621
+ # @return [String]
622
+ attr_accessor :description
623
+
624
+ # Output only. The time when the policy was last updated.
625
+ # Corresponds to the JSON property `updateTime`
626
+ # @return [String]
627
+ attr_accessor :update_time
628
+
629
+ # Optional. Maintenance window that is applied to resources covered by this
630
+ # policy. Minimum 1. For the current version, the maximum number of
631
+ # weekly_window is expected to be one.
632
+ # Corresponds to the JSON property `weeklyMaintenanceWindow`
633
+ # @return [Array<Google::Apis::RedisV1beta1::WeeklyMaintenanceWindow>]
634
+ attr_accessor :weekly_maintenance_window
635
+
636
+ def initialize(**args)
637
+ update!(**args)
638
+ end
639
+
640
+ # Update properties of this object
641
+ def update!(**args)
642
+ @create_time = args[:create_time] if args.key?(:create_time)
643
+ @description = args[:description] if args.key?(:description)
644
+ @update_time = args[:update_time] if args.key?(:update_time)
645
+ @weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window)
646
+ end
647
+ end
648
+
649
+ # Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
650
+ # populated.
651
+ class MaintenanceSchedule
652
+ include Google::Apis::Core::Hashable
653
+
654
+ # If the scheduled maintenance can be rescheduled, default is true.
655
+ # Corresponds to the JSON property `canReschedule`
656
+ # @return [Boolean]
657
+ attr_accessor :can_reschedule
658
+ alias_method :can_reschedule?, :can_reschedule
659
+
660
+ # Output only. The end time of any upcoming scheduled maintenance for this
661
+ # instance.
662
+ # Corresponds to the JSON property `endTime`
663
+ # @return [String]
664
+ attr_accessor :end_time
665
+
666
+ # Output only. The time deadline any schedule start time cannot go beyond,
667
+ # including reschedule.
668
+ # Corresponds to the JSON property `scheduleDeadlineTime`
669
+ # @return [String]
670
+ attr_accessor :schedule_deadline_time
671
+
672
+ # Output only. The start time of any upcoming scheduled maintenance for this
673
+ # instance.
674
+ # Corresponds to the JSON property `startTime`
675
+ # @return [String]
676
+ attr_accessor :start_time
677
+
678
+ def initialize(**args)
679
+ update!(**args)
680
+ end
681
+
682
+ # Update properties of this object
683
+ def update!(**args)
684
+ @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
685
+ @end_time = args[:end_time] if args.key?(:end_time)
686
+ @schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
687
+ @start_time = args[:start_time] if args.key?(:start_time)
688
+ end
689
+ end
690
+
596
691
  # This resource represents a long-running operation that is the result of a
597
692
  # network API call.
598
693
  class Operation
@@ -678,6 +773,34 @@ module Google
678
773
  end
679
774
  end
680
775
 
776
+ # Request for RescheduleMaintenance.
777
+ class RescheduleMaintenanceRequest
778
+ include Google::Apis::Core::Hashable
779
+
780
+ # Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
781
+ # well.
782
+ # Corresponds to the JSON property `rescheduleType`
783
+ # @return [String]
784
+ attr_accessor :reschedule_type
785
+
786
+ # Optional. Timestamp when the maintenance shall be rescheduled to if
787
+ # reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:
788
+ # 19:00.094Z`.
789
+ # Corresponds to the JSON property `scheduleTime`
790
+ # @return [String]
791
+ attr_accessor :schedule_time
792
+
793
+ def initialize(**args)
794
+ update!(**args)
795
+ end
796
+
797
+ # Update properties of this object
798
+ def update!(**args)
799
+ @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
800
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
801
+ end
802
+ end
803
+
681
804
  # The `Status` type defines a logical error model that is suitable for different
682
805
  # programming environments, including REST APIs and RPC APIs. It is used by [
683
806
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -717,6 +840,47 @@ module Google
717
840
  end
718
841
  end
719
842
 
843
+ # Represents a time of day. The date and time zone are either not significant or
844
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
845
+ # types are google.type.Date and `google.protobuf.Timestamp`.
846
+ class TimeOfDay
847
+ include Google::Apis::Core::Hashable
848
+
849
+ # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
850
+ # allow the value "24:00:00" for scenarios like business closing time.
851
+ # Corresponds to the JSON property `hours`
852
+ # @return [Fixnum]
853
+ attr_accessor :hours
854
+
855
+ # Minutes of hour of day. Must be from 0 to 59.
856
+ # Corresponds to the JSON property `minutes`
857
+ # @return [Fixnum]
858
+ attr_accessor :minutes
859
+
860
+ # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
861
+ # Corresponds to the JSON property `nanos`
862
+ # @return [Fixnum]
863
+ attr_accessor :nanos
864
+
865
+ # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
866
+ # allow the value 60 if it allows leap-seconds.
867
+ # Corresponds to the JSON property `seconds`
868
+ # @return [Fixnum]
869
+ attr_accessor :seconds
870
+
871
+ def initialize(**args)
872
+ update!(**args)
873
+ end
874
+
875
+ # Update properties of this object
876
+ def update!(**args)
877
+ @hours = args[:hours] if args.key?(:hours)
878
+ @minutes = args[:minutes] if args.key?(:minutes)
879
+ @nanos = args[:nanos] if args.key?(:nanos)
880
+ @seconds = args[:seconds] if args.key?(:seconds)
881
+ end
882
+ end
883
+
720
884
  # TlsCertificate Resource
721
885
  class TlsCertificate
722
886
  include Google::Apis::Core::Hashable
@@ -780,6 +944,41 @@ module Google
780
944
  @redis_version = args[:redis_version] if args.key?(:redis_version)
781
945
  end
782
946
  end
947
+
948
+ # Time window in which disruptive maintenance updates occur. Non-disruptive
949
+ # updates can occur inside or outside this window.
950
+ class WeeklyMaintenanceWindow
951
+ include Google::Apis::Core::Hashable
952
+
953
+ # Required. The day of week that maintenance updates occur.
954
+ # Corresponds to the JSON property `day`
955
+ # @return [String]
956
+ attr_accessor :day
957
+
958
+ # Output only. Duration of the maintenance window. The current window is fixed
959
+ # at 3 hours.
960
+ # Corresponds to the JSON property `duration`
961
+ # @return [String]
962
+ attr_accessor :duration
963
+
964
+ # Represents a time of day. The date and time zone are either not significant or
965
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
966
+ # types are google.type.Date and `google.protobuf.Timestamp`.
967
+ # Corresponds to the JSON property `startTime`
968
+ # @return [Google::Apis::RedisV1beta1::TimeOfDay]
969
+ attr_accessor :start_time
970
+
971
+ def initialize(**args)
972
+ update!(**args)
973
+ end
974
+
975
+ # Update properties of this object
976
+ def update!(**args)
977
+ @day = args[:day] if args.key?(:day)
978
+ @duration = args[:duration] if args.key?(:duration)
979
+ @start_time = args[:start_time] if args.key?(:start_time)
980
+ end
981
+ end
783
982
  end
784
983
  end
785
984
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RedisV1beta1
18
18
  # Version of the google-apis-redis_v1beta1 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210318"
25
+ REVISION = "20210511"
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::RedisV1beta1::MaintenancePolicy, decorator: Google::Apis::RedisV1beta1::MaintenancePolicy::Representation
273
+
274
+ property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::RedisV1beta1::MaintenanceSchedule, decorator: Google::Apis::RedisV1beta1::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::RedisV1beta1::WeeklyMaintenanceWindow, decorator: Google::Apis::RedisV1beta1::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::RedisV1beta1::TimeOfDay, decorator: Google::Apis::RedisV1beta1::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 will select a
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::RedisV1beta1::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::RedisV1beta1::Operation] parsed result object
495
+ # @yieldparam err [StandardError] error object if request failed
496
+ #
497
+ # @return [Google::Apis::RedisV1beta1::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, 'v1beta1/{+name}:rescheduleMaintenance', options)
504
+ command.request_representation = Google::Apis::RedisV1beta1::RescheduleMaintenanceRequest::Representation
505
+ command.request_object = reschedule_maintenance_request_object
506
+ command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
507
+ command.response_class = Google::Apis::RedisV1beta1::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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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-03-29 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -53,7 +53,7 @@ licenses:
53
53
  metadata:
54
54
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
55
55
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1beta1/CHANGELOG.md
56
- documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1beta1/v0.4.0
56
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1beta1/v0.5.0
57
57
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1beta1
58
58
  post_install_message:
59
59
  rdoc_options: []
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.2.13
73
+ rubygems_version: 3.2.17
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Simple REST client for Google Cloud Memorystore for Redis API V1beta1