From c82f20e74de3e68fb1d8d7e68bef958ba72c3e8a Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 29 Mar 2019 00:37:48 +0000 Subject: [PATCH] Autogenerated update (2019-03-29) Update: - cloudfunctions_v1 - cloudfunctions_v1beta2 - factchecktools_v1alpha1 - redis_v1 - redis_v1beta1 --- api_names_out.yaml | 4 ++ generated/google/apis/cloudfunctions_v1.rb | 2 +- .../google/apis/cloudfunctions_v1/classes.rb | 20 +++++----- .../google/apis/cloudfunctions_v1beta2.rb | 2 +- .../apis/cloudfunctions_v1beta2/classes.rb | 20 +++++----- .../google/apis/factchecktools_v1alpha1.rb | 6 +-- generated/google/apis/redis_v1.rb | 2 +- generated/google/apis/redis_v1/classes.rb | 40 ++++++++++++++----- .../google/apis/redis_v1/representations.rb | 13 ++++++ generated/google/apis/redis_v1/service.rb | 36 +++++++++++++++++ generated/google/apis/redis_v1beta1.rb | 2 +- .../google/apis/redis_v1beta1/classes.rb | 29 +++++++++----- 12 files changed, 128 insertions(+), 48 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index f79a06218..4d2abb79a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -88891,6 +88891,8 @@ "/qpxExpress:v1/quotaUser": quota_user "/qpxExpress:v1/userIp": user_ip "/redis:v1/Empty": empty +"/redis:v1/FailoverInstanceRequest": failover_instance_request +"/redis:v1/FailoverInstanceRequest/dataProtectionMode": data_protection_mode "/redis:v1/GoogleCloudRedisV1LocationMetadata": google_cloud_redis_v1_location_metadata "/redis:v1/GoogleCloudRedisV1LocationMetadata/availableZones": available_zones "/redis:v1/GoogleCloudRedisV1LocationMetadata/availableZones/available_zone": available_zone @@ -88969,6 +88971,8 @@ "/redis:v1/redis.projects.locations.instances.create/parent": parent "/redis:v1/redis.projects.locations.instances.delete": delete_project_location_instance "/redis:v1/redis.projects.locations.instances.delete/name": name +"/redis:v1/redis.projects.locations.instances.failover": failover_instance +"/redis:v1/redis.projects.locations.instances.failover/name": name "/redis:v1/redis.projects.locations.instances.get": get_project_location_instance "/redis:v1/redis.projects.locations.instances.get/name": name "/redis:v1/redis.projects.locations.instances.list": list_project_location_instances diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index b412a7e89..3322b475b 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1 VERSION = 'V1' - REVISION = '20190305' + REVISION = '20190318' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb index 76d7710a2..d10154c10 100644 --- a/generated/google/apis/cloudfunctions_v1/classes.rb +++ b/generated/google/apis/cloudfunctions_v1/classes.rb @@ -787,14 +787,14 @@ module Google attr_accessor :done alias_method :done?, :done - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing @@ -1166,14 +1166,14 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing diff --git a/generated/google/apis/cloudfunctions_v1beta2.rb b/generated/google/apis/cloudfunctions_v1beta2.rb index 93aa51bed..093b02d91 100644 --- a/generated/google/apis/cloudfunctions_v1beta2.rb +++ b/generated/google/apis/cloudfunctions_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1beta2 VERSION = 'V1beta2' - REVISION = '20190214' + REVISION = '20190318' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudfunctions_v1beta2/classes.rb b/generated/google/apis/cloudfunctions_v1beta2/classes.rb index 2798cc182..53e8c6ef2 100644 --- a/generated/google/apis/cloudfunctions_v1beta2/classes.rb +++ b/generated/google/apis/cloudfunctions_v1beta2/classes.rb @@ -573,14 +573,14 @@ module Google attr_accessor :done alias_method :done?, :done - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing @@ -824,14 +824,14 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing diff --git a/generated/google/apis/factchecktools_v1alpha1.rb b/generated/google/apis/factchecktools_v1alpha1.rb index c6a9a7e5b..e2292a16a 100644 --- a/generated/google/apis/factchecktools_v1alpha1.rb +++ b/generated/google/apis/factchecktools_v1alpha1.rb @@ -25,10 +25,10 @@ module Google # @see https://developers.google.com/fact-check/tools/api/ module FactchecktoolsV1alpha1 VERSION = 'V1alpha1' - REVISION = '20190325' + REVISION = '20190328' - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + # View your email address + AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' end end end diff --git a/generated/google/apis/redis_v1.rb b/generated/google/apis/redis_v1.rb index 45e6d6ee3..3f803c2e7 100644 --- a/generated/google/apis/redis_v1.rb +++ b/generated/google/apis/redis_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1 VERSION = 'V1' - REVISION = '20190308' + REVISION = '20190327' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/redis_v1/classes.rb b/generated/google/apis/redis_v1/classes.rb index 9e86714a8..b8001f523 100644 --- a/generated/google/apis/redis_v1/classes.rb +++ b/generated/google/apis/redis_v1/classes.rb @@ -41,6 +41,26 @@ module Google end end + # Request for Failover. + class FailoverInstanceRequest + include Google::Apis::Core::Hashable + + # Optional. Available data protection modes that the user can choose. If it's + # unspecified, data protection mode will be LIMITED_DATA_LOSS by default. + # Corresponds to the JSON property `dataProtectionMode` + # @return [String] + attr_accessor :data_protection_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_protection_mode = args[:data_protection_mode] if args.key?(:data_protection_mode) + end + end + # This location metadata represents additional configuration options for a # given location where a Redis instance may be created. All fields are output # only. It is returned as content of the @@ -435,14 +455,14 @@ module Google attr_accessor :done alias_method :done?, :done - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing @@ -527,14 +547,14 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing diff --git a/generated/google/apis/redis_v1/representations.rb b/generated/google/apis/redis_v1/representations.rb index b137cc85f..662d250c4 100644 --- a/generated/google/apis/redis_v1/representations.rb +++ b/generated/google/apis/redis_v1/representations.rb @@ -28,6 +28,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FailoverInstanceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudRedisV1LocationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,6 +100,13 @@ module Google end end + class FailoverInstanceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_protection_mode, as: 'dataProtectionMode' + end + end + class GoogleCloudRedisV1LocationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/redis_v1/service.rb b/generated/google/apis/redis_v1/service.rb index 9c4ea8b54..74a8dbd5e 100644 --- a/generated/google/apis/redis_v1/service.rb +++ b/generated/google/apis/redis_v1/service.rb @@ -201,6 +201,42 @@ module Google execute_or_queue_command(command, &block) end + # Failover the master role to current replica node against a specific + # STANDARD tier redis instance. + # @param [String] name + # Required. Redis instance resource name using the form: + # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` + # where `location_id` refers to a GCP region + # @param [Google::Apis::RedisV1::FailoverInstanceRequest] failover_instance_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RedisV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def failover_instance(name, failover_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:failover', options) + command.request_representation = Google::Apis::RedisV1::FailoverInstanceRequest::Representation + command.request_object = failover_instance_request_object + command.response_representation = Google::Apis::RedisV1::Operation::Representation + command.response_class = Google::Apis::RedisV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the details of a specific Redis instance. # @param [String] name # Required. Redis instance resource name using the form: diff --git a/generated/google/apis/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb index cd91de3d3..05e2ab79f 100644 --- a/generated/google/apis/redis_v1beta1.rb +++ b/generated/google/apis/redis_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1beta1 VERSION = 'V1beta1' - REVISION = '20190320' + REVISION = '20190327' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/redis_v1beta1/classes.rb b/generated/google/apis/redis_v1beta1/classes.rb index ee0764606..a135e2e6b 100644 --- a/generated/google/apis/redis_v1beta1/classes.rb +++ b/generated/google/apis/redis_v1beta1/classes.rb @@ -222,8 +222,13 @@ module Google # Optional. Redis configuration parameters, according to # http://redis.io/topics/config. Currently, the only supported parameters # are: + # Redis 3.2 and above: # * maxmemory-policy # * notify-keyspace-events + # Redis 4.0 and above: + # * activedefrag + # * lfu-log-factor + # * lfu-decay-time # Corresponds to the JSON property `redisConfigs` # @return [Hash] attr_accessor :redis_configs @@ -231,7 +236,9 @@ module Google # Optional. The version of Redis software. # If not provided, latest supported version will be used. Updating the # version will perform an upgrade/downgrade to the new version. Currently, - # the supported values are `REDIS_3_2` for Redis 3.2. + # the supported values are: + # * `REDIS_4_0` for Redis 4.0 compatibility + # * `REDIS_3_2` for Redis 3.2 compatibility # Corresponds to the JSON property `redisVersion` # @return [String] attr_accessor :redis_version @@ -438,14 +445,14 @@ module Google attr_accessor :done alias_method :done?, :done - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing @@ -530,14 +537,14 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing