Autogenerated update (2018-10-06)

Delete:
- servicenetworking_v1

Update:
- dataflow_v1b3
- jobs_v3p1beta1
- serviceconsumermanagement_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- spanner_v1
This commit is contained in:
Google APIs 2018-10-06 00:36:23 +00:00
parent 5638f179c7
commit d78e388fa9
24 changed files with 406 additions and 4748 deletions

View File

@ -39302,6 +39302,7 @@
"/dataflow:v1b3/LogBucket/count": count
"/dataflow:v1b3/LogBucket/log": log
"/dataflow:v1b3/MapTask": map_task
"/dataflow:v1b3/MapTask/counterPrefix": counter_prefix
"/dataflow:v1b3/MapTask/instructions": instructions
"/dataflow:v1b3/MapTask/instructions/instruction": instruction
"/dataflow:v1b3/MapTask/stageName": stage_name
@ -68476,6 +68477,8 @@
"/jobs:v3p1beta1/JobQuery/disableSpellCheck": disable_spell_check
"/jobs:v3p1beta1/JobQuery/employmentTypes": employment_types
"/jobs:v3p1beta1/JobQuery/employmentTypes/employment_type": employment_type
"/jobs:v3p1beta1/JobQuery/excludedJobs": excluded_jobs
"/jobs:v3p1beta1/JobQuery/excludedJobs/excluded_job": excluded_job
"/jobs:v3p1beta1/JobQuery/jobCategories": job_categories
"/jobs:v3p1beta1/JobQuery/jobCategories/job_category": job_category
"/jobs:v3p1beta1/JobQuery/languageCodes": language_codes
@ -68554,6 +68557,7 @@
"/jobs:v3p1beta1/SearchJobsRequest": search_jobs_request
"/jobs:v3p1beta1/SearchJobsRequest/customRankingInfo": custom_ranking_info
"/jobs:v3p1beta1/SearchJobsRequest/disableKeywordMatch": disable_keyword_match
"/jobs:v3p1beta1/SearchJobsRequest/diversificationLevel": diversification_level
"/jobs:v3p1beta1/SearchJobsRequest/enableBroadening": enable_broadening
"/jobs:v3p1beta1/SearchJobsRequest/histogramFacets": histogram_facets
"/jobs:v3p1beta1/SearchJobsRequest/histogramQueries": histogram_queries
@ -82288,6 +82292,7 @@
"/spanner:v1/ExecuteSqlRequest/partitionToken": partition_token
"/spanner:v1/ExecuteSqlRequest/queryMode": query_mode
"/spanner:v1/ExecuteSqlRequest/resumeToken": resume_token
"/spanner:v1/ExecuteSqlRequest/seqno": seqno
"/spanner:v1/ExecuteSqlRequest/sql": sql
"/spanner:v1/ExecuteSqlRequest/transaction": transaction
"/spanner:v1/Expr": expr
@ -82399,6 +82404,7 @@
"/spanner:v1/PartitionResponse/partitions": partitions
"/spanner:v1/PartitionResponse/partitions/partition": partition
"/spanner:v1/PartitionResponse/transaction": transaction
"/spanner:v1/PartitionedDml": partitioned_dml
"/spanner:v1/PlanNode": plan_node
"/spanner:v1/PlanNode/childLinks": child_links
"/spanner:v1/PlanNode/childLinks/child_link": child_link
@ -82454,6 +82460,8 @@
"/spanner:v1/ResultSetStats/queryPlan": query_plan
"/spanner:v1/ResultSetStats/queryStats": query_stats
"/spanner:v1/ResultSetStats/queryStats/query_stat": query_stat
"/spanner:v1/ResultSetStats/rowCountExact": row_count_exact
"/spanner:v1/ResultSetStats/rowCountLowerBound": row_count_lower_bound
"/spanner:v1/RollbackRequest": rollback_request
"/spanner:v1/RollbackRequest/transactionId": transaction_id
"/spanner:v1/Rule": rule
@ -82501,6 +82509,7 @@
"/spanner:v1/Transaction/id": id
"/spanner:v1/Transaction/readTimestamp": read_timestamp
"/spanner:v1/TransactionOptions": transaction_options
"/spanner:v1/TransactionOptions/partitionedDml": partitioned_dml
"/spanner:v1/TransactionOptions/readOnly": read_only
"/spanner:v1/TransactionOptions/readWrite": read_write
"/spanner:v1/TransactionSelector": transaction_selector

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20180828'
REVISION = '20180926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2312,6 +2312,12 @@ module Google
class MapTask
include Google::Apis::Core::Hashable
# Counter prefix that can be used to prefix counters. Not currently used in
# Dataflow.
# Corresponds to the JSON property `counterPrefix`
# @return [String]
attr_accessor :counter_prefix
# The instructions in the MapTask.
# Corresponds to the JSON property `instructions`
# @return [Array<Google::Apis::DataflowV1b3::ParallelInstruction>]
@ -2335,6 +2341,7 @@ module Google
# Update properties of this object
def update!(**args)
@counter_prefix = args[:counter_prefix] if args.key?(:counter_prefix)
@instructions = args[:instructions] if args.key?(:instructions)
@stage_name = args[:stage_name] if args.key?(:stage_name)
@system_name = args[:system_name] if args.key?(:system_name)

View File

@ -1453,6 +1453,7 @@ module Google
class MapTask
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :counter_prefix, as: 'counterPrefix'
collection :instructions, as: 'instructions', class: Google::Apis::DataflowV1b3::ParallelInstruction, decorator: Google::Apis::DataflowV1b3::ParallelInstruction::Representation
property :stage_name, as: 'stageName'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/talent-solution/job-search/docs/
module JobsV3p1beta1
VERSION = 'V3p1beta1'
REVISION = '20180917'
REVISION = '20180927'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -951,7 +951,7 @@ module Google
# Controls over how important the score of
# CustomRankingInfo.ranking_expression gets applied to job's final
# ranking position.
# An error will be thrown if not specified.
# An error is thrown if not specified.
# Corresponds to the JSON property `importanceLevel`
# @return [String]
attr_accessor :importance_level
@ -1411,7 +1411,9 @@ module Google
# For more information, see
# [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47)`:
# class="external" target="_blank" `.
# The default value is `en-US`.
# If this field is unspecified and Job.description is present, detected
# language code based on Job.description is assigned, otherwise
# defaults to 'en_US'.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
@ -1696,20 +1698,21 @@ module Google
# Optional.
# This filter specifies a structured syntax to match against the
# Job.custom_attributes marked as `filterable`.
# The syntax for this expression is a subset of Google SQL syntax.
# Supported operators are: =, !=, <, <=, >, >= where the left of the operator
# is a custom field key and the right of the operator is a number or string
# (surrounded by quotes) value.
# Supported functions are LOWER(<field_name>) to
# perform case insensitive match and EMPTY(<field_name>) to filter on the
# The syntax for this expression is a subset of SQL syntax.
# Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the
# left of the operator is a custom field key and the right of the operator
# is a number or a quoted string. You must escape backslash (\\) and
# quote (\") characters.
# Supported functions are `LOWER([field_name])` to
# perform a case insensitive match and `EMPTY([field_name])` to filter on the
# existence of a key.
# Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
# nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 50
# comparisons/functions are allowed in the expression. The expression
# must be < 2000 characters in length.
# comparisons or functions are allowed in the expression. The expression
# must be < 3000 characters in length.
# Sample Query:
# (LOWER(driving_license)="class a" OR EMPTY(driving_license)) AND
# driving_years > 10
# `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
# driving_years > 10`
# Corresponds to the JSON property `customAttributeFilter`
# @return [String]
attr_accessor :custom_attribute_filter
@ -1735,6 +1738,13 @@ module Google
# @return [Array<String>]
attr_accessor :employment_types
# Optional.
# This filter specifies a list of job names to be excluded during search.
# At most 200 excluded job names are allowed.
# Corresponds to the JSON property `excludedJobs`
# @return [Array<String>]
attr_accessor :excluded_jobs
# Optional.
# The category filter specifies the categories of jobs to search against.
# See Category for more information.
@ -1798,6 +1808,7 @@ module Google
@custom_attribute_filter = args[:custom_attribute_filter] if args.key?(:custom_attribute_filter)
@disable_spell_check = args[:disable_spell_check] if args.key?(:disable_spell_check)
@employment_types = args[:employment_types] if args.key?(:employment_types)
@excluded_jobs = args[:excluded_jobs] if args.key?(:excluded_jobs)
@job_categories = args[:job_categories] if args.key?(:job_categories)
@language_codes = args[:language_codes] if args.key?(:language_codes)
@location_filters = args[:location_filters] if args.key?(:location_filters)
@ -2505,6 +2516,19 @@ module Google
attr_accessor :disable_keyword_match
alias_method :disable_keyword_match?, :disable_keyword_match
# Optional.
# Controls whether highly similar jobs are returned next to each other in
# the search results. Jobs are determined to be highly similar based on
# their titles, job categories, and locations. Highly similar results will
# be clustered so that only one representative job of the cluster will be
# displayed to the job seeker higher up in the results, with the other jobs
# being displayed lower down in the results.
# Defaults to DiversificationLevel.SIMPLE if no value
# is specified.
# Corresponds to the JSON property `diversificationLevel`
# @return [String]
attr_accessor :diversification_level
# Optional.
# Controls whether to broaden the search when it produces sparse results.
# Broadened queries append results to the end of the matching results
@ -2559,27 +2583,27 @@ module Google
# * "relevance desc": By relevance descending, as determined by the API
# algorithms. Relevance thresholding of query results is only available
# with this ordering.
# * "posting_publish_time desc": By Job.posting_publish_time descending.
# * "posting_update_time desc": By Job.posting_update_time descending.
# * "posting`_`publish`_`time desc": By Job.posting_publish_time descending.
# * "posting`_`update`_`time desc": By Job.posting_update_time descending.
# * "title": By Job.title ascending.
# * "title desc": By Job.title descending.
# * "annualized_base_compensation": By job's
# * "annualized`_`base`_`compensation": By job's
# CompensationInfo.annualized_base_compensation_range ascending. Jobs
# whose annualized base compensation is unspecified are put at the end of
# search results.
# * "annualized_base_compensation desc": By job's
# * "annualized`_`base`_`compensation desc": By job's
# CompensationInfo.annualized_base_compensation_range descending. Jobs
# whose annualized base compensation is unspecified are put at the end of
# search results.
# * "annualized_total_compensation": By job's
# * "annualized`_`total`_`compensation": By job's
# CompensationInfo.annualized_total_compensation_range ascending. Jobs
# whose annualized base compensation is unspecified are put at the end of
# search results.
# * "annualized_total_compensation desc": By job's
# * "annualized`_`total`_`compensation desc": By job's
# CompensationInfo.annualized_total_compensation_range descending. Jobs
# whose annualized base compensation is unspecified are put at the end of
# search results.
# * "custom_ranking desc": By the relevance score adjusted to the
# * "custom`_`ranking desc": By the relevance score adjusted to the
# SearchJobsRequest.custom_ranking_info.ranking_expression with weight
# factor assigned by
# SearchJobsRequest.custom_ranking_info.importance_level in descending
@ -2640,6 +2664,7 @@ module Google
def update!(**args)
@custom_ranking_info = args[:custom_ranking_info] if args.key?(:custom_ranking_info)
@disable_keyword_match = args[:disable_keyword_match] if args.key?(:disable_keyword_match)
@diversification_level = args[:diversification_level] if args.key?(:diversification_level)
@enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening)
@histogram_facets = args[:histogram_facets] if args.key?(:histogram_facets)
@histogram_queries = args[:histogram_queries] if args.key?(:histogram_queries)
@ -2723,7 +2748,7 @@ module Google
# The precise result count, which is available only if the client set
# enable_precise_result_size to `true` or if the response
# is the last page of results. Otherwise, the value will be `-1`.
# is the last page of results. Otherwise, the value is `-1`.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size

View File

@ -724,6 +724,7 @@ module Google
property :custom_attribute_filter, as: 'customAttributeFilter'
property :disable_spell_check, as: 'disableSpellCheck'
collection :employment_types, as: 'employmentTypes'
collection :excluded_jobs, as: 'excludedJobs'
collection :job_categories, as: 'jobCategories'
collection :language_codes, as: 'languageCodes'
collection :location_filters, as: 'locationFilters', class: Google::Apis::JobsV3p1beta1::LocationFilter, decorator: Google::Apis::JobsV3p1beta1::LocationFilter::Representation
@ -877,6 +878,7 @@ module Google
property :custom_ranking_info, as: 'customRankingInfo', class: Google::Apis::JobsV3p1beta1::CustomRankingInfo, decorator: Google::Apis::JobsV3p1beta1::CustomRankingInfo::Representation
property :disable_keyword_match, as: 'disableKeywordMatch'
property :diversification_level, as: 'diversificationLevel'
property :enable_broadening, as: 'enableBroadening'
property :histogram_facets, as: 'histogramFacets', class: Google::Apis::JobsV3p1beta1::HistogramFacets, decorator: Google::Apis::JobsV3p1beta1::HistogramFacets::Representation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20180919'
REVISION = '20181004'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1222,7 +1222,7 @@ module Google
# service Messaging `
# rpc GetMessage(GetMessageRequest) returns (Message) `
# option (google.api.http) = `
# get: "/v1/`name=messages/*"`"
# get: "/v1/`name=messages/*`"
# `;
# `
# `

View File

