google-apis-redis_v1 0.6.0 → 0.11.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: b0c55c0178bd622546ae3aaa6672282e02435295cf9235c931de455b776ea5a4
4
- data.tar.gz: 1fd3ea6d313687fc8e8a4ec898bebed63521f04942c83a21f3a3f6e9160c6bd6
3
+ metadata.gz: 07520ee69534c3569120683428e29a34cad6426c47867c9f36120fec0b990afa
4
+ data.tar.gz: 27c40db9e347c7a63644d2cd1bd88c776d24c5cb5acb37d6ac907ffd7397d3fb
5
5
  SHA512:
6
- metadata.gz: df4e15b2d360c341016c7ad2d84c55955bf98380318a109a3fc2239db0dfb2ffe646b4f9025b1d0a25d3240dedf6a313b6232234705c45a98570eb09022ee1da
7
- data.tar.gz: 6e83bacb03c42cea4813820d9f63b7109b3af266eafe7de9c82222d03c1f5bdc54d5fd08912df24e87227738e67957591a30f6dc47352752773de0a6cf115ff0
6
+ metadata.gz: 96ad0eb1d2899ebf32a17724d2617a687e54aa2b3c928336ccd0de0be51d3e23e053d7b3fc8fcda0a0590fe3b8c51674aaff3a6162f012a1d199d1b09fa87d78
7
+ data.tar.gz: c180671d8cacfac2f7d167f4466d6362d27b0fe73c1775f28ce1100c0b8d9fc410a31b54651eb783edf9cc4974b784183156c9597a45e326d13ab46db305fb5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.11.0 (2021-06-24)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.10.0 (2021-06-17)
8
+
9
+ * Regenerated from discovery document revision 20210615
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.9.0 (2021-05-28)
13
+
14
+ * Regenerated from discovery document revision 20210525
15
+
16
+ ### v0.8.0 (2021-05-19)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.7.0 (2021-04-23)
21
+
22
+ * Regenerated from discovery document revision 20210415
23
+
3
24
  ### v0.6.0 (2021-03-25)
4
25
 
5
26
  * Regenerated from discovery document revision 20210318
@@ -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 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
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.6.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210318"
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 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::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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-redis_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.11.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-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Google Cloud Memorystore for Redis
28
34
  API V1. Simple REST clients are Ruby client libraries that provide access to Google
29
35
  services via their HTTP REST API endpoints. These libraries are generated and updated
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.11.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Google Cloud Memorystore for Redis API V1