google-apis-redis_v1 0.8.0 → 0.9.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: af955a1e75611ab3757bcf70cb10d0cfd851099df69ee0e7b5f7392d5d7ef171
4
- data.tar.gz: 32c0e948120a38bec21c88188d3727e025bbf7c3184b3552295527827b23cdaa
3
+ metadata.gz: 21de23f1224f805ae82008f624bad089c884089ea6cdba4e1d4b8353b1a1503d
4
+ data.tar.gz: 654acb77cc0325879f2477b72733e698aeea34a5703535798002c3b881e7f934
5
5
  SHA512:
6
- metadata.gz: e5891ec6d997bd91dfab6a509c2a718412b4b28516624c470588bc10b88384be9559fa299cd123bf825d56bb1d449388bb801dc88d9797ec7464a3909bed6c00
7
- data.tar.gz: d0f6ea14bf363d14f0a17067fb640e5981fd4c353eb31c5d7d39a3dd094e839987410b97ded763430d99afbedb21482937f15b54b638d437d267634485614ea1
6
+ metadata.gz: ec0ab4a1a9ceb418e421c1cd69b0cf2e54760c2b5c6f31e4ea16eef8c4e084c0ed1f5f92c6e635693d1ba55f9d1c666a5aab0c42676cdee5c1ec08c4d5392151
7
+ data.tar.gz: 463038c20b4b8f5cc6dad3b4c5f720ede67c219f0bf099f6051fd65f08430d67da60be9276b69c2bcaa4bc2f7092ab3c6656c1fca3b0205c8042c909d982be9d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.9.0 (2021-05-28)
4
+
5
+ * Regenerated from discovery document revision 20210525
6
+
3
7
  ### v0.8.0 (2021-05-19)
4
8
 
5
9
  * Unspecified changes
@@ -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]
@@ -419,6 +430,8 @@ module Google
419
430
  @host = args[:host] if args.key?(:host)
420
431
  @labels = args[:labels] if args.key?(:labels)
421
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)
422
435
  @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
423
436
  @name = args[:name] if args.key?(:name)
424
437
  @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
@@ -591,6 +604,88 @@ module Google
591
604
  end
592
605
  end
593
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
+
594
689
  # This resource represents a long-running operation that is the result of a
595
690
  # network API call.
596
691
  class Operation
@@ -676,6 +771,34 @@ module Google
676
771
  end
677
772
  end
678
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
+
679
802
  # The `Status` type defines a logical error model that is suitable for different
680
803
  # programming environments, including REST APIs and RPC APIs. It is used by [
681
804
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -715,6 +838,47 @@ module Google
715
838
  end
716
839
  end
717
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
+
718
882
  # TlsCertificate Resource
719
883
  class TlsCertificate
720
884
  include Google::Apis::Core::Hashable
@@ -778,6 +942,41 @@ module Google
778
942
  @redis_version = args[:redis_version] if args.key?(:redis_version)
779
943
  end
780
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 3 hours.
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
781
980
  end
782
981
  end
783
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.8.0"
19
+ GEM_VERSION = "0.9.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 = "20210415"
25
+ REVISION = "20210525"
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
@@ -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.8.0
4
+ version: 0.9.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-05-24 00:00:00.000000000 Z
11
+ date: 2021-05-31 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.8.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.9.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: []