@ -1,38 +0,0 @@
# 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/servicenetworking_v1/service.rb'
require 'google/apis/servicenetworking_v1/classes.rb'
require 'google/apis/servicenetworking_v1/representations.rb'
module Google
module Apis
# Service Networking API
#
# The Service Networking API provides automatic management of network
# configurations necessary for certain services.
#
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/
module ServicenetworkingV1
VERSION = 'V1'
REVISION = '20181001'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Manage your Google API service configuration
AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,997 +0,0 @@
# 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 ServicenetworkingV1
class AddSubnetworkResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Api
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuthProvider
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuthRequirement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Authentication
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuthenticationRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuthorizationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Backend
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Billing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BillingDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Context
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContextRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Control
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomErrorRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomHttpPattern
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Documentation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DocumentationRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Endpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Enum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EnumValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Experimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Field
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Http
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LabelDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Logging
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LoggingDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MethodProp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricDescriptorMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Mixin
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResourceDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Monitoring
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoringDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OAuthRequirements
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Option
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Page
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QuotaLimit
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Service
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Subnetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SystemParameter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SystemParameterRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SystemParameters
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Type
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Usage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UsageRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddSubnetworkResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
property :name, as: 'name'
end
end
class Api
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :methods_prop, as: 'methods', class: Google::Apis::ServicenetworkingV1::MethodProp, decorator: Google::Apis::ServicenetworkingV1::MethodProp::Representation
collection :mixins, as: 'mixins', class: Google::Apis::ServicenetworkingV1::Mixin, decorator: Google::Apis::ServicenetworkingV1::Mixin::Representation
property :name, as: 'name'
collection :options, as: 'options', class: Google::Apis::ServicenetworkingV1::Option, decorator: Google::Apis::ServicenetworkingV1::Option::Representation
property :source_context, as: 'sourceContext', class: Google::Apis::ServicenetworkingV1::SourceContext, decorator: Google::Apis::ServicenetworkingV1::SourceContext::Representation
property :syntax, as: 'syntax'
property :version, as: 'version'
end
end
class AuthProvider
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audiences, as: 'audiences'
property :authorization_url, as: 'authorizationUrl'
property :id, as: 'id'
property :issuer, as: 'issuer'
property :jwks_uri, as: 'jwksUri'
end
end
class AuthRequirement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audiences, as: 'audiences'
property :provider_id, as: 'providerId'
end
end
class Authentication
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :providers, as: 'providers', class: Google::Apis::ServicenetworkingV1::AuthProvider, decorator: Google::Apis::ServicenetworkingV1::AuthProvider::Representation
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::AuthenticationRule, decorator: Google::Apis::ServicenetworkingV1::AuthenticationRule::Representation
end
end
class AuthenticationRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_without_credential, as: 'allowWithoutCredential'
property :oauth, as: 'oauth', class: Google::Apis::ServicenetworkingV1::OAuthRequirements, decorator: Google::Apis::ServicenetworkingV1::OAuthRequirements::Representation
collection :requirements, as: 'requirements', class: Google::Apis::ServicenetworkingV1::AuthRequirement, decorator: Google::Apis::ServicenetworkingV1::AuthRequirement::Representation
property :selector, as: 'selector'
end
end
class AuthorizationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :provider, as: 'provider'
end
end
class Backend
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::BackendRule, decorator: Google::Apis::ServicenetworkingV1::BackendRule::Representation
end
end
class BackendRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address'
property :deadline, as: 'deadline'
property :min_deadline, as: 'minDeadline'
property :selector, as: 'selector'
end
end
class Billing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServicenetworkingV1::BillingDestination, decorator: Google::Apis::ServicenetworkingV1::BillingDestination::Representation
end
end
class BillingDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :metrics, as: 'metrics'
property :monitored_resource, as: 'monitoredResource'
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Context
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::ContextRule, decorator: Google::Apis::ServicenetworkingV1::ContextRule::Representation
end
end
class ContextRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_request_extensions, as: 'allowedRequestExtensions'
collection :allowed_response_extensions, as: 'allowedResponseExtensions'
collection :provided, as: 'provided'
collection :requested, as: 'requested'
property :selector, as: 'selector'
end
end
class Control
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :environment, as: 'environment'
end
end
class CustomError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::CustomErrorRule, decorator: Google::Apis::ServicenetworkingV1::CustomErrorRule::Representation
collection :types, as: 'types'
end
end
class CustomErrorRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_error_type, as: 'isErrorType'
property :selector, as: 'selector'
end
end
class CustomHttpPattern
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :path, as: 'path'
end
end
class Documentation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :documentation_root_url, as: 'documentationRootUrl'
property :overview, as: 'overview'
collection :pages, as: 'pages', class: Google::Apis::ServicenetworkingV1::Page, decorator: Google::Apis::ServicenetworkingV1::Page::Representation
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::DocumentationRule, decorator: Google::Apis::ServicenetworkingV1::DocumentationRule::Representation
property :summary, as: 'summary'
end
end
class DocumentationRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deprecation_description, as: 'deprecationDescription'
property :description, as: 'description'
property :selector, as: 'selector'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Endpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :aliases, as: 'aliases'
property :allow_cors, as: 'allowCors'
collection :features, as: 'features'
property :name, as: 'name'
property :target, as: 'target'
end
end
class Enum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :enumvalue, as: 'enumvalue', class: Google::Apis::ServicenetworkingV1::EnumValue, decorator: Google::Apis::ServicenetworkingV1::EnumValue::Representation
property :name, as: 'name'
collection :options, as: 'options', class: Google::Apis::ServicenetworkingV1::Option, decorator: Google::Apis::ServicenetworkingV1::Option::Representation
property :source_context, as: 'sourceContext', class: Google::Apis::ServicenetworkingV1::SourceContext, decorator: Google::Apis::ServicenetworkingV1::SourceContext::Representation
property :syntax, as: 'syntax'
end
end
class EnumValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :number, as: 'number'
collection :options, as: 'options', class: Google::Apis::ServicenetworkingV1::Option, decorator: Google::Apis::ServicenetworkingV1::Option::Representation
end
end
class Experimental
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :authorization, as: 'authorization', class: Google::Apis::ServicenetworkingV1::AuthorizationConfig, decorator: Google::Apis::ServicenetworkingV1::AuthorizationConfig::Representation
end
end
class Field
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cardinality, as: 'cardinality'
property :default_value, as: 'defaultValue'
property :json_name, as: 'jsonName'
property :kind, as: 'kind'
property :name, as: 'name'
property :number, as: 'number'
property :oneof_index, as: 'oneofIndex'
collection :options, as: 'options', class: Google::Apis::ServicenetworkingV1::Option, decorator: Google::Apis::ServicenetworkingV1::Option::Representation
property :packed, as: 'packed'
property :type_url, as: 'typeUrl'
end
end
class Http
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :fully_decode_reserved_expansion, as: 'fullyDecodeReservedExpansion'
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::HttpRule, decorator: Google::Apis::ServicenetworkingV1::HttpRule::Representation
end
end
class HttpRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServicenetworkingV1::HttpRule, decorator: Google::Apis::ServicenetworkingV1::HttpRule::Representation
property :body, as: 'body'
property :custom, as: 'custom', class: Google::Apis::ServicenetworkingV1::CustomHttpPattern, decorator: Google::Apis::ServicenetworkingV1::CustomHttpPattern::Representation
property :delete, as: 'delete'
property :get, as: 'get'
property :patch, as: 'patch'
property :post, as: 'post'
property :put, as: 'put'
property :response_body, as: 'responseBody'
property :selector, as: 'selector'
end
end
class LabelDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :key, as: 'key'
property :value_type, as: 'valueType'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::ServicenetworkingV1::Operation, decorator: Google::Apis::ServicenetworkingV1::Operation::Representation
end
end
class LogDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
collection :labels, as: 'labels', class: Google::Apis::ServicenetworkingV1::LabelDescriptor, decorator: Google::Apis::ServicenetworkingV1::LabelDescriptor::Representation
property :name, as: 'name'
end
end
class Logging
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServicenetworkingV1::LoggingDestination, decorator: Google::Apis::ServicenetworkingV1::LoggingDestination::Representation
collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServicenetworkingV1::LoggingDestination, decorator: Google::Apis::ServicenetworkingV1::LoggingDestination::Representation
end
end
class LoggingDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :logs, as: 'logs'
property :monitored_resource, as: 'monitoredResource'
end
end
class MethodProp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
collection :options, as: 'options', class: Google::Apis::ServicenetworkingV1::Option, decorator: Google::Apis::ServicenetworkingV1::Option::Representation
property :request_streaming, as: 'requestStreaming'
property :request_type_url, as: 'requestTypeUrl'
property :response_streaming, as: 'responseStreaming'
property :response_type_url, as: 'responseTypeUrl'
property :syntax, as: 'syntax'
end
end
class MetricDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
collection :labels, as: 'labels', class: Google::Apis::ServicenetworkingV1::LabelDescriptor, decorator: Google::Apis::ServicenetworkingV1::LabelDescriptor::Representation
property :metadata, as: 'metadata', class: Google::Apis::ServicenetworkingV1::MetricDescriptorMetadata, decorator: Google::Apis::ServicenetworkingV1::MetricDescriptorMetadata::Representation
property :metric_kind, as: 'metricKind'
property :name, as: 'name'
property :type, as: 'type'
property :unit, as: 'unit'
property :value_type, as: 'valueType'
end
end
class MetricDescriptorMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ingest_delay, as: 'ingestDelay'
property :launch_stage, as: 'launchStage'
property :sample_period, as: 'samplePeriod'
end
end
class MetricRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :metric_costs, as: 'metricCosts'
property :selector, as: 'selector'
end
end
class Mixin
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :root, as: 'root'
end
end
class MonitoredResourceDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
collection :labels, as: 'labels', class: Google::Apis::ServicenetworkingV1::LabelDescriptor, decorator: Google::Apis::ServicenetworkingV1::LabelDescriptor::Representation
property :name, as: 'name'
property :type, as: 'type'
end
end
class Monitoring
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :consumer_destinations, as: 'consumerDestinations', class: Google::Apis::ServicenetworkingV1::MonitoringDestination, decorator: Google::Apis::ServicenetworkingV1::MonitoringDestination::Representation
collection :producer_destinations, as: 'producerDestinations', class: Google::Apis::ServicenetworkingV1::MonitoringDestination, decorator: Google::Apis::ServicenetworkingV1::MonitoringDestination::Representation
end
end
class MonitoringDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :metrics, as: 'metrics'
property :monitored_resource, as: 'monitoredResource'
end
end
class OAuthRequirements
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :canonical_scopes, as: 'canonicalScopes'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::ServicenetworkingV1::Status, decorator: Google::Apis::ServicenetworkingV1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class Option
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
hash :value, as: 'value'
end
end
class Page
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, as: 'content'
property :name, as: 'name'
collection :subpages, as: 'subpages', class: Google::Apis::ServicenetworkingV1::Page, decorator: Google::Apis::ServicenetworkingV1::Page::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :limits, as: 'limits', class: Google::Apis::ServicenetworkingV1::QuotaLimit, decorator: Google::Apis::ServicenetworkingV1::QuotaLimit::Representation
collection :metric_rules, as: 'metricRules', class: Google::Apis::ServicenetworkingV1::MetricRule, decorator: Google::Apis::ServicenetworkingV1::MetricRule::Representation
end
end
class QuotaLimit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_limit, :numeric_string => true, as: 'defaultLimit'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :duration, as: 'duration'
property :free_tier, :numeric_string => true, as: 'freeTier'
property :max_limit, :numeric_string => true, as: 'maxLimit'
property :metric, as: 'metric'
property :name, as: 'name'
property :unit, as: 'unit'
hash :values, as: 'values'
end
end
class Service
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :apis, as: 'apis', class: Google::Apis::ServicenetworkingV1::Api, decorator: Google::Apis::ServicenetworkingV1::Api::Representation
property :authentication, as: 'authentication', class: Google::Apis::ServicenetworkingV1::Authentication, decorator: Google::Apis::ServicenetworkingV1::Authentication::Representation
property :backend, as: 'backend', class: Google::Apis::ServicenetworkingV1::Backend, decorator: Google::Apis::ServicenetworkingV1::Backend::Representation
property :billing, as: 'billing', class: Google::Apis::ServicenetworkingV1::Billing, decorator: Google::Apis::ServicenetworkingV1::Billing::Representation
property :config_version, as: 'configVersion'
property :context, as: 'context', class: Google::Apis::ServicenetworkingV1::Context, decorator: Google::Apis::ServicenetworkingV1::Context::Representation
property :control, as: 'control', class: Google::Apis::ServicenetworkingV1::Control, decorator: Google::Apis::ServicenetworkingV1::Control::Representation
property :custom_error, as: 'customError', class: Google::Apis::ServicenetworkingV1::CustomError, decorator: Google::Apis::ServicenetworkingV1::CustomError::Representation
property :documentation, as: 'documentation', class: Google::Apis::ServicenetworkingV1::Documentation, decorator: Google::Apis::ServicenetworkingV1::Documentation::Representation
collection :endpoints, as: 'endpoints', class: Google::Apis::ServicenetworkingV1::Endpoint, decorator: Google::Apis::ServicenetworkingV1::Endpoint::Representation
collection :enums, as: 'enums', class: Google::Apis::ServicenetworkingV1::Enum, decorator: Google::Apis::ServicenetworkingV1::Enum::Representation
property :experimental, as: 'experimental', class: Google::Apis::ServicenetworkingV1::Experimental, decorator: Google::Apis::ServicenetworkingV1::Experimental::Representation
property :http, as: 'http', class: Google::Apis::ServicenetworkingV1::Http, decorator: Google::Apis::ServicenetworkingV1::Http::Representation
property :id, as: 'id'
property :logging, as: 'logging', class: Google::Apis::ServicenetworkingV1::Logging, decorator: Google::Apis::ServicenetworkingV1::Logging::Representation
collection :logs, as: 'logs', class: Google::Apis::ServicenetworkingV1::LogDescriptor, decorator: Google::Apis::ServicenetworkingV1::LogDescriptor::Representation
collection :metrics, as: 'metrics', class: Google::Apis::ServicenetworkingV1::MetricDescriptor, decorator: Google::Apis::ServicenetworkingV1::MetricDescriptor::Representation
collection :monitored_resources, as: 'monitoredResources', class: Google::Apis::ServicenetworkingV1::MonitoredResourceDescriptor, decorator: Google::Apis::ServicenetworkingV1::MonitoredResourceDescriptor::Representation
property :monitoring, as: 'monitoring', class: Google::Apis::ServicenetworkingV1::Monitoring, decorator: Google::Apis::ServicenetworkingV1::Monitoring::Representation
property :name, as: 'name'
property :producer_project_id, as: 'producerProjectId'
property :quota, as: 'quota', class: Google::Apis::ServicenetworkingV1::Quota, decorator: Google::Apis::ServicenetworkingV1::Quota::Representation
property :source_info, as: 'sourceInfo', class: Google::Apis::ServicenetworkingV1::SourceInfo, decorator: Google::Apis::ServicenetworkingV1::SourceInfo::Representation
property :system_parameters, as: 'systemParameters', class: Google::Apis::ServicenetworkingV1::SystemParameters, decorator: Google::Apis::ServicenetworkingV1::SystemParameters::Representation
collection :system_types, as: 'systemTypes', class: Google::Apis::ServicenetworkingV1::Type, decorator: Google::Apis::ServicenetworkingV1::Type::Representation
property :title, as: 'title'
collection :types, as: 'types', class: Google::Apis::ServicenetworkingV1::Type, decorator: Google::Apis::ServicenetworkingV1::Type::Representation
property :usage, as: 'usage', class: Google::Apis::ServicenetworkingV1::Usage, decorator: Google::Apis::ServicenetworkingV1::Usage::Representation
end
end
class SourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file_name, as: 'fileName'
end
end
class SourceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :source_files, as: 'sourceFiles'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class Subnetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
property :name, as: 'name'
end
end
class SystemParameter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :http_header, as: 'httpHeader'
property :name, as: 'name'
property :url_query_parameter, as: 'urlQueryParameter'
end
end
class SystemParameterRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :parameters, as: 'parameters', class: Google::Apis::ServicenetworkingV1::SystemParameter, decorator: Google::Apis::ServicenetworkingV1::SystemParameter::Representation
property :selector, as: 'selector'
end
end
class SystemParameters
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::SystemParameterRule, decorator: Google::Apis::ServicenetworkingV1::SystemParameterRule::Representation
end
end
class Type
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :fields, as: 'fields', class: Google::Apis::ServicenetworkingV1::Field, decorator: Google::Apis::ServicenetworkingV1::Field::Representation
property :name, as: 'name'
collection :oneofs, as: 'oneofs'
collection :options, as: 'options', class: Google::Apis::ServicenetworkingV1::Option, decorator: Google::Apis::ServicenetworkingV1::Option::Representation
property :source_context, as: 'sourceContext', class: Google::Apis::ServicenetworkingV1::SourceContext, decorator: Google::Apis::ServicenetworkingV1::SourceContext::Representation
property :syntax, as: 'syntax'
end
end
class Usage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :producer_notification_channel, as: 'producerNotificationChannel'
collection :requirements, as: 'requirements'
collection :rules, as: 'rules', class: Google::Apis::ServicenetworkingV1::UsageRule, decorator: Google::Apis::ServicenetworkingV1::UsageRule::Representation
end
end
class UsageRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_unregistered_calls, as: 'allowUnregisteredCalls'
property :selector, as: 'selector'
property :skip_service_control, as: 'skipServiceControl'
end
end
end
end
end

View File

@ -1,214 +0,0 @@
# 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 ServicenetworkingV1
# Service Networking API
#
# The Service Networking API provides automatic management of network
# configurations necessary for certain services.
#
# @example
# require 'google/apis/servicenetworking_v1'
#
# Servicenetworking = Google::Apis::ServicenetworkingV1 # Alias the module
# service = Servicenetworking::ServiceNetworkingService.new
#
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/
class ServiceNetworkingService < 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://servicenetworking.googleapis.com/', '')
@batch_path = 'batch'
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [Google::Apis::ServicenetworkingV1::CancelOperationRequest] cancel_operation_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::ServicenetworkingV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Empty]
#
# @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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.request_representation = Google::Apis::ServicenetworkingV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Empty::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Empty
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
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @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::ServicenetworkingV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::Empty]
#
# @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 delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::ServicenetworkingV1::Empty::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Empty
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 latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::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
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @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::ServicenetworkingV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::ListOperationsResponse]
#
# @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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ServicenetworkingV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::ServicenetworkingV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.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
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

View File

@ -20,13 +20,13 @@ module Google
module Apis
# Service Networking API
#
# The Service Networking API provides automatic management of network
# configurations necessary for certain services.
# Provides automatic management of network configurations necessary for certain
# services.
#
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta
VERSION = 'V1beta'
REVISION = '20181001'
REVISION = '20181004'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -94,32 +94,6 @@ module Google
end
end
# Message returning the name of the created service subnetwork.
class AddSubnetworkResponse
include Google::Apis::Core::Hashable
# Subnetwork CIDR range in "10.x.x.x/y" format.
# Corresponds to the JSON property `ipCidrRange`
# @return [String]
attr_accessor :ip_cidr_range
# Subnetwork name.
# See https://cloud.google.com/compute/docs/vpc/
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
@name = args[:name] if args.key?(:name)
end
end
# Api is a light-weight descriptor for an API Interface.
# Interfaces are also described as "protocol buffer services" in some contexts,
# such as by the "service" keyword in a .proto file, but they are different
@ -1252,7 +1226,7 @@ module Google
# service Messaging `
# rpc GetMessage(GetMessageRequest) returns (Message) `
# option (google.api.http) = `
# get: "/v1/`name=messages/*"`"
# get: "/v1/`name=messages/*`"
# `;
# `
# `

