Autogenerated update (2019-05-03)

Update:
- bigquery_v2
- calendar_v3
- cloudbuild_v1
- dialogflow_v2
- digitalassetlinks_v1
- dns_v2beta1
- iam_v1
- serviceconsumermanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- spanner_v1
- storage_v1
- youtube_partner_v1
This commit is contained in:
Google APIs committed 2019-05-03 00:37:18 +00:00
1 parent ee8d8f589f
commit cd3877754f
43 files changed
+263 -1488

No files matched your search

+48 -6
View File
@@ -846,7 +846,7 @@ module Google
# serially, such that the effects of statement i are visible to statement
# i+1. Each statement must be a DML statement. Execution will stop at the
# first failed statement; the remaining statements will not run.
# REQUIRES: statements_size() > 0.
# REQUIRES: `statements_size()` > 0.
# Corresponds to the JSON property `statements`
# @return [Array<Google::Apis::SpannerV1::Statement>]
attr_accessor :statements
@@ -876,17 +876,17 @@ module Google
# If a statement fails, the error is returned as part of the response payload.
# Clients can determine whether all DML statements have run successfully, or if
# a statement failed, using one of the following approaches:
# 1. Check if 'status' field is OkStatus.
# 2. Check if result_sets_size() equals the number of statements in
# 1. Check if `'status'` field is `OkStatus`.
# 2. Check if `result_sets_size()` equals the number of statements in
# ExecuteBatchDmlRequest.
# Example 1: A request with 5 DML statements, all executed successfully.
# Result: A response with 5 ResultSets, one for each statement in the same
# order, and an OK status.
# order, and an `OkStatus`.
# Example 2: A request with 5 DML statements. The 3rd statement has a syntax
# error.
# Result: A response with 2 ResultSets, for the first 2 statements that
# run successfully, and a syntax error (INVALID_ARGUMENT) status. From
# result_set_size() client can determine that the 3rd statement has failed.
# run successfully, and a syntax error (`INVALID_ARGUMENT`) status. From
# `result_set_size()` client can determine that the 3rd statement has failed.
class ExecuteBatchDmlResponse
include Google::Apis::Core::Hashable
@@ -1264,6 +1264,12 @@ module Google
# @return [String]
attr_accessor :name
# The geographic placement of nodes in this instance configuration and their
# replication properties.
# Corresponds to the JSON property `replicas`
# @return [Array<Google::Apis::SpannerV1::ReplicaInfo>]
attr_accessor :replicas
def initialize(**args)
update!(**args)
end
@@ -1272,6 +1278,7 @@ module Google
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@replicas = args[:replicas] if args.key?(:replicas)
end
end
@@ -2390,6 +2397,41 @@ module Google
end
end
#
class ReplicaInfo
include Google::Apis::Core::Hashable
# If true, this location is designated as the default leader location where
# leader replicas are placed. See the [region types
# documentation](https://cloud.google.com/spanner/docs/instances#region_types)
# for more details.
# Corresponds to the JSON property `defaultLeaderLocation`
# @return [Boolean]
attr_accessor :default_leader_location
alias_method :default_leader_location?, :default_leader_location
# The location of the serving resources, e.g. "us-central1".
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The type of replica.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@default_leader_location = args[:default_leader_location] if args.key?(:default_leader_location)
@location = args[:location] if args.key?(:location)
@type = args[:type] if args.key?(:type)
end
end
# Results from Read or
# ExecuteSql.
class ResultSet
@@ -286,6 +286,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ReplicaInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResultSet
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -609,6 +615,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :name, as: 'name'
collection :replicas, as: 'replicas', class: Google::Apis::SpannerV1::ReplicaInfo, decorator: Google::Apis::SpannerV1::ReplicaInfo::Representation
end
end
@@ -849,6 +857,15 @@ module Google
end
end
class ReplicaInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_leader_location, as: 'defaultLeaderLocation'
property :location, as: 'location'
property :type, as: 'type'
end
end
class ResultSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation