Skip to content

Commit 02dde19

Browse files
feat: Automated regeneration of redis v1 client (#4514)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2021-05-28 04:13:41,946 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-redis-v1 nothing to commit, working tree clean 2021-05-28 04:13:42,022 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth redis v1 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth redis v1 git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using rake 13.0.3 Fetching concurrent-ruby 1.1.8 Fetching zeitwerk 2.4.2 Fetching minitest 5.14.4 Fetching public_suffix 4.0.6 Installing zeitwerk 2.4.2 Installing minitest 5.14.4 Installing public_suffix 4.0.6 Fetching ast 2.4.2 Installing concurrent-ruby 1.1.8 Installing ast 2.4.2 Using bundler 2.2.17 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Fetching docile 1.4.0 Installing docile 1.4.0 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Using sync 0.5.0 Fetching thor 1.1.0 Installing thor 1.1.0 Fetching rexml 3.2.5 Fetching declarative 0.0.20 Installing rexml 3.2.5 Installing declarative 0.0.20 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Fetching faraday-em_http 1.0.0 Installing fakefs 0.20.1 Installing faraday-em_http 1.0.0 Fetching faraday-em_synchrony 1.0.0 Fetching faraday-excon 1.1.0 Installing faraday-em_synchrony 1.0.0 Installing faraday-excon 1.1.0 Fetching faraday-net_http 1.0.1 Fetching faraday-net_http_persistent 1.1.0 Installing faraday-net_http 1.0.1 Installing faraday-net_http_persistent 1.1.0 Fetching multipart-post 2.1.1 Fetching ruby2_keywords 0.0.4 Installing ruby2_keywords 0.0.4 Installing multipart-post 2.1.1 Fetching gems 1.2.0 Fetching github-markup 1.7.0 Installing gems 1.2.0 Fetching jwt 2.2.3 Installing github-markup 1.7.0 Installing jwt 2.2.3 Fetching memoist 0.16.2 Fetching multi_json 1.15.0 Installing memoist 0.16.2 Installing multi_json 1.15.0 Fetching os 0.9.6 Fetching httpclient 2.8.3 Installing os 0.9.6 Fetching mini_mime 1.1.0 Installing httpclient 2.8.3 Installing mini_mime 1.1.0 Fetching trailblazer-option 0.1.1 Installing trailblazer-option 0.1.1 Fetching uber 0.1.0 Fetching retriable 3.1.2 Installing uber 0.1.0 Installing retriable 3.1.2 Fetching webrick 1.7.0 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Installing webrick 1.7.0 Fetching mime-types-data 3.2021.0225 Installing mime-types-data 3.2021.0225 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching rspec-support 3.10.2 Fetching little-plugger 1.1.4 Fetching method_source 1.0.0 Installing rspec-support 3.10.2 Installing little-plugger 1.1.4 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Fetching parallel 1.20.1 Installing opencensus 0.5.0 Installing parallel 1.20.1 Fetching powerpack 0.1.3 Fetching yard 0.9.26 Installing powerpack 0.1.3 Installing yard 0.9.26 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.1 Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Installing ruby-progressbar 1.11.0 Installing unicode-display_width 1.7.0 Fetching parser 2.7.2.0 Fetching addressable 2.7.0 Installing addressable 2.7.0 Installing parser 2.7.2.0 Fetching i18n 1.8.10 Installing i18n 1.8.10 Fetching tzinfo 2.0.4 Fetching tins 1.29.1 Installing tzinfo 2.0.4 Fetching crack 0.4.5 Installing tins 1.29.1 Installing crack 0.4.5 Fetching faraday 1.4.2 Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Installing faraday 1.4.2 Fetching representable 3.1.1 Installing representable 3.1.1 Fetching mime-types 3.3.1 Fetching logging 2.3.0 Installing mime-types 3.3.1 Installing logging 2.3.0 Fetching pry 0.13.1 Fetching rspec-core 3.10.1 Installing pry 0.13.1 Installing rspec-core 3.10.1 Fetching rspec-expectations 3.10.1 Installing rspec-expectations 3.10.1 Fetching rspec-mocks 3.10.2 Fetching simplecov 0.16.1 Fetching launchy 2.5.0 Installing rspec-mocks 3.10.2 Installing simplecov 0.16.1 Installing launchy 2.5.0 Fetching rubocop 0.49.1 Fetching webmock 2.3.2 Fetching activesupport 6.1.3.2 Installing webmock 2.3.2 Installing rubocop 0.49.1 Installing activesupport 6.1.3.2 Fetching signet 0.15.0 Fetching term-ansicolor 1.7.1 Installing signet 0.15.0 Installing term-ansicolor 1.7.1 Fetching httparty 0.18.1 Fetching pry-byebug 3.9.0 Installing httparty 0.18.1 Installing pry-byebug 3.9.0 Fetching pry-doc 0.13.5 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching googleauth 0.16.2 Installing googleauth 0.16.2 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching google-apis-core 0.3.0 Installing pry-doc 0.13.5 Installing google-apis-core 0.3.0 Fetching google-apis-discovery_v1 0.4.0 Installing google-apis-discovery_v1 0.4.0 Using google-apis-generator 0.2.0 from source at `.` and installing its executables Bundle complete! 25 Gemfile dependencies, 86 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=redis.v1 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading redis, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/redis.v1.json conflict google-apis-redis_v1/lib/google/apis/redis_v1/classes.rb <edis_v1/classes.rb? (enter "h" for help) [Ynaqdhm] a force google-apis-redis_v1/lib/google/apis/redis_v1/classes.rb conflict google-apis-redis_v1/lib/google/apis/redis_v1/representations.rb force google-apis-redis_v1/lib/google/apis/redis_v1/representations.rb conflict google-apis-redis_v1/lib/google/apis/redis_v1/service.rb force google-apis-redis_v1/lib/google/apis/redis_v1/service.rb conflict google-apis-redis_v1/lib/google/apis/redis_v1/gem_version.rb force google-apis-redis_v1/lib/google/apis/redis_v1/gem_version.rb conflict google-apis-redis_v1/CHANGELOG.md force google-apis-redis_v1/CHANGELOG.md Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using rake 13.0.3 Using public_suffix 4.0.6 Using bundler 2.2.17 Using declarative 0.0.20 Using diff-lcs 1.4.4 Using faraday-em_http 1.0.0 Using faraday-em_synchrony 1.0.0 Using faraday-excon 1.1.0 Using faraday-net_http 1.0.1 Using faraday-net_http_persistent 1.1.0 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.4 Using jwt 2.2.3 Using memoist 0.16.2 Using multi_json 1.15.0 Fetching os 1.1.1 Using httpclient 2.8.3 Using mini_mime 1.1.0 Using trailblazer-option 0.1.1 Using uber 0.1.0 Using retriable 3.1.2 Using rexml 3.2.5 Using webrick 1.7.0 Using opencensus 0.5.0 Using redcarpet 3.5.1 Using yard 0.9.26 Using addressable 2.7.0 Using representable 3.1.1 Using rspec-support 3.10.2 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.2 Using faraday 1.4.2 Using rspec 3.10.0 Using signet 0.15.0 Installing os 1.1.1 Using googleauth 0.16.2 Using google-apis-core 0.3.0 Using google-apis-redis_v1 0.9.0 from source at `.` Bundle complete! 8 Gemfile dependencies, 38 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.7/bin/ruby -I/root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.2/lib /root/.rbenv/versions/2.6.7/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::RedisV1 should load Finished in 0.31449 seconds (files took 0.09831 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 27 ( 0 undocumented) Constants: 5 ( 0 undocumented) Attributes: 70 ( 0 undocumented) Methods: 70 ( 0 undocumented) 99.43% documented google-apis-redis_v1 0.9.0 built to pkg/google-apis-redis_v1-0.9.0.gem. conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml chown -R 1000:1000 /workspace/generated 2021-05-28 04:14:06,719 synthtool [DEBUG] > Wrote metadata to generated/google-apis-redis_v1/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-redis_v1/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/ed48cb7b-6916-4a42-a919-37bc66e39ac7/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
1 parent b640b6d commit 02dde19

File tree

7 files changed

+351
-3
lines changed

7 files changed

+351
-3
lines changed

api_names_out.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151761,6 +151761,8 @@
151761151761
"/redis:v1/Instance/labels": labels
151762151762
"/redis:v1/Instance/labels/label": label
151763151763
"/redis:v1/Instance/locationId": location_id
151764+
"/redis:v1/Instance/maintenancePolicy": maintenance_policy
151765+
"/redis:v1/Instance/maintenanceSchedule": maintenance_schedule
151764151766
"/redis:v1/Instance/memorySizeGb": memory_size_gb
151765151767
"/redis:v1/Instance/name": name
151766151768
"/redis:v1/Instance/persistenceIamIdentity": persistence_iam_identity
@@ -151799,6 +151801,17 @@
151799151801
"/redis:v1/Location/metadata": metadata
151800151802
"/redis:v1/Location/metadata/metadatum": metadatum
151801151803
"/redis:v1/Location/name": name
151804+
"/redis:v1/MaintenancePolicy": maintenance_policy
151805+
"/redis:v1/MaintenancePolicy/createTime": create_time
151806+
"/redis:v1/MaintenancePolicy/description": description
151807+
"/redis:v1/MaintenancePolicy/updateTime": update_time
151808+
"/redis:v1/MaintenancePolicy/weeklyMaintenanceWindow": weekly_maintenance_window
151809+
"/redis:v1/MaintenancePolicy/weeklyMaintenanceWindow/weekly_maintenance_window": weekly_maintenance_window
151810+
"/redis:v1/MaintenanceSchedule": maintenance_schedule
151811+
"/redis:v1/MaintenanceSchedule/canReschedule": can_reschedule
151812+
"/redis:v1/MaintenanceSchedule/endTime": end_time
151813+
"/redis:v1/MaintenanceSchedule/scheduleDeadlineTime": schedule_deadline_time
151814+
"/redis:v1/MaintenanceSchedule/startTime": start_time
151802151815
"/redis:v1/Operation": operation
151803151816
"/redis:v1/Operation/done": done
151804151817
"/redis:v1/Operation/error": error
@@ -151809,12 +151822,20 @@
151809151822
"/redis:v1/Operation/response/response": response
151810151823
"/redis:v1/OutputConfig": output_config
151811151824
"/redis:v1/OutputConfig/gcsDestination": gcs_destination
151825+
"/redis:v1/RescheduleMaintenanceRequest": reschedule_maintenance_request
151826+
"/redis:v1/RescheduleMaintenanceRequest/rescheduleType": reschedule_type
151827+
"/redis:v1/RescheduleMaintenanceRequest/scheduleTime": schedule_time
151812151828
"/redis:v1/Status": status
151813151829
"/redis:v1/Status/code": code
151814151830
"/redis:v1/Status/details": details
151815151831
"/redis:v1/Status/details/detail": detail
151816151832
"/redis:v1/Status/details/detail/detail": detail
151817151833
"/redis:v1/Status/message": message
151834+
"/redis:v1/TimeOfDay": time_of_day
151835+
"/redis:v1/TimeOfDay/hours": hours
151836+
"/redis:v1/TimeOfDay/minutes": minutes
151837+
"/redis:v1/TimeOfDay/nanos": nanos
151838+
"/redis:v1/TimeOfDay/seconds": seconds
151818151839
"/redis:v1/TlsCertificate": tls_certificate
151819151840
"/redis:v1/TlsCertificate/cert": cert
151820151841
"/redis:v1/TlsCertificate/createTime": create_time
@@ -151823,6 +151844,10 @@
151823151844
"/redis:v1/TlsCertificate/sha1Fingerprint": sha1_fingerprint
151824151845
"/redis:v1/UpgradeInstanceRequest": upgrade_instance_request
151825151846
"/redis:v1/UpgradeInstanceRequest/redisVersion": redis_version
151847+
"/redis:v1/WeeklyMaintenanceWindow": weekly_maintenance_window
151848+
"/redis:v1/WeeklyMaintenanceWindow/day": day
151849+
"/redis:v1/WeeklyMaintenanceWindow/duration": duration
151850+
"/redis:v1/WeeklyMaintenanceWindow/startTime": start_time
151826151851
"/redis:v1/fields": fields
151827151852
"/redis:v1/key": key
151828151853
"/redis:v1/quotaUser": quota_user
@@ -151850,6 +151875,8 @@
151850151875
"/redis:v1/redis.projects.locations.instances.patch": patch_project_location_instance
151851151876
"/redis:v1/redis.projects.locations.instances.patch/name": name
151852151877
"/redis:v1/redis.projects.locations.instances.patch/updateMask": update_mask
151878+
"/redis:v1/redis.projects.locations.instances.rescheduleMaintenance": reschedule_instance_maintenance
151879+
"/redis:v1/redis.projects.locations.instances.rescheduleMaintenance/name": name
151853151880
"/redis:v1/redis.projects.locations.instances.upgrade": upgrade_instance
151854151881
"/redis:v1/redis.projects.locations.instances.upgrade/name": name
151855151882
"/redis:v1/redis.projects.locations.list": list_project_locations

generated/google-apis-redis_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-redis_v1
22

3+
### v0.9.0 (2021-05-28)
4+
5+
* Regenerated from discovery document revision 20210525
6+
37
### v0.8.0 (2021-05-19)
48

59
* Unspecified changes

generated/google-apis-redis_v1/lib/google/apis/redis_v1/classes.rb

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,17 @@ class Instance
319319
# @return [String]
320320
attr_accessor :location_id
321321

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+
322333
# Required. Redis memory size in GiB.
323334
# Corresponds to the JSON property `memorySizeGb`
324335
# @return [Fixnum]
@@ -419,6 +430,8 @@ def update!(**args)
419430
@host = args[:host] if args.key?(:host)
420431
@labels = args[:labels] if args.key?(:labels)
421432
@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)
422435
@memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
423436
@name = args[:name] if args.key?(:name)
424437
@persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
@@ -591,6 +604,88 @@ def update!(**args)
591604
end
592605
end
593606

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+
594689
# This resource represents a long-running operation that is the result of a
595690
# network API call.
596691
class Operation
@@ -676,6 +771,34 @@ def update!(**args)
676771
end
677772
end
678773

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+
679802
# The `Status` type defines a logical error model that is suitable for different
680803
# programming environments, including REST APIs and RPC APIs. It is used by [
681804
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -715,6 +838,47 @@ def update!(**args)
715838
end
716839
end
717840

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+
718882
# TlsCertificate Resource
719883
class TlsCertificate
720884
include Google::Apis::Core::Hashable
@@ -778,6 +942,41 @@ def update!(**args)
778942
@redis_version = args[:redis_version] if args.key?(:redis_version)
779943
end
780944
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
781980
end
782981
end
783982
end

generated/google-apis-redis_v1/lib/google/apis/redis_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RedisV1
1818
# Version of the google-apis-redis_v1 gem
19-
GEM_VERSION = "0.8.0"
19+
GEM_VERSION = "0.9.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.2.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20210415"
25+
REVISION = "20210525"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)