View File

@ -28,12 +28,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AddSubnetworkResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Api
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -383,14 +377,6 @@ module Google
end
end
class AddSubnetworkResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
property :name, as: 'name'
end
end
class Api
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -22,8 +22,8 @@ module Google
module ServicenetworkingV1beta
# Service Networking API
#
# The Service Networking API provides automatic management of network
# configurations necessary for certain services.
# Provides automatic management of network configurations necessary for certain
# services.
#
# @example
# require 'google/apis/servicenetworking_v1beta'
@ -31,7 +31,7 @@ module Google
# Servicenetworking = Google::Apis::ServicenetworkingV1beta # Alias the module
# service = Servicenetworking::ServiceNetworkingService.new
#
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
class ServiceNetworkingService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1
VERSION = 'V1'
REVISION = '20180919'
REVISION = '20181004'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1981,7 +1981,7 @@ module Google
# service Messaging `
# rpc GetMessage(GetMessageRequest) returns (Message) `
# option (google.api.http) = `
# get: "/v1/`name=messages/*"`"
# get: "/v1/`name=messages/*`"
# `;
# `
# `

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1
VERSION = 'V1beta1'
REVISION = '20180919'
REVISION = '20181004'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1957,7 +1957,7 @@ module Google
# service Messaging `
# rpc GetMessage(GetMessageRequest) returns (Message) `
# option (google.api.http) = `
# get: "/v1/`name=messages/*"`"
# get: "/v1/`name=messages/*`"
# `;
# `
# `

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/
module SpannerV1
VERSION = 'V1'
REVISION = '20180906'
REVISION = '20180920'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -32,7 +32,7 @@ module Google
# re-used for the next transaction. It is not necessary to create a
# new session for each transaction.
# # Transaction Modes
# Cloud Spanner supports two transaction modes:
# Cloud Spanner supports three transaction modes:
# 1. Locking read-write. This type of transaction is the only way
# to write data into Cloud Spanner. These transactions rely on
# pessimistic locking and, if necessary, two-phase commit.
@ -43,6 +43,12 @@ module Google
# writes. Snapshot read-only transactions can be configured to
# read at timestamps in the past. Snapshot read-only
# transactions do not need to be committed.
# 3. Partitioned DML. This type of transaction is used to execute
# a single Partitioned DML statement. Partitioned DML partitions
# the key space and runs the DML statement over each partition
# in parallel using separate, internal transactions that commit
# independently. Partitioned DML transactions do not need to be
# committed.
# For transactions that only read, snapshot read-only transactions
# provide simpler semantics and are almost always faster. In
# particular, read-only transactions do not take locks, so they do
@ -64,11 +70,8 @@ module Google
# Rollback. Long periods of
# inactivity at the client may cause Cloud Spanner to release a
# transaction's locks and abort it.
# Reads performed within a transaction acquire locks on the data
# being read. Writes can only be done at commit time, after all reads
# have been completed.
# Conceptually, a read-write transaction consists of zero or more
# reads or SQL queries followed by
# reads or SQL statements followed by
# Commit. At any time before
# Commit, the client can send a
# Rollback request to abort the
@ -194,7 +197,50 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
# ##
# ## Partitioned DML Transactions
# Partitioned DML transactions are used to execute DML statements with a
# different execution strategy that provides different, and often better,
# scalability properties for large, table-wide operations than DML in a
# ReadWrite transaction. Smaller scoped statements, such as an OLTP workload,
# should prefer using ReadWrite transactions.
# Partitioned DML partitions the keyspace and runs the DML statement on each
# partition in separate, internal transactions. These transactions commit
# automatically when complete, and run independently from one another.
# To reduce lock contention, this execution strategy only acquires read locks
# on rows that match the WHERE clause of the statement. Additionally, the
# smaller per-partition transactions hold locks for less time.
# That said, Partitioned DML is not a drop-in replacement for standard DML used
# in ReadWrite transactions.
# - The DML statement must be fully-partitionable. Specifically, the statement
# must be expressible as the union of many statements which each access only
# a single row of the table.
# - The statement is not applied atomically to all rows of the table. Rather,
# the statement is applied atomically to partitions of the table, in
# independent transactions. Secondary index rows are updated atomically
# with the base table rows.
# - Partitioned DML does not guarantee exactly-once execution semantics
# against a partition. The statement will be applied at least once to each
# partition. It is strongly recommended that the DML statement should be
# idempotent to avoid unexpected results. For instance, it is potentially
# dangerous to run a statement such as
# `UPDATE table SET column = column + 1` as it could be run multiple times
# against some rows.
# - The partitions are committed automatically - there is no support for
# Commit or Rollback. If the call returns an error, or if the client issuing
# the ExecuteSql call dies, it is possible that some rows had the statement
# executed on them successfully. It is also possible that statement was
# never executed against other rows.
# - Partitioned DML transactions may only contain the execution of a single
# DML statement via ExecuteSql or ExecuteStreamingSql.
# - If any error is encountered during the execution of the partitioned DML
# operation (for instance, a UNIQUE INDEX violation, division by zero, or a
# value that cannot be stored due to schema constraints), then the
# operation is stopped at that point and an error is returned. It is
# possible that at this point, some partitions have been committed (or even
# committed multiple times), and other partitions have not been run at all.
# Given the above, Partitioned DML is good fit for large, database-wide,
# operations that are idempotent, such as deleting old rows from a very large
# table.
# Corresponds to the JSON property `options`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :options
@ -316,7 +362,7 @@ module Google
# re-used for the next transaction. It is not necessary to create a
# new session for each transaction.
# # Transaction Modes
# Cloud Spanner supports two transaction modes:
# Cloud Spanner supports three transaction modes:
# 1. Locking read-write. This type of transaction is the only way
# to write data into Cloud Spanner. These transactions rely on
# pessimistic locking and, if necessary, two-phase commit.
@ -327,6 +373,12 @@ module Google
# writes. Snapshot read-only transactions can be configured to
# read at timestamps in the past. Snapshot read-only
# transactions do not need to be committed.
# 3. Partitioned DML. This type of transaction is used to execute
# a single Partitioned DML statement. Partitioned DML partitions
# the key space and runs the DML statement over each partition
# in parallel using separate, internal transactions that commit
# independently. Partitioned DML transactions do not need to be
# committed.
# For transactions that only read, snapshot read-only transactions
# provide simpler semantics and are almost always faster. In
# particular, read-only transactions do not take locks, so they do
@ -348,11 +400,8 @@ module Google
# Rollback. Long periods of
# inactivity at the client may cause Cloud Spanner to release a
# transaction's locks and abort it.
# Reads performed within a transaction acquire locks on the data
# being read. Writes can only be done at commit time, after all reads
# have been completed.
# Conceptually, a read-write transaction consists of zero or more
# reads or SQL queries followed by
# reads or SQL statements followed by
# Commit. At any time before
# Commit, the client can send a
# Rollback request to abort the
@ -478,7 +527,50 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
# ##
# ## Partitioned DML Transactions
# Partitioned DML transactions are used to execute DML statements with a
# different execution strategy that provides different, and often better,
# scalability properties for large, table-wide operations than DML in a
# ReadWrite transaction. Smaller scoped statements, such as an OLTP workload,
# should prefer using ReadWrite transactions.
# Partitioned DML partitions the keyspace and runs the DML statement on each
# partition in separate, internal transactions. These transactions commit
# automatically when complete, and run independently from one another.
# To reduce lock contention, this execution strategy only acquires read locks
# on rows that match the WHERE clause of the statement. Additionally, the
# smaller per-partition transactions hold locks for less time.
# That said, Partitioned DML is not a drop-in replacement for standard DML used
# in ReadWrite transactions.
# - The DML statement must be fully-partitionable. Specifically, the statement
# must be expressible as the union of many statements which each access only
# a single row of the table.
# - The statement is not applied atomically to all rows of the table. Rather,
# the statement is applied atomically to partitions of the table, in
# independent transactions. Secondary index rows are updated atomically
# with the base table rows.
# - Partitioned DML does not guarantee exactly-once execution semantics
# against a partition. The statement will be applied at least once to each
# partition. It is strongly recommended that the DML statement should be
# idempotent to avoid unexpected results. For instance, it is potentially
# dangerous to run a statement such as
# `UPDATE table SET column = column + 1` as it could be run multiple times
# against some rows.
# - The partitions are committed automatically - there is no support for
# Commit or Rollback. If the call returns an error, or if the client issuing
# the ExecuteSql call dies, it is possible that some rows had the statement
# executed on them successfully. It is also possible that statement was
# never executed against other rows.
# - Partitioned DML transactions may only contain the execution of a single
# DML statement via ExecuteSql or ExecuteStreamingSql.
# - If any error is encountered during the execution of the partitioned DML
# operation (for instance, a UNIQUE INDEX violation, division by zero, or a
# value that cannot be stored due to schema constraints), then the
# operation is stopped at that point and an error is returned. It is
# possible that at this point, some partitions have been committed (or even
# committed multiple times), and other partitions have not been run at all.
# Given the above, Partitioned DML is good fit for large, database-wide,
# operations that are idempotent, such as deleting old rows from a very large
# table.
# Corresponds to the JSON property `singleUseTransaction`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :single_use_transaction
@ -796,6 +888,18 @@ module Google
# @return [String]
attr_accessor :resume_token
# A per-transaction sequence number used to identify this request. This
# makes each request idempotent such that if the request is received multiple
# times, at most one will succeed.
# The sequence number must be monotonically increasing within the
# transaction. If a request arrives for the first time with an out-of-order
# sequence number, the transaction may be aborted. Replays of previously
# handled requests will yield the same response as the first execution.
# Required for DML statements. Ignored for queries.
# Corresponds to the JSON property `seqno`
# @return [Fixnum]
attr_accessor :seqno
# Required. The SQL string.
# Corresponds to the JSON property `sql`
# @return [String]
@ -820,6 +924,7 @@ module Google
@partition_token = args[:partition_token] if args.key?(:partition_token)
@query_mode = args[:query_mode] if args.key?(:query_mode)
@resume_token = args[:resume_token] if args.key?(:resume_token)
@seqno = args[:seqno] if args.key?(:seqno)
@sql = args[:sql] if args.key?(:sql)
@transaction = args[:transaction] if args.key?(:transaction)
end
@ -1679,6 +1784,9 @@ module Google
# union operator conceptually divides one or more tables into multiple
# splits, remotely evaluates a subquery independently on each split, and
# then unions all results.
# This must not contain DML commands, such as INSERT, UPDATE, or
# DELETE. Use ExecuteStreamingSql with a
# PartitionedDml transaction for large, partition-friendly DML operations.
# Corresponds to the JSON property `sql`
# @return [String]
attr_accessor :sql
@ -1792,6 +1900,19 @@ module Google
end
end
# Message type to initiate a Partitioned DML transaction.
class PartitionedDml
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Node information for nodes appearing in a QueryPlan.plan_nodes.
class PlanNode
include Google::Apis::Core::Hashable
@ -2227,6 +2348,17 @@ module Google
# @return [Hash<String,Object>]
attr_accessor :query_stats
# Standard DML returns an exact count of rows that were modified.
# Corresponds to the JSON property `rowCountExact`
# @return [Fixnum]
attr_accessor :row_count_exact
# Partitioned DML does not offer exactly-once semantics, so it
# returns a lower bound of the rows modified.
# Corresponds to the JSON property `rowCountLowerBound`
# @return [Fixnum]
attr_accessor :row_count_lower_bound
def initialize(**args)
update!(**args)
end
@ -2235,6 +2367,8 @@ module Google
def update!(**args)
@query_plan = args[:query_plan] if args.key?(:query_plan)
@query_stats = args[:query_stats] if args.key?(:query_stats)
@row_count_exact = args[:row_count_exact] if args.key?(:row_count_exact)
@row_count_lower_bound = args[:row_count_lower_bound] if args.key?(:row_count_lower_bound)
end
end
@ -2567,7 +2701,7 @@ module Google
# re-used for the next transaction. It is not necessary to create a
# new session for each transaction.
# # Transaction Modes
# Cloud Spanner supports two transaction modes:
# Cloud Spanner supports three transaction modes:
# 1. Locking read-write. This type of transaction is the only way
# to write data into Cloud Spanner. These transactions rely on
# pessimistic locking and, if necessary, two-phase commit.
@ -2578,6 +2712,12 @@ module Google
# writes. Snapshot read-only transactions can be configured to
# read at timestamps in the past. Snapshot read-only
# transactions do not need to be committed.
# 3. Partitioned DML. This type of transaction is used to execute
# a single Partitioned DML statement. Partitioned DML partitions
# the key space and runs the DML statement over each partition
# in parallel using separate, internal transactions that commit
# independently. Partitioned DML transactions do not need to be
# committed.
# For transactions that only read, snapshot read-only transactions
# provide simpler semantics and are almost always faster. In
# particular, read-only transactions do not take locks, so they do
@ -2599,11 +2739,8 @@ module Google
# Rollback. Long periods of
# inactivity at the client may cause Cloud Spanner to release a
# transaction's locks and abort it.
# Reads performed within a transaction acquire locks on the data
# being read. Writes can only be done at commit time, after all reads
# have been completed.
# Conceptually, a read-write transaction consists of zero or more
# reads or SQL queries followed by
# reads or SQL statements followed by
# Commit. At any time before
# Commit, the client can send a
# Rollback request to abort the
@ -2729,10 +2866,58 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
# ##
# ## Partitioned DML Transactions
# Partitioned DML transactions are used to execute DML statements with a
# different execution strategy that provides different, and often better,
# scalability properties for large, table-wide operations than DML in a
# ReadWrite transaction. Smaller scoped statements, such as an OLTP workload,
# should prefer using ReadWrite transactions.
# Partitioned DML partitions the keyspace and runs the DML statement on each
# partition in separate, internal transactions. These transactions commit
# automatically when complete, and run independently from one another.
# To reduce lock contention, this execution strategy only acquires read locks
# on rows that match the WHERE clause of the statement. Additionally, the
# smaller per-partition transactions hold locks for less time.
# That said, Partitioned DML is not a drop-in replacement for standard DML used
# in ReadWrite transactions.
# - The DML statement must be fully-partitionable. Specifically, the statement
# must be expressible as the union of many statements which each access only
# a single row of the table.
# - The statement is not applied atomically to all rows of the table. Rather,
# the statement is applied atomically to partitions of the table, in
# independent transactions. Secondary index rows are updated atomically
# with the base table rows.
# - Partitioned DML does not guarantee exactly-once execution semantics
# against a partition. The statement will be applied at least once to each
# partition. It is strongly recommended that the DML statement should be
# idempotent to avoid unexpected results. For instance, it is potentially
# dangerous to run a statement such as
# `UPDATE table SET column = column + 1` as it could be run multiple times
# against some rows.
# - The partitions are committed automatically - there is no support for
# Commit or Rollback. If the call returns an error, or if the client issuing
# the ExecuteSql call dies, it is possible that some rows had the statement
# executed on them successfully. It is also possible that statement was
# never executed against other rows.
# - Partitioned DML transactions may only contain the execution of a single
# DML statement via ExecuteSql or ExecuteStreamingSql.
# - If any error is encountered during the execution of the partitioned DML
# operation (for instance, a UNIQUE INDEX violation, division by zero, or a
# value that cannot be stored due to schema constraints), then the
# operation is stopped at that point and an error is returned. It is
# possible that at this point, some partitions have been committed (or even
# committed multiple times), and other partitions have not been run at all.
# Given the above, Partitioned DML is good fit for large, database-wide,
# operations that are idempotent, such as deleting old rows from a very large
# table.
class TransactionOptions
include Google::Apis::Core::Hashable
# Message type to initiate a Partitioned DML transaction.
# Corresponds to the JSON property `partitionedDml`
# @return [Google::Apis::SpannerV1::PartitionedDml]
attr_accessor :partitioned_dml
# Message type to initiate a read-only transaction.
# Corresponds to the JSON property `readOnly`
# @return [Google::Apis::SpannerV1::ReadOnly]
@ -2750,6 +2935,7 @@ module Google
# Update properties of this object
def update!(**args)
@partitioned_dml = args[:partitioned_dml] if args.key?(:partitioned_dml)
@read_only = args[:read_only] if args.key?(:read_only)
@read_write = args[:read_write] if args.key?(:read_write)
end
@ -2768,7 +2954,7 @@ module Google
# re-used for the next transaction. It is not necessary to create a
# new session for each transaction.
# # Transaction Modes
# Cloud Spanner supports two transaction modes:
# Cloud Spanner supports three transaction modes:
# 1. Locking read-write. This type of transaction is the only way
# to write data into Cloud Spanner. These transactions rely on
# pessimistic locking and, if necessary, two-phase commit.
@ -2779,6 +2965,12 @@ module Google
# writes. Snapshot read-only transactions can be configured to
# read at timestamps in the past. Snapshot read-only
# transactions do not need to be committed.
# 3. Partitioned DML. This type of transaction is used to execute
# a single Partitioned DML statement. Partitioned DML partitions
# the key space and runs the DML statement over each partition
# in parallel using separate, internal transactions that commit
# independently. Partitioned DML transactions do not need to be
# committed.
# For transactions that only read, snapshot read-only transactions
# provide simpler semantics and are almost always faster. In
# particular, read-only transactions do not take locks, so they do
@ -2800,11 +2992,8 @@ module Google
# Rollback. Long periods of
# inactivity at the client may cause Cloud Spanner to release a
# transaction's locks and abort it.
# Reads performed within a transaction acquire locks on the data
# being read. Writes can only be done at commit time, after all reads
# have been completed.
# Conceptually, a read-write transaction consists of zero or more
# reads or SQL queries followed by
# reads or SQL statements followed by
# Commit. At any time before
# Commit, the client can send a
# Rollback request to abort the
@ -2930,7 +3119,50 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
# ##
# ## Partitioned DML Transactions
# Partitioned DML transactions are used to execute DML statements with a
# different execution strategy that provides different, and often better,
# scalability properties for large, table-wide operations than DML in a
# ReadWrite transaction. Smaller scoped statements, such as an OLTP workload,
# should prefer using ReadWrite transactions.
# Partitioned DML partitions the keyspace and runs the DML statement on each
# partition in separate, internal transactions. These transactions commit
# automatically when complete, and run independently from one another.
# To reduce lock contention, this execution strategy only acquires read locks
# on rows that match the WHERE clause of the statement. Additionally, the
# smaller per-partition transactions hold locks for less time.
# That said, Partitioned DML is not a drop-in replacement for standard DML used
# in ReadWrite transactions.
# - The DML statement must be fully-partitionable. Specifically, the statement
# must be expressible as the union of many statements which each access only
# a single row of the table.
# - The statement is not applied atomically to all rows of the table. Rather,
# the statement is applied atomically to partitions of the table, in
# independent transactions. Secondary index rows are updated atomically
# with the base table rows.
# - Partitioned DML does not guarantee exactly-once execution semantics
# against a partition. The statement will be applied at least once to each
# partition. It is strongly recommended that the DML statement should be
# idempotent to avoid unexpected results. For instance, it is potentially
# dangerous to run a statement such as
# `UPDATE table SET column = column + 1` as it could be run multiple times
# against some rows.
# - The partitions are committed automatically - there is no support for
# Commit or Rollback. If the call returns an error, or if the client issuing
# the ExecuteSql call dies, it is possible that some rows had the statement
# executed on them successfully. It is also possible that statement was
# never executed against other rows.
# - Partitioned DML transactions may only contain the execution of a single
# DML statement via ExecuteSql or ExecuteStreamingSql.
# - If any error is encountered during the execution of the partitioned DML
# operation (for instance, a UNIQUE INDEX violation, division by zero, or a
# value that cannot be stored due to schema constraints), then the
# operation is stopped at that point and an error is returned. It is
# possible that at this point, some partitions have been committed (or even
# committed multiple times), and other partitions have not been run at all.
# Given the above, Partitioned DML is good fit for large, database-wide,
# operations that are idempotent, such as deleting old rows from a very large
# table.
# Corresponds to the JSON property `begin`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :begin
@ -2947,7 +3179,7 @@ module Google
# re-used for the next transaction. It is not necessary to create a
# new session for each transaction.
# # Transaction Modes
# Cloud Spanner supports two transaction modes:
# Cloud Spanner supports three transaction modes:
# 1. Locking read-write. This type of transaction is the only way
# to write data into Cloud Spanner. These transactions rely on
# pessimistic locking and, if necessary, two-phase commit.
@ -2958,6 +3190,12 @@ module Google
# writes. Snapshot read-only transactions can be configured to
# read at timestamps in the past. Snapshot read-only
# transactions do not need to be committed.
# 3. Partitioned DML. This type of transaction is used to execute
# a single Partitioned DML statement. Partitioned DML partitions
# the key space and runs the DML statement over each partition
# in parallel using separate, internal transactions that commit
# independently. Partitioned DML transactions do not need to be
# committed.
# For transactions that only read, snapshot read-only transactions
# provide simpler semantics and are almost always faster. In
# particular, read-only transactions do not take locks, so they do
@ -2979,11 +3217,8 @@ module Google
# Rollback. Long periods of
# inactivity at the client may cause Cloud Spanner to release a
# transaction's locks and abort it.
# Reads performed within a transaction acquire locks on the data
# being read. Writes can only be done at commit time, after all reads
# have been completed.
# Conceptually, a read-write transaction consists of zero or more
# reads or SQL queries followed by
# reads or SQL statements followed by
# Commit. At any time before
# Commit, the client can send a
# Rollback request to abort the
@ -3109,7 +3344,50 @@ module Google
# restriction also applies to in-progress reads and/or SQL queries whose
# timestamp become too old while executing. Reads and SQL queries with
# too-old read timestamps fail with the error `FAILED_PRECONDITION`.
# ##
# ## Partitioned DML Transactions
# Partitioned DML transactions are used to execute DML statements with a
# different execution strategy that provides different, and often better,
# scalability properties for large, table-wide operations than DML in a
# ReadWrite transaction. Smaller scoped statements, such as an OLTP workload,
# should prefer using ReadWrite transactions.
# Partitioned DML partitions the keyspace and runs the DML statement on each
# partition in separate, internal transactions. These transactions commit
# automatically when complete, and run independently from one another.
# To reduce lock contention, this execution strategy only acquires read locks
# on rows that match the WHERE clause of the statement. Additionally, the
# smaller per-partition transactions hold locks for less time.
# That said, Partitioned DML is not a drop-in replacement for standard DML used
# in ReadWrite transactions.
# - The DML statement must be fully-partitionable. Specifically, the statement
# must be expressible as the union of many statements which each access only
# a single row of the table.
# - The statement is not applied atomically to all rows of the table. Rather,
# the statement is applied atomically to partitions of the table, in
# independent transactions. Secondary index rows are updated atomically
# with the base table rows.
# - Partitioned DML does not guarantee exactly-once execution semantics
# against a partition. The statement will be applied at least once to each
# partition. It is strongly recommended that the DML statement should be
# idempotent to avoid unexpected results. For instance, it is potentially
# dangerous to run a statement such as
# `UPDATE table SET column = column + 1` as it could be run multiple times
# against some rows.
# - The partitions are committed automatically - there is no support for
# Commit or Rollback. If the call returns an error, or if the client issuing
# the ExecuteSql call dies, it is possible that some rows had the statement
# executed on them successfully. It is also possible that statement was
# never executed against other rows.
# - Partitioned DML transactions may only contain the execution of a single
# DML statement via ExecuteSql or ExecuteStreamingSql.
# - If any error is encountered during the execution of the partitioned DML
# operation (for instance, a UNIQUE INDEX violation, division by zero, or a
# value that cannot be stored due to schema constraints), then the
# operation is stopped at that point and an error is returned. It is
# possible that at this point, some partitions have been committed (or even
# committed multiple times), and other partitions have not been run at all.
# Given the above, Partitioned DML is good fit for large, database-wide,
# operations that are idempotent, such as deleting old rows from a very large
# table.
# Corresponds to the JSON property `singleUse`
# @return [Google::Apis::SpannerV1::TransactionOptions]
attr_accessor :single_use

View File

@ -232,6 +232,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PartitionedDml
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlanNode
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -508,6 +514,7 @@ module Google
property :partition_token, :base64 => true, as: 'partitionToken'
property :query_mode, as: 'queryMode'
property :resume_token, :base64 => true, as: 'resumeToken'
property :seqno, :numeric_string => true, as: 'seqno'
property :sql, as: 'sql'
property :transaction, as: 'transaction', class: Google::Apis::SpannerV1::TransactionSelector, decorator: Google::Apis::SpannerV1::TransactionSelector::Representation
@ -730,6 +737,12 @@ module Google
end
end
class PartitionedDml
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class PlanNode
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -828,6 +841,8 @@ module Google
property :query_plan, as: 'queryPlan', class: Google::Apis::SpannerV1::QueryPlan, decorator: Google::Apis::SpannerV1::QueryPlan::Representation
hash :query_stats, as: 'queryStats'
property :row_count_exact, :numeric_string => true, as: 'rowCountExact'
property :row_count_lower_bound, :numeric_string => true, as: 'rowCountLowerBound'
end
end
@ -906,6 +921,8 @@ module Google
class TransactionOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :partitioned_dml, as: 'partitionedDml', class: Google::Apis::SpannerV1::PartitionedDml, decorator: Google::Apis::SpannerV1::PartitionedDml::Representation
property :read_only, as: 'readOnly', class: Google::Apis::SpannerV1::ReadOnly, decorator: Google::Apis::SpannerV1::ReadOnly::Representation
property :read_write, as: 'readWrite', class: Google::Apis::SpannerV1::ReadWrite, decorator: Google::Apis::SpannerV1::ReadWrite::Representation