Merge branch 'master' into v0.10
This commit is contained in:
commit
c9e0d52d96
26
CHANGELOG.md
26
CHANGELOG.md
|
@ -14,6 +14,32 @@
|
|||
* Fix a potential download corruption if download interrupted and retried against a URL
|
||||
that does not return partial content.
|
||||
|
||||
# 0.10.3
|
||||
* Regenerate APIs
|
||||
* Enable additional API:
|
||||
* `acceleratedmobilepageurl:v1``
|
||||
* `appengine:v1`
|
||||
* `clouderrorreporting:v1beta1`
|
||||
* `cloudfunctions:v1`
|
||||
* `firebasedynamiclinks:v1`
|
||||
* `firebaserules:v1`
|
||||
* `language:v1`
|
||||
* `logging:v2`
|
||||
* `ml:v1`
|
||||
* `runtimeconfig:v1`
|
||||
* `searchconsole:v1`
|
||||
* `servicecontrol:v1`
|
||||
* `servicemanagement:v1`
|
||||
* `serviceuser:v1`
|
||||
* `sourcerepo:v1`
|
||||
* `spanner:v1`
|
||||
* `surveys:v2`
|
||||
* `tagmanager:v2`
|
||||
* `toolresults:v1beta3`
|
||||
* `tracing:v1`
|
||||
* `webfonts:v1`
|
||||
* Fix `teamdrives` inflection
|
||||
|
||||
# 0.10.2
|
||||
* Regenerate APIs
|
||||
|
||||
|
|
29
MIGRATING.md
29
MIGRATING.md
|
@ -1,4 +1,17 @@
|
|||
# Migrating from version `0.8.x` to `0.9` and above
|
||||
# Migrating from version `0.9.x` to `0.10`
|
||||
|
||||
Only one minor breaking change was introduced in the `to_json` method due to a version bump for the `representable` gem from `2.3` to `3.0`. If you used the `skip_undefined` in `to_json`, you should replace that with `user_options: { skip_undefined: true }`.
|
||||
|
||||
ex:
|
||||
```ruby
|
||||
foo.to_json(skip_undefined: true)
|
||||
```
|
||||
to
|
||||
```ruby
|
||||
foo.to_json(user_options: { skip_undefined: true })
|
||||
```
|
||||
|
||||
# Migrating from version `0.8.x` to `0.9` or above
|
||||
|
||||
Many changes and improvements have been made to the `google-api-ruby-client`
|
||||
library to bring it to `0.9`. If you are starting a new project or haven't used
|
||||
|
@ -61,6 +74,8 @@ are expected to be added by end of Q2 2015.
|
|||
The underlying [Signet](https://github.com/google/signet) is still used for authorization. OAuth 2 credentials obtained
|
||||
previously will continue to work with the `0.9` version. OAuth 1 is no longer supported.
|
||||
|
||||
If you were using a PKCS12 file to authorize, we recommend you generate a new key for the service account using the JSON format ( client_secret.json) file with googleauth.
|
||||
|
||||
## Media uploads
|
||||
|
||||
Media uploads are significantly simpler in `0.9`.
|
||||
|
@ -125,15 +140,15 @@ client.execute(batch)
|
|||
In `0.9`, the equivalent code is:
|
||||
|
||||
```ruby
|
||||
require 'google/apis/urlshortner_v1'
|
||||
require 'google/apis/urlshortener_v1'
|
||||
|
||||
urlshortener = Google::Apis::UrlshortenerV1::UrlshortenerService.new
|
||||
|
||||
urlshortener.batch do |urlshortener|
|
||||
urlshortner.insert_url({long_url: 'http://example.com/foo'}) do |res, err|
|
||||
urlshortener.insert_url({long_url: 'http://example.com/foo'}) do |res, err|
|
||||
puts res
|
||||
end
|
||||
urlshortner.insert_url({long_url: 'http://example.com/bar'}) do |res, err|
|
||||
urlshortener.insert_url({long_url: 'http://example.com/bar'}) do |res, err|
|
||||
puts res
|
||||
end
|
||||
end
|
||||
|
@ -142,14 +157,14 @@ end
|
|||
Or if sharing the same block:
|
||||
|
||||
```ruby
|
||||
require 'google/apis/urlshortner_v1'
|
||||
require 'google/apis/urlshortener_v1'
|
||||
|
||||
urlshortener = Google::Apis::UrlshortenerV1::UrlshortenerService.new
|
||||
|
||||
callback = lambda { |res, err| puts res }
|
||||
urlshortener.batch do |urlshortener|
|
||||
urlshortner.insert_url({long_url: 'http://example.com/foo'}, &callback)
|
||||
urlshortner.insert_url({long_url: 'http://example.com/bar'}, &callback)
|
||||
urlshortener.insert_url({long_url: 'http://example.com/foo'}, &callback)
|
||||
urlshortener.insert_url({long_url: 'http://example.com/bar'}, &callback)
|
||||
end
|
||||
```
|
||||
|
||||
|
|
12
README.md
12
README.md
|
@ -7,8 +7,7 @@ changes when necessary.
|
|||
|
||||
## Migrating from 0.8.x
|
||||
|
||||
Version 0.9 is not compatible with previous versions. See [MIGRATING](MIGRATING.md) for additional details on how to
|
||||
migrate to the latest version.
|
||||
See [MIGRATING](MIGRATING.md) for additional details on how to migrate to the latest version.
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -284,14 +283,11 @@ The second is to set the environment variable `GOOGLE_API_USE_RAILS_LOGGER` to a
|
|||
|
||||
## Samples
|
||||
|
||||
Samples for versions 0.9 and onward can be found in the `samples` directory.
|
||||
See the [samples](samples) for examples on how to use the client library for various
|
||||
services.
|
||||
|
||||
Contributions for additional samples are welcome. See [CONTRIBUTING](CONTRIBUTING.md).
|
||||
|
||||
Samples for previous versions can be found in the
|
||||
[samples](samples)
|
||||
folder.
|
||||
|
||||
|
||||
## Generating APIs
|
||||
|
||||
For [Cloud Endpoints](https://cloud.google.com/endpoints/) or other APIs not included in the gem, ruby code can be
|
||||
|
|
38073
api_names.yaml
38073
api_names.yaml
File diff suppressed because it is too large
Load Diff
38497
api_names_out.yaml
38497
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
|
||||
|
||||
# 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 [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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
|
||||
@original_url = args[:original_url] if args.key?(:original_url)
|
||||
@amp_url = args[:amp_url] if args.key?(:amp_url)
|
||||
end
|
||||
end
|
||||
|
||||
# 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
|
||||
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 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
|
||||
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
|
||||
# @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 :cdn_amp_url, as: 'cdnAmpUrl'
|
||||
property :original_url, as: 'originalUrl'
|
||||
property :amp_url, as: 'ampUrl'
|
||||
end
|
||||
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
|
||||
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/
|
||||
module Adexchangebuyer2V2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20170324'
|
||||
REVISION = '20170330'
|
||||
|
||||
# Manage your Ad Exchange buyer account configuration
|
||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,6 +22,84 @@ module Google
|
|||
module Apis
|
||||
module Adexchangebuyer2V2beta1
|
||||
|
||||
class CreativeDealAssociation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Creative
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FilteringStats
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RemoveDealAssociationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Client
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Correction
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AddDealAssociationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListDealAssociationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Disapproval
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StopWatchingCreativeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServingRestriction
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Date
|
||||
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 WatchCreativeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -52,13 +130,13 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HtmlContent
|
||||
class ListCreativesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListCreativesResponse
|
||||
class HtmlContent
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -131,81 +209,148 @@ module Google
|
|||
end
|
||||
|
||||
class CreativeDealAssociation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FilteringStats
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deals_id, as: 'dealsId'
|
||||
property :account_id, as: 'accountId'
|
||||
property :creative_id, as: 'creativeId'
|
||||
end
|
||||
end
|
||||
|
||||
class Creative
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
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 :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 :advertiser_name, as: 'advertiserName'
|
||||
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
|
||||
collection :detected_domains, as: 'detectedDomains'
|
||||
property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
|
||||
|
||||
collection :attributes, as: 'attributes'
|
||||
property :api_update_time, as: 'apiUpdateTime'
|
||||
collection :detected_languages, as: 'detectedLanguages'
|
||||
property :creative_id, as: 'creativeId'
|
||||
end
|
||||
end
|
||||
|
||||
class FilteringStats
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
|
||||
|
||||
property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RemoveDealAssociationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class Client
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :visible_to_seller, as: 'visibleToSeller'
|
||||
property :entity_id, as: 'entityId'
|
||||
property :client_account_id, as: 'clientAccountId'
|
||||
property :entity_name, as: 'entityName'
|
||||
property :status, as: 'status'
|
||||
property :entity_type, as: 'entityType'
|
||||
property :client_name, as: 'clientName'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class Correction
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
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
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListDealAssociationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class AddDealAssociationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class StopWatchingCreativeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
class ListDealAssociationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class Disapproval
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :details, as: 'details'
|
||||
property :reason, as: 'reason'
|
||||
end
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
class StopWatchingCreativeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ServingRestriction
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
||||
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
class Date
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :year, as: 'year'
|
||||
property :day, as: 'day'
|
||||
property :month, as: 'month'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class WatchCreativeRequest
|
||||
|
@ -225,19 +370,21 @@ module Google
|
|||
class ListClientsResponse
|
||||
# @private
|
||||
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
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class NativeContent
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :body, as: 'body'
|
||||
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 :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
|
||||
|
@ -248,8 +395,6 @@ module Google
|
|||
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
||||
|
||||
property :call_to_action, as: 'callToAction'
|
||||
property :body, as: 'body'
|
||||
property :star_rating, as: 'starRating'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -260,15 +405,6 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -278,6 +414,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class HtmlContent
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :height, as: 'height'
|
||||
property :width, as: 'width'
|
||||
property :snippet, as: 'snippet'
|
||||
end
|
||||
end
|
||||
|
||||
class ServingContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -298,9 +443,9 @@ module Google
|
|||
class Image
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :height, as: 'height'
|
||||
property :width, as: 'width'
|
||||
property :url, as: 'url'
|
||||
property :height, as: 'height'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -370,155 +515,10 @@ module Google
|
|||
class ClientUser
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_account_id, as: 'clientAccountId'
|
||||
property :status, as: 'status'
|
||||
property :user_id, as: 'userId'
|
||||
property :email, as: 'email'
|
||||
property :client_account_id, as: 'clientAccountId'
|
||||
end
|
||||
end
|
||||
|
||||
class CreativeDealAssociation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creative_id, as: 'creativeId'
|
||||
property :deals_id, as: 'dealsId'
|
||||
property :account_id, as: 'accountId'
|
||||
end
|
||||
end
|
||||
|
||||
class FilteringStats
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
|
||||
|
||||
collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Creative
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :open_auction_status, as: 'openAuctionStatus'
|
||||
property :advertiser_name, as: 'advertiserName'
|
||||
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
|
||||
collection :detected_domains, as: 'detectedDomains'
|
||||
property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
|
||||
|
||||
collection :attributes, as: 'attributes'
|
||||
property :api_update_time, as: 'apiUpdateTime'
|
||||
collection :detected_languages, as: 'detectedLanguages'
|
||||
property :creative_id, as: 'creativeId'
|
||||
property :account_id, as: 'accountId'
|
||||
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 :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
|
||||
|
||||
property :deals_status, as: 'dealsStatus'
|
||||
collection :detected_product_categories, as: 'detectedProductCategories'
|
||||
end
|
||||
end
|
||||
|
||||
class RemoveDealAssociationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Client
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entity_name, as: 'entityName'
|
||||
property :status, as: 'status'
|
||||
property :entity_type, as: 'entityType'
|
||||
property :client_name, as: 'clientName'
|
||||
property :role, as: 'role'
|
||||
property :visible_to_seller, as: 'visibleToSeller'
|
||||
property :entity_id, as: 'entityId'
|
||||
property :client_account_id, as: 'clientAccountId'
|
||||
end
|
||||
end
|
||||
|
||||
class Correction
|
||||
# @private
|
||||
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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListDealAssociationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AddDealAssociationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class StopWatchingCreativeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Disapproval
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :details, as: 'details'
|
||||
property :reason, as: 'reason'
|
||||
end
|
||||
end
|
||||
|
||||
class ServingRestriction
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
||||
|
||||
property :status, as: 'status'
|
||||
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Date
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :year, as: 'year'
|
||||
property :day, as: 'day'
|
||||
property :month, as: 'month'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2746,6 +2746,7 @@ module Google
|
|||
|
||||
#
|
||||
# Corresponds to the JSON property `referencePayload`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :reference_payload
|
||||
|
||||
|
|
|
@ -3015,6 +3015,7 @@ module Google
|
|||
|
||||
# Base64 encoded photo data
|
||||
# Corresponds to the JSON property `photoData`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :photo_data
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/admin-sdk/reports/
|
||||
module AdminReportsV1
|
||||
VERSION = 'ReportsV1'
|
||||
REVISION = '20170315'
|
||||
REVISION = '20170320'
|
||||
|
||||
# View audit reports for your G Suite domain
|
||||
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/
|
||||
module AdsenseV1_4
|
||||
VERSION = 'V1_4'
|
||||
REVISION = '20170325'
|
||||
REVISION = '20170329'
|
||||
|
||||
# View and manage your AdSense data
|
||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/adsense/host/
|
||||
module AdsensehostV4_1
|
||||
VERSION = 'V4_1'
|
||||
REVISION = '20170325'
|
||||
REVISION = '20170329'
|
||||
|
||||
# View and manage your AdSense host data and associated accounts
|
||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||
|
|
|
@ -22,11 +22,41 @@ module Google
|
|||
module Apis
|
||||
module AnalyticsreportingV4
|
||||
|
||||
# Column headers.
|
||||
class ColumnHeader
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The dimension names in the response.
|
||||
# Corresponds to the JSON property `dimensions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :dimensions
|
||||
|
||||
# The headers for the metrics.
|
||||
# Corresponds to the JSON property `metricHeader`
|
||||
# @return [Google::Apis::AnalyticsreportingV4::MetricHeader]
|
||||
attr_accessor :metric_header
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||
@metric_header = args[:metric_header] if args.key?(:metric_header)
|
||||
end
|
||||
end
|
||||
|
||||
# Filter Clause to be used in a segment definition, can be wither a metric or
|
||||
# a dimension filter.
|
||||
class SegmentFilterClause
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Dimension filter specifies the filtering options on a dimension.
|
||||
# Corresponds to the JSON property `dimensionFilter`
|
||||
# @return [Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter]
|
||||
attr_accessor :dimension_filter
|
||||
|
||||
# Metric filter to be used in a segment filter clause.
|
||||
# Corresponds to the JSON property `metricFilter`
|
||||
# @return [Google::Apis::AnalyticsreportingV4::SegmentMetricFilter]
|
||||
|
@ -38,10 +68,31 @@ module Google
|
|||
attr_accessor :not
|
||||
alias_method :not?, :not
|
||||
|
||||
# Dimension filter specifies the filtering options on a dimension.
|
||||
# Corresponds to the JSON property `dimensionFilter`
|
||||
# @return [Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter]
|
||||
attr_accessor :dimension_filter
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
|
||||
@metric_filter = args[:metric_filter] if args.key?(:metric_filter)
|
||||
@not = args[:not] if args.key?(:not)
|
||||
end
|
||||
end
|
||||
|
||||
# A row in the report.
|
||||
class ReportRow
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of metrics for each requested DateRange.
|
||||
# Corresponds to the JSON property `metrics`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
||||
attr_accessor :metrics
|
||||
|
||||
# List of requested dimensions.
|
||||
# Corresponds to the JSON property `dimensions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :dimensions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
|
@ -49,9 +100,46 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@metric_filter = args[:metric_filter] if args.key?(:metric_filter)
|
||||
@not = args[:not] if args.key?(:not)
|
||||
@dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
|
||||
@metrics = args[:metrics] if args.key?(:metrics)
|
||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||
end
|
||||
end
|
||||
|
||||
# Defines a cohort. A cohort is a group of users who share a common
|
||||
# characteristic. For example, all users with the same acquisition date
|
||||
# belong to the same cohort.
|
||||
class Cohort
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Type of the cohort. The only supported type as of now is
|
||||
# `FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated
|
||||
# as `FIRST_VISIT_DATE` type cohort.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# A unique name for the cohort. If not defined name will be auto-generated
|
||||
# with values cohort_[1234...].
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A contiguous set of days: startDate, startDate + 1 day, ..., endDate.
|
||||
# The start and end dates are specified in
|
||||
# [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) date format `YYYY-MM-DD`.
|
||||
# Corresponds to the JSON property `dateRange`
|
||||
# @return [Google::Apis::AnalyticsreportingV4::DateRange]
|
||||
attr_accessor :date_range
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@date_range = args[:date_range] if args.key?(:date_range)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -83,69 +171,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Defines a cohort. A cohort is a group of users who share a common
|
||||
# characteristic. For example, all users with the same acquisition date
|
||||
# belong to the same cohort.
|
||||
class Cohort
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A unique name for the cohort. If not defined name will be auto-generated
|
||||
# with values cohort_[1234...].
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A contiguous set of days: startDate, startDate + 1 day, ..., endDate.
|
||||
# The start and end dates are specified in
|
||||
# [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) date format `YYYY-MM-DD`.
|
||||
# Corresponds to the JSON property `dateRange`
|
||||
# @return [Google::Apis::AnalyticsreportingV4::DateRange]
|
||||
attr_accessor :date_range
|
||||
|
||||
# Type of the cohort. The only supported type as of now is
|
||||
# `FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated
|
||||
# as `FIRST_VISIT_DATE` type cohort.
|
||||
# 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)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@date_range = args[:date_range] if args.key?(:date_range)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
|
||||
# A row in the report.
|
||||
class ReportRow
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of metrics for each requested DateRange.
|
||||
# Corresponds to the JSON property `metrics`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
||||
attr_accessor :metrics
|
||||
|
||||
# List of requested dimensions.
|
||||
# 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)
|
||||
@metrics = args[:metrics] if args.key?(:metrics)
|
||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||
end
|
||||
end
|
||||
|
||||
# A list of segment filters in the `OR` group are combined with the logical OR
|
||||
# operator.
|
||||
class OrFiltersForSegment
|
||||
|
@ -170,24 +195,24 @@ module Google
|
|||
class MetricHeader
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Headers for the pivots in the response.
|
||||
# Corresponds to the JSON property `pivotHeaders`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::PivotHeader>]
|
||||
attr_accessor :pivot_headers
|
||||
|
||||
# Headers for the metrics in the response.
|
||||
# Corresponds to the JSON property `metricHeaderEntries`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::MetricHeaderEntry>]
|
||||
attr_accessor :metric_header_entries
|
||||
|
||||
# Headers for the pivots in the response.
|
||||
# Corresponds to the JSON property `pivotHeaders`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::PivotHeader>]
|
||||
attr_accessor :pivot_headers
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@pivot_headers = args[:pivot_headers] if args.key?(:pivot_headers)
|
||||
@metric_header_entries = args[:metric_header_entries] if args.key?(:metric_header_entries)
|
||||
@pivot_headers = args[:pivot_headers] if args.key?(:pivot_headers)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -434,12 +459,6 @@ module Google
|
|||
class Pivot
|
||||
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
|
||||
|
@ -480,17 +499,23 @@ module Google
|
|||
# @return [Array<Google::Apis::AnalyticsreportingV4::DimensionFilterClause>]
|
||||
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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
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)
|
||||
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
||||
@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)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -606,24 +631,24 @@ module Google
|
|||
class MetricHeaderEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The type of the metric, for example `INTEGER`.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# The name of the header.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The type of the metric, for example `INTEGER`.
|
||||
# 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)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -631,12 +656,36 @@ module Google
|
|||
class ReportData
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
# golden when the exact same request will not produce any new results if
|
||||
# asked at a later point in time.
|
||||
# Corresponds to the JSON property `isDataGolden`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_data_golden
|
||||
alias_method :is_data_golden?, :is_data_golden
|
||||
|
||||
# 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.
|
||||
# Corresponds to the JSON property `dataLastRefreshed`
|
||||
# @return [String]
|
||||
attr_accessor :data_last_refreshed
|
||||
|
||||
# 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`
|
||||
# Corresponds to the JSON property `maximums`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
||||
attr_accessor :minimums
|
||||
attr_accessor :maximums
|
||||
|
||||
# If the results are
|
||||
# [sampled](https://support.google.com/analytics/answer/2637192),
|
||||
|
@ -649,6 +698,13 @@ module Google
|
|||
# @return [Array<String>]
|
||||
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
|
||||
# the query, every requested value format gets a total. The total
|
||||
# for a value format is computed by first totaling the metrics
|
||||
|
@ -671,52 +727,21 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :samples_read_counts
|
||||
|
||||
# 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
|
||||
# asked at a later point in time.
|
||||
# Corresponds to the JSON property `isDataGolden`
|
||||
# @return [Boolean]
|
||||
attr_accessor :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
|
||||
# before this timestamp are included in the calculation of the report.
|
||||
# Corresponds to the JSON property `dataLastRefreshed`
|
||||
# @return [String]
|
||||
attr_accessor :data_last_refreshed
|
||||
|
||||
# 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 `maximums`
|
||||
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
|
||||
attr_accessor :maximums
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@minimums = args[:minimums] if args.key?(:minimums)
|
||||
@sampling_space_sizes = args[:sampling_space_sizes] if args.key?(:sampling_space_sizes)
|
||||
@totals = args[:totals] if args.key?(:totals)
|
||||
@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)
|
||||
@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)
|
||||
@maximums = args[:maximums] if args.key?(:maximums)
|
||||
@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)
|
||||
@samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -724,12 +749,6 @@ module Google
|
|||
class DimensionFilter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Should the match be case sensitive? Default is false.
|
||||
# Corresponds to the JSON property `caseSensitive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :case_sensitive
|
||||
alias_method :case_sensitive?, :case_sensitive
|
||||
|
||||
# The dimension to filter on. A DimensionFilter must contain a dimension.
|
||||
# Corresponds to the JSON property `dimensionName`
|
||||
# @return [String]
|
||||
|
@ -755,17 +774,23 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :expressions
|
||||
|
||||
# Should the match be case sensitive? Default is false.
|
||||
# Corresponds to the JSON property `caseSensitive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :case_sensitive
|
||||
alias_method :case_sensitive?, :case_sensitive
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
|
||||
@dimension_name = args[:dimension_name] if args.key?(:dimension_name)
|
||||
@operator = args[:operator] if args.key?(:operator)
|
||||
@not = args[:not] if args.key?(:not)
|
||||
@expressions = args[:expressions] if args.key?(:expressions)
|
||||
@case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -914,18 +939,6 @@ module Google
|
|||
class Metric
|
||||
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
|
||||
# `INTEGER`.
|
||||
# Corresponds to the JSON property `formattingType`
|
||||
|
@ -941,15 +954,27 @@ module Google
|
|||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@expression = args[:expression] if args.key?(:expression)
|
||||
@formatting_type = args[:formatting_type] if args.key?(:formatting_type)
|
||||
@alias = args[:alias] if args.key?(:alias)
|
||||
@expression = args[:expression] if args.key?(:expression)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1034,24 +1059,24 @@ module Google
|
|||
class DateRange
|
||||
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`.
|
||||
# Corresponds to the JSON property `endDate`
|
||||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@start_date = args[:start_date] if args.key?(:start_date)
|
||||
@end_date = args[:end_date] if args.key?(:end_date)
|
||||
@start_date = args[:start_date] if args.key?(:start_date)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1059,13 +1084,6 @@ module Google
|
|||
class MetricFilter
|
||||
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.
|
||||
# Corresponds to the JSON property `comparisonValue`
|
||||
# @return [String]
|
||||
|
@ -1086,16 +1104,23 @@ module Google
|
|||
attr_accessor :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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
||||
@comparison_value = args[:comparison_value] if args.key?(:comparison_value)
|
||||
@operator = args[:operator] if args.key?(:operator)
|
||||
@not = args[:not] if args.key?(:not)
|
||||
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1103,6 +1128,14 @@ module Google
|
|||
class ReportRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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`
|
||||
# operator. Metric filters look at only the first date range and not the
|
||||
# comparing date range. Note that filtering on metrics occurs after the
|
||||
|
@ -1137,18 +1170,6 @@ module Google
|
|||
attr_accessor :hide_value_ranges
|
||||
alias_method :hide_value_ranges?, :hide_value_ranges
|
||||
|
||||
# Dimension or metric filters that restrict the data returned for your
|
||||
# request. To use the `filtersExpression`, supply a dimension or metric on
|
||||
# which to filter, followed by the filter expression. For example, the
|
||||
# following expression selects `ga:browser` dimension which starts with
|
||||
# Firefox; `ga:browser=~^Firefox`. For more information on dimensions
|
||||
# and metric filters, see
|
||||
# [Filters reference](https://developers.google.com/analytics/devguides/
|
||||
# reporting/core/v3/reference#filters).
|
||||
# Corresponds to the JSON property `filtersExpression`
|
||||
# @return [String]
|
||||
attr_accessor :filters_expression
|
||||
|
||||
# Defines a cohort group.
|
||||
# For example:
|
||||
# "cohortGroup": `
|
||||
|
@ -1166,6 +1187,18 @@ module Google
|
|||
# @return [Google::Apis::AnalyticsreportingV4::CohortGroup]
|
||||
attr_accessor :cohort_group
|
||||
|
||||
# Dimension or metric filters that restrict the data returned for your
|
||||
# request. To use the `filtersExpression`, supply a dimension or metric on
|
||||
# which to filter, followed by the filter expression. For example, the
|
||||
# following expression selects `ga:browser` dimension which starts with
|
||||
# Firefox; `ga:browser=~^Firefox`. For more information on dimensions
|
||||
# and metric filters, see
|
||||
# [Filters reference](https://developers.google.com/analytics/devguides/
|
||||
# reporting/core/v3/reference#filters).
|
||||
# Corresponds to the JSON property `filtersExpression`
|
||||
# @return [String]
|
||||
attr_accessor :filters_expression
|
||||
|
||||
# The Analytics
|
||||
# [view ID](https://support.google.com/analytics/answer/1009618)
|
||||
# from which to retrieve data. Every [ReportRequest](#ReportRequest)
|
||||
|
@ -1250,26 +1283,19 @@ module Google
|
|||
# @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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@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)
|
||||
@filters_expression = args[:filters_expression] if args.key?(:filters_expression)
|
||||
@cohort_group = args[:cohort_group] if args.key?(:cohort_group)
|
||||
@filters_expression = args[:filters_expression] if args.key?(:filters_expression)
|
||||
@view_id = args[:view_id] if args.key?(:view_id)
|
||||
@metrics = args[:metrics] if args.key?(:metrics)
|
||||
@dimension_filter_clauses = args[:dimension_filter_clauses] if args.key?(:dimension_filter_clauses)
|
||||
|
@ -1280,7 +1306,6 @@ module Google
|
|||
@page_token = args[:page_token] if args.key?(:page_token)
|
||||
@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
|
||||
|
||||
|
@ -1341,12 +1366,6 @@ module Google
|
|||
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]
|
||||
|
@ -1358,15 +1377,21 @@ module Google
|
|||
# @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition]
|
||||
attr_accessor :user_segment
|
||||
|
||||
# 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
|
||||
|
||||
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)
|
||||
@session_segment = args[:session_segment] if args.key?(:session_segment)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1390,31 +1415,6 @@ module Google
|
|||
@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
|
||||
|
|
|
@ -22,13 +22,19 @@ module Google
|
|||
module Apis
|
||||
module AnalyticsreportingV4
|
||||
|
||||
class ColumnHeader
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentFilterClause
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricFilterClause
|
||||
class ReportRow
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -40,7 +46,7 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
class MetricFilterClause
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -227,18 +233,40 @@ module Google
|
|||
end
|
||||
|
||||
class ColumnHeader
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dimensions, as: 'dimensions'
|
||||
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentFilterClause
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
|
||||
|
||||
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
|
||||
|
||||
property :not, as: 'not'
|
||||
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
collection :dimensions, as: 'dimensions'
|
||||
end
|
||||
end
|
||||
|
||||
class Cohort
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :name, as: 'name'
|
||||
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -252,25 +280,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Cohort
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
collection :dimensions, as: 'dimensions'
|
||||
end
|
||||
end
|
||||
|
||||
class OrFiltersForSegment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -282,10 +291,10 @@ module Google
|
|||
class MetricHeader
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation
|
||||
|
||||
collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
|
||||
|
||||
collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -355,7 +364,6 @@ module Google
|
|||
class Pivot
|
||||
# @private
|
||||
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
|
||||
|
||||
|
@ -363,6 +371,7 @@ module Google
|
|||
|
||||
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
||||
|
||||
property :max_group_count, as: 'maxGroupCount'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -398,38 +407,38 @@ module Google
|
|||
class MetricHeaderEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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 :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
|
||||
|
||||
property :row_count, as: 'rowCount'
|
||||
property :is_data_golden, as: 'isDataGolden'
|
||||
property :data_last_refreshed, as: 'dataLastRefreshed'
|
||||
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
|
||||
collection :minimums, as: 'minimums', 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'
|
||||
end
|
||||
end
|
||||
|
||||
class DimensionFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :case_sensitive, as: 'caseSensitive'
|
||||
property :dimension_name, as: 'dimensionName'
|
||||
property :operator, as: 'operator'
|
||||
property :not, as: 'not'
|
||||
collection :expressions, as: 'expressions'
|
||||
property :case_sensitive, as: 'caseSensitive'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -475,9 +484,9 @@ module Google
|
|||
class Metric
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :expression, as: 'expression'
|
||||
property :formatting_type, as: 'formattingType'
|
||||
property :alias, as: 'alias'
|
||||
property :expression, as: 'expression'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -511,32 +520,33 @@ module Google
|
|||
class DateRange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :start_date, as: 'startDate'
|
||||
property :end_date, as: 'endDate'
|
||||
property :start_date, as: 'startDate'
|
||||
end
|
||||
end
|
||||
|
||||
class MetricFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :metric_name, as: 'metricName'
|
||||
property :comparison_value, as: 'comparisonValue'
|
||||
property :operator, as: 'operator'
|
||||
property :not, as: 'not'
|
||||
property :metric_name, as: 'metricName'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :include_empty_rows, as: 'includeEmptyRows'
|
||||
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
|
||||
|
||||
property :page_size, as: 'pageSize'
|
||||
property :hide_totals, as: 'hideTotals'
|
||||
property :hide_value_ranges, as: 'hideValueRanges'
|
||||
property :filters_expression, as: 'filtersExpression'
|
||||
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
|
||||
|
||||
property :filters_expression, as: 'filtersExpression'
|
||||
property :view_id, as: 'viewId'
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
|
||||
|
||||
|
@ -554,7 +564,6 @@ module Google
|
|||
|
||||
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
|
||||
|
||||
property :include_empty_rows, as: 'includeEmptyRows'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -569,11 +578,11 @@ module Google
|
|||
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
|
||||
|
||||
property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -584,15 +593,6 @@ module Google
|
|||
|
||||
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
|
||||
|
|
|
@ -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://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170319'
|
||||
REVISION = '20170324'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -59,6 +59,7 @@ module Google
|
|||
# BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid
|
||||
# identifier must be provided as field_name.
|
||||
# Corresponds to the JSON property `qualifierEncoded`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :qualifier_encoded
|
||||
|
||||
|
@ -1246,8 +1247,8 @@ module Google
|
|||
# [Optional] Specifies a string that represents a null value in a CSV file. For
|
||||
# example, if you specify "\N", BigQuery interprets "\N" as a null value when
|
||||
# loading a CSV file. The default value is the empty string. If you set this
|
||||
# property to a custom value, BigQuery still interprets the empty string as a
|
||||
# null value for all data types except for STRING and BYTE. For STRING and BYTE
|
||||
# property to a custom value, BigQuery throws an error if an empty string is
|
||||
# present for all data types except for STRING and BYTE. For STRING and BYTE
|
||||
# columns, BigQuery interprets the empty string as an empty value.
|
||||
# Corresponds to the JSON property `nullMarker`
|
||||
# @return [String]
|
||||
|
@ -1370,8 +1371,10 @@ module Google
|
|||
class JobConfigurationQuery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If true, allows the query to produce arbitrarily large result tables at a
|
||||
# slight cost in performance. Requires destinationTable to be set.
|
||||
# [Optional] If true and query uses legacy SQL dialect, allows the query to
|
||||
# produce arbitrarily large result tables at a slight cost in performance.
|
||||
# Requires destinationTable to be set. For standard SQL queries, this flag is
|
||||
# ignored and large results are always allowed.
|
||||
# Corresponds to the JSON property `allowLargeResults`
|
||||
# @return [Boolean]
|
||||
attr_accessor :allow_large_results
|
||||
|
@ -1399,8 +1402,10 @@ module Google
|
|||
# @return [Google::Apis::BigqueryV2::TableReference]
|
||||
attr_accessor :destination_table
|
||||
|
||||
# [Optional] Flattens all nested and repeated fields in the query results. The
|
||||
# default value is true. allowLargeResults must be true if this is set to false.
|
||||
# [Optional] If true and query uses legacy SQL dialect, flattens all nested and
|
||||
# repeated fields in the query results. allowLargeResults must be true if this
|
||||
# is set to false. For standard SQL queries, this flag is ignored and results
|
||||
# are never flattened.
|
||||
# Corresponds to the JSON property `flattenResults`
|
||||
# @return [Boolean]
|
||||
attr_accessor :flatten_results
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/books/docs/v1/getting_started
|
||||
module BooksV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20161206'
|
||||
REVISION = '20170313'
|
||||
|
||||
# Manage your books
|
||||
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
||||
|
|
|
@ -274,6 +274,7 @@ module Google
|
|||
|
||||
# Base64 encoded data for this annotation data.
|
||||
# Corresponds to the JSON property `encoded_data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :encoded_data
|
||||
|
||||
|
@ -2579,6 +2580,11 @@ module Google
|
|||
# @return [Google::Apis::BooksV1::UserSettings::Notification::MoreFromSeries]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2587,6 +2593,7 @@ module Google
|
|||
def update!(**args)
|
||||
@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)
|
||||
@reward_expirations = args[:reward_expirations] if args.key?(:reward_expirations)
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -2626,6 +2633,25 @@ module Google
|
|||
@opted_state = args[:opted_state] if args.key?(:opted_state)
|
||||
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
|
||||
|
||||
|
|
|
@ -423,6 +423,12 @@ module Google
|
|||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RewardExpirations
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
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 :reward_expirations, as: 'rewardExpirations', class: Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations, decorator: Google::Apis::BooksV1::UserSettings::Notification::RewardExpirations::Representation
|
||||
|
||||
end
|
||||
|
||||
class MoreFromAuthors
|
||||
|
@ -1383,6 +1391,13 @@ module Google
|
|||
property :opted_state, as: 'opted_state'
|
||||
end
|
||||
end
|
||||
|
||||
class RewardExpirations
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :opted_state, as: 'opted_state'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -946,6 +946,8 @@ module Google
|
|||
|
||||
# Inserts a new annotation.
|
||||
# @param [Google::Apis::BooksV1::Annotation] annotation_object
|
||||
# @param [String] annotation_id
|
||||
# The ID for the annotation to insert.
|
||||
# @param [String] country
|
||||
# ISO-3166-1 code to override the IP-based location.
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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.request_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||
command.request_object = annotation_object
|
||||
command.response_representation = Google::Apis::BooksV1::Annotation::Representation
|
||||
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['showOnlySummaryInResponse'] = show_only_summary_in_response unless show_only_summary_in_response.nil?
|
||||
command.query['source'] = source unless source.nil?
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||
module CalendarV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20170319'
|
||||
REVISION = '20170328'
|
||||
|
||||
# Manage your calendars
|
||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/classroom/
|
||||
module ClassroomV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170322'
|
||||
REVISION = '20170329'
|
||||
|
||||
# View your Google Classroom class rosters
|
||||
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/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170327'
|
||||
REVISION = '20170330'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,54 +22,6 @@ module Google
|
|||
module Apis
|
||||
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
|
||||
|
||||
|
@ -148,81 +100,52 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
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
|
||||
class ListBuildTriggersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :done, as: 'done'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
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
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuiltImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :digest, as: 'digest'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, :base64 => true, as: 'value'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entrypoint, as: 'entrypoint'
|
||||
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
|
||||
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 FileHashes
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
|
@ -250,29 +173,29 @@ module Google
|
|||
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 :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 :status, as: 'status'
|
||||
property :timeout, as: 'timeout'
|
||||
property :logs_bucket, as: 'logsBucket'
|
||||
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'
|
||||
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'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -313,17 +236,17 @@ module Google
|
|||
class BuildOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||
end
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :generation, as: 'generation'
|
||||
property :bucket, as: 'bucket'
|
||||
property :object, as: 'object'
|
||||
property :generation, as: 'generation'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -361,6 +284,83 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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 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::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
end
|
||||
end
|
||||
|
||||
class BuiltImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :digest, as: 'digest'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_id, as: 'projectId'
|
||||
property :repo_name, as: 'repoName'
|
||||
property :branch_name, as: 'branchName'
|
||||
property :tag_name, as: 'tagName'
|
||||
property :commit_sha, as: 'commitSha'
|
||||
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 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
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -46,42 +46,6 @@ module Google
|
|||
super('https://cloudbuild.googleapis.com/', '')
|
||||
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.
|
||||
|
@ -89,11 +53,11 @@ module Google
|
|||
# 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -106,14 +70,14 @@ module Google
|
|||
# @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)
|
||||
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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
@ -122,17 +86,17 @@ module Google
|
|||
# successfully or unsuccessfully.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [Fixnum] page_size
|
||||
# Number of results to return in the list.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -145,16 +109,16 @@ module Google
|
|||
# @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)
|
||||
def list_project_builds(project_id, page_size: nil, filter: nil, page_token: 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['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['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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
@ -165,11 +129,11 @@ module Google
|
|||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -182,83 +146,51 @@ module Google
|
|||
# @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)
|
||||
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['quotaUser'] = quota_user unless quota_user.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.
|
||||
# Cancels a requested build in progress.
|
||||
# @param [String] project_id
|
||||
# ID of the project for which to configure automatic builds.
|
||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
||||
# 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 [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 result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||
# @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 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
|
||||
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.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.params['id'] = id unless id.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
|
||||
|
||||
|
@ -268,11 +200,11 @@ module Google
|
|||
# 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -285,14 +217,14 @@ module Google
|
|||
# @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)
|
||||
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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
@ -300,11 +232,11 @@ module Google
|
|||
# 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -317,13 +249,13 @@ module Google
|
|||
# @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)
|
||||
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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
@ -334,11 +266,11 @@ module Google
|
|||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -351,7 +283,7 @@ module Google
|
|||
# @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)
|
||||
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
|
||||
|
@ -359,8 +291,150 @@ module Google
|
|||
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?
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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 [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::CloudbuildV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::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::CloudbuildV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::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::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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::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
|
||||
|
||||
|
@ -377,11 +451,11 @@ module Google
|
|||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @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
|
||||
# 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
|
||||
#
|
||||
|
@ -394,89 +468,15 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(name, cancel_operation_request_object = nil, 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.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||
command.params['name'] = name unless name.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 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] 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::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::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, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.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] 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 get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
|
|
@ -28,11 +28,11 @@ module Google
|
|||
VERSION = 'V2'
|
||||
REVISION = '20170322'
|
||||
|
||||
# Manage cloud debugger
|
||||
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# Manage cloud debugger
|
||||
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -170,6 +170,59 @@ module Google
|
|||
class Breakpoint
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Breakpoint identifier, unique in the scope of the debuggee.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Represents a location in the source code.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
|
||||
attr_accessor :location
|
||||
|
||||
# Time this breakpoint was finalized as seen by the server in seconds
|
||||
# resolution.
|
||||
# Corresponds to the JSON property `finalTime`
|
||||
# @return [String]
|
||||
attr_accessor :final_time
|
||||
|
||||
# The `variable_table` exists to aid with computation, memory and network
|
||||
# traffic optimization. It enables storing a variable once and reference
|
||||
# it from multiple variables, including variables stored in the
|
||||
# `variable_table` itself.
|
||||
# For example, the same `this` object, which may appear at many levels of
|
||||
# the stack, can have all of its data stored once in this table. The
|
||||
# stack frame variables then would hold only a reference to it.
|
||||
# The variable `var_table_index` field is an index into this repeated field.
|
||||
# The stored objects are nameless and get their name from the referencing
|
||||
# variable. The effective variable is a merge of the referencing variable
|
||||
# and the referenced variable.
|
||||
# Corresponds to the JSON property `variableTable`
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
||||
attr_accessor :variable_table
|
||||
|
||||
# Time this breakpoint was created by the server in seconds resolution.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Only relevant when action is `LOG`. Defines the message to log when
|
||||
# the breakpoint hits. The message may include parameter placeholders `$0`,
|
||||
# `$1`, etc. These placeholders are replaced with the evaluated value
|
||||
# of the appropriate expression. Expressions not referenced in
|
||||
# `log_message_format` are not logged.
|
||||
# Example: `Message received, id = $0, count = $1` with
|
||||
# `expressions` = `[ message.id, message.count ]`.
|
||||
# Corresponds to the JSON property `logMessageFormat`
|
||||
# @return [String]
|
||||
attr_accessor :log_message_format
|
||||
|
||||
# A set of custom breakpoint properties, populated by the agent, to be
|
||||
# displayed to the user.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# List of read-only expressions to evaluate at the breakpoint location.
|
||||
# The expressions are composed using expressions in the programming language
|
||||
# at the source location. If the breakpoint action is `LOG`, the evaluated
|
||||
|
@ -233,65 +286,19 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :log_level
|
||||
|
||||
# Breakpoint identifier, unique in the scope of the debuggee.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Represents a location in the source code.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
|
||||
attr_accessor :location
|
||||
|
||||
# Time this breakpoint was finalized as seen by the server in seconds
|
||||
# resolution.
|
||||
# Corresponds to the JSON property `finalTime`
|
||||
# @return [String]
|
||||
attr_accessor :final_time
|
||||
|
||||
# The `variable_table` exists to aid with computation, memory and network
|
||||
# traffic optimization. It enables storing a variable once and reference
|
||||
# it from multiple variables, including variables stored in the
|
||||
# `variable_table` itself.
|
||||
# For example, the same `this` object, which may appear at many levels of
|
||||
# the stack, can have all of its data stored once in this table. The
|
||||
# stack frame variables then would hold only a reference to it.
|
||||
# The variable `var_table_index` field is an index into this repeated field.
|
||||
# The stored objects are nameless and get their name from the referencing
|
||||
# variable. The effective variable is a merge of the referencing variable
|
||||
# and the referenced variable.
|
||||
# Corresponds to the JSON property `variableTable`
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
||||
attr_accessor :variable_table
|
||||
|
||||
# Time this breakpoint was created by the server in seconds resolution.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Only relevant when action is `LOG`. Defines the message to log when
|
||||
# the breakpoint hits. The message may include parameter placeholders `$0`,
|
||||
# `$1`, etc. These placeholders are replaced with the evaluated value
|
||||
# of the appropriate expression. Expressions not referenced in
|
||||
# `log_message_format` are not logged.
|
||||
# Example: `Message received, id = $0, count = $1` with
|
||||
# `expressions` = `[ message.id, message.count ]`.
|
||||
# Corresponds to the JSON property `logMessageFormat`
|
||||
# @return [String]
|
||||
attr_accessor :log_message_format
|
||||
|
||||
# A set of custom breakpoint properties, populated by the agent, to be
|
||||
# displayed to the user.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@final_time = args[:final_time] if args.key?(:final_time)
|
||||
@variable_table = args[:variable_table] if args.key?(:variable_table)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@expressions = args[:expressions] if args.key?(:expressions)
|
||||
@evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
|
||||
@is_final_state = args[:is_final_state] if args.key?(:is_final_state)
|
||||
|
@ -301,13 +308,6 @@ module Google
|
|||
@user_email = args[:user_email] if args.key?(:user_email)
|
||||
@action = args[:action] if args.key?(:action)
|
||||
@log_level = args[:log_level] if args.key?(:log_level)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@final_time = args[:final_time] if args.key?(:final_time)
|
||||
@variable_table = args[:variable_table] if args.key?(:variable_table)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -354,12 +354,6 @@ module Google
|
|||
class SourceContext
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A GitSourceContext denotes a particular revision in a third party Git
|
||||
# repository (e.g. GitHub).
|
||||
# Corresponds to the JSON property `git`
|
||||
# @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
|
||||
attr_accessor :git
|
||||
|
||||
# A SourceContext referring to a Gerrit project.
|
||||
# Corresponds to the JSON property `gerrit`
|
||||
# @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
|
||||
|
@ -376,16 +370,22 @@ module Google
|
|||
# @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
|
||||
attr_accessor :cloud_workspace
|
||||
|
||||
# A GitSourceContext denotes a particular revision in a third party Git
|
||||
# repository (e.g. GitHub).
|
||||
# Corresponds to the JSON property `git`
|
||||
# @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
|
||||
attr_accessor :git
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@git = args[:git] if args.key?(:git)
|
||||
@gerrit = args[:gerrit] if args.key?(:gerrit)
|
||||
@cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo)
|
||||
@cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace)
|
||||
@git = args[:git] if args.key?(:git)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -394,6 +394,11 @@ module Google
|
|||
class CloudRepoSourceContext
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An alias to a repo revision.
|
||||
# Corresponds to the JSON property `aliasContext`
|
||||
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
|
||||
attr_accessor :alias_context
|
||||
|
||||
# A revision ID.
|
||||
# Corresponds to the JSON property `revisionId`
|
||||
# @return [String]
|
||||
|
@ -409,26 +414,21 @@ module Google
|
|||
# @return [Google::Apis::ClouddebuggerV2::RepoId]
|
||||
attr_accessor :repo_id
|
||||
|
||||
# An alias to a repo revision.
|
||||
# Corresponds to the JSON property `aliasContext`
|
||||
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
|
||||
attr_accessor :alias_context
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alias_context = args[:alias_context] if args.key?(:alias_context)
|
||||
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
||||
@alias_name = args[:alias_name] if args.key?(:alias_name)
|
||||
@repo_id = args[:repo_id] if args.key?(:repo_id)
|
||||
@alias_context = args[:alias_context] if args.key?(:alias_context)
|
||||
end
|
||||
end
|
||||
|
||||
# Request to register a debuggee.
|
||||
class RegisterDebuggeeRequest
|
||||
# Response for registering a debuggee.
|
||||
class RegisterDebuggeeResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents the application to debug. The application may include one or more
|
||||
|
@ -450,8 +450,8 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response for registering a debuggee.
|
||||
class RegisterDebuggeeResponse
|
||||
# Request to register a debuggee.
|
||||
class RegisterDebuggeeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents the application to debug. The application may include one or more
|
||||
|
@ -640,6 +640,11 @@ module Google
|
|||
class Variable
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Simple value of the variable.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
# Reference to a variable in the shared variable table. More than
|
||||
# one variable can reference the same variable in the table. The
|
||||
# `var_table_index` field is an index into `variable_table` in Breakpoint.
|
||||
|
@ -647,11 +652,6 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :var_table_index
|
||||
|
||||
# Simple value of the variable.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
# Members contained or pointed to by the variable.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
||||
|
@ -685,8 +685,8 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@var_table_index = args[:var_table_index] if args.key?(:var_table_index)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
@var_table_index = args[:var_table_index] if args.key?(:var_table_index)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
|
@ -737,25 +737,25 @@ module Google
|
|||
class RepoId
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A server-assigned, globally unique identifier.
|
||||
# Corresponds to the JSON property `uid`
|
||||
# @return [String]
|
||||
attr_accessor :uid
|
||||
|
||||
# Selects a repo using a Google Cloud Platform project ID
|
||||
# (e.g. winged-cargo-31) and a repo name within that project.
|
||||
# Corresponds to the JSON property `projectRepoId`
|
||||
# @return [Google::Apis::ClouddebuggerV2::ProjectRepoId]
|
||||
attr_accessor :project_repo_id
|
||||
|
||||
# A server-assigned, globally unique identifier.
|
||||
# Corresponds to the JSON property `uid`
|
||||
# @return [String]
|
||||
attr_accessor :uid
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@uid = args[:uid] if args.key?(:uid)
|
||||
@project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id)
|
||||
@uid = args[:uid] if args.key?(:uid)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -888,24 +888,24 @@ module Google
|
|||
class SourceLocation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Path to the source file within the source context of the target binary.
|
||||
# Corresponds to the JSON property `path`
|
||||
# @return [String]
|
||||
attr_accessor :path
|
||||
|
||||
# Line inside the file. The first line in the file has the value `1`.
|
||||
# Corresponds to the JSON property `line`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :line
|
||||
|
||||
# Path to the source file within the source context of the target binary.
|
||||
# Corresponds to the JSON property `path`
|
||||
# @return [String]
|
||||
attr_accessor :path
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@path = args[:path] if args.key?(:path)
|
||||
@line = args[:line] if args.key?(:line)
|
||||
@path = args[:path] if args.key?(:path)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -917,24 +917,12 @@ module Google
|
|||
class Debuggee
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique identifier for the debuggee generated by the controller service.
|
||||
# Corresponds to the JSON property `id`
|
||||
# Human readable description of the debuggee.
|
||||
# Including a human-readable project name, environment name and version
|
||||
# information is recommended.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Version ID of the agent release. The version ID is structured as
|
||||
# following: `domain/type/vmajor.minor` (for example
|
||||
# `google.com/gcp-java/v1.1`).
|
||||
# Corresponds to the JSON property `agentVersion`
|
||||
# @return [String]
|
||||
attr_accessor :agent_version
|
||||
|
||||
# If set to `true`, indicates that the agent should disable itself and
|
||||
# detach from the debuggee.
|
||||
# Corresponds to the JSON property `isDisabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_disabled
|
||||
alias_method :is_disabled?, :is_disabled
|
||||
attr_accessor :description
|
||||
|
||||
# Debuggee uniquifier within the project.
|
||||
# Any string that identifies the application within the project can be used.
|
||||
|
@ -943,13 +931,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :uniquifier
|
||||
|
||||
# Human readable description of the debuggee.
|
||||
# Including a human-readable project name, environment name and version
|
||||
# information is recommended.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# References to the locations and revisions of the source code used in the
|
||||
# deployed application.
|
||||
# NOTE: This field is deprecated. Consumers should use
|
||||
|
@ -974,6 +955,13 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# If set to `true`, indicates that the debuggee is considered as inactive by
|
||||
# the Controller service.
|
||||
# Corresponds to the JSON property `isInactive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_inactive
|
||||
alias_method :is_inactive?, :is_inactive
|
||||
|
||||
# Represents a contextual status message.
|
||||
# The message can indicate an error or informational status, and refer to
|
||||
# specific parts of the containing object.
|
||||
|
@ -983,36 +971,48 @@ module Google
|
|||
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
|
||||
attr_accessor :status
|
||||
|
||||
# If set to `true`, indicates that the debuggee is considered as inactive by
|
||||
# the Controller service.
|
||||
# Corresponds to the JSON property `isInactive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_inactive
|
||||
alias_method :is_inactive?, :is_inactive
|
||||
|
||||
# Project the debuggee is associated with.
|
||||
# Use the project number when registering a Google Cloud Platform project.
|
||||
# Corresponds to the JSON property `project`
|
||||
# @return [String]
|
||||
attr_accessor :project
|
||||
|
||||
# If set to `true`, indicates that the agent should disable itself and
|
||||
# detach from the debuggee.
|
||||
# Corresponds to the JSON property `isDisabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_disabled
|
||||
alias_method :is_disabled?, :is_disabled
|
||||
|
||||
# Version ID of the agent release. The version ID is structured as
|
||||
# following: `domain/type/vmajor.minor` (for example
|
||||
# `google.com/gcp-java/v1.1`).
|
||||
# Corresponds to the JSON property `agentVersion`
|
||||
# @return [String]
|
||||
attr_accessor :agent_version
|
||||
|
||||
# Unique identifier for the debuggee generated by the controller service.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
||||
@is_disabled = args[:is_disabled] if args.key?(:is_disabled)
|
||||
@uniquifier = args[:uniquifier] if args.key?(:uniquifier)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@uniquifier = args[:uniquifier] if args.key?(:uniquifier)
|
||||
@source_contexts = args[:source_contexts] if args.key?(:source_contexts)
|
||||
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@is_inactive = args[:is_inactive] if args.key?(:is_inactive)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@project = args[:project] if args.key?(:project)
|
||||
@is_disabled = args[:is_disabled] if args.key?(:is_disabled)
|
||||
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -82,13 +82,13 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RegisterDebuggeeRequest
|
||||
class RegisterDebuggeeResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RegisterDebuggeeResponse
|
||||
class RegisterDebuggeeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -232,6 +232,15 @@ module Google
|
|||
class Breakpoint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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'
|
||||
collection :expressions, as: 'expressions'
|
||||
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||
|
||||
|
@ -244,15 +253,6 @@ module Google
|
|||
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
|
||||
|
||||
|
@ -275,30 +275,30 @@ module Google
|
|||
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
|
||||
|
||||
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CloudRepoSourceContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
||||
|
||||
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 RegisterDebuggeeRequest
|
||||
class RegisterDebuggeeResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||
|
@ -306,7 +306,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class RegisterDebuggeeResponse
|
||||
class RegisterDebuggeeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||
|
@ -343,8 +343,8 @@ module Google
|
|||
class Variable
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :var_table_index, as: 'varTableIndex'
|
||||
property :value, as: 'value'
|
||||
property :var_table_index, as: 'varTableIndex'
|
||||
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
|
||||
|
@ -370,9 +370,9 @@ module Google
|
|||
class RepoId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uid, as: 'uid'
|
||||
property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation
|
||||
|
||||
property :uid, as: 'uid'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -418,28 +418,28 @@ module Google
|
|||
class SourceLocation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :path, as: 'path'
|
||||
property :line, as: 'line'
|
||||
property :path, as: 'path'
|
||||
end
|
||||
end
|
||||
|
||||
class Debuggee
|
||||
# @private
|
||||
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 :description, as: 'description'
|
||||
property :uniquifier, as: 'uniquifier'
|
||||
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
||||
|
||||
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :is_inactive, as: 'isInactive'
|
||||
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||
|
||||
property :is_inactive, as: 'isInactive'
|
||||
property :project, as: 'project'
|
||||
property :is_disabled, as: 'isDisabled'
|
||||
property :agent_version, as: 'agentVersion'
|
||||
property :id, as: 'id'
|
||||
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/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
|
||||
|
||||
# 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
|
||||
|
||||
# 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 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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@group = args[:group] if args.key?(:group)
|
||||
@first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
|
||||
@count = args[:count] if args.key?(:count)
|
||||
@affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count)
|
||||
@last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time)
|
||||
@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)
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@group_id = args[:group_id] if args.key?(:group_id)
|
||||
@tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues)
|
||||
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 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@referrer = args[:referrer] if args.key?(:referrer)
|
||||
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
@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)
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@context = args[:context] if args.key?(:context)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
@service_context = args[:service_context] if args.key?(:service_context)
|
||||
@event_time = args[:event_time] if args.key?(:event_time)
|
||||
end
|
||||
end
|
||||
|
||||
# An error event which is reported to the Error Reporting system.
|
||||
class ReportedErrorEvent
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
|
||||
# [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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@context = args[:context] if args.key?(:context)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
@service_context = args[:service_context] if args.key?(:service_context)
|
||||
@event_time = args[:event_time] if args.key?(:event_time)
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@http_request = args[:http_request] if args.key?(:http_request)
|
||||
@user = args[:user] if args.key?(:user)
|
||||
@report_location = args[:report_location] if args.key?(:report_location)
|
||||
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 :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
|
||||
|
||||
property :first_seen_time, as: 'firstSeenTime'
|
||||
property :count, as: 'count'
|
||||
property :affected_users_count, as: 'affectedUsersCount'
|
||||
property :last_seen_time, as: 'lastSeenTime'
|
||||
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
|
||||
|
||||
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 :name, as: 'name'
|
||||
property :group_id, as: 'groupId'
|
||||
collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
|
||||
|
||||
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 :referrer, as: 'referrer'
|
||||
property :user_agent, as: 'userAgent'
|
||||
property :url, as: 'url'
|
||||
property :response_status_code, as: 'responseStatusCode'
|
||||
property :method_prop, as: 'method'
|
||||
property :remote_ip, as: 'remoteIp'
|
||||
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 :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
|
||||
|
||||
property :event_time, as: 'eventTime'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportedErrorEvent
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
property :event_time, as: 'eventTime'
|
||||
end
|
||||
end
|
||||
|
||||
class ErrorContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
|
||||
|
||||
property :user, as: 'user'
|
||||
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::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
|
||||
|
||||
# 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] service_filter_service
|
||||
# [Optional] The exact value to match against
|
||||
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
|
||||
# ServiceContext#FIELDS.service).
|
||||
# @param [String] page_token
|
||||
# [Optional] A `next_page_token` provided by a previous response.
|
||||
# @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] group_id
|
||||
# [Required] The group for which events shall be returned.
|
||||
# @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, service_filter_service: nil, page_token: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, group_id: 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['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.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['groupId'] = group_id unless group_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
|
||||
|
||||
# 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
|
||||
|
||||
# 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] 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] 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] 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, 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, timed_count_duration: nil, page_token: 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['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['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -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
|
||||
|
||||
# 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
|
||||
|
||||
# The canonical id for this location. For example: `"us-east1"`.
|
||||
# Corresponds to the JSON property `locationId`
|
||||
# @return [String]
|
||||
attr_accessor :location_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@location_id = args[:location_id] if args.key?(:location_id)
|
||||
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
|
||||
hash :metadata, as: 'metadata'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :location_id, as: 'locationId'
|
||||
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
|
|
@ -22,78 +22,6 @@ module Google
|
|||
module Apis
|
||||
module CloudkmsV1
|
||||
|
||||
# A resource that represents Google Cloud Platform location.
|
||||
class Location
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@location_id = args[:location_id] if args.key?(:location_id)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for KeyManagementService.ListCryptoKeys.
|
||||
class ListCryptoKeysResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A token to retrieve next page of results. Pass this value in
|
||||
# ListCryptoKeysRequest.page_token to retrieve the next page of results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The list of CryptoKeys.
|
||||
# Corresponds to the JSON property `cryptoKeys`
|
||||
# @return [Array<Google::Apis::CloudkmsV1::CryptoKey>]
|
||||
attr_accessor :crypto_keys
|
||||
|
||||
# The total number of CryptoKeys that matched the query.
|
||||
# Corresponds to the JSON property `totalSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_size
|
||||
|
||||
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)
|
||||
@crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
|
||||
@total_size = args[:total_size] if args.key?(:total_size)
|
||||
end
|
||||
end
|
||||
|
||||
# A condition to be met.
|
||||
class Condition
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -108,27 +36,27 @@ module Google
|
|||
# @return [String]
|
||||
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
|
||||
# the IAM system for access control.
|
||||
# Corresponds to the JSON property `sys`
|
||||
# @return [String]
|
||||
attr_accessor :sys
|
||||
|
||||
# Trusted attributes supplied by the IAM system.
|
||||
# Corresponds to the JSON property `iam`
|
||||
# DEPRECATED. Use 'values' instead.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :iam
|
||||
attr_accessor :value
|
||||
|
||||
# The objects of the condition. This is mutually exclusive with 'value'.
|
||||
# Corresponds to the JSON property `values`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :values
|
||||
|
||||
# Trusted attributes supplied by the IAM system.
|
||||
# Corresponds to the JSON property `iam`
|
||||
# @return [String]
|
||||
attr_accessor :iam
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -137,10 +65,10 @@ module Google
|
|||
def update!(**args)
|
||||
@op = args[:op] if args.key?(:op)
|
||||
@svc = args[:svc] if args.key?(:svc)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
@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)
|
||||
@iam = args[:iam] if args.key?(:iam)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -218,6 +146,7 @@ module Google
|
|||
|
||||
# The decrypted data originally supplied in EncryptRequest.plaintext.
|
||||
# Corresponds to the JSON property `plaintext`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :plaintext
|
||||
|
||||
|
@ -253,6 +182,83 @@ module Google
|
|||
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 encrypted data.
|
||||
# Corresponds to the JSON property `ciphertext`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :ciphertext
|
||||
|
||||
# The resource name of the CryptoKeyVersion used in encryption.
|
||||
# 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)
|
||||
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
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
|
||||
|
||||
# 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
|
||||
|
@ -282,19 +288,6 @@ module Google
|
|||
class Policy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# `etag` is used for optimistic concurrency control as a way to help
|
||||
# prevent simultaneous updates of a policy from overwriting each other.
|
||||
# It is strongly suggested that systems make use of the `etag` in the
|
||||
# read-modify-write cycle to perform policy updates in order to avoid race
|
||||
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
||||
# systems are expected to put that etag in the request to `setIamPolicy` to
|
||||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten blindly.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `iamOwned`
|
||||
# @return [Boolean]
|
||||
|
@ -331,94 +324,32 @@ module Google
|
|||
# @return [Array<Google::Apis::CloudkmsV1::Binding>]
|
||||
attr_accessor :bindings
|
||||
|
||||
# `etag` is used for optimistic concurrency control as a way to help
|
||||
# prevent simultaneous updates of a policy from overwriting each other.
|
||||
# It is strongly suggested that systems make use of the `etag` in the
|
||||
# read-modify-write cycle to perform policy updates in order to avoid race
|
||||
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
||||
# systems are expected to put that etag in the request to `setIamPolicy` to
|
||||
# ensure that their change will be applied to the same version of the policy.
|
||||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten blindly.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
||||
@rules = args[:rules] if args.key?(:rules)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||
@bindings = args[:bindings] if args.key?(:bindings)
|
||||
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)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -587,18 +518,6 @@ module Google
|
|||
class CryptoKeyVersion
|
||||
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.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
|
@ -617,17 +536,29 @@ module Google
|
|||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
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)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@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
|
||||
|
||||
|
@ -688,26 +619,28 @@ module Google
|
|||
class EncryptRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. The data to encrypt. Must be no larger than 64KiB.
|
||||
# Corresponds to the JSON property `plaintext`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :plaintext
|
||||
|
||||
# Optional data that, if specified, must also be provided during decryption
|
||||
# through DecryptRequest.additional_authenticated_data. Must be no
|
||||
# larger than 64KiB.
|
||||
# Corresponds to the JSON property `additionalAuthenticatedData`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :additional_authenticated_data
|
||||
|
||||
# Required. The data to encrypt. Must be no larger than 64KiB.
|
||||
# Corresponds to the JSON property `plaintext`
|
||||
# @return [String]
|
||||
attr_accessor :plaintext
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
|
||||
@plaintext = args[:plaintext] if args.key?(:plaintext)
|
||||
@additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -715,6 +648,11 @@ module Google
|
|||
class ListCryptoKeyVersionsResponse
|
||||
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
|
||||
# ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
|
||||
# results.
|
||||
|
@ -728,20 +666,15 @@ module Google
|
|||
# @return [Fixnum]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
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)
|
||||
@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
|
||||
|
||||
|
@ -778,6 +711,68 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A rule to be applied in a Policy.
|
||||
class Rule
|
||||
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
|
||||
# that match the LOG action.
|
||||
# Corresponds to the JSON property `logConfig`
|
||||
# @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
|
||||
attr_accessor :log_config
|
||||
|
||||
# If one or more 'in' clauses are specified, the rule matches if
|
||||
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
||||
# Corresponds to the JSON property `in`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :in
|
||||
|
||||
# A permission is a string of form '<service>.<resource type>.<verb>'
|
||||
# (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
|
||||
# and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :permissions
|
||||
|
||||
# Required
|
||||
# Corresponds to the JSON property `action`
|
||||
# @return [String]
|
||||
attr_accessor :action
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
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)
|
||||
@in = args[:in] if args.key?(:in)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
@action = args[:action] if args.key?(:action)
|
||||
end
|
||||
end
|
||||
|
||||
# A CryptoKey represents a logical key that can be used for cryptographic
|
||||
# operations.
|
||||
# A CryptoKey is made up of one or more versions, which
|
||||
|
@ -844,68 +839,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A rule to be applied in a Policy.
|
||||
class Rule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
||||
# that match the LOG action.
|
||||
# Corresponds to the JSON property `logConfig`
|
||||
# @return [Array<Google::Apis::CloudkmsV1::LogConfig>]
|
||||
attr_accessor :log_config
|
||||
|
||||
# If one or more 'in' clauses are specified, the rule matches if
|
||||
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
||||
# Corresponds to the JSON property `in`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :in
|
||||
|
||||
# A permission is a string of form '<service>.<resource type>.<verb>'
|
||||
# (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
|
||||
# and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :permissions
|
||||
|
||||
# Required
|
||||
# Corresponds to the JSON property `action`
|
||||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@log_config = args[:log_config] if args.key?(:log_config)
|
||||
@in = args[:in] if args.key?(:in)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
@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
|
||||
|
||||
# Specifies what kind of log the caller must write
|
||||
class LogConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -941,15 +874,6 @@ module Google
|
|||
class SetIamPolicyRequest
|
||||
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
|
||||
# specify access control policies for Cloud Platform resources.
|
||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
||||
|
@ -980,14 +904,23 @@ module Google
|
|||
# @return [Google::Apis::CloudkmsV1::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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
@policy = args[:policy] if args.key?(:policy)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -998,12 +931,14 @@ module Google
|
|||
# Required. The encrypted data originally returned in
|
||||
# EncryptResponse.ciphertext.
|
||||
# Corresponds to the JSON property `ciphertext`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :ciphertext
|
||||
|
||||
# Optional data that must match the data originally supplied in
|
||||
# EncryptRequest.additional_authenticated_data.
|
||||
# Corresponds to the JSON property `additionalAuthenticatedData`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :additional_authenticated_data
|
||||
|
||||
|
@ -1017,6 +952,78 @@ module Google
|
|||
@additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
|
||||
end
|
||||
end
|
||||
|
||||
# A resource that represents Google Cloud Platform location.
|
||||
class Location
|
||||
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.
|
||||
# For example: `"projects/example-project/locations/us-east1"`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@location_id = args[:location_id] if args.key?(:location_id)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for KeyManagementService.ListCryptoKeys.
|
||||
class ListCryptoKeysResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A token to retrieve next page of results. Pass this value in
|
||||
# ListCryptoKeysRequest.page_token to retrieve the next page of results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The list of CryptoKeys.
|
||||
# Corresponds to the JSON property `cryptoKeys`
|
||||
# @return [Array<Google::Apis::CloudkmsV1::CryptoKey>]
|
||||
attr_accessor :crypto_keys
|
||||
|
||||
# The total number of CryptoKeys that matched the query.
|
||||
# Corresponds to the JSON property `totalSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_size
|
||||
|
||||
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)
|
||||
@crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
|
||||
@total_size = args[:total_size] if args.key?(:total_size)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,18 +22,6 @@ module Google
|
|||
module Apis
|
||||
module CloudkmsV1
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListCryptoKeysResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Condition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -64,7 +52,13 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
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
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -76,13 +70,7 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class KeyRing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EncryptResponse
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -160,13 +148,13 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CryptoKey
|
||||
class Rule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Rule
|
||||
class CryptoKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -191,23 +179,15 @@ module Google
|
|||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
hash :labels, as: 'labels'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListCryptoKeysResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
property :total_size, as: 'totalSize'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Condition
|
||||
|
@ -215,10 +195,10 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :op, as: 'op'
|
||||
property :svc, as: 'svc'
|
||||
property :value, as: 'value'
|
||||
property :sys, as: 'sys'
|
||||
property :iam, as: 'iam'
|
||||
property :value, as: 'value'
|
||||
collection :values, as: 'values'
|
||||
property :iam, as: 'iam'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -252,18 +232,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
class KeyRing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
|
||||
property :name, as: 'name'
|
||||
property :create_time, as: 'createTime'
|
||||
end
|
||||
end
|
||||
|
||||
class EncryptResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ciphertext, :base64 => true, as: 'ciphertext'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -276,19 +257,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class KeyRing
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :create_time, as: 'createTime'
|
||||
end
|
||||
end
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
|
||||
|
||||
class EncryptResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :ciphertext, :base64 => true, as: 'ciphertext'
|
||||
property :version, as: 'version'
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -334,11 +314,11 @@ module Google
|
|||
class CryptoKeyVersion
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destroy_time, as: 'destroyTime'
|
||||
property :create_time, as: 'createTime'
|
||||
property :state, as: 'state'
|
||||
property :name, as: 'name'
|
||||
property :destroy_event_time, as: 'destroyEventTime'
|
||||
property :destroy_time, as: 'destroyTime'
|
||||
property :create_time, as: 'createTime'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -359,18 +339,18 @@ module Google
|
|||
class EncryptRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
||||
property :plaintext, :base64 => true, as: 'plaintext'
|
||||
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCryptoKeyVersionsResponse
|
||||
# @private
|
||||
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
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :total_size, as: 'totalSize'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -387,6 +367,21 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Rule
|
||||
# @private
|
||||
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 :in, as: 'in'
|
||||
collection :permissions, as: 'permissions'
|
||||
property :action, as: 'action'
|
||||
end
|
||||
end
|
||||
|
||||
class CryptoKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -400,21 +395,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Rule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
|
||||
|
||||
collection :in, as: 'in'
|
||||
collection :permissions, as: 'permissions'
|
||||
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
|
||||
|
||||
class LogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -430,9 +410,9 @@ module Google
|
|||
class SetIamPolicyRequest
|
||||
# @private
|
||||
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 :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -443,6 +423,26 @@ module Google
|
|||
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
||||
end
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCryptoKeysResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
|
||||
|
||||
property :total_size, as: 'totalSize'
|
||||
end
|
||||
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
|
||||
module CloudresourcemanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170324'
|
||||
REVISION = '20170329'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
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 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 AuditConfig
|
||||
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 Constraint
|
||||
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 Status
|
||||
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 RestoreDefault
|
||||
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 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 BooleanPolicy
|
||||
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 Lien
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Ancestor
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -100,7 +250,7 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FolderOperation
|
||||
class ListAvailableOrgPolicyConstraintsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -112,7 +262,7 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListAvailableOrgPolicyConstraintsRequest
|
||||
class FolderOperation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -125,153 +275,225 @@ module Google
|
|||
end
|
||||
|
||||
class GetEffectiveOrgPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :constraint, as: 'constraint'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOrgPoliciesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @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
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
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
|
||||
hash :metadata, as: 'metadata'
|
||||
property :done, as: 'done'
|
||||
end
|
||||
end
|
||||
|
||||
class Constraint
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @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
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
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 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 Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class RestoreDefault
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GetOrgPolicyRequest
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :constraint, as: 'constraint'
|
||||
end
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
class ProjectCreationStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ready, as: 'ready'
|
||||
property :create_time, as: 'createTime'
|
||||
property :gettable, as: 'gettable'
|
||||
end
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
class OrganizationOwner
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :directory_customer_id, as: 'directoryCustomerId'
|
||||
end
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
class Project
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @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::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
hash :labels, as: 'labels'
|
||||
property :create_time, as: 'createTime'
|
||||
end
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
class ListOrgPoliciesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @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
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :error_message_id, as: 'errorMessageId'
|
||||
end
|
||||
end
|
||||
|
||||
class BooleanPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enforced, as: 'enforced'
|
||||
end
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
class OrgPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
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'
|
||||
end
|
||||
end
|
||||
|
||||
class Lien
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :reason, as: 'reason'
|
||||
property :origin, as: 'origin'
|
||||
collection :restrictions, as: 'restrictions'
|
||||
property :parent, as: 'parent'
|
||||
property :create_time, as: 'createTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Ancestor
|
||||
|
@ -315,12 +537,12 @@ module Google
|
|||
class Organization
|
||||
# @private
|
||||
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 :lifecycle_state, as: 'lifecycleState'
|
||||
property :name, as: 'name'
|
||||
property :display_name, as: 'displayName'
|
||||
property :creation_time, as: 'creationTime'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -336,11 +558,11 @@ module Google
|
|||
class ListPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :all_values, as: 'allValues'
|
||||
collection :allowed_values, as: 'allowedValues'
|
||||
property :suggested_value, as: 'suggestedValue'
|
||||
property :inherit_from_parent, as: 'inheritFromParent'
|
||||
collection :denied_values, as: 'deniedValues'
|
||||
property :all_values, as: 'allValues'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -363,9 +585,9 @@ module Google
|
|||
class SearchOrganizationsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :filter, as: 'filter'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
property :filter, as: 'filter'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -382,13 +604,11 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class FolderOperation
|
||||
class ListAvailableOrgPolicyConstraintsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation_type, as: 'operationType'
|
||||
property :display_name, as: 'displayName'
|
||||
property :source_parent, as: 'sourceParent'
|
||||
property :destination_parent, as: 'destinationParent'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -404,241 +624,21 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListAvailableOrgPolicyConstraintsRequest
|
||||
class FolderOperation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :display_name, as: 'displayName'
|
||||
property :source_parent, as: 'sourceParent'
|
||||
property :destination_parent, as: 'destinationParent'
|
||||
end
|
||||
end
|
||||
|
||||
class ResourceId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :id, as: 'id'
|
||||
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'
|
||||
property :type, as: 'type'
|
||||
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
|
||||
module CloudresourcemanagerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20170324'
|
||||
REVISION = '20170329'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,103 +22,7 @@ module Google
|
|||
module Apis
|
||||
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 Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -130,19 +34,37 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UndeleteProjectRequest
|
||||
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 ProjectCreationStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListPolicy
|
||||
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
|
||||
|
@ -160,19 +82,25 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListProjectsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetAncestryRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class Project
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListAvailableOrgPolicyConstraintsRequest
|
||||
class TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -190,58 +118,54 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FolderOperationError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ResourceId
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
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 AuditConfig
|
||||
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 SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOrganizationsResponse
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
class GetOrgPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class UndeleteProjectRequest
|
||||
|
@ -250,11 +174,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ClearOrgPolicyRequest
|
||||
class Organization
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :constraint, as: 'constraint'
|
||||
property :creation_time, as: 'creationTime'
|
||||
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'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -267,7 +196,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class BooleanConstraint
|
||||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
|
@ -280,12 +209,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class OrganizationOwner
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -293,139 +216,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListProjectsResponse
|
||||
# @private
|
||||
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
|
||||
end
|
||||
|
||||
class Project
|
||||
# @private
|
||||
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'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :lifecycle_state, as: 'lifecycleState'
|
||||
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 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 :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
|
||||
|
||||
class BooleanPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enforced, as: 'enforced'
|
||||
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 :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Organization
|
||||
# @private
|
||||
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'
|
||||
property :organization_id, as: 'organizationId'
|
||||
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
|
||||
|
||||
class ListPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :all_values, as: 'allValues'
|
||||
collection :allowed_values, as: 'allowedValues'
|
||||
property :suggested_value, as: 'suggestedValue'
|
||||
property :inherit_from_parent, as: 'inheritFromParent'
|
||||
collection :denied_values, as: 'deniedValues'
|
||||
end
|
||||
end
|
||||
|
||||
class GetAncestryResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -442,12 +232,35 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListProjectsResponse
|
||||
# @private
|
||||
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
|
||||
end
|
||||
|
||||
class GetAncestryRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :create_time, as: 'createTime'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -455,14 +268,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListAvailableOrgPolicyConstraintsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -485,6 +290,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class FolderOperationError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :error_message_id, as: 'errorMessageId'
|
||||
end
|
||||
end
|
||||
|
||||
class ResourceId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -493,21 +305,6 @@ module Google
|
|||
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
|
||||
|
@ -517,6 +314,23 @@ module Google
|
|||
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 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 ListOrganizationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -525,42 +339,6 @@ module Google
|
|||
|
||||
end
|
||||
end
|
||||
|
||||
class Constraint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :display_name, as: 'displayName'
|
||||
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint::Representation
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,6 +22,25 @@ module Google
|
|||
module Apis
|
||||
module CloudtraceV1
|
||||
|
||||
# List of new or updated traces.
|
||||
class Traces
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of traces.
|
||||
# Corresponds to the JSON property `traces`
|
||||
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
||||
attr_accessor :traces
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@traces = args[:traces] if args.key?(:traces)
|
||||
end
|
||||
end
|
||||
|
||||
# A span represents a single timed event within a trace. Spans can be nested
|
||||
# and form a trace tree. Often, a trace contains a root span that describes the
|
||||
# end-to-end latency of an operation and, optionally, one or more subspans for
|
||||
|
@ -30,22 +49,6 @@ module Google
|
|||
class TraceSpan
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
||||
# unique within a trace.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [String]
|
||||
attr_accessor :span_id
|
||||
|
||||
# ID of the parent span, if any. Optional.
|
||||
# Corresponds to the JSON property `parentSpanId`
|
||||
# @return [String]
|
||||
attr_accessor :parent_span_id
|
||||
|
||||
# End time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Start time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
|
@ -75,19 +78,35 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
||||
# unique within a trace.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [String]
|
||||
attr_accessor :span_id
|
||||
|
||||
# ID of the parent span, if any. Optional.
|
||||
# Corresponds to the JSON property `parentSpanId`
|
||||
# @return [String]
|
||||
attr_accessor :parent_span_id
|
||||
|
||||
# End time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@span_id = args[:span_id] if args.key?(: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)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@span_id = args[:span_id] if args.key?(: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
|
||||
end
|
||||
|
||||
|
@ -170,25 +189,6 @@ module Google
|
|||
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
||||
end
|
||||
end
|
||||
|
||||
# List of new or updated traces.
|
||||
class Traces
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of traces.
|
||||
# Corresponds to the JSON property `traces`
|
||||
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
||||
attr_accessor :traces
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@traces = args[:traces] if args.key?(:traces)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,6 +22,12 @@ module Google
|
|||
module Apis
|
||||
module CloudtraceV1
|
||||
|
||||
class Traces
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TraceSpan
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -47,21 +53,23 @@ module Google
|
|||
end
|
||||
|
||||
class Traces
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class TraceSpan
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :span_id, as: 'spanId'
|
||||
property :parent_span_id, as: 'parentSpanId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :kind, as: 'kind'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :span_id, as: 'spanId'
|
||||
property :parent_span_id, as: 'parentSpanId'
|
||||
property :end_time, as: 'endTime'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -89,14 +97,6 @@ module Google
|
|||
property :trace_id, as: 'traceId'
|
||||
end
|
||||
end
|
||||
|
||||
class Traces
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -57,11 +57,11 @@ module Google
|
|||
# @param [String] project_id
|
||||
# ID of the Cloud project where the trace data is stored.
|
||||
# @param [Google::Apis::CloudtraceV1::Traces] traces_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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -74,15 +74,15 @@ module Google
|
|||
# @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_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def patch_project_traces(project_id, traces_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options)
|
||||
command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation
|
||||
command.request_object = traces_object
|
||||
command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudtraceV1::Empty
|
||||
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?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
@ -105,12 +105,12 @@ module Google
|
|||
# @param [String] end_time
|
||||
# Start of the time interval (inclusive) during which the trace data was
|
||||
# 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 [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
|
||||
|
@ -118,11 +118,11 @@ module Google
|
|||
# @param [String] view
|
||||
# Type of data returned for traces in the list. Optional. Default is
|
||||
# `MINIMAL`.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -135,7 +135,7 @@ module Google
|
|||
# @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_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, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
||||
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
||||
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
||||
|
@ -143,12 +143,12 @@ module Google
|
|||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['filter'] = filter unless filter.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['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['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
@ -157,11 +157,11 @@ module Google
|
|||
# ID of the Cloud project where the trace data is stored.
|
||||
# @param [String] trace_id
|
||||
# ID of the trace to return.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
|
@ -174,14 +174,14 @@ module Google
|
|||
# @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_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
|
||||
command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
|
||||
command.response_class = Google::Apis::CloudtraceV1::Trace
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['traceId'] = trace_id unless trace_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeBeta
|
||||
VERSION = 'Beta'
|
||||
REVISION = '20170302'
|
||||
REVISION = '20170313'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -845,9 +845,9 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Specifies the audit configuration for a service. It consists of which
|
||||
# permission types are logged, and what identities, if any, are exempted from
|
||||
# logging. An AuditConifg must have one or more AuditLogConfigs.
|
||||
# Specifies the audit configuration for a service. The configuration determines
|
||||
# which permission types are logged, and what identities, if any, are exempted
|
||||
# from logging. An AuditConifg must have one or more AuditLogConfigs.
|
||||
# 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
|
||||
# specified in each AuditConfig are enabled, and the exempted_members in each
|
||||
|
@ -874,8 +874,8 @@ module Google
|
|||
attr_accessor :exempted_members
|
||||
|
||||
# Specifies a service that will be enabled for audit logging. For example, `
|
||||
# resourcemanager`, `storage`, `compute`. `allServices` is a special value that
|
||||
# covers all services.
|
||||
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
||||
# value that covers all services.
|
||||
# Corresponds to the JSON property `service`
|
||||
# @return [String]
|
||||
attr_accessor :service
|
||||
|
@ -1649,6 +1649,7 @@ module Google
|
|||
# inserting a BackendService. An up-to-date fingerprint must be provided in
|
||||
# order to update the BackendService.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -2684,6 +2685,7 @@ module Google
|
|||
# hash in order to update or change labels.
|
||||
# To see the latest fingerprint, make a get() request to retrieve a disk.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
|
@ -3970,6 +3972,7 @@ module Google
|
|||
# provide an up-to-date fingerprint hash when updating or changing labels. Make
|
||||
# a get() request to the resource to get the latest fingerprint.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
|
@ -4762,6 +4765,7 @@ module Google
|
|||
# to update or change labels.
|
||||
# To see the latest fingerprint, make a get() request to retrieve an image.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
|
@ -5003,6 +5007,7 @@ module Google
|
|||
# order to update or change metadata.
|
||||
# To see the latest fingerprint, make get() request to the instance.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
|
@ -5191,6 +5196,7 @@ module Google
|
|||
# fingerprint to detect conflicts when multiple users change the named ports
|
||||
# concurrently.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -5418,6 +5424,7 @@ module Google
|
|||
# [Output Only] The fingerprint of the resource data. You can use this optional
|
||||
# field for optimistic locking when you update the resource.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -5995,6 +6002,7 @@ module Google
|
|||
# Then, include the fingerprint in your request to ensure that you do not
|
||||
# overwrite changes that were applied from another concurrent request.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -6230,6 +6238,7 @@ module Google
|
|||
# ensure that you do not overwrite changes that were applied from another
|
||||
# concurrent request.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -6678,6 +6687,7 @@ module Google
|
|||
# conflicts. Provide the latest fingerprint value when making a request to add
|
||||
# or change labels.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
|
@ -7334,6 +7344,7 @@ module Google
|
|||
# modify or update metadata. You must always provide an up-to-date fingerprint
|
||||
# hash in order to update or change metadata.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -8346,6 +8357,7 @@ module Google
|
|||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten blindly.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
|
@ -8919,6 +8931,7 @@ module Google
|
|||
# This field is used for optimistic locking when you update the target pool
|
||||
# entries. This field is optional.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -9046,6 +9059,7 @@ module Google
|
|||
# ensure that you do not overwrite changes that were applied from another
|
||||
# concurrent request.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -9639,8 +9653,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :ip_range
|
||||
|
||||
# URI of linked VPN tunnel. It must be in the same region as the router. Each
|
||||
# interface can have at most one linked resource.
|
||||
# URI of the linked VPN tunnel. It must be in the same region as the router.
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :linked_vpn_tunnel
|
||||
|
@ -9720,6 +9735,11 @@ module Google
|
|||
# @return [Array<Google::Apis::ComputeBeta::Route>]
|
||||
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`
|
||||
# @return [Array<Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus>]
|
||||
|
@ -9737,6 +9757,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
end
|
||||
|
@ -10213,6 +10234,7 @@ module Google
|
|||
# fingerprint hash in order to update or change labels.
|
||||
# To see the latest fingerprint, make a get() request to retrieve a snapshot.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
|
@ -10907,6 +10929,7 @@ module Google
|
|||
# hash in order to update or change metadata.
|
||||
# To see the latest fingerprint, make get() request to the instance.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -12661,6 +12684,7 @@ module Google
|
|||
# inserting a UrlMap. An up-to-date fingerprint must be provided in order to
|
||||
# update the UrlMap.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -13460,6 +13484,7 @@ module Google
|
|||
# provide an up-to-date fingerprint hash in order to update or change labels.
|
||||
# Make a get() request to the resource to get the latest fingerprint.
|
||||
# Corresponds to the JSON property `labelFingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
|
|
|
@ -4172,6 +4172,8 @@ module Google
|
|||
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_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
|
||||
|
||||
property :network, as: 'network'
|
||||
|
|
|
@ -1191,7 +1191,7 @@ module Google
|
|||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -1584,14 +1584,14 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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
|
||||
# updating a backend service. Read Restrictions and Guidelines for more
|
||||
# information. This method supports patch semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -4082,7 +4082,7 @@ module Google
|
|||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -4401,7 +4401,7 @@ module Google
|
|||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -4720,7 +4720,7 @@ module Google
|
|||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -9610,7 +9610,7 @@ module Google
|
|||
# @param [String] region
|
||||
# Name of the region scoping this request.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -11536,14 +11536,14 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region for this request.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -15637,12 +15637,12 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @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 [String] fields
|
||||
# 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/
|
||||
module ComputeV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170302'
|
||||
REVISION = '20170313'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1182,6 +1182,11 @@ module Google
|
|||
# @return [Array<Google::Apis::ComputeV1::Backend>]
|
||||
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.
|
||||
# Corresponds to the JSON property `connectionDraining`
|
||||
# @return [Google::Apis::ComputeV1::ConnectionDraining]
|
||||
|
@ -1210,6 +1215,7 @@ module Google
|
|||
# inserting a BackendService. An up-to-date fingerprint must be provided in
|
||||
# order to update the BackendService.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -1307,6 +1313,7 @@ module Google
|
|||
def update!(**args)
|
||||
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
|
||||
@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)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
|
@ -1370,6 +1377,26 @@ module Google
|
|||
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
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1561,6 +1588,62 @@ module Google
|
|||
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.
|
||||
class ConnectionDraining
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -4063,6 +4146,7 @@ module Google
|
|||
# fingerprint to detect conflicts when multiple users change the named ports
|
||||
# concurrently.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -4278,6 +4362,7 @@ module Google
|
|||
# [Output Only] The fingerprint of the resource data. You can use this optional
|
||||
# field for optimistic locking when you update the resource.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -4752,6 +4837,7 @@ module Google
|
|||
# Then, include the fingerprint in your request to ensure that you do not
|
||||
# overwrite changes that were applied from another concurrent request.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -4987,6 +5073,7 @@ module Google
|
|||
# ensure that you do not overwrite changes that were applied from another
|
||||
# concurrent request.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -5995,6 +6082,7 @@ module Google
|
|||
# modify or update metadata. You must always provide an up-to-date fingerprint
|
||||
# hash in order to update or change metadata.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -7257,6 +7345,7 @@ module Google
|
|||
# This field is used for optimistic locking when you update the target pool
|
||||
# entries. This field is optional.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -7384,6 +7473,7 @@ module Google
|
|||
# ensure that you do not overwrite changes that were applied from another
|
||||
# concurrent request.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -7944,8 +8034,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :ip_range
|
||||
|
||||
# URI of linked VPN tunnel. It must be in the same region as the router. Each
|
||||
# interface can have at most one linked resource.
|
||||
# URI of the linked VPN tunnel. It must be in the same region as the router.
|
||||
# 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`
|
||||
# @return [String]
|
||||
attr_accessor :linked_vpn_tunnel
|
||||
|
@ -9067,6 +9158,7 @@ module Google
|
|||
# hash in order to update or change metadata.
|
||||
# To see the latest fingerprint, make get() request to the instance.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -10584,6 +10676,7 @@ module Google
|
|||
# inserting a UrlMap. An up-to-date fingerprint must be provided in order to
|
||||
# update the UrlMap.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
|
|
@ -166,6 +166,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BackendServiceCdnPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BackendServiceGroupHealth
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -202,6 +208,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CacheKeyPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ConnectionDraining
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1744,6 +1756,8 @@ module Google
|
|||
property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
|
||||
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 :creation_timestamp, as: 'creationTimestamp'
|
||||
|
@ -1777,6 +1791,14 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1834,6 +1856,17 @@ module Google
|
|||
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
|
||||
# @private
|
||||
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
|
@ -79,6 +79,46 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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 for.
|
||||
# @param [String] start_time
|
||||
# Return only metric data that has changed since this time.
|
||||
# Default is to return all information about all metrics for the 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::JobMetrics] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::JobMetrics]
|
||||
#
|
||||
# @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_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
||||
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['startTime'] = start_time unless start_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
|
||||
|
||||
# Gets the state of the specified Cloud Dataflow job.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the job belongs to.
|
||||
|
@ -123,6 +163,8 @@ module Google
|
|||
# The project which owns the jobs.
|
||||
# @param [String] location
|
||||
# The location that contains this job.
|
||||
# @param [String] filter
|
||||
# The kind of filter to use.
|
||||
# @param [String] page_token
|
||||
# Set this to the 'next_page_token' field of a previous response
|
||||
# to request additional results in a long list.
|
||||
|
@ -132,8 +174,6 @@ module Google
|
|||
# and an unspecified server-defined limit.
|
||||
# @param [String] view
|
||||
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
|
||||
# @param [String] filter
|
||||
# The kind of filter to use.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -151,16 +191,16 @@ module Google
|
|||
# @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_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.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
||||
command.params['projectId'] = project_id unless project_id.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['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -247,16 +287,14 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Request the job status.
|
||||
# Reports the status of dataflow WorkItems leased by a worker.
|
||||
# @param [String] project_id
|
||||
# A project id.
|
||||
# The project which owns the WorkItem's job.
|
||||
# @param [String] location
|
||||
# The location which contains the job specified by job_id.
|
||||
# The location which contains the WorkItem's job.
|
||||
# @param [String] job_id
|
||||
# The job to get messages for.
|
||||
# @param [String] start_time
|
||||
# Return only metric data that has changed since this time.
|
||||
# Default is to return all information about all metrics for the job.
|
||||
# The job which the WorkItem is part of.
|
||||
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -266,22 +304,23 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::JobMetrics]
|
||||
# @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
|
||||
#
|
||||
# @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_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
||||
def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
|
||||
command.request_object = report_work_item_status_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
|
||||
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['startTime'] = start_time unless start_time.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -326,45 +365,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Reports the status of dataflow WorkItems leased by a worker.
|
||||
# @param [String] project_id
|
||||
# The project which owns the WorkItem's job.
|
||||
# @param [String] location
|
||||
# The location which contains the WorkItem's job.
|
||||
# @param [String] job_id
|
||||
# The job which the WorkItem is part of.
|
||||
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_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::ReportWorkItemStatusResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
|
||||
#
|
||||
# @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_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
|
||||
command.request_object = report_work_item_status_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
|
||||
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['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.
|
||||
# @param [String] project_id
|
||||
# A project id.
|
||||
|
@ -536,6 +536,87 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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] replace_job_id
|
||||
# Deprecated. This field is now in the Job message.
|
||||
# @param [String] view
|
||||
# The level of information requested in response.
|
||||
# @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 create_project_job(project_id, job_object = nil, replace_job_id: nil, view: nil, location: 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['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
||||
command.query['view'] = view unless view.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
|
||||
|
||||
# Request the job status.
|
||||
# @param [String] project_id
|
||||
# A project id.
|
||||
|
@ -581,10 +662,10 @@ module Google
|
|||
# The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] job_id
|
||||
# The job ID.
|
||||
# @param [String] view
|
||||
# The level of information requested in response.
|
||||
# @param [String] location
|
||||
# The location that contains this job.
|
||||
# @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
|
||||
|
@ -602,14 +683,14 @@ module Google
|
|||
# @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_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_job(project_id, job_id, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
||||
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['view'] = view unless view.nil?
|
||||
command.query['location'] = location unless location.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)
|
||||
|
@ -663,87 +744,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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.
|
||||
# @param [String] project_id
|
||||
# The project id.
|
||||
|
@ -816,42 +816,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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.
|
||||
# @param [String] project_id
|
||||
# The project which owns the WorkItem's job.
|
||||
|
@ -888,23 +852,59 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
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.
|
||||
# @param [String] project_id
|
||||
# A project id.
|
||||
# @param [String] job_id
|
||||
# The job to get messages about.
|
||||
# @param [String] location
|
||||
# The location which contains the job specified by job_id.
|
||||
# @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] location
|
||||
# The location which contains the job specified by job_id.
|
||||
# @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 [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
|
||||
# If specified, determines the maximum number of messages to
|
||||
# return. If unspecified, the service may choose an appropriate
|
||||
|
@ -928,16 +928,16 @@ module Google
|
|||
# @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_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, end_time: nil, location: 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.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['jobId'] = job_id unless job_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['endTime'] = end_time unless end_time.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['location'] = location unless location.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?
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/dataproc/
|
||||
module DataprocV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170321'
|
||||
REVISION = '20170328'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,192 +22,6 @@ module Google
|
|||
module Apis
|
||||
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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Job
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SparkJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class JobStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ManagedGroupConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterOperationStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QueryList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class YarnApplication
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiagnoseClusterRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiskConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterOperationMetadata
|
||||
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 HiveJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiagnoseClusterResults
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PySparkJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GceClusterConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AcceleratorConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterMetrics
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LoggingConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiagnoseClusterOutputLocation
|
||||
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 OperationStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class JobReference
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubmitJobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -263,16 +77,291 @@ module Google
|
|||
end
|
||||
|
||||
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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SparkJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Job
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class JobStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ManagedGroupConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterOperationStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QueryList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class YarnApplication
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiagnoseClusterRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiskConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterOperationMetadata
|
||||
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 HiveJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiagnoseClusterResults
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PySparkJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GceClusterConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterMetrics
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AcceleratorConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LoggingConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiagnoseClusterOutputLocation
|
||||
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 OperationStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class JobReference
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubmitJobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
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
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupConfig
|
||||
# @private
|
||||
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 :is_preemptible, as: 'isPreemptible'
|
||||
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
||||
|
||||
property :machine_type_uri, as: 'machineTypeUri'
|
||||
property :image_uri, as: 'imageUri'
|
||||
collection :instance_names, as: 'instanceNames'
|
||||
end
|
||||
end
|
||||
|
||||
class JobScheduling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_failures_per_hour, as: 'maxFailuresPerHour'
|
||||
end
|
||||
end
|
||||
|
||||
class ListJobsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeInitializationAction
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_timeout, as: 'executionTimeout'
|
||||
property :executable_file, as: 'executableFile'
|
||||
end
|
||||
end
|
||||
|
||||
class CancelJobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SparkSqlJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :query_file_uri, as: 'queryFileUri'
|
||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
end
|
||||
end
|
||||
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :labels, as: 'labels'
|
||||
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
|
||||
|
||||
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
|
||||
|
||||
property :details, as: 'details'
|
||||
property :state, as: 'state'
|
||||
property :cluster_name, as: 'clusterName'
|
||||
property :cluster_uuid, as: 'clusterUuid'
|
||||
property :inner_state, as: 'innerState'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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'
|
||||
|
@ -280,6 +369,14 @@ module Google
|
|||
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_uuid, as: 'clusterUuid'
|
||||
property :cluster_name, as: 'clusterName'
|
||||
property :inner_state, as: 'innerState'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -303,9 +400,9 @@ module Google
|
|||
# @private
|
||||
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
|
||||
|
||||
property :query_file_uri, as: 'queryFileUri'
|
||||
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
|
||||
|
@ -317,10 +414,10 @@ module Google
|
|||
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'
|
||||
property :detail, as: 'detail'
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -333,9 +430,32 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SparkJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :main_class, as: 'mainClass'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
collection :args, as: 'args'
|
||||
collection :file_uris, as: 'fileUris'
|
||||
end
|
||||
end
|
||||
|
||||
class Job
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
|
||||
|
||||
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
|
||||
|
||||
property :reference, as: 'reference', class: Google::Apis::DataprocV1::JobReference, decorator: Google::Apis::DataprocV1::JobReference::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
|
||||
|
@ -349,35 +469,12 @@ module Google
|
|||
|
||||
hash :labels, as: 'labels'
|
||||
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
||||
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
||||
|
||||
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
||||
|
||||
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
|
||||
|
||||
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
||||
|
||||
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
|
||||
|
||||
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
|
||||
|
||||
property :reference, as: 'reference', class: Google::Apis::DataprocV1::JobReference, decorator: Google::Apis::DataprocV1::JobReference::Representation
|
||||
|
||||
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SparkJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
collection :args, as: 'args'
|
||||
collection :file_uris, as: 'fileUris'
|
||||
property :main_class, as: 'mainClass'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -402,25 +499,10 @@ module Google
|
|||
class ClusterOperationStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :inner_state, as: 'innerState'
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
property :state, as: 'state'
|
||||
property :details, as: 'details'
|
||||
end
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :main_class, as: 'mainClass'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
collection :args, as: 'args'
|
||||
collection :file_uris, as: 'fileUris'
|
||||
property :inner_state, as: 'innerState'
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -434,10 +516,25 @@ module Google
|
|||
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'
|
||||
property :tracking_url, as: 'trackingUrl'
|
||||
property :progress, as: 'progress'
|
||||
end
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
collection :args, as: 'args'
|
||||
collection :file_uris, as: 'fileUris'
|
||||
property :main_class, as: 'mainClass'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -450,24 +547,24 @@ module Google
|
|||
class DiskConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
||||
property :num_local_ssds, as: 'numLocalSsds'
|
||||
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
||||
end
|
||||
end
|
||||
|
||||
class ClusterOperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation_type, as: 'operationType'
|
||||
property :description, as: 'description'
|
||||
collection :warnings, as: 'warnings'
|
||||
hash :labels, as: 'labels'
|
||||
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
||||
|
||||
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
||||
|
||||
property :cluster_uuid, as: 'clusterUuid'
|
||||
property :cluster_name, as: 'clusterName'
|
||||
property :cluster_uuid, as: 'clusterUuid'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :description, as: 'description'
|
||||
collection :warnings, as: 'warnings'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -480,13 +577,13 @@ module Google
|
|||
class HiveJob
|
||||
# @private
|
||||
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'
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
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
|
||||
|
||||
|
@ -500,10 +597,6 @@ module Google
|
|||
class ClusterConfig
|
||||
# @private
|
||||
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
|
||||
|
||||
property :config_bucket, as: 'configBucket'
|
||||
|
@ -513,6 +606,10 @@ module Google
|
|||
|
||||
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
|
||||
|
||||
|
@ -545,6 +642,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ClusterMetrics
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :hdfs_metrics, as: 'hdfsMetrics'
|
||||
hash :yarn_metrics, as: 'yarnMetrics'
|
||||
end
|
||||
end
|
||||
|
||||
class AcceleratorConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -553,14 +658,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ClusterMetrics
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :yarn_metrics, as: 'yarnMetrics'
|
||||
hash :hdfs_metrics, as: 'hdfsMetrics'
|
||||
end
|
||||
end
|
||||
|
||||
class LoggingConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -612,103 +709,6 @@ module Google
|
|||
|
||||
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 InstanceGroupConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
||||
|
||||
property :is_preemptible, as: 'isPreemptible'
|
||||
property :image_uri, as: 'imageUri'
|
||||
property :machine_type_uri, as: 'machineTypeUri'
|
||||
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
|
||||
|
||||
class JobScheduling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_failures_per_hour, as: 'maxFailuresPerHour'
|
||||
end
|
||||
end
|
||||
|
||||
class ListJobsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SparkSqlJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
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
|
||||
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_id, as: 'projectId'
|
||||
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
|
||||
|
||||
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 :cluster_uuid, as: 'clusterUuid'
|
||||
property :cluster_name, as: 'clusterName'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
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
|
||||
|
||||
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/datastore/
|
||||
module DatastoreV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170123'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
REVISION = '20170314'
|
||||
|
||||
# View and manage your Google Cloud Datastore data
|
||||
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
||||
|
||||
# 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
|
@ -22,199 +22,13 @@ module Google
|
|||
module Apis
|
||||
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 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 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 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 LookupRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LatLng
|
||||
class RollbackRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -226,72 +40,202 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Value
|
||||
# @private
|
||||
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
|
||||
class AllocateIdsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||
|
||||
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
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Query
|
||||
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 EntityResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Value
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CommitResponse
|
||||
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 LookupRequest
|
||||
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 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 PropertyOrder
|
||||
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 KindExpression
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LatLng
|
||||
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 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 ArrayValue
|
||||
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 RunQueryRequest
|
||||
# @private
|
||||
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 :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
||||
|
||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||
collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||
|
||||
property :offset, as: 'offset'
|
||||
collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
|
||||
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::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
|
||||
property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -303,13 +247,144 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CompositeFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
property :limit, as: 'limit'
|
||||
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
||||
|
||||
property :start_cursor, :base64 => true, as: 'startCursor'
|
||||
property :offset, as: 'offset'
|
||||
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'
|
||||
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
|
||||
|
||||
class EntityResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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 :version, as: 'version'
|
||||
property :cursor, :base64 => true, as: 'cursor'
|
||||
end
|
||||
end
|
||||
|
||||
class Value
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||
|
||||
property :geo_point_value, as: 'geoPointValue', class: Google::Apis::DatastoreV1::LatLng, decorator: Google::Apis::DatastoreV1::LatLng::Representation
|
||||
|
||||
property :key_value, as: 'keyValue', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::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
|
||||
|
||||
class CommitResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
|
||||
|
||||
property :index_updates, as: 'indexUpdates'
|
||||
end
|
||||
end
|
||||
|
||||
class PartitionId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :namespace_id, as: 'namespaceId'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
|
||||
class Entity
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LookupRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class QueryResultBatch
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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 :entity_result_type, as: 'entityResultType'
|
||||
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PathElement
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -322,24 +397,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ArrayValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::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 BeginTransactionResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -347,28 +404,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class PartitionId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :namespace_id, as: 'namespaceId'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
|
||||
class QueryResultBatch
|
||||
# @private
|
||||
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
|
||||
|
||||
property :skipped_results, as: 'skippedResults'
|
||||
end
|
||||
end
|
||||
|
||||
class AllocateIdsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -377,72 +412,6 @@ module Google
|
|||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class RollbackResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class PropertyReference
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Projection
|
||||
# @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
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LookupResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -455,22 +424,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class BeginTransactionRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Key
|
||||
# @private
|
||||
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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RunQueryResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -481,73 +434,35 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Entity
|
||||
class CommitRequest
|
||||
# @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
|
||||
property :mode, as: 'mode'
|
||||
collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
|
||||
|
||||
property :transaction, :base64 => true, as: 'transaction'
|
||||
end
|
||||
end
|
||||
|
||||
class GqlQuery
|
||||
class PropertyOrder
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :query_string, as: 'queryString'
|
||||
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
|
||||
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||
|
||||
property :direction, as: 'direction'
|
||||
end
|
||||
end
|
||||
|
||||
class Mutation
|
||||
class BeginTransactionRequest
|
||||
# @private
|
||||
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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CommitResponse
|
||||
class KindExpression
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
|
||||
|
||||
property :index_updates, as: 'indexUpdates'
|
||||
end
|
||||
end
|
||||
|
||||
class RunQueryRequest
|
||||
# @private
|
||||
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 :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LookupRequest
|
||||
# @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
|
||||
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -559,11 +474,96 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CompositeFilter
|
||||
class Key
|
||||
# @private
|
||||
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 :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
|
||||
|
||||
class PropertyReference
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Projection
|
||||
# @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 ArrayValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Mutation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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 :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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ReadOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :read_consistency, as: 'readConsistency'
|
||||
property :transaction, :base64 => true, as: 'transaction'
|
||||
end
|
||||
end
|
||||
|
||||
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 :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
|
||||
|
||||
property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -47,72 +47,6 @@ module Google
|
|||
super('https://datastore.googleapis.com/', '')
|
||||
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
|
||||
# before it is inserted.
|
||||
# @param [String] project_id
|
||||
|
@ -147,10 +81,10 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Looks up entities by key.
|
||||
# Begins a new transaction.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
|
||||
# @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.
|
||||
|
@ -160,20 +94,20 @@ module Google
|
|||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::LookupResponse]
|
||||
# @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 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
|
||||
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?
|
||||
|
@ -214,6 +148,39 @@ module Google
|
|||
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] 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
|
||||
|
||||
# Rolls back a transaction.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
|
@ -246,6 +213,39 @@ module Google
|
|||
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['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
|
|
@ -225,6 +225,7 @@ module Google
|
|||
# every request to modify data. To get the latest fingerprint value, perform a
|
||||
# get() request to a deployment.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -405,6 +406,7 @@ module Google
|
|||
# every request to modify a deployment. To get the latest fingerprint value,
|
||||
# perform a get() request on the deployment.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -458,6 +460,7 @@ module Google
|
|||
# every request to modify a deployment. To get the latest fingerprint value,
|
||||
# perform a get() request on the deployment.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
|
@ -981,6 +984,7 @@ module Google
|
|||
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
||||
# policy is overwritten blindly.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/doubleclick-search/
|
||||
module DoubleclicksearchV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170314'
|
||||
REVISION = '20170320'
|
||||
|
||||
# View and manage your advertising data in DoubleClick Search
|
||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/drive/
|
||||
module DriveV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170320'
|
||||
REVISION = '20170323'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -152,6 +152,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# A list of themes that are supported for Team Drives.
|
||||
# Corresponds to the JSON property `teamDriveThemes`
|
||||
# @return [Array<Google::Apis::DriveV2::About::TeamDriveTheme>]
|
||||
attr_accessor :team_drive_themes
|
||||
|
||||
# Information about a Drive user.
|
||||
# Corresponds to the JSON property `user`
|
||||
# @return [Google::Apis::DriveV2::User]
|
||||
|
@ -186,6 +191,7 @@ module Google
|
|||
@remaining_change_ids = args[:remaining_change_ids] if args.key?(:remaining_change_ids)
|
||||
@root_folder_id = args[:root_folder_id] if args.key?(:root_folder_id)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes)
|
||||
@user = args[:user] if args.key?(:user)
|
||||
end
|
||||
|
||||
|
@ -363,6 +369,37 @@ module Google
|
|||
@service_name = args[:service_name] if args.key?(:service_name)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TeamDriveTheme
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A link to this Team Drive theme's background image.
|
||||
# Corresponds to the JSON property `backgroundImageLink`
|
||||
# @return [String]
|
||||
attr_accessor :background_image_link
|
||||
|
||||
# The color of this Team Drive theme as an RGB hex string.
|
||||
# Corresponds to the JSON property `colorRgb`
|
||||
# @return [String]
|
||||
attr_accessor :color_rgb
|
||||
|
||||
# The ID of the theme.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
||||
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# The apps resource provides a list of the apps that a user has installed, with
|
||||
|
@ -1248,28 +1285,25 @@ module Google
|
|||
attr_accessor :app_data_contents
|
||||
alias_method :app_data_contents?, :app_data_contents
|
||||
|
||||
# Whether the current user can comment on the file. Deprecated: use capabilities/
|
||||
# canComment.
|
||||
# Deprecated: use capabilities/canComment.
|
||||
# Corresponds to the JSON property `canComment`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_comment
|
||||
alias_method :can_comment?, :can_comment
|
||||
|
||||
# Whether the current user has read access to the Revisions resource of the file.
|
||||
# Deprecated: use capabilities/canReadRevisions.
|
||||
# Corresponds to the JSON property `canReadRevisions`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_read_revisions
|
||||
alias_method :can_read_revisions?, :can_read_revisions
|
||||
|
||||
# Capabilities the current user has on the file. Each capability corresponds to
|
||||
# Capabilities the current user has on this file. Each capability corresponds to
|
||||
# a fine-grained action that a user may take.
|
||||
# Corresponds to the JSON property `capabilities`
|
||||
# @return [Google::Apis::DriveV2::File::Capabilities]
|
||||
attr_accessor :capabilities
|
||||
|
||||
# Whether the file can be copied by the current user. Deprecated: use
|
||||
# capabilities/canCopy.
|
||||
# Deprecated: use capabilities/canCopy.
|
||||
# Corresponds to the JSON property `copyable`
|
||||
# @return [Boolean]
|
||||
attr_accessor :copyable
|
||||
|
@ -1296,8 +1330,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :download_url
|
||||
|
||||
# Whether the file can be edited by the current user. Deprecated: use
|
||||
# capabilities/canEdit.
|
||||
# Deprecated: use capabilities/canEdit.
|
||||
# Corresponds to the JSON property `editable`
|
||||
# @return [Boolean]
|
||||
attr_accessor :editable
|
||||
|
@ -1519,7 +1552,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# Whether the file's sharing settings can be modified by the current user.
|
||||
# Deprecated: use capabilities/canShare.
|
||||
# Corresponds to the JSON property `shareable`
|
||||
# @return [Boolean]
|
||||
|
@ -1699,7 +1731,7 @@ module Google
|
|||
@writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
|
||||
end
|
||||
|
||||
# Capabilities the current user has on the file. Each capability corresponds to
|
||||
# Capabilities the current user has on this file. Each capability corresponds to
|
||||
# a fine-grained action that a user may take.
|
||||
class Capabilities
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1711,33 +1743,33 @@ module Google
|
|||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the current user can comment on the file.
|
||||
# Whether the current user can comment on this file.
|
||||
# Corresponds to the JSON property `canComment`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_comment
|
||||
alias_method :can_comment?, :can_comment
|
||||
|
||||
# Whether the file can be copied by the current user. For a Team Drive item,
|
||||
# whether non-folder descendants of this item, or this item itself if it is not
|
||||
# a folder, can be copied.
|
||||
# Whether the current user can copy this file. For a Team Drive item, whether
|
||||
# the current user can copy non-folder descendants of this item, or this item
|
||||
# itself if it is not a folder.
|
||||
# Corresponds to the JSON property `canCopy`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_copy
|
||||
alias_method :can_copy?, :can_copy
|
||||
|
||||
# Whether the file can be deleted by the current user.
|
||||
# Whether the current user can delete this file.
|
||||
# Corresponds to the JSON property `canDelete`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_delete
|
||||
alias_method :can_delete?, :can_delete
|
||||
|
||||
# Whether the file can be downloaded by the current user.
|
||||
# Whether the current user can download this file.
|
||||
# Corresponds to the JSON property `canDownload`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_download
|
||||
alias_method :can_download?, :can_download
|
||||
|
||||
# Whether the file can be edited by the current user.
|
||||
# Whether the current user can edit this file.
|
||||
# Corresponds to the JSON property `canEdit`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_edit
|
||||
|
@ -1766,16 +1798,16 @@ module Google
|
|||
attr_accessor :can_move_team_drive_item
|
||||
alias_method :can_move_team_drive_item?, :can_move_team_drive_item
|
||||
|
||||
# Whether the current user has read access to the Revisions resource of the file.
|
||||
# For a Team Drive item, whether revisions of non-folder descendants of this
|
||||
# item, or this item itself if it is not a folder, can be read.
|
||||
# Whether the current user can read the revisions resource of this file. For a
|
||||
# Team Drive item, whether revisions of non-folder descendants of this item, or
|
||||
# this item itself if it is not a folder, can be read.
|
||||
# Corresponds to the JSON property `canReadRevisions`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_read_revisions
|
||||
alias_method :can_read_revisions?, :can_read_revisions
|
||||
|
||||
# Whether the current user has read access to the Team Drive to which this file
|
||||
# belongs. Only populated for Team Drive files.
|
||||
# Whether the current user can read the Team Drive to which this file belongs.
|
||||
# Only populated for Team Drive files.
|
||||
# Corresponds to the JSON property `canReadTeamDrive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_read_team_drive
|
||||
|
@ -1788,25 +1820,25 @@ module Google
|
|||
attr_accessor :can_remove_children
|
||||
alias_method :can_remove_children?, :can_remove_children
|
||||
|
||||
# Whether the file can be renamed by the current user.
|
||||
# Whether the current user can rename this file.
|
||||
# Corresponds to the JSON property `canRename`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_rename
|
||||
alias_method :can_rename?, :can_rename
|
||||
|
||||
# Whether the file's sharing settings can be modified by the current user.
|
||||
# Whether the current user can modify the sharing settings for this file.
|
||||
# Corresponds to the JSON property `canShare`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_share
|
||||
alias_method :can_share?, :can_share
|
||||
|
||||
# Whether the file can be trashed by the current user.
|
||||
# Whether the current user can move this file to trash.
|
||||
# Corresponds to the JSON property `canTrash`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_trash
|
||||
alias_method :can_trash?, :can_trash
|
||||
|
||||
# Whether the file can be restored from the trash by the current user.
|
||||
# Whether the current user can restore this file from trash.
|
||||
# Corresponds to the JSON property `canUntrash`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_untrash
|
||||
|
@ -2094,6 +2126,7 @@ module Google
|
|||
# The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to
|
||||
# RFC 4648 section 5.
|
||||
# Corresponds to the JSON property `image`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :image
|
||||
|
||||
|
@ -2402,7 +2435,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# Details of whether the Permissions on this Team Drive item are inherited or
|
||||
# Details of whether the permissions on this Team Drive item are inherited or
|
||||
# directly on this item. This is an output-only field which is present only for
|
||||
# Team Drive items.
|
||||
# Corresponds to the JSON property `teamDrivePermissionDetails`
|
||||
|
@ -2888,11 +2921,30 @@ module Google
|
|||
class TeamDrive
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An image file and cropping parameters from which a background image for this
|
||||
# Team Drive is set. This is a write only field that can only be set on a drive.
|
||||
# teamdrives.update request that does not set themeId. When specified, all
|
||||
# fields of the backgroundImageFile must be set.
|
||||
# Corresponds to the JSON property `backgroundImageFile`
|
||||
# @return [Google::Apis::DriveV2::TeamDrive::BackgroundImageFile]
|
||||
attr_accessor :background_image_file
|
||||
|
||||
# A short-lived link to this Team Drive's background image.
|
||||
# Corresponds to the JSON property `backgroundImageLink`
|
||||
# @return [String]
|
||||
attr_accessor :background_image_link
|
||||
|
||||
# Capabilities the current user has on this Team Drive.
|
||||
# Corresponds to the JSON property `capabilities`
|
||||
# @return [Google::Apis::DriveV2::TeamDrive::Capabilities]
|
||||
attr_accessor :capabilities
|
||||
|
||||
# The color of this Team Drive as an RGB hex string. It can only be set on a
|
||||
# drive.teamdrives.update request that does not set themeId.
|
||||
# Corresponds to the JSON property `colorRgb`
|
||||
# @return [String]
|
||||
attr_accessor :color_rgb
|
||||
|
||||
# The ID of this Team Drive which is also the ID of the top level folder for
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `id`
|
||||
|
@ -2909,16 +2961,79 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The ID of the theme from which the background image and color will be set. The
|
||||
# set of possible teamDriveThemes can be retrieved from a drive.about.get
|
||||
# response. When not specified on a drive.teamdrives.insert request, a random
|
||||
# theme is chosen from which the background image and color are set. This is a
|
||||
# write only field that can only be set on a request that does not set colorRgb
|
||||
# or backgroundImageFile.
|
||||
# Corresponds to the JSON property `themeId`
|
||||
# @return [String]
|
||||
attr_accessor :theme_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@background_image_file = args[:background_image_file] if args.key?(:background_image_file)
|
||||
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
||||
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
||||
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
||||
end
|
||||
|
||||
# An image file and cropping parameters from which a background image for this
|
||||
# Team Drive is set. This is a write only field that can only be set on a drive.
|
||||
# teamdrives.update request that does not set themeId. When specified, all
|
||||
# fields of the backgroundImageFile must be set.
|
||||
class BackgroundImageFile
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of an image file in Drive to use for the background image.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The width of the cropped image in the closed range of 0 to 1, which is the
|
||||
# width of the cropped image divided by the width of the entire image. The
|
||||
# height is computed by applying a width to height aspect ratio of 80 to 9. The
|
||||
# resulting image must be at least 1280 pixels wide and 144 pixels high.
|
||||
# Corresponds to the JSON property `width`
|
||||
# @return [Float]
|
||||
attr_accessor :width
|
||||
|
||||
# The X coordinate of the upper left corner of the cropping area in the
|
||||
# background image. This is a value in the closed range of 0 to 1 which is the
|
||||
# horizontal distance from the left side of the entire image to the left side of
|
||||
# the cropping area divided by the width of the entire image.
|
||||
# Corresponds to the JSON property `xCoordinate`
|
||||
# @return [Float]
|
||||
attr_accessor :x_coordinate
|
||||
|
||||
# The Y coordinate of the upper left corner of the cropping area in the
|
||||
# background image. This is a value in the closed range of 0 to 1 which is the
|
||||
# vertical distance from the top side of the entire image to the top side of the
|
||||
# cropping area divided by the height of the entire image.
|
||||
# Corresponds to the JSON property `yCoordinate`
|
||||
# @return [Float]
|
||||
attr_accessor :y_coordinate
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@width = args[:width] if args.key?(:width)
|
||||
@x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate)
|
||||
@y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate)
|
||||
end
|
||||
end
|
||||
|
||||
# Capabilities the current user has on this Team Drive.
|
||||
|
@ -2931,31 +3046,38 @@ module Google
|
|||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the current user can change the background of this Team Drive.
|
||||
# Corresponds to the JSON property `canChangeTeamDriveBackground`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_team_drive_background
|
||||
alias_method :can_change_team_drive_background?, :can_change_team_drive_background
|
||||
|
||||
# Whether the current user can comment on files in this Team Drive.
|
||||
# Corresponds to the JSON property `canComment`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_comment
|
||||
alias_method :can_comment?, :can_comment
|
||||
|
||||
# Whether files in this Team Drive can be copied by the current user.
|
||||
# Whether the current user can copy files in this Team Drive.
|
||||
# Corresponds to the JSON property `canCopy`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_copy
|
||||
alias_method :can_copy?, :can_copy
|
||||
|
||||
# Whether this Team Drive can be deleted by the current user.
|
||||
# Whether the current user can delete this Team Drive. Attempting to delete the
|
||||
# Team Drive may still fail if there are untrashed items inside the Team Drive.
|
||||
# Corresponds to the JSON property `canDeleteTeamDrive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_delete_team_drive
|
||||
alias_method :can_delete_team_drive?, :can_delete_team_drive
|
||||
|
||||
# Whether files in this Team Drive can be downloaded by the current user.
|
||||
# Whether the current user can download files in this Team Drive.
|
||||
# Corresponds to the JSON property `canDownload`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_download
|
||||
alias_method :can_download?, :can_download
|
||||
|
||||
# Whether files in this Team Drive can be edited by the current user.
|
||||
# Whether the current user can edit files in this Team Drive
|
||||
# Corresponds to the JSON property `canEdit`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_edit
|
||||
|
@ -2974,8 +3096,8 @@ module Google
|
|||
attr_accessor :can_manage_members
|
||||
alias_method :can_manage_members?, :can_manage_members
|
||||
|
||||
# Whether the current user has read access to the Revisions resource of files in
|
||||
# this Team Drive.
|
||||
# Whether the current user can read the revisions resource of files in this Team
|
||||
# Drive.
|
||||
# Corresponds to the JSON property `canReadRevisions`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_read_revisions
|
||||
|
@ -2987,13 +3109,13 @@ module Google
|
|||
attr_accessor :can_remove_children
|
||||
alias_method :can_remove_children?, :can_remove_children
|
||||
|
||||
# Whether files or folders in this Team Drive can be renamed by the current user.
|
||||
# Whether the current user can rename files or folders in this Team Drive.
|
||||
# Corresponds to the JSON property `canRename`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_rename
|
||||
alias_method :can_rename?, :can_rename
|
||||
|
||||
# Whether this Team Drive can be renamed by the current user.
|
||||
# Whether the current user can rename this Team Drive.
|
||||
# Corresponds to the JSON property `canRenameTeamDrive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_rename_team_drive
|
||||
|
@ -3012,6 +3134,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
||||
@can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
|
||||
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
||||
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
||||
@can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
|
||||
|
|
|
@ -66,6 +66,12 @@ module Google
|
|||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TeamDriveTheme
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
@ -277,6 +283,12 @@ module Google
|
|||
class TeamDrive
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class BackgroundImageFile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Capabilities
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -336,6 +348,8 @@ module Google
|
|||
property :remaining_change_ids, as: 'remainingChangeIds'
|
||||
property :root_folder_id, as: 'rootFolderId'
|
||||
property :self_link, as: 'selfLink'
|
||||
collection :team_drive_themes, as: 'teamDriveThemes', class: Google::Apis::DriveV2::About::TeamDriveTheme, decorator: Google::Apis::DriveV2::About::TeamDriveTheme::Representation
|
||||
|
||||
property :user, as: 'user', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
||||
|
||||
end
|
||||
|
@ -396,6 +410,15 @@ module Google
|
|||
property :service_name, as: 'serviceName'
|
||||
end
|
||||
end
|
||||
|
||||
class TeamDriveTheme
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :background_image_link, as: 'backgroundImageLink'
|
||||
property :color_rgb, as: 'colorRgb'
|
||||
property :id, as: 'id'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class App
|
||||
|
@ -958,17 +981,33 @@ module Google
|
|||
class TeamDrive
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile, decorator: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile::Representation
|
||||
|
||||
property :background_image_link, as: 'backgroundImageLink'
|
||||
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation
|
||||
|
||||
property :color_rgb, as: 'colorRgb'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :theme_id, as: 'themeId'
|
||||
end
|
||||
|
||||
class BackgroundImageFile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :width, as: 'width'
|
||||
property :x_coordinate, as: 'xCoordinate'
|
||||
property :y_coordinate, as: 'yCoordinate'
|
||||
end
|
||||
end
|
||||
|
||||
class Capabilities
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_add_children, as: 'canAddChildren'
|
||||
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
||||
property :can_comment, as: 'canComment'
|
||||
property :can_copy, as: 'canCopy'
|
||||
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
||||
|
|
|
@ -2932,7 +2932,7 @@ module Google
|
|||
# @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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
|
||||
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
|
@ -2965,7 +2965,7 @@ module Google
|
|||
# @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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
|
||||
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
||||
command.response_class = Google::Apis::DriveV2::TeamDrive
|
||||
|
@ -3005,7 +3005,7 @@ module Google
|
|||
# @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 insert_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def insert_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'teamdrives', options)
|
||||
command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
||||
command.request_object = team_drive_object
|
||||
|
@ -3081,7 +3081,7 @@ module Google
|
|||
# @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_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
|
||||
command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
||||
command.request_object = team_drive_object
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/drive/
|
||||
module DriveV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20170320'
|
||||
REVISION = '20170323'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -68,6 +68,11 @@ module Google
|
|||
# @return [Google::Apis::DriveV3::About::StorageQuota]
|
||||
attr_accessor :storage_quota
|
||||
|
||||
# A list of themes that are supported for Team Drives.
|
||||
# Corresponds to the JSON property `teamDriveThemes`
|
||||
# @return [Array<Google::Apis::DriveV3::About::TeamDriveTheme>]
|
||||
attr_accessor :team_drive_themes
|
||||
|
||||
# Information about a Drive user.
|
||||
# Corresponds to the JSON property `user`
|
||||
# @return [Google::Apis::DriveV3::User]
|
||||
|
@ -87,6 +92,7 @@ module Google
|
|||
@max_import_sizes = args[:max_import_sizes] if args.key?(:max_import_sizes)
|
||||
@max_upload_size = args[:max_upload_size] if args.key?(:max_upload_size)
|
||||
@storage_quota = args[:storage_quota] if args.key?(:storage_quota)
|
||||
@team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes)
|
||||
@user = args[:user] if args.key?(:user)
|
||||
end
|
||||
|
||||
|
@ -127,6 +133,37 @@ module Google
|
|||
@usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TeamDriveTheme
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A link to this Team Drive theme's background image.
|
||||
# Corresponds to the JSON property `backgroundImageLink`
|
||||
# @return [String]
|
||||
attr_accessor :background_image_link
|
||||
|
||||
# The color of this Team Drive theme as an RGB hex string.
|
||||
# Corresponds to the JSON property `colorRgb`
|
||||
# @return [String]
|
||||
attr_accessor :color_rgb
|
||||
|
||||
# The ID of the theme.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
||||
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# A change to a file or Team Drive.
|
||||
|
@ -482,7 +519,7 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :app_properties
|
||||
|
||||
# Capabilities the current user has on the file. Each capability corresponds to
|
||||
# Capabilities the current user has on this file. Each capability corresponds to
|
||||
# a fine-grained action that a user may take.
|
||||
# Corresponds to the JSON property `capabilities`
|
||||
# @return [Google::Apis::DriveV3::File::Capabilities]
|
||||
|
@ -848,52 +885,52 @@ module Google
|
|||
@writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
|
||||
end
|
||||
|
||||
# Capabilities the current user has on the file. Each capability corresponds to
|
||||
# Capabilities the current user has on this file. Each capability corresponds to
|
||||
# a fine-grained action that a user may take.
|
||||
class Capabilities
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether the user can add children to this folder. This is always false when
|
||||
# the item is not a folder.
|
||||
# Whether the current user can add children to this folder. This is always false
|
||||
# when the item is not a folder.
|
||||
# Corresponds to the JSON property `canAddChildren`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the user can comment on the file.
|
||||
# Whether the current user can comment on this file.
|
||||
# Corresponds to the JSON property `canComment`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_comment
|
||||
alias_method :can_comment?, :can_comment
|
||||
|
||||
# Whether the user can copy the file. For a Team Drive item, whether non-folder
|
||||
# descendants of this item, or this item itself if it is not a folder, can be
|
||||
# copied.
|
||||
# Whether the current user can copy this file. For a Team Drive item, whether
|
||||
# the current user can copy non-folder descendants of this item, or this item
|
||||
# itself if it is not a folder.
|
||||
# Corresponds to the JSON property `canCopy`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_copy
|
||||
alias_method :can_copy?, :can_copy
|
||||
|
||||
# Whether the file can be deleted by the user.
|
||||
# Whether the current user can delete this file.
|
||||
# Corresponds to the JSON property `canDelete`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_delete
|
||||
alias_method :can_delete?, :can_delete
|
||||
|
||||
# Whether the file can be downloaded by the user.
|
||||
# Whether the current user can download this file.
|
||||
# Corresponds to the JSON property `canDownload`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_download
|
||||
alias_method :can_download?, :can_download
|
||||
|
||||
# Whether the user can edit the file's content.
|
||||
# Whether the current user can edit this file.
|
||||
# Corresponds to the JSON property `canEdit`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_edit
|
||||
alias_method :can_edit?, :can_edit
|
||||
|
||||
# Whether the user can list the children of this folder. This is always false
|
||||
# when the item is not a folder.
|
||||
# Whether the current user can list the children of this folder. This is always
|
||||
# false when the item is not a folder.
|
||||
# Corresponds to the JSON property `canListChildren`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_list_children
|
||||
|
@ -906,15 +943,16 @@ module Google
|
|||
attr_accessor :can_move_item_into_team_drive
|
||||
alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
|
||||
|
||||
# Whether the user can move this Team Drive item by changing its parent. Note
|
||||
# that a request to change the parent for this item may still fail depending on
|
||||
# the new parent that is being added. Only populated for Team Drive files.
|
||||
# Whether the current user can move this Team Drive item by changing its parent.
|
||||
# Note that a request to change the parent for this item may still fail
|
||||
# depending on the new parent that is being added. Only populated for Team Drive
|
||||
# files.
|
||||
# Corresponds to the JSON property `canMoveTeamDriveItem`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_move_team_drive_item
|
||||
alias_method :can_move_team_drive_item?, :can_move_team_drive_item
|
||||
|
||||
# Whether the user has read access to the Revisions resource of the file. For a
|
||||
# Whether the current user can read the revisions resource of this file. For a
|
||||
# Team Drive item, whether revisions of non-folder descendants of this item, or
|
||||
# this item itself if it is not a folder, can be read.
|
||||
# Corresponds to the JSON property `canReadRevisions`
|
||||
|
@ -922,39 +960,39 @@ module Google
|
|||
attr_accessor :can_read_revisions
|
||||
alias_method :can_read_revisions?, :can_read_revisions
|
||||
|
||||
# Whether the user has read access to the Team Drive to which this file belongs.
|
||||
# Whether the current user can read the Team Drive to which this file belongs.
|
||||
# Only populated for Team Drive files.
|
||||
# Corresponds to the JSON property `canReadTeamDrive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_read_team_drive
|
||||
alias_method :can_read_team_drive?, :can_read_team_drive
|
||||
|
||||
# Whether the user can remove children from this folder. This is always false
|
||||
# when the item is not a folder.
|
||||
# Whether the current user can remove children from this folder. This is always
|
||||
# false when the item is not a folder.
|
||||
# Corresponds to the JSON property `canRemoveChildren`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_remove_children
|
||||
alias_method :can_remove_children?, :can_remove_children
|
||||
|
||||
# Whether the file can be renamed by the user.
|
||||
# Whether the current user can rename this file.
|
||||
# Corresponds to the JSON property `canRename`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_rename
|
||||
alias_method :can_rename?, :can_rename
|
||||
|
||||
# Whether the user can modify the file's permissions and sharing settings.
|
||||
# Whether the current user can modify the sharing settings for this file.
|
||||
# Corresponds to the JSON property `canShare`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_share
|
||||
alias_method :can_share?, :can_share
|
||||
|
||||
# Whether the file can be trashed by the user.
|
||||
# Whether the current user can move this file to trash.
|
||||
# Corresponds to the JSON property `canTrash`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_trash
|
||||
alias_method :can_trash?, :can_trash
|
||||
|
||||
# Whether the file can be restored from the trash by the current user.
|
||||
# Whether the current user can restore this file from trash.
|
||||
# Corresponds to the JSON property `canUntrash`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_untrash
|
||||
|
@ -1019,6 +1057,7 @@ module Google
|
|||
|
||||
# The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
|
||||
# Corresponds to the JSON property `image`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :image
|
||||
|
||||
|
@ -1388,7 +1427,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :role
|
||||
|
||||
# Details of whether the Permissions on this Team Drive item are inherited or
|
||||
# Details of whether the permissions on this Team Drive item are inherited or
|
||||
# directly on this item. This is an output-only field which is present only for
|
||||
# Team Drive items.
|
||||
# Corresponds to the JSON property `teamDrivePermissionDetails`
|
||||
|
@ -1783,11 +1822,30 @@ module Google
|
|||
class TeamDrive
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An image file and cropping parameters from which a background image for this
|
||||
# Team Drive is set. This is a write only field that can only be set on a drive.
|
||||
# teamdrives.update request that does not set themeId. When specified, all
|
||||
# fields of the backgroundImageFile must be set.
|
||||
# Corresponds to the JSON property `backgroundImageFile`
|
||||
# @return [Google::Apis::DriveV3::TeamDrive::BackgroundImageFile]
|
||||
attr_accessor :background_image_file
|
||||
|
||||
# A short-lived link to this Team Drive's background image.
|
||||
# Corresponds to the JSON property `backgroundImageLink`
|
||||
# @return [String]
|
||||
attr_accessor :background_image_link
|
||||
|
||||
# Capabilities the current user has on this Team Drive.
|
||||
# Corresponds to the JSON property `capabilities`
|
||||
# @return [Google::Apis::DriveV3::TeamDrive::Capabilities]
|
||||
attr_accessor :capabilities
|
||||
|
||||
# The color of this Team Drive as an RGB hex string. It can only be set on a
|
||||
# drive.teamdrives.update request that does not set themeId.
|
||||
# Corresponds to the JSON property `colorRgb`
|
||||
# @return [String]
|
||||
attr_accessor :color_rgb
|
||||
|
||||
# The ID of this Team Drive which is also the ID of the top level folder for
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `id`
|
||||
|
@ -1805,16 +1863,79 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The ID of the theme from which the background image and color will be set. The
|
||||
# set of possible teamDriveThemes can be retrieved from a drive.about.get
|
||||
# response. When not specified on a drive.teamdrives.create request, a random
|
||||
# theme is chosen from which the background image and color are set. This is a
|
||||
# write only field that can only be set on a request that does not set colorRgb
|
||||
# or backgroundImageFile.
|
||||
# Corresponds to the JSON property `themeId`
|
||||
# @return [String]
|
||||
attr_accessor :theme_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@background_image_file = args[:background_image_file] if args.key?(:background_image_file)
|
||||
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
|
||||
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
||||
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
||||
end
|
||||
|
||||
# An image file and cropping parameters from which a background image for this
|
||||
# Team Drive is set. This is a write only field that can only be set on a drive.
|
||||
# teamdrives.update request that does not set themeId. When specified, all
|
||||
# fields of the backgroundImageFile must be set.
|
||||
class BackgroundImageFile
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of an image file in Drive to use for the background image.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The width of the cropped image in the closed range of 0 to 1, which is the
|
||||
# width of the cropped image divided by the width of the entire image. The
|
||||
# height is computed by applying a width to height aspect ratio of 80 to 9. The
|
||||
# resulting image must be at least 1280 pixels wide and 144 pixels high.
|
||||
# Corresponds to the JSON property `width`
|
||||
# @return [Float]
|
||||
attr_accessor :width
|
||||
|
||||
# The X coordinate of the upper left corner of the cropping area in the
|
||||
# background image. This is a value in the closed range of 0 to 1 which is the
|
||||
# horizontal distance from the left side of the entire image to the left side of
|
||||
# the cropping area divided by the width of the entire image.
|
||||
# Corresponds to the JSON property `xCoordinate`
|
||||
# @return [Float]
|
||||
attr_accessor :x_coordinate
|
||||
|
||||
# The Y coordinate of the upper left corner of the cropping area in the
|
||||
# background image. This is a value in the closed range of 0 to 1 which is the
|
||||
# vertical distance from the top side of the entire image to the top side of the
|
||||
# cropping area divided by the height of the entire image.
|
||||
# Corresponds to the JSON property `yCoordinate`
|
||||
# @return [Float]
|
||||
attr_accessor :y_coordinate
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@width = args[:width] if args.key?(:width)
|
||||
@x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate)
|
||||
@y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate)
|
||||
end
|
||||
end
|
||||
|
||||
# Capabilities the current user has on this Team Drive.
|
||||
|
@ -1827,31 +1948,38 @@ module Google
|
|||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the current user can change the background of this Team Drive.
|
||||
# Corresponds to the JSON property `canChangeTeamDriveBackground`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_team_drive_background
|
||||
alias_method :can_change_team_drive_background?, :can_change_team_drive_background
|
||||
|
||||
# Whether the current user can comment on files in this Team Drive.
|
||||
# Corresponds to the JSON property `canComment`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_comment
|
||||
alias_method :can_comment?, :can_comment
|
||||
|
||||
# Whether files in this Team Drive can be copied by the current user.
|
||||
# Whether the current user can copy files in this Team Drive.
|
||||
# Corresponds to the JSON property `canCopy`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_copy
|
||||
alias_method :can_copy?, :can_copy
|
||||
|
||||
# Whether this Team Drive can be deleted by the current user.
|
||||
# Whether the current user can delete this Team Drive. Attempting to delete the
|
||||
# Team Drive may still fail if there are untrashed items inside the Team Drive.
|
||||
# Corresponds to the JSON property `canDeleteTeamDrive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_delete_team_drive
|
||||
alias_method :can_delete_team_drive?, :can_delete_team_drive
|
||||
|
||||
# Whether files in this Team Drive can be downloaded by the current user.
|
||||
# Whether the current user can download files in this Team Drive.
|
||||
# Corresponds to the JSON property `canDownload`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_download
|
||||
alias_method :can_download?, :can_download
|
||||
|
||||
# Whether files in this Team Drive can be edited by the current user.
|
||||
# Whether the current user can edit files in this Team Drive
|
||||
# Corresponds to the JSON property `canEdit`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_edit
|
||||
|
@ -1870,8 +1998,8 @@ module Google
|
|||
attr_accessor :can_manage_members
|
||||
alias_method :can_manage_members?, :can_manage_members
|
||||
|
||||
# Whether the current user has read access to the Revisions resource of files in
|
||||
# this Team Drive.
|
||||
# Whether the current user can read the revisions resource of files in this Team
|
||||
# Drive.
|
||||
# Corresponds to the JSON property `canReadRevisions`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_read_revisions
|
||||
|
@ -1883,13 +2011,13 @@ module Google
|
|||
attr_accessor :can_remove_children
|
||||
alias_method :can_remove_children?, :can_remove_children
|
||||
|
||||
# Whether files or folders in this Team Drive can be renamed by the current user.
|
||||
# Whether the current user can rename files or folders in this Team Drive.
|
||||
# Corresponds to the JSON property `canRename`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_rename
|
||||
alias_method :can_rename?, :can_rename
|
||||
|
||||
# Whether this Team Drive can be renamed by the current user.
|
||||
# Whether the current user can rename this Team Drive.
|
||||
# Corresponds to the JSON property `canRenameTeamDrive`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_rename_team_drive
|
||||
|
@ -1908,6 +2036,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
||||
@can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
|
||||
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
||||
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
||||
@can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
|
||||
|
|
|
@ -30,6 +30,12 @@ module Google
|
|||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TeamDriveTheme
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
@ -175,6 +181,12 @@ module Google
|
|||
class TeamDrive
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class BackgroundImageFile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Capabilities
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -216,6 +228,8 @@ module Google
|
|||
property :max_upload_size, as: 'maxUploadSize'
|
||||
property :storage_quota, as: 'storageQuota', class: Google::Apis::DriveV3::About::StorageQuota, decorator: Google::Apis::DriveV3::About::StorageQuota::Representation
|
||||
|
||||
collection :team_drive_themes, as: 'teamDriveThemes', class: Google::Apis::DriveV3::About::TeamDriveTheme, decorator: Google::Apis::DriveV3::About::TeamDriveTheme::Representation
|
||||
|
||||
property :user, as: 'user', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
|
||||
|
||||
end
|
||||
|
@ -229,6 +243,15 @@ module Google
|
|||
property :usage_in_drive_trash, as: 'usageInDriveTrash'
|
||||
end
|
||||
end
|
||||
|
||||
class TeamDriveTheme
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :background_image_link, as: 'backgroundImageLink'
|
||||
property :color_rgb, as: 'colorRgb'
|
||||
property :id, as: 'id'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Change
|
||||
|
@ -601,17 +624,33 @@ module Google
|
|||
class TeamDrive
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV3::TeamDrive::BackgroundImageFile, decorator: Google::Apis::DriveV3::TeamDrive::BackgroundImageFile::Representation
|
||||
|
||||
property :background_image_link, as: 'backgroundImageLink'
|
||||
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::TeamDrive::Capabilities, decorator: Google::Apis::DriveV3::TeamDrive::Capabilities::Representation
|
||||
|
||||
property :color_rgb, as: 'colorRgb'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :theme_id, as: 'themeId'
|
||||
end
|
||||
|
||||
class BackgroundImageFile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :width, as: 'width'
|
||||
property :x_coordinate, as: 'xCoordinate'
|
||||
property :y_coordinate, as: 'yCoordinate'
|
||||
end
|
||||
end
|
||||
|
||||
class Capabilities
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_add_children, as: 'canAddChildren'
|
||||
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
||||
property :can_comment, as: 'canComment'
|
||||
property :can_copy, as: 'canCopy'
|
||||
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
||||
|
|
|
@ -1669,7 +1669,7 @@ module Google
|
|||
# @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_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def create_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'teamdrives', options)
|
||||
command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
||||
command.request_object = team_drive_object
|
||||
|
@ -1707,7 +1707,7 @@ module Google
|
|||
# @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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
|
||||
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
|
@ -1740,7 +1740,7 @@ module Google
|
|||
# @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_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
|
||||
command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
||||
command.response_class = Google::Apis::DriveV3::TeamDrive
|
||||
|
@ -1814,7 +1814,7 @@ module Google
|
|||
# @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_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options)
|
||||
command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
||||
command.request_object = team_drive_object
|
||||
|
|
|
@ -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 = '20170330'
|
||||
|
||||
# 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 social meta tag params.
|
||||
# Used to set meta tag data for link previews on social sites.
|
||||
class SocialMetaTagInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A short description of the link. Optional.
|
||||
# Corresponds to the JSON property `socialDescription`
|
||||
# @return [String]
|
||||
attr_accessor :social_description
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@social_description = args[:social_description] if args.key?(:social_description)
|
||||
@social_title = args[:social_title] if args.key?(:social_title)
|
||||
@social_image_link = args[:social_image_link] if args.key?(:social_image_link)
|
||||
end
|
||||
end
|
||||
|
||||
# Dynamic Links warning messages.
|
||||
class DynamicLinkWarning
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The warning code.
|
||||
# Corresponds to the JSON property `warningCode`
|
||||
# @return [String]
|
||||
attr_accessor :warning_code
|
||||
|
||||
# The warning message to help developers improve their requests.
|
||||
# Corresponds to the JSON property `warningMessage`
|
||||
# @return [String]
|
||||
attr_accessor :warning_message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@warning_code = args[:warning_code] if args.key?(:warning_code)
|
||||
@warning_message = args[:warning_message] if args.key?(:warning_message)
|
||||
end
|
||||
end
|
||||
|
||||
# Android related attributes to the Dynamic Link.
|
||||
class AndroidInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@android_link = args[:android_link] if args.key?(:android_link)
|
||||
@android_fallback_link = args[:android_fallback_link] if args.key?(:android_fallback_link)
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@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)
|
||||
end
|
||||
end
|
||||
|
||||
# Tracking parameters supported by Dynamic Link.
|
||||
class AnalyticsInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
|
||||
# Parameters for iTunes Connect App Analytics.
|
||||
# Corresponds to the JSON property `itunesConnectAnalytics`
|
||||
# @return [Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics]
|
||||
attr_accessor :itunes_connect_analytics
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@google_play_analytics = args[:google_play_analytics] if args.key?(:google_play_analytics)
|
||||
@itunes_connect_analytics = args[:itunes_connect_analytics] if args.key?(:itunes_connect_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 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@utm_content = args[:utm_content] if args.key?(:utm_content)
|
||||
@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)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about a Dynamic Link.
|
||||
class DynamicLinkInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@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)
|
||||
end
|
||||
end
|
||||
|
||||
# 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
|
||||
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 SocialMetaTagInfo
|
||||
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 AndroidInfo
|
||||
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
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SocialMetaTagInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :social_description, as: 'socialDescription'
|
||||
property :social_title, as: 'socialTitle'
|
||||
property :social_image_link, as: 'socialImageLink'
|
||||
end
|
||||
end
|
||||
|
||||
class DynamicLinkWarning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :warning_code, as: 'warningCode'
|
||||
property :warning_message, as: 'warningMessage'
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_package_name, as: 'androidPackageName'
|
||||
property :android_min_package_version_code, as: 'androidMinPackageVersionCode'
|
||||
property :android_link, as: 'androidLink'
|
||||
property :android_fallback_link, as: 'androidFallbackLink'
|
||||
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_ipad_fallback_link, as: 'iosIpadFallbackLink'
|
||||
property :ios_ipad_bundle_id, as: 'iosIpadBundleId'
|
||||
property :ios_custom_scheme, as: 'iosCustomScheme'
|
||||
property :ios_bundle_id, as: 'iosBundleId'
|
||||
property :ios_fallback_link, as: 'iosFallbackLink'
|
||||
property :ios_app_store_id, as: 'iosAppStoreId'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyticsInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :google_play_analytics, as: 'googlePlayAnalytics', class: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics::Representation
|
||||
|
||||
property :itunes_connect_analytics, as: 'itunesConnectAnalytics', class: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics, decorator: Google::Apis::FirebasedynamiclinksV1::ITunesConnectAnalytics::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_content, as: 'utmContent'
|
||||
property :utm_medium, as: 'utmMedium'
|
||||
property :utm_term, as: 'utmTerm'
|
||||
property :utm_source, as: 'utmSource'
|
||||
property :utm_campaign, as: 'utmCampaign'
|
||||
property :gclid, as: 'gclid'
|
||||
end
|
||||
end
|
||||
|
||||
class DynamicLinkInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
end
|
||||
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
|
||||
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,425 @@
|
|||
# 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
|
||||
|
||||
# Represents a service-defined function call that was invoked during test
|
||||
# execution.
|
||||
class FunctionCall
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name of the function invoked.
|
||||
# Corresponds to the JSON property `function`
|
||||
# @return [String]
|
||||
attr_accessor :function
|
||||
|
||||
# The arguments that were provided to the function.
|
||||
# Corresponds to the JSON property `args`
|
||||
# @return [Array<Object>]
|
||||
attr_accessor :args
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@function = args[:function] if args.key?(:function)
|
||||
@args = args[:args] if args.key?(:args)
|
||||
end
|
||||
end
|
||||
|
||||
# `File` containing source content.
|
||||
class File
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Fingerprint (e.g. github sha) associated with the `File`.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@content = args[:content] if args.key?(:content)
|
||||
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
|
||||
|
||||
# `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 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
|
||||
|
||||
# Time the release was created.
|
||||
# Output only.
|
||||
# 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)
|
||||
@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)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
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
|
||||
|
||||
# `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
|
||||
|
||||
# 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
|
||||
|
||||
# Line number of the source fragment. 1-based.
|
||||
# Corresponds to the JSON property `line`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :line
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@column = args[:column] if args.key?(:column)
|
||||
@file_name = args[:file_name] if args.key?(:file_name)
|
||||
@line = args[:line] if args.key?(:line)
|
||||
end
|
||||
end
|
||||
|
||||
# Issues include warnings, errors, and deprecation notices.
|
||||
class Issue
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@source_position = args[:source_position] if args.key?(:source_position)
|
||||
@severity = args[:severity] if args.key?(:severity)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# `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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@source = args[:source] if args.key?(:source)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
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 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 ListReleasesResponse
|
||||
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
|
||||
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 FunctionCall
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :function, as: 'function'
|
||||
collection :args, as: 'args'
|
||||
end
|
||||
end
|
||||
|
||||
class File
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||
property :name, as: 'name'
|
||||
property :content, as: 'content'
|
||||
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 Release
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :update_time, as: 'updateTime'
|
||||
property :name, as: 'name'
|
||||
property :ruleset_name, as: 'rulesetName'
|
||||
property :create_time, as: 'createTime'
|
||||
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
|
||||
|
||||
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 :column, as: 'column'
|
||||
property :file_name, as: 'fileName'
|
||||
property :line, as: 'line'
|
||||
end
|
||||
end
|
||||
|
||||
class Issue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
|
||||
|
||||
property :severity, as: 'severity'
|
||||
property :description, as: 'description'
|
||||
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 :name, as: 'name'
|
||||
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
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 `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
|
||||
|
||||
# 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] 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] 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] 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, page_token: nil, page_size: nil, filter: 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['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['filter'] = filter unless filter.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
|
||||
|
||||
# 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
|
||||
|
||||
# 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] 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] 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] 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, page_token: nil, page_size: nil, filter: 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['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['filter'] = filter unless filter.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
|
|
@ -2754,6 +2754,7 @@ module Google
|
|||
# Device token supplied by an iOS system call to register for remote
|
||||
# notifications. Encode this field as web-safe base64.
|
||||
# Corresponds to the JSON property `apns_device_token`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :apns_device_token
|
||||
|
||||
|
@ -3022,6 +3023,7 @@ module Google
|
|||
# string. This is a developer-specified binary blob with size between 0 and 2 KB
|
||||
# before encoding.
|
||||
# Corresponds to the JSON property `completionRewardData`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :completion_reward_data
|
||||
|
||||
|
@ -4318,6 +4320,7 @@ module Google
|
|||
# The byte representation of the data (limited to 128 kB), as a Base64-encoded
|
||||
# string with the URL_SAFE encoding option.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :data
|
||||
|
||||
|
@ -4353,6 +4356,7 @@ module Google
|
|||
# The byte representation of the data (limited to 128 kB), as a Base64-encoded
|
||||
# string with the URL_SAFE encoding option.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :data
|
||||
|
||||
|
|
|
@ -25,7 +25,13 @@ module Google
|
|||
# @see https://cloud.google.com/genomics
|
||||
module GenomicsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170322'
|
||||
REVISION = '20170330'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
||||
# Manage your data in Google Cloud Storage
|
||||
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
@ -35,12 +41,6 @@ module Google
|
|||
|
||||
# View and manage Genomics data
|
||||
AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
||||
# Manage your data in Google Cloud Storage
|
||||
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue