Enable more APIs & regen
This commit is contained in:
parent
9efb39e7b8
commit
78017a9f39
38073
api_names.yaml
38073
api_names.yaml
File diff suppressed because it is too large
Load Diff
37879
api_names_out.yaml
37879
api_names_out.yaml
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,32 @@
|
||||||
|
# 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/acceleratedmobilepageurl_v1/service.rb'
|
||||||
|
require 'google/apis/acceleratedmobilepageurl_v1/classes.rb'
|
||||||
|
require 'google/apis/acceleratedmobilepageurl_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Accelerated Mobile Pages (AMP) URL API
|
||||||
|
#
|
||||||
|
# This API contains a single method, batchGet. Call this method to retrieve the
|
||||||
|
# AMP URL (and equivalent AMP Cache URL) for given public URL(s).
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/amp/cache/
|
||||||
|
module AcceleratedmobilepageurlV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170329'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,144 @@
|
||||||
|
# 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 AcceleratedmobilepageurlV1
|
||||||
|
|
||||||
|
# AMP URL Error resource for a requested URL that couldn't be found.
|
||||||
|
class AmpUrlError
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# An optional descriptive error message.
|
||||||
|
# Corresponds to the JSON property `errorMessage`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :error_message
|
||||||
|
|
||||||
|
# The error code of an API call.
|
||||||
|
# Corresponds to the JSON property `errorCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :error_code
|
||||||
|
|
||||||
|
# The original non-AMP URL.
|
||||||
|
# Corresponds to the JSON property `originalUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :original_url
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@error_message = args[:error_message] if args.key?(:error_message)
|
||||||
|
@error_code = args[:error_code] if args.key?(:error_code)
|
||||||
|
@original_url = args[:original_url] if args.key?(:original_url)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# AMP URL request for a batch of URLs.
|
||||||
|
class BatchGetAmpUrlsRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of URLs to look up for the paired AMP URLs.
|
||||||
|
# The URLs are case-sensitive. Up to 50 URLs per lookup
|
||||||
|
# (see [Usage Limits](/amp/cache/reference/limits)).
|
||||||
|
# Corresponds to the JSON property `urls`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :urls
|
||||||
|
|
||||||
|
# The lookup_strategy being requested.
|
||||||
|
# Corresponds to the JSON property `lookupStrategy`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :lookup_strategy
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@urls = args[:urls] if args.key?(:urls)
|
||||||
|
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Batch AMP URL response.
|
||||||
|
class BatchGetAmpUrlsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
|
||||||
|
# not be in the same order as URLs in the batch request.
|
||||||
|
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
|
||||||
|
# only once.
|
||||||
|
# Corresponds to the JSON property `ampUrls`
|
||||||
|
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
|
||||||
|
attr_accessor :amp_urls
|
||||||
|
|
||||||
|
# The errors for requested URLs that have no AMP URL.
|
||||||
|
# Corresponds to the JSON property `urlErrors`
|
||||||
|
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
|
||||||
|
attr_accessor :url_errors
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
|
||||||
|
@url_errors = args[:url_errors] if args.key?(:url_errors)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# AMP URL response for a requested URL.
|
||||||
|
class AmpUrl
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The original non-AMP URL.
|
||||||
|
# Corresponds to the JSON property `originalUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :original_url
|
||||||
|
|
||||||
|
# The AMP URL pointing to the publisher's web server.
|
||||||
|
# Corresponds to the JSON property `ampUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :amp_url
|
||||||
|
|
||||||
|
# The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
|
||||||
|
# the cached document in the Google AMP Cache.
|
||||||
|
# Corresponds to the JSON property `cdnAmpUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :cdn_amp_url
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@original_url = args[:original_url] if args.key?(:original_url)
|
||||||
|
@amp_url = args[:amp_url] if args.key?(:amp_url)
|
||||||
|
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,86 @@
|
||||||
|
# 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 AcceleratedmobilepageurlV1
|
||||||
|
|
||||||
|
class AmpUrlError
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchGetAmpUrlsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchGetAmpUrlsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AmpUrl
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AmpUrlError
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error_message, as: 'errorMessage'
|
||||||
|
property :error_code, as: 'errorCode'
|
||||||
|
property :original_url, as: 'originalUrl'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchGetAmpUrlsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :urls, as: 'urls'
|
||||||
|
property :lookup_strategy, as: 'lookupStrategy'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchGetAmpUrlsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
|
||||||
|
|
||||||
|
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AmpUrl
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :original_url, as: 'originalUrl'
|
||||||
|
property :amp_url, as: 'ampUrl'
|
||||||
|
property :cdn_amp_url, as: 'cdnAmpUrl'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,90 @@
|
||||||
|
# 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 AcceleratedmobilepageurlV1
|
||||||
|
# Accelerated Mobile Pages (AMP) URL API
|
||||||
|
#
|
||||||
|
# This API contains a single method, batchGet. Call this method to retrieve the
|
||||||
|
# AMP URL (and equivalent AMP Cache URL) for given public URL(s).
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/acceleratedmobilepageurl_v1'
|
||||||
|
#
|
||||||
|
# Acceleratedmobilepageurl = Google::Apis::AcceleratedmobilepageurlV1 # Alias the module
|
||||||
|
# service = Acceleratedmobilepageurl::AcceleratedmobilepageurlService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/amp/cache/
|
||||||
|
class AcceleratedmobilepageurlService < 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://acceleratedmobilepageurl.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns AMP URL(s) and equivalent
|
||||||
|
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||||
|
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_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::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse]
|
||||||
|
#
|
||||||
|
# @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 batch_get_amp_urls(batch_get_amp_urls_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/ampUrls:batchGet', options)
|
||||||
|
command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation
|
||||||
|
command.request_object = batch_get_amp_urls_request_object
|
||||||
|
command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
|
||||||
|
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
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
||||||
module Adexchangebuyer2V2beta1
|
module Adexchangebuyer2V2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20170324'
|
REVISION = '20170329'
|
||||||
|
|
||||||
# Manage your Ad Exchange buyer account configuration
|
# Manage your Ad Exchange buyer account configuration
|
||||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||||
|
|
|
@ -22,6 +22,25 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module Adexchangebuyer2V2beta1
|
module Adexchangebuyer2V2beta1
|
||||||
|
|
||||||
|
# A generic empty message that you can re-use to avoid defining duplicated
|
||||||
|
# empty messages in your APIs. A typical example is to use it as the request
|
||||||
|
# or the response type of an API method. For instance:
|
||||||
|
# service Foo `
|
||||||
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||||
|
# `
|
||||||
|
# The JSON representation for `Empty` is empty JSON object ````.
|
||||||
|
class Empty
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A request for watching changes to creative Status.
|
# A request for watching changes to creative Status.
|
||||||
class WatchCreativeRequest
|
class WatchCreativeRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -68,11 +87,6 @@ module Google
|
||||||
class ListClientsResponse
|
class ListClientsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The returned list of clients.
|
|
||||||
# Corresponds to the JSON property `clients`
|
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
|
|
||||||
attr_accessor :clients
|
|
||||||
|
|
||||||
# A token to retrieve the next page of results.
|
# A token to retrieve the next page of results.
|
||||||
# Pass this value in the
|
# Pass this value in the
|
||||||
# ListClientsRequest.pageToken
|
# ListClientsRequest.pageToken
|
||||||
|
@ -83,14 +97,19 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The returned list of clients.
|
||||||
|
# Corresponds to the JSON property `clients`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
|
||||||
|
attr_accessor :clients
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@clients = args[:clients] if args.key?(:clients)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@clients = args[:clients] if args.key?(:clients)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -98,43 +117,6 @@ module Google
|
||||||
class NativeContent
|
class NativeContent
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The URL to fetch a native video ad.
|
|
||||||
# Corresponds to the JSON property `videoUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :video_url
|
|
||||||
|
|
||||||
# An image resource. You may provide a larger image than was requested,
|
|
||||||
# so long as the aspect ratio is preserved.
|
|
||||||
# Corresponds to the JSON property `logo`
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
|
|
||||||
attr_accessor :logo
|
|
||||||
|
|
||||||
# The URL that the browser/SDK will load when the user clicks the ad.
|
|
||||||
# Corresponds to the JSON property `clickLinkUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :click_link_url
|
|
||||||
|
|
||||||
# The price of the promoted app including currency info.
|
|
||||||
# Corresponds to the JSON property `priceDisplayText`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :price_display_text
|
|
||||||
|
|
||||||
# The URL to use for click tracking.
|
|
||||||
# Corresponds to the JSON property `clickTrackingUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :click_tracking_url
|
|
||||||
|
|
||||||
# An image resource. You may provide a larger image than was requested,
|
|
||||||
# so long as the aspect ratio is preserved.
|
|
||||||
# Corresponds to the JSON property `image`
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
|
|
||||||
attr_accessor :image
|
|
||||||
|
|
||||||
# The name of the advertiser or sponsor, to be displayed in the ad creative.
|
|
||||||
# Corresponds to the JSON property `advertiserName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :advertiser_name
|
|
||||||
|
|
||||||
# The URL to the app store to purchase/download the promoted app.
|
# The URL to the app store to purchase/download the promoted app.
|
||||||
# Corresponds to the JSON property `storeUrl`
|
# Corresponds to the JSON property `storeUrl`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -166,25 +148,62 @@ module Google
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :star_rating
|
attr_accessor :star_rating
|
||||||
|
|
||||||
|
# The URL to fetch a native video ad.
|
||||||
|
# Corresponds to the JSON property `videoUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :video_url
|
||||||
|
|
||||||
|
# The URL that the browser/SDK will load when the user clicks the ad.
|
||||||
|
# Corresponds to the JSON property `clickLinkUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :click_link_url
|
||||||
|
|
||||||
|
# An image resource. You may provide a larger image than was requested,
|
||||||
|
# so long as the aspect ratio is preserved.
|
||||||
|
# Corresponds to the JSON property `logo`
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
|
||||||
|
attr_accessor :logo
|
||||||
|
|
||||||
|
# The price of the promoted app including currency info.
|
||||||
|
# Corresponds to the JSON property `priceDisplayText`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :price_display_text
|
||||||
|
|
||||||
|
# The URL to use for click tracking.
|
||||||
|
# Corresponds to the JSON property `clickTrackingUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :click_tracking_url
|
||||||
|
|
||||||
|
# An image resource. You may provide a larger image than was requested,
|
||||||
|
# so long as the aspect ratio is preserved.
|
||||||
|
# Corresponds to the JSON property `image`
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
|
||||||
|
attr_accessor :image
|
||||||
|
|
||||||
|
# The name of the advertiser or sponsor, to be displayed in the ad creative.
|
||||||
|
# Corresponds to the JSON property `advertiserName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :advertiser_name
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@video_url = args[:video_url] if args.key?(:video_url)
|
|
||||||
@logo = args[:logo] if args.key?(:logo)
|
|
||||||
@click_link_url = args[:click_link_url] if args.key?(:click_link_url)
|
|
||||||
@price_display_text = args[:price_display_text] if args.key?(:price_display_text)
|
|
||||||
@click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
|
|
||||||
@image = args[:image] if args.key?(:image)
|
|
||||||
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
|
|
||||||
@store_url = args[:store_url] if args.key?(:store_url)
|
@store_url = args[:store_url] if args.key?(:store_url)
|
||||||
@headline = args[:headline] if args.key?(:headline)
|
@headline = args[:headline] if args.key?(:headline)
|
||||||
@app_icon = args[:app_icon] if args.key?(:app_icon)
|
@app_icon = args[:app_icon] if args.key?(:app_icon)
|
||||||
@call_to_action = args[:call_to_action] if args.key?(:call_to_action)
|
@call_to_action = args[:call_to_action] if args.key?(:call_to_action)
|
||||||
@body = args[:body] if args.key?(:body)
|
@body = args[:body] if args.key?(:body)
|
||||||
@star_rating = args[:star_rating] if args.key?(:star_rating)
|
@star_rating = args[:star_rating] if args.key?(:star_rating)
|
||||||
|
@video_url = args[:video_url] if args.key?(:video_url)
|
||||||
|
@click_link_url = args[:click_link_url] if args.key?(:click_link_url)
|
||||||
|
@logo = args[:logo] if args.key?(:logo)
|
||||||
|
@price_display_text = args[:price_display_text] if args.key?(:price_display_text)
|
||||||
|
@click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
|
||||||
|
@image = args[:image] if args.key?(:image)
|
||||||
|
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -207,6 +226,35 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A response for listing creatives.
|
||||||
|
class ListCreativesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of creatives.
|
||||||
|
# Corresponds to the JSON property `creatives`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Creative>]
|
||||||
|
attr_accessor :creatives
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results.
|
||||||
|
# Pass this value in the
|
||||||
|
# ListCreativesRequest.page_token
|
||||||
|
# field in the subsequent call to `ListCreatives` method to retrieve the next
|
||||||
|
# page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@creatives = args[:creatives] if args.key?(:creatives)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# HTML content for a creative.
|
# HTML content for a creative.
|
||||||
class HtmlContent
|
class HtmlContent
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -238,49 +286,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A response for listing creatives.
|
|
||||||
class ListCreativesResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The list of creatives.
|
|
||||||
# Corresponds to the JSON property `creatives`
|
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Creative>]
|
|
||||||
attr_accessor :creatives
|
|
||||||
|
|
||||||
# A token to retrieve the next page of results.
|
|
||||||
# Pass this value in the
|
|
||||||
# ListCreativesRequest.page_token
|
|
||||||
# field in the subsequent call to `ListCreatives` method to retrieve the next
|
|
||||||
# page of results.
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :next_page_token
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@creatives = args[:creatives] if args.key?(:creatives)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The serving context for this restriction.
|
# The serving context for this restriction.
|
||||||
class ServingContext
|
class ServingContext
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# @OutputOnly The app type the restriction applies to for mobile device.
|
|
||||||
# Corresponds to the JSON property `appType`
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::AppContext]
|
|
||||||
attr_accessor :app_type
|
|
||||||
|
|
||||||
# @OutputOnly A security context.
|
|
||||||
# Corresponds to the JSON property `securityType`
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext]
|
|
||||||
attr_accessor :security_type
|
|
||||||
|
|
||||||
# @OutputOnly The type of platform the restriction applies to.
|
# @OutputOnly The type of platform the restriction applies to.
|
||||||
# Corresponds to the JSON property `platform`
|
# Corresponds to the JSON property `platform`
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext]
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext]
|
||||||
|
@ -301,18 +310,28 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :all
|
attr_accessor :all
|
||||||
|
|
||||||
|
# @OutputOnly The app type the restriction applies to for mobile device.
|
||||||
|
# Corresponds to the JSON property `appType`
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::AppContext]
|
||||||
|
attr_accessor :app_type
|
||||||
|
|
||||||
|
# @OutputOnly A security context.
|
||||||
|
# Corresponds to the JSON property `securityType`
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext]
|
||||||
|
attr_accessor :security_type
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@app_type = args[:app_type] if args.key?(:app_type)
|
|
||||||
@security_type = args[:security_type] if args.key?(:security_type)
|
|
||||||
@platform = args[:platform] if args.key?(:platform)
|
@platform = args[:platform] if args.key?(:platform)
|
||||||
@location = args[:location] if args.key?(:location)
|
@location = args[:location] if args.key?(:location)
|
||||||
@auction_type = args[:auction_type] if args.key?(:auction_type)
|
@auction_type = args[:auction_type] if args.key?(:auction_type)
|
||||||
@all = args[:all] if args.key?(:all)
|
@all = args[:all] if args.key?(:all)
|
||||||
|
@app_type = args[:app_type] if args.key?(:app_type)
|
||||||
|
@security_type = args[:security_type] if args.key?(:security_type)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -352,6 +371,12 @@ module Google
|
||||||
class Reason
|
class Reason
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of times the creative was filtered for the status. The
|
||||||
|
# count is aggregated across all publishers on the exchange.
|
||||||
|
# Corresponds to the JSON property `count`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :count
|
||||||
|
|
||||||
# The filtering status code. Please refer to the
|
# The filtering status code. Please refer to the
|
||||||
# [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-
|
# [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-
|
||||||
# dictionaries/creative-status-codes.txt)
|
# dictionaries/creative-status-codes.txt)
|
||||||
|
@ -360,20 +385,14 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# The number of times the creative was filtered for the status. The
|
|
||||||
# count is aggregated across all publishers on the exchange.
|
|
||||||
# Corresponds to the JSON property `count`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :count
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@status = args[:status] if args.key?(:status)
|
|
||||||
@count = args[:count] if args.key?(:count)
|
@count = args[:count] if args.key?(:count)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -453,37 +472,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
|
||||||
class ListClientUserInvitationsResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A token to retrieve the next page of results.
|
|
||||||
# Pass this value in the
|
|
||||||
# ListClientUserInvitationsRequest.pageToken
|
|
||||||
# field in the subsequent call to the
|
|
||||||
# clients.invitations.list
|
|
||||||
# method to retrieve the next
|
|
||||||
# page of results.
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :next_page_token
|
|
||||||
|
|
||||||
# The returned list of client users.
|
|
||||||
# Corresponds to the JSON property `invitations`
|
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
|
|
||||||
attr_accessor :invitations
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
||||||
@invitations = args[:invitations] if args.key?(:invitations)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
class ListClientUsersResponse
|
class ListClientUsersResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -515,6 +503,37 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ListClientUserInvitationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results.
|
||||||
|
# Pass this value in the
|
||||||
|
# ListClientUserInvitationsRequest.pageToken
|
||||||
|
# field in the subsequent call to the
|
||||||
|
# clients.invitations.list
|
||||||
|
# method to retrieve the next
|
||||||
|
# page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The returned list of client users.
|
||||||
|
# Corresponds to the JSON property `invitations`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
|
||||||
|
attr_accessor :invitations
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@invitations = args[:invitations] if args.key?(:invitations)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# @OutputOnly The Geo criteria the restriction applies to.
|
# @OutputOnly The Geo criteria the restriction applies to.
|
||||||
class LocationContext
|
class LocationContext
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -570,11 +589,6 @@ module Google
|
||||||
class ClientUser
|
class ClientUser
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The status of the client user.
|
|
||||||
# Corresponds to the JSON property `status`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :status
|
|
||||||
|
|
||||||
# The unique numerical ID of the client user
|
# The unique numerical ID of the client user
|
||||||
# that has accepted an invitation.
|
# that has accepted an invitation.
|
||||||
# The value of this field is ignored in an update operation.
|
# The value of this field is ignored in an update operation.
|
||||||
|
@ -596,16 +610,21 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :client_account_id
|
attr_accessor :client_account_id
|
||||||
|
|
||||||
|
# The status of the client user.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@status = args[:status] if args.key?(:status)
|
|
||||||
@user_id = args[:user_id] if args.key?(:user_id)
|
@user_id = args[:user_id] if args.key?(:user_id)
|
||||||
@email = args[:email] if args.key?(:email)
|
@email = args[:email] if args.key?(:email)
|
||||||
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
|
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -613,6 +632,11 @@ module Google
|
||||||
class CreativeDealAssociation
|
class CreativeDealAssociation
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The account the creative belongs to.
|
||||||
|
# Corresponds to the JSON property `accountId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :account_id
|
||||||
|
|
||||||
# The ID of the creative associated with the deal.
|
# The ID of the creative associated with the deal.
|
||||||
# Corresponds to the JSON property `creativeId`
|
# Corresponds to the JSON property `creativeId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -623,20 +647,15 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :deals_id
|
attr_accessor :deals_id
|
||||||
|
|
||||||
# The account the creative belongs to.
|
|
||||||
# Corresponds to the JSON property `accountId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :account_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@account_id = args[:account_id] if args.key?(:account_id)
|
||||||
@creative_id = args[:creative_id] if args.key?(:creative_id)
|
@creative_id = args[:creative_id] if args.key?(:creative_id)
|
||||||
@deals_id = args[:deals_id] if args.key?(:deals_id)
|
@deals_id = args[:deals_id] if args.key?(:deals_id)
|
||||||
@account_id = args[:account_id] if args.key?(:account_id)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -676,6 +695,80 @@ module Google
|
||||||
class Creative
|
class Creative
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The agency ID for this creative.
|
||||||
|
# Corresponds to the JSON property `agencyId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :agency_id
|
||||||
|
|
||||||
|
# The set of destination URLs for the creative.
|
||||||
|
# Corresponds to the JSON property `clickThroughUrls`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :click_through_urls
|
||||||
|
|
||||||
|
# The link to AdChoices destination page.
|
||||||
|
# Corresponds to the JSON property `adChoicesDestinationUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ad_choices_destination_url
|
||||||
|
|
||||||
|
# @OutputOnly Detected sensitive categories, if any.
|
||||||
|
# See the ad-sensitive-categories.txt file in the technical documentation for
|
||||||
|
# a list of IDs. You should use these IDs along with the
|
||||||
|
# excluded-sensitive-category field in the bid request to filter your bids.
|
||||||
|
# Corresponds to the JSON property `detectedSensitiveCategories`
|
||||||
|
# @return [Array<Fixnum>]
|
||||||
|
attr_accessor :detected_sensitive_categories
|
||||||
|
|
||||||
|
# All restricted categories for the ads that may be shown from this creative.
|
||||||
|
# Corresponds to the JSON property `restrictedCategories`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :restricted_categories
|
||||||
|
|
||||||
|
# @OutputOnly Shows any corrections that were applied to this creative.
|
||||||
|
# Corresponds to the JSON property `corrections`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Correction>]
|
||||||
|
attr_accessor :corrections
|
||||||
|
|
||||||
|
# @OutputOnly The version of this creative.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
# All vendor IDs for the ads that may be shown from this creative.
|
||||||
|
# See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
|
||||||
|
# for possible values.
|
||||||
|
# Corresponds to the JSON property `vendorIds`
|
||||||
|
# @return [Array<Fixnum>]
|
||||||
|
attr_accessor :vendor_ids
|
||||||
|
|
||||||
|
# The set of URLs to be called to record an impression.
|
||||||
|
# Corresponds to the JSON property `impressionTrackingUrls`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :impression_tracking_urls
|
||||||
|
|
||||||
|
# HTML content for a creative.
|
||||||
|
# Corresponds to the JSON property `html`
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::HtmlContent]
|
||||||
|
attr_accessor :html
|
||||||
|
|
||||||
|
# @OutputOnly Detected product categories, if any.
|
||||||
|
# See the ad-product-categories.txt file in the technical documentation
|
||||||
|
# for a list of IDs.
|
||||||
|
# Corresponds to the JSON property `detectedProductCategories`
|
||||||
|
# @return [Array<Fixnum>]
|
||||||
|
attr_accessor :detected_product_categories
|
||||||
|
|
||||||
|
# @OutputOnly The top-level deals status of this creative.
|
||||||
|
# If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
|
||||||
|
# serving_restrictions will also exist. Note
|
||||||
|
# that this may be nuanced with other contextual restrictions, in which case,
|
||||||
|
# it may be preferable to read from serving_restrictions directly.
|
||||||
|
# Can be used to filter the response of the
|
||||||
|
# creatives.list
|
||||||
|
# method.
|
||||||
|
# Corresponds to the JSON property `dealsStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :deals_status
|
||||||
|
|
||||||
# @OutputOnly The top-level open auction status of this creative.
|
# @OutputOnly The top-level open auction status of this creative.
|
||||||
# If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
|
# If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
|
||||||
# serving_restrictions will also exist. Note
|
# serving_restrictions will also exist. Note
|
||||||
|
@ -752,6 +845,11 @@ module Google
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::NativeContent]
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::NativeContent]
|
||||||
attr_accessor :native
|
attr_accessor :native
|
||||||
|
|
||||||
|
# Video content for a creative.
|
||||||
|
# Corresponds to the JSON property `video`
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::VideoContent]
|
||||||
|
attr_accessor :video
|
||||||
|
|
||||||
# @OutputOnly The granular status of this ad in specific contexts.
|
# @OutputOnly The granular status of this ad in specific contexts.
|
||||||
# A context here relates to where something ultimately serves (for example,
|
# A context here relates to where something ultimately serves (for example,
|
||||||
# a physical location, a platform, an HTTPS vs HTTP request, or the type
|
# a physical location, a platform, an HTTPS vs HTTP request, or the type
|
||||||
|
@ -760,91 +858,24 @@ module Google
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction>]
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction>]
|
||||||
attr_accessor :serving_restrictions
|
attr_accessor :serving_restrictions
|
||||||
|
|
||||||
# Video content for a creative.
|
|
||||||
# Corresponds to the JSON property `video`
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::VideoContent]
|
|
||||||
attr_accessor :video
|
|
||||||
|
|
||||||
# The agency ID for this creative.
|
|
||||||
# Corresponds to the JSON property `agencyId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :agency_id
|
|
||||||
|
|
||||||
# The set of destination URLs for the creative.
|
|
||||||
# Corresponds to the JSON property `clickThroughUrls`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :click_through_urls
|
|
||||||
|
|
||||||
# The link to AdChoices destination page.
|
|
||||||
# Corresponds to the JSON property `adChoicesDestinationUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :ad_choices_destination_url
|
|
||||||
|
|
||||||
# @OutputOnly Detected sensitive categories, if any.
|
|
||||||
# See the ad-sensitive-categories.txt file in the technical documentation for
|
|
||||||
# a list of IDs. You should use these IDs along with the
|
|
||||||
# excluded-sensitive-category field in the bid request to filter your bids.
|
|
||||||
# Corresponds to the JSON property `detectedSensitiveCategories`
|
|
||||||
# @return [Array<Fixnum>]
|
|
||||||
attr_accessor :detected_sensitive_categories
|
|
||||||
|
|
||||||
# All restricted categories for the ads that may be shown from this creative.
|
|
||||||
# Corresponds to the JSON property `restrictedCategories`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :restricted_categories
|
|
||||||
|
|
||||||
# @OutputOnly Shows any corrections that were applied to this creative.
|
|
||||||
# Corresponds to the JSON property `corrections`
|
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Correction>]
|
|
||||||
attr_accessor :corrections
|
|
||||||
|
|
||||||
# @OutputOnly The version of this creative.
|
|
||||||
# Corresponds to the JSON property `version`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :version
|
|
||||||
|
|
||||||
# All vendor IDs for the ads that may be shown from this creative.
|
|
||||||
# See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
|
|
||||||
# for possible values.
|
|
||||||
# Corresponds to the JSON property `vendorIds`
|
|
||||||
# @return [Array<Fixnum>]
|
|
||||||
attr_accessor :vendor_ids
|
|
||||||
|
|
||||||
# The set of URLs to be called to record an impression.
|
|
||||||
# Corresponds to the JSON property `impressionTrackingUrls`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :impression_tracking_urls
|
|
||||||
|
|
||||||
# HTML content for a creative.
|
|
||||||
# Corresponds to the JSON property `html`
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::HtmlContent]
|
|
||||||
attr_accessor :html
|
|
||||||
|
|
||||||
# @OutputOnly The top-level deals status of this creative.
|
|
||||||
# If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
|
|
||||||
# serving_restrictions will also exist. Note
|
|
||||||
# that this may be nuanced with other contextual restrictions, in which case,
|
|
||||||
# it may be preferable to read from serving_restrictions directly.
|
|
||||||
# Can be used to filter the response of the
|
|
||||||
# creatives.list
|
|
||||||
# method.
|
|
||||||
# Corresponds to the JSON property `dealsStatus`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :deals_status
|
|
||||||
|
|
||||||
# @OutputOnly Detected product categories, if any.
|
|
||||||
# See the ad-product-categories.txt file in the technical documentation
|
|
||||||
# for a list of IDs.
|
|
||||||
# Corresponds to the JSON property `detectedProductCategories`
|
|
||||||
# @return [Array<Fixnum>]
|
|
||||||
attr_accessor :detected_product_categories
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@agency_id = args[:agency_id] if args.key?(:agency_id)
|
||||||
|
@click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls)
|
||||||
|
@ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
|
||||||
|
@detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
|
||||||
|
@restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
|
||||||
|
@corrections = args[:corrections] if args.key?(:corrections)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
@vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
|
||||||
|
@impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
|
||||||
|
@html = args[:html] if args.key?(:html)
|
||||||
|
@detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
|
||||||
|
@deals_status = args[:deals_status] if args.key?(:deals_status)
|
||||||
@open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
|
@open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
|
||||||
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
|
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
|
||||||
@detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
|
@detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
|
||||||
|
@ -856,20 +887,8 @@ module Google
|
||||||
@creative_id = args[:creative_id] if args.key?(:creative_id)
|
@creative_id = args[:creative_id] if args.key?(:creative_id)
|
||||||
@account_id = args[:account_id] if args.key?(:account_id)
|
@account_id = args[:account_id] if args.key?(:account_id)
|
||||||
@native = args[:native] if args.key?(:native)
|
@native = args[:native] if args.key?(:native)
|
||||||
@serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
|
|
||||||
@video = args[:video] if args.key?(:video)
|
@video = args[:video] if args.key?(:video)
|
||||||
@agency_id = args[:agency_id] if args.key?(:agency_id)
|
@serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
|
||||||
@click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls)
|
|
||||||
@ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
|
|
||||||
@detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
|
|
||||||
@restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
|
|
||||||
@corrections = args[:corrections] if args.key?(:corrections)
|
|
||||||
@version = args[:version] if args.key?(:version)
|
|
||||||
@vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
|
|
||||||
@impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
|
|
||||||
@html = args[:html] if args.key?(:html)
|
|
||||||
@deals_status = args[:deals_status] if args.key?(:deals_status)
|
|
||||||
@detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -902,18 +921,6 @@ module Google
|
||||||
class Client
|
class Client
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The name of the entity. This field is automatically fetched based on
|
|
||||||
# the type and ID.
|
|
||||||
# The value of this field is ignored in create and update operations.
|
|
||||||
# Corresponds to the JSON property `entityName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :entity_name
|
|
||||||
|
|
||||||
# The status of the client buyer.
|
|
||||||
# Corresponds to the JSON property `status`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :status
|
|
||||||
|
|
||||||
# The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
|
# The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
|
||||||
# Corresponds to the JSON property `entityType`
|
# Corresponds to the JSON property `entityType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -965,20 +972,32 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :client_account_id
|
attr_accessor :client_account_id
|
||||||
|
|
||||||
|
# The name of the entity. This field is automatically fetched based on
|
||||||
|
# the type and ID.
|
||||||
|
# The value of this field is ignored in create and update operations.
|
||||||
|
# Corresponds to the JSON property `entityName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :entity_name
|
||||||
|
|
||||||
|
# The status of the client buyer.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@entity_name = args[:entity_name] if args.key?(:entity_name)
|
|
||||||
@status = args[:status] if args.key?(:status)
|
|
||||||
@entity_type = args[:entity_type] if args.key?(:entity_type)
|
@entity_type = args[:entity_type] if args.key?(:entity_type)
|
||||||
@client_name = args[:client_name] if args.key?(:client_name)
|
@client_name = args[:client_name] if args.key?(:client_name)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
@visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
|
@visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
|
||||||
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
||||||
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
|
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
|
||||||
|
@entity_name = args[:entity_name] if args.key?(:entity_name)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -986,6 +1005,11 @@ module Google
|
||||||
class Correction
|
class Correction
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The contexts for the correction.
|
||||||
|
# Corresponds to the JSON property `contexts`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
|
||||||
|
attr_accessor :contexts
|
||||||
|
|
||||||
# Additional details about what was corrected.
|
# Additional details about what was corrected.
|
||||||
# Corresponds to the JSON property `details`
|
# Corresponds to the JSON property `details`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
|
@ -996,20 +1020,15 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
|
||||||
# The contexts for the correction.
|
|
||||||
# Corresponds to the JSON property `contexts`
|
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
|
|
||||||
attr_accessor :contexts
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@contexts = args[:contexts] if args.key?(:contexts)
|
||||||
@details = args[:details] if args.key?(:details)
|
@details = args[:details] if args.key?(:details)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
@contexts = args[:contexts] if args.key?(:contexts)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1106,6 +1125,15 @@ module Google
|
||||||
class ServingRestriction
|
class ServingRestriction
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Any disapprovals bound to this restriction.
|
||||||
|
# Only present if status=DISAPPROVED.
|
||||||
|
# Can be used to filter the response of the
|
||||||
|
# creatives.list
|
||||||
|
# method.
|
||||||
|
# Corresponds to the JSON property `disapprovalReasons`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>]
|
||||||
|
attr_accessor :disapproval_reasons
|
||||||
|
|
||||||
# The contexts for the restriction.
|
# The contexts for the restriction.
|
||||||
# Corresponds to the JSON property `contexts`
|
# Corresponds to the JSON property `contexts`
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
|
||||||
|
@ -1117,24 +1145,15 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# Any disapprovals bound to this restriction.
|
|
||||||
# Only present if status=DISAPPROVED.
|
|
||||||
# Can be used to filter the response of the
|
|
||||||
# creatives.list
|
|
||||||
# method.
|
|
||||||
# Corresponds to the JSON property `disapprovalReasons`
|
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>]
|
|
||||||
attr_accessor :disapproval_reasons
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
|
||||||
@contexts = args[:contexts] if args.key?(:contexts)
|
@contexts = args[:contexts] if args.key?(:contexts)
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
@disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1176,25 +1195,6 @@ module Google
|
||||||
@month = args[:month] if args.key?(:month)
|
@month = args[:month] if args.key?(:month)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A generic empty message that you can re-use to avoid defining duplicated
|
|
||||||
# empty messages in your APIs. A typical example is to use it as the request
|
|
||||||
# or the response type of an API method. For instance:
|
|
||||||
# service Foo `
|
|
||||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
||||||
# `
|
|
||||||
# The JSON representation for `Empty` is empty JSON object ````.
|
|
||||||
class Empty
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,6 +22,12 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module Adexchangebuyer2V2beta1
|
module Adexchangebuyer2V2beta1
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class WatchCreativeRequest
|
class WatchCreativeRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -52,13 +58,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class HtmlContent
|
class ListCreativesResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListCreativesResponse
|
class HtmlContent
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -100,13 +106,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListClientUserInvitationsResponse
|
class ListClientUsersResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListClientUsersResponse
|
class ListClientUserInvitationsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -203,9 +209,9 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
class Empty
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class WatchCreativeRequest
|
class WatchCreativeRequest
|
||||||
|
@ -225,24 +231,15 @@ module Google
|
||||||
class ListClientsResponse
|
class ListClientsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class NativeContent
|
class NativeContent
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :video_url, as: 'videoUrl'
|
|
||||||
property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
|
||||||
|
|
||||||
property :click_link_url, as: 'clickLinkUrl'
|
|
||||||
property :price_display_text, as: 'priceDisplayText'
|
|
||||||
property :click_tracking_url, as: 'clickTrackingUrl'
|
|
||||||
property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
|
||||||
|
|
||||||
property :advertiser_name, as: 'advertiserName'
|
|
||||||
property :store_url, as: 'storeUrl'
|
property :store_url, as: 'storeUrl'
|
||||||
property :headline, as: 'headline'
|
property :headline, as: 'headline'
|
||||||
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
||||||
|
@ -250,6 +247,15 @@ module Google
|
||||||
property :call_to_action, as: 'callToAction'
|
property :call_to_action, as: 'callToAction'
|
||||||
property :body, as: 'body'
|
property :body, as: 'body'
|
||||||
property :star_rating, as: 'starRating'
|
property :star_rating, as: 'starRating'
|
||||||
|
property :video_url, as: 'videoUrl'
|
||||||
|
property :click_link_url, as: 'clickLinkUrl'
|
||||||
|
property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
||||||
|
|
||||||
|
property :price_display_text, as: 'priceDisplayText'
|
||||||
|
property :click_tracking_url, as: 'clickTrackingUrl'
|
||||||
|
property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
||||||
|
|
||||||
|
property :advertiser_name, as: 'advertiserName'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -260,15 +266,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class HtmlContent
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :width, as: 'width'
|
|
||||||
property :snippet, as: 'snippet'
|
|
||||||
property :height, as: 'height'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListCreativesResponse
|
class ListCreativesResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -278,13 +275,18 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HtmlContent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :width, as: 'width'
|
||||||
|
property :snippet, as: 'snippet'
|
||||||
|
property :height, as: 'height'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ServingContext
|
class ServingContext
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :app_type, as: 'appType', class: Google::Apis::Adexchangebuyer2V2beta1::AppContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AppContext::Representation
|
|
||||||
|
|
||||||
property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation
|
|
||||||
|
|
||||||
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
|
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
|
||||||
|
|
||||||
property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation
|
property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation
|
||||||
|
@ -292,6 +294,10 @@ module Google
|
||||||
property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation
|
property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation
|
||||||
|
|
||||||
property :all, as: 'all'
|
property :all, as: 'all'
|
||||||
|
property :app_type, as: 'appType', class: Google::Apis::Adexchangebuyer2V2beta1::AppContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AppContext::Representation
|
||||||
|
|
||||||
|
property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -307,8 +313,8 @@ module Google
|
||||||
class Reason
|
class Reason
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :status, as: 'status'
|
|
||||||
property :count, as: 'count'
|
property :count, as: 'count'
|
||||||
|
property :status, as: 'status'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -335,15 +341,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListClientUserInvitationsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListClientUsersResponse
|
class ListClientUsersResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -353,6 +350,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListClientUserInvitationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class LocationContext
|
class LocationContext
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -370,19 +376,19 @@ module Google
|
||||||
class ClientUser
|
class ClientUser
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :status, as: 'status'
|
|
||||||
property :user_id, as: 'userId'
|
property :user_id, as: 'userId'
|
||||||
property :email, as: 'email'
|
property :email, as: 'email'
|
||||||
property :client_account_id, as: 'clientAccountId'
|
property :client_account_id, as: 'clientAccountId'
|
||||||
|
property :status, as: 'status'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CreativeDealAssociation
|
class CreativeDealAssociation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :account_id, as: 'accountId'
|
||||||
property :creative_id, as: 'creativeId'
|
property :creative_id, as: 'creativeId'
|
||||||
property :deals_id, as: 'dealsId'
|
property :deals_id, as: 'dealsId'
|
||||||
property :account_id, as: 'accountId'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -399,6 +405,20 @@ module Google
|
||||||
class Creative
|
class Creative
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :agency_id, as: 'agencyId'
|
||||||
|
collection :click_through_urls, as: 'clickThroughUrls'
|
||||||
|
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
|
||||||
|
collection :detected_sensitive_categories, as: 'detectedSensitiveCategories'
|
||||||
|
collection :restricted_categories, as: 'restrictedCategories'
|
||||||
|
collection :corrections, as: 'corrections', class: Google::Apis::Adexchangebuyer2V2beta1::Correction, decorator: Google::Apis::Adexchangebuyer2V2beta1::Correction::Representation
|
||||||
|
|
||||||
|
property :version, as: 'version'
|
||||||
|
collection :vendor_ids, as: 'vendorIds'
|
||||||
|
collection :impression_tracking_urls, as: 'impressionTrackingUrls'
|
||||||
|
property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation
|
||||||
|
|
||||||
|
collection :detected_product_categories, as: 'detectedProductCategories'
|
||||||
|
property :deals_status, as: 'dealsStatus'
|
||||||
property :open_auction_status, as: 'openAuctionStatus'
|
property :open_auction_status, as: 'openAuctionStatus'
|
||||||
property :advertiser_name, as: 'advertiserName'
|
property :advertiser_name, as: 'advertiserName'
|
||||||
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
|
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
|
||||||
|
@ -412,24 +432,10 @@ module Google
|
||||||
property :account_id, as: 'accountId'
|
property :account_id, as: 'accountId'
|
||||||
property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
|
property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
|
||||||
|
|
||||||
collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation
|
|
||||||
|
|
||||||
property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
|
property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
|
||||||
|
|
||||||
property :agency_id, as: 'agencyId'
|
collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation
|
||||||
collection :click_through_urls, as: 'clickThroughUrls'
|
|
||||||
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
|
|
||||||
collection :detected_sensitive_categories, as: 'detectedSensitiveCategories'
|
|
||||||
collection :restricted_categories, as: 'restrictedCategories'
|
|
||||||
collection :corrections, as: 'corrections', class: Google::Apis::Adexchangebuyer2V2beta1::Correction, decorator: Google::Apis::Adexchangebuyer2V2beta1::Correction::Representation
|
|
||||||
|
|
||||||
property :version, as: 'version'
|
|
||||||
collection :vendor_ids, as: 'vendorIds'
|
|
||||||
collection :impression_tracking_urls, as: 'impressionTrackingUrls'
|
|
||||||
property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation
|
|
||||||
|
|
||||||
property :deals_status, as: 'dealsStatus'
|
|
||||||
collection :detected_product_categories, as: 'detectedProductCategories'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -444,24 +450,24 @@ module Google
|
||||||
class Client
|
class Client
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :entity_name, as: 'entityName'
|
|
||||||
property :status, as: 'status'
|
|
||||||
property :entity_type, as: 'entityType'
|
property :entity_type, as: 'entityType'
|
||||||
property :client_name, as: 'clientName'
|
property :client_name, as: 'clientName'
|
||||||
property :role, as: 'role'
|
property :role, as: 'role'
|
||||||
property :visible_to_seller, as: 'visibleToSeller'
|
property :visible_to_seller, as: 'visibleToSeller'
|
||||||
property :entity_id, as: 'entityId'
|
property :entity_id, as: 'entityId'
|
||||||
property :client_account_id, as: 'clientAccountId'
|
property :client_account_id, as: 'clientAccountId'
|
||||||
|
property :entity_name, as: 'entityName'
|
||||||
|
property :status, as: 'status'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Correction
|
class Correction
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :details, as: 'details'
|
|
||||||
property :type, as: 'type'
|
|
||||||
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
||||||
|
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :type, as: 'type'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -499,11 +505,11 @@ module Google
|
||||||
class ServingRestriction
|
class ServingRestriction
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
|
||||||
|
|
||||||
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
||||||
|
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -515,12 +521,6 @@ module Google
|
||||||
property :month, as: 'month'
|
property :month, as: 'month'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -192,44 +192,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates and sends out an email invitation to access
|
|
||||||
# an Ad Exchange client buyer account.
|
|
||||||
# @param [String] account_id
|
|
||||||
# Numerical account ID of the client's sponsor buyer. (required)
|
|
||||||
# @param [String] client_account_id
|
|
||||||
# Numerical account ID of the client buyer that the user
|
|
||||||
# should be associated with. (required)
|
|
||||||
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_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::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
|
||||||
#
|
|
||||||
# @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 create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
|
||||||
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
|
||||||
command.request_object = client_user_invitation_object
|
|
||||||
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
|
||||||
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
|
||||||
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Retrieves an existing client user invitation.
|
# Retrieves an existing client user invitation.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# Numerical account ID of the client's sponsor buyer. (required)
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
@ -318,16 +280,14 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates an existing client user.
|
# Creates and sends out an email invitation to access
|
||||||
# Only the user status can be changed on update.
|
# an Ad Exchange client buyer account.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# Numerical account ID of the client's sponsor buyer. (required)
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
# @param [String] client_account_id
|
# @param [String] client_account_id
|
||||||
# Numerical account ID of the client buyer that the user to be retrieved
|
# Numerical account ID of the client buyer that the user
|
||||||
# is associated with. (required)
|
# should be associated with. (required)
|
||||||
# @param [String] user_id
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
|
||||||
# Numerical identifier of the user to retrieve. (required)
|
|
||||||
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -337,23 +297,22 @@ module Google
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
# @yield [result, err] Result & error if block supplied
|
# @yield [result, err] Result & error if block supplied
|
||||||
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
||||||
#
|
#
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
||||||
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||||
command.request_object = client_user_object
|
command.request_object = client_user_invitation_object
|
||||||
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||||
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
command.params['userId'] = user_id unless user_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -446,6 +405,47 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates an existing client user.
|
||||||
|
# Only the user status can be changed on update.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Numerical account ID of the client buyer that the user to be retrieved
|
||||||
|
# is associated with. (required)
|
||||||
|
# @param [String] user_id
|
||||||
|
# Numerical identifier of the user to retrieve. (required)
|
||||||
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_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::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
||||||
|
#
|
||||||
|
# @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 update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
||||||
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||||
|
command.request_object = client_user_object
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Creates a creative.
|
# Creates a creative.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# The account that this creative belongs to.
|
# The account that this creative belongs to.
|
||||||
|
@ -700,66 +700,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# List all creative-deal associations.
|
|
||||||
# @param [String] account_id
|
|
||||||
# The account to list the associations from.
|
|
||||||
# Specify "-" to list all creatives the current user has access to.
|
|
||||||
# @param [String] creative_id
|
|
||||||
# The creative ID to list the associations from.
|
|
||||||
# Specify "-" to list all creatives under the above account.
|
|
||||||
# @param [String] page_token
|
|
||||||
# A token identifying a page of results the server should return.
|
|
||||||
# Typically, this is the value of
|
|
||||||
# ListDealAssociationsResponse.next_page_token
|
|
||||||
# returned from the previous call to 'ListDealAssociations' method.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Requested page size. Server may return fewer associations than requested.
|
|
||||||
# If unspecified, server will pick an appropriate default.
|
|
||||||
# @param [String] query
|
|
||||||
# An optional query string to filter deal associations. If no filter is
|
|
||||||
# specified, all associations will be returned.
|
|
||||||
# Supported queries are:
|
|
||||||
# <ul>
|
|
||||||
# <li>accountId=<i>account_id_string</i>
|
|
||||||
# <li>creativeId=<i>creative_id_string</i>
|
|
||||||
# <li>dealsId=<i>deals_id_string</i>
|
|
||||||
# <li>dealsStatus:`approved, conditionally_approved, disapproved,
|
|
||||||
# not_checked`
|
|
||||||
# <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
|
|
||||||
# not_checked`
|
|
||||||
# </ul>
|
|
||||||
# Example: 'dealsId=12345 AND dealsStatus:disapproved'
|
|
||||||
# @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::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
|
|
||||||
#
|
|
||||||
# @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_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
|
|
||||||
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
|
|
||||||
command.params['accountId'] = account_id unless account_id.nil?
|
|
||||||
command.params['creativeId'] = creative_id unless creative_id.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['query'] = query unless query.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Associate an existing deal with a creative.
|
# Associate an existing deal with a creative.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# The account the creative belongs to.
|
# The account the creative belongs to.
|
||||||
|
@ -832,6 +772,66 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List all creative-deal associations.
|
||||||
|
# @param [String] account_id
|
||||||
|
# The account to list the associations from.
|
||||||
|
# Specify "-" to list all creatives the current user has access to.
|
||||||
|
# @param [String] creative_id
|
||||||
|
# The creative ID to list the associations from.
|
||||||
|
# Specify "-" to list all creatives under the above account.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results the server should return.
|
||||||
|
# Typically, this is the value of
|
||||||
|
# ListDealAssociationsResponse.next_page_token
|
||||||
|
# returned from the previous call to 'ListDealAssociations' method.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. Server may return fewer associations than requested.
|
||||||
|
# If unspecified, server will pick an appropriate default.
|
||||||
|
# @param [String] query
|
||||||
|
# An optional query string to filter deal associations. If no filter is
|
||||||
|
# specified, all associations will be returned.
|
||||||
|
# Supported queries are:
|
||||||
|
# <ul>
|
||||||
|
# <li>accountId=<i>account_id_string</i>
|
||||||
|
# <li>creativeId=<i>creative_id_string</i>
|
||||||
|
# <li>dealsId=<i>deals_id_string</i>
|
||||||
|
# <li>dealsStatus:`approved, conditionally_approved, disapproved,
|
||||||
|
# not_checked`
|
||||||
|
# <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
|
||||||
|
# not_checked`
|
||||||
|
# </ul>
|
||||||
|
# Example: 'dealsId=12345 AND dealsStatus:disapproved'
|
||||||
|
# @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::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
|
||||||
|
#
|
||||||
|
# @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_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['creativeId'] = creative_id unless creative_id.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['query'] = query unless query.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
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/admin-sdk/reports/
|
# @see https://developers.google.com/admin-sdk/reports/
|
||||||
module AdminReportsV1
|
module AdminReportsV1
|
||||||
VERSION = 'ReportsV1'
|
VERSION = 'ReportsV1'
|
||||||
REVISION = '20170315'
|
REVISION = '20170320'
|
||||||
|
|
||||||
# View audit reports for your G Suite domain
|
# View audit reports for your G Suite domain
|
||||||
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
|
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/management/
|
# @see https://developers.google.com/adsense/management/
|
||||||
module AdsenseV1_4
|
module AdsenseV1_4
|
||||||
VERSION = 'V1_4'
|
VERSION = 'V1_4'
|
||||||
REVISION = '20170325'
|
REVISION = '20170329'
|
||||||
|
|
||||||
# View and manage your AdSense data
|
# View and manage your AdSense data
|
||||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/host/
|
# @see https://developers.google.com/adsense/host/
|
||||||
module AdsensehostV4_1
|
module AdsensehostV4_1
|
||||||
VERSION = 'V4_1'
|
VERSION = 'V4_1'
|
||||||
REVISION = '20170325'
|
REVISION = '20170329'
|
||||||
|
|
||||||
# View and manage your AdSense host data and associated accounts
|
# View and manage your AdSense host data and associated accounts
|
||||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||||
|
|
|
@ -22,6 +22,86 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module AnalyticsreportingV4
|
module AnalyticsreportingV4
|
||||||
|
|
||||||
|
# Dynamic segment definition for defining the segment within the request.
|
||||||
|
# A segment can select users, sessions or both.
|
||||||
|
class DynamicSegment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# SegmentDefinition defines the segment to be a set of SegmentFilters which
|
||||||
|
# are combined together with a logical `AND` operation.
|
||||||
|
# Corresponds to the JSON property `sessionSegment`
|
||||||
|
# @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition]
|
||||||
|
attr_accessor :session_segment
|
||||||
|
|
||||||
|
# The name of the dynamic segment.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# SegmentDefinition defines the segment to be a set of SegmentFilters which
|
||||||
|
# are combined together with a logical `AND` operation.
|
||||||
|
# Corresponds to the JSON property `userSegment`
|
||||||
|
# @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition]
|
||||||
|
attr_accessor :user_segment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@session_segment = args[:session_segment] if args.key?(:session_segment)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@user_segment = args[:user_segment] if args.key?(:user_segment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A Simple segment conditions consist of one or more dimension/metric
|
||||||
|
# conditions that can be combined.
|
||||||
|
class SimpleSegment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of segment filters groups which are combined with logical `AND`
|
||||||
|
# operator.
|
||||||
|
# Corresponds to the JSON property `orFiltersForSegment`
|
||||||
|
# @return [Array<Google::Apis::AnalyticsreportingV4::OrFiltersForSegment>]
|
||||||
|
attr_accessor :or_filters_for_segment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@or_filters_for_segment = args[:or_filters_for_segment] if args.key?(:or_filters_for_segment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Column headers.
|
||||||
|
class ColumnHeader
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The headers for the metrics.
|
||||||
|
# Corresponds to the JSON property `metricHeader`
|
||||||
|
# @return [Google::Apis::AnalyticsreportingV4::MetricHeader]
|
||||||
|
attr_accessor :metric_header
|
||||||
|
|
||||||
|
# The dimension names in the response.
|
||||||
|
# Corresponds to the JSON property `dimensions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :dimensions
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@metric_header = args[:metric_header] if args.key?(:metric_header)
|
||||||
|
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Filter Clause to be used in a segment definition, can be wither a metric or
|
# Filter Clause to be used in a segment definition, can be wither a metric or
|
||||||
# a dimension filter.
|
# a dimension filter.
|
||||||
class SegmentFilterClause
|
class SegmentFilterClause
|
||||||
|
@ -55,22 +135,19 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Represents a group of metric filters.
|
# A row in the report.
|
||||||
# Set the operator value to specify how the filters are logically combined.
|
class ReportRow
|
||||||
class MetricFilterClause
|
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The operator for combining multiple metric filters. If unspecified, it is
|
# List of metrics for each requested DateRange.
|
||||||
# treated as an `OR`.
|
# Corresponds to the JSON property `metrics`
|
||||||
# Corresponds to the JSON property `operator`
|
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
||||||
# @return [String]
|
attr_accessor :metrics
|
||||||
attr_accessor :operator
|
|
||||||
|
|
||||||
# The repeated set of filters. They are logically combined based on the
|
# List of requested dimensions.
|
||||||
# operator specified.
|
# Corresponds to the JSON property `dimensions`
|
||||||
# Corresponds to the JSON property `filters`
|
# @return [Array<String>]
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::MetricFilter>]
|
attr_accessor :dimensions
|
||||||
attr_accessor :filters
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -78,8 +155,8 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@operator = args[:operator] if args.key?(:operator)
|
@metrics = args[:metrics] if args.key?(:metrics)
|
||||||
@filters = args[:filters] if args.key?(:filters)
|
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -121,19 +198,22 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A row in the report.
|
# Represents a group of metric filters.
|
||||||
class ReportRow
|
# Set the operator value to specify how the filters are logically combined.
|
||||||
|
class MetricFilterClause
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of metrics for each requested DateRange.
|
# The operator for combining multiple metric filters. If unspecified, it is
|
||||||
# Corresponds to the JSON property `metrics`
|
# treated as an `OR`.
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
# Corresponds to the JSON property `operator`
|
||||||
attr_accessor :metrics
|
# @return [String]
|
||||||
|
attr_accessor :operator
|
||||||
|
|
||||||
# List of requested dimensions.
|
# The repeated set of filters. They are logically combined based on the
|
||||||
# Corresponds to the JSON property `dimensions`
|
# operator specified.
|
||||||
# @return [Array<String>]
|
# Corresponds to the JSON property `filters`
|
||||||
attr_accessor :dimensions
|
# @return [Array<Google::Apis::AnalyticsreportingV4::MetricFilter>]
|
||||||
|
attr_accessor :filters
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -141,8 +221,8 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@metrics = args[:metrics] if args.key?(:metrics)
|
@operator = args[:operator] if args.key?(:operator)
|
||||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
@filters = args[:filters] if args.key?(:filters)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -272,20 +352,6 @@ module Google
|
||||||
class SegmentMetricFilter
|
class SegmentMetricFilter
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The metric that will be filtered on. A `metricFilter` must contain a
|
|
||||||
# metric name.
|
|
||||||
# Corresponds to the JSON property `metricName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :metric_name
|
|
||||||
|
|
||||||
# Scope for a metric defines the level at which that metric is defined. The
|
|
||||||
# specified metric scope must be equal to or greater than its primary scope
|
|
||||||
# as defined in the data model. The primary scope is defined by if the
|
|
||||||
# segment is selecting users or sessions.
|
|
||||||
# Corresponds to the JSON property `scope`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :scope
|
|
||||||
|
|
||||||
# Max comparison value is only used for `BETWEEN` operator.
|
# Max comparison value is only used for `BETWEEN` operator.
|
||||||
# Corresponds to the JSON property `maxComparisonValue`
|
# Corresponds to the JSON property `maxComparisonValue`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -303,17 +369,31 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :operator
|
attr_accessor :operator
|
||||||
|
|
||||||
|
# The metric that will be filtered on. A `metricFilter` must contain a
|
||||||
|
# metric name.
|
||||||
|
# Corresponds to the JSON property `metricName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :metric_name
|
||||||
|
|
||||||
|
# Scope for a metric defines the level at which that metric is defined. The
|
||||||
|
# specified metric scope must be equal to or greater than its primary scope
|
||||||
|
# as defined in the data model. The primary scope is defined by if the
|
||||||
|
# segment is selecting users or sessions.
|
||||||
|
# Corresponds to the JSON property `scope`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :scope
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
|
||||||
@scope = args[:scope] if args.key?(:scope)
|
|
||||||
@max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value)
|
@max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value)
|
||||||
@comparison_value = args[:comparison_value] if args.key?(:comparison_value)
|
@comparison_value = args[:comparison_value] if args.key?(:comparison_value)
|
||||||
@operator = args[:operator] if args.key?(:operator)
|
@operator = args[:operator] if args.key?(:operator)
|
||||||
|
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
||||||
|
@scope = args[:scope] if args.key?(:scope)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -434,28 +514,6 @@ module Google
|
||||||
class Pivot
|
class Pivot
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Specifies the maximum number of groups to return.
|
|
||||||
# The default value is 10, also the maximum value is 1,000.
|
|
||||||
# Corresponds to the JSON property `maxGroupCount`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :max_group_count
|
|
||||||
|
|
||||||
# If k metrics were requested, then the response will contain some
|
|
||||||
# data-dependent multiple of k columns in the report. E.g., if you pivoted
|
|
||||||
# on the dimension `ga:browser` then you'd get k columns for "Firefox", k
|
|
||||||
# columns for "IE", k columns for "Chrome", etc. The ordering of the groups
|
|
||||||
# of columns is determined by descending order of "total" for the first of
|
|
||||||
# the k values. Ties are broken by lexicographic ordering of the first
|
|
||||||
# pivot dimension, then lexicographic ordering of the second pivot
|
|
||||||
# dimension, and so on. E.g., if the totals for the first value for
|
|
||||||
# Firefox, IE, and Chrome were 8, 2, 8, respectively, the order of columns
|
|
||||||
# would be Chrome, Firefox, IE.
|
|
||||||
# The following let you choose which of the groups of k columns are
|
|
||||||
# included in the response.
|
|
||||||
# Corresponds to the JSON property `startGroup`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :start_group
|
|
||||||
|
|
||||||
# The pivot metrics. Pivot metrics are part of the
|
# The pivot metrics. Pivot metrics are part of the
|
||||||
# restriction on total number of metrics allowed in the request.
|
# restriction on total number of metrics allowed in the request.
|
||||||
# Corresponds to the JSON property `metrics`
|
# Corresponds to the JSON property `metrics`
|
||||||
|
@ -480,17 +538,39 @@ module Google
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DimensionFilterClause>]
|
# @return [Array<Google::Apis::AnalyticsreportingV4::DimensionFilterClause>]
|
||||||
attr_accessor :dimension_filter_clauses
|
attr_accessor :dimension_filter_clauses
|
||||||
|
|
||||||
|
# Specifies the maximum number of groups to return.
|
||||||
|
# The default value is 10, also the maximum value is 1,000.
|
||||||
|
# Corresponds to the JSON property `maxGroupCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :max_group_count
|
||||||
|
|
||||||
|
# If k metrics were requested, then the response will contain some
|
||||||
|
# data-dependent multiple of k columns in the report. E.g., if you pivoted
|
||||||
|
# on the dimension `ga:browser` then you'd get k columns for "Firefox", k
|
||||||
|
# columns for "IE", k columns for "Chrome", etc. The ordering of the groups
|
||||||
|
# of columns is determined by descending order of "total" for the first of
|
||||||
|
# the k values. Ties are broken by lexicographic ordering of the first
|
||||||
|
# pivot dimension, then lexicographic ordering of the second pivot
|
||||||
|
# dimension, and so on. E.g., if the totals for the first value for
|
||||||
|
# Firefox, IE, and Chrome were 8, 2, 8, respectively, the order of columns
|
||||||
|
# would be Chrome, Firefox, IE.
|
||||||
|
# The following let you choose which of the groups of k columns are
|
||||||
|
# included in the response.
|
||||||
|
# Corresponds to the JSON property `startGroup`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :start_group
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@max_group_count = args[:max_group_count] if args.key?(:max_group_count)
|
|
||||||
@start_group = args[:start_group] if args.key?(:start_group)
|
|
||||||
@metrics = args[:metrics] if args.key?(:metrics)
|
@metrics = args[:metrics] if args.key?(:metrics)
|
||||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||||
@dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses)
|
@dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses)
|
||||||
|
@max_group_count = args[:max_group_count] if args.key?(:max_group_count)
|
||||||
|
@start_group = args[:start_group] if args.key?(:start_group)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -631,13 +711,6 @@ module Google
|
||||||
class ReportData
|
class ReportData
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Minimum and maximum values seen over all matching rows. These are both
|
|
||||||
# empty when `hideValueRanges` in the request is false, or when
|
|
||||||
# rowCount is zero.
|
|
||||||
# Corresponds to the JSON property `minimums`
|
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
|
||||||
attr_accessor :minimums
|
|
||||||
|
|
||||||
# If the results are
|
# If the results are
|
||||||
# [sampled](https://support.google.com/analytics/answer/2637192),
|
# [sampled](https://support.google.com/analytics/answer/2637192),
|
||||||
# this returns the total number of
|
# this returns the total number of
|
||||||
|
@ -649,6 +722,13 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :sampling_space_sizes
|
attr_accessor :sampling_space_sizes
|
||||||
|
|
||||||
|
# Minimum and maximum values seen over all matching rows. These are both
|
||||||
|
# empty when `hideValueRanges` in the request is false, or when
|
||||||
|
# rowCount is zero.
|
||||||
|
# Corresponds to the JSON property `minimums`
|
||||||
|
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
||||||
|
attr_accessor :minimums
|
||||||
|
|
||||||
# For each requested date range, for the set of all rows that match
|
# For each requested date range, for the set of all rows that match
|
||||||
# the query, every requested value format gets a total. The total
|
# the query, every requested value format gets a total. The total
|
||||||
# for a value format is computed by first totaling the metrics
|
# for a value format is computed by first totaling the metrics
|
||||||
|
@ -671,6 +751,16 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :samples_read_counts
|
attr_accessor :samples_read_counts
|
||||||
|
|
||||||
|
# Total number of matching rows for this query.
|
||||||
|
# Corresponds to the JSON property `rowCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :row_count
|
||||||
|
|
||||||
|
# There's one ReportRow for every unique combination of dimensions.
|
||||||
|
# Corresponds to the JSON property `rows`
|
||||||
|
# @return [Array<Google::Apis::AnalyticsreportingV4::ReportRow>]
|
||||||
|
attr_accessor :rows
|
||||||
|
|
||||||
# Indicates if response to this request is golden or not. Data is
|
# Indicates if response to this request is golden or not. Data is
|
||||||
# golden when the exact same request will not produce any new results if
|
# golden when the exact same request will not produce any new results if
|
||||||
# asked at a later point in time.
|
# asked at a later point in time.
|
||||||
|
@ -679,16 +769,6 @@ module Google
|
||||||
attr_accessor :is_data_golden
|
attr_accessor :is_data_golden
|
||||||
alias_method :is_data_golden?, :is_data_golden
|
alias_method :is_data_golden?, :is_data_golden
|
||||||
|
|
||||||
# There's one ReportRow for every unique combination of dimensions.
|
|
||||||
# Corresponds to the JSON property `rows`
|
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::ReportRow>]
|
|
||||||
attr_accessor :rows
|
|
||||||
|
|
||||||
# Total number of matching rows for this query.
|
|
||||||
# Corresponds to the JSON property `rowCount`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :row_count
|
|
||||||
|
|
||||||
# The last time the data in the report was refreshed. All the hits received
|
# The last time the data in the report was refreshed. All the hits received
|
||||||
# before this timestamp are included in the calculation of the report.
|
# before this timestamp are included in the calculation of the report.
|
||||||
# Corresponds to the JSON property `dataLastRefreshed`
|
# Corresponds to the JSON property `dataLastRefreshed`
|
||||||
|
@ -708,13 +788,13 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@minimums = args[:minimums] if args.key?(:minimums)
|
|
||||||
@sampling_space_sizes = args[:sampling_space_sizes] if args.key?(:sampling_space_sizes)
|
@sampling_space_sizes = args[:sampling_space_sizes] if args.key?(:sampling_space_sizes)
|
||||||
|
@minimums = args[:minimums] if args.key?(:minimums)
|
||||||
@totals = args[:totals] if args.key?(:totals)
|
@totals = args[:totals] if args.key?(:totals)
|
||||||
@samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts)
|
@samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts)
|
||||||
@is_data_golden = args[:is_data_golden] if args.key?(:is_data_golden)
|
|
||||||
@rows = args[:rows] if args.key?(:rows)
|
|
||||||
@row_count = args[:row_count] if args.key?(:row_count)
|
@row_count = args[:row_count] if args.key?(:row_count)
|
||||||
|
@rows = args[:rows] if args.key?(:rows)
|
||||||
|
@is_data_golden = args[:is_data_golden] if args.key?(:is_data_golden)
|
||||||
@data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed)
|
@data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed)
|
||||||
@maximums = args[:maximums] if args.key?(:maximums)
|
@maximums = args[:maximums] if args.key?(:maximums)
|
||||||
end
|
end
|
||||||
|
@ -769,6 +849,68 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The segment definition, if the report needs to be segmented.
|
||||||
|
# A Segment is a subset of the Analytics data. For example, of the entire
|
||||||
|
# set of users, one Segment might be users from a particular country or city.
|
||||||
|
class Segment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Dynamic segment definition for defining the segment within the request.
|
||||||
|
# A segment can select users, sessions or both.
|
||||||
|
# Corresponds to the JSON property `dynamicSegment`
|
||||||
|
# @return [Google::Apis::AnalyticsreportingV4::DynamicSegment]
|
||||||
|
attr_accessor :dynamic_segment
|
||||||
|
|
||||||
|
# The segment ID of a built-in or custom segment, for example `gaid::-3`.
|
||||||
|
# Corresponds to the JSON property `segmentId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :segment_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dynamic_segment = args[:dynamic_segment] if args.key?(:dynamic_segment)
|
||||||
|
@segment_id = args[:segment_id] if args.key?(:segment_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Specifies the sorting options.
|
||||||
|
class OrderBy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The field which to sort by. The default sort order is ascending. Example:
|
||||||
|
# `ga:browser`.
|
||||||
|
# Note, that you can only specify one field for sort here. For example,
|
||||||
|
# `ga:browser, ga:city` is not valid.
|
||||||
|
# Corresponds to the JSON property `fieldName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :field_name
|
||||||
|
|
||||||
|
# The order type. The default orderType is `VALUE`.
|
||||||
|
# Corresponds to the JSON property `orderType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :order_type
|
||||||
|
|
||||||
|
# The sorting order for the field.
|
||||||
|
# Corresponds to the JSON property `sortOrder`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :sort_order
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@field_name = args[:field_name] if args.key?(:field_name)
|
||||||
|
@order_type = args[:order_type] if args.key?(:order_type)
|
||||||
|
@sort_order = args[:sort_order] if args.key?(:sort_order)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Dimension filter specifies the filtering options on a dimension.
|
# Dimension filter specifies the filtering options on a dimension.
|
||||||
class SegmentDimensionFilter
|
class SegmentDimensionFilter
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -819,68 +961,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Specifies the sorting options.
|
|
||||||
class OrderBy
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The field which to sort by. The default sort order is ascending. Example:
|
|
||||||
# `ga:browser`.
|
|
||||||
# Note, that you can only specify one field for sort here. For example,
|
|
||||||
# `ga:browser, ga:city` is not valid.
|
|
||||||
# Corresponds to the JSON property `fieldName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :field_name
|
|
||||||
|
|
||||||
# The order type. The default orderType is `VALUE`.
|
|
||||||
# Corresponds to the JSON property `orderType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :order_type
|
|
||||||
|
|
||||||
# The sorting order for the field.
|
|
||||||
# Corresponds to the JSON property `sortOrder`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :sort_order
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@field_name = args[:field_name] if args.key?(:field_name)
|
|
||||||
@order_type = args[:order_type] if args.key?(:order_type)
|
|
||||||
@sort_order = args[:sort_order] if args.key?(:sort_order)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The segment definition, if the report needs to be segmented.
|
|
||||||
# A Segment is a subset of the Analytics data. For example, of the entire
|
|
||||||
# set of users, one Segment might be users from a particular country or city.
|
|
||||||
class Segment
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Dynamic segment definition for defining the segment within the request.
|
|
||||||
# A segment can select users, sessions or both.
|
|
||||||
# Corresponds to the JSON property `dynamicSegment`
|
|
||||||
# @return [Google::Apis::AnalyticsreportingV4::DynamicSegment]
|
|
||||||
attr_accessor :dynamic_segment
|
|
||||||
|
|
||||||
# The segment ID of a built-in or custom segment, for example `gaid::-3`.
|
|
||||||
# Corresponds to the JSON property `segmentId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :segment_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@dynamic_segment = args[:dynamic_segment] if args.key?(:dynamic_segment)
|
|
||||||
@segment_id = args[:segment_id] if args.key?(:segment_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A segment sequence definition.
|
# A segment sequence definition.
|
||||||
class SegmentSequenceStep
|
class SegmentSequenceStep
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -914,18 +994,6 @@ module Google
|
||||||
class Metric
|
class Metric
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# A metric expression in the request. An expression is constructed from one
|
|
||||||
# or more metrics and numbers. Accepted operators include: Plus (+), Minus
|
|
||||||
# (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis,
|
|
||||||
# Positive cardinal numbers (0-9), can include decimals and is limited to
|
|
||||||
# 1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the
|
|
||||||
# metric expression is just a single metric name like `ga:users`.
|
|
||||||
# Adding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics
|
|
||||||
# will result in unexpected results.
|
|
||||||
# Corresponds to the JSON property `expression`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :expression
|
|
||||||
|
|
||||||
# Specifies how the metric expression should be formatted, for example
|
# Specifies how the metric expression should be formatted, for example
|
||||||
# `INTEGER`.
|
# `INTEGER`.
|
||||||
# Corresponds to the JSON property `formattingType`
|
# Corresponds to the JSON property `formattingType`
|
||||||
|
@ -941,15 +1009,27 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :alias
|
attr_accessor :alias
|
||||||
|
|
||||||
|
# A metric expression in the request. An expression is constructed from one
|
||||||
|
# or more metrics and numbers. Accepted operators include: Plus (+), Minus
|
||||||
|
# (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis,
|
||||||
|
# Positive cardinal numbers (0-9), can include decimals and is limited to
|
||||||
|
# 1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the
|
||||||
|
# metric expression is just a single metric name like `ga:users`.
|
||||||
|
# Adding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics
|
||||||
|
# will result in unexpected results.
|
||||||
|
# Corresponds to the JSON property `expression`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expression
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@expression = args[:expression] if args.key?(:expression)
|
|
||||||
@formatting_type = args[:formatting_type] if args.key?(:formatting_type)
|
@formatting_type = args[:formatting_type] if args.key?(:formatting_type)
|
||||||
@alias = args[:alias] if args.key?(:alias)
|
@alias = args[:alias] if args.key?(:alias)
|
||||||
|
@expression = args[:expression] if args.key?(:expression)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -976,6 +1056,11 @@ module Google
|
||||||
class Report
|
class Report
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Column headers.
|
||||||
|
# Corresponds to the JSON property `columnHeader`
|
||||||
|
# @return [Google::Apis::AnalyticsreportingV4::ColumnHeader]
|
||||||
|
attr_accessor :column_header
|
||||||
|
|
||||||
# The data part of the report.
|
# The data part of the report.
|
||||||
# Corresponds to the JSON property `data`
|
# Corresponds to the JSON property `data`
|
||||||
# @return [Google::Apis::AnalyticsreportingV4::ReportData]
|
# @return [Google::Apis::AnalyticsreportingV4::ReportData]
|
||||||
|
@ -986,20 +1071,15 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# Column headers.
|
|
||||||
# Corresponds to the JSON property `columnHeader`
|
|
||||||
# @return [Google::Apis::AnalyticsreportingV4::ColumnHeader]
|
|
||||||
attr_accessor :column_header
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@column_header = args[:column_header] if args.key?(:column_header)
|
||||||
@data = args[:data] if args.key?(:data)
|
@data = args[:data] if args.key?(:data)
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
@column_header = args[:column_header] if args.key?(:column_header)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1034,24 +1114,24 @@ module Google
|
||||||
class DateRange
|
class DateRange
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The start date for the query in the format `YYYY-MM-DD`.
|
|
||||||
# Corresponds to the JSON property `startDate`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :start_date
|
|
||||||
|
|
||||||
# The end date for the query in the format `YYYY-MM-DD`.
|
# The end date for the query in the format `YYYY-MM-DD`.
|
||||||
# Corresponds to the JSON property `endDate`
|
# Corresponds to the JSON property `endDate`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :end_date
|
attr_accessor :end_date
|
||||||
|
|
||||||
|
# The start date for the query in the format `YYYY-MM-DD`.
|
||||||
|
# Corresponds to the JSON property `startDate`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_date
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@start_date = args[:start_date] if args.key?(:start_date)
|
|
||||||
@end_date = args[:end_date] if args.key?(:end_date)
|
@end_date = args[:end_date] if args.key?(:end_date)
|
||||||
|
@start_date = args[:start_date] if args.key?(:start_date)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1059,13 +1139,6 @@ module Google
|
||||||
class MetricFilter
|
class MetricFilter
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The metric that will be filtered on. A metricFilter must contain a metric
|
|
||||||
# name. A metric name can be an alias earlier defined as a metric or it can
|
|
||||||
# also be a metric expression.
|
|
||||||
# Corresponds to the JSON property `metricName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :metric_name
|
|
||||||
|
|
||||||
# The value to compare against.
|
# The value to compare against.
|
||||||
# Corresponds to the JSON property `comparisonValue`
|
# Corresponds to the JSON property `comparisonValue`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1086,16 +1159,23 @@ module Google
|
||||||
attr_accessor :not
|
attr_accessor :not
|
||||||
alias_method :not?, :not
|
alias_method :not?, :not
|
||||||
|
|
||||||
|
# The metric that will be filtered on. A metricFilter must contain a metric
|
||||||
|
# name. A metric name can be an alias earlier defined as a metric or it can
|
||||||
|
# also be a metric expression.
|
||||||
|
# Corresponds to the JSON property `metricName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :metric_name
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
|
||||||
@comparison_value = args[:comparison_value] if args.key?(:comparison_value)
|
@comparison_value = args[:comparison_value] if args.key?(:comparison_value)
|
||||||
@operator = args[:operator] if args.key?(:operator)
|
@operator = args[:operator] if args.key?(:operator)
|
||||||
@not = args[:not] if args.key?(:not)
|
@not = args[:not] if args.key?(:not)
|
||||||
|
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1103,6 +1183,19 @@ module Google
|
||||||
class ReportRequest
|
class ReportRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The pivot definitions. Requests can have a maximum of 2 pivots.
|
||||||
|
# Corresponds to the JSON property `pivots`
|
||||||
|
# @return [Array<Google::Apis::AnalyticsreportingV4::Pivot>]
|
||||||
|
attr_accessor :pivots
|
||||||
|
|
||||||
|
# If set to false, the response does not include rows if all the retrieved
|
||||||
|
# metrics are equal to zero. The default is false which will exclude these
|
||||||
|
# rows.
|
||||||
|
# Corresponds to the JSON property `includeEmptyRows`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :include_empty_rows
|
||||||
|
alias_method :include_empty_rows?, :include_empty_rows
|
||||||
|
|
||||||
# The metric filter clauses. They are logically combined with the `AND`
|
# The metric filter clauses. They are logically combined with the `AND`
|
||||||
# operator. Metric filters look at only the first date range and not the
|
# operator. Metric filters look at only the first date range and not the
|
||||||
# comparing date range. Note that filtering on metrics occurs after the
|
# comparing date range. Note that filtering on metrics occurs after the
|
||||||
|
@ -1123,13 +1216,6 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :page_size
|
attr_accessor :page_size
|
||||||
|
|
||||||
# If set to true, hides the total of all metrics for all the matching rows,
|
|
||||||
# for every date range. The default false and will return the totals.
|
|
||||||
# Corresponds to the JSON property `hideTotals`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :hide_totals
|
|
||||||
alias_method :hide_totals?, :hide_totals
|
|
||||||
|
|
||||||
# If set to true, hides the minimum and maximum across all matching rows.
|
# If set to true, hides the minimum and maximum across all matching rows.
|
||||||
# The default is false and the value ranges are returned.
|
# The default is false and the value ranges are returned.
|
||||||
# Corresponds to the JSON property `hideValueRanges`
|
# Corresponds to the JSON property `hideValueRanges`
|
||||||
|
@ -1137,6 +1223,13 @@ module Google
|
||||||
attr_accessor :hide_value_ranges
|
attr_accessor :hide_value_ranges
|
||||||
alias_method :hide_value_ranges?, :hide_value_ranges
|
alias_method :hide_value_ranges?, :hide_value_ranges
|
||||||
|
|
||||||
|
# If set to true, hides the total of all metrics for all the matching rows,
|
||||||
|
# for every date range. The default false and will return the totals.
|
||||||
|
# Corresponds to the JSON property `hideTotals`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :hide_totals
|
||||||
|
alias_method :hide_totals?, :hide_totals
|
||||||
|
|
||||||
# Dimension or metric filters that restrict the data returned for your
|
# Dimension or metric filters that restrict the data returned for your
|
||||||
# request. To use the `filtersExpression`, supply a dimension or metric on
|
# request. To use the `filtersExpression`, supply a dimension or metric on
|
||||||
# which to filter, followed by the filter expression. For example, the
|
# which to filter, followed by the filter expression. For example, the
|
||||||
|
@ -1245,29 +1338,18 @@ module Google
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRange>]
|
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRange>]
|
||||||
attr_accessor :date_ranges
|
attr_accessor :date_ranges
|
||||||
|
|
||||||
# The pivot definitions. Requests can have a maximum of 2 pivots.
|
|
||||||
# Corresponds to the JSON property `pivots`
|
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::Pivot>]
|
|
||||||
attr_accessor :pivots
|
|
||||||
|
|
||||||
# If set to false, the response does not include rows if all the retrieved
|
|
||||||
# metrics are equal to zero. The default is false which will exclude these
|
|
||||||
# rows.
|
|
||||||
# Corresponds to the JSON property `includeEmptyRows`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :include_empty_rows
|
|
||||||
alias_method :include_empty_rows?, :include_empty_rows
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@pivots = args[:pivots] if args.key?(:pivots)
|
||||||
|
@include_empty_rows = args[:include_empty_rows] if args.key?(:include_empty_rows)
|
||||||
@metric_filter_clauses = args[:metric_filter_clauses] if args.key?(:metric_filter_clauses)
|
@metric_filter_clauses = args[:metric_filter_clauses] if args.key?(:metric_filter_clauses)
|
||||||
@page_size = args[:page_size] if args.key?(:page_size)
|
@page_size = args[:page_size] if args.key?(:page_size)
|
||||||
@hide_totals = args[:hide_totals] if args.key?(:hide_totals)
|
|
||||||
@hide_value_ranges = args[:hide_value_ranges] if args.key?(:hide_value_ranges)
|
@hide_value_ranges = args[:hide_value_ranges] if args.key?(:hide_value_ranges)
|
||||||
|
@hide_totals = args[:hide_totals] if args.key?(:hide_totals)
|
||||||
@filters_expression = args[:filters_expression] if args.key?(:filters_expression)
|
@filters_expression = args[:filters_expression] if args.key?(:filters_expression)
|
||||||
@cohort_group = args[:cohort_group] if args.key?(:cohort_group)
|
@cohort_group = args[:cohort_group] if args.key?(:cohort_group)
|
||||||
@view_id = args[:view_id] if args.key?(:view_id)
|
@view_id = args[:view_id] if args.key?(:view_id)
|
||||||
|
@ -1279,8 +1361,6 @@ module Google
|
||||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||||
@page_token = args[:page_token] if args.key?(:page_token)
|
@page_token = args[:page_token] if args.key?(:page_token)
|
||||||
@date_ranges = args[:date_ranges] if args.key?(:date_ranges)
|
@date_ranges = args[:date_ranges] if args.key?(:date_ranges)
|
||||||
@pivots = args[:pivots] if args.key?(:pivots)
|
|
||||||
@include_empty_rows = args[:include_empty_rows] if args.key?(:include_empty_rows)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1335,86 +1415,6 @@ module Google
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Dynamic segment definition for defining the segment within the request.
|
|
||||||
# A segment can select users, sessions or both.
|
|
||||||
class DynamicSegment
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# SegmentDefinition defines the segment to be a set of SegmentFilters which
|
|
||||||
# are combined together with a logical `AND` operation.
|
|
||||||
# Corresponds to the JSON property `sessionSegment`
|
|
||||||
# @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition]
|
|
||||||
attr_accessor :session_segment
|
|
||||||
|
|
||||||
# The name of the dynamic segment.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# SegmentDefinition defines the segment to be a set of SegmentFilters which
|
|
||||||
# are combined together with a logical `AND` operation.
|
|
||||||
# Corresponds to the JSON property `userSegment`
|
|
||||||
# @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition]
|
|
||||||
attr_accessor :user_segment
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@session_segment = args[:session_segment] if args.key?(:session_segment)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@user_segment = args[:user_segment] if args.key?(:user_segment)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A Simple segment conditions consist of one or more dimension/metric
|
|
||||||
# conditions that can be combined.
|
|
||||||
class SimpleSegment
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A list of segment filters groups which are combined with logical `AND`
|
|
||||||
# operator.
|
|
||||||
# Corresponds to the JSON property `orFiltersForSegment`
|
|
||||||
# @return [Array<Google::Apis::AnalyticsreportingV4::OrFiltersForSegment>]
|
|
||||||
attr_accessor :or_filters_for_segment
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@or_filters_for_segment = args[:or_filters_for_segment] if args.key?(:or_filters_for_segment)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Column headers.
|
|
||||||
class ColumnHeader
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The headers for the metrics.
|
|
||||||
# Corresponds to the JSON property `metricHeader`
|
|
||||||
# @return [Google::Apis::AnalyticsreportingV4::MetricHeader]
|
|
||||||
attr_accessor :metric_header
|
|
||||||
|
|
||||||
# The dimension names in the response.
|
|
||||||
# Corresponds to the JSON property `dimensions`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :dimensions
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@metric_header = args[:metric_header] if args.key?(:metric_header)
|
|
||||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,13 +22,31 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module AnalyticsreportingV4
|
module AnalyticsreportingV4
|
||||||
|
|
||||||
|
class DynamicSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SimpleSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ColumnHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class SegmentFilterClause
|
class SegmentFilterClause
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class MetricFilterClause
|
class ReportRow
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -40,7 +58,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ReportRow
|
class MetricFilterClause
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -142,7 +160,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SegmentDimensionFilter
|
class Segment
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -154,7 +172,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Segment
|
class SegmentDimensionFilter
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -215,21 +233,31 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class DynamicSegment
|
class DynamicSegment
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :name, as: 'name'
|
||||||
|
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SimpleSegment
|
class SimpleSegment
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ColumnHeader
|
class ColumnHeader
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
collection :dimensions, as: 'dimensions'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SegmentFilterClause
|
class SegmentFilterClause
|
||||||
|
@ -243,12 +271,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class MetricFilterClause
|
class ReportRow
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :operator, as: 'operator'
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation
|
|
||||||
|
|
||||||
|
collection :dimensions, as: 'dimensions'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -262,12 +290,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ReportRow
|
class MetricFilterClause
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
property :operator, as: 'operator'
|
||||||
|
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation
|
||||||
|
|
||||||
collection :dimensions, as: 'dimensions'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -318,11 +346,11 @@ module Google
|
||||||
class SegmentMetricFilter
|
class SegmentMetricFilter
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :metric_name, as: 'metricName'
|
|
||||||
property :scope, as: 'scope'
|
|
||||||
property :max_comparison_value, as: 'maxComparisonValue'
|
property :max_comparison_value, as: 'maxComparisonValue'
|
||||||
property :comparison_value, as: 'comparisonValue'
|
property :comparison_value, as: 'comparisonValue'
|
||||||
property :operator, as: 'operator'
|
property :operator, as: 'operator'
|
||||||
|
property :metric_name, as: 'metricName'
|
||||||
|
property :scope, as: 'scope'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -355,14 +383,14 @@ module Google
|
||||||
class Pivot
|
class Pivot
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :max_group_count, as: 'maxGroupCount'
|
|
||||||
property :start_group, as: 'startGroup'
|
|
||||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
|
||||||
|
|
||||||
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
||||||
|
|
||||||
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
||||||
|
|
||||||
|
property :max_group_count, as: 'maxGroupCount'
|
||||||
|
property :start_group, as: 'startGroup'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -406,16 +434,16 @@ module Google
|
||||||
class ReportData
|
class ReportData
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
|
||||||
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
|
|
||||||
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
|
|
||||||
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
|
|
||||||
collection :samples_read_counts, as: 'samplesReadCounts'
|
collection :samples_read_counts, as: 'samplesReadCounts'
|
||||||
property :is_data_golden, as: 'isDataGolden'
|
property :row_count, as: 'rowCount'
|
||||||
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
|
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
|
||||||
|
|
||||||
property :row_count, as: 'rowCount'
|
property :is_data_golden, as: 'isDataGolden'
|
||||||
property :data_last_refreshed, as: 'dataLastRefreshed'
|
property :data_last_refreshed, as: 'dataLastRefreshed'
|
||||||
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
|
|
||||||
|
@ -433,15 +461,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SegmentDimensionFilter
|
class Segment
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :min_comparison_value, as: 'minComparisonValue'
|
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
|
||||||
property :max_comparison_value, as: 'maxComparisonValue'
|
|
||||||
property :dimension_name, as: 'dimensionName'
|
property :segment_id, as: 'segmentId'
|
||||||
property :operator, as: 'operator'
|
|
||||||
collection :expressions, as: 'expressions'
|
|
||||||
property :case_sensitive, as: 'caseSensitive'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -454,12 +479,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Segment
|
class SegmentDimensionFilter
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
|
property :min_comparison_value, as: 'minComparisonValue'
|
||||||
|
property :max_comparison_value, as: 'maxComparisonValue'
|
||||||
property :segment_id, as: 'segmentId'
|
property :dimension_name, as: 'dimensionName'
|
||||||
|
property :operator, as: 'operator'
|
||||||
|
collection :expressions, as: 'expressions'
|
||||||
|
property :case_sensitive, as: 'caseSensitive'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -475,9 +503,9 @@ module Google
|
||||||
class Metric
|
class Metric
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :expression, as: 'expression'
|
|
||||||
property :formatting_type, as: 'formattingType'
|
property :formatting_type, as: 'formattingType'
|
||||||
property :alias, as: 'alias'
|
property :alias, as: 'alias'
|
||||||
|
property :expression, as: 'expression'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -491,11 +519,11 @@ module Google
|
||||||
class Report
|
class Report
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
|
||||||
|
|
||||||
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
|
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :next_page_token, as: 'nextPageToken'
|
||||||
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -511,29 +539,32 @@ module Google
|
||||||
class DateRange
|
class DateRange
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :start_date, as: 'startDate'
|
|
||||||
property :end_date, as: 'endDate'
|
property :end_date, as: 'endDate'
|
||||||
|
property :start_date, as: 'startDate'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class MetricFilter
|
class MetricFilter
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :metric_name, as: 'metricName'
|
|
||||||
property :comparison_value, as: 'comparisonValue'
|
property :comparison_value, as: 'comparisonValue'
|
||||||
property :operator, as: 'operator'
|
property :operator, as: 'operator'
|
||||||
property :not, as: 'not'
|
property :not, as: 'not'
|
||||||
|
property :metric_name, as: 'metricName'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ReportRequest
|
class ReportRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
|
||||||
|
|
||||||
|
property :include_empty_rows, as: 'includeEmptyRows'
|
||||||
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
|
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
|
||||||
|
|
||||||
property :page_size, as: 'pageSize'
|
property :page_size, as: 'pageSize'
|
||||||
property :hide_totals, as: 'hideTotals'
|
|
||||||
property :hide_value_ranges, as: 'hideValueRanges'
|
property :hide_value_ranges, as: 'hideValueRanges'
|
||||||
|
property :hide_totals, as: 'hideTotals'
|
||||||
property :filters_expression, as: 'filtersExpression'
|
property :filters_expression, as: 'filtersExpression'
|
||||||
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
|
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
|
||||||
|
|
||||||
|
@ -552,9 +583,6 @@ module Google
|
||||||
property :page_token, as: 'pageToken'
|
property :page_token, as: 'pageToken'
|
||||||
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
||||||
|
|
||||||
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
|
|
||||||
|
|
||||||
property :include_empty_rows, as: 'includeEmptyRows'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -565,34 +593,6 @@ module Google
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DynamicSegment
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SimpleSegment
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ColumnHeader
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
|
|
||||||
|
|
||||||
collection :dimensions, as: 'dimensions'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
# 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/appengine_v1/service.rb'
|
||||||
|
require 'google/apis/appengine_v1/classes.rb'
|
||||||
|
require 'google/apis/appengine_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google App Engine Admin API
|
||||||
|
#
|
||||||
|
# Provisions and manages App Engine applications.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
|
module AppengineV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170324'
|
||||||
|
|
||||||
|
# View and manage your applications deployed on Google App Engine
|
||||||
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# View your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,858 @@
|
||||||
|
# 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 AppengineV1
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
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 Status
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Application
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlDispatchRule
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class IdentityAwareProxy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepairApplicationRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListServicesResponse
|
||||||
|
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 TrafficSplit
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListVersionsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Version
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AutomaticScaling
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CpuUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RequestUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DiskUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkUtilization
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BasicScaling
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManualScaling
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Network
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Resources
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Volume
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlMap
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class StaticFilesHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ScriptHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiEndpointHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Library
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiConfigHandler
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class HealthCheck
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReadinessCheck
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LivenessCheck
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Deployment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FileInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ContainerInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ZipInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class EndpointsApiService
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListInstancesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Instance
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DebugInstanceRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLocationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataExperimental
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1Beta5
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1Beta
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LocationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::AppengineV1::Operation, decorator: Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation
|
||||||
|
|
||||||
|
hash :response, as: 'response'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
property :message, as: 'message'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Application
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1::UrlDispatchRule, decorator: Google::Apis::AppengineV1::UrlDispatchRule::Representation
|
||||||
|
|
||||||
|
property :auth_domain, as: 'authDomain'
|
||||||
|
property :location_id, as: 'locationId'
|
||||||
|
property :code_bucket, as: 'codeBucket'
|
||||||
|
property :default_cookie_expiration, as: 'defaultCookieExpiration'
|
||||||
|
property :serving_status, as: 'servingStatus'
|
||||||
|
property :default_hostname, as: 'defaultHostname'
|
||||||
|
property :default_bucket, as: 'defaultBucket'
|
||||||
|
property :iap, as: 'iap', class: Google::Apis::AppengineV1::IdentityAwareProxy, decorator: Google::Apis::AppengineV1::IdentityAwareProxy::Representation
|
||||||
|
|
||||||
|
property :gcr_domain, as: 'gcrDomain'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlDispatchRule
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :domain, as: 'domain'
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :service, as: 'service'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class IdentityAwareProxy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :enabled, as: 'enabled'
|
||||||
|
property :oauth2_client_id, as: 'oauth2ClientId'
|
||||||
|
property :oauth2_client_secret, as: 'oauth2ClientSecret'
|
||||||
|
property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepairApplicationRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListServicesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :services, as: 'services', class: Google::Apis::AppengineV1::Service, decorator: Google::Apis::AppengineV1::Service::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Service
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TrafficSplit
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :shard_by, as: 'shardBy'
|
||||||
|
hash :allocations, as: 'allocations'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListVersionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :versions, as: 'versions', class: Google::Apis::AppengineV1::Version, decorator: Google::Apis::AppengineV1::Version::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Version
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :automatic_scaling, as: 'automaticScaling', class: Google::Apis::AppengineV1::AutomaticScaling, decorator: Google::Apis::AppengineV1::AutomaticScaling::Representation
|
||||||
|
|
||||||
|
property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1::BasicScaling, decorator: Google::Apis::AppengineV1::BasicScaling::Representation
|
||||||
|
|
||||||
|
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1::ManualScaling, decorator: Google::Apis::AppengineV1::ManualScaling::Representation
|
||||||
|
|
||||||
|
collection :inbound_services, as: 'inboundServices'
|
||||||
|
property :instance_class, as: 'instanceClass'
|
||||||
|
property :network, as: 'network', class: Google::Apis::AppengineV1::Network, decorator: Google::Apis::AppengineV1::Network::Representation
|
||||||
|
|
||||||
|
property :resources, as: 'resources', class: Google::Apis::AppengineV1::Resources, decorator: Google::Apis::AppengineV1::Resources::Representation
|
||||||
|
|
||||||
|
property :runtime, as: 'runtime'
|
||||||
|
property :threadsafe, as: 'threadsafe'
|
||||||
|
property :vm, as: 'vm'
|
||||||
|
hash :beta_settings, as: 'betaSettings'
|
||||||
|
property :env, as: 'env'
|
||||||
|
property :serving_status, as: 'servingStatus'
|
||||||
|
property :created_by, as: 'createdBy'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :disk_usage_bytes, as: 'diskUsageBytes'
|
||||||
|
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1::UrlMap, decorator: Google::Apis::AppengineV1::UrlMap::Representation
|
||||||
|
|
||||||
|
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation
|
||||||
|
|
||||||
|
collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1::Library, decorator: Google::Apis::AppengineV1::Library::Representation
|
||||||
|
|
||||||
|
property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1::ApiConfigHandler, decorator: Google::Apis::AppengineV1::ApiConfigHandler::Representation
|
||||||
|
|
||||||
|
hash :env_variables, as: 'envVariables'
|
||||||
|
property :default_expiration, as: 'defaultExpiration'
|
||||||
|
property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1::HealthCheck, decorator: Google::Apis::AppengineV1::HealthCheck::Representation
|
||||||
|
|
||||||
|
property :readiness_check, as: 'readinessCheck', class: Google::Apis::AppengineV1::ReadinessCheck, decorator: Google::Apis::AppengineV1::ReadinessCheck::Representation
|
||||||
|
|
||||||
|
property :liveness_check, as: 'livenessCheck', class: Google::Apis::AppengineV1::LivenessCheck, decorator: Google::Apis::AppengineV1::LivenessCheck::Representation
|
||||||
|
|
||||||
|
property :nobuild_files_regex, as: 'nobuildFilesRegex'
|
||||||
|
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1::Deployment, decorator: Google::Apis::AppengineV1::Deployment::Representation
|
||||||
|
|
||||||
|
property :version_url, as: 'versionUrl'
|
||||||
|
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1::EndpointsApiService, decorator: Google::Apis::AppengineV1::EndpointsApiService::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AutomaticScaling
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cool_down_period, as: 'coolDownPeriod'
|
||||||
|
property :cpu_utilization, as: 'cpuUtilization', class: Google::Apis::AppengineV1::CpuUtilization, decorator: Google::Apis::AppengineV1::CpuUtilization::Representation
|
||||||
|
|
||||||
|
property :max_concurrent_requests, as: 'maxConcurrentRequests'
|
||||||
|
property :max_idle_instances, as: 'maxIdleInstances'
|
||||||
|
property :max_total_instances, as: 'maxTotalInstances'
|
||||||
|
property :max_pending_latency, as: 'maxPendingLatency'
|
||||||
|
property :min_idle_instances, as: 'minIdleInstances'
|
||||||
|
property :min_total_instances, as: 'minTotalInstances'
|
||||||
|
property :min_pending_latency, as: 'minPendingLatency'
|
||||||
|
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
|
||||||
|
|
||||||
|
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1::DiskUtilization, decorator: Google::Apis::AppengineV1::DiskUtilization::Representation
|
||||||
|
|
||||||
|
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1::NetworkUtilization, decorator: Google::Apis::AppengineV1::NetworkUtilization::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CpuUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :aggregation_window_length, as: 'aggregationWindowLength'
|
||||||
|
property :target_utilization, as: 'targetUtilization'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RequestUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :target_request_count_per_second, as: 'targetRequestCountPerSecond'
|
||||||
|
property :target_concurrent_requests, as: 'targetConcurrentRequests'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DiskUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :target_write_bytes_per_second, as: 'targetWriteBytesPerSecond'
|
||||||
|
property :target_write_ops_per_second, as: 'targetWriteOpsPerSecond'
|
||||||
|
property :target_read_bytes_per_second, as: 'targetReadBytesPerSecond'
|
||||||
|
property :target_read_ops_per_second, as: 'targetReadOpsPerSecond'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkUtilization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond'
|
||||||
|
property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond'
|
||||||
|
property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond'
|
||||||
|
property :target_received_packets_per_second, as: 'targetReceivedPacketsPerSecond'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BasicScaling
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :idle_timeout, as: 'idleTimeout'
|
||||||
|
property :max_instances, as: 'maxInstances'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManualScaling
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :instances, as: 'instances'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Network
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :forwarded_ports, as: 'forwardedPorts'
|
||||||
|
property :instance_tag, as: 'instanceTag'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :subnetwork_name, as: 'subnetworkName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Resources
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cpu, as: 'cpu'
|
||||||
|
property :disk_gb, as: 'diskGb'
|
||||||
|
property :memory_gb, as: 'memoryGb'
|
||||||
|
collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1::Volume, decorator: Google::Apis::AppengineV1::Volume::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Volume
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :volume_type, as: 'volumeType'
|
||||||
|
property :size_gb, as: 'sizeGb'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UrlMap
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :url_regex, as: 'urlRegex'
|
||||||
|
property :static_files, as: 'staticFiles', class: Google::Apis::AppengineV1::StaticFilesHandler, decorator: Google::Apis::AppengineV1::StaticFilesHandler::Representation
|
||||||
|
|
||||||
|
property :script, as: 'script', class: Google::Apis::AppengineV1::ScriptHandler, decorator: Google::Apis::AppengineV1::ScriptHandler::Representation
|
||||||
|
|
||||||
|
property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1::ApiEndpointHandler, decorator: Google::Apis::AppengineV1::ApiEndpointHandler::Representation
|
||||||
|
|
||||||
|
property :security_level, as: 'securityLevel'
|
||||||
|
property :login, as: 'login'
|
||||||
|
property :auth_fail_action, as: 'authFailAction'
|
||||||
|
property :redirect_http_response_code, as: 'redirectHttpResponseCode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StaticFilesHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :upload_path_regex, as: 'uploadPathRegex'
|
||||||
|
hash :http_headers, as: 'httpHeaders'
|
||||||
|
property :mime_type, as: 'mimeType'
|
||||||
|
property :expiration, as: 'expiration'
|
||||||
|
property :require_matching_file, as: 'requireMatchingFile'
|
||||||
|
property :application_readable, as: 'applicationReadable'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ScriptHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :script_path, as: 'scriptPath'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiEndpointHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :script_path, as: 'scriptPath'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error_code, as: 'errorCode'
|
||||||
|
property :static_file, as: 'staticFile'
|
||||||
|
property :mime_type, as: 'mimeType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Library
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiConfigHandler
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :auth_fail_action, as: 'authFailAction'
|
||||||
|
property :login, as: 'login'
|
||||||
|
property :script, as: 'script'
|
||||||
|
property :security_level, as: 'securityLevel'
|
||||||
|
property :url, as: 'url'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HealthCheck
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :disable_health_check, as: 'disableHealthCheck'
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :healthy_threshold, as: 'healthyThreshold'
|
||||||
|
property :unhealthy_threshold, as: 'unhealthyThreshold'
|
||||||
|
property :restart_threshold, as: 'restartThreshold'
|
||||||
|
property :check_interval, as: 'checkInterval'
|
||||||
|
property :timeout, as: 'timeout'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReadinessCheck
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :failure_threshold, as: 'failureThreshold'
|
||||||
|
property :success_threshold, as: 'successThreshold'
|
||||||
|
property :check_interval, as: 'checkInterval'
|
||||||
|
property :timeout, as: 'timeout'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LivenessCheck
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :path, as: 'path'
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :failure_threshold, as: 'failureThreshold'
|
||||||
|
property :success_threshold, as: 'successThreshold'
|
||||||
|
property :check_interval, as: 'checkInterval'
|
||||||
|
property :timeout, as: 'timeout'
|
||||||
|
property :initial_delay, as: 'initialDelay'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Deployment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation
|
||||||
|
|
||||||
|
property :container, as: 'container', class: Google::Apis::AppengineV1::ContainerInfo, decorator: Google::Apis::AppengineV1::ContainerInfo::Representation
|
||||||
|
|
||||||
|
property :zip, as: 'zip', class: Google::Apis::AppengineV1::ZipInfo, decorator: Google::Apis::AppengineV1::ZipInfo::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FileInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :source_url, as: 'sourceUrl'
|
||||||
|
property :sha1_sum, as: 'sha1Sum'
|
||||||
|
property :mime_type, as: 'mimeType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ContainerInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :image, as: 'image'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ZipInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :source_url, as: 'sourceUrl'
|
||||||
|
property :files_count, as: 'filesCount'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class EndpointsApiService
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :config_id, as: 'configId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListInstancesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :instances, as: 'instances', class: Google::Apis::AppengineV1::Instance, decorator: Google::Apis::AppengineV1::Instance::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Instance
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :app_engine_release, as: 'appEngineRelease'
|
||||||
|
property :availability, as: 'availability'
|
||||||
|
property :vm_name, as: 'vmName'
|
||||||
|
property :vm_zone_name, as: 'vmZoneName'
|
||||||
|
property :vm_id, as: 'vmId'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :requests, as: 'requests'
|
||||||
|
property :errors, as: 'errors'
|
||||||
|
property :qps, as: 'qps'
|
||||||
|
property :average_latency, as: 'averageLatency'
|
||||||
|
property :memory_usage, as: 'memoryUsage'
|
||||||
|
property :vm_status, as: 'vmStatus'
|
||||||
|
property :vm_debug_enabled, as: 'vmDebugEnabled'
|
||||||
|
property :vm_ip, as: 'vmIp'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DebugInstanceRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ssh_key, as: 'sshKey'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::AppengineV1::Location, decorator: Google::Apis::AppengineV1::Location::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :location_id, as: 'locationId'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataExperimental
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user, as: 'user'
|
||||||
|
property :target, as: 'target'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :operation_type, as: 'operationType'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user, as: 'user'
|
||||||
|
property :target, as: 'target'
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1Beta5
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user, as: 'user'
|
||||||
|
property :target, as: 'target'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1Beta
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user, as: 'user'
|
||||||
|
property :target, as: 'target'
|
||||||
|
property :ephemeral_message, as: 'ephemeralMessage'
|
||||||
|
collection :warning, as: 'warning'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user, as: 'user'
|
||||||
|
property :target, as: 'target'
|
||||||
|
property :ephemeral_message, as: 'ephemeralMessage'
|
||||||
|
collection :warning, as: 'warning'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LocationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :standard_environment_available, as: 'standardEnvironmentAvailable'
|
||||||
|
property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,894 @@
|
||||||
|
# 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 AppengineV1
|
||||||
|
# Google App Engine Admin API
|
||||||
|
#
|
||||||
|
# Provisions and manages App Engine applications.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/appengine_v1'
|
||||||
|
#
|
||||||
|
# Appengine = Google::Apis::AppengineV1 # Alias the module
|
||||||
|
# service = Appengine::AppengineService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
|
class AppengineService < 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://appengine.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets information about an application.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the Application resource to get. Example: apps/myapp.
|
||||||
|
# @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::AppengineV1::Application] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::Application]
|
||||||
|
#
|
||||||
|
# @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_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Application::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Application
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates an App Engine application for a Google Cloud Platform project.
|
||||||
|
# Required fields: id - The ID of the target Cloud Platform project. location -
|
||||||
|
# The region (https://cloud.google.com/appengine/docs/locations) where you want
|
||||||
|
# the App Engine application located.For more information about App Engine
|
||||||
|
# applications, see Managing Projects, Applications, and Billing (https://cloud.
|
||||||
|
# google.com/appengine/docs/python/console/).
|
||||||
|
# @param [Google::Apis::AppengineV1::Application] application_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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/apps', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
||||||
|
command.request_object = application_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the specified Application resource. You can update the following
|
||||||
|
# fields: auth_domain - Google authentication domain for controlling user access
|
||||||
|
# to the application. default_cookie_expiration - Cookie expiration policy for
|
||||||
|
# the application.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the Application resource to update. Example: apps/
|
||||||
|
# myapp.
|
||||||
|
# @param [Google::Apis::AppengineV1::Application] application_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# Standard field mask for the set of fields to be updated.
|
||||||
|
# @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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 patch_app(apps_id, application_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/apps/{appsId}', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
||||||
|
command.request_object = application_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Recreates the required App Engine features for the specified App Engine
|
||||||
|
# application, for example a Cloud Storage bucket or App Engine service account.
|
||||||
|
# Use this method if you receive an error message about a missing feature, for
|
||||||
|
# example, Error retrieving the App Engine service account.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the application to repair. Example: apps/myapp
|
||||||
|
# @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation
|
||||||
|
command.request_object = repair_application_request_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.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
|
||||||
|
# below allows API services to override the binding to use different resource
|
||||||
|
# name schemes, such as users/*/operations.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. The name of the operation collection.
|
||||||
|
# @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::AppengineV1::ListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.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
|
||||||
|
|
||||||
|
# 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] apps_id
|
||||||
|
# Part of `name`. The name of the operation resource.
|
||||||
|
# @param [String] operations_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['operationsId'] = operations_id unless operations_id.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 all the services in the application.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
|
# @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::AppengineV1::ListServicesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::ListServicesResponse]
|
||||||
|
#
|
||||||
|
# @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_app_services(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::ListServicesResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.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
|
||||||
|
|
||||||
|
# Gets the current configuration of the specified service.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
# default.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1::Service] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::Service]
|
||||||
|
#
|
||||||
|
# @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_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Service::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Service
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the configuration of the specified service.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
|
||||||
|
# default.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [Google::Apis::AppengineV1::Service] service_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# Standard field mask for the set of fields to be updated.
|
||||||
|
# @param [Boolean] migrate_traffic
|
||||||
|
# Set to true to gradually shift traffic to one or more versions that you
|
||||||
|
# specify. By default, traffic is shifted immediately. For gradual traffic
|
||||||
|
# migration, the target versions must be located within instances that are
|
||||||
|
# configured for both warmup requests (https://cloud.google.com/appengine/docs/
|
||||||
|
# admin-api/reference/rest/v1/apps.services.versions#inboundservicetype) and
|
||||||
|
# automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/
|
||||||
|
# rest/v1/apps.services.versions#automaticscaling). You must specify the shardBy
|
||||||
|
# (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
|
||||||
|
# services#shardby) field in the Service resource. Gradual traffic migration is
|
||||||
|
# not supported in the App Engine flexible environment. For examples, see
|
||||||
|
# Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-
|
||||||
|
# api/migrating-splitting-traffic).
|
||||||
|
# @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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 patch_app_service(apps_id, services_id, service_object = nil, update_mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1::Service::Representation
|
||||||
|
command.request_object = service_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
|
command.query['migrateTraffic'] = migrate_traffic unless migrate_traffic.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 the specified service and all enclosed versions.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
# default.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.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 the versions of a service.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `parent`. Name of the parent Service resource. Example: apps/myapp/
|
||||||
|
# services/default.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `parent`. See documentation of `appsId`.
|
||||||
|
# @param [String] view
|
||||||
|
# Controls the set of fields returned in the List response.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
|
# @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::AppengineV1::ListVersionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::ListVersionsResponse]
|
||||||
|
#
|
||||||
|
# @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_app_service_versions(apps_id, services_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.query['view'] = view unless view.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
|
||||||
|
|
||||||
|
# Gets the specified Version resource. By default, only a BASIC_VIEW will be
|
||||||
|
# returned. Specify the FULL_VIEW parameter to get the full resource.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
# default/versions/v1.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] view
|
||||||
|
# Controls the set of fields returned in the Get response.
|
||||||
|
# @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::AppengineV1::Version] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::Version]
|
||||||
|
#
|
||||||
|
# @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_app_service_version(apps_id, services_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Version::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Version
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||||
|
command.query['view'] = view unless view.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deploys code and resource files to a new version.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `parent`. Name of the parent resource to create this version under.
|
||||||
|
# Example: apps/myapp/services/default.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `parent`. See documentation of `appsId`.
|
||||||
|
# @param [Google::Apis::AppengineV1::Version] version_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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1::Version::Representation
|
||||||
|
command.request_object = version_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the specified Version resource. You can specify the following fields
|
||||||
|
# depending on the App Engine environment and type of scaling that the version
|
||||||
|
# resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-
|
||||||
|
# api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status):
|
||||||
|
# For Version resources that use basic scaling, manual scaling, or run in the
|
||||||
|
# App Engine flexible environment. instance_class (https://cloud.google.com/
|
||||||
|
# appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.
|
||||||
|
# FIELDS.instance_class): For Version resources that run in the App Engine
|
||||||
|
# standard environment. automatic_scaling.min_idle_instances (https://cloud.
|
||||||
|
# google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#
|
||||||
|
# Version.FIELDS.automatic_scaling): For Version resources that use automatic
|
||||||
|
# scaling and run in the App Engine standard environment. automatic_scaling.
|
||||||
|
# max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/
|
||||||
|
# reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
|
||||||
|
# For Version resources that use automatic scaling and run in the App Engine
|
||||||
|
# standard environment.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
|
||||||
|
# default/versions/1.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [Google::Apis::AppengineV1::Version] version_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# Standard field mask for the set of fields to be updated.
|
||||||
|
# @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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 patch_app_service_version(apps_id, services_id, versions_id, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1::Version::Representation
|
||||||
|
command.request_object = version_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.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 an existing Version resource.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
# default/versions/v1.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 delete_app_service_version(apps_id, services_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.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 the instances of a version.Tip: To aggregate details about instances
|
||||||
|
# over time, see the Stackdriver Monitoring API (https://cloud.google.com/
|
||||||
|
# monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `parent`. Name of the parent Version resource. Example: apps/myapp/
|
||||||
|
# services/default/versions/v1.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `parent`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `parent`. See documentation of `appsId`.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
|
# @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::AppengineV1::ListInstancesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::ListInstancesResponse]
|
||||||
|
#
|
||||||
|
# @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_app_service_version_instances(apps_id, services_id, versions_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::ListInstancesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::ListInstancesResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.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
|
||||||
|
|
||||||
|
# Gets instance information.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
# default/versions/v1/instances/instance-1.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] instances_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1::Instance] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::Instance]
|
||||||
|
#
|
||||||
|
# @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_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Instance::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Instance
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||||
|
command.params['instancesId'] = instances_id unless instances_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Stops a running instance.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
# default/versions/v1/instances/instance-1.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] instances_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 delete_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||||
|
command.params['instancesId'] = instances_id unless instances_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Enables debugging on a VM instance. This allows you to use the SSH command to
|
||||||
|
# connect to the virtual machine where the instance lives. While in "debug mode",
|
||||||
|
# the instance continues to serve live traffic. You should delete the instance
|
||||||
|
# when you are done debugging and then allow the system to take over and
|
||||||
|
# determine if another instance should be started.Only applicable for instances
|
||||||
|
# in App Engine flexible environment.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
# default/versions/v1/instances/instance-1.
|
||||||
|
# @param [String] services_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] versions_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [String] instances_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @param [Google::Apis::AppengineV1::DebugInstanceRequest] debug_instance_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::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 debug_instance(apps_id, services_id, versions_id, instances_id, debug_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1::DebugInstanceRequest::Representation
|
||||||
|
command.request_object = debug_instance_request_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
|
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||||
|
command.params['instancesId'] = instances_id unless instances_id.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 information about the supported locations for this service.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. The resource that owns the locations collection, if applicable.
|
||||||
|
# @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::AppengineV1::ListLocationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::ListLocationsResponse]
|
||||||
|
#
|
||||||
|
# @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_app_locations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::ListLocationsResponse
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.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
|
||||||
|
|
||||||
|
# Get information about a location.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Resource name for the location.
|
||||||
|
# @param [String] locations_id
|
||||||
|
# Part of `name`. See documentation of `appsId`.
|
||||||
|
# @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::AppengineV1::Location] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1::Location]
|
||||||
|
#
|
||||||
|
# @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_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/apps/{appsId}/locations/{locationsId}', options)
|
||||||
|
command.response_representation = Google::Apis::AppengineV1::Location::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1::Location
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.params['locationsId'] = locations_id unless locations_id.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
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/books/docs/v1/getting_started
|
# @see https://developers.google.com/books/docs/v1/getting_started
|
||||||
module BooksV1
|
module BooksV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20161206'
|
REVISION = '20170313'
|
||||||
|
|
||||||
# Manage your books
|
# Manage your books
|
||||||
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
||||||
|
|
|
@ -2579,6 +2579,11 @@ module Google
|
||||||
# @return [Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries]
|
# @return [Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries]
|
||||||
attr_accessor :more_from_series
|
attr_accessor :more_from_series
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `rewardExpirations`
|
||||||
|
# @return [Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations]
|
||||||
|
attr_accessor :reward_expirations
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -2587,6 +2592,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@more_from_authors = args[:more_from_authors] if args.key?(:more_from_authors)
|
@more_from_authors = args[:more_from_authors] if args.key?(:more_from_authors)
|
||||||
@more_from_series = args[:more_from_series] if args.key?(:more_from_series)
|
@more_from_series = args[:more_from_series] if args.key?(:more_from_series)
|
||||||
|
@reward_expirations = args[:reward_expirations] if args.key?(:reward_expirations)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -2626,6 +2632,25 @@ module Google
|
||||||
@opted_state = args[:opted_state] if args.key?(:opted_state)
|
@opted_state = args[:opted_state] if args.key?(:opted_state)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class RewardExpirations
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `opted_state`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :opted_state
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@opted_state = args[:opted_state] if args.key?(:opted_state)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -424,6 +424,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RewardExpirations
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1368,6 +1374,8 @@ module Google
|
||||||
|
|
||||||
property :more_from_series, as: 'moreFromSeries', class: Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries, decorator: Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries::Representation
|
property :more_from_series, as: 'moreFromSeries', class: Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries, decorator: Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries::Representation
|
||||||
|
|
||||||
|
property :reward_expirations, as: 'rewardExpirations', class: Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations, decorator: Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class MoreFromAuthors
|
class MoreFromAuthors
|
||||||
|
@ -1383,6 +1391,13 @@ module Google
|
||||||
property :opted_state, as: 'opted_state'
|
property :opted_state, as: 'opted_state'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RewardExpirations
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :opted_state, as: 'opted_state'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -946,6 +946,8 @@ module Google
|
||||||
|
|
||||||
# Inserts a new annotation.
|
# Inserts a new annotation.
|
||||||
# @param [Google::Apis::BooksV1::Annotation] annotation_object
|
# @param [Google::Apis::BooksV1::Annotation] annotation_object
|
||||||
|
# @param [String] annotation_id
|
||||||
|
# The ID for the annotation to insert.
|
||||||
# @param [String] country
|
# @param [String] country
|
||||||
# ISO-3166-1 code to override the IP-based location.
|
# ISO-3166-1 code to override the IP-based location.
|
||||||
# @param [Boolean] show_only_summary_in_response
|
# @param [Boolean] show_only_summary_in_response
|
||||||
|
@ -974,12 +976,13 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def insert_my_library_annotation(annotation_object = nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_my_library_annotation(annotation_object = nil, annotation_id: nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'mylibrary/annotations', options)
|
command = make_simple_command(:post, 'mylibrary/annotations', options)
|
||||||
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
|
command.request_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||||
command.request_object = annotation_object
|
command.request_object = annotation_object
|
||||||
command.response_representation = Google::Apis::BooksV1::Annotation::Representation
|
command.response_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||||
command.response_class = Google::Apis::BooksV1::Annotation
|
command.response_class = Google::Apis::BooksV1::Annotation
|
||||||
|
command.query['annotationId'] = annotation_id unless annotation_id.nil?
|
||||||
command.query['country'] = country unless country.nil?
|
command.query['country'] = country unless country.nil?
|
||||||
command.query['showOnlySummaryInResponse'] = show_only_summary_in_response unless show_only_summary_in_response.nil?
|
command.query['showOnlySummaryInResponse'] = show_only_summary_in_response unless show_only_summary_in_response.nil?
|
||||||
command.query['source'] = source unless source.nil?
|
command.query['source'] = source unless source.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20170319'
|
REVISION = '20170321'
|
||||||
|
|
||||||
# Manage your calendars
|
# Manage your calendars
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/classroom/
|
# @see https://developers.google.com/classroom/
|
||||||
module ClassroomV1
|
module ClassroomV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170322'
|
REVISION = '20170329'
|
||||||
|
|
||||||
# View your Google Classroom class rosters
|
# View your Google Classroom class rosters
|
||||||
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
|
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-builder/docs/
|
# @see https://cloud.google.com/container-builder/docs/
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170327'
|
REVISION = '20170330'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,90 +22,6 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
|
|
||||||
class Operation
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListBuildTriggersResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuiltImage
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RepoSource
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class HashProp
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuildStep
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class FileHashes
|
|
||||||
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 Empty
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuildTrigger
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Build
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CancelBuildRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListBuildsResponse
|
|
||||||
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 Source
|
class Source
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -149,172 +65,104 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class Operation
|
class Operation
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
hash :response, as: 'response'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
|
||||||
|
|
||||||
hash :metadata, as: 'metadata'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :done, as: 'done'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListBuildTriggersResponse
|
class ListBuildTriggersResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuiltImage
|
class BuiltImage
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :digest, as: 'digest'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RepoSource
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :tag_name, as: 'tagName'
|
|
||||||
property :commit_sha, as: 'commitSha'
|
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
property :repo_name, as: 'repoName'
|
|
||||||
property :branch_name, as: 'branchName'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class HashProp
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :type, as: 'type'
|
|
||||||
property :value, :base64 => true, as: 'value'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildStep
|
class BuildStep
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :entrypoint, as: 'entrypoint'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :id, as: 'id'
|
|
||||||
property :dir, as: 'dir'
|
|
||||||
collection :env, as: 'env'
|
|
||||||
collection :wait_for, as: 'waitFor'
|
|
||||||
collection :args, as: 'args'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HashProp
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepoSource
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class FileHashes
|
class FileHashes
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Status
|
class Status
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :details, as: 'details'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :code, as: 'code'
|
|
||||||
property :message, as: 'message'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
class Empty
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildTrigger
|
class BuildTrigger
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :disabled, as: 'disabled'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
||||||
|
|
||||||
property :filename, as: 'filename'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :id, as: 'id'
|
|
||||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
|
|
||||||
hash :substitutions, as: 'substitutions'
|
|
||||||
property :description, as: 'description'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Build
|
class Build
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
|
||||||
|
|
||||||
collection :images, as: 'images'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
property :log_url, as: 'logUrl'
|
|
||||||
property :finish_time, as: 'finishTime'
|
|
||||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
|
||||||
|
|
||||||
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
|
||||||
|
|
||||||
property :timeout, as: 'timeout'
|
|
||||||
property :status, as: 'status'
|
|
||||||
property :status_detail, as: 'statusDetail'
|
|
||||||
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
|
||||||
|
|
||||||
property :logs_bucket, as: 'logsBucket'
|
|
||||||
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
|
||||||
|
|
||||||
property :build_trigger_id, as: 'buildTriggerId'
|
|
||||||
property :id, as: 'id'
|
|
||||||
property :start_time, as: 'startTime'
|
|
||||||
hash :substitutions, as: 'substitutions'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class CancelBuildRequest
|
class CancelBuildRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListBuildsResponse
|
class ListBuildsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListOperationsResponse
|
class ListOperationsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Source
|
class Source
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
|
||||||
|
|
||||||
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
|
|
||||||
|
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildOptions
|
class BuildOptions
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
|
||||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||||
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -361,6 +209,158 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :response, as: 'response'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :done, as: 'done'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBuildTriggersResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BuiltImage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :digest, as: 'digest'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BuildStep
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dir, as: 'dir'
|
||||||
|
collection :env, as: 'env'
|
||||||
|
collection :wait_for, as: 'waitFor'
|
||||||
|
collection :args, as: 'args'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :entrypoint, as: 'entrypoint'
|
||||||
|
property :id, as: 'id'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HashProp
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :value, :base64 => true, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepoSource
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :tag_name, as: 'tagName'
|
||||||
|
property :commit_sha, as: 'commitSha'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :repo_name, as: 'repoName'
|
||||||
|
property :branch_name, as: 'branchName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FileHashes
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
property :message, as: 'message'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BuildTrigger
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :disabled, as: 'disabled'
|
||||||
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
|
|
||||||
|
property :filename, as: 'filename'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
|
||||||
|
hash :substitutions, as: 'substitutions'
|
||||||
|
property :description, as: 'description'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Build
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
||||||
|
|
||||||
|
collection :images, as: 'images'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :finish_time, as: 'finishTime'
|
||||||
|
property :log_url, as: 'logUrl'
|
||||||
|
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
||||||
|
|
||||||
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
||||||
|
|
||||||
|
property :timeout, as: 'timeout'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :status_detail, as: 'statusDetail'
|
||||||
|
property :logs_bucket, as: 'logsBucket'
|
||||||
|
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
||||||
|
|
||||||
|
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
||||||
|
|
||||||
|
property :build_trigger_id, as: 'buildTriggerId'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
hash :substitutions, as: 'substitutions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CancelBuildRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBuildsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -46,324 +46,6 @@ module Google
|
||||||
super('https://cloudbuild.googleapis.com/', '')
|
super('https://cloudbuild.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cancels a requested build in progress.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [String] id
|
|
||||||
# ID of the build.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Build]
|
|
||||||
#
|
|
||||||
# @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_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
|
||||||
command.request_object = cancel_build_request_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['id'] = id unless id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns information about a previously requested build.
|
|
||||||
# The Build that is returned includes its status (e.g., success or failure,
|
|
||||||
# or in-progress), and timing information.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [String] id
|
|
||||||
# ID of the build.
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Build]
|
|
||||||
#
|
|
||||||
# @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_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['id'] = id unless id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Lists previously requested builds.
|
|
||||||
# Previously requested builds may still be in-progress, or may have finished
|
|
||||||
# successfully or unsuccessfully.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [String] filter
|
|
||||||
# The raw filter text to constrain the results.
|
|
||||||
# @param [String] page_token
|
|
||||||
# Token to provide to skip to a particular spot in the list.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Number of results to return in the list.
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['filter'] = filter unless filter.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Starts a build with the specified configuration.
|
|
||||||
# The long-running Operation returned by this method will include the ID of
|
|
||||||
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
|
||||||
# success or failure).
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::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 create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.request_object = build_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a new BuildTrigger.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project for which to configure automatic builds.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @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 create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.request_object = build_trigger_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes an BuildTrigger by its project ID and trigger ID.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to delete.
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::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_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Gets information about a BuildTrigger.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to get.
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @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_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Lists existing BuildTrigger.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project for which to list BuildTriggers.
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Updates an BuildTrigger by its project ID and trigger ID.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to update.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @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 patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.request_object = build_trigger_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Starts asynchronous cancellation on a long-running operation. The server
|
# Starts asynchronous cancellation on a long-running operation. The server
|
||||||
# makes a best effort to cancel the operation, but success is not
|
# makes a best effort to cancel the operation, but success is not
|
||||||
# guaranteed. If the server doesn't support this method, it returns
|
# guaranteed. If the server doesn't support this method, it returns
|
||||||
|
@ -377,11 +59,11 @@ module Google
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation resource to be cancelled.
|
# The name of the operation resource to be cancelled.
|
||||||
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -394,15 +76,15 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
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 = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
||||||
command.request_object = cancel_operation_request_object
|
command.request_object = cancel_operation_request_object
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||||
command.params['name'] = name unless name.nil?
|
command.params['name'] = name unless name.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -418,11 +100,11 @@ module Google
|
||||||
# The standard list page token.
|
# The standard list page token.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The standard list page size.
|
# The standard list page size.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -435,7 +117,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
||||||
|
@ -443,8 +125,8 @@ module Google
|
||||||
command.query['filter'] = filter unless filter.nil?
|
command.query['filter'] = filter unless filter.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -453,11 +135,11 @@ module Google
|
||||||
# service.
|
# service.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation resource.
|
# The name of the operation resource.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -470,13 +152,331 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
command.params['name'] = name unless name.nil?
|
command.params['name'] = name unless name.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.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 an BuildTrigger by its project ID and trigger ID.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to delete.
|
||||||
|
# @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::CloudbuildV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::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_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.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 information about a BuildTrigger.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to get.
|
||||||
|
# @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::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
|
#
|
||||||
|
# @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_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.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 existing BuildTrigger.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project for which to list BuildTriggers.
|
||||||
|
# @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::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates an BuildTrigger by its project ID and trigger ID.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to update.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
|
#
|
||||||
|
# @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 patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.request_object = build_trigger_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a new BuildTrigger.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project for which to configure automatic builds.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
|
#
|
||||||
|
# @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 create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.request_object = build_trigger_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Cancels a requested build in progress.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] id
|
||||||
|
# ID of the build.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_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::CloudbuildV1::Build] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
#
|
||||||
|
# @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_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
||||||
|
command.request_object = cancel_build_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns information about a previously requested build.
|
||||||
|
# The Build that is returned includes its status (e.g., success or failure,
|
||||||
|
# or in-progress), and timing information.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] id
|
||||||
|
# ID of the build.
|
||||||
|
# @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::CloudbuildV1::Build] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
#
|
||||||
|
# @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_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['id'] = id unless id.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 previously requested builds.
|
||||||
|
# Previously requested builds may still be in-progress, or may have finished
|
||||||
|
# successfully or unsuccessfully.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] filter
|
||||||
|
# The raw filter text to constrain the results.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token to provide to skip to a particular spot in the list.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Number of results to return in the list.
|
||||||
|
# @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::CloudbuildV1::ListBuildsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Starts a build with the specified configuration.
|
||||||
|
# The long-running Operation returned by this method will include the ID of
|
||||||
|
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
||||||
|
# success or failure).
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::Build] build_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::CloudbuildV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::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 create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.request_object = build_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,84 +22,6 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module ClouddebuggerV2
|
module ClouddebuggerV2
|
||||||
|
|
||||||
class CloudWorkspaceSourceContext
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class UpdateActiveBreakpointResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GerritSourceContext
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CloudWorkspaceId
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListBreakpointsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Breakpoint
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class UpdateActiveBreakpointRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetBreakpointResponse
|
|
||||||
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 CloudRepoSourceContext
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RegisterDebuggeeRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RegisterDebuggeeResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetBreakpointResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class StatusMessage
|
class StatusMessage
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -172,163 +94,103 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ProjectRepoId
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListActiveBreakpointsResponse
|
class ListActiveBreakpointsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class CloudWorkspaceSourceContext
|
class ProjectRepoId
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :snapshot_id, as: 'snapshotId'
|
|
||||||
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
|
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class UpdateActiveBreakpointResponse
|
class UpdateActiveBreakpointResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GerritSourceContext
|
class GerritSourceContext
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :gerrit_project, as: 'gerritProject'
|
|
||||||
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
|
||||||
|
|
||||||
property :host_uri, as: 'hostUri'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :revision_id, as: 'revisionId'
|
|
||||||
property :alias_name, as: 'aliasName'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class CloudWorkspaceId
|
class CloudWorkspaceId
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListBreakpointsResponse
|
class ListBreakpointsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
|
||||||
|
|
||||||
property :next_wait_token, as: 'nextWaitToken'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Breakpoint
|
class Breakpoint
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :expressions, as: 'expressions'
|
|
||||||
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
property :is_final_state, as: 'isFinalState'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
|
|
||||||
|
|
||||||
property :condition, as: 'condition'
|
|
||||||
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
|
||||||
|
|
||||||
property :user_email, as: 'userEmail'
|
|
||||||
property :action, as: 'action'
|
|
||||||
property :log_level, as: 'logLevel'
|
|
||||||
property :id, as: 'id'
|
|
||||||
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
|
||||||
|
|
||||||
property :final_time, as: 'finalTime'
|
|
||||||
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :log_message_format, as: 'logMessageFormat'
|
|
||||||
hash :labels, as: 'labels'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class UpdateActiveBreakpointRequest
|
class UpdateActiveBreakpointRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SetBreakpointResponse
|
class SetBreakpointResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SourceContext
|
class SourceContext
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
|
|
||||||
|
|
||||||
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
|
||||||
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
|
|
||||||
|
|
||||||
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class CloudRepoSourceContext
|
class CloudRepoSourceContext
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :revision_id, as: 'revisionId'
|
|
||||||
property :alias_name, as: 'aliasName'
|
|
||||||
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
|
||||||
|
|
||||||
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RegisterDebuggeeRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class RegisterDebuggeeResponse
|
class RegisterDebuggeeResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetBreakpointResponse
|
class GetBreakpointResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class StatusMessage
|
class StatusMessage
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :refers_to, as: 'refersTo'
|
||||||
property :is_error, as: 'isError'
|
property :is_error, as: 'isError'
|
||||||
property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation
|
property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation
|
||||||
|
|
||||||
property :refers_to, as: 'refersTo'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -343,27 +205,27 @@ module Google
|
||||||
class Variable
|
class Variable
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :var_table_index, as: 'varTableIndex'
|
|
||||||
property :value, as: 'value'
|
|
||||||
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
|
property :var_table_index, as: 'varTableIndex'
|
||||||
|
property :value, as: 'value'
|
||||||
|
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class StackFrame
|
class StackFrame
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :function, as: 'function'
|
|
||||||
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
||||||
|
|
||||||
|
property :function, as: 'function'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -418,17 +280,14 @@ module Google
|
||||||
class SourceLocation
|
class SourceLocation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :path, as: 'path'
|
|
||||||
property :line, as: 'line'
|
property :line, as: 'line'
|
||||||
|
property :path, as: 'path'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Debuggee
|
class Debuggee
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :id, as: 'id'
|
|
||||||
property :agent_version, as: 'agentVersion'
|
|
||||||
property :is_disabled, as: 'isDisabled'
|
|
||||||
property :uniquifier, as: 'uniquifier'
|
property :uniquifier, as: 'uniquifier'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
||||||
|
@ -440,6 +299,19 @@ module Google
|
||||||
|
|
||||||
property :is_inactive, as: 'isInactive'
|
property :is_inactive, as: 'isInactive'
|
||||||
property :project, as: 'project'
|
property :project, as: 'project'
|
||||||
|
property :is_disabled, as: 'isDisabled'
|
||||||
|
property :agent_version, as: 'agentVersion'
|
||||||
|
property :id, as: 'id'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListActiveBreakpointsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
property :wait_expired, as: 'waitExpired'
|
||||||
|
property :next_wait_token, as: 'nextWaitToken'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -451,13 +323,141 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListActiveBreakpointsResponse
|
class CloudWorkspaceSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
|
||||||
|
|
||||||
|
property :snapshot_id, as: 'snapshotId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateActiveBreakpointResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GerritSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :host_uri, as: 'hostUri'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
property :alias_name, as: 'aliasName'
|
||||||
|
property :gerrit_project, as: 'gerritProject'
|
||||||
|
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceId
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBreakpointsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_wait_token, as: 'nextWaitToken'
|
|
||||||
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
property :wait_expired, as: 'waitExpired'
|
property :next_wait_token, as: 'nextWaitToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Breakpoint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :expressions, as: 'expressions'
|
||||||
|
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
property :is_final_state, as: 'isFinalState'
|
||||||
|
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
|
||||||
|
|
||||||
|
property :condition, as: 'condition'
|
||||||
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
|
property :user_email, as: 'userEmail'
|
||||||
|
property :action, as: 'action'
|
||||||
|
property :log_level, as: 'logLevel'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
||||||
|
|
||||||
|
property :final_time, as: 'finalTime'
|
||||||
|
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :log_message_format, as: 'logMessageFormat'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateActiveBreakpointRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetBreakpointResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
|
||||||
|
|
||||||
|
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
|
||||||
|
|
||||||
|
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
|
||||||
|
|
||||||
|
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudRepoSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
property :alias_name, as: 'aliasName'
|
||||||
|
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
||||||
|
|
||||||
|
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetBreakpointResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -199,6 +199,9 @@ module Google
|
||||||
# Lists all breakpoints for the debuggee.
|
# Lists all breakpoints for the debuggee.
|
||||||
# @param [String] debuggee_id
|
# @param [String] debuggee_id
|
||||||
# ID of the debuggee whose breakpoints to list.
|
# ID of the debuggee whose breakpoints to list.
|
||||||
|
# @param [Boolean] strip_results
|
||||||
|
# This field is deprecated. The following fields are always stripped out of
|
||||||
|
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
||||||
# @param [String] wait_token
|
# @param [String] wait_token
|
||||||
# A wait token that, if specified, blocks the call until the breakpoints
|
# A wait token that, if specified, blocks the call until the breakpoints
|
||||||
# list has changed, or a server selected timeout has expired. The value
|
# list has changed, or a server selected timeout has expired. The value
|
||||||
|
@ -210,15 +213,12 @@ module Google
|
||||||
# @param [String] client_version
|
# @param [String] client_version
|
||||||
# The client version making the call.
|
# The client version making the call.
|
||||||
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||||
# @param [Boolean] include_inactive
|
|
||||||
# When set to `true`, the response includes active and inactive
|
|
||||||
# breakpoints. Otherwise, it includes only active breakpoints.
|
|
||||||
# @param [Boolean] include_all_users
|
# @param [Boolean] include_all_users
|
||||||
# When set to `true`, the response includes the list of breakpoints set by
|
# When set to `true`, the response includes the list of breakpoints set by
|
||||||
# any user. Otherwise, it includes only breakpoints set by the caller.
|
# any user. Otherwise, it includes only breakpoints set by the caller.
|
||||||
# @param [Boolean] strip_results
|
# @param [Boolean] include_inactive
|
||||||
# This field is deprecated. The following fields are always stripped out of
|
# When set to `true`, the response includes active and inactive
|
||||||
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
# breakpoints. Otherwise, it includes only active breakpoints.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -236,17 +236,17 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_debugger_debuggee_breakpoints(debuggee_id, wait_token: nil, action_value: nil, client_version: nil, include_inactive: nil, include_all_users: nil, strip_results: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_debugger_debuggee_breakpoints(debuggee_id, strip_results: nil, wait_token: nil, action_value: nil, client_version: nil, include_all_users: nil, include_inactive: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
||||||
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
||||||
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
||||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.query['stripResults'] = strip_results unless strip_results.nil?
|
||||||
command.query['waitToken'] = wait_token unless wait_token.nil?
|
command.query['waitToken'] = wait_token unless wait_token.nil?
|
||||||
command.query['action.value'] = action_value unless action_value.nil?
|
command.query['action.value'] = action_value unless action_value.nil?
|
||||||
command.query['clientVersion'] = client_version unless client_version.nil?
|
command.query['clientVersion'] = client_version unless client_version.nil?
|
||||||
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
|
||||||
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
||||||
command.query['stripResults'] = strip_results unless strip_results.nil?
|
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -289,6 +289,58 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns the list of all active breakpoints for the debuggee.
|
||||||
|
# The breakpoint specification (location, condition, and expression
|
||||||
|
# fields) is semantically immutable, although the field values may
|
||||||
|
# change. For example, an agent may update the location line number
|
||||||
|
# to reflect the actual line where the breakpoint was set, but this
|
||||||
|
# doesn't change the breakpoint semantics.
|
||||||
|
# This means that an agent does not need to check if a breakpoint has changed
|
||||||
|
# when it encounters the same breakpoint on a successive call.
|
||||||
|
# Moreover, an agent should remember the breakpoints that are completed
|
||||||
|
# until the controller removes them from the active list to avoid
|
||||||
|
# setting those breakpoints again.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# Identifies the debuggee.
|
||||||
|
# @param [Boolean] success_on_timeout
|
||||||
|
# If set to `true`, returns `google.rpc.Code.OK` status and sets the
|
||||||
|
# `wait_expired` response field to `true` when the server-selected timeout
|
||||||
|
# has expired (recommended).
|
||||||
|
# If set to `false`, returns `google.rpc.Code.ABORTED` status when the
|
||||||
|
# server-selected timeout has expired (deprecated).
|
||||||
|
# @param [String] wait_token
|
||||||
|
# A wait token that, if specified, blocks the method call until the list
|
||||||
|
# of active breakpoints has changed, or a server selected timeout has
|
||||||
|
# expired. The value should be set from the last returned response.
|
||||||
|
# @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::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
|
||||||
|
#
|
||||||
|
# @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_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
|
||||||
|
command.query['waitToken'] = wait_token unless wait_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
|
||||||
|
|
||||||
# Updates the breakpoint state or mutable fields.
|
# Updates the breakpoint state or mutable fields.
|
||||||
# The entire Breakpoint message must be sent back to the controller
|
# The entire Breakpoint message must be sent back to the controller
|
||||||
# service.
|
# service.
|
||||||
|
@ -332,58 +384,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the list of all active breakpoints for the debuggee.
|
|
||||||
# The breakpoint specification (location, condition, and expression
|
|
||||||
# fields) is semantically immutable, although the field values may
|
|
||||||
# change. For example, an agent may update the location line number
|
|
||||||
# to reflect the actual line where the breakpoint was set, but this
|
|
||||||
# doesn't change the breakpoint semantics.
|
|
||||||
# This means that an agent does not need to check if a breakpoint has changed
|
|
||||||
# when it encounters the same breakpoint on a successive call.
|
|
||||||
# Moreover, an agent should remember the breakpoints that are completed
|
|
||||||
# until the controller removes them from the active list to avoid
|
|
||||||
# setting those breakpoints again.
|
|
||||||
# @param [String] debuggee_id
|
|
||||||
# Identifies the debuggee.
|
|
||||||
# @param [String] wait_token
|
|
||||||
# A wait token that, if specified, blocks the method call until the list
|
|
||||||
# of active breakpoints has changed, or a server selected timeout has
|
|
||||||
# expired. The value should be set from the last returned response.
|
|
||||||
# @param [Boolean] success_on_timeout
|
|
||||||
# If set to `true`, returns `google.rpc.Code.OK` status and sets the
|
|
||||||
# `wait_expired` response field to `true` when the server-selected timeout
|
|
||||||
# has expired (recommended).
|
|
||||||
# If set to `false`, returns `google.rpc.Code.ABORTED` status when the
|
|
||||||
# server-selected timeout has expired (deprecated).
|
|
||||||
# @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::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
|
|
||||||
#
|
|
||||||
# @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_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
|
|
||||||
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
|
||||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
|
||||||
command.query['waitToken'] = wait_token unless wait_token.nil?
|
|
||||||
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.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
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
# 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/clouderrorreporting_v1beta1/service.rb'
|
||||||
|
require 'google/apis/clouderrorreporting_v1beta1/classes.rb'
|
||||||
|
require 'google/apis/clouderrorreporting_v1beta1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Stackdriver Error Reporting API
|
||||||
|
#
|
||||||
|
# Stackdriver Error Reporting groups and counts similar errors from cloud
|
||||||
|
# services. The Stackdriver Error Reporting API provides a way to report new
|
||||||
|
# errors and read access to error groups and their associated errors.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/error-reporting/
|
||||||
|
module ClouderrorreportingV1beta1
|
||||||
|
VERSION = 'V1beta1'
|
||||||
|
REVISION = '20170314'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,590 @@
|
||||||
|
# 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 ClouderrorreportingV1beta1
|
||||||
|
|
||||||
|
# Data extracted for a specific group based on certain filter criteria,
|
||||||
|
# such as a given time period and/or service filter.
|
||||||
|
class ErrorGroupStats
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Approximate total number of events in the given group that match
|
||||||
|
# the filter criteria.
|
||||||
|
# Corresponds to the JSON property `count`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :count
|
||||||
|
|
||||||
|
# Approximate last occurrence that was ever seen for this group and
|
||||||
|
# which matches the given filter criteria, ignoring the time_range
|
||||||
|
# that was specified in the request.
|
||||||
|
# Corresponds to the JSON property `lastSeenTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :last_seen_time
|
||||||
|
|
||||||
|
# Approximate number of affected users in the given group that
|
||||||
|
# match the filter criteria.
|
||||||
|
# Users are distinguished by data in the `ErrorContext` of the
|
||||||
|
# individual error events, such as their login name or their remote
|
||||||
|
# IP address in case of HTTP requests.
|
||||||
|
# The number of affected users can be zero even if the number of
|
||||||
|
# errors is non-zero if no data was provided from which the
|
||||||
|
# affected user could be deduced.
|
||||||
|
# Users are counted based on data in the request
|
||||||
|
# context that was provided in the error report. If more users are
|
||||||
|
# implicitly affected, such as due to a crash of the whole service,
|
||||||
|
# this is not reflected here.
|
||||||
|
# Corresponds to the JSON property `affectedUsersCount`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :affected_users_count
|
||||||
|
|
||||||
|
# The total number of services with a non-zero error count for the given
|
||||||
|
# filter criteria.
|
||||||
|
# Corresponds to the JSON property `numAffectedServices`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :num_affected_services
|
||||||
|
|
||||||
|
# Service contexts with a non-zero error count for the given filter
|
||||||
|
# criteria. This list can be truncated if multiple services are affected.
|
||||||
|
# Refer to `num_affected_services` for the total count.
|
||||||
|
# Corresponds to the JSON property `affectedServices`
|
||||||
|
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>]
|
||||||
|
attr_accessor :affected_services
|
||||||
|
|
||||||
|
# An error event which is returned by the Error Reporting system.
|
||||||
|
# Corresponds to the JSON property `representative`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
|
||||||
|
attr_accessor :representative
|
||||||
|
|
||||||
|
# Approximate number of occurrences over time.
|
||||||
|
# Timed counts returned by ListGroups are guaranteed to be:
|
||||||
|
# - Inside the requested time interval
|
||||||
|
# - Non-overlapping, and
|
||||||
|
# - Ordered by ascending time.
|
||||||
|
# Corresponds to the JSON property `timedCounts`
|
||||||
|
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>]
|
||||||
|
attr_accessor :timed_counts
|
||||||
|
|
||||||
|
# Description of a group of similar error events.
|
||||||
|
# Corresponds to the JSON property `group`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
|
||||||
|
attr_accessor :group
|
||||||
|
|
||||||
|
# Approximate first occurrence that was ever seen for this group
|
||||||
|
# and which matches the given filter criteria, ignoring the
|
||||||
|
# time_range that was specified in the request.
|
||||||
|
# Corresponds to the JSON property `firstSeenTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :first_seen_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@count = args[:count] if args.key?(:count)
|
||||||
|
@last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time)
|
||||||
|
@affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count)
|
||||||
|
@num_affected_services = args[:num_affected_services] if args.key?(:num_affected_services)
|
||||||
|
@affected_services = args[:affected_services] if args.key?(:affected_services)
|
||||||
|
@representative = args[:representative] if args.key?(:representative)
|
||||||
|
@timed_counts = args[:timed_counts] if args.key?(:timed_counts)
|
||||||
|
@group = args[:group] if args.key?(:group)
|
||||||
|
@first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Contains a set of requested error events.
|
||||||
|
class ListEventsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The timestamp specifies the start time to which the request was restricted.
|
||||||
|
# Corresponds to the JSON property `timeRangeBegin`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_range_begin
|
||||||
|
|
||||||
|
# The error events which match the given request.
|
||||||
|
# Corresponds to the JSON property `errorEvents`
|
||||||
|
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>]
|
||||||
|
attr_accessor :error_events
|
||||||
|
|
||||||
|
# If non-empty, more results are available.
|
||||||
|
# Pass this token, along with the same query parameters as the first
|
||||||
|
# request, to view the next page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
|
||||||
|
@error_events = args[:error_events] if args.key?(:error_events)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The number of errors in a given time period.
|
||||||
|
# All numbers are approximate since the error events are sampled
|
||||||
|
# before counting them.
|
||||||
|
class TimedCount
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# End of the time period to which `count` refers (excluded).
|
||||||
|
# Corresponds to the JSON property `endTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_time
|
||||||
|
|
||||||
|
# Approximate number of occurrences in the given time period.
|
||||||
|
# Corresponds to the JSON property `count`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :count
|
||||||
|
|
||||||
|
# Start of the time period to which `count` refers (included).
|
||||||
|
# Corresponds to the JSON property `startTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@end_time = args[:end_time] if args.key?(:end_time)
|
||||||
|
@count = args[:count] if args.key?(:count)
|
||||||
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Description of a group of similar error events.
|
||||||
|
class ErrorGroup
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Group IDs are unique for a given project. If the same kind of error
|
||||||
|
# occurs in different service contexts, it will receive the same group ID.
|
||||||
|
# Corresponds to the JSON property `groupId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :group_id
|
||||||
|
|
||||||
|
# Associated tracking issues.
|
||||||
|
# Corresponds to the JSON property `trackingIssues`
|
||||||
|
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TrackingIssue>]
|
||||||
|
attr_accessor :tracking_issues
|
||||||
|
|
||||||
|
# The group resource name.
|
||||||
|
# Example: <code>projects/my-project-123/groups/my-groupid</code>
|
||||||
|
# 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)
|
||||||
|
@group_id = args[:group_id] if args.key?(:group_id)
|
||||||
|
@tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Describes a running service that sends errors.
|
||||||
|
# Its version changes over time and multiple versions can run in parallel.
|
||||||
|
class ServiceContext
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents the source code version that the developer provided,
|
||||||
|
# which could represent a version label or a Git SHA-1 hash, for example.
|
||||||
|
# For App Engine standard environment, the version is set to the version of
|
||||||
|
# the app.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
# An identifier of the service, such as the name of the
|
||||||
|
# executable, job, or Google App Engine service name. This field is expected
|
||||||
|
# to have a low number of values that are relatively stable over time, as
|
||||||
|
# opposed to `version`, which can be changed whenever new code is deployed.
|
||||||
|
# Contains the service name for error reports extracted from Google
|
||||||
|
# App Engine logs or `default` if the App Engine default service is used.
|
||||||
|
# Corresponds to the JSON property `service`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service
|
||||||
|
|
||||||
|
# Type of the MonitoredResource. List of possible values:
|
||||||
|
# https://cloud.google.com/monitoring/api/resources
|
||||||
|
# Value is set automatically for incoming errors and must not be set when
|
||||||
|
# reporting errors.
|
||||||
|
# Corresponds to the JSON property `resourceType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :resource_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
@service = args[:service] if args.key?(:service)
|
||||||
|
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Indicates a location in the source code of the service for which errors are
|
||||||
|
# reported. `functionName` must be provided by the application when reporting
|
||||||
|
# an error, unless the error report contains a `message` with a supported
|
||||||
|
# exception stack trace. All fields are optional for the later case.
|
||||||
|
class SourceLocation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Human-readable name of a function or method.
|
||||||
|
# The value can include optional context like the class or package name.
|
||||||
|
# For example, `my.package.MyClass.method` in case of Java.
|
||||||
|
# Corresponds to the JSON property `functionName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :function_name
|
||||||
|
|
||||||
|
# The source code filename, which can include a truncated relative
|
||||||
|
# path, or a full path from a production machine.
|
||||||
|
# Corresponds to the JSON property `filePath`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :file_path
|
||||||
|
|
||||||
|
# 1-based. 0 indicates that the line number is unknown.
|
||||||
|
# Corresponds to the JSON property `lineNumber`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :line_number
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@function_name = args[:function_name] if args.key?(:function_name)
|
||||||
|
@file_path = args[:file_path] if args.key?(:file_path)
|
||||||
|
@line_number = args[:line_number] if args.key?(:line_number)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response for reporting an individual error event.
|
||||||
|
# Data may be added to this message in the future.
|
||||||
|
class ReportErrorEventResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# HTTP request data that is related to a reported error.
|
||||||
|
# This data should be provided by the application when reporting an error,
|
||||||
|
# unless the
|
||||||
|
# error report has been generated automatically from Google App Engine logs.
|
||||||
|
class HttpRequestContext
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The HTTP response status code for the request.
|
||||||
|
# Corresponds to the JSON property `responseStatusCode`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :response_status_code
|
||||||
|
|
||||||
|
# The type of HTTP request, such as `GET`, `POST`, etc.
|
||||||
|
# Corresponds to the JSON property `method`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :method_prop
|
||||||
|
|
||||||
|
# The IP address from which the request originated.
|
||||||
|
# This can be IPv4, IPv6, or a token which is derived from the
|
||||||
|
# IP address, depending on the data that has been provided
|
||||||
|
# in the error report.
|
||||||
|
# Corresponds to the JSON property `remoteIp`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :remote_ip
|
||||||
|
|
||||||
|
# The referrer information that is provided with the request.
|
||||||
|
# Corresponds to the JSON property `referrer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :referrer
|
||||||
|
|
||||||
|
# The user agent information that is provided with the request.
|
||||||
|
# Corresponds to the JSON property `userAgent`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :user_agent
|
||||||
|
|
||||||
|
# The URL of the request.
|
||||||
|
# Corresponds to the JSON property `url`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :url
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@response_status_code = args[:response_status_code] if args.key?(:response_status_code)
|
||||||
|
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
||||||
|
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
||||||
|
@referrer = args[:referrer] if args.key?(:referrer)
|
||||||
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
||||||
|
@url = args[:url] if args.key?(:url)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Contains a set of requested error group stats.
|
||||||
|
class ListGroupStatsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The timestamp specifies the start time to which the request was restricted.
|
||||||
|
# The start time is set based on the requested time range. It may be adjusted
|
||||||
|
# to a later time if a project has exceeded the storage quota and older data
|
||||||
|
# has been deleted.
|
||||||
|
# Corresponds to the JSON property `timeRangeBegin`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_range_begin
|
||||||
|
|
||||||
|
# The error group stats which match the given request.
|
||||||
|
# Corresponds to the JSON property `errorGroupStats`
|
||||||
|
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
|
||||||
|
attr_accessor :error_group_stats
|
||||||
|
|
||||||
|
# If non-empty, more results are available.
|
||||||
|
# Pass this token, along with the same query parameters as the first
|
||||||
|
# request, to view the next page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
|
||||||
|
@error_group_stats = args[:error_group_stats] if args.key?(:error_group_stats)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for deleting error events.
|
||||||
|
class DeleteEventsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An error event which is returned by the Error Reporting system.
|
||||||
|
class ErrorEvent
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Describes a running service that sends errors.
|
||||||
|
# Its version changes over time and multiple versions can run in parallel.
|
||||||
|
# Corresponds to the JSON property `serviceContext`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
|
||||||
|
attr_accessor :service_context
|
||||||
|
|
||||||
|
# Time when the event occurred as provided in the error report.
|
||||||
|
# If the report did not contain a timestamp, the time the error was received
|
||||||
|
# by the Error Reporting system is used.
|
||||||
|
# Corresponds to the JSON property `eventTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :event_time
|
||||||
|
|
||||||
|
# A description of the context in which an error occurred.
|
||||||
|
# This data should be provided by the application when reporting an error,
|
||||||
|
# unless the
|
||||||
|
# error report has been generated automatically from Google App Engine logs.
|
||||||
|
# Corresponds to the JSON property `context`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
|
||||||
|
attr_accessor :context
|
||||||
|
|
||||||
|
# The stack trace that was reported or logged by the service.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@service_context = args[:service_context] if args.key?(:service_context)
|
||||||
|
@event_time = args[:event_time] if args.key?(:event_time)
|
||||||
|
@context = args[:context] if args.key?(:context)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An error event which is reported to the Error Reporting system.
|
||||||
|
class ReportedErrorEvent
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Optional] Time when the event occurred.
|
||||||
|
# If not provided, the time when the event was received by the
|
||||||
|
# Error Reporting system will be used.
|
||||||
|
# Corresponds to the JSON property `eventTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :event_time
|
||||||
|
|
||||||
|
# A description of the context in which an error occurred.
|
||||||
|
# This data should be provided by the application when reporting an error,
|
||||||
|
# unless the
|
||||||
|
# error report has been generated automatically from Google App Engine logs.
|
||||||
|
# Corresponds to the JSON property `context`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
|
||||||
|
attr_accessor :context
|
||||||
|
|
||||||
|
# [Required] The error message.
|
||||||
|
# If no `context.reportLocation` is provided, the message must contain a
|
||||||
|
# header (typically consisting of the exception type name and an error
|
||||||
|
# message) and an exception stack trace in one of the supported programming
|
||||||
|
# languages and formats.
|
||||||
|
# Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
|
||||||
|
# Supported stack trace formats are:
|
||||||
|
# * **Java**: Must be the return value of [`Throwable.printStackTrace()`](https:/
|
||||||
|
# /docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%
|
||||||
|
# 29).
|
||||||
|
# * **Python**: Must be the return value of [`traceback.format_exc()`](https://
|
||||||
|
# docs.python.org/2/library/traceback.html#traceback.format_exc).
|
||||||
|
# * **JavaScript**: Must be the value of [`error.stack`](https://github.com/v8/
|
||||||
|
# v8/wiki/Stack-Trace-API)
|
||||||
|
# as returned by V8.
|
||||||
|
# * **Ruby**: Must contain frames returned by [`Exception.backtrace`](https://
|
||||||
|
# ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
|
||||||
|
# * **C#**: Must be the return value of [`Exception.ToString()`](https://msdn.
|
||||||
|
# microsoft.com/en-us/library/system.exception.tostring.aspx).
|
||||||
|
# * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
|
||||||
|
# and contain the result of [`(string)$exception`](http://php.net/manual/en/
|
||||||
|
# exception.tostring.php).
|
||||||
|
# * **Go**: Must be the return value of [`runtime.Stack()`](https://golang.org/
|
||||||
|
# pkg/runtime/debug/#Stack).
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
# Describes a running service that sends errors.
|
||||||
|
# Its version changes over time and multiple versions can run in parallel.
|
||||||
|
# Corresponds to the JSON property `serviceContext`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
|
||||||
|
attr_accessor :service_context
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@event_time = args[:event_time] if args.key?(:event_time)
|
||||||
|
@context = args[:context] if args.key?(:context)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
@service_context = args[:service_context] if args.key?(:service_context)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A description of the context in which an error occurred.
|
||||||
|
# This data should be provided by the application when reporting an error,
|
||||||
|
# unless the
|
||||||
|
# error report has been generated automatically from Google App Engine logs.
|
||||||
|
class ErrorContext
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The user who caused or was affected by the crash.
|
||||||
|
# This can be a user ID, an email address, or an arbitrary token that
|
||||||
|
# uniquely identifies the user.
|
||||||
|
# When sending an error report, leave this field empty if the user was not
|
||||||
|
# logged in. In this case the
|
||||||
|
# Error Reporting system will use other data, such as remote IP address, to
|
||||||
|
# distinguish affected users. See `affected_users_count` in
|
||||||
|
# `ErrorGroupStats`.
|
||||||
|
# Corresponds to the JSON property `user`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :user
|
||||||
|
|
||||||
|
# Indicates a location in the source code of the service for which errors are
|
||||||
|
# reported. `functionName` must be provided by the application when reporting
|
||||||
|
# an error, unless the error report contains a `message` with a supported
|
||||||
|
# exception stack trace. All fields are optional for the later case.
|
||||||
|
# Corresponds to the JSON property `reportLocation`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::SourceLocation]
|
||||||
|
attr_accessor :report_location
|
||||||
|
|
||||||
|
# HTTP request data that is related to a reported error.
|
||||||
|
# This data should be provided by the application when reporting an error,
|
||||||
|
# unless the
|
||||||
|
# error report has been generated automatically from Google App Engine logs.
|
||||||
|
# Corresponds to the JSON property `httpRequest`
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext]
|
||||||
|
attr_accessor :http_request
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@user = args[:user] if args.key?(:user)
|
||||||
|
@report_location = args[:report_location] if args.key?(:report_location)
|
||||||
|
@http_request = args[:http_request] if args.key?(:http_request)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Information related to tracking the progress on resolving the error.
|
||||||
|
class TrackingIssue
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A URL pointing to a related entry in an issue tracking system.
|
||||||
|
# Example: https://github.com/user/project/issues/4
|
||||||
|
# Corresponds to the JSON property `url`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :url
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@url = args[:url] if args.key?(:url)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,252 @@
|
||||||
|
# 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 ClouderrorreportingV1beta1
|
||||||
|
|
||||||
|
class ErrorGroupStats
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListEventsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TimedCount
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorGroup
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ServiceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportErrorEventResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpRequestContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListGroupStatsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeleteEventsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportedErrorEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TrackingIssue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorGroupStats
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :count, as: 'count'
|
||||||
|
property :last_seen_time, as: 'lastSeenTime'
|
||||||
|
property :affected_users_count, as: 'affectedUsersCount'
|
||||||
|
property :num_affected_services, as: 'numAffectedServices'
|
||||||
|
collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
|
||||||
|
|
||||||
|
property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
|
||||||
|
|
||||||
|
collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation
|
||||||
|
|
||||||
|
property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
|
||||||
|
|
||||||
|
property :first_seen_time, as: 'firstSeenTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListEventsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :time_range_begin, as: 'timeRangeBegin'
|
||||||
|
collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TimedCount
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :count, as: 'count'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorGroup
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :group_id, as: 'groupId'
|
||||||
|
collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ServiceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :version, as: 'version'
|
||||||
|
property :service, as: 'service'
|
||||||
|
property :resource_type, as: 'resourceType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceLocation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :function_name, as: 'functionName'
|
||||||
|
property :file_path, as: 'filePath'
|
||||||
|
property :line_number, as: 'lineNumber'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportErrorEventResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpRequestContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :response_status_code, as: 'responseStatusCode'
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :remote_ip, as: 'remoteIp'
|
||||||
|
property :referrer, as: 'referrer'
|
||||||
|
property :user_agent, as: 'userAgent'
|
||||||
|
property :url, as: 'url'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListGroupStatsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :time_range_begin, as: 'timeRangeBegin'
|
||||||
|
collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeleteEventsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorEvent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
|
||||||
|
|
||||||
|
property :event_time, as: 'eventTime'
|
||||||
|
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportedErrorEvent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :event_time, as: 'eventTime'
|
||||||
|
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :user, as: 'user'
|
||||||
|
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
|
||||||
|
|
||||||
|
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TrackingIssue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :url, as: 'url'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,350 @@
|
||||||
|
# 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 ClouderrorreportingV1beta1
|
||||||
|
# Stackdriver Error Reporting API
|
||||||
|
#
|
||||||
|
# Stackdriver Error Reporting groups and counts similar errors from cloud
|
||||||
|
# services. The Stackdriver Error Reporting API provides a way to report new
|
||||||
|
# errors and read access to error groups and their associated errors.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/clouderrorreporting_v1beta1'
|
||||||
|
#
|
||||||
|
# Clouderrorreporting = Google::Apis::ClouderrorreportingV1beta1 # Alias the module
|
||||||
|
# service = Clouderrorreporting::ClouderrorreportingService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/error-reporting/
|
||||||
|
class ClouderrorreportingService < 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://clouderrorreporting.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes all error events of a given project.
|
||||||
|
# @param [String] project_name
|
||||||
|
# [Required] The resource name of the Google Cloud Platform project. Written
|
||||||
|
# as `projects/` plus the
|
||||||
|
# [Google Cloud Platform project
|
||||||
|
# ID](https://support.google.com/cloud/answer/6158840).
|
||||||
|
# Example: `projects/my-project-123`.
|
||||||
|
# @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::ClouderrorreportingV1beta1::DeleteEventsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse]
|
||||||
|
#
|
||||||
|
# @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_project_events(project_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1beta1/{+projectName}/events', options)
|
||||||
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse
|
||||||
|
command.params['projectName'] = project_name unless project_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
|
||||||
|
|
||||||
|
# Get the specified group.
|
||||||
|
# @param [String] group_name
|
||||||
|
# [Required] The group resource name. Written as
|
||||||
|
# <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
|
||||||
|
# Call
|
||||||
|
# <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
|
||||||
|
# <code>groupStats.list</code></a> to return a list of groups belonging to
|
||||||
|
# this project.
|
||||||
|
# Example: <code>projects/my-project-123/groups/my-group</code>
|
||||||
|
# @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::ClouderrorreportingV1beta1::ErrorGroup] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
|
||||||
|
#
|
||||||
|
# @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_project_group(group_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+groupName}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
|
||||||
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
|
||||||
|
command.params['groupName'] = group_name unless group_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
|
||||||
|
|
||||||
|
# Replace the data for the specified group.
|
||||||
|
# Fails if the group does not exist.
|
||||||
|
# @param [String] name
|
||||||
|
# The group resource name.
|
||||||
|
# Example: <code>projects/my-project-123/groups/my-groupid</code>
|
||||||
|
# @param [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] error_group_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::ClouderrorreportingV1beta1::ErrorGroup] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
|
||||||
|
#
|
||||||
|
# @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 update_project_group(name, error_group_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
|
||||||
|
command.request_object = error_group_object
|
||||||
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
|
||||||
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
|
||||||
|
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 the specified groups.
|
||||||
|
# @param [String] project_name
|
||||||
|
# [Required] The resource name of the Google Cloud Platform project. Written
|
||||||
|
# as <code>projects/</code> plus the
|
||||||
|
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
|
||||||
|
# Platform project ID</a>.
|
||||||
|
# Example: <code>projects/my-project-123</code>.
|
||||||
|
# @param [String] timed_count_duration
|
||||||
|
# [Optional] The preferred duration for a single returned `TimedCount`.
|
||||||
|
# If not set, no timed counts are returned.
|
||||||
|
# @param [String] page_token
|
||||||
|
# [Optional] A `next_page_token` provided by a previous response. To view
|
||||||
|
# additional results, pass this token along with the identical query
|
||||||
|
# parameters as the first request.
|
||||||
|
# @param [String] time_range_period
|
||||||
|
# Restricts the query to the specified time range.
|
||||||
|
# @param [String] alignment
|
||||||
|
# [Optional] The alignment of the timed counts to be returned.
|
||||||
|
# Default is `ALIGNMENT_EQUAL_AT_END`.
|
||||||
|
# @param [Array<String>, String] group_id
|
||||||
|
# [Optional] List all <code>ErrorGroupStats</code> with these IDs.
|
||||||
|
# @param [String] service_filter_service
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.service).
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# [Optional] The maximum number of results to return per response.
|
||||||
|
# Default is 20.
|
||||||
|
# @param [String] order
|
||||||
|
# [Optional] The sort order in which the results are returned.
|
||||||
|
# Default is `COUNT_DESC`.
|
||||||
|
# @param [String] service_filter_version
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.version).
|
||||||
|
# @param [String] service_filter_resource_type
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.resource_type).
|
||||||
|
# @param [String] alignment_time
|
||||||
|
# [Optional] Time where the timed counts shall be aligned if rounded
|
||||||
|
# alignment is chosen. Default is 00:00 UTC.
|
||||||
|
# @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::ClouderrorreportingV1beta1::ListGroupStatsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_group_stats(project_name, timed_count_duration: nil, page_token: nil, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, service_filter_resource_type: nil, alignment_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
|
||||||
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
|
||||||
|
command.params['projectName'] = project_name unless project_name.nil?
|
||||||
|
command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
|
||||||
|
command.query['alignment'] = alignment unless alignment.nil?
|
||||||
|
command.query['groupId'] = group_id unless group_id.nil?
|
||||||
|
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['order'] = order unless order.nil?
|
||||||
|
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
|
||||||
|
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
|
||||||
|
command.query['alignmentTime'] = alignment_time unless alignment_time.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 the specified events.
|
||||||
|
# @param [String] project_name
|
||||||
|
# [Required] The resource name of the Google Cloud Platform project. Written
|
||||||
|
# as `projects/` plus the
|
||||||
|
# [Google Cloud Platform project
|
||||||
|
# ID](https://support.google.com/cloud/answer/6158840).
|
||||||
|
# Example: `projects/my-project-123`.
|
||||||
|
# @param [String] group_id
|
||||||
|
# [Required] The group for which events shall be returned.
|
||||||
|
# @param [String] page_token
|
||||||
|
# [Optional] A `next_page_token` provided by a previous response.
|
||||||
|
# @param [String] service_filter_service
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.service).
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# [Optional] The maximum number of results to return per response.
|
||||||
|
# @param [String] service_filter_version
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.version).
|
||||||
|
# @param [String] service_filter_resource_type
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.resource_type).
|
||||||
|
# @param [String] time_range_period
|
||||||
|
# Restricts the query to the specified time range.
|
||||||
|
# @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::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_events(project_name, group_id: nil, page_token: nil, service_filter_service: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
|
||||||
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
|
||||||
|
command.params['projectName'] = project_name unless project_name.nil?
|
||||||
|
command.query['groupId'] = group_id unless group_id.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
|
||||||
|
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
|
||||||
|
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Report an individual error event.
|
||||||
|
# This endpoint accepts <strong>either</strong> an OAuth token,
|
||||||
|
# <strong>or</strong> an
|
||||||
|
# <a href="https://support.google.com/cloud/answer/6158862">API key</a>
|
||||||
|
# for authentication. To use an API key, append it to the URL as the value of
|
||||||
|
# a `key` parameter. For example:
|
||||||
|
# <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
|
||||||
|
# project/events:report?key=123ABC456</pre>
|
||||||
|
# @param [String] project_name
|
||||||
|
# [Required] The resource name of the Google Cloud Platform project. Written
|
||||||
|
# as `projects/` plus the
|
||||||
|
# [Google Cloud Platform project ID](https://support.google.com/cloud/answer/
|
||||||
|
# 6158840).
|
||||||
|
# Example: `projects/my-project-123`.
|
||||||
|
# @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_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::ClouderrorreportingV1beta1::ReportErrorEventResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse]
|
||||||
|
#
|
||||||
|
# @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 report_project_event(project_name, reported_error_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/{+projectName}/events:report', options)
|
||||||
|
command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent::Representation
|
||||||
|
command.request_object = reported_error_event_object
|
||||||
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse
|
||||||
|
command.params['projectName'] = project_name unless project_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
|
||||||
|
|
||||||
|
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
|
|
@ -0,0 +1,35 @@
|
||||||
|
# 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/cloudfunctions_v1/service.rb'
|
||||||
|
require 'google/apis/cloudfunctions_v1/classes.rb'
|
||||||
|
require 'google/apis/cloudfunctions_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Cloud Functions API
|
||||||
|
#
|
||||||
|
# API for managing lightweight user-provided functions executed in response to
|
||||||
|
# events.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/functions
|
||||||
|
module CloudfunctionsV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170328'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,98 @@
|
||||||
|
# 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 CloudfunctionsV1
|
||||||
|
|
||||||
|
# A resource that represents Google Cloud Platform location.
|
||||||
|
class Location
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The canonical id for this location. For example: `"us-east1"`.
|
||||||
|
# Corresponds to the JSON property `locationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location_id
|
||||||
|
|
||||||
|
# Service-specific metadata. For example the available capacity at the given
|
||||||
|
# location.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# Cross-service attributes for the location. For example
|
||||||
|
# `"cloud.googleapis.com/region": "us-east1"`
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
|
# Resource name for the location, which may vary between implementations.
|
||||||
|
# For example: `"projects/example-project/locations/us-east1"`
|
||||||
|
# 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)
|
||||||
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Metadata describing an Operation
|
||||||
|
class OperationMetadataV1Beta2
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Target of the operation - for example
|
||||||
|
# projects/project-1/locations/region-1/functions/function-1
|
||||||
|
# Corresponds to the JSON property `target`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :target
|
||||||
|
|
||||||
|
# The original request that started the operation.
|
||||||
|
# Corresponds to the JSON property `request`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :request
|
||||||
|
|
||||||
|
# Type of operation.
|
||||||
|
# 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)
|
||||||
|
@target = args[:target] if args.key?(:target)
|
||||||
|
@request = args[:request] if args.key?(:request)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,57 @@
|
||||||
|
# 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 CloudfunctionsV1
|
||||||
|
|
||||||
|
class Location
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1Beta2
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :location_id, as: 'locationId'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1Beta2
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :target, as: 'target'
|
||||||
|
hash :request, as: 'request'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,89 @@
|
||||||
|
# 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 CloudfunctionsV1
|
||||||
|
# Google Cloud Functions API
|
||||||
|
#
|
||||||
|
# API for managing lightweight user-provided functions executed in response to
|
||||||
|
# events.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/cloudfunctions_v1'
|
||||||
|
#
|
||||||
|
# Cloudfunctions = Google::Apis::CloudfunctionsV1 # Alias the module
|
||||||
|
# service = Cloudfunctions::CloudFunctionsService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/functions
|
||||||
|
class CloudFunctionsService < 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://cloudfunctions.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Get information about a location.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the location.
|
||||||
|
# @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::CloudfunctionsV1::Location] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudfunctionsV1::Location]
|
||||||
|
#
|
||||||
|
# @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_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudfunctionsV1::Location::Representation
|
||||||
|
command.response_class = Google::Apis::CloudfunctionsV1::Location
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
|
@ -26,6 +26,12 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Cross-service attributes for the location. For example
|
||||||
|
# `"cloud.googleapis.com/region": "us-east1"`
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
# Resource name for the location, which may vary between implementations.
|
# Resource name for the location, which may vary between implementations.
|
||||||
# For example: `"projects/example-project/locations/us-east1"`
|
# For example: `"projects/example-project/locations/us-east1"`
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
|
@ -43,22 +49,16 @@ module Google
|
||||||
# @return [Hash<String,Object>]
|
# @return [Hash<String,Object>]
|
||||||
attr_accessor :metadata
|
attr_accessor :metadata
|
||||||
|
|
||||||
# Cross-service attributes for the location. For example
|
|
||||||
# `"cloud.googleapis.com/region": "us-east1"`
|
|
||||||
# Corresponds to the JSON property `labels`
|
|
||||||
# @return [Hash<String,String>]
|
|
||||||
attr_accessor :labels
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@location_id = args[:location_id] if args.key?(:location_id)
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
@metadata = args[:metadata] if args.key?(:metadata)
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -98,49 +98,49 @@ module Google
|
||||||
class Condition
|
class Condition
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# An operator to apply the subject with.
|
|
||||||
# Corresponds to the JSON property `op`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :op
|
|
||||||
|
|
||||||
# Trusted attributes discharged by the service.
|
# Trusted attributes discharged by the service.
|
||||||
# Corresponds to the JSON property `svc`
|
# Corresponds to the JSON property `svc`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :svc
|
attr_accessor :svc
|
||||||
|
|
||||||
# DEPRECATED. Use 'values' instead.
|
|
||||||
# Corresponds to the JSON property `value`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :value
|
|
||||||
|
|
||||||
# Trusted attributes supplied by any service that owns resources and uses
|
# Trusted attributes supplied by any service that owns resources and uses
|
||||||
# the IAM system for access control.
|
# the IAM system for access control.
|
||||||
# Corresponds to the JSON property `sys`
|
# Corresponds to the JSON property `sys`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :sys
|
attr_accessor :sys
|
||||||
|
|
||||||
# Trusted attributes supplied by the IAM system.
|
# DEPRECATED. Use 'values' instead.
|
||||||
# Corresponds to the JSON property `iam`
|
# Corresponds to the JSON property `value`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :iam
|
attr_accessor :value
|
||||||
|
|
||||||
# The objects of the condition. This is mutually exclusive with 'value'.
|
# The objects of the condition. This is mutually exclusive with 'value'.
|
||||||
# Corresponds to the JSON property `values`
|
# Corresponds to the JSON property `values`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :values
|
attr_accessor :values
|
||||||
|
|
||||||
|
# Trusted attributes supplied by the IAM system.
|
||||||
|
# Corresponds to the JSON property `iam`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :iam
|
||||||
|
|
||||||
|
# An operator to apply the subject with.
|
||||||
|
# Corresponds to the JSON property `op`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :op
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@op = args[:op] if args.key?(:op)
|
|
||||||
@svc = args[:svc] if args.key?(:svc)
|
@svc = args[:svc] if args.key?(:svc)
|
||||||
@value = args[:value] if args.key?(:value)
|
|
||||||
@sys = args[:sys] if args.key?(:sys)
|
@sys = args[:sys] if args.key?(:sys)
|
||||||
@iam = args[:iam] if args.key?(:iam)
|
@value = args[:value] if args.key?(:value)
|
||||||
@values = args[:values] if args.key?(:values)
|
@values = args[:values] if args.key?(:values)
|
||||||
|
@iam = args[:iam] if args.key?(:iam)
|
||||||
|
@op = args[:op] if args.key?(:op)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -253,6 +253,82 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A KeyRing is a toplevel logical grouping of CryptoKeys.
|
||||||
|
class KeyRing
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Output only. The time at which this KeyRing was created.
|
||||||
|
# Corresponds to the JSON property `createTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :create_time
|
||||||
|
|
||||||
|
# Output only. The resource name for the KeyRing in the format
|
||||||
|
# `projects/*/locations/*/keyRings/*`.
|
||||||
|
# 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)
|
||||||
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for KeyManagementService.Encrypt.
|
||||||
|
class EncryptResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The resource name of the CryptoKeyVersion used in encryption.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The encrypted data.
|
||||||
|
# Corresponds to the JSON property `ciphertext`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ciphertext
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for Locations.ListLocations.
|
||||||
|
class ListLocationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The standard List next-page token.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# A list of locations that matches the specified filter in the request.
|
||||||
|
# Corresponds to the JSON property `locations`
|
||||||
|
# @return [Array<Google::Apis::CloudkmsV1::Location>]
|
||||||
|
attr_accessor :locations
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@locations = args[:locations] if args.key?(:locations)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||||
# specify access control policies for Cloud Platform resources.
|
# specify access control policies for Cloud Platform resources.
|
||||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
||||||
|
@ -346,82 +422,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The response message for Locations.ListLocations.
|
|
||||||
class ListLocationsResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A list of locations that matches the specified filter in the request.
|
|
||||||
# Corresponds to the JSON property `locations`
|
|
||||||
# @return [Array<Google::Apis::CloudkmsV1::Location>]
|
|
||||||
attr_accessor :locations
|
|
||||||
|
|
||||||
# The standard List next-page token.
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :next_page_token
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@locations = args[:locations] if args.key?(:locations)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A KeyRing is a toplevel logical grouping of CryptoKeys.
|
|
||||||
class KeyRing
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Output only. The resource name for the KeyRing in the format
|
|
||||||
# `projects/*/locations/*/keyRings/*`.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Output only. The time at which this KeyRing was created.
|
|
||||||
# Corresponds to the JSON property `createTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :create_time
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Response message for KeyManagementService.Encrypt.
|
|
||||||
class EncryptResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The resource name of the CryptoKeyVersion used in encryption.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# The encrypted data.
|
|
||||||
# Corresponds to the JSON property `ciphertext`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :ciphertext
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Request message for KeyManagementService.RestoreCryptoKeyVersion.
|
# Request message for KeyManagementService.RestoreCryptoKeyVersion.
|
||||||
class RestoreCryptoKeyVersionRequest
|
class RestoreCryptoKeyVersionRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -454,6 +454,19 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Write a Data Access (Gin) log
|
||||||
|
class DataAccessOptions
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Response message for KeyManagementService.ListKeyRings.
|
# Response message for KeyManagementService.ListKeyRings.
|
||||||
class ListKeyRingsResponse
|
class ListKeyRingsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -486,19 +499,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Write a Data Access (Gin) log
|
|
||||||
class DataAccessOptions
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Specifies the audit configuration for a service.
|
# Specifies the audit configuration for a service.
|
||||||
# The configuration determines which permission types are logged, and what
|
# The configuration determines which permission types are logged, and what
|
||||||
# identities, if any, are exempted from logging.
|
# identities, if any, are exempted from logging.
|
||||||
|
@ -587,18 +587,6 @@ module Google
|
||||||
class CryptoKeyVersion
|
class CryptoKeyVersion
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Output only. The time this CryptoKeyVersion's key material is scheduled
|
|
||||||
# for destruction. Only present if state is
|
|
||||||
# DESTROY_SCHEDULED.
|
|
||||||
# Corresponds to the JSON property `destroyTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :destroy_time
|
|
||||||
|
|
||||||
# Output only. The time at which this CryptoKeyVersion was created.
|
|
||||||
# Corresponds to the JSON property `createTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :create_time
|
|
||||||
|
|
||||||
# The current state of the CryptoKeyVersion.
|
# The current state of the CryptoKeyVersion.
|
||||||
# Corresponds to the JSON property `state`
|
# Corresponds to the JSON property `state`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -617,17 +605,29 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :destroy_event_time
|
attr_accessor :destroy_event_time
|
||||||
|
|
||||||
|
# Output only. The time this CryptoKeyVersion's key material is scheduled
|
||||||
|
# for destruction. Only present if state is
|
||||||
|
# DESTROY_SCHEDULED.
|
||||||
|
# Corresponds to the JSON property `destroyTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :destroy_time
|
||||||
|
|
||||||
|
# Output only. The time at which this CryptoKeyVersion was created.
|
||||||
|
# Corresponds to the JSON property `createTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :create_time
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
|
|
||||||
@create_time = args[:create_time] if args.key?(:create_time)
|
|
||||||
@state = args[:state] if args.key?(:state)
|
@state = args[:state] if args.key?(:state)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
|
@destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
|
||||||
|
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
|
||||||
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -715,6 +715,11 @@ module Google
|
||||||
class ListCryptoKeyVersionsResponse
|
class ListCryptoKeyVersionsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of CryptoKeyVersions.
|
||||||
|
# Corresponds to the JSON property `cryptoKeyVersions`
|
||||||
|
# @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
|
||||||
|
attr_accessor :crypto_key_versions
|
||||||
|
|
||||||
# A token to retrieve next page of results. Pass this value in
|
# A token to retrieve next page of results. Pass this value in
|
||||||
# ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
|
# ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
|
||||||
# results.
|
# results.
|
||||||
|
@ -728,20 +733,15 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :total_size
|
attr_accessor :total_size
|
||||||
|
|
||||||
# The list of CryptoKeyVersions.
|
|
||||||
# Corresponds to the JSON property `cryptoKeyVersions`
|
|
||||||
# @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
|
|
||||||
attr_accessor :crypto_key_versions
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
@total_size = args[:total_size] if args.key?(:total_size)
|
@total_size = args[:total_size] if args.key?(:total_size)
|
||||||
@crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -848,6 +848,24 @@ module Google
|
||||||
class Rule
|
class Rule
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If one or more 'not_in' clauses are specified, the rule matches
|
||||||
|
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
||||||
|
# The format for in and not_in entries is the same as for members in a
|
||||||
|
# Binding (see google/iam/v1/policy.proto).
|
||||||
|
# Corresponds to the JSON property `notIn`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :not_in
|
||||||
|
|
||||||
|
# Human-readable description of the rule.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Additional restrictions that must be met
|
||||||
|
# Corresponds to the JSON property `conditions`
|
||||||
|
# @return [Array<Google::Apis::CloudkmsV1::Condition>]
|
||||||
|
attr_accessor :conditions
|
||||||
|
|
||||||
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
||||||
# that match the LOG action.
|
# that match the LOG action.
|
||||||
# Corresponds to the JSON property `logConfig`
|
# Corresponds to the JSON property `logConfig`
|
||||||
|
@ -872,37 +890,19 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :action
|
attr_accessor :action
|
||||||
|
|
||||||
# If one or more 'not_in' clauses are specified, the rule matches
|
|
||||||
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
|
||||||
# The format for in and not_in entries is the same as for members in a
|
|
||||||
# Binding (see google/iam/v1/policy.proto).
|
|
||||||
# Corresponds to the JSON property `notIn`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :not_in
|
|
||||||
|
|
||||||
# Human-readable description of the rule.
|
|
||||||
# Corresponds to the JSON property `description`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :description
|
|
||||||
|
|
||||||
# Additional restrictions that must be met
|
|
||||||
# Corresponds to the JSON property `conditions`
|
|
||||||
# @return [Array<Google::Apis::CloudkmsV1::Condition>]
|
|
||||||
attr_accessor :conditions
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@not_in = args[:not_in] if args.key?(:not_in)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@conditions = args[:conditions] if args.key?(:conditions)
|
||||||
@log_config = args[:log_config] if args.key?(:log_config)
|
@log_config = args[:log_config] if args.key?(:log_config)
|
||||||
@in = args[:in] if args.key?(:in)
|
@in = args[:in] if args.key?(:in)
|
||||||
@permissions = args[:permissions] if args.key?(:permissions)
|
@permissions = args[:permissions] if args.key?(:permissions)
|
||||||
@action = args[:action] if args.key?(:action)
|
@action = args[:action] if args.key?(:action)
|
||||||
@not_in = args[:not_in] if args.key?(:not_in)
|
|
||||||
@description = args[:description] if args.key?(:description)
|
|
||||||
@conditions = args[:conditions] if args.key?(:conditions)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -910,11 +910,6 @@ module Google
|
||||||
class LogConfig
|
class LogConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Write a Cloud Audit log
|
|
||||||
# Corresponds to the JSON property `cloudAudit`
|
|
||||||
# @return [Google::Apis::CloudkmsV1::CloudAuditOptions]
|
|
||||||
attr_accessor :cloud_audit
|
|
||||||
|
|
||||||
# Options for counters
|
# Options for counters
|
||||||
# Corresponds to the JSON property `counter`
|
# Corresponds to the JSON property `counter`
|
||||||
# @return [Google::Apis::CloudkmsV1::CounterOptions]
|
# @return [Google::Apis::CloudkmsV1::CounterOptions]
|
||||||
|
@ -925,15 +920,20 @@ module Google
|
||||||
# @return [Google::Apis::CloudkmsV1::DataAccessOptions]
|
# @return [Google::Apis::CloudkmsV1::DataAccessOptions]
|
||||||
attr_accessor :data_access
|
attr_accessor :data_access
|
||||||
|
|
||||||
|
# Write a Cloud Audit log
|
||||||
|
# Corresponds to the JSON property `cloudAudit`
|
||||||
|
# @return [Google::Apis::CloudkmsV1::CloudAuditOptions]
|
||||||
|
attr_accessor :cloud_audit
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
|
|
||||||
@counter = args[:counter] if args.key?(:counter)
|
@counter = args[:counter] if args.key?(:counter)
|
||||||
@data_access = args[:data_access] if args.key?(:data_access)
|
@data_access = args[:data_access] if args.key?(:data_access)
|
||||||
|
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -941,15 +941,6 @@ module Google
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
||||||
# the fields in the mask will be modified. If no mask is provided, the
|
|
||||||
# following default mask is used:
|
|
||||||
# paths: "bindings, etag"
|
|
||||||
# This field is only used by Cloud IAM.
|
|
||||||
# Corresponds to the JSON property `updateMask`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :update_mask
|
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||||
# specify access control policies for Cloud Platform resources.
|
# specify access control policies for Cloud Platform resources.
|
||||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
||||||
|
@ -980,14 +971,23 @@ module Google
|
||||||
# @return [Google::Apis::CloudkmsV1::Policy]
|
# @return [Google::Apis::CloudkmsV1::Policy]
|
||||||
attr_accessor :policy
|
attr_accessor :policy
|
||||||
|
|
||||||
|
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||||
|
# the fields in the mask will be modified. If no mask is provided, the
|
||||||
|
# following default mask is used:
|
||||||
|
# paths: "bindings, etag"
|
||||||
|
# This field is only used by Cloud IAM.
|
||||||
|
# Corresponds to the JSON property `updateMask`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_mask
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
|
||||||
@policy = args[:policy] if args.key?(:policy)
|
@policy = args[:policy] if args.key?(:policy)
|
||||||
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Policy
|
class KeyRing
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class EncryptResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -76,13 +82,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class KeyRing
|
class Policy
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class EncryptResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -100,13 +100,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListKeyRingsResponse
|
class DataAccessOptions
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class DataAccessOptions
|
class ListKeyRingsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -193,10 +193,10 @@ module Google
|
||||||
class Location
|
class Location
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :location_id, as: 'locationId'
|
property :location_id, as: 'locationId'
|
||||||
hash :metadata, as: 'metadata'
|
hash :metadata, as: 'metadata'
|
||||||
hash :labels, as: 'labels'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -213,12 +213,12 @@ module Google
|
||||||
class Condition
|
class Condition
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :op, as: 'op'
|
|
||||||
property :svc, as: 'svc'
|
property :svc, as: 'svc'
|
||||||
property :value, as: 'value'
|
|
||||||
property :sys, as: 'sys'
|
property :sys, as: 'sys'
|
||||||
property :iam, as: 'iam'
|
property :value, as: 'value'
|
||||||
collection :values, as: 'values'
|
collection :values, as: 'values'
|
||||||
|
property :iam, as: 'iam'
|
||||||
|
property :op, as: 'op'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -252,6 +252,31 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class KeyRing
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class EncryptResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :ciphertext, :base64 => true, as: 'ciphertext'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Policy
|
class Policy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -267,31 +292,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListLocationsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
|
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class KeyRing
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class EncryptResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :ciphertext, :base64 => true, as: 'ciphertext'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RestoreCryptoKeyVersionRequest
|
class RestoreCryptoKeyVersionRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -305,6 +305,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DataAccessOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ListKeyRingsResponse
|
class ListKeyRingsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -315,12 +321,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DataAccessOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AuditConfig
|
class AuditConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -334,11 +334,11 @@ module Google
|
||||||
class CryptoKeyVersion
|
class CryptoKeyVersion
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :destroy_time, as: 'destroyTime'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :state, as: 'state'
|
property :state, as: 'state'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :destroy_event_time, as: 'destroyEventTime'
|
property :destroy_event_time, as: 'destroyEventTime'
|
||||||
|
property :destroy_time, as: 'destroyTime'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -367,10 +367,10 @@ module Google
|
||||||
class ListCryptoKeyVersionsResponse
|
class ListCryptoKeyVersionsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
property :total_size, as: 'totalSize'
|
|
||||||
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :total_size, as: 'totalSize'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -403,36 +403,36 @@ module Google
|
||||||
class Rule
|
class Rule
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :not_in, as: 'notIn'
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
|
||||||
|
|
||||||
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
|
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
|
||||||
|
|
||||||
collection :in, as: 'in'
|
collection :in, as: 'in'
|
||||||
collection :permissions, as: 'permissions'
|
collection :permissions, as: 'permissions'
|
||||||
property :action, as: 'action'
|
property :action, as: 'action'
|
||||||
collection :not_in, as: 'notIn'
|
|
||||||
property :description, as: 'description'
|
|
||||||
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogConfig
|
class LogConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
|
|
||||||
|
|
||||||
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
|
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
|
||||||
|
|
||||||
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
|
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
|
||||||
|
|
||||||
|
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :update_mask, as: 'updateMask'
|
|
||||||
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
|
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
|
||||||
|
|
||||||
|
property :update_mask, as: 'updateMask'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170324'
|
REVISION = '20170327'
|
||||||
|
|
||||||
# View your data across Google Cloud Platform services
|
# View your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,6 +22,156 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
|
|
||||||
|
class GetEffectiveOrgPolicyRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOrgPoliciesRequest
|
||||||
|
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 AuditConfig
|
||||||
|
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 ListLiensResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Constraint
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Binding
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetOrgPolicyRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RestoreDefault
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UndeleteProjectRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClearOrgPolicyRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectCreationStatus
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BooleanConstraint
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetIamPolicyRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestIamPermissionsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrganizationOwner
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListProjectsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Project
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SearchOrganizationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOrgPoliciesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FolderOperationError
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrgPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BooleanPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Lien
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Ancestor
|
class Ancestor
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -125,153 +275,225 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetEffectiveOrgPolicyRequest
|
class GetEffectiveOrgPolicyRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :constraint, as: 'constraint'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListOrgPoliciesRequest
|
class ListOrgPoliciesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :page_token, as: 'pageToken'
|
||||||
|
property :page_size, as: 'pageSize'
|
||||||
end
|
end
|
||||||
|
|
||||||
class AuditConfig
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Operation
|
class Operation
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
hash :metadata, as: 'metadata'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AuditConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :service, as: 'service'
|
||||||
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Status
|
class Status
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
collection :details, as: 'details'
|
||||||
|
property :code, as: 'code'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListLiensResponse
|
class ListLiensResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Constraint
|
class Constraint
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :constraint_default, as: 'constraintDefault'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :version, as: 'version'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Binding
|
class Binding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
collection :members, as: 'members'
|
||||||
|
property :role, as: 'role'
|
||||||
end
|
end
|
||||||
|
|
||||||
class RestoreDefault
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetOrgPolicyRequest
|
class GetOrgPolicyRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :constraint, as: 'constraint'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ClearOrgPolicyRequest
|
class RestoreDefault
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class UndeleteProjectRequest
|
class UndeleteProjectRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
class ClearOrgPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :constraint, as: 'constraint'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ProjectCreationStatus
|
class ProjectCreationStatus
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :ready, as: 'ready'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :gettable, as: 'gettable'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BooleanConstraint
|
class BooleanConstraint
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestIamPermissionsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetIamPolicyRequest
|
class GetIamPolicyRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
class TestIamPermissionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class OrganizationOwner
|
class OrganizationOwner
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :directory_customer_id, as: 'directoryCustomerId'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListProjectsResponse
|
class ListProjectsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Project
|
class Project
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :lifecycle_state, as: 'lifecycleState'
|
||||||
|
property :project_number, as: 'projectNumber'
|
||||||
|
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SearchOrganizationsResponse
|
class SearchOrganizationsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListOrgPoliciesResponse
|
class ListOrgPoliciesResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class FolderOperationError
|
class FolderOperationError
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :error_message_id, as: 'errorMessageId'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class OrgPolicy
|
class OrgPolicy
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :version, as: 'version'
|
||||||
|
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
|
||||||
|
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :constraint, as: 'constraint'
|
||||||
|
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
|
||||||
|
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BooleanPolicy
|
class BooleanPolicy
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :enforced, as: 'enforced'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Lien
|
class Lien
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :parent, as: 'parent'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :origin, as: 'origin'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :reason, as: 'reason'
|
||||||
|
collection :restrictions, as: 'restrictions'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Ancestor
|
class Ancestor
|
||||||
|
@ -315,12 +537,12 @@ module Google
|
||||||
class Organization
|
class Organization
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :creation_time, as: 'creationTime'
|
|
||||||
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
|
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
|
||||||
|
|
||||||
property :lifecycle_state, as: 'lifecycleState'
|
property :lifecycle_state, as: 'lifecycleState'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :display_name, as: 'displayName'
|
property :display_name, as: 'displayName'
|
||||||
|
property :creation_time, as: 'creationTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -336,11 +558,11 @@ module Google
|
||||||
class ListPolicy
|
class ListPolicy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :all_values, as: 'allValues'
|
||||||
collection :allowed_values, as: 'allowedValues'
|
collection :allowed_values, as: 'allowedValues'
|
||||||
property :suggested_value, as: 'suggestedValue'
|
property :suggested_value, as: 'suggestedValue'
|
||||||
property :inherit_from_parent, as: 'inheritFromParent'
|
property :inherit_from_parent, as: 'inheritFromParent'
|
||||||
collection :denied_values, as: 'deniedValues'
|
collection :denied_values, as: 'deniedValues'
|
||||||
property :all_values, as: 'allValues'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -363,9 +585,9 @@ module Google
|
||||||
class SearchOrganizationsRequest
|
class SearchOrganizationsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :filter, as: 'filter'
|
||||||
property :page_token, as: 'pageToken'
|
property :page_token, as: 'pageToken'
|
||||||
property :page_size, as: 'pageSize'
|
property :page_size, as: 'pageSize'
|
||||||
property :filter, as: 'filter'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -395,12 +617,12 @@ module Google
|
||||||
class Policy
|
class Policy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :etag, :base64 => true, as: 'etag'
|
|
||||||
property :version, as: 'version'
|
property :version, as: 'version'
|
||||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditConfig::Representation
|
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditConfig::Representation
|
||||||
|
|
||||||
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
|
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
|
||||||
|
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -419,228 +641,6 @@ module Google
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetEffectiveOrgPolicyRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :constraint, as: 'constraint'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListOrgPoliciesRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :page_token, as: 'pageToken'
|
|
||||||
property :page_size, as: 'pageSize'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AuditConfig
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :service, as: 'service'
|
|
||||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Operation
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :done, as: 'done'
|
|
||||||
hash :response, as: 'response'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
|
||||||
|
|
||||||
hash :metadata, as: 'metadata'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Status
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :details, as: 'details'
|
|
||||||
property :code, as: 'code'
|
|
||||||
property :message, as: 'message'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListLiensResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Constraint
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :version, as: 'version'
|
|
||||||
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
|
|
||||||
|
|
||||||
property :display_name, as: 'displayName'
|
|
||||||
property :description, as: 'description'
|
|
||||||
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
|
|
||||||
|
|
||||||
property :constraint_default, as: 'constraintDefault'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Binding
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :members, as: 'members'
|
|
||||||
property :role, as: 'role'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RestoreDefault
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetOrgPolicyRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :constraint, as: 'constraint'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ClearOrgPolicyRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
|
||||||
property :constraint, as: 'constraint'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class UndeleteProjectRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ProjectCreationStatus
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :ready, as: 'ready'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :gettable, as: 'gettable'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class BooleanConstraint
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TestIamPermissionsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :permissions, as: 'permissions'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetIamPolicyRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class OrganizationOwner
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :directory_customer_id, as: 'directoryCustomerId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListProjectsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Project
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :lifecycle_state, as: 'lifecycleState'
|
|
||||||
property :project_number, as: 'projectNumber'
|
|
||||||
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
|
||||||
|
|
||||||
hash :labels, as: 'labels'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SearchOrganizationsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListOrgPoliciesResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class FolderOperationError
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :error_message_id, as: 'errorMessageId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class OrgPolicy
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
|
||||||
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
|
|
||||||
|
|
||||||
property :constraint, as: 'constraint'
|
|
||||||
property :update_time, as: 'updateTime'
|
|
||||||
property :version, as: 'version'
|
|
||||||
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
|
|
||||||
|
|
||||||
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class BooleanPolicy
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :enforced, as: 'enforced'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Lien
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :parent, as: 'parent'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :reason, as: 'reason'
|
|
||||||
property :origin, as: 'origin'
|
|
||||||
collection :restrictions, as: 'restrictions'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,13 +26,13 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1beta1
|
module CloudresourcemanagerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20170324'
|
REVISION = '20170327'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
||||||
|
|
||||||
# View your data across Google Cloud Platform services
|
# View your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,126 +22,6 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudresourcemanagerV1beta1
|
module CloudresourcemanagerV1beta1
|
||||||
|
|
||||||
class UndeleteProjectRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ClearOrgPolicyRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ProjectCreationStatus
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BooleanConstraint
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class TestIamPermissionsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetIamPolicyRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class OrganizationOwner
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListProjectsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Project
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListOrgPoliciesResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class FolderOperationError
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class OrgPolicy
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BooleanPolicy
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Ancestor
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListConstraint
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetOrgPolicyRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
|
||||||
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 Organization
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListAvailableOrgPolicyConstraintsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListPolicy
|
class ListPolicy
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -172,7 +52,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListAvailableOrgPolicyConstraintsRequest
|
class FolderOperation
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -184,7 +64,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class FolderOperation
|
class ListAvailableOrgPolicyConstraintsRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -244,175 +124,124 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class UndeleteProjectRequest
|
class ClearOrgPolicyRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ClearOrgPolicyRequest
|
class UndeleteProjectRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :constraint, as: 'constraint'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ProjectCreationStatus
|
class ProjectCreationStatus
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :ready, as: 'ready'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :gettable, as: 'gettable'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class BooleanConstraint
|
class BooleanConstraint
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestIamPermissionsResponse
|
class TestIamPermissionsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :permissions, as: 'permissions'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetIamPolicyRequest
|
class GetIamPolicyRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class OrganizationOwner
|
class OrganizationOwner
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :directory_customer_id, as: 'directoryCustomerId'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListProjectsResponse
|
class ListProjectsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Project
|
class Project
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :project_number, as: 'projectNumber'
|
|
||||||
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
|
||||||
|
|
||||||
property :create_time, as: 'createTime'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
hash :labels, as: 'labels'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
property :lifecycle_state, as: 'lifecycleState'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListOrgPoliciesResponse
|
class ListOrgPoliciesResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class FolderOperationError
|
class FolderOperationError
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :error_message_id, as: 'errorMessageId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class OrgPolicy
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :version, as: 'version'
|
|
||||||
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault::Representation
|
|
||||||
|
|
||||||
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1beta1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::ListPolicy::Representation
|
|
||||||
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
|
||||||
property :constraint, as: 'constraint'
|
|
||||||
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy::Representation
|
|
||||||
|
|
||||||
property :update_time, as: 'updateTime'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class BooleanPolicy
|
class BooleanPolicy
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :enforced, as: 'enforced'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class OrgPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Ancestor
|
class Ancestor
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListConstraint
|
class ListConstraint
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :suggested_value, as: 'suggestedValue'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class SetOrgPolicyRequest
|
class SetOrgPolicyRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
||||||
|
|
||||||
property :update_mask, as: 'updateMask'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
class Empty
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Organization
|
class Organization
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :lifecycle_state, as: 'lifecycleState'
|
|
||||||
property :display_name, as: 'displayName'
|
|
||||||
property :creation_time, as: 'creationTime'
|
|
||||||
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :organization_id, as: 'organizationId'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListAvailableOrgPolicyConstraintsResponse
|
class ListAvailableOrgPolicyConstraintsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :constraints, as: 'constraints', class: Google::Apis::CloudresourcemanagerV1beta1::Constraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::Constraint::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListPolicy
|
class ListPolicy
|
||||||
|
@ -455,11 +284,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListAvailableOrgPolicyConstraintsRequest
|
class FolderOperation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :page_token, as: 'pageToken'
|
property :destination_parent, as: 'destinationParent'
|
||||||
property :page_size, as: 'pageSize'
|
property :operation_type, as: 'operationType'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :source_parent, as: 'sourceParent'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -475,13 +306,11 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class FolderOperation
|
class ListAvailableOrgPolicyConstraintsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :operation_type, as: 'operationType'
|
property :page_token, as: 'pageToken'
|
||||||
property :display_name, as: 'displayName'
|
property :page_size, as: 'pageSize'
|
||||||
property :source_parent, as: 'sourceParent'
|
|
||||||
property :destination_parent, as: 'destinationParent'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -529,15 +358,15 @@ module Google
|
||||||
class Constraint
|
class Constraint
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1beta1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::ListConstraint::Representation
|
||||||
|
|
||||||
|
property :version, as: 'version'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :display_name, as: 'displayName'
|
property :display_name, as: 'displayName'
|
||||||
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint::Representation
|
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint::Representation
|
||||||
|
|
||||||
property :constraint_default, as: 'constraintDefault'
|
property :constraint_default, as: 'constraintDefault'
|
||||||
property :name, as: 'name'
|
|
||||||
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1beta1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::ListConstraint::Representation
|
|
||||||
|
|
||||||
property :version, as: 'version'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -561,6 +390,177 @@ module Google
|
||||||
property :constraint, as: 'constraint'
|
property :constraint, as: 'constraint'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ClearOrgPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :constraint, as: 'constraint'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UndeleteProjectRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectCreationStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ready, as: 'ready'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :gettable, as: 'gettable'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BooleanConstraint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestIamPermissionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetIamPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrganizationOwner
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :directory_customer_id, as: 'directoryCustomerId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListProjectsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Project
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :lifecycle_state, as: 'lifecycleState'
|
||||||
|
property :project_number, as: 'projectNumber'
|
||||||
|
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
||||||
|
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOrgPoliciesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FolderOperationError
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error_message_id, as: 'errorMessageId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BooleanPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :enforced, as: 'enforced'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrgPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :version, as: 'version'
|
||||||
|
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault::Representation
|
||||||
|
|
||||||
|
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1beta1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::ListPolicy::Representation
|
||||||
|
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy::Representation
|
||||||
|
|
||||||
|
property :constraint, as: 'constraint'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Ancestor
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListConstraint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :suggested_value, as: 'suggestedValue'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetOrgPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetIamPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :update_mask, as: 'updateMask'
|
||||||
|
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Organization
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :organization_id, as: 'organizationId'
|
||||||
|
property :lifecycle_state, as: 'lifecycleState'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :creation_time, as: 'creationTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListAvailableOrgPolicyConstraintsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :constraints, as: 'constraints', class: Google::Apis::CloudresourcemanagerV1beta1::Constraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::Constraint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -30,14 +30,14 @@ module Google
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170320'
|
REVISION = '20170320'
|
||||||
|
|
||||||
# Read Trace data for a project or application
|
|
||||||
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
|
|
||||||
|
|
||||||
# Write Trace data for a project or application
|
# Write Trace data for a project or application
|
||||||
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
|
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# Read Trace data for a project or application
|
||||||
|
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -30,6 +30,23 @@ module Google
|
||||||
class TraceSpan
|
class TraceSpan
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Collection of labels associated with the span. Label keys must be less than
|
||||||
|
# 128 bytes. Label values must be less than 16 kilobytes.
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
|
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
||||||
|
# and displayed in the Stackdriver Trace tool in the
|
||||||
|
# `% dynamic print site_values.console_name %`.
|
||||||
|
# The name may be a method name or some other per-call site name.
|
||||||
|
# For the same executable and the same call point, a best practice is
|
||||||
|
# to use a consistent name, which makes it easier to correlate
|
||||||
|
# cross-trace spans.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
||||||
# unique within a trace.
|
# unique within a trace.
|
||||||
# Corresponds to the JSON property `spanId`
|
# Corresponds to the JSON property `spanId`
|
||||||
|
@ -58,36 +75,19 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
# Collection of labels associated with the span. Label keys must be less than
|
|
||||||
# 128 bytes. Label values must be less than 16 kilobytes.
|
|
||||||
# Corresponds to the JSON property `labels`
|
|
||||||
# @return [Hash<String,String>]
|
|
||||||
attr_accessor :labels
|
|
||||||
|
|
||||||
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
|
||||||
# and displayed in the Stackdriver Trace tool in the
|
|
||||||
# `% dynamic print site_values.console_name %`.
|
|
||||||
# The name may be a method name or some other per-call site name.
|
|
||||||
# For the same executable and the same call point, a best practice is
|
|
||||||
# to use a consistent name, which makes it easier to correlate
|
|
||||||
# cross-trace spans.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
@span_id = args[:span_id] if args.key?(:span_id)
|
@span_id = args[:span_id] if args.key?(:span_id)
|
||||||
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
||||||
@end_time = args[:end_time] if args.key?(:end_time)
|
@end_time = args[:end_time] if args.key?(:end_time)
|
||||||
@start_time = args[:start_time] if args.key?(:start_time)
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -55,13 +55,13 @@ module Google
|
||||||
class TraceSpan
|
class TraceSpan
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :name, as: 'name'
|
||||||
property :span_id, as: 'spanId'
|
property :span_id, as: 'spanId'
|
||||||
property :parent_span_id, as: 'parentSpanId'
|
property :parent_span_id, as: 'parentSpanId'
|
||||||
property :end_time, as: 'endTime'
|
property :end_time, as: 'endTime'
|
||||||
property :start_time, as: 'startTime'
|
property :start_time, as: 'startTime'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
hash :labels, as: 'labels'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,19 @@ module Google
|
||||||
# Returns of a list of traces that match the specified filter conditions.
|
# Returns of a list of traces that match the specified filter conditions.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# ID of the Cloud project where the trace data is stored.
|
# ID of the Cloud project where the trace data is stored.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token identifying the page of results to return. If provided, use the
|
||||||
|
# value of the `next_page_token` field from a previous request. Optional.
|
||||||
|
# @param [String] start_time
|
||||||
|
# End of the time interval (inclusive) during which the trace data was
|
||||||
|
# collected from the application.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum number of traces to return. If not specified or <= 0, the
|
||||||
|
# implementation selects a reasonable value. The implementation may
|
||||||
|
# return fewer traces than the requested page size. Optional.
|
||||||
|
# @param [String] view
|
||||||
|
# Type of data returned for traces in the list. Optional. Default is
|
||||||
|
# `MINIMAL`.
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Field used to sort the returned traces. Optional.
|
# Field used to sort the returned traces. Optional.
|
||||||
# Can be one of the following:
|
# Can be one of the following:
|
||||||
|
@ -105,19 +118,6 @@ module Google
|
||||||
# @param [String] end_time
|
# @param [String] end_time
|
||||||
# Start of the time interval (inclusive) during which the trace data was
|
# Start of the time interval (inclusive) during which the trace data was
|
||||||
# collected from the application.
|
# collected from the application.
|
||||||
# @param [String] start_time
|
|
||||||
# End of the time interval (inclusive) during which the trace data was
|
|
||||||
# collected from the application.
|
|
||||||
# @param [String] page_token
|
|
||||||
# Token identifying the page of results to return. If provided, use the
|
|
||||||
# value of the `next_page_token` field from a previous request. Optional.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Maximum number of traces to return. If not specified or <= 0, the
|
|
||||||
# implementation selects a reasonable value. The implementation may
|
|
||||||
# return fewer traces than the requested page size. Optional.
|
|
||||||
# @param [String] view
|
|
||||||
# Type of data returned for traces in the list. Optional. Default is
|
|
||||||
# `MINIMAL`.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -135,18 +135,18 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_project_traces(project_id, page_token: nil, start_time: nil, page_size: nil, view: nil, order_by: nil, filter: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
||||||
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['startTime'] = start_time unless start_time.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['view'] = view unless view.nil?
|
||||||
command.query['orderBy'] = order_by unless order_by.nil?
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
command.query['filter'] = filter unless filter.nil?
|
command.query['filter'] = filter unless filter.nil?
|
||||||
command.query['endTime'] = end_time unless end_time.nil?
|
command.query['endTime'] = end_time unless end_time.nil?
|
||||||
command.query['startTime'] = start_time unless start_time.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['view'] = view unless view.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeBeta
|
module ComputeBeta
|
||||||
VERSION = 'Beta'
|
VERSION = 'Beta'
|
||||||
REVISION = '20170302'
|
REVISION = '20170313'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -845,9 +845,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Specifies the audit configuration for a service. It consists of which
|
# Specifies the audit configuration for a service. The configuration determines
|
||||||
# permission types are logged, and what identities, if any, are exempted from
|
# which permission types are logged, and what identities, if any, are exempted
|
||||||
# logging. An AuditConifg must have one or more AuditLogConfigs.
|
# from logging. An AuditConifg must have one or more AuditLogConfigs.
|
||||||
# If there are AuditConfigs for both `allServices` and a specific service, the
|
# If there are AuditConfigs for both `allServices` and a specific service, the
|
||||||
# union of the two AuditConfigs is used for that service: the log_types
|
# union of the two AuditConfigs is used for that service: the log_types
|
||||||
# specified in each AuditConfig are enabled, and the exempted_members in each
|
# specified in each AuditConfig are enabled, and the exempted_members in each
|
||||||
|
@ -874,8 +874,8 @@ module Google
|
||||||
attr_accessor :exempted_members
|
attr_accessor :exempted_members
|
||||||
|
|
||||||
# Specifies a service that will be enabled for audit logging. For example, `
|
# Specifies a service that will be enabled for audit logging. For example, `
|
||||||
# resourcemanager`, `storage`, `compute`. `allServices` is a special value that
|
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
||||||
# covers all services.
|
# value that covers all services.
|
||||||
# Corresponds to the JSON property `service`
|
# Corresponds to the JSON property `service`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :service
|
attr_accessor :service
|
||||||
|
@ -9639,8 +9639,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :ip_range
|
attr_accessor :ip_range
|
||||||
|
|
||||||
# URI of linked VPN tunnel. It must be in the same region as the router. Each
|
# URI of the linked VPN tunnel. It must be in the same region as the router.
|
||||||
# interface can have at most one linked resource.
|
# Each interface can have at most one linked resource and it could either be a
|
||||||
|
# VPN Tunnel or an interconnect attachment.
|
||||||
# Corresponds to the JSON property `linkedVpnTunnel`
|
# Corresponds to the JSON property `linkedVpnTunnel`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :linked_vpn_tunnel
|
attr_accessor :linked_vpn_tunnel
|
||||||
|
@ -9720,6 +9721,11 @@ module Google
|
||||||
# @return [Array<Google::Apis::ComputeBeta::Route>]
|
# @return [Array<Google::Apis::ComputeBeta::Route>]
|
||||||
attr_accessor :best_routes
|
attr_accessor :best_routes
|
||||||
|
|
||||||
|
# Best routes learned by this router.
|
||||||
|
# Corresponds to the JSON property `bestRoutesForRouter`
|
||||||
|
# @return [Array<Google::Apis::ComputeBeta::Route>]
|
||||||
|
attr_accessor :best_routes_for_router
|
||||||
|
|
||||||
#
|
#
|
||||||
# Corresponds to the JSON property `bgpPeerStatus`
|
# Corresponds to the JSON property `bgpPeerStatus`
|
||||||
# @return [Array<Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus>]
|
# @return [Array<Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus>]
|
||||||
|
@ -9737,6 +9743,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@best_routes = args[:best_routes] if args.key?(:best_routes)
|
@best_routes = args[:best_routes] if args.key?(:best_routes)
|
||||||
|
@best_routes_for_router = args[:best_routes_for_router] if args.key?(:best_routes_for_router)
|
||||||
@bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status)
|
@bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status)
|
||||||
@network = args[:network] if args.key?(:network)
|
@network = args[:network] if args.key?(:network)
|
||||||
end
|
end
|
||||||
|
|
|
@ -4172,6 +4172,8 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :best_routes, as: 'bestRoutes', class: Google::Apis::ComputeBeta::Route, decorator: Google::Apis::ComputeBeta::Route::Representation
|
collection :best_routes, as: 'bestRoutes', class: Google::Apis::ComputeBeta::Route, decorator: Google::Apis::ComputeBeta::Route::Representation
|
||||||
|
|
||||||
|
collection :best_routes_for_router, as: 'bestRoutesForRouter', class: Google::Apis::ComputeBeta::Route, decorator: Google::Apis::ComputeBeta::Route::Representation
|
||||||
|
|
||||||
collection :bgp_peer_status, as: 'bgpPeerStatus', class: Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus, decorator: Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus::Representation
|
collection :bgp_peer_status, as: 'bgpPeerStatus', class: Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus, decorator: Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus::Representation
|
||||||
|
|
||||||
property :network, as: 'network'
|
property :network, as: 'network'
|
||||||
|
|
|
@ -1191,7 +1191,7 @@ module Google
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] backend_bucket
|
# @param [String] backend_bucket
|
||||||
# Name of the BackendBucket resource to update.
|
# Name of the BackendBucket resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
|
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1584,14 +1584,14 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the specified BackendService resource with the data included in the
|
# Patches the specified BackendService resource with the data included in the
|
||||||
# request. There are several restrictions and guidelines to keep in mind when
|
# request. There are several restrictions and guidelines to keep in mind when
|
||||||
# updating a backend service. Read Restrictions and Guidelines for more
|
# updating a backend service. Read Restrictions and Guidelines for more
|
||||||
# information. This method supports patch semantics.
|
# information. This method supports patch semantics.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] backend_service
|
# @param [String] backend_service
|
||||||
# Name of the BackendService resource to update.
|
# Name of the BackendService resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
|
# @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -4082,7 +4082,7 @@ module Google
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] health_check
|
# @param [String] health_check
|
||||||
# Name of the HealthCheck resource to update.
|
# Name of the HealthCheck resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
# @param [Google::Apis::ComputeBeta::HealthCheck] health_check_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -4401,7 +4401,7 @@ module Google
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] http_health_check
|
# @param [String] http_health_check
|
||||||
# Name of the HttpHealthCheck resource to update.
|
# Name of the HttpHealthCheck resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
|
# @param [Google::Apis::ComputeBeta::HttpHealthCheck] http_health_check_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -4720,7 +4720,7 @@ module Google
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] https_health_check
|
# @param [String] https_health_check
|
||||||
# Name of the HttpsHealthCheck resource to update.
|
# Name of the HttpsHealthCheck resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
|
# @param [Google::Apis::ComputeBeta::HttpsHealthCheck] https_health_check_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -9610,7 +9610,7 @@ module Google
|
||||||
# @param [String] region
|
# @param [String] region
|
||||||
# Name of the region scoping this request.
|
# Name of the region scoping this request.
|
||||||
# @param [String] backend_service
|
# @param [String] backend_service
|
||||||
# Name of the BackendService resource to update.
|
# Name of the BackendService resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
|
# @param [Google::Apis::ComputeBeta::BackendService] backend_service_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -11536,14 +11536,14 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the specified Router resource with the data included in the request.
|
# Patches the specified Router resource with the data included in the request.
|
||||||
# This method supports patch semantics.
|
# This method supports patch semantics.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] region
|
# @param [String] region
|
||||||
# Name of the region for this request.
|
# Name of the region for this request.
|
||||||
# @param [String] router
|
# @param [String] router
|
||||||
# Name of the Router resource to update.
|
# Name of the Router resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::Router] router_object
|
# @param [Google::Apis::ComputeBeta::Router] router_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -15637,12 +15637,12 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the specified UrlMap resource with the data included in the request.
|
# Patches the specified UrlMap resource with the data included in the request.
|
||||||
# This method supports patch semantics.
|
# This method supports patch semantics.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] url_map
|
# @param [String] url_map
|
||||||
# Name of the UrlMap resource to update.
|
# Name of the UrlMap resource to patch.
|
||||||
# @param [Google::Apis::ComputeBeta::UrlMap] url_map_object
|
# @param [Google::Apis::ComputeBeta::UrlMap] url_map_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeV1
|
module ComputeV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170302'
|
REVISION = '20170313'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1182,6 +1182,11 @@ module Google
|
||||||
# @return [Array<Google::Apis::ComputeV1::Backend>]
|
# @return [Array<Google::Apis::ComputeV1::Backend>]
|
||||||
attr_accessor :backends
|
attr_accessor :backends
|
||||||
|
|
||||||
|
# Message containing Cloud CDN configuration for a backend service.
|
||||||
|
# Corresponds to the JSON property `cdnPolicy`
|
||||||
|
# @return [Google::Apis::ComputeV1::BackendServiceCdnPolicy]
|
||||||
|
attr_accessor :cdn_policy
|
||||||
|
|
||||||
# Message containing connection draining configuration.
|
# Message containing connection draining configuration.
|
||||||
# Corresponds to the JSON property `connectionDraining`
|
# Corresponds to the JSON property `connectionDraining`
|
||||||
# @return [Google::Apis::ComputeV1::ConnectionDraining]
|
# @return [Google::Apis::ComputeV1::ConnectionDraining]
|
||||||
|
@ -1307,6 +1312,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
|
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
|
||||||
@backends = args[:backends] if args.key?(:backends)
|
@backends = args[:backends] if args.key?(:backends)
|
||||||
|
@cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy)
|
||||||
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
|
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
|
||||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||||
@description = args[:description] if args.key?(:description)
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@ -1370,6 +1376,26 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Message containing Cloud CDN configuration for a backend service.
|
||||||
|
class BackendServiceCdnPolicy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Message containing what to include in the cache key for a request for Cloud
|
||||||
|
# CDN.
|
||||||
|
# Corresponds to the JSON property `cacheKeyPolicy`
|
||||||
|
# @return [Google::Apis::ComputeV1::CacheKeyPolicy]
|
||||||
|
attr_accessor :cache_key_policy
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class BackendServiceGroupHealth
|
class BackendServiceGroupHealth
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1561,6 +1587,62 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Message containing what to include in the cache key for a request for Cloud
|
||||||
|
# CDN.
|
||||||
|
class CacheKeyPolicy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If true, requests to different hosts will be cached separately.
|
||||||
|
# Corresponds to the JSON property `includeHost`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :include_host
|
||||||
|
alias_method :include_host?, :include_host
|
||||||
|
|
||||||
|
# If true, http and https requests will be cached separately.
|
||||||
|
# Corresponds to the JSON property `includeProtocol`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :include_protocol
|
||||||
|
alias_method :include_protocol?, :include_protocol
|
||||||
|
|
||||||
|
# If true, include query string parameters in the cache key according to
|
||||||
|
# query_string_whitelist and query_string_blacklist. If neither is set, the
|
||||||
|
# entire query string will be included. If false, the query string will be
|
||||||
|
# excluded from the cache key entirely.
|
||||||
|
# Corresponds to the JSON property `includeQueryString`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :include_query_string
|
||||||
|
alias_method :include_query_string?, :include_query_string
|
||||||
|
|
||||||
|
# Names of query string parameters to exclude in cache keys. All other
|
||||||
|
# parameters will be included. Either specify query_string_whitelist or
|
||||||
|
# query_string_blacklist, not both. '&' and '=' will be percent encoded and not
|
||||||
|
# treated as delimiters.
|
||||||
|
# Corresponds to the JSON property `queryStringBlacklist`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :query_string_blacklist
|
||||||
|
|
||||||
|
# Names of query string parameters to include in cache keys. All other
|
||||||
|
# parameters will be excluded. Either specify query_string_whitelist or
|
||||||
|
# query_string_blacklist, not both. '&' and '=' will be percent encoded and not
|
||||||
|
# treated as delimiters.
|
||||||
|
# Corresponds to the JSON property `queryStringWhitelist`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :query_string_whitelist
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@include_host = args[:include_host] if args.key?(:include_host)
|
||||||
|
@include_protocol = args[:include_protocol] if args.key?(:include_protocol)
|
||||||
|
@include_query_string = args[:include_query_string] if args.key?(:include_query_string)
|
||||||
|
@query_string_blacklist = args[:query_string_blacklist] if args.key?(:query_string_blacklist)
|
||||||
|
@query_string_whitelist = args[:query_string_whitelist] if args.key?(:query_string_whitelist)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Message containing connection draining configuration.
|
# Message containing connection draining configuration.
|
||||||
class ConnectionDraining
|
class ConnectionDraining
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -7944,8 +8026,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :ip_range
|
attr_accessor :ip_range
|
||||||
|
|
||||||
# URI of linked VPN tunnel. It must be in the same region as the router. Each
|
# URI of the linked VPN tunnel. It must be in the same region as the router.
|
||||||
# interface can have at most one linked resource.
|
# Each interface can have at most one linked resource and it could either be a
|
||||||
|
# VPN Tunnel or an interconnect attachment.
|
||||||
# Corresponds to the JSON property `linkedVpnTunnel`
|
# Corresponds to the JSON property `linkedVpnTunnel`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :linked_vpn_tunnel
|
attr_accessor :linked_vpn_tunnel
|
||||||
|
|
|
@ -166,6 +166,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BackendServiceCdnPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class BackendServiceGroupHealth
|
class BackendServiceGroupHealth
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -202,6 +208,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CacheKeyPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ConnectionDraining
|
class ConnectionDraining
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1744,6 +1756,8 @@ module Google
|
||||||
property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
|
property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
|
||||||
collection :backends, as: 'backends', class: Google::Apis::ComputeV1::Backend, decorator: Google::Apis::ComputeV1::Backend::Representation
|
collection :backends, as: 'backends', class: Google::Apis::ComputeV1::Backend, decorator: Google::Apis::ComputeV1::Backend::Representation
|
||||||
|
|
||||||
|
property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeV1::BackendServiceCdnPolicy, decorator: Google::Apis::ComputeV1::BackendServiceCdnPolicy::Representation
|
||||||
|
|
||||||
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeV1::ConnectionDraining, decorator: Google::Apis::ComputeV1::ConnectionDraining::Representation
|
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeV1::ConnectionDraining, decorator: Google::Apis::ComputeV1::ConnectionDraining::Representation
|
||||||
|
|
||||||
property :creation_timestamp, as: 'creationTimestamp'
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
@ -1777,6 +1791,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BackendServiceCdnPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeV1::CacheKeyPolicy, decorator: Google::Apis::ComputeV1::CacheKeyPolicy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class BackendServiceGroupHealth
|
class BackendServiceGroupHealth
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1834,6 +1856,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CacheKeyPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :include_host, as: 'includeHost'
|
||||||
|
property :include_protocol, as: 'includeProtocol'
|
||||||
|
property :include_query_string, as: 'includeQueryString'
|
||||||
|
collection :query_string_blacklist, as: 'queryStringBlacklist'
|
||||||
|
collection :query_string_whitelist, as: 'queryStringWhitelist'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ConnectionDraining
|
class ConnectionDraining
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -123,6 +123,8 @@ module Google
|
||||||
# The project which owns the jobs.
|
# The project which owns the jobs.
|
||||||
# @param [String] location
|
# @param [String] location
|
||||||
# The location that contains this job.
|
# The location that contains this job.
|
||||||
|
# @param [String] filter
|
||||||
|
# The kind of filter to use.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Set this to the 'next_page_token' field of a previous response
|
# Set this to the 'next_page_token' field of a previous response
|
||||||
# to request additional results in a long list.
|
# to request additional results in a long list.
|
||||||
|
@ -132,8 +134,6 @@ module Google
|
||||||
# and an unspecified server-defined limit.
|
# and an unspecified server-defined limit.
|
||||||
# @param [String] view
|
# @param [String] view
|
||||||
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
|
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
|
||||||
# @param [String] filter
|
|
||||||
# The kind of filter to use.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -151,16 +151,16 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_project_location_jobs(project_id, location, page_token: nil, page_size: nil, view: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_project_location_jobs(project_id, location, filter: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
||||||
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
||||||
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.params['location'] = location unless location.nil?
|
command.params['location'] = location unless location.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['view'] = view unless view.nil?
|
command.query['view'] = view unless view.nil?
|
||||||
command.query['filter'] = filter unless filter.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -211,10 +211,10 @@ module Google
|
||||||
# @param [String] location
|
# @param [String] location
|
||||||
# The location that contains this job.
|
# The location that contains this job.
|
||||||
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
||||||
# @param [String] replace_job_id
|
|
||||||
# Deprecated. This field is now in the Job message.
|
|
||||||
# @param [String] view
|
# @param [String] view
|
||||||
# The level of information requested in response.
|
# The level of information requested in response.
|
||||||
|
# @param [String] replace_job_id
|
||||||
|
# Deprecated. This field is now in the Job message.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -232,7 +232,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_project_location_job(project_id, location, job_object = nil, replace_job_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
||||||
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||||
command.request_object = job_object
|
command.request_object = job_object
|
||||||
|
@ -240,8 +240,8 @@ module Google
|
||||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.params['location'] = location unless location.nil?
|
command.params['location'] = location unless location.nil?
|
||||||
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
|
||||||
command.query['view'] = view unless view.nil?
|
command.query['view'] = view unless view.nil?
|
||||||
|
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -287,6 +287,63 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request the job status.
|
||||||
|
# @param [String] project_id
|
||||||
|
# A project id.
|
||||||
|
# @param [String] location
|
||||||
|
# The location which contains the job specified by job_id.
|
||||||
|
# @param [String] job_id
|
||||||
|
# The job to get messages about.
|
||||||
|
# @param [String] end_time
|
||||||
|
# Return only messages with timestamps < end_time. The default is now
|
||||||
|
# (i.e. return up to the latest messages available).
|
||||||
|
# @param [String] start_time
|
||||||
|
# If specified, return only messages with timestamps >= start_time.
|
||||||
|
# The default is the job creation time (i.e. beginning of messages).
|
||||||
|
# @param [String] page_token
|
||||||
|
# If supplied, this should be the value of next_page_token returned
|
||||||
|
# by an earlier call. This will cause the next page of results to
|
||||||
|
# be returned.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# If specified, determines the maximum number of messages to
|
||||||
|
# return. If unspecified, the service may choose an appropriate
|
||||||
|
# default, or may return an arbitrarily large number of results.
|
||||||
|
# @param [String] minimum_importance
|
||||||
|
# Filter to only get messages with importance >= level
|
||||||
|
# @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::DataflowV1b3::ListJobMessagesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_location_job_messages(project_id, location, job_id, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
|
||||||
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['location'] = location unless location.nil?
|
||||||
|
command.params['jobId'] = job_id unless job_id.nil?
|
||||||
|
command.query['endTime'] = end_time unless end_time.nil?
|
||||||
|
command.query['startTime'] = start_time unless start_time.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Leases a dataflow WorkItem to run.
|
# Leases a dataflow WorkItem to run.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Identifies the project this worker belongs to.
|
# Identifies the project this worker belongs to.
|
||||||
|
@ -365,63 +422,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Request the job status.
|
|
||||||
# @param [String] project_id
|
|
||||||
# A project id.
|
|
||||||
# @param [String] location
|
|
||||||
# The location which contains the job specified by job_id.
|
|
||||||
# @param [String] job_id
|
|
||||||
# The job to get messages about.
|
|
||||||
# @param [String] end_time
|
|
||||||
# Return only messages with timestamps < end_time. The default is now
|
|
||||||
# (i.e. return up to the latest messages available).
|
|
||||||
# @param [String] start_time
|
|
||||||
# If specified, return only messages with timestamps >= start_time.
|
|
||||||
# The default is the job creation time (i.e. beginning of messages).
|
|
||||||
# @param [String] page_token
|
|
||||||
# If supplied, this should be the value of next_page_token returned
|
|
||||||
# by an earlier call. This will cause the next page of results to
|
|
||||||
# be returned.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# If specified, determines the maximum number of messages to
|
|
||||||
# return. If unspecified, the service may choose an appropriate
|
|
||||||
# default, or may return an arbitrarily large number of results.
|
|
||||||
# @param [String] minimum_importance
|
|
||||||
# Filter to only get messages with importance >= level
|
|
||||||
# @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::DataflowV1b3::ListJobMessagesResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def list_project_location_job_messages(project_id, location, job_id, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
|
|
||||||
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['location'] = location unless location.nil?
|
|
||||||
command.params['jobId'] = job_id unless job_id.nil?
|
|
||||||
command.query['endTime'] = end_time unless end_time.nil?
|
|
||||||
command.query['startTime'] = start_time unless start_time.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Launch a template.
|
# Launch a template.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||||
|
@ -536,6 +536,87 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates the state of an existing Cloud Dataflow job.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The ID of the Cloud Platform project that the job belongs to.
|
||||||
|
# @param [String] job_id
|
||||||
|
# The job ID.
|
||||||
|
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
||||||
|
# @param [String] location
|
||||||
|
# The location that contains this job.
|
||||||
|
# @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::DataflowV1b3::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataflowV1b3::Job]
|
||||||
|
#
|
||||||
|
# @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 update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
||||||
|
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||||
|
command.request_object = job_object
|
||||||
|
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||||
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['jobId'] = job_id unless job_id.nil?
|
||||||
|
command.query['location'] = location unless location.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a Cloud Dataflow job.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The ID of the Cloud Platform project that the job belongs to.
|
||||||
|
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
||||||
|
# @param [String] view
|
||||||
|
# The level of information requested in response.
|
||||||
|
# @param [String] location
|
||||||
|
# The location that contains this job.
|
||||||
|
# @param [String] replace_job_id
|
||||||
|
# Deprecated. This field is now in the Job message.
|
||||||
|
# @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::DataflowV1b3::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataflowV1b3::Job]
|
||||||
|
#
|
||||||
|
# @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 create_project_job(project_id, job_object = nil, view: nil, location: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
|
||||||
|
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||||
|
command.request_object = job_object
|
||||||
|
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||||
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['view'] = view unless view.nil?
|
||||||
|
command.query['location'] = location unless location.nil?
|
||||||
|
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Request the job status.
|
# Request the job status.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# A project id.
|
# A project id.
|
||||||
|
@ -663,87 +744,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the state of an existing Cloud Dataflow job.
|
|
||||||
# @param [String] project_id
|
|
||||||
# The ID of the Cloud Platform project that the job belongs to.
|
|
||||||
# @param [String] job_id
|
|
||||||
# The job ID.
|
|
||||||
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
||||||
# @param [String] location
|
|
||||||
# The location that contains this job.
|
|
||||||
# @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::DataflowV1b3::Job] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataflowV1b3::Job]
|
|
||||||
#
|
|
||||||
# @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 update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
|
||||||
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
||||||
command.request_object = job_object
|
|
||||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
||||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['jobId'] = job_id unless job_id.nil?
|
|
||||||
command.query['location'] = location unless location.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a Cloud Dataflow job.
|
|
||||||
# @param [String] project_id
|
|
||||||
# The ID of the Cloud Platform project that the job belongs to.
|
|
||||||
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
||||||
# @param [String] location
|
|
||||||
# The location that contains this job.
|
|
||||||
# @param [String] replace_job_id
|
|
||||||
# Deprecated. This field is now in the Job message.
|
|
||||||
# @param [String] view
|
|
||||||
# The level of information requested in response.
|
|
||||||
# @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::DataflowV1b3::Job] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataflowV1b3::Job]
|
|
||||||
#
|
|
||||||
# @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 create_project_job(project_id, job_object = nil, location: nil, replace_job_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
|
|
||||||
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
||||||
command.request_object = job_object
|
|
||||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
||||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['location'] = location unless location.nil?
|
|
||||||
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
|
||||||
command.query['view'] = view unless view.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Get encoded debug configuration for component. Not cacheable.
|
# Get encoded debug configuration for component. Not cacheable.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The project id.
|
# The project id.
|
||||||
|
@ -816,42 +816,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Leases a dataflow WorkItem to run.
|
|
||||||
# @param [String] project_id
|
|
||||||
# Identifies the project this worker belongs to.
|
|
||||||
# @param [String] job_id
|
|
||||||
# Identifies the workflow job this worker belongs to.
|
|
||||||
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_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::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
|
||||||
#
|
|
||||||
# @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 lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
|
|
||||||
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
|
||||||
command.request_object = lease_work_item_request_object
|
|
||||||
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['jobId'] = job_id unless job_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Reports the status of dataflow WorkItems leased by a worker.
|
# Reports the status of dataflow WorkItems leased by a worker.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The project which owns the WorkItem's job.
|
# The project which owns the WorkItem's job.
|
||||||
|
@ -888,6 +852,42 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Leases a dataflow WorkItem to run.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Identifies the project this worker belongs to.
|
||||||
|
# @param [String] job_id
|
||||||
|
# Identifies the workflow job this worker belongs to.
|
||||||
|
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_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::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
||||||
|
#
|
||||||
|
# @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 lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
|
||||||
|
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
||||||
|
command.request_object = lease_work_item_request_object
|
||||||
|
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
||||||
|
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['jobId'] = job_id unless job_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Request the job status.
|
# Request the job status.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# A project id.
|
# A project id.
|
||||||
|
@ -898,13 +898,13 @@ module Google
|
||||||
# @param [String] end_time
|
# @param [String] end_time
|
||||||
# Return only messages with timestamps < end_time. The default is now
|
# Return only messages with timestamps < end_time. The default is now
|
||||||
# (i.e. return up to the latest messages available).
|
# (i.e. return up to the latest messages available).
|
||||||
|
# @param [String] start_time
|
||||||
|
# If specified, return only messages with timestamps >= start_time.
|
||||||
|
# The default is the job creation time (i.e. beginning of messages).
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# If supplied, this should be the value of next_page_token returned
|
# If supplied, this should be the value of next_page_token returned
|
||||||
# by an earlier call. This will cause the next page of results to
|
# by an earlier call. This will cause the next page of results to
|
||||||
# be returned.
|
# be returned.
|
||||||
# @param [String] start_time
|
|
||||||
# If specified, return only messages with timestamps >= start_time.
|
|
||||||
# The default is the job creation time (i.e. beginning of messages).
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# If specified, determines the maximum number of messages to
|
# If specified, determines the maximum number of messages to
|
||||||
# return. If unspecified, the service may choose an appropriate
|
# return. If unspecified, the service may choose an appropriate
|
||||||
|
@ -928,7 +928,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_project_job_messages(project_id, job_id, location: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_project_job_messages(project_id, job_id, location: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
|
||||||
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
||||||
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
||||||
|
@ -936,8 +936,8 @@ module Google
|
||||||
command.params['jobId'] = job_id unless job_id.nil?
|
command.params['jobId'] = job_id unless job_id.nil?
|
||||||
command.query['location'] = location unless location.nil?
|
command.query['location'] = location unless location.nil?
|
||||||
command.query['endTime'] = end_time unless end_time.nil?
|
command.query['endTime'] = end_time unless end_time.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['startTime'] = start_time unless start_time.nil?
|
command.query['startTime'] = start_time unless start_time.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,36 +22,6 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module DataprocV1
|
module DataprocV1
|
||||||
|
|
||||||
class OperationMetadata
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SoftwareConfig
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class JobPlacement
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PigJob
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ClusterStatus
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListClustersResponse
|
class ListClustersResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -88,7 +58,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class HadoopJob
|
class YarnApplication
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -100,7 +70,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class YarnApplication
|
class HadoopJob
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -226,13 +196,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListJobsResponse
|
class NodeInitializationAction
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class NodeInitializationAction
|
class ListJobsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -263,65 +233,33 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class OperationMetadata
|
class OperationMetadata
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :description, as: 'description'
|
|
||||||
property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
|
||||||
|
|
||||||
property :details, as: 'details'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :state, as: 'state'
|
|
||||||
property :cluster_name, as: 'clusterName'
|
|
||||||
property :cluster_uuid, as: 'clusterUuid'
|
|
||||||
property :inner_state, as: 'innerState'
|
|
||||||
property :end_time, as: 'endTime'
|
|
||||||
property :start_time, as: 'startTime'
|
|
||||||
collection :warnings, as: 'warnings'
|
|
||||||
property :insert_time, as: 'insertTime'
|
|
||||||
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
|
||||||
|
|
||||||
property :operation_type, as: 'operationType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SoftwareConfig
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :image_version, as: 'imageVersion'
|
|
||||||
hash :properties, as: 'properties'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class JobPlacement
|
class JobPlacement
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :cluster_name, as: 'clusterName'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :cluster_uuid, as: 'clusterUuid'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SoftwareConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class PigJob
|
class PigJob
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :continue_on_failure, as: 'continueOnFailure'
|
|
||||||
property :query_file_uri, as: 'queryFileUri'
|
|
||||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
||||||
|
|
||||||
collection :jar_file_uris, as: 'jarFileUris'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
hash :script_variables, as: 'scriptVariables'
|
|
||||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
||||||
|
|
||||||
hash :properties, as: 'properties'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ClusterStatus
|
class ClusterStatus
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :detail, as: 'detail'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :state, as: 'state'
|
|
||||||
property :state_start_time, as: 'stateStartTime'
|
|
||||||
property :substate, as: 'substate'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListClustersResponse
|
class ListClustersResponse
|
||||||
|
@ -336,17 +274,6 @@ module Google
|
||||||
class Job
|
class Job
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
|
||||||
|
|
||||||
property :placement, as: 'placement', class: Google::Apis::DataprocV1::JobPlacement, decorator: Google::Apis::DataprocV1::JobPlacement::Representation
|
|
||||||
|
|
||||||
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
|
||||||
property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1::JobScheduling, decorator: Google::Apis::DataprocV1::JobScheduling::Representation
|
|
||||||
|
|
||||||
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
|
|
||||||
|
|
||||||
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
|
|
||||||
|
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
||||||
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
||||||
|
@ -363,6 +290,17 @@ module Google
|
||||||
|
|
||||||
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
||||||
|
|
||||||
|
property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
||||||
|
|
||||||
|
property :placement, as: 'placement', class: Google::Apis::DataprocV1::JobPlacement, decorator: Google::Apis::DataprocV1::JobPlacement::Representation
|
||||||
|
|
||||||
|
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
||||||
|
property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1::JobScheduling, decorator: Google::Apis::DataprocV1::JobScheduling::Representation
|
||||||
|
|
||||||
|
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
|
||||||
|
|
||||||
|
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -384,10 +322,10 @@ module Google
|
||||||
class JobStatus
|
class JobStatus
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :state, as: 'state'
|
|
||||||
property :details, as: 'details'
|
|
||||||
property :state_start_time, as: 'stateStartTime'
|
property :state_start_time, as: 'stateStartTime'
|
||||||
property :substate, as: 'substate'
|
property :substate, as: 'substate'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :details, as: 'details'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -402,10 +340,27 @@ module Google
|
||||||
class ClusterOperationStatus
|
class ClusterOperationStatus
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :inner_state, as: 'innerState'
|
|
||||||
property :state_start_time, as: 'stateStartTime'
|
|
||||||
property :state, as: 'state'
|
property :state, as: 'state'
|
||||||
property :details, as: 'details'
|
property :details, as: 'details'
|
||||||
|
property :inner_state, as: 'innerState'
|
||||||
|
property :state_start_time, as: 'stateStartTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class YarnApplication
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :tracking_url, as: 'trackingUrl'
|
||||||
|
property :progress, as: 'progress'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class QueryList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :queries, as: 'queries'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -424,23 +379,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class QueryList
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :queries, as: 'queries'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class YarnApplication
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :tracking_url, as: 'trackingUrl'
|
|
||||||
property :progress, as: 'progress'
|
|
||||||
property :state, as: 'state'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DiagnoseClusterRequest
|
class DiagnoseClusterRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -450,8 +388,8 @@ module Google
|
||||||
class DiskConfig
|
class DiskConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
|
||||||
property :num_local_ssds, as: 'numLocalSsds'
|
property :num_local_ssds, as: 'numLocalSsds'
|
||||||
|
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -480,13 +418,13 @@ module Google
|
||||||
class HiveJob
|
class HiveJob
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :continue_on_failure, as: 'continueOnFailure'
|
||||||
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||||
|
|
||||||
|
property :query_file_uri, as: 'queryFileUri'
|
||||||
collection :jar_file_uris, as: 'jarFileUris'
|
collection :jar_file_uris, as: 'jarFileUris'
|
||||||
hash :script_variables, as: 'scriptVariables'
|
hash :script_variables, as: 'scriptVariables'
|
||||||
hash :properties, as: 'properties'
|
hash :properties, as: 'properties'
|
||||||
property :continue_on_failure, as: 'continueOnFailure'
|
|
||||||
property :query_file_uri, as: 'queryFileUri'
|
|
||||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -500,10 +438,6 @@ module Google
|
||||||
class ClusterConfig
|
class ClusterConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
|
||||||
|
|
||||||
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
|
||||||
|
|
||||||
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
||||||
|
|
||||||
property :config_bucket, as: 'configBucket'
|
property :config_bucket, as: 'configBucket'
|
||||||
|
@ -513,12 +447,17 @@ module Google
|
||||||
|
|
||||||
property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation
|
property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation
|
||||||
|
|
||||||
|
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
||||||
|
|
||||||
|
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class PySparkJob
|
class PySparkJob
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :archive_uris, as: 'archiveUris'
|
||||||
collection :jar_file_uris, as: 'jarFileUris'
|
collection :jar_file_uris, as: 'jarFileUris'
|
||||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||||
|
|
||||||
|
@ -527,15 +466,14 @@ module Google
|
||||||
collection :file_uris, as: 'fileUris'
|
collection :file_uris, as: 'fileUris'
|
||||||
collection :python_file_uris, as: 'pythonFileUris'
|
collection :python_file_uris, as: 'pythonFileUris'
|
||||||
property :main_python_file_uri, as: 'mainPythonFileUri'
|
property :main_python_file_uri, as: 'mainPythonFileUri'
|
||||||
collection :archive_uris, as: 'archiveUris'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GceClusterConfig
|
class GceClusterConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
hash :metadata, as: 'metadata'
|
|
||||||
property :internal_ip_only, as: 'internalIpOnly'
|
property :internal_ip_only, as: 'internalIpOnly'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
collection :service_account_scopes, as: 'serviceAccountScopes'
|
collection :service_account_scopes, as: 'serviceAccountScopes'
|
||||||
collection :tags, as: 'tags'
|
collection :tags, as: 'tags'
|
||||||
property :service_account, as: 'serviceAccount'
|
property :service_account, as: 'serviceAccount'
|
||||||
|
@ -556,8 +494,8 @@ module Google
|
||||||
class ClusterMetrics
|
class ClusterMetrics
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
hash :yarn_metrics, as: 'yarnMetrics'
|
|
||||||
hash :hdfs_metrics, as: 'hdfsMetrics'
|
hash :hdfs_metrics, as: 'hdfsMetrics'
|
||||||
|
hash :yarn_metrics, as: 'yarnMetrics'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -616,26 +554,26 @@ module Google
|
||||||
class Status
|
class Status
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :details, as: 'details'
|
||||||
property :code, as: 'code'
|
property :code, as: 'code'
|
||||||
property :message, as: 'message'
|
property :message, as: 'message'
|
||||||
collection :details, as: 'details'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class InstanceGroupConfig
|
class InstanceGroupConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :accelerators, as: 'accelerators', class: Google::Apis::DataprocV1::AcceleratorConfig, decorator: Google::Apis::DataprocV1::AcceleratorConfig::Representation
|
||||||
|
|
||||||
|
property :num_instances, as: 'numInstances'
|
||||||
|
property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation
|
||||||
|
|
||||||
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
||||||
|
|
||||||
property :is_preemptible, as: 'isPreemptible'
|
property :is_preemptible, as: 'isPreemptible'
|
||||||
property :image_uri, as: 'imageUri'
|
property :image_uri, as: 'imageUri'
|
||||||
property :machine_type_uri, as: 'machineTypeUri'
|
property :machine_type_uri, as: 'machineTypeUri'
|
||||||
collection :instance_names, as: 'instanceNames'
|
collection :instance_names, as: 'instanceNames'
|
||||||
collection :accelerators, as: 'accelerators', class: Google::Apis::DataprocV1::AcceleratorConfig, decorator: Google::Apis::DataprocV1::AcceleratorConfig::Representation
|
|
||||||
|
|
||||||
property :num_instances, as: 'numInstances'
|
|
||||||
property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -646,6 +584,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NodeInitializationAction
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :executable_file, as: 'executableFile'
|
||||||
|
property :execution_timeout, as: 'executionTimeout'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ListJobsResponse
|
class ListJobsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -655,14 +601,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class NodeInitializationAction
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :executable_file, as: 'executableFile'
|
|
||||||
property :execution_timeout, as: 'executionTimeout'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CancelJobRequest
|
class CancelJobRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -672,14 +610,14 @@ module Google
|
||||||
class SparkSqlJob
|
class SparkSqlJob
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||||
|
|
||||||
|
property :query_file_uri, as: 'queryFileUri'
|
||||||
hash :script_variables, as: 'scriptVariables'
|
hash :script_variables, as: 'scriptVariables'
|
||||||
collection :jar_file_uris, as: 'jarFileUris'
|
collection :jar_file_uris, as: 'jarFileUris'
|
||||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||||
|
|
||||||
hash :properties, as: 'properties'
|
hash :properties, as: 'properties'
|
||||||
property :query_file_uri, as: 'queryFileUri'
|
|
||||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -688,25 +626,87 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :project_id, as: 'projectId'
|
property :project_id, as: 'projectId'
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
|
||||||
|
|
||||||
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
||||||
|
|
||||||
|
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
||||||
|
|
||||||
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
||||||
|
|
||||||
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
|
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
|
||||||
|
|
||||||
property :cluster_uuid, as: 'clusterUuid'
|
|
||||||
property :cluster_name, as: 'clusterName'
|
property :cluster_name, as: 'clusterName'
|
||||||
|
property :cluster_uuid, as: 'clusterUuid'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListOperationsResponse
|
class ListOperationsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation
|
collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
collection :warnings, as: 'warnings'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
||||||
|
|
||||||
|
property :operation_type, as: 'operationType'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
||||||
|
|
||||||
|
property :details, as: 'details'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :cluster_name, as: 'clusterName'
|
||||||
|
property :cluster_uuid, as: 'clusterUuid'
|
||||||
|
property :inner_state, as: 'innerState'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class JobPlacement
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cluster_name, as: 'clusterName'
|
||||||
|
property :cluster_uuid, as: 'clusterUuid'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SoftwareConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :image_version, as: 'imageVersion'
|
||||||
|
hash :properties, as: 'properties'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PigJob
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :jar_file_uris, as: 'jarFileUris'
|
||||||
|
hash :script_variables, as: 'scriptVariables'
|
||||||
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||||
|
|
||||||
|
hash :properties, as: 'properties'
|
||||||
|
property :continue_on_failure, as: 'continueOnFailure'
|
||||||
|
property :query_file_uri, as: 'queryFileUri'
|
||||||
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClusterStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :detail, as: 'detail'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :state_start_time, as: 'stateStartTime'
|
||||||
|
property :substate, as: 'substate'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -46,188 +46,6 @@ module Google
|
||||||
super('https://dataproc.googleapis.com/', '')
|
super('https://dataproc.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets the resource representation for a cluster in a project.
|
|
||||||
# @param [String] project_id
|
|
||||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
||||||
# to.
|
|
||||||
# @param [String] region
|
|
||||||
# Required The Cloud Dataproc region in which to handle the request.
|
|
||||||
# @param [String] cluster_name
|
|
||||||
# Required The cluster name.
|
|
||||||
# @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::DataprocV1::Cluster] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataprocV1::Cluster]
|
|
||||||
#
|
|
||||||
# @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_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
||||||
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
||||||
command.response_class = Google::Apis::DataprocV1::Cluster
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['region'] = region unless region.nil?
|
|
||||||
command.params['clusterName'] = cluster_name unless cluster_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
|
|
||||||
|
|
||||||
# Updates a cluster in a project.
|
|
||||||
# @param [String] project_id
|
|
||||||
# Required The ID of the Google Cloud Platform project the cluster belongs to.
|
|
||||||
# @param [String] region
|
|
||||||
# Required The Cloud Dataproc region in which to handle the request.
|
|
||||||
# @param [String] cluster_name
|
|
||||||
# Required The cluster name.
|
|
||||||
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
|
||||||
# @param [String] update_mask
|
|
||||||
# Required Specifies the path, relative to <code>Cluster</code>, of the field to
|
|
||||||
# update. For example, to change the number of workers in a cluster to 5, the <
|
|
||||||
# code>update_mask</code> parameter would be specified as <code>config.
|
|
||||||
# worker_config.num_instances</code>, and the PATCH request body would specify
|
|
||||||
# the new value, as follows:
|
|
||||||
# `
|
|
||||||
# "config":`
|
|
||||||
# "workerConfig":`
|
|
||||||
# "numInstances":"5"
|
|
||||||
# `
|
|
||||||
# `
|
|
||||||
# `
|
|
||||||
# Similarly, to change the number of preemptible workers in a cluster to 5, the <
|
|
||||||
# code>update_mask</code> parameter would be <code>config.
|
|
||||||
# secondary_worker_config.num_instances</code>, and the PATCH request body would
|
|
||||||
# be set as follows:
|
|
||||||
# `
|
|
||||||
# "config":`
|
|
||||||
# "secondaryWorkerConfig":`
|
|
||||||
# "numInstances":"5"
|
|
||||||
# `
|
|
||||||
# `
|
|
||||||
# `
|
|
||||||
# <strong>Note:</strong> Currently, <code>config.worker_config.num_instances</
|
|
||||||
# code> and <code>config.secondary_worker_config.num_instances</code> are the
|
|
||||||
# only fields that can be updated.
|
|
||||||
# @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::DataprocV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataprocV1::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 patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
||||||
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
||||||
command.request_object = cluster_object
|
|
||||||
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::DataprocV1::Operation
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['region'] = region unless region.nil?
|
|
||||||
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
||||||
command.query['updateMask'] = update_mask unless update_mask.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 cluster diagnostic information. After the operation completes, the
|
|
||||||
# Operation.response field contains DiagnoseClusterOutputLocation.
|
|
||||||
# @param [String] project_id
|
|
||||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
||||||
# to.
|
|
||||||
# @param [String] region
|
|
||||||
# Required The Cloud Dataproc region in which to handle the request.
|
|
||||||
# @param [String] cluster_name
|
|
||||||
# Required The cluster name.
|
|
||||||
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_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::DataprocV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataprocV1::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 diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
|
||||||
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
|
|
||||||
command.request_object = diagnose_cluster_request_object
|
|
||||||
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::DataprocV1::Operation
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['region'] = region unless region.nil?
|
|
||||||
command.params['clusterName'] = cluster_name unless cluster_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 cluster in a project.
|
|
||||||
# @param [String] project_id
|
|
||||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
||||||
# to.
|
|
||||||
# @param [String] region
|
|
||||||
# Required The Cloud Dataproc region in which to handle the request.
|
|
||||||
# @param [String] cluster_name
|
|
||||||
# Required The cluster name.
|
|
||||||
# @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::DataprocV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataprocV1::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 delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
||||||
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::DataprocV1::Operation
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['region'] = region unless region.nil?
|
|
||||||
command.params['clusterName'] = cluster_name unless cluster_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 all regions/`region`/clusters in a project.
|
# Lists all regions/`region`/clusters in a project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||||
|
@ -318,6 +136,261 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates a cluster in a project.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Required The ID of the Google Cloud Platform project the cluster belongs to.
|
||||||
|
# @param [String] region
|
||||||
|
# Required The Cloud Dataproc region in which to handle the request.
|
||||||
|
# @param [String] cluster_name
|
||||||
|
# Required The cluster name.
|
||||||
|
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# Required Specifies the path, relative to <code>Cluster</code>, of the field to
|
||||||
|
# update. For example, to change the number of workers in a cluster to 5, the <
|
||||||
|
# code>update_mask</code> parameter would be specified as <code>config.
|
||||||
|
# worker_config.num_instances</code>, and the PATCH request body would specify
|
||||||
|
# the new value, as follows:
|
||||||
|
# `
|
||||||
|
# "config":`
|
||||||
|
# "workerConfig":`
|
||||||
|
# "numInstances":"5"
|
||||||
|
# `
|
||||||
|
# `
|
||||||
|
# `
|
||||||
|
# Similarly, to change the number of preemptible workers in a cluster to 5, the <
|
||||||
|
# code>update_mask</code> parameter would be <code>config.
|
||||||
|
# secondary_worker_config.num_instances</code>, and the PATCH request body would
|
||||||
|
# be set as follows:
|
||||||
|
# `
|
||||||
|
# "config":`
|
||||||
|
# "secondaryWorkerConfig":`
|
||||||
|
# "numInstances":"5"
|
||||||
|
# `
|
||||||
|
# `
|
||||||
|
# `
|
||||||
|
# <strong>Note:</strong> Currently, <code>config.worker_config.num_instances</
|
||||||
|
# code> and <code>config.secondary_worker_config.num_instances</code> are the
|
||||||
|
# only fields that can be updated.
|
||||||
|
# @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::DataprocV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataprocV1::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 patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
||||||
|
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
||||||
|
command.request_object = cluster_object
|
||||||
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::DataprocV1::Operation
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['region'] = region unless region.nil?
|
||||||
|
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.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 resource representation for a cluster in a project.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||||
|
# to.
|
||||||
|
# @param [String] region
|
||||||
|
# Required The Cloud Dataproc region in which to handle the request.
|
||||||
|
# @param [String] cluster_name
|
||||||
|
# Required The cluster name.
|
||||||
|
# @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::DataprocV1::Cluster] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataprocV1::Cluster]
|
||||||
|
#
|
||||||
|
# @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_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
||||||
|
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
||||||
|
command.response_class = Google::Apis::DataprocV1::Cluster
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['region'] = region unless region.nil?
|
||||||
|
command.params['clusterName'] = cluster_name unless cluster_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 cluster in a project.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||||
|
# to.
|
||||||
|
# @param [String] region
|
||||||
|
# Required The Cloud Dataproc region in which to handle the request.
|
||||||
|
# @param [String] cluster_name
|
||||||
|
# Required The cluster name.
|
||||||
|
# @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::DataprocV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataprocV1::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 delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
||||||
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::DataprocV1::Operation
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['region'] = region unless region.nil?
|
||||||
|
command.params['clusterName'] = cluster_name unless cluster_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 cluster diagnostic information. After the operation completes, the
|
||||||
|
# Operation.response field contains DiagnoseClusterOutputLocation.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||||
|
# to.
|
||||||
|
# @param [String] region
|
||||||
|
# Required The Cloud Dataproc region in which to handle the request.
|
||||||
|
# @param [String] cluster_name
|
||||||
|
# Required The cluster name.
|
||||||
|
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_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::DataprocV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataprocV1::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 diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
||||||
|
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
|
||||||
|
command.request_object = diagnose_cluster_request_object
|
||||||
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::DataprocV1::Operation
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['region'] = region unless region.nil?
|
||||||
|
command.params['clusterName'] = cluster_name unless cluster_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
|
||||||
|
# below allows API services to override the binding to use different resource
|
||||||
|
# name schemes, such as users/*/operations.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation collection.
|
||||||
|
# @param [String] filter
|
||||||
|
# The standard list filter.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The standard list page token.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The standard list page size.
|
||||||
|
# @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::DataprocV1::ListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataprocV1::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_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.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::DataprocV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataprocV1::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::DataprocV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::DataprocV1::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
|
||||||
|
|
||||||
# Starts asynchronous cancellation on a long-running operation. The server makes
|
# 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
|
# 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.
|
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
||||||
|
@ -388,88 +461,13 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists operations that match the specified filter in the request. If the server
|
# Gets the resource representation for a job in a project.
|
||||||
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
|
||||||
# below allows API services to override the binding to use different resource
|
|
||||||
# name schemes, such as users/*/operations.
|
|
||||||
# @param [String] name
|
|
||||||
# The name of the operation collection.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# The standard list page size.
|
|
||||||
# @param [String] filter
|
|
||||||
# The standard list filter.
|
|
||||||
# @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::DataprocV1::ListOperationsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataprocV1::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, page_size: nil, filter: 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::DataprocV1::ListOperationsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
|
||||||
command.params['name'] = name unless name.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['filter'] = filter unless filter.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
|
|
||||||
|
|
||||||
# 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::DataprocV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataprocV1::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::DataprocV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::DataprocV1::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
|
|
||||||
|
|
||||||
# Starts a job cancellation request. To access the job resource after
|
|
||||||
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||||
# @param [String] region
|
# @param [String] region
|
||||||
# Required The Cloud Dataproc region in which to handle the request.
|
# Required The Cloud Dataproc region in which to handle the request.
|
||||||
# @param [String] job_id
|
# @param [String] job_id
|
||||||
# Required The job ID.
|
# Required The job ID.
|
||||||
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -487,10 +485,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
||||||
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
|
||||||
command.request_object = cancel_job_request_object
|
|
||||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||||
command.response_class = Google::Apis::DataprocV1::Job
|
command.response_class = Google::Apis::DataprocV1::Job
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
@ -547,42 +543,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets the resource representation for a job in a project.
|
|
||||||
# @param [String] project_id
|
|
||||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
||||||
# @param [String] region
|
|
||||||
# Required The Cloud Dataproc region in which to handle the request.
|
|
||||||
# @param [String] job_id
|
|
||||||
# Required The job ID.
|
|
||||||
# @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::DataprocV1::Job] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DataprocV1::Job]
|
|
||||||
#
|
|
||||||
# @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_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
||||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
||||||
command.response_class = Google::Apis::DataprocV1::Job
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['region'] = region unless region.nil?
|
|
||||||
command.params['jobId'] = job_id unless job_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Submits a job to a cluster.
|
# Submits a job to a cluster.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||||
|
@ -713,6 +673,46 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Starts a job cancellation request. To access the job resource after
|
||||||
|
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||||
|
# @param [String] region
|
||||||
|
# Required The Cloud Dataproc region in which to handle the request.
|
||||||
|
# @param [String] job_id
|
||||||
|
# Required The job ID.
|
||||||
|
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_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::DataprocV1::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DataprocV1::Job]
|
||||||
|
#
|
||||||
|
# @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_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
||||||
|
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
||||||
|
command.request_object = cancel_job_request_object
|
||||||
|
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||||
|
command.response_class = Google::Apis::DataprocV1::Job
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['region'] = region unless region.nil?
|
||||||
|
command.params['jobId'] = job_id unless job_id.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
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/datastore/
|
# @see https://cloud.google.com/datastore/
|
||||||
module DatastoreV1
|
module DatastoreV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170123'
|
REVISION = '20170314'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,187 +22,37 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module DatastoreV1
|
module DatastoreV1
|
||||||
|
|
||||||
class Value
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ReadOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PropertyOrder
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CommitRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Query
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RollbackRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class EntityResult
|
class EntityResult
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GqlQueryParameter
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ArrayValue
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Filter
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BeginTransactionResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PartitionId
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class QueryResultBatch
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AllocateIdsRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class KindExpression
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PropertyFilter
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PathElement
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RollbackResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PropertyReference
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Projection
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class MutationResult
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AllocateIdsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class LookupResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BeginTransactionRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Key
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RunQueryResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Entity
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GqlQuery
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Mutation
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CommitResponse
|
class CommitResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class RunQueryRequest
|
class Value
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PartitionId
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Entity
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class QueryResultBatch
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -214,139 +64,210 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class PathElement
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GqlQueryParameter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BeginTransactionResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AllocateIdsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LookupResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunQueryResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CommitRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BeginTransactionRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PropertyOrder
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class KindExpression
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class LatLng
|
class LatLng
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Key
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PropertyReference
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ArrayValue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Projection
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Mutation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReadOptions
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RollbackResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MutationResult
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GqlQuery
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Filter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RollbackRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunQueryRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class CompositeFilter
|
class CompositeFilter
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Value
|
class AllocateIdsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :string_value, as: 'stringValue'
|
|
||||||
property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
|
|
||||||
|
|
||||||
property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
|
||||||
property :meaning, as: 'meaning'
|
|
||||||
property :integer_value, as: 'integerValue'
|
|
||||||
property :double_value, as: 'doubleValue'
|
|
||||||
property :blob_value, :base64 => true, as: 'blobValue'
|
|
||||||
property :geo_point_value, as: 'geoPointValue', class: Google::Apis::DatastoreV1::LatLng, decorator: Google::Apis::DatastoreV1::LatLng::Representation
|
|
||||||
|
|
||||||
property :null_value, as: 'nullValue'
|
|
||||||
property :boolean_value, as: 'booleanValue'
|
|
||||||
property :key_value, as: 'keyValue', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
|
||||||
|
|
||||||
property :exclude_from_indexes, as: 'excludeFromIndexes'
|
|
||||||
property :timestamp_value, as: 'timestampValue'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ReadOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :transaction, :base64 => true, as: 'transaction'
|
|
||||||
property :read_consistency, as: 'readConsistency'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class PropertyOrder
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :direction, as: 'direction'
|
|
||||||
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CommitRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :transaction, :base64 => true, as: 'transaction'
|
|
||||||
property :mode, as: 'mode'
|
|
||||||
collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Query
|
class Query
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :limit, as: 'limit'
|
|
||||||
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
|
||||||
|
|
||||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
|
||||||
|
|
||||||
property :offset, as: 'offset'
|
|
||||||
collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
|
|
||||||
|
|
||||||
collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation
|
|
||||||
|
|
||||||
property :start_cursor, :base64 => true, as: 'startCursor'
|
|
||||||
collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class RollbackRequest
|
class PropertyFilter
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :transaction, :base64 => true, as: 'transaction'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class EntityResult
|
class EntityResult
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :cursor, :base64 => true, as: 'cursor'
|
property :cursor, :base64 => true, as: 'cursor'
|
||||||
|
property :version, as: 'version'
|
||||||
property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||||
|
|
||||||
property :version, as: 'version'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GqlQueryParameter
|
class CommitResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
|
||||||
|
|
||||||
property :cursor, :base64 => true, as: 'cursor'
|
property :index_updates, as: 'indexUpdates'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ArrayValue
|
class Value
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||||
|
|
||||||
end
|
property :geo_point_value, as: 'geoPointValue', class: Google::Apis::DatastoreV1::LatLng, decorator: Google::Apis::DatastoreV1::LatLng::Representation
|
||||||
end
|
|
||||||
|
|
||||||
class Filter
|
property :key_value, as: 'keyValue', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
|
|
||||||
|
|
||||||
property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
|
property :integer_value, as: 'integerValue'
|
||||||
|
property :string_value, as: 'stringValue'
|
||||||
|
property :exclude_from_indexes, as: 'excludeFromIndexes'
|
||||||
|
property :double_value, as: 'doubleValue'
|
||||||
|
property :timestamp_value, as: 'timestampValue'
|
||||||
|
property :boolean_value, as: 'booleanValue'
|
||||||
|
property :null_value, as: 'nullValue'
|
||||||
|
property :blob_value, :base64 => true, as: 'blobValue'
|
||||||
|
property :meaning, as: 'meaning'
|
||||||
|
property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BeginTransactionResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :transaction, :base64 => true, as: 'transaction'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class PartitionId
|
class PartitionId
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -355,87 +276,66 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Entity
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
||||||
|
|
||||||
|
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class QueryResultBatch
|
class QueryResultBatch
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :snapshot_version, as: 'snapshotVersion'
|
|
||||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
|
||||||
property :skipped_cursor, :base64 => true, as: 'skippedCursor'
|
|
||||||
property :entity_result_type, as: 'entityResultType'
|
|
||||||
property :more_results, as: 'moreResults'
|
|
||||||
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
|
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
|
||||||
|
|
||||||
|
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||||
|
property :more_results, as: 'moreResults'
|
||||||
|
property :snapshot_version, as: 'snapshotVersion'
|
||||||
|
property :skipped_cursor, :base64 => true, as: 'skippedCursor'
|
||||||
property :skipped_results, as: 'skippedResults'
|
property :skipped_results, as: 'skippedResults'
|
||||||
|
property :entity_result_type, as: 'entityResultType'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class AllocateIdsRequest
|
class LookupRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
||||||
|
|
||||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class KindExpression
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class PropertyFilter
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
|
||||||
|
|
||||||
property :op, as: 'op'
|
|
||||||
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class PathElement
|
class PathElement
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :kind, as: 'kind'
|
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :kind, as: 'kind'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RollbackResponse
|
class GqlQueryParameter
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cursor, :base64 => true, as: 'cursor'
|
||||||
|
property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class PropertyReference
|
class BeginTransactionResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :name, as: 'name'
|
property :transaction, :base64 => true, as: 'transaction'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Projection
|
class AllocateIdsRequest
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class MutationResult
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :conflict_detected, as: 'conflictDetected'
|
|
||||||
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
|
||||||
|
|
||||||
property :version, as: 'version'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AllocateIdsResponse
|
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||||
|
@ -455,50 +355,85 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RunQueryResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||||
|
|
||||||
|
property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CommitRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
|
||||||
|
|
||||||
|
property :transaction, :base64 => true, as: 'transaction'
|
||||||
|
property :mode, as: 'mode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class BeginTransactionRequest
|
class BeginTransactionRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class PropertyOrder
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||||
|
|
||||||
|
property :direction, as: 'direction'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class KindExpression
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LatLng
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :longitude, as: 'longitude'
|
||||||
|
property :latitude, as: 'latitude'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Key
|
class Key
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
|
|
||||||
|
|
||||||
collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation
|
collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation
|
||||||
|
|
||||||
|
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RunQueryResponse
|
class PropertyReference
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
|
property :name, as: 'name'
|
||||||
|
|
||||||
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Entity
|
class ArrayValue
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
||||||
|
|
||||||
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GqlQuery
|
class Projection
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :query_string, as: 'queryString'
|
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||||
hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
|
||||||
|
|
||||||
property :allow_literals, as: 'allowLiterals'
|
|
||||||
collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -506,65 +441,130 @@ module Google
|
||||||
class Mutation
|
class Mutation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
|
||||||
|
|
||||||
property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
|
||||||
|
|
||||||
property :base_version, as: 'baseVersion'
|
|
||||||
property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
|
||||||
|
|
||||||
property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||||
|
|
||||||
|
property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||||
|
|
||||||
|
property :base_version, as: 'baseVersion'
|
||||||
|
property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||||
|
|
||||||
|
property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CommitResponse
|
class ReadOptions
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
|
property :read_consistency, as: 'readConsistency'
|
||||||
|
property :transaction, :base64 => true, as: 'transaction'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
property :index_updates, as: 'indexUpdates'
|
class RollbackResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MutationResult
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||||
|
|
||||||
|
property :version, as: 'version'
|
||||||
|
property :conflict_detected, as: 'conflictDetected'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GqlQuery
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :query_string, as: 'queryString'
|
||||||
|
property :allow_literals, as: 'allowLiterals'
|
||||||
|
hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
||||||
|
|
||||||
|
collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Filter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
|
||||||
|
|
||||||
|
property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RollbackRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :transaction, :base64 => true, as: 'transaction'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RunQueryRequest
|
class RunQueryRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
|
|
||||||
|
|
||||||
property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
|
|
||||||
|
|
||||||
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
||||||
|
|
||||||
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||||
|
|
||||||
end
|
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
|
||||||
end
|
|
||||||
|
|
||||||
class LookupRequest
|
property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
|
||||||
|
|
||||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class LatLng
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :latitude, as: 'latitude'
|
|
||||||
property :longitude, as: 'longitude'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CompositeFilter
|
class CompositeFilter
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :op, as: 'op'
|
|
||||||
collection :filters, as: 'filters', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
collection :filters, as: 'filters', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
||||||
|
|
||||||
|
property :op, as: 'op'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AllocateIdsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Query
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
|
||||||
|
|
||||||
|
collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||||
|
|
||||||
|
collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation
|
||||||
|
|
||||||
|
collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
|
||||||
|
|
||||||
|
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||||
|
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
||||||
|
|
||||||
|
property :limit, as: 'limit'
|
||||||
|
property :start_cursor, :base64 => true, as: 'startCursor'
|
||||||
|
property :offset, as: 'offset'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PropertyFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
||||||
|
|
||||||
|
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||||
|
|
||||||
|
property :op, as: 'op'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,82 +47,16 @@ module Google
|
||||||
super('https://datastore.googleapis.com/', '')
|
super('https://datastore.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Queries for entities.
|
|
||||||
# @param [String] project_id
|
|
||||||
# The ID of the project against which to make the request.
|
|
||||||
# @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DatastoreV1::RunQueryResponse]
|
|
||||||
#
|
|
||||||
# @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 run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
|
|
||||||
command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
|
|
||||||
command.request_object = run_query_request_object
|
|
||||||
command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Begins a new transaction.
|
|
||||||
# @param [String] project_id
|
|
||||||
# The ID of the project against which to make the request.
|
|
||||||
# @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
|
|
||||||
#
|
|
||||||
# @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 begin_project_transaction(project_id, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
|
|
||||||
command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
|
|
||||||
command.request_object = begin_transaction_request_object
|
|
||||||
command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Allocates IDs for the given keys, which is useful for referencing an entity
|
# Allocates IDs for the given keys, which is useful for referencing an entity
|
||||||
# before it is inserted.
|
# before it is inserted.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The ID of the project against which to make the request.
|
# The ID of the project against which to make the request.
|
||||||
# @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
|
# @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -135,48 +69,15 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
def allocate_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
|
command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
|
||||||
command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
|
command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
|
||||||
command.request_object = allocate_ids_request_object
|
command.request_object = allocate_ids_request_object
|
||||||
command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
|
command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
|
||||||
command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
|
command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Looks up entities by key.
|
|
||||||
# @param [String] project_id
|
|
||||||
# The ID of the project against which to make the request.
|
|
||||||
# @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::DatastoreV1::LookupResponse]
|
|
||||||
#
|
|
||||||
# @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 lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
|
|
||||||
command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
|
|
||||||
command.request_object = lookup_request_object
|
|
||||||
command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
|
|
||||||
command.response_class = Google::Apis::DatastoreV1::LookupResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -185,11 +86,11 @@ module Google
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The ID of the project against which to make the request.
|
# The ID of the project against which to make the request.
|
||||||
# @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
|
# @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -202,15 +103,81 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
def commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
|
command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
|
||||||
command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
|
command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
|
||||||
command.request_object = commit_request_object
|
command.request_object = commit_request_object
|
||||||
command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
|
command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
|
||||||
command.response_class = Google::Apis::DatastoreV1::CommitResponse
|
command.response_class = Google::Apis::DatastoreV1::CommitResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Begins a new transaction.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The ID of the project against which to make the request.
|
||||||
|
# @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_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::DatastoreV1::BeginTransactionResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
|
||||||
|
#
|
||||||
|
# @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 begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
|
||||||
|
command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
|
||||||
|
command.request_object = begin_transaction_request_object
|
||||||
|
command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
|
||||||
|
command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Queries for entities.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The ID of the project against which to make the request.
|
||||||
|
# @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_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::DatastoreV1::RunQueryResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DatastoreV1::RunQueryResponse]
|
||||||
|
#
|
||||||
|
# @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 run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
|
||||||
|
command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
|
||||||
|
command.request_object = run_query_request_object
|
||||||
|
command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
|
||||||
|
command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -218,11 +185,11 @@ module Google
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The ID of the project against which to make the request.
|
# The ID of the project against which to make the request.
|
||||||
# @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
|
# @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -235,15 +202,48 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
|
command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
|
||||||
command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
|
command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
|
||||||
command.request_object = rollback_request_object
|
command.request_object = rollback_request_object
|
||||||
command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
|
command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
|
||||||
command.response_class = Google::Apis::DatastoreV1::RollbackResponse
|
command.response_class = Google::Apis::DatastoreV1::RollbackResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Looks up entities by key.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The ID of the project against which to make the request.
|
||||||
|
# @param [Google::Apis::DatastoreV1::LookupRequest] lookup_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::DatastoreV1::LookupResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::DatastoreV1::LookupResponse]
|
||||||
|
#
|
||||||
|
# @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 lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
|
||||||
|
command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
|
||||||
|
command.request_object = lookup_request_object
|
||||||
|
command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
|
||||||
|
command.response_class = Google::Apis::DatastoreV1::LookupResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/doubleclick-search/
|
# @see https://developers.google.com/doubleclick-search/
|
||||||
module DoubleclicksearchV2
|
module DoubleclicksearchV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20170314'
|
REVISION = '20170320'
|
||||||
|
|
||||||
# View and manage your advertising data in DoubleClick Search
|
# View and manage your advertising data in DoubleClick Search
|
||||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
# 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/firebasedynamiclinks_v1/service.rb'
|
||||||
|
require 'google/apis/firebasedynamiclinks_v1/classes.rb'
|
||||||
|
require 'google/apis/firebasedynamiclinks_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Firebase Dynamic Links API
|
||||||
|
#
|
||||||
|
# Firebase Dynamic Links API enables third party developers to programmatically
|
||||||
|
# create and manage Dynamic Links.
|
||||||
|
#
|
||||||
|
# @see https://firebase.google.com/docs/dynamic-links/
|
||||||
|
module FirebasedynamiclinksV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170323'
|
||||||
|
|
||||||
|
# View and administer all your Firebase data and settings
|
||||||
|
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,466 @@
|
||||||
|
# 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 FirebasedynamiclinksV1
|
||||||
|
|
||||||
|
# Parameters for iTunes Connect App Analytics.
|
||||||
|
class ITunesConnectAnalytics
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Affiliate token used to create affiliate-coded links.
|
||||||
|
# Corresponds to the JSON property `at`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :at
|
||||||
|
|
||||||
|
# Campaign text that developers can optionally add to any link in order to
|
||||||
|
# track sales from a specific marketing campaign.
|
||||||
|
# Corresponds to the JSON property `ct`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ct
|
||||||
|
|
||||||
|
# iTune media types, including music, podcasts, audiobooks and so on.
|
||||||
|
# Corresponds to the JSON property `mt`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :mt
|
||||||
|
|
||||||
|
# Provider token that enables analytics for Dynamic Links from within iTunes
|
||||||
|
# Connect.
|
||||||
|
# Corresponds to the JSON property `pt`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :pt
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@at = args[:at] if args.key?(:at)
|
||||||
|
@ct = args[:ct] if args.key?(:ct)
|
||||||
|
@mt = args[:mt] if args.key?(:mt)
|
||||||
|
@pt = args[:pt] if args.key?(:pt)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Parameters for social meta tag params.
|
||||||
|
# Used to set meta tag data for link previews on social sites.
|
||||||
|
class SocialMetaTagInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Title to be displayed. Optional.
|
||||||
|
# Corresponds to the JSON property `socialTitle`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :social_title
|
||||||
|
|
||||||
|
# An image url string. Optional.
|
||||||
|
# Corresponds to the JSON property `socialImageLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :social_image_link
|
||||||
|
|
||||||
|
# A short description of the link. Optional.
|
||||||
|
# Corresponds to the JSON property `socialDescription`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :social_description
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@social_title = args[:social_title] if args.key?(:social_title)
|
||||||
|
@social_image_link = args[:social_image_link] if args.key?(:social_image_link)
|
||||||
|
@social_description = args[:social_description] if args.key?(:social_description)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Android related attributes to the Dynamic Link.
|
||||||
|
class AndroidInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If specified, this overrides the ‘link’ parameter on Android.
|
||||||
|
# Corresponds to the JSON property `androidLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :android_link
|
||||||
|
|
||||||
|
# Link to open on Android if the app is not installed.
|
||||||
|
# Corresponds to the JSON property `androidFallbackLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :android_fallback_link
|
||||||
|
|
||||||
|
# Android package name of the app.
|
||||||
|
# Corresponds to the JSON property `androidPackageName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :android_package_name
|
||||||
|
|
||||||
|
# Minimum version code for the Android app. If the installed app’s version
|
||||||
|
# code is lower, then the user is taken to the Play Store.
|
||||||
|
# Corresponds to the JSON property `androidMinPackageVersionCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :android_min_package_version_code
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@android_link = args[:android_link] if args.key?(:android_link)
|
||||||
|
@android_fallback_link = args[:android_fallback_link] if args.key?(:android_fallback_link)
|
||||||
|
@android_package_name = args[:android_package_name] if args.key?(:android_package_name)
|
||||||
|
@android_min_package_version_code = args[:android_min_package_version_code] if args.key?(:android_min_package_version_code)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Dynamic Links warning messages.
|
||||||
|
class DynamicLinkWarning
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The warning message to help developers improve their requests.
|
||||||
|
# Corresponds to the JSON property `warningMessage`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :warning_message
|
||||||
|
|
||||||
|
# The warning code.
|
||||||
|
# Corresponds to the JSON property `warningCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :warning_code
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@warning_message = args[:warning_message] if args.key?(:warning_message)
|
||||||
|
@warning_code = args[:warning_code] if args.key?(:warning_code)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Information of navigation behavior.
|
||||||
|
class NavigationInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If this option is on, FDL click will be forced to redirect rather than
|
||||||
|
# show an interstitial page.
|
||||||
|
# Corresponds to the JSON property `enableForcedRedirect`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :enable_forced_redirect
|
||||||
|
alias_method :enable_forced_redirect?, :enable_forced_redirect
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@enable_forced_redirect = args[:enable_forced_redirect] if args.key?(:enable_forced_redirect)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# iOS related attributes to the Dynamic Link..
|
||||||
|
class IosInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Link to open on iOS if the app is not installed.
|
||||||
|
# Corresponds to the JSON property `iosFallbackLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ios_fallback_link
|
||||||
|
|
||||||
|
# iOS App Store ID.
|
||||||
|
# Corresponds to the JSON property `iosAppStoreId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ios_app_store_id
|
||||||
|
|
||||||
|
# If specified, this overrides the ios_fallback_link value on iPads.
|
||||||
|
# Corresponds to the JSON property `iosIpadFallbackLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ios_ipad_fallback_link
|
||||||
|
|
||||||
|
# iPad bundle ID of the app.
|
||||||
|
# Corresponds to the JSON property `iosIpadBundleId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ios_ipad_bundle_id
|
||||||
|
|
||||||
|
# Custom (destination) scheme to use for iOS. By default, we’ll use the
|
||||||
|
# bundle ID as the custom scheme. Developer can override this behavior using
|
||||||
|
# this param.
|
||||||
|
# Corresponds to the JSON property `iosCustomScheme`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ios_custom_scheme
|
||||||
|
|
||||||
|
# iOS bundle ID of the app.
|
||||||
|
# Corresponds to the JSON property `iosBundleId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ios_bundle_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@ios_fallback_link = args[:ios_fallback_link] if args.key?(:ios_fallback_link)
|
||||||
|
@ios_app_store_id = args[:ios_app_store_id] if args.key?(:ios_app_store_id)
|
||||||
|
@ios_ipad_fallback_link = args[:ios_ipad_fallback_link] if args.key?(:ios_ipad_fallback_link)
|
||||||
|
@ios_ipad_bundle_id = args[:ios_ipad_bundle_id] if args.key?(:ios_ipad_bundle_id)
|
||||||
|
@ios_custom_scheme = args[:ios_custom_scheme] if args.key?(:ios_custom_scheme)
|
||||||
|
@ios_bundle_id = args[:ios_bundle_id] if args.key?(:ios_bundle_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Tracking parameters supported by Dynamic Link.
|
||||||
|
class AnalyticsInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Parameters for iTunes Connect App Analytics.
|
||||||
|
# Corresponds to the JSON property `itunesConnectAnalytics`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics]
|
||||||
|
attr_accessor :itunes_connect_analytics
|
||||||
|
|
||||||
|
# Parameters for Google Play Campaign Measurements.
|
||||||
|
# [Learn more](https://developers.google.com/analytics/devguides/collection/
|
||||||
|
# android/v4/campaigns#campaign-params)
|
||||||
|
# Corresponds to the JSON property `googlePlayAnalytics`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics]
|
||||||
|
attr_accessor :google_play_analytics
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@itunes_connect_analytics = args[:itunes_connect_analytics] if args.key?(:itunes_connect_analytics)
|
||||||
|
@google_play_analytics = args[:google_play_analytics] if args.key?(:google_play_analytics)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to create a short Dynamic Link.
|
||||||
|
class CreateShortDynamicLinkRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Information about a Dynamic Link.
|
||||||
|
# Corresponds to the JSON property `dynamicLinkInfo`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo]
|
||||||
|
attr_accessor :dynamic_link_info
|
||||||
|
|
||||||
|
# Full long Dynamic Link URL with desired query parameters specified.
|
||||||
|
# For example,
|
||||||
|
# "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample",
|
||||||
|
# [Learn more](https://firebase.google.com/docs/dynamic-links/android#create-a-
|
||||||
|
# dynamic-link-programmatically).
|
||||||
|
# Corresponds to the JSON property `longDynamicLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :long_dynamic_link
|
||||||
|
|
||||||
|
# Short Dynamic Link suffix.
|
||||||
|
# Corresponds to the JSON property `suffix`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::Suffix]
|
||||||
|
attr_accessor :suffix
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dynamic_link_info = args[:dynamic_link_info] if args.key?(:dynamic_link_info)
|
||||||
|
@long_dynamic_link = args[:long_dynamic_link] if args.key?(:long_dynamic_link)
|
||||||
|
@suffix = args[:suffix] if args.key?(:suffix)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response to create a short Dynamic Link.
|
||||||
|
class CreateShortDynamicLinkResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz
|
||||||
|
# Corresponds to the JSON property `shortLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :short_link
|
||||||
|
|
||||||
|
# Preivew link to show the link flow chart.
|
||||||
|
# Corresponds to the JSON property `previewLink`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :preview_link
|
||||||
|
|
||||||
|
# Information about potential warnings on link creation.
|
||||||
|
# Corresponds to the JSON property `warning`
|
||||||
|
# @return [Array<Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning>]
|
||||||
|
attr_accessor :warning
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@short_link = args[:short_link] if args.key?(:short_link)
|
||||||
|
@preview_link = args[:preview_link] if args.key?(:preview_link)
|
||||||
|
@warning = args[:warning] if args.key?(:warning)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Short Dynamic Link suffix.
|
||||||
|
class Suffix
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Suffix option.
|
||||||
|
# Corresponds to the JSON property `option`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :option
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@option = args[:option] if args.key?(:option)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Parameters for Google Play Campaign Measurements.
|
||||||
|
# [Learn more](https://developers.google.com/analytics/devguides/collection/
|
||||||
|
# android/v4/campaigns#campaign-params)
|
||||||
|
class GooglePlayAnalytics
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Campaign medium; used to identify a medium such as email or cost-per-click.
|
||||||
|
# Corresponds to the JSON property `utmMedium`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :utm_medium
|
||||||
|
|
||||||
|
# Campaign term; used with paid search to supply the keywords for ads.
|
||||||
|
# Corresponds to the JSON property `utmTerm`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :utm_term
|
||||||
|
|
||||||
|
# Campaign source; used to identify a search engine, newsletter, or other
|
||||||
|
# source.
|
||||||
|
# Corresponds to the JSON property `utmSource`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :utm_source
|
||||||
|
|
||||||
|
# Campaign name; used for keyword analysis to identify a specific product
|
||||||
|
# promotion or strategic campaign.
|
||||||
|
# Corresponds to the JSON property `utmCampaign`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :utm_campaign
|
||||||
|
|
||||||
|
# [AdWords autotagging parameter](https://support.google.com/analytics/answer/
|
||||||
|
# 1033981?hl=en);
|
||||||
|
# used to measure Google AdWords ads. This value is generated dynamically
|
||||||
|
# and should never be modified.
|
||||||
|
# Corresponds to the JSON property `gclid`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :gclid
|
||||||
|
|
||||||
|
# Campaign content; used for A/B testing and content-targeted ads to
|
||||||
|
# differentiate ads or links that point to the same URL.
|
||||||
|
# Corresponds to the JSON property `utmContent`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :utm_content
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@utm_medium = args[:utm_medium] if args.key?(:utm_medium)
|
||||||
|
@utm_term = args[:utm_term] if args.key?(:utm_term)
|
||||||
|
@utm_source = args[:utm_source] if args.key?(:utm_source)
|
||||||
|
@utm_campaign = args[:utm_campaign] if args.key?(:utm_campaign)
|
||||||
|
@gclid = args[:gclid] if args.key?(:gclid)
|
||||||
|
@utm_content = args[:utm_content] if args.key?(:utm_content)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Information about a Dynamic Link.
|
||||||
|
class DynamicLinkInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl
|
||||||
|
# [Learn more](https://firebase.google.com/docs/dynamic-links/android#set-up-
|
||||||
|
# firebase-and-the-dynamic-links-sdk)
|
||||||
|
# on how to set up Dynamic Link domain associated with your Firebase project.
|
||||||
|
# Required.
|
||||||
|
# Corresponds to the JSON property `dynamicLinkDomain`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :dynamic_link_domain
|
||||||
|
|
||||||
|
# The link your app will open, You can specify any URL your app can handle.
|
||||||
|
# This link must be a well-formatted URL, be properly URL-encoded, and use
|
||||||
|
# the HTTP or HTTPS scheme. See 'link' parameters in the
|
||||||
|
# [documentation](https://firebase.google.com/docs/dynamic-links/android#create-
|
||||||
|
# a-dynamic-link-programmatically).
|
||||||
|
# Required.
|
||||||
|
# Corresponds to the JSON property `link`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :link
|
||||||
|
|
||||||
|
# iOS related attributes to the Dynamic Link..
|
||||||
|
# Corresponds to the JSON property `iosInfo`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::IosInfo]
|
||||||
|
attr_accessor :ios_info
|
||||||
|
|
||||||
|
# Parameters for social meta tag params.
|
||||||
|
# Used to set meta tag data for link previews on social sites.
|
||||||
|
# Corresponds to the JSON property `socialMetaTagInfo`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo]
|
||||||
|
attr_accessor :social_meta_tag_info
|
||||||
|
|
||||||
|
# Android related attributes to the Dynamic Link.
|
||||||
|
# Corresponds to the JSON property `androidInfo`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::AndroidInfo]
|
||||||
|
attr_accessor :android_info
|
||||||
|
|
||||||
|
# Information of navigation behavior.
|
||||||
|
# Corresponds to the JSON property `navigationInfo`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::NavigationInfo]
|
||||||
|
attr_accessor :navigation_info
|
||||||
|
|
||||||
|
# Tracking parameters supported by Dynamic Link.
|
||||||
|
# Corresponds to the JSON property `analyticsInfo`
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo]
|
||||||
|
attr_accessor :analytics_info
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dynamic_link_domain = args[:dynamic_link_domain] if args.key?(:dynamic_link_domain)
|
||||||
|
@link = args[:link] if args.key?(:link)
|
||||||
|
@ios_info = args[:ios_info] if args.key?(:ios_info)
|
||||||
|
@social_meta_tag_info = args[:social_meta_tag_info] if args.key?(:social_meta_tag_info)
|
||||||
|
@android_info = args[:android_info] if args.key?(:android_info)
|
||||||
|
@navigation_info = args[:navigation_info] if args.key?(:navigation_info)
|
||||||
|
@analytics_info = args[:analytics_info] if args.key?(:analytics_info)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,222 @@
|
||||||
|
# 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 FirebasedynamiclinksV1
|
||||||
|
|
||||||
|
class ITunesConnectAnalytics
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SocialMetaTagInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AndroidInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DynamicLinkWarning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NavigationInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class IosInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyticsInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CreateShortDynamicLinkRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CreateShortDynamicLinkResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Suffix
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GooglePlayAnalytics
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DynamicLinkInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ITunesConnectAnalytics
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :at, as: 'at'
|
||||||
|
property :ct, as: 'ct'
|
||||||
|
property :mt, as: 'mt'
|
||||||
|
property :pt, as: 'pt'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SocialMetaTagInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :social_title, as: 'socialTitle'
|
||||||
|
property :social_image_link, as: 'socialImageLink'
|
||||||
|
property :social_description, as: 'socialDescription'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AndroidInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :android_link, as: 'androidLink'
|
||||||
|
property :android_fallback_link, as: 'androidFallbackLink'
|
||||||
|
property :android_package_name, as: 'androidPackageName'
|
||||||
|
property :android_min_package_version_code, as: 'androidMinPackageVersionCode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DynamicLinkWarning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :warning_message, as: 'warningMessage'
|
||||||
|
property :warning_code, as: 'warningCode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NavigationInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :enable_forced_redirect, as: 'enableForcedRedirect'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class IosInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ios_fallback_link, as: 'iosFallbackLink'
|
||||||
|
property :ios_app_store_id, as: 'iosAppStoreId'
|
||||||
|
property :ios_ipad_fallback_link, as: 'iosIpadFallbackLink'
|
||||||
|
property :ios_ipad_bundle_id, as: 'iosIpadBundleId'
|
||||||
|
property :ios_custom_scheme, as: 'iosCustomScheme'
|
||||||
|
property :ios_bundle_id, as: 'iosBundleId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyticsInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :itunes_connect_analytics, as: 'itunesConnectAnalytics', class: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics::Representation
|
||||||
|
|
||||||
|
property :google_play_analytics, as: 'googlePlayAnalytics', class: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CreateShortDynamicLinkRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dynamic_link_info, as: 'dynamicLinkInfo', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkInfo::Representation
|
||||||
|
|
||||||
|
property :long_dynamic_link, as: 'longDynamicLink'
|
||||||
|
property :suffix, as: 'suffix', class: Google::Apis::FirebasedynamiclinksV1::Suffix, decorator: Google::Apis::FirebasedynamiclinksV1::Suffix::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CreateShortDynamicLinkResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :short_link, as: 'shortLink'
|
||||||
|
property :preview_link, as: 'previewLink'
|
||||||
|
collection :warning, as: 'warning', class: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning, decorator: Google::Apis::FirebasedynamiclinksV1::DynamicLinkWarning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Suffix
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :option, as: 'option'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GooglePlayAnalytics
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :utm_medium, as: 'utmMedium'
|
||||||
|
property :utm_term, as: 'utmTerm'
|
||||||
|
property :utm_source, as: 'utmSource'
|
||||||
|
property :utm_campaign, as: 'utmCampaign'
|
||||||
|
property :gclid, as: 'gclid'
|
||||||
|
property :utm_content, as: 'utmContent'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DynamicLinkInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dynamic_link_domain, as: 'dynamicLinkDomain'
|
||||||
|
property :link, as: 'link'
|
||||||
|
property :ios_info, as: 'iosInfo', class: Google::Apis::FirebasedynamiclinksV1::IosInfo, decorator: Google::Apis::FirebasedynamiclinksV1::IosInfo::Representation
|
||||||
|
|
||||||
|
property :social_meta_tag_info, as: 'socialMetaTagInfo', class: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo, decorator: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo::Representation
|
||||||
|
|
||||||
|
property :android_info, as: 'androidInfo', class: Google::Apis::FirebasedynamiclinksV1::AndroidInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AndroidInfo::Representation
|
||||||
|
|
||||||
|
property :navigation_info, as: 'navigationInfo', class: Google::Apis::FirebasedynamiclinksV1::NavigationInfo, decorator: Google::Apis::FirebasedynamiclinksV1::NavigationInfo::Representation
|
||||||
|
|
||||||
|
property :analytics_info, as: 'analyticsInfo', class: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo, decorator: Google::Apis::FirebasedynamiclinksV1::AnalyticsInfo::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,95 @@
|
||||||
|
# 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 FirebasedynamiclinksV1
|
||||||
|
# Firebase Dynamic Links API
|
||||||
|
#
|
||||||
|
# Firebase Dynamic Links API enables third party developers to programmatically
|
||||||
|
# create and manage Dynamic Links.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/firebasedynamiclinks_v1'
|
||||||
|
#
|
||||||
|
# Firebasedynamiclinks = Google::Apis::FirebasedynamiclinksV1 # Alias the module
|
||||||
|
# service = Firebasedynamiclinks::FirebaseDynamicLinksService.new
|
||||||
|
#
|
||||||
|
# @see https://firebase.google.com/docs/dynamic-links/
|
||||||
|
class FirebaseDynamicLinksService < 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://firebasedynamiclinks.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a short Dynamic Link given either a valid long Dynamic Link or
|
||||||
|
# details such as Dynamic Link domain, Android and iOS app information.
|
||||||
|
# The created short Dynamic Link will not expire.
|
||||||
|
# Repeated calls with the same long Dynamic Link or Dynamic Link information
|
||||||
|
# will produce the same short Dynamic Link.
|
||||||
|
# The Dynamic Link domain in the request must be owned by requester's
|
||||||
|
# Firebase project.
|
||||||
|
# @param [Google::Apis::FirebasedynamiclinksV1::CreateShortDynamicLinkRequest] create_short_dynamic_link_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::FirebasedynamiclinksV1::CreateShortDynamicLinkResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebasedynamiclinksV1::CreateShortDynamicLinkResponse]
|
||||||
|
#
|
||||||
|
# @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 create_short_link_short_dynamic_link(create_short_dynamic_link_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/shortLinks', options)
|
||||||
|
command.request_representation = Google::Apis::FirebasedynamiclinksV1::CreateShortDynamicLinkRequest::Representation
|
||||||
|
command.request_object = create_short_dynamic_link_request_object
|
||||||
|
command.response_representation = Google::Apis::FirebasedynamiclinksV1::CreateShortDynamicLinkResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FirebasedynamiclinksV1::CreateShortDynamicLinkResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.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
|
|
@ -0,0 +1,41 @@
|
||||||
|
# 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/firebaserules_v1/service.rb'
|
||||||
|
require 'google/apis/firebaserules_v1/classes.rb'
|
||||||
|
require 'google/apis/firebaserules_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Firebase Rules API
|
||||||
|
#
|
||||||
|
# Creates and manages rules that determine when a Firebase Rules-enabled service
|
||||||
|
# should permit a request.
|
||||||
|
#
|
||||||
|
# @see https://firebase.google.com/docs/storage/security
|
||||||
|
module FirebaserulesV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170327'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# View and administer all your Firebase data and settings
|
||||||
|
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
|
||||||
|
|
||||||
|
# View all your Firebase data and settings
|
||||||
|
AUTH_FIREBASE_READONLY = 'https://www.googleapis.com/auth/firebase.readonly'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,424 @@
|
||||||
|
# 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 FirebaserulesV1
|
||||||
|
|
||||||
|
# `Source` is one or more `File` messages comprising a logical set of rules.
|
||||||
|
class Source
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# `File` set constituting the `Source` bundle.
|
||||||
|
# Corresponds to the JSON property `files`
|
||||||
|
# @return [Array<Google::Apis::FirebaserulesV1::File>]
|
||||||
|
attr_accessor :files
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@files = args[:files] if args.key?(:files)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Position in the `Source` content including its line, column number, and an
|
||||||
|
# index of the `File` in the `Source` message. Used for debug purposes.
|
||||||
|
class SourcePosition
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Line number of the source fragment. 1-based.
|
||||||
|
# Corresponds to the JSON property `line`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :line
|
||||||
|
|
||||||
|
# First column on the source line associated with the source fragment.
|
||||||
|
# Corresponds to the JSON property `column`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :column
|
||||||
|
|
||||||
|
# Name of the `File`.
|
||||||
|
# Corresponds to the JSON property `fileName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :file_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@line = args[:line] if args.key?(:line)
|
||||||
|
@column = args[:column] if args.key?(:column)
|
||||||
|
@file_name = args[:file_name] if args.key?(:file_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Issues include warnings, errors, and deprecation notices.
|
||||||
|
class Issue
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The severity of the issue.
|
||||||
|
# Corresponds to the JSON property `severity`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :severity
|
||||||
|
|
||||||
|
# Short error description.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Position in the `Source` content including its line, column number, and an
|
||||||
|
# index of the `File` in the `Source` message. Used for debug purposes.
|
||||||
|
# Corresponds to the JSON property `sourcePosition`
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
|
||||||
|
attr_accessor :source_position
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@severity = args[:severity] if args.key?(:severity)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@source_position = args[:source_position] if args.key?(:source_position)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The request for FirebaseRulesService.TestRuleset.
|
||||||
|
class TestRulesetRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# `Source` is one or more `File` messages comprising a logical set of rules.
|
||||||
|
# Corresponds to the JSON property `source`
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::Source]
|
||||||
|
attr_accessor :source
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@source = args[:source] if args.key?(:source)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# `Ruleset` is an immutable copy of `Source` with a globally unique identifier
|
||||||
|
# and a creation time.
|
||||||
|
class Ruleset
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# `Source` is one or more `File` messages comprising a logical set of rules.
|
||||||
|
# Corresponds to the JSON property `source`
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::Source]
|
||||||
|
attr_accessor :source
|
||||||
|
|
||||||
|
# Time the `Ruleset` was created.
|
||||||
|
# Output only.
|
||||||
|
# Corresponds to the JSON property `createTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :create_time
|
||||||
|
|
||||||
|
# Name of the `Ruleset`. The ruleset_id is auto generated by the service.
|
||||||
|
# Format: `projects/`project_id`/rulesets/`ruleset_id``
|
||||||
|
# Output only.
|
||||||
|
# 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)
|
||||||
|
@source = args[:source] if args.key?(:source)
|
||||||
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response for FirebaseRulesService.ListReleases.
|
||||||
|
class ListReleasesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of `Release` instances.
|
||||||
|
# Corresponds to the JSON property `releases`
|
||||||
|
# @return [Array<Google::Apis::FirebaserulesV1::Release>]
|
||||||
|
attr_accessor :releases
|
||||||
|
|
||||||
|
# The pagination token to retrieve the next page of results. If the value is
|
||||||
|
# empty, no further results remain.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@releases = args[:releases] if args.key?(:releases)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a service-defined function call that was invoked during test
|
||||||
|
# execution.
|
||||||
|
class FunctionCall
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The arguments that were provided to the function.
|
||||||
|
# Corresponds to the JSON property `args`
|
||||||
|
# @return [Array<Object>]
|
||||||
|
attr_accessor :args
|
||||||
|
|
||||||
|
# Name of the function invoked.
|
||||||
|
# Corresponds to the JSON property `function`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :function
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@args = args[:args] if args.key?(:args)
|
||||||
|
@function = args[:function] if args.key?(:function)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# `File` containing source content.
|
||||||
|
class File
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# File name.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Textual Content.
|
||||||
|
# Corresponds to the JSON property `content`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :content
|
||||||
|
|
||||||
|
# Fingerprint (e.g. github sha) associated with the `File`.
|
||||||
|
# Corresponds to the JSON property `fingerprint`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :fingerprint
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@content = args[:content] if args.key?(:content)
|
||||||
|
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a
|
||||||
|
# `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`.
|
||||||
|
class Release
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Time the release was created.
|
||||||
|
# Output only.
|
||||||
|
# Corresponds to the JSON property `createTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :create_time
|
||||||
|
|
||||||
|
# Time the release was updated.
|
||||||
|
# Output only.
|
||||||
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_time
|
||||||
|
|
||||||
|
# Resource name for the `Release`.
|
||||||
|
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`
|
||||||
|
# which affords developers a great deal of flexibility in mapping the name
|
||||||
|
# to the style that best fits their existing development practices. For
|
||||||
|
# example, a name could refer to an environment, an app, a version, or some
|
||||||
|
# combination of three.
|
||||||
|
# In the table below, for the project name `projects/foo`, the following
|
||||||
|
# relative release paths show how flat and structured names might be chosen
|
||||||
|
# to match a desired development / deployment strategy.
|
||||||
|
# Use Case | Flat Name | Structured Name
|
||||||
|
# -------------|---------------------|----------------
|
||||||
|
# Environments | releases/qa | releases/qa
|
||||||
|
# Apps | releases/app1_qa | releases/app1/qa
|
||||||
|
# Versions | releases/app1_v2_qa | releases/app1/v2/qa
|
||||||
|
# The delimiter between the release name path elements can be almost anything
|
||||||
|
# and it should work equally well with the release name list filter, but in
|
||||||
|
# many ways the structured paths provide a clearer picture of the
|
||||||
|
# relationship between `Release` instances.
|
||||||
|
# Format: `projects/`project_id`/releases/`release_id``
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must
|
||||||
|
# exist the `Release` to be created.
|
||||||
|
# Corresponds to the JSON property `rulesetName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ruleset_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response for FirebaseRulesService.TestRuleset.
|
||||||
|
class TestRulesetResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Syntactic and semantic `Source` issues of varying severity. Issues of
|
||||||
|
# `ERROR` severity will prevent tests from executing.
|
||||||
|
# Corresponds to the JSON property `issues`
|
||||||
|
# @return [Array<Google::Apis::FirebaserulesV1::Issue>]
|
||||||
|
attr_accessor :issues
|
||||||
|
|
||||||
|
# The set of test results given the test cases in the `TestSuite`.
|
||||||
|
# The results will appear in the same order as the test cases appear in the
|
||||||
|
# `TestSuite`.
|
||||||
|
# Corresponds to the JSON property `testResults`
|
||||||
|
# @return [Array<Google::Apis::FirebaserulesV1::TestResult>]
|
||||||
|
attr_accessor :test_results
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@issues = args[:issues] if args.key?(:issues)
|
||||||
|
@test_results = args[:test_results] if args.key?(:test_results)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Test result message containing the state of the test as well as a
|
||||||
|
# description and source position for test failures.
|
||||||
|
class TestResult
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The set of function calls made to service-defined methods.
|
||||||
|
# Function calls are included in the order in which they are encountered
|
||||||
|
# during evaluation, are provided for both mocked and unmocked functions,
|
||||||
|
# and included on the response regardless of the test `state`.
|
||||||
|
# Corresponds to the JSON property `functionCalls`
|
||||||
|
# @return [Array<Google::Apis::FirebaserulesV1::FunctionCall>]
|
||||||
|
attr_accessor :function_calls
|
||||||
|
|
||||||
|
# State of the test.
|
||||||
|
# Corresponds to the JSON property `state`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :state
|
||||||
|
|
||||||
|
# Debug messages related to test execution issues encountered during
|
||||||
|
# evaluation.
|
||||||
|
# Debug messages may be related to too many or too few invocations of
|
||||||
|
# function mocks or to runtime errors that occur during evaluation.
|
||||||
|
# For example: ```Unable to read variable [name: "resource"]```
|
||||||
|
# Corresponds to the JSON property `debugMessages`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :debug_messages
|
||||||
|
|
||||||
|
# Position in the `Source` content including its line, column number, and an
|
||||||
|
# index of the `File` in the `Source` message. Used for debug purposes.
|
||||||
|
# Corresponds to the JSON property `errorPosition`
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
|
||||||
|
attr_accessor :error_position
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@function_calls = args[:function_calls] if args.key?(:function_calls)
|
||||||
|
@state = args[:state] if args.key?(:state)
|
||||||
|
@debug_messages = args[:debug_messages] if args.key?(:debug_messages)
|
||||||
|
@error_position = args[:error_position] if args.key?(:error_position)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response for FirebaseRulesService.ListRulesets.
|
||||||
|
class ListRulesetsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of `Ruleset` instances.
|
||||||
|
# Corresponds to the JSON property `rulesets`
|
||||||
|
# @return [Array<Google::Apis::FirebaserulesV1::Ruleset>]
|
||||||
|
attr_accessor :rulesets
|
||||||
|
|
||||||
|
# The pagination token to retrieve the next page of results. If the value is
|
||||||
|
# empty, no further results remain.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@rulesets = args[:rulesets] if args.key?(:rulesets)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A generic empty message that you can re-use to avoid defining duplicated
|
||||||
|
# empty messages in your APIs. A typical example is to use it as the request
|
||||||
|
# or the response type of an API method. For instance:
|
||||||
|
# service Foo `
|
||||||
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||||
|
# `
|
||||||
|
# The JSON representation for `Empty` is empty JSON object ````.
|
||||||
|
class Empty
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,222 @@
|
||||||
|
# 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 FirebaserulesV1
|
||||||
|
|
||||||
|
class Source
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourcePosition
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Issue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestRulesetRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Ruleset
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListReleasesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FunctionCall
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class File
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Release
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestRulesetResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestResult
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListRulesetsResponse
|
||||||
|
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 Source
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :files, as: 'files', class: Google::Apis::FirebaserulesV1::File, decorator: Google::Apis::FirebaserulesV1::File::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourcePosition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line, as: 'line'
|
||||||
|
property :column, as: 'column'
|
||||||
|
property :file_name, as: 'fileName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Issue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :severity, as: 'severity'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestRulesetRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Ruleset
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
|
||||||
|
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListReleasesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FunctionCall
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :args, as: 'args'
|
||||||
|
property :function, as: 'function'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class File
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :content, as: 'content'
|
||||||
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Release
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :ruleset_name, as: 'rulesetName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestRulesetResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation
|
||||||
|
|
||||||
|
collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestResult
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
|
||||||
|
|
||||||
|
property :state, as: 'state'
|
||||||
|
collection :debug_messages, as: 'debugMessages'
|
||||||
|
property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListRulesetsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :rulesets, as: 'rulesets', class: Google::Apis::FirebaserulesV1::Ruleset, decorator: Google::Apis::FirebaserulesV1::Ruleset::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,495 @@
|
||||||
|
# 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 FirebaserulesV1
|
||||||
|
# Firebase Rules API
|
||||||
|
#
|
||||||
|
# Creates and manages rules that determine when a Firebase Rules-enabled service
|
||||||
|
# should permit a request.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/firebaserules_v1'
|
||||||
|
#
|
||||||
|
# Firebaserules = Google::Apis::FirebaserulesV1 # Alias the module
|
||||||
|
# service = Firebaserules::FirebaseRulesService.new
|
||||||
|
#
|
||||||
|
# @see https://firebase.google.com/docs/storage/security
|
||||||
|
class FirebaseRulesService < 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://firebaserules.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Test `Source` for syntactic and semantic correctness. Issues present, if
|
||||||
|
# any, will be returned to the caller with a description, severity, and
|
||||||
|
# source location.
|
||||||
|
# The test method may be executed with `Source` or a `Ruleset` name.
|
||||||
|
# Passing `Source` is useful for unit testing new rules. Passing a `Ruleset`
|
||||||
|
# name is useful for regression testing an existing rule.
|
||||||
|
# The following is an example of `Source` that permits users to upload images
|
||||||
|
# to a bucket bearing their user id and matching the correct metadata:
|
||||||
|
# _*Example*_
|
||||||
|
# // Users are allowed to subscribe and unsubscribe to the blog.
|
||||||
|
# service firebase.storage `
|
||||||
|
# match /users/`userId`/images/`imageName` `
|
||||||
|
# allow write: if userId == request.auth.uid
|
||||||
|
# && (imageName.matches('*.png$')
|
||||||
|
# || imageName.matches('*.jpg$'))
|
||||||
|
# && resource.mimeType.matches('^image/')
|
||||||
|
# `
|
||||||
|
# `
|
||||||
|
# @param [String] name
|
||||||
|
# Tests may either provide `source` or a `Ruleset` resource name.
|
||||||
|
# For tests against `source`, the resource name must refer to the project:
|
||||||
|
# Format: `projects/`project_id``
|
||||||
|
# For tests against a `Ruleset`, this must be the `Ruleset` resource name:
|
||||||
|
# Format: `projects/`project_id`/rulesets/`ruleset_id``
|
||||||
|
# @param [Google::Apis::FirebaserulesV1::TestRulesetRequest] test_ruleset_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::FirebaserulesV1::TestRulesetResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::TestRulesetResponse]
|
||||||
|
#
|
||||||
|
# @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 test_project_ruleset(name, test_ruleset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:test', options)
|
||||||
|
command.request_representation = Google::Apis::FirebaserulesV1::TestRulesetRequest::Representation
|
||||||
|
command.request_object = test_ruleset_request_object
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::TestRulesetResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::TestRulesetResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# Delete a `Release` by resource name.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the `Release` to delete.
|
||||||
|
# Format: `projects/`project_id`/releases/`release_id``
|
||||||
|
# @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::FirebaserulesV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::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_project_release(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::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
|
||||||
|
|
||||||
|
# Get a `Release` by name.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name of the `Release`.
|
||||||
|
# Format: `projects/`project_id`/releases/`release_id``
|
||||||
|
# @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::FirebaserulesV1::Release] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::Release]
|
||||||
|
#
|
||||||
|
# @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_project_release(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::Release
|
||||||
|
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
|
||||||
|
|
||||||
|
# List the `Release` values for a project. This list may optionally be
|
||||||
|
# filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any
|
||||||
|
# combination thereof.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the project.
|
||||||
|
# Format: `projects/`project_id``
|
||||||
|
# @param [String] filter
|
||||||
|
# `Release` filter. The list method supports filters with restrictions on the
|
||||||
|
# `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`.
|
||||||
|
# Example 1: A filter of 'name=prod*' might return `Release`s with names
|
||||||
|
# within 'projects/foo' prefixed with 'prod':
|
||||||
|
# Name | Ruleset Name
|
||||||
|
# ------------------------------|-------------
|
||||||
|
# projects/foo/releases/prod | projects/foo/rulesets/uuid1234
|
||||||
|
# projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234
|
||||||
|
# projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888
|
||||||
|
# Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only
|
||||||
|
# `Release` instances for 'projects/foo' with names prefixed with 'prod'
|
||||||
|
# referring to the same `Ruleset` name of 'uuid1234':
|
||||||
|
# Name | Ruleset Name
|
||||||
|
# ------------------------------|-------------
|
||||||
|
# projects/foo/releases/prod | projects/foo/rulesets/1234
|
||||||
|
# projects/foo/releases/prod/v1 | projects/foo/rulesets/1234
|
||||||
|
# In the examples, the filter parameters refer to the search filters are
|
||||||
|
# relative to the project. Fully qualified prefixed may also be used. e.g.
|
||||||
|
# `test_suite_name=projects/foo/testsuites/uuid1`
|
||||||
|
# @param [String] page_token
|
||||||
|
# Next page token for the next batch of `Release` instances.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Page size to load. Maximum of 100. Defaults to 10.
|
||||||
|
# Note: `page_size` is just a hint and the service may choose to load fewer
|
||||||
|
# than `page_size` results due to the size of the output. To traverse all of
|
||||||
|
# the releases, the caller should iterate until the `page_token` on the
|
||||||
|
# response is empty.
|
||||||
|
# @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::FirebaserulesV1::ListReleasesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::ListReleasesResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_releases(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/releases', options)
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::ListReleasesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::ListReleasesResponse
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update a `Release`.
|
||||||
|
# Only updates to the `ruleset_name` and `test_suite_name` fields will be
|
||||||
|
# honored. `Release` rename is not supported. To create a `Release` use the
|
||||||
|
# CreateRelease method.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the `Release`.
|
||||||
|
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`
|
||||||
|
# which affords developers a great deal of flexibility in mapping the name
|
||||||
|
# to the style that best fits their existing development practices. For
|
||||||
|
# example, a name could refer to an environment, an app, a version, or some
|
||||||
|
# combination of three.
|
||||||
|
# In the table below, for the project name `projects/foo`, the following
|
||||||
|
# relative release paths show how flat and structured names might be chosen
|
||||||
|
# to match a desired development / deployment strategy.
|
||||||
|
# Use Case | Flat Name | Structured Name
|
||||||
|
# -------------|---------------------|----------------
|
||||||
|
# Environments | releases/qa | releases/qa
|
||||||
|
# Apps | releases/app1_qa | releases/app1/qa
|
||||||
|
# Versions | releases/app1_v2_qa | releases/app1/v2/qa
|
||||||
|
# The delimiter between the release name path elements can be almost anything
|
||||||
|
# and it should work equally well with the release name list filter, but in
|
||||||
|
# many ways the structured paths provide a clearer picture of the
|
||||||
|
# relationship between `Release` instances.
|
||||||
|
# Format: `projects/`project_id`/releases/`release_id``
|
||||||
|
# @param [Google::Apis::FirebaserulesV1::Release] release_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::FirebaserulesV1::Release] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::Release]
|
||||||
|
#
|
||||||
|
# @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 update_project_release(name, release_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::FirebaserulesV1::Release::Representation
|
||||||
|
command.request_object = release_object
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::Release
|
||||||
|
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
|
||||||
|
|
||||||
|
# Create a `Release`.
|
||||||
|
# Release names should reflect the developer's deployment practices. For
|
||||||
|
# example, the release name may include the environment name, application
|
||||||
|
# name, application version, or any other name meaningful to the developer.
|
||||||
|
# Once a `Release` refers to a `Ruleset`, the rules can be enforced by
|
||||||
|
# Firebase Rules-enabled services.
|
||||||
|
# More than one `Release` may be 'live' concurrently. Consider the following
|
||||||
|
# three `Release` names for `projects/foo` and the `Ruleset` to which they
|
||||||
|
# refer.
|
||||||
|
# Release Name | Ruleset Name
|
||||||
|
# --------------------------------|-------------
|
||||||
|
# projects/foo/releases/prod | projects/foo/rulesets/uuid123
|
||||||
|
# projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123
|
||||||
|
# projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456
|
||||||
|
# The table reflects the `Ruleset` rollout in progress. The `prod` and
|
||||||
|
# `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23`
|
||||||
|
# refers to a new `Ruleset`. The `Ruleset` reference for a `Release` may be
|
||||||
|
# updated using the UpdateRelease method.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the project which owns this `Release`.
|
||||||
|
# Format: `projects/`project_id``
|
||||||
|
# @param [Google::Apis::FirebaserulesV1::Release] release_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::FirebaserulesV1::Release] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::Release]
|
||||||
|
#
|
||||||
|
# @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 create_project_release(name, release_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}/releases', options)
|
||||||
|
command.request_representation = Google::Apis::FirebaserulesV1::Release::Representation
|
||||||
|
command.request_object = release_object
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::Release
|
||||||
|
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
|
||||||
|
|
||||||
|
# Get a `Ruleset` by name including the full `Source` contents.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the ruleset to get.
|
||||||
|
# Format: `projects/`project_id`/rulesets/`ruleset_id``
|
||||||
|
# @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::FirebaserulesV1::Ruleset] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::Ruleset]
|
||||||
|
#
|
||||||
|
# @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_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::Ruleset
|
||||||
|
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
|
||||||
|
|
||||||
|
# List `Ruleset` metadata only and optionally filter the results by `Ruleset`
|
||||||
|
# name.
|
||||||
|
# The full `Source` contents of a `Ruleset` may be retrieved with
|
||||||
|
# GetRuleset.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the project.
|
||||||
|
# Format: `projects/`project_id``
|
||||||
|
# @param [String] filter
|
||||||
|
# `Ruleset` filter. The list method supports filters with restrictions on
|
||||||
|
# `Ruleset.name`.
|
||||||
|
# Filters on `Ruleset.create_time` should use the `date` function which
|
||||||
|
# parses strings that conform to the RFC 3339 date/time specifications.
|
||||||
|
# Example: `create_time > date("2017-01-01") AND name=UUID-*`
|
||||||
|
# @param [String] page_token
|
||||||
|
# Next page token for loading the next batch of `Ruleset` instances.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Page size to load. Maximum of 100. Defaults to 10.
|
||||||
|
# Note: `page_size` is just a hint and the service may choose to load less
|
||||||
|
# than `page_size` due to the size of the output. To traverse all of the
|
||||||
|
# releases, caller should iterate until the `page_token` is empty.
|
||||||
|
# @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::FirebaserulesV1::ListRulesetsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::ListRulesetsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_rulesets(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/rulesets', options)
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::ListRulesetsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::ListRulesetsResponse
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Create a `Ruleset` from `Source`.
|
||||||
|
# The `Ruleset` is given a unique generated name which is returned to the
|
||||||
|
# caller. `Source` containing syntactic or semantics errors will result in an
|
||||||
|
# error response indicating the first error encountered. For a detailed view
|
||||||
|
# of `Source` issues, use TestRuleset.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for Project which owns this `Ruleset`.
|
||||||
|
# Format: `projects/`project_id``
|
||||||
|
# @param [Google::Apis::FirebaserulesV1::Ruleset] ruleset_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::FirebaserulesV1::Ruleset] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::Ruleset]
|
||||||
|
#
|
||||||
|
# @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 create_project_ruleset(name, ruleset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}/rulesets', options)
|
||||||
|
command.request_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
|
||||||
|
command.request_object = ruleset_object
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::Ruleset
|
||||||
|
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
|
||||||
|
|
||||||
|
# Delete a `Ruleset` by resource name.
|
||||||
|
# If the `Ruleset` is referenced by a `Release` the operation will fail.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the ruleset to delete.
|
||||||
|
# Format: `projects/`project_id`/rulesets/`ruleset_id``
|
||||||
|
# @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::FirebaserulesV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::FirebaserulesV1::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_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::FirebaserulesV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::FirebaserulesV1::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
|
||||||
|
|
||||||
|
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
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/genomics
|
# @see https://cloud.google.com/genomics
|
||||||
module GenomicsV1
|
module GenomicsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170322'
|
REVISION = '20170330'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/iam/
|
# @see https://cloud.google.com/iam/
|
||||||
module IamV1
|
module IamV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170317'
|
REVISION = '20170324'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -22,192 +22,6 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module IamV1
|
module IamV1
|
||||||
|
|
||||||
# The service account create request.
|
|
||||||
class CreateServiceAccountRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# A service account in the Identity and Access Management API.
|
|
||||||
# To create a service account, specify the `project_id` and the `account_id`
|
|
||||||
# for the account. The `account_id` is unique within the project, and is used
|
|
||||||
# to generate the service account email address and a stable
|
|
||||||
# `unique_id`.
|
|
||||||
# If the account already exists, the account's resource name is returned
|
|
||||||
# in util::Status's ResourceInfo.resource_name in the format of
|
|
||||||
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
|
|
||||||
# use the name in other methods to access the account.
|
|
||||||
# All other methods can identify the service account using the format
|
|
||||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
||||||
# Using `-` as a wildcard for the project will infer the project from
|
|
||||||
# the account. The `account` value can be the `email` address or the
|
|
||||||
# `unique_id` of the service account.
|
|
||||||
# Corresponds to the JSON property `serviceAccount`
|
|
||||||
# @return [Google::Apis::IamV1::ServiceAccount]
|
|
||||||
attr_accessor :service_account
|
|
||||||
|
|
||||||
# Required. The account id that is used to generate the service account
|
|
||||||
# email address and a stable unique id. It is unique within a project,
|
|
||||||
# must be 6-30 characters long, and match the regular expression
|
|
||||||
# `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
|
|
||||||
# Corresponds to the JSON property `accountId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :account_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@service_account = args[:service_account] if args.key?(:service_account)
|
|
||||||
@account_id = args[:account_id] if args.key?(:account_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The service account list response.
|
|
||||||
class ListServiceAccountsResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# To retrieve the next page of results, set
|
|
||||||
# ListServiceAccountsRequest.page_token
|
|
||||||
# to this value.
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :next_page_token
|
|
||||||
|
|
||||||
# The list of matching service accounts.
|
|
||||||
# Corresponds to the JSON property `accounts`
|
|
||||||
# @return [Array<Google::Apis::IamV1::ServiceAccount>]
|
|
||||||
attr_accessor :accounts
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
||||||
@accounts = args[:accounts] if args.key?(:accounts)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The grantable role query response.
|
|
||||||
class QueryGrantableRolesResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The list of matching roles.
|
|
||||||
# Corresponds to the JSON property `roles`
|
|
||||||
# @return [Array<Google::Apis::IamV1::Role>]
|
|
||||||
attr_accessor :roles
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@roles = args[:roles] if args.key?(:roles)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The service account sign blob request.
|
|
||||||
class SignBlobRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The bytes to sign.
|
|
||||||
# Corresponds to the JSON property `bytesToSign`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :bytes_to_sign
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@bytes_to_sign = args[:bytes_to_sign] if args.key?(:bytes_to_sign)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# A role in the Identity and Access Management API.
|
|
||||||
class Role
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Optional. A human-readable title for the role. Typically this
|
|
||||||
# is limited to 100 UTF-8 bytes.
|
|
||||||
# Corresponds to the JSON property `title`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :title
|
|
||||||
|
|
||||||
# The name of the role.
|
|
||||||
# When Role is used in CreateRole, the role name must not be set.
|
|
||||||
# When Role is used in output and other input such as UpdateRole, the role
|
|
||||||
# name is the complete path, e.g., roles/logging.viewer for curated roles
|
|
||||||
# and organizations/`ORGANIZATION_ID`/roles/logging.viewer for custom roles.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# Optional. A human-readable description for the role.
|
|
||||||
# Corresponds to the JSON property `description`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :description
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@title = args[:title] if args.key?(:title)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@description = args[:description] if args.key?(:description)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Request message for `SetIamPolicy` method.
|
|
||||||
class SetIamPolicyRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
|
||||||
# specify access control policies for Cloud Platform resources.
|
|
||||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
|
||||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
|
||||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
|
||||||
# defined by IAM.
|
|
||||||
# **Example**
|
|
||||||
# `
|
|
||||||
# "bindings": [
|
|
||||||
# `
|
|
||||||
# "role": "roles/owner",
|
|
||||||
# "members": [
|
|
||||||
# "user:mike@example.com",
|
|
||||||
# "group:admins@example.com",
|
|
||||||
# "domain:google.com",
|
|
||||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
|
||||||
# ]
|
|
||||||
# `,
|
|
||||||
# `
|
|
||||||
# "role": "roles/viewer",
|
|
||||||
# "members": ["user:sean@example.com"]
|
|
||||||
# `
|
|
||||||
# ]
|
|
||||||
# `
|
|
||||||
# For a description of IAM and its features, see the
|
|
||||||
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
||||||
# Corresponds to the JSON property `policy`
|
|
||||||
# @return [Google::Apis::IamV1::Policy]
|
|
||||||
attr_accessor :policy
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@policy = args[:policy] if args.key?(:policy)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Associates `members` with a `role`.
|
# Associates `members` with a `role`.
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -248,17 +62,66 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The grantable role query request.
|
# A service account in the Identity and Access Management API.
|
||||||
class QueryGrantableRolesRequest
|
# To create a service account, specify the `project_id` and the `account_id`
|
||||||
|
# for the account. The `account_id` is unique within the project, and is used
|
||||||
|
# to generate the service account email address and a stable
|
||||||
|
# `unique_id`.
|
||||||
|
# If the account already exists, the account's resource name is returned
|
||||||
|
# in util::Status's ResourceInfo.resource_name in the format of
|
||||||
|
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
|
||||||
|
# use the name in other methods to access the account.
|
||||||
|
# All other methods can identify the service account using the format
|
||||||
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||||
|
# Using `-` as a wildcard for the project will infer the project from
|
||||||
|
# the account. The `account` value can be the `email` address or the
|
||||||
|
# `unique_id` of the service account.
|
||||||
|
class ServiceAccount
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Required. The full resource name to query from the list of grantable roles.
|
# The resource name of the service account in the following format:
|
||||||
# The name follows the Google Cloud Platform resource format.
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||||
# For example, a Cloud Platform project with id `my-project` will be named
|
# Requests using `-` as a wildcard for the project will infer the project
|
||||||
# `//cloudresourcemanager.googleapis.com/projects/my-project`.
|
# from the `account` and the `account` value can be the `email` address or
|
||||||
# Corresponds to the JSON property `fullResourceName`
|
# the `unique_id` of the service account.
|
||||||
|
# In responses the resource name will always be in the format
|
||||||
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :full_resource_name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# @OutputOnly The email address of the service account.
|
||||||
|
# Corresponds to the JSON property `email`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :email
|
||||||
|
|
||||||
|
# @OutputOnly The id of the project that owns the service account.
|
||||||
|
# Corresponds to the JSON property `projectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :project_id
|
||||||
|
|
||||||
|
# @OutputOnly The unique and stable id of the service account.
|
||||||
|
# Corresponds to the JSON property `uniqueId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :unique_id
|
||||||
|
|
||||||
|
# @OutputOnly. The OAuth2 client id for the service account.
|
||||||
|
# This is used in conjunction with the OAuth2 clientconfig API to make
|
||||||
|
# three legged OAuth2 (3LO) flows to access the data of Google users.
|
||||||
|
# Corresponds to the JSON property `oauth2ClientId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :oauth2_client_id
|
||||||
|
|
||||||
|
# Optional. A user-specified description of the service account. Must be
|
||||||
|
# fewer than 100 UTF-8 bytes.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# Used to perform a consistent read-modify-write.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -266,7 +129,13 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@email = args[:email] if args.key?(:email)
|
||||||
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
|
@unique_id = args[:unique_id] if args.key?(:unique_id)
|
||||||
|
@oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -289,66 +158,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A service account in the Identity and Access Management API.
|
# The grantable role query request.
|
||||||
# To create a service account, specify the `project_id` and the `account_id`
|
class QueryGrantableRolesRequest
|
||||||
# for the account. The `account_id` is unique within the project, and is used
|
|
||||||
# to generate the service account email address and a stable
|
|
||||||
# `unique_id`.
|
|
||||||
# If the account already exists, the account's resource name is returned
|
|
||||||
# in util::Status's ResourceInfo.resource_name in the format of
|
|
||||||
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
|
|
||||||
# use the name in other methods to access the account.
|
|
||||||
# All other methods can identify the service account using the format
|
|
||||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
||||||
# Using `-` as a wildcard for the project will infer the project from
|
|
||||||
# the account. The `account` value can be the `email` address or the
|
|
||||||
# `unique_id` of the service account.
|
|
||||||
class ServiceAccount
|
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# @OutputOnly The email address of the service account.
|
# Required. The full resource name to query from the list of grantable roles.
|
||||||
# Corresponds to the JSON property `email`
|
# The name follows the Google Cloud Platform resource format.
|
||||||
|
# For example, a Cloud Platform project with id `my-project` will be named
|
||||||
|
# `//cloudresourcemanager.googleapis.com/projects/my-project`.
|
||||||
|
# Corresponds to the JSON property `fullResourceName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :email
|
attr_accessor :full_resource_name
|
||||||
|
|
||||||
# The resource name of the service account in the following format:
|
|
||||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
||||||
# Requests using `-` as a wildcard for the project will infer the project
|
|
||||||
# from the `account` and the `account` value can be the `email` address or
|
|
||||||
# the `unique_id` of the service account.
|
|
||||||
# In responses the resource name will always be in the format
|
|
||||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# @OutputOnly The id of the project that owns the service account.
|
|
||||||
# Corresponds to the JSON property `projectId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :project_id
|
|
||||||
|
|
||||||
# @OutputOnly. The OAuth2 client id for the service account.
|
|
||||||
# This is used in conjunction with the OAuth2 clientconfig API to make
|
|
||||||
# three legged OAuth2 (3LO) flows to access the data of Google users.
|
|
||||||
# Corresponds to the JSON property `oauth2ClientId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :oauth2_client_id
|
|
||||||
|
|
||||||
# @OutputOnly The unique and stable id of the service account.
|
|
||||||
# Corresponds to the JSON property `uniqueId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :unique_id
|
|
||||||
|
|
||||||
# Optional. A user-specified description of the service account. Must be
|
|
||||||
# fewer than 100 UTF-8 bytes.
|
|
||||||
# Corresponds to the JSON property `displayName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :display_name
|
|
||||||
|
|
||||||
# Used to perform a consistent read-modify-write.
|
|
||||||
# Corresponds to the JSON property `etag`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :etag
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -356,13 +176,26 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@email = args[:email] if args.key?(:email)
|
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
|
||||||
@name = args[:name] if args.key?(:name)
|
end
|
||||||
@project_id = args[:project_id] if args.key?(:project_id)
|
end
|
||||||
@oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
|
|
||||||
@unique_id = args[:unique_id] if args.key?(:unique_id)
|
# The service account keys list response.
|
||||||
@display_name = args[:display_name] if args.key?(:display_name)
|
class ListServiceAccountKeysResponse
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The public keys for the service account.
|
||||||
|
# Corresponds to the JSON property `keys`
|
||||||
|
# @return [Array<Google::Apis::IamV1::ServiceAccountKey>]
|
||||||
|
attr_accessor :keys
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@keys = args[:keys] if args.key?(:keys)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -386,25 +219,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The service account keys list response.
|
|
||||||
class ListServiceAccountKeysResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The public keys for the service account.
|
|
||||||
# Corresponds to the JSON property `keys`
|
|
||||||
# @return [Array<Google::Apis::IamV1::ServiceAccountKey>]
|
|
||||||
attr_accessor :keys
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@keys = args[:keys] if args.key?(:keys)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Represents a service account key.
|
# Represents a service account key.
|
||||||
# A service account has two sets of key-pairs: user-managed, and
|
# A service account has two sets of key-pairs: user-managed, and
|
||||||
# system-managed.
|
# system-managed.
|
||||||
|
@ -420,20 +234,6 @@ module Google
|
||||||
class ServiceAccountKey
|
class ServiceAccountKey
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The key can be used after this timestamp.
|
|
||||||
# Corresponds to the JSON property `validAfterTime`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :valid_after_time
|
|
||||||
|
|
||||||
# The output format for the private key.
|
|
||||||
# Only provided in `CreateServiceAccountKey` responses, not
|
|
||||||
# in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
|
|
||||||
# Google never exposes system-managed private keys, and never retains
|
|
||||||
# user-managed private keys.
|
|
||||||
# Corresponds to the JSON property `privateKeyType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :private_key_type
|
|
||||||
|
|
||||||
# The private key data. Only provided in `CreateServiceAccountKey`
|
# The private key data. Only provided in `CreateServiceAccountKey`
|
||||||
# responses.
|
# responses.
|
||||||
# Corresponds to the JSON property `privateKeyData`
|
# Corresponds to the JSON property `privateKeyData`
|
||||||
|
@ -461,19 +261,33 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :key_algorithm
|
attr_accessor :key_algorithm
|
||||||
|
|
||||||
|
# The output format for the private key.
|
||||||
|
# Only provided in `CreateServiceAccountKey` responses, not
|
||||||
|
# in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
|
||||||
|
# Google never exposes system-managed private keys, and never retains
|
||||||
|
# user-managed private keys.
|
||||||
|
# Corresponds to the JSON property `privateKeyType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :private_key_type
|
||||||
|
|
||||||
|
# The key can be used after this timestamp.
|
||||||
|
# Corresponds to the JSON property `validAfterTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :valid_after_time
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
|
|
||||||
@private_key_type = args[:private_key_type] if args.key?(:private_key_type)
|
|
||||||
@private_key_data = args[:private_key_data] if args.key?(:private_key_data)
|
@private_key_data = args[:private_key_data] if args.key?(:private_key_data)
|
||||||
@public_key_data = args[:public_key_data] if args.key?(:public_key_data)
|
@public_key_data = args[:public_key_data] if args.key?(:public_key_data)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time)
|
@valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time)
|
||||||
@key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
|
@key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
|
||||||
|
@private_key_type = args[:private_key_type] if args.key?(:private_key_type)
|
||||||
|
@valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -505,17 +319,19 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Request message for `TestIamPermissions` method.
|
# The service account sign JWT response.
|
||||||
class TestIamPermissionsRequest
|
class SignJwtResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The set of permissions to check for the `resource`. Permissions with
|
# The id of the key used to sign the JWT.
|
||||||
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
# Corresponds to the JSON property `keyId`
|
||||||
# information see
|
# @return [String]
|
||||||
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
attr_accessor :key_id
|
||||||
# Corresponds to the JSON property `permissions`
|
|
||||||
# @return [Array<String>]
|
# The signed JWT.
|
||||||
attr_accessor :permissions
|
# Corresponds to the JSON property `signedJwt`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :signed_jwt
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -523,7 +339,8 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@permissions = args[:permissions] if args.key?(:permissions)
|
@key_id = args[:key_id] if args.key?(:key_id)
|
||||||
|
@signed_jwt = args[:signed_jwt] if args.key?(:signed_jwt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -552,19 +369,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The service account sign JWT response.
|
# Request message for `TestIamPermissions` method.
|
||||||
class SignJwtResponse
|
class TestIamPermissionsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The id of the key used to sign the JWT.
|
# The set of permissions to check for the `resource`. Permissions with
|
||||||
# Corresponds to the JSON property `keyId`
|
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
||||||
# @return [String]
|
# information see
|
||||||
attr_accessor :key_id
|
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
||||||
|
# Corresponds to the JSON property `permissions`
|
||||||
# The signed JWT.
|
# @return [Array<String>]
|
||||||
# Corresponds to the JSON property `signedJwt`
|
attr_accessor :permissions
|
||||||
# @return [String]
|
|
||||||
attr_accessor :signed_jwt
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -572,8 +387,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@key_id = args[:key_id] if args.key?(:key_id)
|
@permissions = args[:permissions] if args.key?(:permissions)
|
||||||
@signed_jwt = args[:signed_jwt] if args.key?(:signed_jwt)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -606,6 +420,11 @@ module Google
|
||||||
class Policy
|
class Policy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Version of the `Policy`. The default version is 0.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
# Associates a list of `members` to a `role`.
|
# Associates a list of `members` to a `role`.
|
||||||
# Multiple `bindings` must not be specified for the same `role`.
|
# Multiple `bindings` must not be specified for the same `role`.
|
||||||
# `bindings` with no members will result in an error.
|
# `bindings` with no members will result in an error.
|
||||||
|
@ -626,20 +445,15 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
|
||||||
# Version of the `Policy`. The default version is 0.
|
|
||||||
# Corresponds to the JSON property `version`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :version
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
@bindings = args[:bindings] if args.key?(:bindings)
|
@bindings = args[:bindings] if args.key?(:bindings)
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
@version = args[:version] if args.key?(:version)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -688,6 +502,13 @@ module Google
|
||||||
class BindingDelta
|
class BindingDelta
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A single identity requesting access for a Cloud Platform resource.
|
||||||
|
# Follows the same format of Binding.members.
|
||||||
|
# Required
|
||||||
|
# Corresponds to the JSON property `member`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :member
|
||||||
|
|
||||||
# Role that is assigned to `members`.
|
# Role that is assigned to `members`.
|
||||||
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||||
# Required
|
# Required
|
||||||
|
@ -701,22 +522,15 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :action
|
attr_accessor :action
|
||||||
|
|
||||||
# A single identity requesting access for a Cloud Platform resource.
|
|
||||||
# Follows the same format of Binding.members.
|
|
||||||
# Required
|
|
||||||
# Corresponds to the JSON property `member`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :member
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@member = args[:member] if args.key?(:member)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
@action = args[:action] if args.key?(:action)
|
@action = args[:action] if args.key?(:action)
|
||||||
@member = args[:member] if args.key?(:member)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -738,6 +552,192 @@ module Google
|
||||||
@binding_deltas = args[:binding_deltas] if args.key?(:binding_deltas)
|
@binding_deltas = args[:binding_deltas] if args.key?(:binding_deltas)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The service account list response.
|
||||||
|
class ListServiceAccountsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# To retrieve the next page of results, set
|
||||||
|
# ListServiceAccountsRequest.page_token
|
||||||
|
# to this value.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The list of matching service accounts.
|
||||||
|
# Corresponds to the JSON property `accounts`
|
||||||
|
# @return [Array<Google::Apis::IamV1::ServiceAccount>]
|
||||||
|
attr_accessor :accounts
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
@accounts = args[:accounts] if args.key?(:accounts)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The service account create request.
|
||||||
|
class CreateServiceAccountRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. The account id that is used to generate the service account
|
||||||
|
# email address and a stable unique id. It is unique within a project,
|
||||||
|
# must be 6-30 characters long, and match the regular expression
|
||||||
|
# `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
|
||||||
|
# Corresponds to the JSON property `accountId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :account_id
|
||||||
|
|
||||||
|
# A service account in the Identity and Access Management API.
|
||||||
|
# To create a service account, specify the `project_id` and the `account_id`
|
||||||
|
# for the account. The `account_id` is unique within the project, and is used
|
||||||
|
# to generate the service account email address and a stable
|
||||||
|
# `unique_id`.
|
||||||
|
# If the account already exists, the account's resource name is returned
|
||||||
|
# in util::Status's ResourceInfo.resource_name in the format of
|
||||||
|
# projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`. The caller can
|
||||||
|
# use the name in other methods to access the account.
|
||||||
|
# All other methods can identify the service account using the format
|
||||||
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||||
|
# Using `-` as a wildcard for the project will infer the project from
|
||||||
|
# the account. The `account` value can be the `email` address or the
|
||||||
|
# `unique_id` of the service account.
|
||||||
|
# Corresponds to the JSON property `serviceAccount`
|
||||||
|
# @return [Google::Apis::IamV1::ServiceAccount]
|
||||||
|
attr_accessor :service_account
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@account_id = args[:account_id] if args.key?(:account_id)
|
||||||
|
@service_account = args[:service_account] if args.key?(:service_account)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The grantable role query response.
|
||||||
|
class QueryGrantableRolesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of matching roles.
|
||||||
|
# Corresponds to the JSON property `roles`
|
||||||
|
# @return [Array<Google::Apis::IamV1::Role>]
|
||||||
|
attr_accessor :roles
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@roles = args[:roles] if args.key?(:roles)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A role in the Identity and Access Management API.
|
||||||
|
class Role
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Optional. A human-readable title for the role. Typically this
|
||||||
|
# is limited to 100 UTF-8 bytes.
|
||||||
|
# Corresponds to the JSON property `title`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :title
|
||||||
|
|
||||||
|
# The name of the role.
|
||||||
|
# When Role is used in CreateRole, the role name must not be set.
|
||||||
|
# When Role is used in output and other input such as UpdateRole, the role
|
||||||
|
# name is the complete path, e.g., roles/logging.viewer for curated roles
|
||||||
|
# and organizations/`ORGANIZATION_ID`/roles/logging.viewer for custom roles.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Optional. A human-readable description for the role.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@title = args[:title] if args.key?(:title)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The service account sign blob request.
|
||||||
|
class SignBlobRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The bytes to sign.
|
||||||
|
# Corresponds to the JSON property `bytesToSign`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :bytes_to_sign
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@bytes_to_sign = args[:bytes_to_sign] if args.key?(:bytes_to_sign)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for `SetIamPolicy` method.
|
||||||
|
class SetIamPolicyRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||||
|
# specify access control policies for Cloud Platform resources.
|
||||||
|
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
||||||
|
# `members` to a `role`, where the members can be user accounts, Google groups,
|
||||||
|
# Google domains, and service accounts. A `role` is a named list of permissions
|
||||||
|
# defined by IAM.
|
||||||
|
# **Example**
|
||||||
|
# `
|
||||||
|
# "bindings": [
|
||||||
|
# `
|
||||||
|
# "role": "roles/owner",
|
||||||
|
# "members": [
|
||||||
|
# "user:mike@example.com",
|
||||||
|
# "group:admins@example.com",
|
||||||
|
# "domain:google.com",
|
||||||
|
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
||||||
|
# ]
|
||||||
|
# `,
|
||||||
|
# `
|
||||||
|
# "role": "roles/viewer",
|
||||||
|
# "members": ["user:sean@example.com"]
|
||||||
|
# `
|
||||||
|
# ]
|
||||||
|
# `
|
||||||
|
# For a description of IAM and its features, see the
|
||||||
|
# [IAM developer's guide](https://cloud.google.com/iam).
|
||||||
|
# Corresponds to the JSON property `policy`
|
||||||
|
# @return [Google::Apis::IamV1::Policy]
|
||||||
|
attr_accessor :policy
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@policy = args[:policy] if args.key?(:policy)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,67 +22,25 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module IamV1
|
module IamV1
|
||||||
|
|
||||||
class CreateServiceAccountRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListServiceAccountsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class QueryGrantableRolesResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SignBlobRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Role
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Binding
|
class Binding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class QueryGrantableRolesRequest
|
|
||||||
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 ServiceAccount
|
class ServiceAccount
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestIamPermissionsResponse
|
class Empty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class QueryGrantableRolesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -94,6 +52,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TestIamPermissionsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ServiceAccountKey
|
class ServiceAccountKey
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -106,7 +70,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestIamPermissionsRequest
|
class SignJwtResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -118,7 +82,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SignJwtResponse
|
class TestIamPermissionsRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -154,54 +118,40 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class CreateServiceAccountRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
|
||||||
|
|
||||||
property :account_id, as: 'accountId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListServiceAccountsResponse
|
class ListServiceAccountsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CreateServiceAccountRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class QueryGrantableRolesResponse
|
class QueryGrantableRolesResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
|
|
||||||
class SignBlobRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Role
|
class Role
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :title, as: 'title'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :name, as: 'name'
|
|
||||||
property :description, as: 'description'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SignBlobRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
class SetIamPolicyRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Binding
|
class Binding
|
||||||
|
@ -212,10 +162,16 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class QueryGrantableRolesRequest
|
class ServiceAccount
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :full_resource_name, as: 'fullResourceName'
|
property :name, as: 'name'
|
||||||
|
property :email, as: 'email'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :unique_id, as: 'uniqueId'
|
||||||
|
property :oauth2_client_id, as: 'oauth2ClientId'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -225,23 +181,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ServiceAccount
|
class QueryGrantableRolesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :email, as: 'email'
|
property :full_resource_name, as: 'fullResourceName'
|
||||||
property :name, as: 'name'
|
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
property :oauth2_client_id, as: 'oauth2ClientId'
|
|
||||||
property :unique_id, as: 'uniqueId'
|
|
||||||
property :display_name, as: 'displayName'
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TestIamPermissionsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :permissions, as: 'permissions'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -253,16 +196,23 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TestIamPermissionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ServiceAccountKey
|
class ServiceAccountKey
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :valid_after_time, as: 'validAfterTime'
|
|
||||||
property :private_key_type, as: 'privateKeyType'
|
|
||||||
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
||||||
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :valid_before_time, as: 'validBeforeTime'
|
property :valid_before_time, as: 'validBeforeTime'
|
||||||
property :key_algorithm, as: 'keyAlgorithm'
|
property :key_algorithm, as: 'keyAlgorithm'
|
||||||
|
property :private_key_type, as: 'privateKeyType'
|
||||||
|
property :valid_after_time, as: 'validAfterTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -274,10 +224,11 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestIamPermissionsRequest
|
class SignJwtResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :permissions, as: 'permissions'
|
property :key_id, as: 'keyId'
|
||||||
|
property :signed_jwt, as: 'signedJwt'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -289,21 +240,20 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SignJwtResponse
|
class TestIamPermissionsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :key_id, as: 'keyId'
|
collection :permissions, as: 'permissions'
|
||||||
property :signed_jwt, as: 'signedJwt'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Policy
|
class Policy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :version, as: 'version'
|
||||||
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
||||||
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
property :etag, :base64 => true, as: 'etag'
|
||||||
property :version, as: 'version'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -325,9 +275,9 @@ module Google
|
||||||
class BindingDelta
|
class BindingDelta
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :member, as: 'member'
|
||||||
property :role, as: 'role'
|
property :role, as: 'role'
|
||||||
property :action, as: 'action'
|
property :action, as: 'action'
|
||||||
property :member, as: 'member'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -338,6 +288,56 @@ module Google
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListServiceAccountsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CreateServiceAccountRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :account_id, as: 'accountId'
|
||||||
|
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class QueryGrantableRolesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Role
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :title, as: 'title'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :description, as: 'description'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SignBlobRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetIamPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,10 +48,13 @@ module Google
|
||||||
super('https://iam.googleapis.com/', '')
|
super('https://iam.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Queries roles that can be granted on a particular resource.
|
# Gets a ServiceAccount.
|
||||||
# A role is grantable if it can be used as the role in a binding for a policy
|
# @param [String] name
|
||||||
# for that resource.
|
# The resource name of the service account in the following format:
|
||||||
# @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||||
|
# Using `-` as a wildcard for the project will infer the project from
|
||||||
|
# the account. The `account` value can be the `email` address or the
|
||||||
|
# `unique_id` of the service account.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -61,20 +64,19 @@ module Google
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
# @yield [result, err] Result & error if block supplied
|
# @yield [result, err] Result & error if block supplied
|
||||||
# @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
|
# @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
|
# @return [Google::Apis::IamV1::ServiceAccount]
|
||||||
#
|
#
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
|
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
||||||
command.request_object = query_grantable_roles_request_object
|
command.response_class = Google::Apis::IamV1::ServiceAccount
|
||||||
command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
|
command.params['name'] = name unless name.nil?
|
||||||
command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -191,43 +193,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Signs a blob using a service account's system-managed private key.
|
|
||||||
# @param [String] name
|
|
||||||
# The resource name of the service account in the following format:
|
|
||||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
||||||
# Using `-` as a wildcard for the project will infer the project from
|
|
||||||
# the account. The `account` value can be the `email` address or the
|
|
||||||
# `unique_id` of the service account.
|
|
||||||
# @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_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::IamV1::SignBlobResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::IamV1::SignBlobResponse]
|
|
||||||
#
|
|
||||||
# @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 sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
|
|
||||||
command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
|
|
||||||
command.request_object = sign_blob_request_object
|
|
||||||
command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
|
|
||||||
command.response_class = Google::Apis::IamV1::SignBlobResponse
|
|
||||||
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 ServiceAccounts for a project.
|
# Lists ServiceAccounts for a project.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The resource name of the project associated with the service
|
# Required. The resource name of the project associated with the service
|
||||||
|
@ -269,6 +234,43 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Signs a blob using a service account's system-managed private key.
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the service account in the following format:
|
||||||
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||||
|
# Using `-` as a wildcard for the project will infer the project from
|
||||||
|
# the account. The `account` value can be the `email` address or the
|
||||||
|
# `unique_id` of the service account.
|
||||||
|
# @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_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::IamV1::SignBlobResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::IamV1::SignBlobResponse]
|
||||||
|
#
|
||||||
|
# @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 sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
|
||||||
|
command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
|
||||||
|
command.request_object = sign_blob_request_object
|
||||||
|
command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
|
||||||
|
command.response_class = Google::Apis::IamV1::SignBlobResponse
|
||||||
|
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
|
||||||
|
|
||||||
# Creates a ServiceAccount
|
# Creates a ServiceAccount
|
||||||
# and returns it.
|
# and returns it.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
|
@ -304,6 +306,41 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sets the IAM access control policy for a
|
||||||
|
# ServiceAccount.
|
||||||
|
# @param [String] resource
|
||||||
|
# REQUIRED: The resource for which the policy is being specified.
|
||||||
|
# See the operation documentation for the appropriate value for this field.
|
||||||
|
# @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_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::IamV1::Policy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::IamV1::Policy]
|
||||||
|
#
|
||||||
|
# @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 set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
|
||||||
|
command.request_object = set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::IamV1::Policy::Representation
|
||||||
|
command.response_class = Google::Apis::IamV1::Policy
|
||||||
|
command.params['resource'] = resource unless resource.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Signs a JWT using a service account's system-managed private key.
|
# Signs a JWT using a service account's system-managed private key.
|
||||||
# If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
|
# If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
|
||||||
# an expiry time of one hour by default. If you request an expiry time of
|
# an expiry time of one hour by default. If you request an expiry time of
|
||||||
|
@ -344,41 +381,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sets the IAM access control policy for a
|
|
||||||
# ServiceAccount.
|
|
||||||
# @param [String] resource
|
|
||||||
# REQUIRED: The resource for which the policy is being specified.
|
|
||||||
# See the operation documentation for the appropriate value for this field.
|
|
||||||
# @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_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::IamV1::Policy] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::IamV1::Policy]
|
|
||||||
#
|
|
||||||
# @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 set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
||||||
command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
|
|
||||||
command.request_object = set_iam_policy_request_object
|
|
||||||
command.response_representation = Google::Apis::IamV1::Policy::Representation
|
|
||||||
command.response_class = Google::Apis::IamV1::Policy
|
|
||||||
command.params['resource'] = resource unless resource.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns the IAM access control policy for a
|
# Returns the IAM access control policy for a
|
||||||
# ServiceAccount.
|
# ServiceAccount.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
|
@ -411,40 +413,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets a ServiceAccount.
|
|
||||||
# @param [String] name
|
|
||||||
# The resource name of the service account in the following format:
|
|
||||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
||||||
# Using `-` as a wildcard for the project will infer the project from
|
|
||||||
# the account. The `account` value can be the `email` address or the
|
|
||||||
# `unique_id` of the service account.
|
|
||||||
# @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::IamV1::ServiceAccount] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::IamV1::ServiceAccount]
|
|
||||||
#
|
|
||||||
# @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_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
|
||||||
command.response_class = Google::Apis::IamV1::ServiceAccount
|
|
||||||
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 ServiceAccountKey.
|
# Deletes a ServiceAccountKey.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The resource name of the service account key in the following format:
|
# The resource name of the service account key in the following format:
|
||||||
|
@ -595,6 +563,38 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Queries roles that can be granted on a particular resource.
|
||||||
|
# A role is grantable if it can be used as the role in a binding for a policy
|
||||||
|
# for that resource.
|
||||||
|
# @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_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::IamV1::QueryGrantableRolesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
|
||||||
|
#
|
||||||
|
# @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 query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
|
||||||
|
command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
|
||||||
|
command.request_object = query_grantable_roles_request_object
|
||||||
|
command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
|
|
|
@ -32,16 +32,16 @@ module Google
|
||||||
#
|
#
|
||||||
# @see https://developers.google.com/knowledge-graph/
|
# @see https://developers.google.com/knowledge-graph/
|
||||||
class KgsearchService < Google::Apis::Core::BaseService
|
class KgsearchService < 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]
|
# @return [String]
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
attr_accessor :quota_user
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
# @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
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://kgsearch.googleapis.com/', '')
|
super('https://kgsearch.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
@ -49,15 +49,6 @@ module Google
|
||||||
# Searches Knowledge Graph for entities that match the constraints.
|
# Searches Knowledge Graph for entities that match the constraints.
|
||||||
# A list of matched entities will be returned in response, which will be in
|
# A list of matched entities will be returned in response, which will be in
|
||||||
# JSON-LD format and compatible with http://schema.org
|
# JSON-LD format and compatible with http://schema.org
|
||||||
# @param [Array<String>, String] languages
|
|
||||||
# The list of language codes (defined in ISO 693) to run the query with,
|
|
||||||
# e.g. 'en'.
|
|
||||||
# @param [Array<String>, String] ids
|
|
||||||
# The list of entity id to be used for search instead of query string.
|
|
||||||
# To specify multiple ids in the HTTP request, repeat the parameter in the
|
|
||||||
# URL as in ...?ids=A&ids=B
|
|
||||||
# @param [Fixnum] limit
|
|
||||||
# Limits the number of entities to be returned.
|
|
||||||
# @param [Boolean] prefix
|
# @param [Boolean] prefix
|
||||||
# Enables prefix match against names and aliases of entities
|
# Enables prefix match against names and aliases of entities
|
||||||
# @param [String] query
|
# @param [String] query
|
||||||
|
@ -68,6 +59,15 @@ module Google
|
||||||
# returned entities will contain one or more of these types.
|
# returned entities will contain one or more of these types.
|
||||||
# @param [Boolean] indent
|
# @param [Boolean] indent
|
||||||
# Enables indenting of json results.
|
# Enables indenting of json results.
|
||||||
|
# @param [Array<String>, String] languages
|
||||||
|
# The list of language codes (defined in ISO 693) to run the query with,
|
||||||
|
# e.g. 'en'.
|
||||||
|
# @param [Array<String>, String] ids
|
||||||
|
# The list of entity id to be used for search instead of query string.
|
||||||
|
# To specify multiple ids in the HTTP request, repeat the parameter in the
|
||||||
|
# URL as in ...?ids=A&ids=B
|
||||||
|
# @param [Fixnum] limit
|
||||||
|
# Limits the number of entities to be returned.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
@ -85,17 +85,17 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def search_entities(languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, indent: nil, quota_user: nil, fields: nil, options: nil, &block)
|
def search_entities(prefix: nil, query: nil, types: nil, indent: nil, languages: nil, ids: nil, limit: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/entities:search', options)
|
command = make_simple_command(:get, 'v1/entities:search', options)
|
||||||
command.response_representation = Google::Apis::KgsearchV1::SearchResponse::Representation
|
command.response_representation = Google::Apis::KgsearchV1::SearchResponse::Representation
|
||||||
command.response_class = Google::Apis::KgsearchV1::SearchResponse
|
command.response_class = Google::Apis::KgsearchV1::SearchResponse
|
||||||
command.query['languages'] = languages unless languages.nil?
|
|
||||||
command.query['ids'] = ids unless ids.nil?
|
|
||||||
command.query['limit'] = limit unless limit.nil?
|
|
||||||
command.query['prefix'] = prefix unless prefix.nil?
|
command.query['prefix'] = prefix unless prefix.nil?
|
||||||
command.query['query'] = query unless query.nil?
|
command.query['query'] = query unless query.nil?
|
||||||
command.query['types'] = types unless types.nil?
|
command.query['types'] = types unless types.nil?
|
||||||
command.query['indent'] = indent unless indent.nil?
|
command.query['indent'] = indent unless indent.nil?
|
||||||
|
command.query['languages'] = languages unless languages.nil?
|
||||||
|
command.query['ids'] = ids unless ids.nil?
|
||||||
|
command.query['limit'] = limit unless limit.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -104,8 +104,8 @@ module Google
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
command.query['key'] = key unless key.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
# 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/language_v1/service.rb'
|
||||||
|
require 'google/apis/language_v1/classes.rb'
|
||||||
|
require 'google/apis/language_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Cloud Natural Language API
|
||||||
|
#
|
||||||
|
# Google Cloud Natural Language API provides natural language understanding
|
||||||
|
# technologies to developers. Examples include sentiment analysis, entity
|
||||||
|
# recognition, and text annotations.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/natural-language/
|
||||||
|
module LanguageV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170320'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,757 @@
|
||||||
|
# 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 LanguageV1
|
||||||
|
|
||||||
|
# Represents a phrase in the text that is a known entity, such as
|
||||||
|
# a person, an organization, or location. The API associates information, such
|
||||||
|
# as salience and mentions, with entities.
|
||||||
|
class Entity
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The mentions of this entity in the input document. The API currently
|
||||||
|
# supports proper noun mentions.
|
||||||
|
# Corresponds to the JSON property `mentions`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::EntityMention>]
|
||||||
|
attr_accessor :mentions
|
||||||
|
|
||||||
|
# The representative name for the entity.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The entity type.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
# Metadata associated with the entity.
|
||||||
|
# Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
|
||||||
|
# available. The associated keys are "wikipedia_url" and "mid", respectively.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# The salience score associated with the entity in the [0, 1.0] range.
|
||||||
|
# The salience score for an entity provides information about the
|
||||||
|
# importance or centrality of that entity to the entire document text.
|
||||||
|
# Scores closer to 0 are less salient, while scores closer to 1.0 are highly
|
||||||
|
# salient.
|
||||||
|
# Corresponds to the JSON property `salience`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :salience
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@mentions = args[:mentions] if args.key?(:mentions)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@salience = args[:salience] if args.key?(:salience)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The syntax analysis response message.
|
||||||
|
class AnalyzeSyntaxResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Sentences in the input document.
|
||||||
|
# Corresponds to the JSON property `sentences`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::Sentence>]
|
||||||
|
attr_accessor :sentences
|
||||||
|
|
||||||
|
# Tokens, along with their syntactic information, in the input document.
|
||||||
|
# Corresponds to the JSON property `tokens`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::Token>]
|
||||||
|
attr_accessor :tokens
|
||||||
|
|
||||||
|
# The language of the text, which will be the same as the language specified
|
||||||
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
|
# See `Document.language` field for more details.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@sentences = args[:sentences] if args.key?(:sentences)
|
||||||
|
@tokens = args[:tokens] if args.key?(:tokens)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The request message for the text annotation API, which can perform multiple
|
||||||
|
# analysis types (sentiment, entities, and syntax) in one call.
|
||||||
|
class AnnotateTextRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The encoding type used by the API to calculate offsets.
|
||||||
|
# Corresponds to the JSON property `encodingType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encoding_type
|
||||||
|
|
||||||
|
# ################################################################ #
|
||||||
|
# Represents the input to API methods.
|
||||||
|
# Corresponds to the JSON property `document`
|
||||||
|
# @return [Google::Apis::LanguageV1::Document]
|
||||||
|
attr_accessor :document
|
||||||
|
|
||||||
|
# All available features for sentiment, syntax, and semantic analysis.
|
||||||
|
# Setting each one to true will enable that specific analysis for the input.
|
||||||
|
# Corresponds to the JSON property `features`
|
||||||
|
# @return [Google::Apis::LanguageV1::Features]
|
||||||
|
attr_accessor :features
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||||
|
@document = args[:document] if args.key?(:document)
|
||||||
|
@features = args[:features] if args.key?(:features)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The sentiment analysis request message.
|
||||||
|
class AnalyzeSentimentRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The encoding type used by the API to calculate sentence offsets.
|
||||||
|
# Corresponds to the JSON property `encodingType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encoding_type
|
||||||
|
|
||||||
|
# ################################################################ #
|
||||||
|
# Represents the input to API methods.
|
||||||
|
# Corresponds to the JSON property `document`
|
||||||
|
# @return [Google::Apis::LanguageV1::Document]
|
||||||
|
attr_accessor :document
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||||
|
@document = args[:document] if args.key?(:document)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The text annotations response message.
|
||||||
|
class AnnotateTextResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Sentences in the input document. Populated if the user enables
|
||||||
|
# AnnotateTextRequest.Features.extract_syntax.
|
||||||
|
# Corresponds to the JSON property `sentences`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::Sentence>]
|
||||||
|
attr_accessor :sentences
|
||||||
|
|
||||||
|
# Tokens, along with their syntactic information, in the input document.
|
||||||
|
# Populated if the user enables
|
||||||
|
# AnnotateTextRequest.Features.extract_syntax.
|
||||||
|
# Corresponds to the JSON property `tokens`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::Token>]
|
||||||
|
attr_accessor :tokens
|
||||||
|
|
||||||
|
# Entities, along with their semantic information, in the input document.
|
||||||
|
# Populated if the user enables
|
||||||
|
# AnnotateTextRequest.Features.extract_entities.
|
||||||
|
# Corresponds to the JSON property `entities`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::Entity>]
|
||||||
|
attr_accessor :entities
|
||||||
|
|
||||||
|
# Represents the feeling associated with the entire text or entities in
|
||||||
|
# the text.
|
||||||
|
# Corresponds to the JSON property `documentSentiment`
|
||||||
|
# @return [Google::Apis::LanguageV1::Sentiment]
|
||||||
|
attr_accessor :document_sentiment
|
||||||
|
|
||||||
|
# The language of the text, which will be the same as the language specified
|
||||||
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
|
# See `Document.language` field for more details.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@sentences = args[:sentences] if args.key?(:sentences)
|
||||||
|
@tokens = args[:tokens] if args.key?(:tokens)
|
||||||
|
@entities = args[:entities] if args.key?(:entities)
|
||||||
|
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents dependency parse tree information for a token. (For more
|
||||||
|
# information on dependency labels, see
|
||||||
|
# http://www.aclweb.org/anthology/P13-2017
|
||||||
|
class DependencyEdge
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The parse label for the token.
|
||||||
|
# Corresponds to the JSON property `label`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :label
|
||||||
|
|
||||||
|
# Represents the head of this token in the dependency tree.
|
||||||
|
# This is the index of the token which has an arc going to this token.
|
||||||
|
# The index is the position of the token in the array of tokens returned
|
||||||
|
# by the API method. If this token is a root token, then the
|
||||||
|
# `head_token_index` is its own index.
|
||||||
|
# Corresponds to the JSON property `headTokenIndex`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :head_token_index
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@label = args[:label] if args.key?(:label)
|
||||||
|
@head_token_index = args[:head_token_index] if args.key?(:head_token_index)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents an output piece of text.
|
||||||
|
class TextSpan
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The API calculates the beginning offset of the content in the original
|
||||||
|
# document according to the EncodingType specified in the API request.
|
||||||
|
# Corresponds to the JSON property `beginOffset`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :begin_offset
|
||||||
|
|
||||||
|
# The content of the output text.
|
||||||
|
# Corresponds to the JSON property `content`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :content
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@begin_offset = args[:begin_offset] if args.key?(:begin_offset)
|
||||||
|
@content = args[:content] if args.key?(:content)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents the smallest syntactic building block of the text.
|
||||||
|
class Token
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents part of speech information for a token. Parts of speech
|
||||||
|
# are as defined in
|
||||||
|
# http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
|
||||||
|
# Corresponds to the JSON property `partOfSpeech`
|
||||||
|
# @return [Google::Apis::LanguageV1::PartOfSpeech]
|
||||||
|
attr_accessor :part_of_speech
|
||||||
|
|
||||||
|
# Represents an output piece of text.
|
||||||
|
# Corresponds to the JSON property `text`
|
||||||
|
# @return [Google::Apis::LanguageV1::TextSpan]
|
||||||
|
attr_accessor :text
|
||||||
|
|
||||||
|
# Represents dependency parse tree information for a token. (For more
|
||||||
|
# information on dependency labels, see
|
||||||
|
# http://www.aclweb.org/anthology/P13-2017
|
||||||
|
# Corresponds to the JSON property `dependencyEdge`
|
||||||
|
# @return [Google::Apis::LanguageV1::DependencyEdge]
|
||||||
|
attr_accessor :dependency_edge
|
||||||
|
|
||||||
|
# [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
||||||
|
# Corresponds to the JSON property `lemma`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :lemma
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
|
||||||
|
@text = args[:text] if args.key?(:text)
|
||||||
|
@dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
|
||||||
|
@lemma = args[:lemma] if args.key?(:lemma)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` which can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting purpose.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
class Status
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There will be a
|
||||||
|
# common set of message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<Hash<String,Object>>]
|
||||||
|
attr_accessor :details
|
||||||
|
|
||||||
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# A developer-facing error message, which should be in English. Any
|
||||||
|
# user-facing error message should be localized and sent in the
|
||||||
|
# google.rpc.Status.details field, or localized by the client.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@details = args[:details] if args.key?(:details)
|
||||||
|
@code = args[:code] if args.key?(:code)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# All available features for sentiment, syntax, and semantic analysis.
|
||||||
|
# Setting each one to true will enable that specific analysis for the input.
|
||||||
|
class Features
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Extract entities.
|
||||||
|
# Corresponds to the JSON property `extractEntities`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :extract_entities
|
||||||
|
alias_method :extract_entities?, :extract_entities
|
||||||
|
|
||||||
|
# Extract syntax information.
|
||||||
|
# Corresponds to the JSON property `extractSyntax`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :extract_syntax
|
||||||
|
alias_method :extract_syntax?, :extract_syntax
|
||||||
|
|
||||||
|
# Extract document-level sentiment.
|
||||||
|
# Corresponds to the JSON property `extractDocumentSentiment`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :extract_document_sentiment
|
||||||
|
alias_method :extract_document_sentiment?, :extract_document_sentiment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
||||||
|
@extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
|
||||||
|
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a mention for an entity in the text. Currently, proper noun
|
||||||
|
# mentions are supported.
|
||||||
|
class EntityMention
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents an output piece of text.
|
||||||
|
# Corresponds to the JSON property `text`
|
||||||
|
# @return [Google::Apis::LanguageV1::TextSpan]
|
||||||
|
attr_accessor :text
|
||||||
|
|
||||||
|
# The type of the entity mention.
|
||||||
|
# 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)
|
||||||
|
@text = args[:text] if args.key?(:text)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a sentence in the input document.
|
||||||
|
class Sentence
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents an output piece of text.
|
||||||
|
# Corresponds to the JSON property `text`
|
||||||
|
# @return [Google::Apis::LanguageV1::TextSpan]
|
||||||
|
attr_accessor :text
|
||||||
|
|
||||||
|
# Represents the feeling associated with the entire text or entities in
|
||||||
|
# the text.
|
||||||
|
# Corresponds to the JSON property `sentiment`
|
||||||
|
# @return [Google::Apis::LanguageV1::Sentiment]
|
||||||
|
attr_accessor :sentiment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@text = args[:text] if args.key?(:text)
|
||||||
|
@sentiment = args[:sentiment] if args.key?(:sentiment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# ################################################################ #
|
||||||
|
# Represents the input to API methods.
|
||||||
|
class Document
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The language of the document (if not specified, the language is
|
||||||
|
# automatically detected). Both ISO and BCP-47 language codes are
|
||||||
|
# accepted.<br>
|
||||||
|
# **Current Language Restrictions:**
|
||||||
|
# * Only English, Spanish, and Japanese textual content are supported.
|
||||||
|
# If the language (either specified by the caller or automatically detected)
|
||||||
|
# is not supported by the called API method, an `INVALID_ARGUMENT` error
|
||||||
|
# is returned.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
|
||||||
|
# returns an `INVALID_ARGUMENT` error.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
# The content of the input in string format.
|
||||||
|
# Corresponds to the JSON property `content`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :content
|
||||||
|
|
||||||
|
# The Google Cloud Storage URI where the file content is located.
|
||||||
|
# This URI must be of the form: gs://bucket_name/object_name. For more
|
||||||
|
# details, see https://cloud.google.com/storage/docs/reference-uris.
|
||||||
|
# NOTE: Cloud Storage object versioning is not supported.
|
||||||
|
# Corresponds to the JSON property `gcsContentUri`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :gcs_content_uri
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@content = args[:content] if args.key?(:content)
|
||||||
|
@gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents the feeling associated with the entire text or entities in
|
||||||
|
# the text.
|
||||||
|
class Sentiment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Sentiment score between -1.0 (negative sentiment) and 1.0
|
||||||
|
# (positive sentiment).
|
||||||
|
# Corresponds to the JSON property `score`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :score
|
||||||
|
|
||||||
|
# A non-negative number in the [0, +inf) range, which represents
|
||||||
|
# the absolute magnitude of sentiment regardless of score (positive or
|
||||||
|
# negative).
|
||||||
|
# Corresponds to the JSON property `magnitude`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :magnitude
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@score = args[:score] if args.key?(:score)
|
||||||
|
@magnitude = args[:magnitude] if args.key?(:magnitude)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The entity analysis request message.
|
||||||
|
class AnalyzeEntitiesRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The encoding type used by the API to calculate offsets.
|
||||||
|
# Corresponds to the JSON property `encodingType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encoding_type
|
||||||
|
|
||||||
|
# ################################################################ #
|
||||||
|
# Represents the input to API methods.
|
||||||
|
# Corresponds to the JSON property `document`
|
||||||
|
# @return [Google::Apis::LanguageV1::Document]
|
||||||
|
attr_accessor :document
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||||
|
@document = args[:document] if args.key?(:document)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents part of speech information for a token. Parts of speech
|
||||||
|
# are as defined in
|
||||||
|
# http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
|
||||||
|
class PartOfSpeech
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The grammatical case.
|
||||||
|
# Corresponds to the JSON property `case`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :case
|
||||||
|
|
||||||
|
# The grammatical tense.
|
||||||
|
# Corresponds to the JSON property `tense`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :tense
|
||||||
|
|
||||||
|
# The grammatical reciprocity.
|
||||||
|
# Corresponds to the JSON property `reciprocity`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :reciprocity
|
||||||
|
|
||||||
|
# The grammatical form.
|
||||||
|
# Corresponds to the JSON property `form`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :form
|
||||||
|
|
||||||
|
# The grammatical number.
|
||||||
|
# Corresponds to the JSON property `number`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :number
|
||||||
|
|
||||||
|
# The grammatical voice.
|
||||||
|
# Corresponds to the JSON property `voice`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :voice
|
||||||
|
|
||||||
|
# The grammatical aspect.
|
||||||
|
# Corresponds to the JSON property `aspect`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :aspect
|
||||||
|
|
||||||
|
# The grammatical mood.
|
||||||
|
# Corresponds to the JSON property `mood`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :mood
|
||||||
|
|
||||||
|
# The part of speech tag.
|
||||||
|
# Corresponds to the JSON property `tag`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :tag
|
||||||
|
|
||||||
|
# The grammatical gender.
|
||||||
|
# Corresponds to the JSON property `gender`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :gender
|
||||||
|
|
||||||
|
# The grammatical person.
|
||||||
|
# Corresponds to the JSON property `person`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :person
|
||||||
|
|
||||||
|
# The grammatical properness.
|
||||||
|
# Corresponds to the JSON property `proper`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :proper
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@case = args[:case] if args.key?(:case)
|
||||||
|
@tense = args[:tense] if args.key?(:tense)
|
||||||
|
@reciprocity = args[:reciprocity] if args.key?(:reciprocity)
|
||||||
|
@form = args[:form] if args.key?(:form)
|
||||||
|
@number = args[:number] if args.key?(:number)
|
||||||
|
@voice = args[:voice] if args.key?(:voice)
|
||||||
|
@aspect = args[:aspect] if args.key?(:aspect)
|
||||||
|
@mood = args[:mood] if args.key?(:mood)
|
||||||
|
@tag = args[:tag] if args.key?(:tag)
|
||||||
|
@gender = args[:gender] if args.key?(:gender)
|
||||||
|
@person = args[:person] if args.key?(:person)
|
||||||
|
@proper = args[:proper] if args.key?(:proper)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The syntax analysis request message.
|
||||||
|
class AnalyzeSyntaxRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The encoding type used by the API to calculate offsets.
|
||||||
|
# Corresponds to the JSON property `encodingType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encoding_type
|
||||||
|
|
||||||
|
# ################################################################ #
|
||||||
|
# Represents the input to API methods.
|
||||||
|
# Corresponds to the JSON property `document`
|
||||||
|
# @return [Google::Apis::LanguageV1::Document]
|
||||||
|
attr_accessor :document
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||||
|
@document = args[:document] if args.key?(:document)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The sentiment analysis response message.
|
||||||
|
class AnalyzeSentimentResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents the feeling associated with the entire text or entities in
|
||||||
|
# the text.
|
||||||
|
# Corresponds to the JSON property `documentSentiment`
|
||||||
|
# @return [Google::Apis::LanguageV1::Sentiment]
|
||||||
|
attr_accessor :document_sentiment
|
||||||
|
|
||||||
|
# The language of the text, which will be the same as the language specified
|
||||||
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
|
# See `Document.language` field for more details.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
# The sentiment for all the sentences in the document.
|
||||||
|
# Corresponds to the JSON property `sentences`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::Sentence>]
|
||||||
|
attr_accessor :sentences
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
@sentences = args[:sentences] if args.key?(:sentences)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The entity analysis response message.
|
||||||
|
class AnalyzeEntitiesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The language of the text, which will be the same as the language specified
|
||||||
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
|
# See `Document.language` field for more details.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
# The recognized entities in the input document.
|
||||||
|
# Corresponds to the JSON property `entities`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1::Entity>]
|
||||||
|
attr_accessor :entities
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
@entities = args[:entities] if args.key?(:entities)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,338 @@
|
||||||
|
# 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 LanguageV1
|
||||||
|
|
||||||
|
class Entity
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSyntaxResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnnotateTextRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSentimentRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnnotateTextResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DependencyEdge
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TextSpan
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Token
|
||||||
|
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 Features
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class EntityMention
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Sentence
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Document
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Sentiment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeEntitiesRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PartOfSpeech
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSyntaxRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSentimentResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeEntitiesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Entity
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1::EntityMention, decorator: Google::Apis::LanguageV1::EntityMention::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :type, as: 'type'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :salience, as: 'salience'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSyntaxResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation
|
||||||
|
|
||||||
|
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation
|
||||||
|
|
||||||
|
property :language, as: 'language'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnnotateTextRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :encoding_type, as: 'encodingType'
|
||||||
|
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||||
|
|
||||||
|
property :features, as: 'features', class: Google::Apis::LanguageV1::Features, decorator: Google::Apis::LanguageV1::Features::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSentimentRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :encoding_type, as: 'encodingType'
|
||||||
|
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnnotateTextResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation
|
||||||
|
|
||||||
|
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1::Token, decorator: Google::Apis::LanguageV1::Token::Representation
|
||||||
|
|
||||||
|
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
|
||||||
|
|
||||||
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||||
|
|
||||||
|
property :language, as: 'language'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DependencyEdge
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :label, as: 'label'
|
||||||
|
property :head_token_index, as: 'headTokenIndex'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TextSpan
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :begin_offset, as: 'beginOffset'
|
||||||
|
property :content, as: 'content'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Token
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1::PartOfSpeech, decorator: Google::Apis::LanguageV1::PartOfSpeech::Representation
|
||||||
|
|
||||||
|
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||||
|
|
||||||
|
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1::DependencyEdge, decorator: Google::Apis::LanguageV1::DependencyEdge::Representation
|
||||||
|
|
||||||
|
property :lemma, as: 'lemma'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :code, as: 'code'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Features
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :extract_entities, as: 'extractEntities'
|
||||||
|
property :extract_syntax, as: 'extractSyntax'
|
||||||
|
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class EntityMention
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||||
|
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Sentence
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||||
|
|
||||||
|
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Document
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :language, as: 'language'
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :content, as: 'content'
|
||||||
|
property :gcs_content_uri, as: 'gcsContentUri'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Sentiment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :score, as: 'score'
|
||||||
|
property :magnitude, as: 'magnitude'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeEntitiesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :encoding_type, as: 'encodingType'
|
||||||
|
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PartOfSpeech
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :case, as: 'case'
|
||||||
|
property :tense, as: 'tense'
|
||||||
|
property :reciprocity, as: 'reciprocity'
|
||||||
|
property :form, as: 'form'
|
||||||
|
property :number, as: 'number'
|
||||||
|
property :voice, as: 'voice'
|
||||||
|
property :aspect, as: 'aspect'
|
||||||
|
property :mood, as: 'mood'
|
||||||
|
property :tag, as: 'tag'
|
||||||
|
property :gender, as: 'gender'
|
||||||
|
property :person, as: 'person'
|
||||||
|
property :proper, as: 'proper'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSyntaxRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :encoding_type, as: 'encodingType'
|
||||||
|
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSentimentResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||||
|
|
||||||
|
property :language, as: 'language'
|
||||||
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1::Sentence, decorator: Google::Apis::LanguageV1::Sentence::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeEntitiesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :language, as: 'language'
|
||||||
|
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,185 @@
|
||||||
|
# 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 LanguageV1
|
||||||
|
# Google Cloud Natural Language API
|
||||||
|
#
|
||||||
|
# Google Cloud Natural Language API provides natural language understanding
|
||||||
|
# technologies to developers. Examples include sentiment analysis, entity
|
||||||
|
# recognition, and text annotations.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/language_v1'
|
||||||
|
#
|
||||||
|
# Language = Google::Apis::LanguageV1 # Alias the module
|
||||||
|
# service = Language::CloudNaturalLanguageService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/natural-language/
|
||||||
|
class CloudNaturalLanguageService < 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://language.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# A convenience method that provides all the features that analyzeSentiment,
|
||||||
|
# analyzeEntities, and analyzeSyntax provide in one call.
|
||||||
|
# @param [Google::Apis::LanguageV1::AnnotateTextRequest] annotate_text_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::LanguageV1::AnnotateTextResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LanguageV1::AnnotateTextResponse]
|
||||||
|
#
|
||||||
|
# @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 annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/documents:annotateText', options)
|
||||||
|
command.request_representation = Google::Apis::LanguageV1::AnnotateTextRequest::Representation
|
||||||
|
command.request_object = annotate_text_request_object
|
||||||
|
command.response_representation = Google::Apis::LanguageV1::AnnotateTextResponse::Representation
|
||||||
|
command.response_class = Google::Apis::LanguageV1::AnnotateTextResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Finds named entities (currently proper names and common nouns) in the text
|
||||||
|
# along with entity types, salience, mentions for each entity, and
|
||||||
|
# other properties.
|
||||||
|
# @param [Google::Apis::LanguageV1::AnalyzeEntitiesRequest] analyze_entities_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::LanguageV1::AnalyzeEntitiesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LanguageV1::AnalyzeEntitiesResponse]
|
||||||
|
#
|
||||||
|
# @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 analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/documents:analyzeEntities', options)
|
||||||
|
command.request_representation = Google::Apis::LanguageV1::AnalyzeEntitiesRequest::Representation
|
||||||
|
command.request_object = analyze_entities_request_object
|
||||||
|
command.response_representation = Google::Apis::LanguageV1::AnalyzeEntitiesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::LanguageV1::AnalyzeEntitiesResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Analyzes the syntax of the text and provides sentence boundaries and
|
||||||
|
# tokenization along with part of speech tags, dependency trees, and other
|
||||||
|
# properties.
|
||||||
|
# @param [Google::Apis::LanguageV1::AnalyzeSyntaxRequest] analyze_syntax_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::LanguageV1::AnalyzeSyntaxResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LanguageV1::AnalyzeSyntaxResponse]
|
||||||
|
#
|
||||||
|
# @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 analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/documents:analyzeSyntax', options)
|
||||||
|
command.request_representation = Google::Apis::LanguageV1::AnalyzeSyntaxRequest::Representation
|
||||||
|
command.request_object = analyze_syntax_request_object
|
||||||
|
command.response_representation = Google::Apis::LanguageV1::AnalyzeSyntaxResponse::Representation
|
||||||
|
command.response_class = Google::Apis::LanguageV1::AnalyzeSyntaxResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Analyzes the sentiment of the provided text.
|
||||||
|
# @param [Google::Apis::LanguageV1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::LanguageV1::AnalyzeSentimentResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LanguageV1::AnalyzeSentimentResponse]
|
||||||
|
#
|
||||||
|
# @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 analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/documents:analyzeSentiment', options)
|
||||||
|
command.request_representation = Google::Apis::LanguageV1::AnalyzeSentimentRequest::Representation
|
||||||
|
command.request_object = analyze_sentiment_request_object
|
||||||
|
command.response_representation = Google::Apis::LanguageV1::AnalyzeSentimentResponse::Representation
|
||||||
|
command.response_class = Google::Apis::LanguageV1::AnalyzeSentimentResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.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
|
|
@ -22,6 +22,147 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module LanguageV1beta1
|
module LanguageV1beta1
|
||||||
|
|
||||||
|
# The request message for the text annotation API, which can perform multiple
|
||||||
|
# analysis types (sentiment, entities, and syntax) in one call.
|
||||||
|
class AnnotateTextRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The encoding type used by the API to calculate offsets.
|
||||||
|
# Corresponds to the JSON property `encodingType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encoding_type
|
||||||
|
|
||||||
|
# ################################################################ #
|
||||||
|
# Represents the input to API methods.
|
||||||
|
# Corresponds to the JSON property `document`
|
||||||
|
# @return [Google::Apis::LanguageV1beta1::Document]
|
||||||
|
attr_accessor :document
|
||||||
|
|
||||||
|
# All available features for sentiment, syntax, and semantic analysis.
|
||||||
|
# Setting each one to true will enable that specific analysis for the input.
|
||||||
|
# Corresponds to the JSON property `features`
|
||||||
|
# @return [Google::Apis::LanguageV1beta1::Features]
|
||||||
|
attr_accessor :features
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||||
|
@document = args[:document] if args.key?(:document)
|
||||||
|
@features = args[:features] if args.key?(:features)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The text annotations response message.
|
||||||
|
class AnnotateTextResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The language of the text, which will be the same as the language specified
|
||||||
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
|
# See Document.language field for more details.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
# Sentences in the input document. Populated if the user enables
|
||||||
|
# AnnotateTextRequest.Features.extract_syntax.
|
||||||
|
# Corresponds to the JSON property `sentences`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
||||||
|
attr_accessor :sentences
|
||||||
|
|
||||||
|
# Tokens, along with their syntactic information, in the input document.
|
||||||
|
# Populated if the user enables
|
||||||
|
# AnnotateTextRequest.Features.extract_syntax.
|
||||||
|
# Corresponds to the JSON property `tokens`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1beta1::Token>]
|
||||||
|
attr_accessor :tokens
|
||||||
|
|
||||||
|
# Entities, along with their semantic information, in the input document.
|
||||||
|
# Populated if the user enables
|
||||||
|
# AnnotateTextRequest.Features.extract_entities.
|
||||||
|
# Corresponds to the JSON property `entities`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
|
||||||
|
attr_accessor :entities
|
||||||
|
|
||||||
|
# Represents the feeling associated with the entire text or entities in
|
||||||
|
# the text.
|
||||||
|
# Corresponds to the JSON property `documentSentiment`
|
||||||
|
# @return [Google::Apis::LanguageV1beta1::Sentiment]
|
||||||
|
attr_accessor :document_sentiment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
@sentences = args[:sentences] if args.key?(:sentences)
|
||||||
|
@tokens = args[:tokens] if args.key?(:tokens)
|
||||||
|
@entities = args[:entities] if args.key?(:entities)
|
||||||
|
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The sentiment analysis request message.
|
||||||
|
class AnalyzeSentimentRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The encoding type used by the API to calculate sentence offsets for the
|
||||||
|
# sentence sentiment.
|
||||||
|
# Corresponds to the JSON property `encodingType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encoding_type
|
||||||
|
|
||||||
|
# ################################################################ #
|
||||||
|
# Represents the input to API methods.
|
||||||
|
# Corresponds to the JSON property `document`
|
||||||
|
# @return [Google::Apis::LanguageV1beta1::Document]
|
||||||
|
attr_accessor :document
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||||
|
@document = args[:document] if args.key?(:document)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents dependency parse tree information for a token.
|
||||||
|
class DependencyEdge
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents the head of this token in the dependency tree.
|
||||||
|
# This is the index of the token which has an arc going to this token.
|
||||||
|
# The index is the position of the token in the array of tokens returned
|
||||||
|
# by the API method. If this token is a root token, then the
|
||||||
|
# `head_token_index` is its own index.
|
||||||
|
# Corresponds to the JSON property `headTokenIndex`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :head_token_index
|
||||||
|
|
||||||
|
# The parse label for the token.
|
||||||
|
# Corresponds to the JSON property `label`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :label
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@head_token_index = args[:head_token_index] if args.key?(:head_token_index)
|
||||||
|
@label = args[:label] if args.key?(:label)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Represents the smallest syntactic building block of the text.
|
# Represents the smallest syntactic building block of the text.
|
||||||
class Token
|
class Token
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -63,25 +204,25 @@ module Google
|
||||||
class TextSpan
|
class TextSpan
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The content of the output text.
|
|
||||||
# Corresponds to the JSON property `content`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :content
|
|
||||||
|
|
||||||
# The API calculates the beginning offset of the content in the original
|
# The API calculates the beginning offset of the content in the original
|
||||||
# document according to the EncodingType specified in the API request.
|
# document according to the EncodingType specified in the API request.
|
||||||
# Corresponds to the JSON property `beginOffset`
|
# Corresponds to the JSON property `beginOffset`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :begin_offset
|
attr_accessor :begin_offset
|
||||||
|
|
||||||
|
# The content of the output text.
|
||||||
|
# Corresponds to the JSON property `content`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :content
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@content = args[:content] if args.key?(:content)
|
|
||||||
@begin_offset = args[:begin_offset] if args.key?(:begin_offset)
|
@begin_offset = args[:begin_offset] if args.key?(:begin_offset)
|
||||||
|
@content = args[:content] if args.key?(:content)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -127,12 +268,6 @@ module Google
|
||||||
class Status
|
class Status
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# A list of messages that carry the error details. There will be a
|
|
||||||
# common set of message types for APIs to use.
|
|
||||||
# Corresponds to the JSON property `details`
|
|
||||||
# @return [Array<Hash<String,Object>>]
|
|
||||||
attr_accessor :details
|
|
||||||
|
|
||||||
# The status code, which should be an enum value of google.rpc.Code.
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
# Corresponds to the JSON property `code`
|
# Corresponds to the JSON property `code`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
|
@ -145,15 +280,56 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :message
|
attr_accessor :message
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There will be a
|
||||||
|
# common set of message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<Hash<String,Object>>]
|
||||||
|
attr_accessor :details
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@details = args[:details] if args.key?(:details)
|
|
||||||
@code = args[:code] if args.key?(:code)
|
@code = args[:code] if args.key?(:code)
|
||||||
@message = args[:message] if args.key?(:message)
|
@message = args[:message] if args.key?(:message)
|
||||||
|
@details = args[:details] if args.key?(:details)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# All available features for sentiment, syntax, and semantic analysis.
|
||||||
|
# Setting each one to true will enable that specific analysis for the input.
|
||||||
|
class Features
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Extract entities.
|
||||||
|
# Corresponds to the JSON property `extractEntities`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :extract_entities
|
||||||
|
alias_method :extract_entities?, :extract_entities
|
||||||
|
|
||||||
|
# Extract syntax information.
|
||||||
|
# Corresponds to the JSON property `extractSyntax`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :extract_syntax
|
||||||
|
alias_method :extract_syntax?, :extract_syntax
|
||||||
|
|
||||||
|
# Extract document-level sentiment.
|
||||||
|
# Corresponds to the JSON property `extractDocumentSentiment`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :extract_document_sentiment
|
||||||
|
alias_method :extract_document_sentiment?, :extract_document_sentiment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
||||||
|
@extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
|
||||||
|
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -183,28 +359,41 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# All available features for sentiment, syntax, and semantic analysis.
|
# ################################################################ #
|
||||||
# Setting each one to true will enable that specific analysis for the input.
|
# Represents the input to API methods.
|
||||||
class Features
|
class Document
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Extract syntax information.
|
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
|
||||||
# Corresponds to the JSON property `extractSyntax`
|
# returns an `INVALID_ARGUMENT` error.
|
||||||
# @return [Boolean]
|
# Corresponds to the JSON property `type`
|
||||||
attr_accessor :extract_syntax
|
# @return [String]
|
||||||
alias_method :extract_syntax?, :extract_syntax
|
attr_accessor :type
|
||||||
|
|
||||||
# Extract document-level sentiment.
|
# The content of the input in string format.
|
||||||
# Corresponds to the JSON property `extractDocumentSentiment`
|
# Corresponds to the JSON property `content`
|
||||||
# @return [Boolean]
|
# @return [String]
|
||||||
attr_accessor :extract_document_sentiment
|
attr_accessor :content
|
||||||
alias_method :extract_document_sentiment?, :extract_document_sentiment
|
|
||||||
|
|
||||||
# Extract entities.
|
# The Google Cloud Storage URI where the file content is located.
|
||||||
# Corresponds to the JSON property `extractEntities`
|
# This URI must be of the form: gs://bucket_name/object_name. For more
|
||||||
# @return [Boolean]
|
# details, see https://cloud.google.com/storage/docs/reference-uris.
|
||||||
attr_accessor :extract_entities
|
# NOTE: Cloud Storage object versioning is not supported.
|
||||||
alias_method :extract_entities?, :extract_entities
|
# Corresponds to the JSON property `gcsContentUri`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :gcs_content_uri
|
||||||
|
|
||||||
|
# The language of the document (if not specified, the language is
|
||||||
|
# automatically detected). Both ISO and BCP-47 language codes are
|
||||||
|
# accepted.<br>
|
||||||
|
# **Current Language Restrictions:**
|
||||||
|
# * Only English, Spanish, and Japanese textual content are supported.
|
||||||
|
# If the language (either specified by the caller or automatically detected)
|
||||||
|
# is not supported by the called API method, an `INVALID_ARGUMENT` error
|
||||||
|
# is returned.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -212,9 +401,10 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
|
@type = args[:type] if args.key?(:type)
|
||||||
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
@content = args[:content] if args.key?(:content)
|
||||||
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
@gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -244,55 +434,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# ################################################################ #
|
|
||||||
# Represents the input to API methods.
|
|
||||||
class Document
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The language of the document (if not specified, the language is
|
|
||||||
# automatically detected). Both ISO and BCP-47 language codes are
|
|
||||||
# accepted.<br>
|
|
||||||
# **Current Language Restrictions:**
|
|
||||||
# * Only English, Spanish, and Japanese textual content are supported.
|
|
||||||
# If the language (either specified by the caller or automatically detected)
|
|
||||||
# is not supported by the called API method, an `INVALID_ARGUMENT` error
|
|
||||||
# is returned.
|
|
||||||
# Corresponds to the JSON property `language`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :language
|
|
||||||
|
|
||||||
# Required. If the type is not set or is `TYPE_UNSPECIFIED`,
|
|
||||||
# returns an `INVALID_ARGUMENT` error.
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
# The content of the input in string format.
|
|
||||||
# Corresponds to the JSON property `content`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :content
|
|
||||||
|
|
||||||
# The Google Cloud Storage URI where the file content is located.
|
|
||||||
# This URI must be of the form: gs://bucket_name/object_name. For more
|
|
||||||
# details, see https://cloud.google.com/storage/docs/reference-uris.
|
|
||||||
# NOTE: Cloud Storage object versioning is not supported.
|
|
||||||
# Corresponds to the JSON property `gcsContentUri`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :gcs_content_uri
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@language = args[:language] if args.key?(:language)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
@content = args[:content] if args.key?(:content)
|
|
||||||
@gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Represents the feeling associated with the entire text or entities in
|
# Represents the feeling associated with the entire text or entities in
|
||||||
# the text.
|
# the text.
|
||||||
class Sentiment
|
class Sentiment
|
||||||
|
@ -334,25 +475,25 @@ module Google
|
||||||
class AnalyzeEntitiesRequest
|
class AnalyzeEntitiesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The encoding type used by the API to calculate offsets.
|
||||||
|
# Corresponds to the JSON property `encodingType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encoding_type
|
||||||
|
|
||||||
# ################################################################ #
|
# ################################################################ #
|
||||||
# Represents the input to API methods.
|
# Represents the input to API methods.
|
||||||
# Corresponds to the JSON property `document`
|
# Corresponds to the JSON property `document`
|
||||||
# @return [Google::Apis::LanguageV1beta1::Document]
|
# @return [Google::Apis::LanguageV1beta1::Document]
|
||||||
attr_accessor :document
|
attr_accessor :document
|
||||||
|
|
||||||
# The encoding type used by the API to calculate offsets.
|
|
||||||
# Corresponds to the JSON property `encodingType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :encoding_type
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@document = args[:document] if args.key?(:document)
|
|
||||||
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||||
|
@document = args[:document] if args.key?(:document)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -471,6 +612,12 @@ module Google
|
||||||
class AnalyzeSentimentResponse
|
class AnalyzeSentimentResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents the feeling associated with the entire text or entities in
|
||||||
|
# the text.
|
||||||
|
# Corresponds to the JSON property `documentSentiment`
|
||||||
|
# @return [Google::Apis::LanguageV1beta1::Sentiment]
|
||||||
|
attr_accessor :document_sentiment
|
||||||
|
|
||||||
# The language of the text, which will be the same as the language specified
|
# The language of the text, which will be the same as the language specified
|
||||||
# in the request or, if not specified, the automatically-detected language.
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
# Corresponds to the JSON property `language`
|
# Corresponds to the JSON property `language`
|
||||||
|
@ -482,11 +629,65 @@ module Google
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
||||||
attr_accessor :sentences
|
attr_accessor :sentences
|
||||||
|
|
||||||
# Represents the feeling associated with the entire text or entities in
|
def initialize(**args)
|
||||||
# the text.
|
update!(**args)
|
||||||
# Corresponds to the JSON property `documentSentiment`
|
end
|
||||||
# @return [Google::Apis::LanguageV1beta1::Sentiment]
|
|
||||||
attr_accessor :document_sentiment
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
@sentences = args[:sentences] if args.key?(:sentences)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The entity analysis response message.
|
||||||
|
class AnalyzeEntitiesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The language of the text, which will be the same as the language specified
|
||||||
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
|
# See Document.language field for more details.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
# The recognized entities in the input document.
|
||||||
|
# Corresponds to the JSON property `entities`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
|
||||||
|
attr_accessor :entities
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@language = args[:language] if args.key?(:language)
|
||||||
|
@entities = args[:entities] if args.key?(:entities)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The syntax analysis response message.
|
||||||
|
class AnalyzeSyntaxResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The language of the text, which will be the same as the language specified
|
||||||
|
# in the request or, if not specified, the automatically-detected language.
|
||||||
|
# See Document.language field for more details.
|
||||||
|
# Corresponds to the JSON property `language`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :language
|
||||||
|
|
||||||
|
# Sentences in the input document.
|
||||||
|
# Corresponds to the JSON property `sentences`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
||||||
|
attr_accessor :sentences
|
||||||
|
|
||||||
|
# Tokens, along with their syntactic information, in the input document.
|
||||||
|
# Corresponds to the JSON property `tokens`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1beta1::Token>]
|
||||||
|
attr_accessor :tokens
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -496,34 +697,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@language = args[:language] if args.key?(:language)
|
@language = args[:language] if args.key?(:language)
|
||||||
@sentences = args[:sentences] if args.key?(:sentences)
|
@sentences = args[:sentences] if args.key?(:sentences)
|
||||||
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
@tokens = args[:tokens] if args.key?(:tokens)
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The entity analysis response message.
|
|
||||||
class AnalyzeEntitiesResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The recognized entities in the input document.
|
|
||||||
# Corresponds to the JSON property `entities`
|
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
|
|
||||||
attr_accessor :entities
|
|
||||||
|
|
||||||
# The language of the text, which will be the same as the language specified
|
|
||||||
# in the request or, if not specified, the automatically-detected language.
|
|
||||||
# See Document.language field for more details.
|
|
||||||
# Corresponds to the JSON property `language`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :language
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@entities = args[:entities] if args.key?(:entities)
|
|
||||||
@language = args[:language] if args.key?(:language)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -533,17 +707,6 @@ module Google
|
||||||
class Entity
|
class Entity
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The mentions of this entity in the input document. The API currently
|
|
||||||
# supports proper noun mentions.
|
|
||||||
# Corresponds to the JSON property `mentions`
|
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::EntityMention>]
|
|
||||||
attr_accessor :mentions
|
|
||||||
|
|
||||||
# The representative name for the entity.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
# The entity type.
|
# The entity type.
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -565,191 +728,28 @@ module Google
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :salience
|
attr_accessor :salience
|
||||||
|
|
||||||
|
# The mentions of this entity in the input document. The API currently
|
||||||
|
# supports proper noun mentions.
|
||||||
|
# Corresponds to the JSON property `mentions`
|
||||||
|
# @return [Array<Google::Apis::LanguageV1beta1::EntityMention>]
|
||||||
|
attr_accessor :mentions
|
||||||
|
|
||||||
|
# The representative name for the entity.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@mentions = args[:mentions] if args.key?(:mentions)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
@metadata = args[:metadata] if args.key?(:metadata)
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
@salience = args[:salience] if args.key?(:salience)
|
@salience = args[:salience] if args.key?(:salience)
|
||||||
end
|
@mentions = args[:mentions] if args.key?(:mentions)
|
||||||
end
|
@name = args[:name] if args.key?(:name)
|
||||||
|
|
||||||
# The syntax analysis response message.
|
|
||||||
class AnalyzeSyntaxResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Sentences in the input document.
|
|
||||||
# Corresponds to the JSON property `sentences`
|
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
|
||||||
attr_accessor :sentences
|
|
||||||
|
|
||||||
# Tokens, along with their syntactic information, in the input document.
|
|
||||||
# Corresponds to the JSON property `tokens`
|
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::Token>]
|
|
||||||
attr_accessor :tokens
|
|
||||||
|
|
||||||
# The language of the text, which will be the same as the language specified
|
|
||||||
# in the request or, if not specified, the automatically-detected language.
|
|
||||||
# See Document.language field for more details.
|
|
||||||
# Corresponds to the JSON property `language`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :language
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@sentences = args[:sentences] if args.key?(:sentences)
|
|
||||||
@tokens = args[:tokens] if args.key?(:tokens)
|
|
||||||
@language = args[:language] if args.key?(:language)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The request message for the text annotation API, which can perform multiple
|
|
||||||
# analysis types (sentiment, entities, and syntax) in one call.
|
|
||||||
class AnnotateTextRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The encoding type used by the API to calculate offsets.
|
|
||||||
# Corresponds to the JSON property `encodingType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :encoding_type
|
|
||||||
|
|
||||||
# ################################################################ #
|
|
||||||
# Represents the input to API methods.
|
|
||||||
# Corresponds to the JSON property `document`
|
|
||||||
# @return [Google::Apis::LanguageV1beta1::Document]
|
|
||||||
attr_accessor :document
|
|
||||||
|
|
||||||
# All available features for sentiment, syntax, and semantic analysis.
|
|
||||||
# Setting each one to true will enable that specific analysis for the input.
|
|
||||||
# Corresponds to the JSON property `features`
|
|
||||||
# @return [Google::Apis::LanguageV1beta1::Features]
|
|
||||||
attr_accessor :features
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
|
||||||
@document = args[:document] if args.key?(:document)
|
|
||||||
@features = args[:features] if args.key?(:features)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The sentiment analysis request message.
|
|
||||||
class AnalyzeSentimentRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The encoding type used by the API to calculate sentence offsets for the
|
|
||||||
# sentence sentiment.
|
|
||||||
# Corresponds to the JSON property `encodingType`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :encoding_type
|
|
||||||
|
|
||||||
# ################################################################ #
|
|
||||||
# Represents the input to API methods.
|
|
||||||
# Corresponds to the JSON property `document`
|
|
||||||
# @return [Google::Apis::LanguageV1beta1::Document]
|
|
||||||
attr_accessor :document
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
|
||||||
@document = args[:document] if args.key?(:document)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# The text annotations response message.
|
|
||||||
class AnnotateTextResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# The language of the text, which will be the same as the language specified
|
|
||||||
# in the request or, if not specified, the automatically-detected language.
|
|
||||||
# See Document.language field for more details.
|
|
||||||
# Corresponds to the JSON property `language`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :language
|
|
||||||
|
|
||||||
# Sentences in the input document. Populated if the user enables
|
|
||||||
# AnnotateTextRequest.Features.extract_syntax.
|
|
||||||
# Corresponds to the JSON property `sentences`
|
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
|
|
||||||
attr_accessor :sentences
|
|
||||||
|
|
||||||
# Tokens, along with their syntactic information, in the input document.
|
|
||||||
# Populated if the user enables
|
|
||||||
# AnnotateTextRequest.Features.extract_syntax.
|
|
||||||
# Corresponds to the JSON property `tokens`
|
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::Token>]
|
|
||||||
attr_accessor :tokens
|
|
||||||
|
|
||||||
# Entities, along with their semantic information, in the input document.
|
|
||||||
# Populated if the user enables
|
|
||||||
# AnnotateTextRequest.Features.extract_entities.
|
|
||||||
# Corresponds to the JSON property `entities`
|
|
||||||
# @return [Array<Google::Apis::LanguageV1beta1::Entity>]
|
|
||||||
attr_accessor :entities
|
|
||||||
|
|
||||||
# Represents the feeling associated with the entire text or entities in
|
|
||||||
# the text.
|
|
||||||
# Corresponds to the JSON property `documentSentiment`
|
|
||||||
# @return [Google::Apis::LanguageV1beta1::Sentiment]
|
|
||||||
attr_accessor :document_sentiment
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@language = args[:language] if args.key?(:language)
|
|
||||||
@sentences = args[:sentences] if args.key?(:sentences)
|
|
||||||
@tokens = args[:tokens] if args.key?(:tokens)
|
|
||||||
@entities = args[:entities] if args.key?(:entities)
|
|
||||||
@document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Represents dependency parse tree information for a token.
|
|
||||||
class DependencyEdge
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Represents the head of this token in the dependency tree.
|
|
||||||
# This is the index of the token which has an arc going to this token.
|
|
||||||
# The index is the position of the token in the array of tokens returned
|
|
||||||
# by the API method. If this token is a root token, then the
|
|
||||||
# `head_token_index` is its own index.
|
|
||||||
# Corresponds to the JSON property `headTokenIndex`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :head_token_index
|
|
||||||
|
|
||||||
# The parse label for the token.
|
|
||||||
# Corresponds to the JSON property `label`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :label
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@head_token_index = args[:head_token_index] if args.key?(:head_token_index)
|
|
||||||
@label = args[:label] if args.key?(:label)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,6 +22,30 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module LanguageV1beta1
|
module LanguageV1beta1
|
||||||
|
|
||||||
|
class AnnotateTextRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnnotateTextResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSentimentRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DependencyEdge
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Token
|
class Token
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -40,19 +64,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class EntityMention
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Features
|
class Features
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Sentence
|
class EntityMention
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -64,6 +82,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Sentence
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Sentiment
|
class Sentiment
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -100,40 +124,59 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Entity
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AnalyzeSyntaxResponse
|
class AnalyzeSyntaxResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class AnnotateTextRequest
|
class Entity
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class AnalyzeSentimentRequest
|
class AnnotateTextRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :encoding_type, as: 'encodingType'
|
||||||
|
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class AnnotateTextResponse
|
class AnnotateTextResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :language, as: 'language'
|
||||||
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
||||||
|
|
||||||
|
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
||||||
|
|
||||||
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeSentimentRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :encoding_type, as: 'encodingType'
|
||||||
|
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DependencyEdge
|
class DependencyEdge
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
property :head_token_index, as: 'headTokenIndex'
|
||||||
|
property :label, as: 'label'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Token
|
class Token
|
||||||
|
@ -152,17 +195,26 @@ module Google
|
||||||
class TextSpan
|
class TextSpan
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :content, as: 'content'
|
|
||||||
property :begin_offset, as: 'beginOffset'
|
property :begin_offset, as: 'beginOffset'
|
||||||
|
property :content, as: 'content'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Status
|
class Status
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :details, as: 'details'
|
|
||||||
property :code, as: 'code'
|
property :code, as: 'code'
|
||||||
property :message, as: 'message'
|
property :message, as: 'message'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Features
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :extract_entities, as: 'extractEntities'
|
||||||
|
property :extract_syntax, as: 'extractSyntax'
|
||||||
|
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -175,12 +227,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Features
|
class Document
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :extract_syntax, as: 'extractSyntax'
|
property :type, as: 'type'
|
||||||
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
property :content, as: 'content'
|
||||||
property :extract_entities, as: 'extractEntities'
|
property :gcs_content_uri, as: 'gcsContentUri'
|
||||||
|
property :language, as: 'language'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -194,16 +247,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Document
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :language, as: 'language'
|
|
||||||
property :type, as: 'type'
|
|
||||||
property :content, as: 'content'
|
|
||||||
property :gcs_content_uri, as: 'gcsContentUri'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Sentiment
|
class Sentiment
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -216,9 +259,9 @@ module Google
|
||||||
class AnalyzeEntitiesRequest
|
class AnalyzeEntitiesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :encoding_type, as: 'encodingType'
|
||||||
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
||||||
|
|
||||||
property :encoding_type, as: 'encodingType'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -252,67 +295,24 @@ module Google
|
||||||
class AnalyzeSentimentResponse
|
class AnalyzeSentimentResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
||||||
|
|
||||||
property :language, as: 'language'
|
property :language, as: 'language'
|
||||||
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
||||||
|
|
||||||
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class AnalyzeEntitiesResponse
|
class AnalyzeEntitiesResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :language, as: 'language'
|
||||||
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
||||||
|
|
||||||
property :language, as: 'language'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Entity
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :type, as: 'type'
|
|
||||||
hash :metadata, as: 'metadata'
|
|
||||||
property :salience, as: 'salience'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class AnalyzeSyntaxResponse
|
class AnalyzeSyntaxResponse
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
|
||||||
|
|
||||||
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
|
||||||
|
|
||||||
property :language, as: 'language'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AnnotateTextRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :encoding_type, as: 'encodingType'
|
|
||||||
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
|
||||||
|
|
||||||
property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AnalyzeSentimentRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :encoding_type, as: 'encodingType'
|
|
||||||
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AnnotateTextResponse
|
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :language, as: 'language'
|
property :language, as: 'language'
|
||||||
|
@ -320,18 +320,18 @@ module Google
|
||||||
|
|
||||||
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
||||||
|
|
||||||
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
|
||||||
|
|
||||||
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DependencyEdge
|
class Entity
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :head_token_index, as: 'headTokenIndex'
|
property :type, as: 'type'
|
||||||
property :label, as: 'label'
|
hash :metadata, as: 'metadata'
|
||||||
|
property :salience, as: 'salience'
|
||||||
|
collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,90 +34,28 @@ module Google
|
||||||
#
|
#
|
||||||
# @see https://cloud.google.com/natural-language/
|
# @see https://cloud.google.com/natural-language/
|
||||||
class CloudNaturalLanguageService < Google::Apis::Core::BaseService
|
class CloudNaturalLanguageService < 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]
|
# @return [String]
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
attr_accessor :quota_user
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
# @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
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://language.googleapis.com/', '')
|
super('https://language.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Analyzes the syntax of the text and provides sentence boundaries and
|
|
||||||
# tokenization along with part of speech tags, dependency trees, and other
|
|
||||||
# properties.
|
|
||||||
# @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_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::LanguageV1beta1::AnalyzeSyntaxResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse]
|
|
||||||
#
|
|
||||||
# @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 analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
|
|
||||||
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
|
|
||||||
command.request_object = analyze_syntax_request_object
|
|
||||||
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
|
|
||||||
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Analyzes the sentiment of the provided text.
|
|
||||||
# @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_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::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse]
|
|
||||||
#
|
|
||||||
# @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 analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
|
|
||||||
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
|
|
||||||
command.request_object = analyze_sentiment_request_object
|
|
||||||
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
|
|
||||||
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# A convenience method that provides all the features that analyzeSentiment,
|
# A convenience method that provides all the features that analyzeSentiment,
|
||||||
# analyzeEntities, and analyzeSyntax provide in one call.
|
# analyzeEntities, and analyzeSyntax provide in one call.
|
||||||
# @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object
|
# @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -130,14 +68,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1beta1/documents:annotateText', options)
|
command = make_simple_command(:post, 'v1beta1/documents:annotateText', options)
|
||||||
command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation
|
command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation
|
||||||
command.request_object = annotate_text_request_object
|
command.request_object = annotate_text_request_object
|
||||||
command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation
|
command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation
|
||||||
command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse
|
command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -145,11 +83,11 @@ module Google
|
||||||
# along with entity types, salience, mentions for each entity, and
|
# along with entity types, salience, mentions for each entity, and
|
||||||
# other properties.
|
# other properties.
|
||||||
# @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
|
# @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# 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.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -162,22 +100,84 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options)
|
command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options)
|
||||||
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation
|
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation
|
||||||
command.request_object = analyze_entities_request_object
|
command.request_object = analyze_entities_request_object
|
||||||
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation
|
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation
|
||||||
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
|
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Analyzes the syntax of the text and provides sentence boundaries and
|
||||||
|
# tokenization along with part of speech tags, dependency trees, and other
|
||||||
|
# properties.
|
||||||
|
# @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse]
|
||||||
|
#
|
||||||
|
# @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 analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
|
||||||
|
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
|
||||||
|
command.request_object = analyze_syntax_request_object
|
||||||
|
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
|
||||||
|
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Analyzes the sentiment of the provided text.
|
||||||
|
# @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse]
|
||||||
|
#
|
||||||
|
# @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 analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
|
||||||
|
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
|
||||||
|
command.request_object = analyze_sentiment_request_object
|
||||||
|
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
|
||||||
|
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
command.query['key'] = key unless key.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
# 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/logging_v2/service.rb'
|
||||||
|
require 'google/apis/logging_v2/classes.rb'
|
||||||
|
require 'google/apis/logging_v2/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Stackdriver Logging API
|
||||||
|
#
|
||||||
|
# Writes log entries and manages your Stackdriver Logging configuration.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/logging/docs/
|
||||||
|
module LoggingV2
|
||||||
|
VERSION = 'V2'
|
||||||
|
REVISION = '20170327'
|
||||||
|
|
||||||
|
# View your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||||
|
|
||||||
|
# Administrate log data for your projects
|
||||||
|
AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
|
||||||
|
|
||||||
|
# View log data for your projects
|
||||||
|
AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
|
||||||
|
|
||||||
|
# Submit log data for your projects
|
||||||
|
AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,421 @@
|
||||||
|
# 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 LoggingV2
|
||||||
|
|
||||||
|
class LogLine
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogMetricsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogEntry
|
||||||
|
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 SourceLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogEntriesRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RequestLog
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListMonitoredResourceDescriptorsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceReference
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class WriteLogEntriesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogEntryOperation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogMetric
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MonitoredResource
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class WriteLogEntriesRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogSink
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListSinksResponse
|
||||||
|
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 MonitoredResourceDescriptor
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogEntrySourceLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogEntriesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogLine
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::SourceLocation, decorator: Google::Apis::LoggingV2::SourceLocation::Representation
|
||||||
|
|
||||||
|
property :time, as: 'time'
|
||||||
|
property :severity, as: 'severity'
|
||||||
|
property :log_message, as: 'logMessage'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogMetricsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2::LogMetric, decorator: Google::Apis::LoggingV2::LogMetric::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :trace, as: 'trace'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :severity, as: 'severity'
|
||||||
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
|
||||||
|
|
||||||
|
property :timestamp, as: 'timestamp'
|
||||||
|
property :log_name, as: 'logName'
|
||||||
|
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation
|
||||||
|
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
|
||||||
|
|
||||||
|
hash :json_payload, as: 'jsonPayload'
|
||||||
|
property :operation, as: 'operation', class: Google::Apis::LoggingV2::LogEntryOperation, decorator: Google::Apis::LoggingV2::LogEntryOperation::Representation
|
||||||
|
|
||||||
|
property :insert_id, as: 'insertId'
|
||||||
|
property :text_payload, as: 'textPayload'
|
||||||
|
hash :proto_payload, as: 'protoPayload'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceLocation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :file, as: 'file'
|
||||||
|
property :function_name, as: 'functionName'
|
||||||
|
property :line, as: 'line'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogEntriesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :project_ids, as: 'projectIds'
|
||||||
|
property :filter, as: 'filter'
|
||||||
|
property :page_token, as: 'pageToken'
|
||||||
|
property :page_size, as: 'pageSize'
|
||||||
|
property :order_by, as: 'orderBy'
|
||||||
|
collection :resource_names, as: 'resourceNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RequestLog
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2::SourceReference, decorator: Google::Apis::LoggingV2::SourceReference::Representation
|
||||||
|
|
||||||
|
property :response_size, as: 'responseSize'
|
||||||
|
property :trace_id, as: 'traceId'
|
||||||
|
collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation
|
||||||
|
|
||||||
|
property :task_queue_name, as: 'taskQueueName'
|
||||||
|
property :referrer, as: 'referrer'
|
||||||
|
property :request_id, as: 'requestId'
|
||||||
|
property :nickname, as: 'nickname'
|
||||||
|
property :pending_time, as: 'pendingTime'
|
||||||
|
property :resource, as: 'resource'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :task_name, as: 'taskName'
|
||||||
|
property :url_map_entry, as: 'urlMapEntry'
|
||||||
|
property :instance_index, as: 'instanceIndex'
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :finished, as: 'finished'
|
||||||
|
property :http_version, as: 'httpVersion'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :latency, as: 'latency'
|
||||||
|
property :ip, as: 'ip'
|
||||||
|
property :app_id, as: 'appId'
|
||||||
|
property :app_engine_release, as: 'appEngineRelease'
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :cost, as: 'cost'
|
||||||
|
property :instance_id, as: 'instanceId'
|
||||||
|
property :mega_cycles, as: 'megaCycles'
|
||||||
|
property :first, as: 'first'
|
||||||
|
property :version_id, as: 'versionId'
|
||||||
|
property :module_id, as: 'moduleId'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user_agent, as: 'userAgent'
|
||||||
|
property :was_loading_request, as: 'wasLoadingRequest'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListMonitoredResourceDescriptorsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2::MonitoredResourceDescriptor::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repository, as: 'repository'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class WriteLogEntriesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogEntryOperation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :producer, as: 'producer'
|
||||||
|
property :first, as: 'first'
|
||||||
|
property :last, as: 'last'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogMetric
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :version, as: 'version'
|
||||||
|
property :filter, as: 'filter'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MonitoredResource
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class WriteLogEntriesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
|
||||||
|
|
||||||
|
property :log_name, as: 'logName'
|
||||||
|
collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
|
||||||
|
|
||||||
|
property :partial_success, as: 'partialSuccess'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogSink
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :writer_identity, as: 'writerIdentity'
|
||||||
|
property :output_version_format, as: 'outputVersionFormat'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :destination, as: 'destination'
|
||||||
|
property :filter, as: 'filter'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :log_names, as: 'logNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :user_agent, as: 'userAgent'
|
||||||
|
property :latency, as: 'latency'
|
||||||
|
property :cache_fill_bytes, as: 'cacheFillBytes'
|
||||||
|
property :request_method, as: 'requestMethod'
|
||||||
|
property :response_size, as: 'responseSize'
|
||||||
|
property :request_size, as: 'requestSize'
|
||||||
|
property :request_url, as: 'requestUrl'
|
||||||
|
property :server_ip, as: 'serverIp'
|
||||||
|
property :remote_ip, as: 'remoteIp'
|
||||||
|
property :cache_lookup, as: 'cacheLookup'
|
||||||
|
property :cache_hit, as: 'cacheHit'
|
||||||
|
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :referer, as: 'referer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListSinksResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LabelDescriptor
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :value_type, as: 'valueType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MonitoredResourceDescriptor
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogEntrySourceLocation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :file, as: 'file'
|
||||||
|
property :function, as: 'function'
|
||||||
|
property :line, as: 'line'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogEntriesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue