diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb
index 52de77e46..7411482eb 100644
--- a/generated/google/apis/cloudbuild_v1.rb
+++ b/generated/google/apis/cloudbuild_v1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1
VERSION = 'V1'
- REVISION = '20190531'
+ REVISION = '20190622'
# 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb
index 78bc9984a..42e6631bd 100644
--- a/generated/google/apis/cloudbuild_v1/classes.rb
+++ b/generated/google/apis/cloudbuild_v1/classes.rb
@@ -743,20 +743,6 @@ module Google
end
end
- # A CheckSuiteFilter is a filter that indicates that we should build on all
- # check suite events.
- class CheckSuiteFilter
- include Google::Apis::Core::Hashable
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- end
- end
-
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
@@ -802,13 +788,7 @@ module Google
class GitHubEventsConfig
include Google::Apis::Core::Hashable
- # A CheckSuiteFilter is a filter that indicates that we should build on all
- # check suite events.
- # Corresponds to the JSON property `checkSuite`
- # @return [Google::Apis::CloudbuildV1::CheckSuiteFilter]
- attr_accessor :check_suite
-
- # The installationID that emmits the GitHub event.
+ # The installationID that emits the GitHub event.
# Corresponds to the JSON property `installationId`
# @return [Fixnum]
attr_accessor :installation_id
@@ -840,7 +820,6 @@ module Google
# Update properties of this object
def update!(**args)
- @check_suite = args[:check_suite] if args.key?(:check_suite)
@installation_id = args[:installation_id] if args.key?(:installation_id)
@name = args[:name] if args.key?(:name)
@owner = args[:owner] if args.key?(:owner)
diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb
index 31745d6ae..1e786f830 100644
--- a/generated/google/apis/cloudbuild_v1/representations.rb
+++ b/generated/google/apis/cloudbuild_v1/representations.rb
@@ -88,12 +88,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
- class CheckSuiteFilter
- class Representation < Google::Apis::Core::JsonRepresentation; end
-
- include Google::Apis::Core::JsonObjectSupport
- end
-
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -369,12 +363,6 @@ module Google
end
end
- class CheckSuiteFilter
- # @private
- class Representation < Google::Apis::Core::JsonRepresentation
- end
- end
-
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -392,8 +380,6 @@ module Google
class GitHubEventsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
- property :check_suite, as: 'checkSuite', class: Google::Apis::CloudbuildV1::CheckSuiteFilter, decorator: Google::Apis::CloudbuildV1::CheckSuiteFilter::Representation
-
property :installation_id, :numeric_string => true, as: 'installationId'
property :name, as: 'name'
property :owner, as: 'owner'
diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb
index 252bb3e9a..7944dcd42 100644
--- a/generated/google/apis/cloudsearch_v1.rb
+++ b/generated/google/apis/cloudsearch_v1.rb
@@ -23,10 +23,10 @@ module Google
# Cloud Search provides cloud-based search capabilities over G Suite data. The
# Cloud Search API allows indexing of non-G Suite data into Cloud Search.
#
- # @see https://gsuite.google.com/products/cloud-search/
+ # @see https://developers.google.com/cloud-search/docs/guides/
module CloudsearchV1
VERSION = 'V1'
- REVISION = '20190606'
+ REVISION = '20190613'
# Index and serve your organization's data with Cloud Search
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
diff --git a/generated/google/apis/cloudsearch_v1/service.rb b/generated/google/apis/cloudsearch_v1/service.rb
index 7c916ee4a..c5fae5bc6 100644
--- a/generated/google/apis/cloudsearch_v1/service.rb
+++ b/generated/google/apis/cloudsearch_v1/service.rb
@@ -31,7 +31,7 @@ module Google
# Cloudsearch = Google::Apis::CloudsearchV1 # Alias the module
# service = Cloudsearch::CloudSearchService.new
#
- # @see https://gsuite.google.com/products/cloud-search/
+ # @see https://developers.google.com/cloud-search/docs/guides/
class CloudSearchService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
diff --git a/generated/google/apis/firebase_v1beta1.rb b/generated/google/apis/firebase_v1beta1.rb
index 3d613595d..54b2e3d55 100644
--- a/generated/google/apis/firebase_v1beta1.rb
+++ b/generated/google/apis/firebase_v1beta1.rb
@@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com
module FirebaseV1beta1
VERSION = 'V1beta1'
- REVISION = '20190618'
+ REVISION = '20190620'
# 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/firebase_v1beta1/classes.rb b/generated/google/apis/firebase_v1beta1/classes.rb
index 25bb2b647..15906653c 100644
--- a/generated/google/apis/firebase_v1beta1/classes.rb
+++ b/generated/google/apis/firebase_v1beta1/classes.rb
@@ -26,12 +26,14 @@ module Google
class AddFirebaseRequest
include Google::Apis::Core::Hashable
- # Deprecated. Instead, call FinalizeDefaultLocation after you add
- # Firebase services to your project.
+ # Deprecated. Instead, to set your project's default GCP resource location,
+ # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize)
+ # after you add Firebase services to your project.
#
- #
The ID of the project's Cloud resource location. The location should be
- # one of the AppEngine locations defined here:
- # https://cloud.google.com/appengine/docs/locations
+ #
The ID of the project's default GCP resource location. The location
+ # must be one of the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@@ -72,9 +74,14 @@ module Google
# @return [String]
attr_accessor :database_url
- # The default resource location of other Firebase resources
- # (such as Cloud Firestore).
- #
For examples, see https://cloud.google.com/appengine/docs/locations.
+ # The ID of the project's default GCP resource location. The location is one
+ # of the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ #
This field is omitted if the default GCP resource location has not been
+ # finalized yet. To set your project's default GCP resource location,
+ # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize)
+ # after you add Firebase services to your project.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@@ -197,10 +204,14 @@ module Google
# @return [String]
attr_accessor :hosting_site
- # The default resource location of other Firebase resources, such as
- # Cloud Firestore. This field is omitted if the default resource location has
- # not been finalized yet.
- #
For examples, see https://cloud.google.com/appengine/docs/locations.
+ # The ID of the project's default GCP resource location. The location is one
+ # of the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ #
This field is omitted if the default GCP resource location has not been
+ # finalized yet. To set your project's default GCP resource location,
+ # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize)
+ # after you add Firebase services to your project.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@@ -221,8 +232,7 @@ module Google
attr_accessor :realtime_database_instance
# The default Cloud Storage for Firebase storage bucket, in the format:
- #
projectId.appspot.com
. This field is omitted
- # if the default resource location has not been finalized yet.
+ #
projectId.appspot.com
# Corresponds to the JSON property `storageBucket`
# @return [String]
attr_accessor :storage_bucket
@@ -259,6 +269,28 @@ module Google
end
end
+ #
+ class FinalizeDefaultLocationRequest
+ include Google::Apis::Core::Hashable
+
+ # The ID of the default GCP resource location for the Project. The location
+ # must be one of the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ # Corresponds to the JSON property `locationId`
+ # @return [String]
+ attr_accessor :location_id
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @location_id = args[:location_id] if args.key?(:location_id)
+ end
+ end
+
# A high-level summary of an App.
class FirebaseAppInfo
include Google::Apis::Core::Hashable
@@ -476,6 +508,38 @@ module Google
end
end
+ #
+ class ListAvailableLocationsResponse
+ include Google::Apis::Core::Hashable
+
+ # One page of results from a call to `ListAvailableLocations`.
+ # Corresponds to the JSON property `locations`
+ # @return [Array]
+ attr_accessor :locations
+
+ # If the result list is too large to fit in a single response, then a token
+ # is returned. If the string is empty, then this response is the last page of
+ # results and all available locations have been listed.
+ #
+ #
This token can be used in a subsequent call to
+ # `ListAvailableLocations` to find more locations.
+ #
+ #
Page tokens are short-lived and should not be persisted.
+ # Corresponds to the JSON property `nextPageToken`
+ # @return [String]
+ attr_accessor :next_page_token
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @locations = args[:locations] if args.key?(:locations)
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
+ end
+ end
+
#
class ListAvailableProjectsResponse
include Google::Apis::Core::Hashable
@@ -623,6 +687,28 @@ module Google
end
end
+ # A GCP resource location that can be selected for a Project.
+ class Location
+ include Google::Apis::Core::Hashable
+
+ # The ID of the default GCP resource location. It must be one of the
+ # available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ # Corresponds to the JSON property `locationId`
+ # @return [String]
+ attr_accessor :location_id
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @location_id = args[:location_id] if args.key?(:location_id)
+ end
+ end
+
# This is proto2's version of MessageSet.
class MessageSet
include Google::Apis::Core::Hashable
@@ -710,13 +796,15 @@ module Google
# @return [String]
attr_accessor :display_name
- # The default resource location of other Firebase resources
- # (such as Cloud Firestore).
- #
Not all projects will have this field populated. If it is
- # not populated, it means that the project is not yet associated with any
- # region. Consequently, a call to AddFirebase must provide a location
- # in this case.
- #
For examples, see https://cloud.google.com/appengine/docs/locations.
+ # The ID of the project's default GCP resource location. The location is one
+ # of the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ # Not all projects will have this field populated. If it is not populated, it
+ # means that the project does not yet have a default GCP resource location.
+ # To set your project's default GCP resource location, call
+ # [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you
+ # add Firebase services to your project.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@@ -1019,9 +1107,14 @@ module Google
# @return [String]
attr_accessor :database_url
- # The default resource location of other Firebase resources
- # (such as Cloud Firestore).
- #
For examples, see https://cloud.google.com/appengine/docs/locations.
+ # The ID of the project's default GCP resource location. The location is one
+ # of the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ #
This field is omitted if the default GCP resource location has not been
+ # finalized yet. To set your project's default GCP resource location,
+ # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize)
+ # after you add Firebase services to your project.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
diff --git a/generated/google/apis/firebase_v1beta1/representations.rb b/generated/google/apis/firebase_v1beta1/representations.rb
index 98ae942fb..cf83ad1c7 100644
--- a/generated/google/apis/firebase_v1beta1/representations.rb
+++ b/generated/google/apis/firebase_v1beta1/representations.rb
@@ -58,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class FinalizeDefaultLocationRequest
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class FirebaseAppInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -88,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class ListAvailableLocationsResponse
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class ListAvailableProjectsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -118,6 +130,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
+ class Location
+ class Representation < Google::Apis::Core::JsonRepresentation; end
+
+ include Google::Apis::Core::JsonObjectSupport
+ end
+
class MessageSet
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -232,6 +250,13 @@ module Google
end
end
+ class FinalizeDefaultLocationRequest
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :location_id, as: 'locationId'
+ end
+ end
+
class FirebaseAppInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -283,6 +308,15 @@ module Google
end
end
+ class ListAvailableLocationsResponse
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ collection :locations, as: 'locations', class: Google::Apis::FirebaseV1beta1::Location, decorator: Google::Apis::FirebaseV1beta1::Location::Representation
+
+ property :next_page_token, as: 'nextPageToken'
+ end
+ end
+
class ListAvailableProjectsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -327,6 +361,13 @@ module Google
end
end
+ class Location
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :location_id, as: 'locationId'
+ end
+ end
+
class MessageSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/firebase_v1beta1/service.rb b/generated/google/apis/firebase_v1beta1/service.rb
index 084ce434c..d9acee543 100644
--- a/generated/google/apis/firebase_v1beta1/service.rb
+++ b/generated/google/apis/firebase_v1beta1/service.rb
@@ -709,6 +709,145 @@ module Google
execute_or_queue_command(command, &block)
end
+ # Returns a list of valid Google Cloud Platform (GCP) resource locations for
+ # the specified Project (including a FirebaseProject).
+ #
+ #
The default GCP resource location of a project defines the geographical
+ # location where project resources, such as Cloud Firestore, will be
+ # provisioned by default.
+ #
+ #
The returned list are the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ #
This call checks for any location restrictions for the specified
+ # Project and, thus, might return a subset of all possible GCP resource
+ # locations. To list all GCP resource locations (regardless of any
+ # restrictions), call the endpoint without specifying a `projectId` (that is,
+ # `/v1beta1/`parent=projects/-`/listAvailableLocations`).
+ #
+ #
To call `ListAvailableLocations` with a specified project, a member
+ # must be at minimum a Viewer of the project. Calls without a specified
+ # project do not require any specific project permissions.
+ # @param [String] parent
+ # The Project for which to list GCP resource locations, in the format:
+ #
projects/projectId
+ #
If no project is specified (that is, `projects/-`), the returned list
+ # does not take into account org-specific or project-specific location
+ # restrictions.
+ # @param [Fixnum] page_size
+ # The maximum number of locations to return in the response.
+ #
+ #
The server may return fewer than this value at its discretion.
+ # If no value is specified (or too large a value is specified), then the
+ # server will impose its own limit.
+ #
+ #
This value cannot be negative.
+ # @param [String] page_token
+ # Token returned from a previous call to `ListAvailableLocations` indicating
+ # where in the list of locations to resume listing.
+ # @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::FirebaseV1beta1::ListAvailableLocationsResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::FirebaseV1beta1::ListAvailableLocationsResponse]
+ #
+ # @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 list_project_available_locations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1beta1/{+parent}/availableLocations', options)
+ command.response_representation = Google::Apis::FirebaseV1beta1::ListAvailableLocationsResponse::Representation
+ command.response_class = Google::Apis::FirebaseV1beta1::ListAvailableLocationsResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Sets the default Google Cloud Platform (GCP) resource location for the
+ # specified FirebaseProject.
+ #
+ #
This method creates an App Engine application with a
+ # [default Cloud Storage
+ # bucket](https://cloud.google.com/appengine/docs/standard/python/
+ # googlecloudstorageclient/setting-up-cloud-storage#
+ # activating_a_cloud_storage_bucket),
+ # located in the specified
+ # [`location_id`](#body.request_body.FIELDS.location_id).
+ # This location must be one of the available
+ # [GCP resource
+ # locations](https://firebase.google.com/docs/projects/locations).
+ #
After the default GCP resource location is finalized, or if it was
+ # already set, it cannot be changed. The default GCP resource location for
+ # the specified FirebaseProject might already be set because either the
+ # GCP `Project` already has an App Engine application or
+ # `FinalizeDefaultLocation` was previously called with a specified
+ # `location_id`. Any new calls to `FinalizeDefaultLocation` with a
+ # different specified `location_id` will return a 409 error.
+ #
+ #
The result of this call is an [`Operation`](../../v1beta1/operations),
+ # which can be used to track the provisioning process. The
+ # [`response`](../../v1beta1/operations#Operation.FIELDS.response) type of
+ # the `Operation` is google.protobuf.Empty.
+ #
+ #
The `Operation` can be polled by its `name` using
+ # GetOperation until `done` is
+ # true. When `done` is true, the `Operation` has either succeeded or failed.
+ # If the `Operation` has succeeded, its
+ # [`response`](../../v1beta1/operations#Operation.FIELDS.response) will be
+ # set to a google.protobuf.Empty; if the `Operation` has failed, its
+ # `error` will be set to a google.rpc.Status. The `Operation` is
+ # automatically deleted after completion, so there is no need to call
+ # DeleteOperation.
+ #
+ #
All fields listed in the [request body](#request-body) are required.
+ #
+ #
To call `FinalizeDefaultLocation`, a member must be an Owner
+ # of the project.
+ # @param [String] parent
+ # The resource name of the Project for which the default GCP resource
+ # location will be set, in the format:
+ #
projects/projectId
+ # @param [Google::Apis::FirebaseV1beta1::FinalizeDefaultLocationRequest] finalize_default_location_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::FirebaseV1beta1::Operation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::FirebaseV1beta1::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 finalize_default_location(parent, finalize_default_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1beta1/{+parent}/defaultLocation:finalize', options)
+ command.request_representation = Google::Apis::FirebaseV1beta1::FinalizeDefaultLocationRequest::Representation
+ command.request_object = finalize_default_location_request_object
+ command.response_representation = Google::Apis::FirebaseV1beta1::Operation::Representation
+ command.response_class = Google::Apis::FirebaseV1beta1::Operation
+ command.params['parent'] = parent unless parent.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Requests that a new IosApp be created.
#
#
The result of this call is an `Operation` which can be used to track
diff --git a/generated/google/apis/redis_v1.rb b/generated/google/apis/redis_v1.rb
index b135f53bf..c846c8cc5 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 = '20190607'
+ REVISION = '20190620'
# 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 946eba9b5..ed55dca3b 100644
--- a/generated/google/apis/redis_v1/classes.rb
+++ b/generated/google/apis/redis_v1/classes.rb
@@ -344,8 +344,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
@@ -353,7 +358,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 (default)
+ # * `REDIS_3_2` for Redis 3.2 compatibility
# Corresponds to the JSON property `redisVersion`
# @return [String]
attr_accessor :redis_version
diff --git a/generated/google/apis/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb
index a74715013..905a874e2 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 = '20190607'
+ REVISION = '20190620'
# 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 2c89d0e96..81a326d8a 100644
--- a/generated/google/apis/redis_v1beta1/classes.rb
+++ b/generated/google/apis/redis_v1beta1/classes.rb
@@ -60,6 +60,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
+
# The Cloud Storage location for the output content
class GcsDestination
include Google::Apis::Core::Hashable
@@ -342,8 +362,8 @@ module Google
# 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_4_0` for Redis 4.0 compatibility
- # * `REDIS_3_2` for Redis 3.2 compatibility (default)
+ # * `REDIS_4_0` for Redis 4.0 compatibility (default)
+ # * `REDIS_3_2` for Redis 3.2 compatibility
# Corresponds to the JSON property `redisVersion`
# @return [String]
attr_accessor :redis_version
diff --git a/generated/google/apis/redis_v1beta1/representations.rb b/generated/google/apis/redis_v1beta1/representations.rb
index a24b403ae..15faf5597 100644
--- a/generated/google/apis/redis_v1beta1/representations.rb
+++ b/generated/google/apis/redis_v1beta1/representations.rb
@@ -34,6 +34,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 GcsDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -138,6 +144,13 @@ module Google
end
end
+ class FailoverInstanceRequest
+ # @private
+ class Representation < Google::Apis::Core::JsonRepresentation
+ property :data_protection_mode, as: 'dataProtectionMode'
+ end
+ end
+
class GcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
diff --git a/generated/google/apis/redis_v1beta1/service.rb b/generated/google/apis/redis_v1beta1/service.rb
index 35c9d05eb..be0c6291f 100644
--- a/generated/google/apis/redis_v1beta1/service.rb
+++ b/generated/google/apis/redis_v1beta1/service.rb
@@ -239,6 +239,42 @@ module Google
execute_or_queue_command(command, &block)
end
+ # Initiates a failover of the master node to current replica node for a
+ # specific STANDARD tier Cloud Memorystore for 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::RedisV1beta1::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::RedisV1beta1::Operation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RedisV1beta1::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, 'v1beta1/{+name}:failover', options)
+ command.request_representation = Google::Apis::RedisV1beta1::FailoverInstanceRequest::Representation
+ command.request_object = failover_instance_request_object
+ command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
+ command.response_class = Google::Apis::RedisV1beta1::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/texttospeech_v1beta1.rb b/generated/google/apis/texttospeech_v1beta1.rb
index cf09da8b8..83afa5cae 100644
--- a/generated/google/apis/texttospeech_v1beta1.rb
+++ b/generated/google/apis/texttospeech_v1beta1.rb
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/text-to-speech/
module TexttospeechV1beta1
VERSION = 'V1beta1'
- REVISION = '20190614'
+ REVISION = '20190621'
# 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/texttospeech_v1beta1/classes.rb b/generated/google/apis/texttospeech_v1beta1/classes.rb
index 90ca0333b..4da0f95d2 100644
--- a/generated/google/apis/texttospeech_v1beta1/classes.rb
+++ b/generated/google/apis/texttospeech_v1beta1/classes.rb
@@ -34,9 +34,9 @@ module Google
# Input only. Optional. An identifier which selects 'audio effects' profiles
# that are applied on (post synthesized) text to speech. Effects are applied
# on top of each other in the order they are given. See
- # [audio-profiles](https:
- # //cloud.google.com/text-to-speech/docs/audio-profiles)
- # for current supported profile ids.
+ # [audio
+ # profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+ # current supported profile ids.
# Corresponds to the JSON property `effectsProfileId`
# @return [Array]
attr_accessor :effects_profile_id
diff --git a/generated/google/apis/videointelligence_v1beta2.rb b/generated/google/apis/videointelligence_v1beta2.rb
index a72f17512..59a10d913 100644
--- a/generated/google/apis/videointelligence_v1beta2.rb
+++ b/generated/google/apis/videointelligence_v1beta2.rb
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1beta2
VERSION = 'V1beta2'
- REVISION = '20190603'
+ REVISION = '20190618'
# 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/videointelligence_v1beta2/classes.rb b/generated/google/apis/videointelligence_v1beta2/classes.rb
index b2d7fd628..305fd6105 100644
--- a/generated/google/apis/videointelligence_v1beta2/classes.rb
+++ b/generated/google/apis/videointelligence_v1beta2/classes.rb
@@ -417,11 +417,11 @@ module Google
class GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
- # The confidence estimate between 0.0 and 1.0. A higher number
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
- # correct. This field is typically provided only for the top hypothesis, and
- # only for `is_final=true` results. Clients should not rely on the
- # `confidence` field as it is not guaranteed to be accurate or consistent.
+ # correct. This field is set only for the top alternative.
+ # This field is not guaranteed to be accurate and users should not rely on it
+ # to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
@@ -432,7 +432,9 @@ module Google
# @return [String]
attr_accessor :transcript
- # A list of word-specific information for each recognized word.
+ # Output only. A list of word-specific information for each recognized word.
+ # Note: When `enable_speaker_diarization` is true, you will see all the words
+ # from the beginning of the audio.
# Corresponds to the JSON property `words`
# @return [Array]
attr_accessor :words
@@ -670,7 +672,7 @@ module Google
# @return [Array]
attr_accessor :object_annotations
- # Label annotations on video level or user specified segment level.
+ # Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
# @return [Array]
@@ -681,7 +683,7 @@ module Google
# @return [Array]
attr_accessor :shot_annotations
- # Label annotations on shot level.
+ # Topical label annotations on shot level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `shotLabelAnnotations`
# @return [Array]
@@ -1415,11 +1417,11 @@ module Google
class GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
- # The confidence estimate between 0.0 and 1.0. A higher number
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
- # correct. This field is typically provided only for the top hypothesis, and
- # only for `is_final=true` results. Clients should not rely on the
- # `confidence` field as it is not guaranteed to be accurate or consistent.
+ # correct. This field is set only for the top alternative.
+ # This field is not guaranteed to be accurate and users should not rely on it
+ # to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
@@ -1430,7 +1432,9 @@ module Google
# @return [String]
attr_accessor :transcript
- # A list of word-specific information for each recognized word.
+ # Output only. A list of word-specific information for each recognized word.
+ # Note: When `enable_speaker_diarization` is true, you will see all the words
+ # from the beginning of the audio.
# Corresponds to the JSON property `words`
# @return [Array]
attr_accessor :words
@@ -1797,7 +1801,7 @@ module Google
# @return [Array]
attr_accessor :object_annotations
- # Label annotations on video level or user specified segment level.
+ # Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
# @return [Array]
@@ -1808,7 +1812,7 @@ module Google
# @return [Array]
attr_accessor :shot_annotations
- # Label annotations on shot level.
+ # Topical label annotations on shot level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `shotLabelAnnotations`
# @return [Array]
@@ -2383,11 +2387,11 @@ module Google
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
- # The confidence estimate between 0.0 and 1.0. A higher number
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
- # correct. This field is typically provided only for the top hypothesis, and
- # only for `is_final=true` results. Clients should not rely on the
- # `confidence` field as it is not guaranteed to be accurate or consistent.
+ # correct. This field is set only for the top alternative.
+ # This field is not guaranteed to be accurate and users should not rely on it
+ # to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
@@ -2398,7 +2402,9 @@ module Google
# @return [String]
attr_accessor :transcript
- # A list of word-specific information for each recognized word.
+ # Output only. A list of word-specific information for each recognized word.
+ # Note: When `enable_speaker_diarization` is true, you will see all the words
+ # from the beginning of the audio.
# Corresponds to the JSON property `words`
# @return [Array]
attr_accessor :words
@@ -2636,7 +2642,7 @@ module Google
# @return [Array]
attr_accessor :object_annotations
- # Label annotations on video level or user specified segment level.
+ # Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
# @return [Array]
@@ -2647,7 +2653,7 @@ module Google
# @return [Array]
attr_accessor :shot_annotations
- # Label annotations on shot level.
+ # Topical label annotations on shot level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `shotLabelAnnotations`
# @return [Array]
@@ -3165,11 +3171,11 @@ module Google
class GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
- # The confidence estimate between 0.0 and 1.0. A higher number
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
- # correct. This field is typically provided only for the top hypothesis, and
- # only for `is_final=true` results. Clients should not rely on the
- # `confidence` field as it is not guaranteed to be accurate or consistent.
+ # correct. This field is set only for the top alternative.
+ # This field is not guaranteed to be accurate and users should not rely on it
+ # to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
@@ -3180,7 +3186,9 @@ module Google
# @return [String]
attr_accessor :transcript
- # A list of word-specific information for each recognized word.
+ # Output only. A list of word-specific information for each recognized word.
+ # Note: When `enable_speaker_diarization` is true, you will see all the words
+ # from the beginning of the audio.
# Corresponds to the JSON property `words`
# @return [Array]
attr_accessor :words
@@ -3418,7 +3426,7 @@ module Google
# @return [Array]
attr_accessor :object_annotations
- # Label annotations on video level or user specified segment level.
+ # Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
# @return [Array]
@@ -3429,7 +3437,7 @@ module Google
# @return [Array]
attr_accessor :shot_annotations
- # Label annotations on shot level.
+ # Topical label annotations on shot level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `shotLabelAnnotations`
# @return [Array]
@@ -4013,11 +4021,11 @@ module Google
class GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
- # The confidence estimate between 0.0 and 1.0. A higher number
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
# indicates an estimated greater likelihood that the recognized words are
- # correct. This field is typically provided only for the top hypothesis, and
- # only for `is_final=true` results. Clients should not rely on the
- # `confidence` field as it is not guaranteed to be accurate or consistent.
+ # correct. This field is set only for the top alternative.
+ # This field is not guaranteed to be accurate and users should not rely on it
+ # to be always provided.
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
# Corresponds to the JSON property `confidence`
# @return [Float]
@@ -4028,7 +4036,9 @@ module Google
# @return [String]
attr_accessor :transcript
- # A list of word-specific information for each recognized word.
+ # Output only. A list of word-specific information for each recognized word.
+ # Note: When `enable_speaker_diarization` is true, you will see all the words
+ # from the beginning of the audio.
# Corresponds to the JSON property `words`
# @return [Array]
attr_accessor :words
@@ -4427,7 +4437,7 @@ module Google
# @return [Array]
attr_accessor :object_annotations
- # Label annotations on video level or user specified segment level.
+ # Topical label annotations on video level or user specified segment level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `segmentLabelAnnotations`
# @return [Array]
@@ -4438,7 +4448,7 @@ module Google
# @return [Array]
attr_accessor :shot_annotations
- # Label annotations on shot level.
+ # Topical label annotations on shot level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `shotLabelAnnotations`
# @return [Array]
diff --git a/generated/google/apis/websecurityscanner_v1.rb b/generated/google/apis/websecurityscanner_v1.rb
new file mode 100644
index 000000000..9382c06be
--- /dev/null
+++ b/generated/google/apis/websecurityscanner_v1.rb
@@ -0,0 +1,31 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'google/apis/websecurityscanner_v1/service.rb'
+require 'google/apis/websecurityscanner_v1/classes.rb'
+require 'google/apis/websecurityscanner_v1/representations.rb'
+
+module Google
+ module Apis
+ # Web Security Scanner API
+ #
+ # Scans your Compute and App Engine apps for common web vulnerabilities.
+ #
+ # @see https://cloud.google.com/security-scanner/
+ module WebsecurityscannerV1
+ VERSION = 'V1'
+ REVISION = '20190622'
+ end
+ end
+end
diff --git a/generated/google/apis/websecurityscanner_v1/classes.rb b/generated/google/apis/websecurityscanner_v1/classes.rb
new file mode 100644
index 000000000..1ab4fc678
--- /dev/null
+++ b/generated/google/apis/websecurityscanner_v1/classes.rb
@@ -0,0 +1,26 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'date'
+require 'google/apis/core/base_service'
+require 'google/apis/core/json_representation'
+require 'google/apis/core/hashable'
+require 'google/apis/errors'
+
+module Google
+ module Apis
+ module WebsecurityscannerV1
+ end
+ end
+end
diff --git a/generated/google/apis/websecurityscanner_v1/representations.rb b/generated/google/apis/websecurityscanner_v1/representations.rb
new file mode 100644
index 000000000..1ab4fc678
--- /dev/null
+++ b/generated/google/apis/websecurityscanner_v1/representations.rb
@@ -0,0 +1,26 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'date'
+require 'google/apis/core/base_service'
+require 'google/apis/core/json_representation'
+require 'google/apis/core/hashable'
+require 'google/apis/errors'
+
+module Google
+ module Apis
+ module WebsecurityscannerV1
+ end
+ end
+end
diff --git a/generated/google/apis/websecurityscanner_v1/service.rb b/generated/google/apis/websecurityscanner_v1/service.rb
new file mode 100644
index 000000000..7409aa14f
--- /dev/null
+++ b/generated/google/apis/websecurityscanner_v1/service.rb
@@ -0,0 +1,59 @@
+# Copyright 2015 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+require 'google/apis/core/base_service'
+require 'google/apis/core/json_representation'
+require 'google/apis/core/hashable'
+require 'google/apis/errors'
+
+module Google
+ module Apis
+ module WebsecurityscannerV1
+ # Web Security Scanner API
+ #
+ # Scans your Compute and App Engine apps for common web vulnerabilities.
+ #
+ # @example
+ # require 'google/apis/websecurityscanner_v1'
+ #
+ # Websecurityscanner = Google::Apis::WebsecurityscannerV1 # Alias the module
+ # service = Websecurityscanner::WebSecurityScannerService.new
+ #
+ # @see https://cloud.google.com/security-scanner/
+ class WebSecurityScannerService < Google::Apis::Core::BaseService
+ # @return [String]
+ # API key. Your API key identifies your project and provides you with API access,
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
+ attr_accessor :key
+
+ # @return [String]
+ # 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.
+ attr_accessor :quota_user
+
+ def initialize
+ super('https://websecurityscanner.googleapis.com/', '')
+ @batch_path = 'batch'
+ end
+
+ protected
+
+ def apply_command_defaults(command)
+ command.query['key'] = key unless key.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ end
+ end
+ end
+ end
+end