Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of memcache v1 client #8758

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154964,6 +154964,12 @@
"/memcache:v1/GoogleCloudMemcacheV1LocationMetadata": google_cloud_memcache_v1_location_metadata
"/memcache:v1/GoogleCloudMemcacheV1LocationMetadata/availableZones": available_zones
"/memcache:v1/GoogleCloudMemcacheV1LocationMetadata/availableZones/available_zone": available_zone
"/memcache:v1/GoogleCloudMemcacheV1MaintenancePolicy": google_cloud_memcache_v1_maintenance_policy
"/memcache:v1/GoogleCloudMemcacheV1MaintenancePolicy/createTime": create_time
"/memcache:v1/GoogleCloudMemcacheV1MaintenancePolicy/description": description
"/memcache:v1/GoogleCloudMemcacheV1MaintenancePolicy/updateTime": update_time
"/memcache:v1/GoogleCloudMemcacheV1MaintenancePolicy/weeklyMaintenanceWindow": weekly_maintenance_window
"/memcache:v1/GoogleCloudMemcacheV1MaintenancePolicy/weeklyMaintenanceWindow/weekly_maintenance_window": weekly_maintenance_window
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata": google_cloud_memcache_v1_operation_metadata
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/apiVersion": api_version
"/memcache:v1/GoogleCloudMemcacheV1OperationMetadata/cancelRequested": cancel_requested
Expand Down Expand Up @@ -155046,6 +155052,8 @@
"/memcache:v1/Instance/instanceMessages/instance_message": instance_message
"/memcache:v1/Instance/labels": labels
"/memcache:v1/Instance/labels/label": label
"/memcache:v1/Instance/maintenancePolicy": maintenance_policy
"/memcache:v1/Instance/maintenanceSchedule": maintenance_schedule
"/memcache:v1/Instance/memcacheFullVersion": memcache_full_version
"/memcache:v1/Instance/memcacheNodes": memcache_nodes
"/memcache:v1/Instance/memcacheNodes/memcache_node": memcache_node
Expand Down Expand Up @@ -155097,6 +155105,10 @@
"/memcache:v1/MaintenancePolicy/state": state
"/memcache:v1/MaintenancePolicy/updatePolicy": update_policy
"/memcache:v1/MaintenancePolicy/updateTime": update_time
"/memcache:v1/MaintenanceSchedule": maintenance_schedule
"/memcache:v1/MaintenanceSchedule/endTime": end_time
"/memcache:v1/MaintenanceSchedule/scheduleDeadlineTime": schedule_deadline_time
"/memcache:v1/MaintenanceSchedule/startTime": start_time
"/memcache:v1/MaintenanceWindow": maintenance_window
"/memcache:v1/MaintenanceWindow/dailyCycle": daily_cycle
"/memcache:v1/MaintenanceWindow/weeklyCycle": weekly_cycle
Expand Down Expand Up @@ -155172,6 +155184,10 @@
"/memcache:v1/WeeklyCycle": weekly_cycle
"/memcache:v1/WeeklyCycle/schedule": schedule
"/memcache:v1/WeeklyCycle/schedule/schedule": schedule
"/memcache:v1/WeeklyMaintenanceWindow": weekly_maintenance_window
"/memcache:v1/WeeklyMaintenanceWindow/day": day
"/memcache:v1/WeeklyMaintenanceWindow/duration": duration
"/memcache:v1/WeeklyMaintenanceWindow/startTime": start_time
"/memcache:v1/ZoneMetadata": zone_metadata
"/memcache:v1/fields": fields
"/memcache:v1/key": key
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-memcache_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-memcache_v1

### v0.17.0 (2022-03-23)

* Regenerated from discovery document revision 20220317

### v0.16.0 (2022-02-19)

* Regenerated from discovery document revision 20220208
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ def update!(**args)
# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
# following: * A full date, with non-zero year, month, and day values * A month
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
# DateTime * google.protobuf.Timestamp
# following: * A full date, with non-zero year, month, and day values. * A month
# and day, with a zero year (for example, an anniversary). * A year on its own,
# with a zero month and a zero day. * A year and month, with a zero day (for
# example, a credit card expiration date). Related types: * google.type.
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
class Date
include Google::Apis::Core::Hashable

Expand Down Expand Up @@ -139,23 +139,23 @@ class DenyMaintenancePeriod
# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
# following: * A full date, with non-zero year, month, and day values * A month
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
# DateTime * google.protobuf.Timestamp
# following: * A full date, with non-zero year, month, and day values. * A month
# and day, with a zero year (for example, an anniversary). * A year on its own,
# with a zero month and a zero day. * A year and month, with a zero day (for
# example, a credit card expiration date). Related types: * google.type.
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
# Corresponds to the JSON property `endDate`
# @return [Google::Apis::MemcacheV1::Date]
attr_accessor :end_date

# Represents a whole or partial calendar date, such as a birthday. The time of
# day and time zone are either specified elsewhere or are insignificant. The
# date is relative to the Gregorian Calendar. This can represent one of the
# following: * A full date, with non-zero year, month, and day values * A month
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
# DateTime * google.protobuf.Timestamp
# following: * A full date, with non-zero year, month, and day values. * A month
# and day, with a zero year (for example, an anniversary). * A year on its own,
# with a zero month and a zero day. * A year and month, with a zero day (for
# example, a credit card expiration date). Related types: * google.type.
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
# Corresponds to the JSON property `startDate`
# @return [Google::Apis::MemcacheV1::Date]
attr_accessor :start_date
Expand Down Expand Up @@ -217,6 +217,46 @@ def update!(**args)
end
end

# Maintenance policy per instance.
class GoogleCloudMemcacheV1MaintenancePolicy
include Google::Apis::Core::Hashable

# Output only. The time when the policy was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time

# Description of what this policy is for. Create/Update methods return
# INVALID_ARGUMENT if the length is greater than 512.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description

# Output only. The time when the policy was updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time

# Required. Maintenance window that is applied to resources covered by this
# policy. Minimum 1. For the current version, the maximum number of
# weekly_maintenance_windows is expected to be one.
# Corresponds to the JSON property `weeklyMaintenanceWindow`
# @return [Array<Google::Apis::MemcacheV1::WeeklyMaintenanceWindow>]
attr_accessor :weekly_maintenance_window

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@update_time = args[:update_time] if args.key?(:update_time)
@weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window)
end
end

# Represents the metadata of a long-running operation.
class GoogleCloudMemcacheV1OperationMetadata
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -723,6 +763,16 @@ class Instance
# @return [Hash<String,String>]
attr_accessor :labels

# Maintenance policy per instance.
# Corresponds to the JSON property `maintenancePolicy`
# @return [Google::Apis::MemcacheV1::GoogleCloudMemcacheV1MaintenancePolicy]
attr_accessor :maintenance_policy

# Upcoming maintenance schedule.
# Corresponds to the JSON property `maintenanceSchedule`
# @return [Google::Apis::MemcacheV1::MaintenanceSchedule]
attr_accessor :maintenance_schedule

# Output only. The full version of memcached server running on this instance.
# System automatically determines the full memcached version for an instance
# based on the input MemcacheVersion. The full version format will be "memcached-
Expand Down Expand Up @@ -798,6 +848,8 @@ def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@instance_messages = args[:instance_messages] if args.key?(:instance_messages)
@labels = args[:labels] if args.key?(:labels)
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
@maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
@memcache_full_version = args[:memcache_full_version] if args.key?(:memcache_full_version)
@memcache_nodes = args[:memcache_nodes] if args.key?(:memcache_nodes)
@memcache_version = args[:memcache_version] if args.key?(:memcache_version)
Expand Down Expand Up @@ -1051,6 +1103,40 @@ def update!(**args)
end
end

# Upcoming maintenance schedule.
class MaintenanceSchedule
include Google::Apis::Core::Hashable

# Output only. The end time of any upcoming scheduled maintenance for this
# instance.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time

# Output only. The deadline that the maintenance schedule start time can not go
# beyond, including reschedule.
# Corresponds to the JSON property `scheduleDeadlineTime`
# @return [String]
attr_accessor :schedule_deadline_time

# Output only. The start time of any upcoming scheduled maintenance for this
# instance.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
@start_time = args[:start_time] if args.key?(:start_time)
end
end

# MaintenanceWindow definition.
class MaintenanceWindow
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -1492,6 +1578,39 @@ def update!(**args)
end
end

# Time window specified for weekly operations.
class WeeklyMaintenanceWindow
include Google::Apis::Core::Hashable

# Required. Allows to define schedule that runs specified day of the week.
# Corresponds to the JSON property `day`
# @return [String]
attr_accessor :day

# Required. Duration of the time window.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration

# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `startTime`
# @return [Google::Apis::MemcacheV1::TimeOfDay]
attr_accessor :start_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@day = args[:day] if args.key?(:day)
@duration = args[:duration] if args.key?(:duration)
@start_time = args[:start_time] if args.key?(:start_time)
end
end

#
class ZoneMetadata
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module MemcacheV1
# Version of the google-apis-memcache_v1 gem
GEM_VERSION = "0.16.0"
GEM_VERSION = "0.17.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.4.1"

# Revision of the discovery document this client was generated from
REVISION = "20220208"
REVISION = "20220317"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudMemcacheV1MaintenancePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudMemcacheV1OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -172,6 +178,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class MaintenanceSchedule
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class MaintenanceWindow
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -244,6 +256,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class WeeklyMaintenanceWindow
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ZoneMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -308,6 +326,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudMemcacheV1MaintenancePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :update_time, as: 'updateTime'
collection :weekly_maintenance_window, as: 'weeklyMaintenanceWindow', class: Google::Apis::MemcacheV1::WeeklyMaintenanceWindow, decorator: Google::Apis::MemcacheV1::WeeklyMaintenanceWindow::Representation

end
end

class GoogleCloudMemcacheV1OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -430,6 +459,10 @@ class Representation < Google::Apis::Core::JsonRepresentation
collection :instance_messages, as: 'instanceMessages', class: Google::Apis::MemcacheV1::InstanceMessage, decorator: Google::Apis::MemcacheV1::InstanceMessage::Representation

hash :labels, as: 'labels'
property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::MemcacheV1::GoogleCloudMemcacheV1MaintenancePolicy, decorator: Google::Apis::MemcacheV1::GoogleCloudMemcacheV1MaintenancePolicy::Representation

property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::MemcacheV1::MaintenanceSchedule, decorator: Google::Apis::MemcacheV1::MaintenanceSchedule::Representation

property :memcache_full_version, as: 'memcacheFullVersion'
collection :memcache_nodes, as: 'memcacheNodes', class: Google::Apis::MemcacheV1::Node, decorator: Google::Apis::MemcacheV1::Node::Representation

Expand Down Expand Up @@ -515,6 +548,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class MaintenanceSchedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :schedule_deadline_time, as: 'scheduleDeadlineTime'
property :start_time, as: 'startTime'
end
end

class MaintenanceWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -636,6 +678,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class WeeklyMaintenanceWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :duration, as: 'duration'
property :start_time, as: 'startTime', class: Google::Apis::MemcacheV1::TimeOfDay, decorator: Google::Apis::MemcacheV1::TimeOfDay::Representation

end
end

class ZoneMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down