Autogenerated update (2017-08-25)
Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
This commit is contained in:
parent
ce32deabcf
commit
2dd396ce6e
53917
api_names_out.yaml
53917
api_names_out.yaml
File diff suppressed because it is too large
Load Diff
|
@ -20,13 +20,13 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Accelerated Mobile Pages (AMP) URL API
|
# Accelerated Mobile Pages (AMP) URL API
|
||||||
#
|
#
|
||||||
# Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list
|
# Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given
|
||||||
# of public URL(s).
|
# list of public URL(s).
|
||||||
#
|
#
|
||||||
# @see https://developers.google.com/amp/cache/
|
# @see https://developers.google.com/amp/cache/
|
||||||
module AcceleratedmobilepageurlV1
|
module AcceleratedmobilepageurlV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170504'
|
REVISION = '20170718'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,15 +22,100 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module AcceleratedmobilepageurlV1
|
module AcceleratedmobilepageurlV1
|
||||||
|
|
||||||
|
# AMP URL response for a requested URL.
|
||||||
|
class AmpUrl
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The AMP URL pointing to the publisher's web server.
|
||||||
|
# Corresponds to the JSON property `ampUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :amp_url
|
||||||
|
|
||||||
|
# The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
|
||||||
|
# the cached document in the Google AMP Cache.
|
||||||
|
# Corresponds to the JSON property `cdnAmpUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :cdn_amp_url
|
||||||
|
|
||||||
|
# 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)
|
||||||
|
@amp_url = args[:amp_url] if args.key?(:amp_url)
|
||||||
|
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
|
||||||
|
@original_url = args[:original_url] if args.key?(:original_url)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# AMP URL Error resource for a requested URL that couldn't be found.
|
||||||
|
class AmpUrlError
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The error code of an API call.
|
||||||
|
# Corresponds to the JSON property `errorCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :error_code
|
||||||
|
|
||||||
|
# An optional descriptive error message.
|
||||||
|
# Corresponds to the JSON property `errorMessage`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :error_message
|
||||||
|
|
||||||
|
# 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_code = args[:error_code] if args.key?(:error_code)
|
||||||
|
@error_message = args[:error_message] if args.key?(:error_message)
|
||||||
|
@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
|
||||||
|
|
||||||
|
# The lookup_strategy being requested.
|
||||||
|
# Corresponds to the JSON property `lookupStrategy`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :lookup_strategy
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
|
||||||
|
@urls = args[:urls] if args.key?(:urls)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Batch AMP URL response.
|
# Batch AMP URL response.
|
||||||
class BatchGetAmpUrlsResponse
|
class BatchGetAmpUrlsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
|
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
|
||||||
# not be in the same order as URLs in the batch request.
|
# not be in the same order as URLs in the batch request.
|
||||||
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
|
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
|
||||||
|
@ -39,104 +124,19 @@ module Google
|
||||||
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
|
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
|
||||||
attr_accessor :amp_urls
|
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)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@url_errors = args[:url_errors] if args.key?(:url_errors)
|
|
||||||
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
|
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
|
||||||
end
|
@url_errors = args[:url_errors] if args.key?(:url_errors)
|
||||||
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 AMP URL pointing to the publisher's web server.
|
|
||||||
# Corresponds to the JSON property `ampUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :amp_url
|
|
||||||
|
|
||||||
# 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)
|
|
||||||
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
|
|
||||||
@amp_url = args[:amp_url] if args.key?(:amp_url)
|
|
||||||
@original_url = args[:original_url] if args.key?(:original_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
|
end
|
||||||
|
|
|
@ -22,12 +22,6 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module AcceleratedmobilepageurlV1
|
module AcceleratedmobilepageurlV1
|
||||||
|
|
||||||
class BatchGetAmpUrlsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AmpUrl
|
class AmpUrl
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -47,38 +41,44 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class BatchGetAmpUrlsResponse
|
class BatchGetAmpUrlsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AmpUrl
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
|
property :amp_url, as: 'ampUrl'
|
||||||
|
property :cdn_amp_url, as: 'cdnAmpUrl'
|
||||||
|
property :original_url, as: 'originalUrl'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AmpUrlError
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :error_code, as: 'errorCode'
|
||||||
|
property :error_message, as: 'errorMessage'
|
||||||
|
property :original_url, as: 'originalUrl'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchGetAmpUrlsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :lookup_strategy, as: 'lookupStrategy'
|
||||||
|
collection :urls, as: 'urls'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchGetAmpUrlsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
|
collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
|
||||||
|
|
||||||
end
|
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
|
||||||
end
|
|
||||||
|
|
||||||
class AmpUrl
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :cdn_amp_url, as: 'cdnAmpUrl'
|
|
||||||
property :amp_url, as: 'ampUrl'
|
|
||||||
property :original_url, as: 'originalUrl'
|
|
||||||
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
|
end
|
||||||
|
|
|
@ -22,8 +22,8 @@ module Google
|
||||||
module AcceleratedmobilepageurlV1
|
module AcceleratedmobilepageurlV1
|
||||||
# Accelerated Mobile Pages (AMP) URL API
|
# Accelerated Mobile Pages (AMP) URL API
|
||||||
#
|
#
|
||||||
# Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list
|
# Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given
|
||||||
# of public URL(s).
|
# list of public URL(s).
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# require 'google/apis/acceleratedmobilepageurl_v1'
|
# require 'google/apis/acceleratedmobilepageurl_v1'
|
||||||
|
@ -51,11 +51,11 @@ module Google
|
||||||
# Returns AMP URL(s) and equivalent
|
# Returns AMP URL(s) and equivalent
|
||||||
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
|
||||||
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object
|
# @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
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -68,14 +68,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
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 = make_simple_command(:post, 'v1/ampUrls:batchGet', options)
|
||||||
command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation
|
command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation
|
||||||
command.request_object = batch_get_amp_urls_request_object
|
command.request_object = batch_get_amp_urls_request_object
|
||||||
command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation
|
command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation
|
||||||
command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
|
command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,10 @@ module Google
|
||||||
# Accesses the latest features for managing Ad Exchange accounts, Real-Time
|
# Accesses the latest features for managing Ad Exchange accounts, Real-Time
|
||||||
# Bidding configurations and auction metrics, and Marketplace programmatic deals.
|
# Bidding configurations and auction metrics, and Marketplace programmatic deals.
|
||||||
#
|
#
|
||||||
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
|
||||||
module Adexchangebuyer2V2beta1
|
module Adexchangebuyer2V2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20170710'
|
REVISION = '20170809'
|
||||||
|
|
||||||
# Manage your Ad Exchange buyer account configuration
|
# Manage your Ad Exchange buyer account configuration
|
||||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/ad-exchange/buyer-rest
|
# @see https://developers.google.com/ad-exchange/buyer-rest
|
||||||
module AdexchangebuyerV1_4
|
module AdexchangebuyerV1_4
|
||||||
VERSION = 'V1_4'
|
VERSION = 'V1_4'
|
||||||
REVISION = '20170504'
|
REVISION = '20170810'
|
||||||
|
|
||||||
# Manage your Ad Exchange buyer account configuration
|
# Manage your Ad Exchange buyer account configuration
|
||||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||||
|
|
|
@ -3153,7 +3153,7 @@ module Google
|
||||||
class PublisherProfileApiProto
|
class PublisherProfileApiProto
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The account id of the seller.
|
# Deprecated: use the seller.account_id. The account id of the seller.
|
||||||
# Corresponds to the JSON property `accountId`
|
# Corresponds to the JSON property `accountId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :account_id
|
attr_accessor :account_id
|
||||||
|
|
|
@ -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/adexperiencereport_v1/service.rb'
|
||||||
|
require 'google/apis/adexperiencereport_v1/classes.rb'
|
||||||
|
require 'google/apis/adexperiencereport_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Ad Experience Report API
|
||||||
|
#
|
||||||
|
# View Ad Experience Report data, and get a list of sites that have a
|
||||||
|
# significant number of annoying ads.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/ad-experience-report/
|
||||||
|
module AdexperiencereportV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170819'
|
||||||
|
|
||||||
|
# Test scope for access to the Zoo service
|
||||||
|
AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,138 @@
|
||||||
|
# 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 AdexperiencereportV1
|
||||||
|
|
||||||
|
# Summary of the ad experience rating of a site for a specific platform.
|
||||||
|
class PlatformSummary
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The status of the site reviewed for abusive ads.
|
||||||
|
# Corresponds to the JSON property `abusiveStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :abusive_status
|
||||||
|
|
||||||
|
# The status of the site reviewed for the Better Ads Standards.
|
||||||
|
# Corresponds to the JSON property `betterAdsStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :better_ads_status
|
||||||
|
|
||||||
|
# The date on which ad filtering begins.
|
||||||
|
# Corresponds to the JSON property `enforcementTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :enforcement_time
|
||||||
|
|
||||||
|
# The ad filtering status of the site.
|
||||||
|
# Corresponds to the JSON property `filterStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :filter_status
|
||||||
|
|
||||||
|
# The last time that the site changed status.
|
||||||
|
# Corresponds to the JSON property `lastChangeTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :last_change_time
|
||||||
|
|
||||||
|
# The assigned regions for the site and platform.
|
||||||
|
# Corresponds to the JSON property `region`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :region
|
||||||
|
|
||||||
|
# A link that leads to a full ad experience report.
|
||||||
|
# Corresponds to the JSON property `reportUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :report_url
|
||||||
|
|
||||||
|
# Whether the site is currently under review.
|
||||||
|
# Corresponds to the JSON property `underReview`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :under_review
|
||||||
|
alias_method :under_review?, :under_review
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@abusive_status = args[:abusive_status] if args.key?(:abusive_status)
|
||||||
|
@better_ads_status = args[:better_ads_status] if args.key?(:better_ads_status)
|
||||||
|
@enforcement_time = args[:enforcement_time] if args.key?(:enforcement_time)
|
||||||
|
@filter_status = args[:filter_status] if args.key?(:filter_status)
|
||||||
|
@last_change_time = args[:last_change_time] if args.key?(:last_change_time)
|
||||||
|
@region = args[:region] if args.key?(:region)
|
||||||
|
@report_url = args[:report_url] if args.key?(:report_url)
|
||||||
|
@under_review = args[:under_review] if args.key?(:under_review)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for GetSiteSummary.
|
||||||
|
class SiteSummaryResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Summary of the ad experience rating of a site for a specific platform.
|
||||||
|
# Corresponds to the JSON property `desktopSummary`
|
||||||
|
# @return [Google::Apis::AdexperiencereportV1::PlatformSummary]
|
||||||
|
attr_accessor :desktop_summary
|
||||||
|
|
||||||
|
# Summary of the ad experience rating of a site for a specific platform.
|
||||||
|
# Corresponds to the JSON property `mobileSummary`
|
||||||
|
# @return [Google::Apis::AdexperiencereportV1::PlatformSummary]
|
||||||
|
attr_accessor :mobile_summary
|
||||||
|
|
||||||
|
# The name of the site reviewed.
|
||||||
|
# Corresponds to the JSON property `reviewedSite`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :reviewed_site
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@desktop_summary = args[:desktop_summary] if args.key?(:desktop_summary)
|
||||||
|
@mobile_summary = args[:mobile_summary] if args.key?(:mobile_summary)
|
||||||
|
@reviewed_site = args[:reviewed_site] if args.key?(:reviewed_site)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for ListViolatingSites.
|
||||||
|
class ViolatingSitesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of summaries of violating sites.
|
||||||
|
# Corresponds to the JSON property `violatingSites`
|
||||||
|
# @return [Array<Google::Apis::AdexperiencereportV1::SiteSummaryResponse>]
|
||||||
|
attr_accessor :violating_sites
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@violating_sites = args[:violating_sites] if args.key?(:violating_sites)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,77 @@
|
||||||
|
# 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 AdexperiencereportV1
|
||||||
|
|
||||||
|
class PlatformSummary
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SiteSummaryResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ViolatingSitesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PlatformSummary
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :abusive_status, as: 'abusiveStatus'
|
||||||
|
property :better_ads_status, as: 'betterAdsStatus'
|
||||||
|
property :enforcement_time, as: 'enforcementTime'
|
||||||
|
property :filter_status, as: 'filterStatus'
|
||||||
|
property :last_change_time, as: 'lastChangeTime'
|
||||||
|
collection :region, as: 'region'
|
||||||
|
property :report_url, as: 'reportUrl'
|
||||||
|
property :under_review, as: 'underReview'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SiteSummaryResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :desktop_summary, as: 'desktopSummary', class: Google::Apis::AdexperiencereportV1::PlatformSummary, decorator: Google::Apis::AdexperiencereportV1::PlatformSummary::Representation
|
||||||
|
|
||||||
|
property :mobile_summary, as: 'mobileSummary', class: Google::Apis::AdexperiencereportV1::PlatformSummary, decorator: Google::Apis::AdexperiencereportV1::PlatformSummary::Representation
|
||||||
|
|
||||||
|
property :reviewed_site, as: 'reviewedSite'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ViolatingSitesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :violating_sites, as: 'violatingSites', class: Google::Apis::AdexperiencereportV1::SiteSummaryResponse, decorator: Google::Apis::AdexperiencereportV1::SiteSummaryResponse::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,123 @@
|
||||||
|
# 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 AdexperiencereportV1
|
||||||
|
# Google Ad Experience Report API
|
||||||
|
#
|
||||||
|
# View Ad Experience Report data, and get a list of sites that have a
|
||||||
|
# significant number of annoying ads.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/adexperiencereport_v1'
|
||||||
|
#
|
||||||
|
# Adexperiencereport = Google::Apis::AdexperiencereportV1 # Alias the module
|
||||||
|
# service = Adexperiencereport::AdExperienceReportService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/ad-experience-report/
|
||||||
|
class AdExperienceReportService < 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://adexperiencereport.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets a summary of the ad experience rating of a site.
|
||||||
|
# @param [String] name
|
||||||
|
# The required site name. It should be the site property whose ad experiences
|
||||||
|
# may have been reviewed, and it should be URL-encoded. For example,
|
||||||
|
# sites/https%3A%2F%2Fwww.google.com. The server will return an error of
|
||||||
|
# BAD_REQUEST if this field is not filled in. Note that if the site property
|
||||||
|
# is not yet verified in Search Console, the reportUrl field returned by the
|
||||||
|
# API will lead to the verification page, prompting the user to go through
|
||||||
|
# that process before they can gain access to the Ad Experience Report.
|
||||||
|
# @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::AdexperiencereportV1::SiteSummaryResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AdexperiencereportV1::SiteSummaryResponse]
|
||||||
|
#
|
||||||
|
# @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_site(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AdexperiencereportV1::SiteSummaryResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AdexperiencereportV1::SiteSummaryResponse
|
||||||
|
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 sites with Ad Experience Report statuses of "Failing" or "Warning".
|
||||||
|
# @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::AdexperiencereportV1::ViolatingSitesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AdexperiencereportV1::ViolatingSitesResponse]
|
||||||
|
#
|
||||||
|
# @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_violating_sites(fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/violatingSites', options)
|
||||||
|
command.response_representation = Google::Apis::AdexperiencereportV1::ViolatingSitesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AdexperiencereportV1::ViolatingSitesResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/management/
|
# @see https://developers.google.com/adsense/management/
|
||||||
module AdsenseV1_4
|
module AdsenseV1_4
|
||||||
VERSION = 'V1_4'
|
VERSION = 'V1_4'
|
||||||
REVISION = '20170711'
|
REVISION = '20170425'
|
||||||
|
|
||||||
# View and manage your AdSense data
|
# View and manage your AdSense data
|
||||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/host/
|
# @see https://developers.google.com/adsense/host/
|
||||||
module AdsensehostV4_1
|
module AdsensehostV4_1
|
||||||
VERSION = 'V4_1'
|
VERSION = 'V4_1'
|
||||||
REVISION = '20170711'
|
REVISION = '20170425'
|
||||||
|
|
||||||
# View and manage your AdSense host data and associated accounts
|
# View and manage your AdSense host data and associated accounts
|
||||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/analytics/
|
# @see https://developers.google.com/analytics/
|
||||||
module AnalyticsV3
|
module AnalyticsV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20170321'
|
REVISION = '20170807'
|
||||||
|
|
||||||
# View and manage your Google Analytics data
|
# View and manage your Google Analytics data
|
||||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||||
|
|
|
@ -589,6 +589,11 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :profiles_linked
|
attr_accessor :profiles_linked
|
||||||
|
|
||||||
|
# Collection of schema headers of the custom data source.
|
||||||
|
# Corresponds to the JSON property `schema`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :schema
|
||||||
|
|
||||||
# Link for this Analytics custom data source.
|
# Link for this Analytics custom data source.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -604,7 +609,7 @@ module Google
|
||||||
# @return [DateTime]
|
# @return [DateTime]
|
||||||
attr_accessor :updated
|
attr_accessor :updated
|
||||||
|
|
||||||
#
|
# Upload type of the custom data source.
|
||||||
# Corresponds to the JSON property `uploadType`
|
# Corresponds to the JSON property `uploadType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :upload_type
|
attr_accessor :upload_type
|
||||||
|
@ -631,6 +636,7 @@ module Google
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@parent_link = args[:parent_link] if args.key?(:parent_link)
|
@parent_link = args[:parent_link] if args.key?(:parent_link)
|
||||||
@profiles_linked = args[:profiles_linked] if args.key?(:profiles_linked)
|
@profiles_linked = args[:profiles_linked] if args.key?(:profiles_linked)
|
||||||
|
@schema = args[:schema] if args.key?(:schema)
|
||||||
@self_link = args[:self_link] if args.key?(:self_link)
|
@self_link = args[:self_link] if args.key?(:self_link)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
@updated = args[:updated] if args.key?(:updated)
|
@updated = args[:updated] if args.key?(:updated)
|
||||||
|
@ -3288,7 +3294,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# The type of the foreign account. For example `ADWORDS_LINKS`.
|
# The type of the foreign account. For example, `ADWORDS_LINKS`, `DBM_LINKS`, `
|
||||||
|
# MCC_LINKS` or `OPTIMIZE`.
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
@ -5053,6 +5060,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
|
# Time this file is uploaded.
|
||||||
|
# Corresponds to the JSON property `uploadTime`
|
||||||
|
# @return [DateTime]
|
||||||
|
attr_accessor :upload_time
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -5065,6 +5077,7 @@ module Google
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@upload_time = args[:upload_time] if args.key?(:upload_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -782,6 +782,7 @@ module Google
|
||||||
property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::CustomDataSource::ParentLink, decorator: Google::Apis::AnalyticsV3::CustomDataSource::ParentLink::Representation
|
property :parent_link, as: 'parentLink', class: Google::Apis::AnalyticsV3::CustomDataSource::ParentLink, decorator: Google::Apis::AnalyticsV3::CustomDataSource::ParentLink::Representation
|
||||||
|
|
||||||
collection :profiles_linked, as: 'profilesLinked'
|
collection :profiles_linked, as: 'profilesLinked'
|
||||||
|
collection :schema, as: 'schema'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
property :updated, as: 'updated', type: DateTime
|
property :updated, as: 'updated', type: DateTime
|
||||||
|
@ -1869,6 +1870,8 @@ module Google
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
|
property :upload_time, as: 'uploadTime', type: DateTime
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,13 +25,13 @@ module Google
|
||||||
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||||
module AnalyticsreportingV4
|
module AnalyticsreportingV4
|
||||||
VERSION = 'V4'
|
VERSION = 'V4'
|
||||||
REVISION = '20170705'
|
REVISION = '20170411'
|
||||||
|
|
||||||
# View your Google Analytics data
|
|
||||||
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
|
||||||
|
|
||||||
# View and manage your Google Analytics data
|
# View and manage your Google Analytics data
|
||||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||||
|
|
||||||
|
# View your Google Analytics data
|
||||||
|
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,187 +22,37 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module AnalyticsreportingV4
|
module AnalyticsreportingV4
|
||||||
|
|
||||||
class SegmentSequenceStep
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Metric
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PivotValueRegion
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Report
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PivotHeader
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DateRange
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ReportRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class MetricFilter
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Dimension
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SimpleSegment
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DynamicSegment
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ColumnHeader
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SegmentFilterClause
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ReportRow
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class MetricFilterClause
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Cohort
|
class Cohort
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class OrFiltersForSegment
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class MetricHeader
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DimensionFilterClause
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetReportsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SequenceSegment
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SegmentMetricFilter
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DateRangeValues
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CohortGroup
|
class CohortGroup
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetReportsRequest
|
class ColumnHeader
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Pivot
|
class DateRange
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class PivotHeaderEntry
|
class DateRangeValues
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SegmentFilter
|
class Dimension
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SegmentDefinition
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class MetricHeaderEntry
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ReportData
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -214,7 +64,61 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SegmentDimensionFilter
|
class DimensionFilterClause
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DynamicSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetReportsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetReportsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Metric
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricFilterClause
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricHeaderEntry
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrFiltersForSegment
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -226,53 +130,132 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Pivot
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotHeaderEntry
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotValueRegion
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Report
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportData
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportRow
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Segment
|
class Segment
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SegmentDefinition
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SegmentDimensionFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SegmentFilter
|
||||||
|
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 SegmentMetricFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class SegmentSequenceStep
|
class SegmentSequenceStep
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SequenceSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SimpleSegment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Cohort
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
||||||
|
|
||||||
property :match_type, as: 'matchType'
|
property :name, as: 'name'
|
||||||
|
property :type, as: 'type'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Metric
|
class CohortGroup
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :formatting_type, as: 'formattingType'
|
collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation
|
||||||
property :alias, as: 'alias'
|
|
||||||
property :expression, as: 'expression'
|
property :lifetime_value, as: 'lifetimeValue'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class PivotValueRegion
|
class ColumnHeader
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :values, as: 'values'
|
collection :dimensions, as: 'dimensions'
|
||||||
end
|
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
|
||||||
end
|
|
||||||
|
|
||||||
class Report
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
|
|
||||||
|
|
||||||
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class PivotHeader
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :total_pivot_groups_count, as: 'totalPivotGroupsCount'
|
|
||||||
collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -280,50 +263,17 @@ module Google
|
||||||
class DateRange
|
class DateRange
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :start_date, as: 'startDate'
|
|
||||||
property :end_date, as: 'endDate'
|
property :end_date, as: 'endDate'
|
||||||
|
property :start_date, as: 'startDate'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ReportRequest
|
class DateRangeValues
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :sampling_level, as: 'samplingLevel'
|
collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation
|
||||||
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
|
||||||
|
|
||||||
property :page_token, as: 'pageToken'
|
collection :values, as: 'values'
|
||||||
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
|
||||||
|
|
||||||
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
|
|
||||||
|
|
||||||
property :include_empty_rows, as: 'includeEmptyRows'
|
|
||||||
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 :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
|
|
||||||
|
|
||||||
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
|
||||||
|
|
||||||
collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsreportingV4::OrderBy, decorator: Google::Apis::AnalyticsreportingV4::OrderBy::Representation
|
|
||||||
|
|
||||||
collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation
|
|
||||||
|
|
||||||
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'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -335,51 +285,69 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SimpleSegment
|
class DimensionFilter
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
property :case_sensitive, as: 'caseSensitive'
|
||||||
|
property :dimension_name, as: 'dimensionName'
|
||||||
|
collection :expressions, as: 'expressions'
|
||||||
|
property :not, as: 'not'
|
||||||
|
property :operator, as: 'operator'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionFilterClause
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation
|
||||||
|
|
||||||
|
property :operator, as: 'operator'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DynamicSegment
|
class DynamicSegment
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
property :name, as: 'name'
|
||||||
|
|
||||||
property :session_segment, as: 'sessionSegment', 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
|
||||||
|
|
||||||
property :name, as: 'name'
|
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ColumnHeader
|
class GetReportsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
|
collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation
|
||||||
|
|
||||||
collection :dimensions, as: 'dimensions'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SegmentFilterClause
|
class GetReportsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Metric
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :alias, as: 'alias'
|
||||||
|
property :expression, as: 'expression'
|
||||||
|
property :formatting_type, as: 'formattingType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :comparison_value, as: 'comparisonValue'
|
||||||
|
property :metric_name, as: 'metricName'
|
||||||
property :not, as: 'not'
|
property :not, as: 'not'
|
||||||
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
|
property :operator, as: 'operator'
|
||||||
|
|
||||||
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -392,11 +360,19 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Cohort
|
class MetricHeader
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::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
|
||||||
|
|
||||||
|
class MetricHeaderEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
end
|
end
|
||||||
|
@ -410,29 +386,193 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class MetricHeader
|
class OrderBy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation
|
property :field_name, as: 'fieldName'
|
||||||
|
property :order_type, as: 'orderType'
|
||||||
|
property :sort_order, as: 'sortOrder'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
|
class Pivot
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
||||||
|
|
||||||
|
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
||||||
|
|
||||||
|
property :max_group_count, as: 'maxGroupCount'
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
|
||||||
|
|
||||||
|
property :start_group, as: 'startGroup'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotHeader
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation
|
||||||
|
|
||||||
|
property :total_pivot_groups_count, as: 'totalPivotGroupsCount'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotHeaderEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :dimension_names, as: 'dimensionNames'
|
||||||
|
collection :dimension_values, as: 'dimensionValues'
|
||||||
|
property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DimensionFilterClause
|
class PivotValueRegion
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation
|
collection :values, as: 'values'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Report
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
|
||||||
|
|
||||||
|
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportData
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data_last_refreshed, as: 'dataLastRefreshed'
|
||||||
|
property :is_data_golden, as: 'isDataGolden'
|
||||||
|
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
|
|
||||||
|
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
|
|
||||||
|
property :row_count, as: 'rowCount'
|
||||||
|
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
|
||||||
|
|
||||||
|
collection :samples_read_counts, as: 'samplesReadCounts'
|
||||||
|
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
|
||||||
|
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
|
||||||
|
|
||||||
|
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
||||||
|
|
||||||
|
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
||||||
|
|
||||||
|
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
||||||
|
|
||||||
|
property :filters_expression, as: 'filtersExpression'
|
||||||
|
property :hide_totals, as: 'hideTotals'
|
||||||
|
property :hide_value_ranges, as: 'hideValueRanges'
|
||||||
|
property :include_empty_rows, as: 'includeEmptyRows'
|
||||||
|
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
|
||||||
|
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
|
||||||
|
|
||||||
|
collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsreportingV4::OrderBy, decorator: Google::Apis::AnalyticsreportingV4::OrderBy::Representation
|
||||||
|
|
||||||
|
property :page_size, as: 'pageSize'
|
||||||
|
property :page_token, as: 'pageToken'
|
||||||
|
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
|
||||||
|
|
||||||
|
property :sampling_level, as: 'samplingLevel'
|
||||||
|
collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation
|
||||||
|
|
||||||
|
property :view_id, as: 'viewId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportRow
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :dimensions, as: 'dimensions'
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Segment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
|
||||||
|
|
||||||
|
property :segment_id, as: 'segmentId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SegmentDefinition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SegmentDimensionFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :case_sensitive, as: 'caseSensitive'
|
||||||
|
property :dimension_name, as: 'dimensionName'
|
||||||
|
collection :expressions, as: 'expressions'
|
||||||
|
property :max_comparison_value, as: 'maxComparisonValue'
|
||||||
|
property :min_comparison_value, as: 'minComparisonValue'
|
||||||
property :operator, as: 'operator'
|
property :operator, as: 'operator'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GetReportsResponse
|
class SegmentFilter
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation
|
property :not, as: 'not'
|
||||||
|
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
|
||||||
|
|
||||||
|
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
|
||||||
|
|
||||||
|
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'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SegmentMetricFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :comparison_value, as: 'comparisonValue'
|
||||||
|
property :max_comparison_value, as: 'maxComparisonValue'
|
||||||
|
property :metric_name, as: 'metricName'
|
||||||
|
property :operator, as: 'operator'
|
||||||
|
property :scope, as: 'scope'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SegmentSequenceStep
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :match_type, as: 'matchType'
|
||||||
|
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -446,151 +586,11 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SegmentMetricFilter
|
class SimpleSegment
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :operator, as: 'operator'
|
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
||||||
property :metric_name, as: 'metricName'
|
|
||||||
property :scope, as: 'scope'
|
|
||||||
property :max_comparison_value, as: 'maxComparisonValue'
|
|
||||||
property :comparison_value, as: 'comparisonValue'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DateRangeValues
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :values, as: 'values'
|
|
||||||
collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CohortGroup
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation
|
|
||||||
|
|
||||||
property :lifetime_value, as: 'lifetimeValue'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetReportsRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
|
||||||
|
|
||||||
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class PivotHeaderEntry
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
|
|
||||||
|
|
||||||
collection :dimension_names, as: 'dimensionNames'
|
|
||||||
collection :dimension_values, as: 'dimensionValues'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SegmentFilter
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
|
|
||||||
|
|
||||||
property :not, as: 'not'
|
|
||||||
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SegmentDefinition
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class MetricHeaderEntry
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :type, as: 'type'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ReportData
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
|
|
||||||
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
|
||||||
|
|
||||||
collection :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'
|
|
||||||
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
|
|
||||||
|
|
||||||
property :row_count, as: 'rowCount'
|
|
||||||
property :data_last_refreshed, as: 'dataLastRefreshed'
|
|
||||||
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DimensionFilter
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :case_sensitive, as: 'caseSensitive'
|
|
||||||
property :operator, as: 'operator'
|
|
||||||
property :dimension_name, as: 'dimensionName'
|
|
||||||
collection :expressions, as: 'expressions'
|
|
||||||
property :not, as: 'not'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SegmentDimensionFilter
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :max_comparison_value, as: 'maxComparisonValue'
|
|
||||||
property :dimension_name, as: 'dimensionName'
|
|
||||||
property :operator, as: 'operator'
|
|
||||||
collection :expressions, as: 'expressions'
|
|
||||||
property :case_sensitive, as: 'caseSensitive'
|
|
||||||
property :min_comparison_value, as: 'minComparisonValue'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class OrderBy
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :order_type, as: 'orderType'
|
|
||||||
property :field_name, as: 'fieldName'
|
|
||||||
property :sort_order, as: 'sortOrder'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Segment
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
|
|
||||||
|
|
||||||
property :segment_id, as: 'segmentId'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -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/androiddeviceprovisioning_v1/service.rb'
|
||||||
|
require 'google/apis/androiddeviceprovisioning_v1/classes.rb'
|
||||||
|
require 'google/apis/androiddeviceprovisioning_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Android Device Provisioning Partner API
|
||||||
|
#
|
||||||
|
# Automates reseller integration into Zero Touch Provisioning by assigning
|
||||||
|
# devices to customers and creating device reports.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/zero-touch/
|
||||||
|
module AndroiddeviceprovisioningV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170819'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,917 @@
|
||||||
|
# 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 AndroiddeviceprovisioningV1
|
||||||
|
|
||||||
|
# Request message to claim a device on behalf of a customer.
|
||||||
|
class ClaimDeviceRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The customer to claim for.
|
||||||
|
# Corresponds to the JSON property `customerId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :customer_id
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
# Corresponds to the JSON property `deviceIdentifier`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
|
# Section to claim
|
||||||
|
# Corresponds to the JSON property `sectionType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
||||||
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message containing device id of the claim.
|
||||||
|
class ClaimDeviceResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# the device id of the claimed device.
|
||||||
|
# Corresponds to the JSON property `deviceId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# the resource name of the device in
|
||||||
|
# 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
|
||||||
|
# Corresponds to the JSON property `deviceName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :device_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@device_name = args[:device_name] if args.key?(:device_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to claim devices asynchronously in batch.
|
||||||
|
class ClaimDevicesRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# list of claims.
|
||||||
|
# Corresponds to the JSON property `claims`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim>]
|
||||||
|
attr_accessor :claims
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@claims = args[:claims] if args.key?(:claims)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Company
|
||||||
|
class Company
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Admin email.
|
||||||
|
# Admins will be able to operate on the portal.
|
||||||
|
# This field is a WRITE-only field at creation time.
|
||||||
|
# Corresponds to the JSON property `adminEmails`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :admin_emails
|
||||||
|
|
||||||
|
# company id
|
||||||
|
# Corresponds to the JSON property `companyId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :company_id
|
||||||
|
|
||||||
|
# company name
|
||||||
|
# Corresponds to the JSON property `companyName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :company_name
|
||||||
|
|
||||||
|
# REST Resource name.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Owner email.
|
||||||
|
# Owner is able to operate on the portal, and modify admins and other owners.
|
||||||
|
# This field is a WRITE-only field at creation time.
|
||||||
|
# Corresponds to the JSON property `ownerEmails`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :owner_emails
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@admin_emails = args[:admin_emails] if args.key?(:admin_emails)
|
||||||
|
@company_id = args[:company_id] if args.key?(:company_id)
|
||||||
|
@company_name = args[:company_name] if args.key?(:company_name)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@owner_emails = args[:owner_emails] if args.key?(:owner_emails)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Device
|
||||||
|
class Device
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# claims
|
||||||
|
# Corresponds to the JSON property `claims`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim>]
|
||||||
|
attr_accessor :claims
|
||||||
|
|
||||||
|
# The resource name of the configuration.
|
||||||
|
# Only set for customers.
|
||||||
|
# Corresponds to the JSON property `configuration`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :configuration
|
||||||
|
|
||||||
|
# Device id
|
||||||
|
# Corresponds to the JSON property `deviceId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
# Corresponds to the JSON property `deviceIdentifier`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
|
# A key value pair of the device metadata.
|
||||||
|
# Corresponds to the JSON property `deviceMetadata`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
|
||||||
|
attr_accessor :device_metadata
|
||||||
|
|
||||||
|
# Resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'.
|
||||||
|
# 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)
|
||||||
|
@claims = args[:claims] if args.key?(:claims)
|
||||||
|
@configuration = args[:configuration] if args.key?(:configuration)
|
||||||
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
|
@device_metadata = args[:device_metadata] if args.key?(:device_metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# containing the necessary info about a claim for a partner.
|
||||||
|
class DeviceClaim
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# owner id
|
||||||
|
# Corresponds to the JSON property `ownerCompanyId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :owner_company_id
|
||||||
|
|
||||||
|
# section type.
|
||||||
|
# Corresponds to the JSON property `sectionType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@owner_company_id = args[:owner_company_id] if args.key?(:owner_company_id)
|
||||||
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
class DeviceIdentifier
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# IMEI
|
||||||
|
# Corresponds to the JSON property `imei`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :imei
|
||||||
|
|
||||||
|
# Manufacturer name to match `android.os.Build.MANUFACTURER` (required).
|
||||||
|
# Allowed values listed in
|
||||||
|
# [manufacturer names](/zero-touch/resources/manufacturer-names).
|
||||||
|
# Corresponds to the JSON property `manufacturer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :manufacturer
|
||||||
|
|
||||||
|
# MEID
|
||||||
|
# Corresponds to the JSON property `meid`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :meid
|
||||||
|
|
||||||
|
# Serial number (optional)
|
||||||
|
# Corresponds to the JSON property `serialNumber`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :serial_number
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@imei = args[:imei] if args.key?(:imei)
|
||||||
|
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
||||||
|
@meid = args[:meid] if args.key?(:meid)
|
||||||
|
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A key value pair of the device metadata.
|
||||||
|
class DeviceMetadata
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Metadata entries
|
||||||
|
# Corresponds to the JSON property `entries`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :entries
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@entries = args[:entries] if args.key?(:entries)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Long running operation metadata.
|
||||||
|
class DevicesLongRunningOperationMetadata
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Number of devices parsed in your requests.
|
||||||
|
# Corresponds to the JSON property `devicesCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :devices_count
|
||||||
|
|
||||||
|
# The overall processing status.
|
||||||
|
# Corresponds to the JSON property `processingStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :processing_status
|
||||||
|
|
||||||
|
# Processing progress from 0 to 100.
|
||||||
|
# Corresponds to the JSON property `progress`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :progress
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@devices_count = args[:devices_count] if args.key?(:devices_count)
|
||||||
|
@processing_status = args[:processing_status] if args.key?(:processing_status)
|
||||||
|
@progress = args[:progress] if args.key?(:progress)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Long running operation response.
|
||||||
|
class DevicesLongRunningOperationResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# processing status for each device.
|
||||||
|
# One PerDeviceStatus per device. The order is the same as in your requests.
|
||||||
|
# Corresponds to the JSON property `perDeviceStatus`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice>]
|
||||||
|
attr_accessor :per_device_status
|
||||||
|
|
||||||
|
# Number of succeesfully processed ones.
|
||||||
|
# Corresponds to the JSON property `successCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :success_count
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@per_device_status = args[:per_device_status] if args.key?(:per_device_status)
|
||||||
|
@success_count = args[:success_count] if args.key?(:success_count)
|
||||||
|
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
|
||||||
|
|
||||||
|
# Request to find devices.
|
||||||
|
class FindDevicesByDeviceIdentifierRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
# Corresponds to the JSON property `deviceIdentifier`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
|
# Number of devices to show.
|
||||||
|
# Corresponds to the JSON property `limit`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :limit
|
||||||
|
|
||||||
|
# Page token
|
||||||
|
# Corresponds to the JSON property `pageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
|
@limit = args[:limit] if args.key?(:limit)
|
||||||
|
@page_token = args[:page_token] if args.key?(:page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response containing found devices.
|
||||||
|
class FindDevicesByDeviceIdentifierResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Found devices.
|
||||||
|
# Corresponds to the JSON property `devices`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
|
||||||
|
attr_accessor :devices
|
||||||
|
|
||||||
|
# Page token of next page
|
||||||
|
# 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)
|
||||||
|
@devices = args[:devices] if args.key?(:devices)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to find devices by customers.
|
||||||
|
class FindDevicesByOwnerRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of customer ids to search for.
|
||||||
|
# Corresponds to the JSON property `customerId`
|
||||||
|
# @return [Array<Fixnum>]
|
||||||
|
attr_accessor :customer_id
|
||||||
|
|
||||||
|
# The number of devices to show in the result.
|
||||||
|
# Corresponds to the JSON property `limit`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :limit
|
||||||
|
|
||||||
|
# Page token
|
||||||
|
# Corresponds to the JSON property `pageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :page_token
|
||||||
|
|
||||||
|
# The section type.
|
||||||
|
# Corresponds to the JSON property `sectionType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
||||||
|
@limit = args[:limit] if args.key?(:limit)
|
||||||
|
@page_token = args[:page_token] if args.key?(:page_token)
|
||||||
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response containing found devices.
|
||||||
|
class FindDevicesByOwnerResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Devices found.
|
||||||
|
# Corresponds to the JSON property `devices`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
|
||||||
|
attr_accessor :devices
|
||||||
|
|
||||||
|
# Page token of next page
|
||||||
|
# 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)
|
||||||
|
@devices = args[:devices] if args.key?(:devices)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message of all customers related to this partner.
|
||||||
|
class ListCustomersResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of customers related to this partner.
|
||||||
|
# Corresponds to the JSON property `customers`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
|
||||||
|
attr_accessor :customers
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customers = args[:customers] if args.key?(:customers)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This resource represents a long-running operation that is the result of a
|
||||||
|
# network API call.
|
||||||
|
class Operation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If the value is `false`, it means the operation is still in progress.
|
||||||
|
# If true, the operation is completed, and either `error` or `response` is
|
||||||
|
# available.
|
||||||
|
# Corresponds to the JSON property `done`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :done
|
||||||
|
alias_method :done?, :done
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::Status]
|
||||||
|
attr_accessor :error
|
||||||
|
|
||||||
|
# This field will contain a `DevicesLongRunningOperationMetadata` object if the
|
||||||
|
# operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# The server-assigned name, which is only unique within the same service that
|
||||||
|
# originally returns it. If you use the default HTTP mapping, the
|
||||||
|
# `name` should have the format of `operations/some/unique/name`.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# This field will contain a `DevicesLongRunningOperationResponse` object if the
|
||||||
|
# operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.
|
||||||
|
# Corresponds to the JSON property `response`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :response
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@done = args[:done] if args.key?(:done)
|
||||||
|
@error = args[:error] if args.key?(:error)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@response = args[:response] if args.key?(:response)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Operation the server received for every device.
|
||||||
|
class OperationPerDevice
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifies one claim request.
|
||||||
|
# Corresponds to the JSON property `claim`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim]
|
||||||
|
attr_accessor :claim
|
||||||
|
|
||||||
|
# Stores the processing result for each device.
|
||||||
|
# Corresponds to the JSON property `result`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch]
|
||||||
|
attr_accessor :result
|
||||||
|
|
||||||
|
# Identifies one unclaim request.
|
||||||
|
# Corresponds to the JSON property `unclaim`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim]
|
||||||
|
attr_accessor :unclaim
|
||||||
|
|
||||||
|
# Identifies metdata updates to one device.
|
||||||
|
# Corresponds to the JSON property `updateMetadata`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments]
|
||||||
|
attr_accessor :update_metadata
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@claim = args[:claim] if args.key?(:claim)
|
||||||
|
@result = args[:result] if args.key?(:result)
|
||||||
|
@unclaim = args[:unclaim] if args.key?(:unclaim)
|
||||||
|
@update_metadata = args[:update_metadata] if args.key?(:update_metadata)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Identifies one claim request.
|
||||||
|
class PartnerClaim
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# customer id to claim for.
|
||||||
|
# Corresponds to the JSON property `customerId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :customer_id
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
# Corresponds to the JSON property `deviceIdentifier`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
|
# A key value pair of the device metadata.
|
||||||
|
# Corresponds to the JSON property `deviceMetadata`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
|
||||||
|
attr_accessor :device_metadata
|
||||||
|
|
||||||
|
# section type to claim.
|
||||||
|
# Corresponds to the JSON property `sectionType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
||||||
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
|
@device_metadata = args[:device_metadata] if args.key?(:device_metadata)
|
||||||
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Identifies one unclaim request.
|
||||||
|
class PartnerUnclaim
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# device id of the device.
|
||||||
|
# Corresponds to the JSON property `deviceId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
# Corresponds to the JSON property `deviceIdentifier`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
|
# section type to unclaim.
|
||||||
|
# Corresponds to the JSON property `sectionType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Stores the processing result for each device.
|
||||||
|
class PerDeviceStatusInBatch
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# device id of the device if process succeeds.
|
||||||
|
# Corresponds to the JSON property `deviceId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# Error identifier.
|
||||||
|
# Corresponds to the JSON property `errorIdentifier`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :error_identifier
|
||||||
|
|
||||||
|
# Error message
|
||||||
|
# Corresponds to the JSON property `errorMessage`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :error_message
|
||||||
|
|
||||||
|
# Process result.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@error_identifier = args[:error_identifier] if args.key?(:error_identifier)
|
||||||
|
@error_message = args[:error_message] if args.key?(:error_message)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
class Status
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There is a common set of
|
||||||
|
# message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<Hash<String,Object>>]
|
||||||
|
attr_accessor :details
|
||||||
|
|
||||||
|
# A developer-facing error message, which should be in English. Any
|
||||||
|
# user-facing error message should be localized and sent in the
|
||||||
|
# google.rpc.Status.details field, or localized by the client.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@code = args[:code] if args.key?(:code)
|
||||||
|
@details = args[:details] if args.key?(:details)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message to unclaim a device.
|
||||||
|
class UnclaimDeviceRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The device id returned by ClaimDevice.
|
||||||
|
# Corresponds to the JSON property `deviceId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
# Corresponds to the JSON property `deviceIdentifier`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
|
# The section type to unclaim for.
|
||||||
|
# Corresponds to the JSON property `sectionType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to unclaim devices asynchronously in batch.
|
||||||
|
class UnclaimDevicesRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# list of unclaims.
|
||||||
|
# Corresponds to the JSON property `unclaims`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim>]
|
||||||
|
attr_accessor :unclaims
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@unclaims = args[:unclaims] if args.key?(:unclaims)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to update device metadata in batch.
|
||||||
|
class UpdateDeviceMetadataInBatchRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# list of metadata updates.
|
||||||
|
# Corresponds to the JSON property `updates`
|
||||||
|
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments>]
|
||||||
|
attr_accessor :updates
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@updates = args[:updates] if args.key?(:updates)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to set metadata for a device.
|
||||||
|
class UpdateDeviceMetadataRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A key value pair of the device metadata.
|
||||||
|
# Corresponds to the JSON property `deviceMetadata`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
|
||||||
|
attr_accessor :device_metadata
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_metadata = args[:device_metadata] if args.key?(:device_metadata)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Identifies metdata updates to one device.
|
||||||
|
class UpdateMetadataArguments
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# device id of the device.
|
||||||
|
# Corresponds to the JSON property `deviceId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# DeviceIdentifiers identifies an unique device.
|
||||||
|
# Corresponds to the JSON property `deviceIdentifier`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
||||||
|
attr_accessor :device_identifier
|
||||||
|
|
||||||
|
# A key value pair of the device metadata.
|
||||||
|
# Corresponds to the JSON property `deviceMetadata`
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
|
||||||
|
attr_accessor :device_metadata
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
|
@device_metadata = args[:device_metadata] if args.key?(:device_metadata)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,447 @@
|
||||||
|
# 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 AndroiddeviceprovisioningV1
|
||||||
|
|
||||||
|
class ClaimDeviceRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClaimDeviceResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClaimDevicesRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Company
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Device
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceClaim
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceIdentifier
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DevicesLongRunningOperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DevicesLongRunningOperationResponse
|
||||||
|
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 FindDevicesByDeviceIdentifierRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FindDevicesByDeviceIdentifierResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FindDevicesByOwnerRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FindDevicesByOwnerResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListCustomersResponse
|
||||||
|
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 OperationPerDevice
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PartnerClaim
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PartnerUnclaim
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PerDeviceStatusInBatch
|
||||||
|
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 UnclaimDeviceRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UnclaimDevicesRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateDeviceMetadataInBatchRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateDeviceMetadataRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateMetadataArguments
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClaimDeviceRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer_id, :numeric_string => true, as: 'customerId'
|
||||||
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
|
property :section_type, as: 'sectionType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClaimDeviceResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_id, :numeric_string => true, as: 'deviceId'
|
||||||
|
property :device_name, as: 'deviceName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClaimDevicesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :claims, as: 'claims', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Company
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :admin_emails, as: 'adminEmails'
|
||||||
|
property :company_id, :numeric_string => true, as: 'companyId'
|
||||||
|
property :company_name, as: 'companyName'
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :owner_emails, as: 'ownerEmails'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Device
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :claims, as: 'claims', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim::Representation
|
||||||
|
|
||||||
|
property :configuration, as: 'configuration'
|
||||||
|
property :device_id, :numeric_string => true, as: 'deviceId'
|
||||||
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
|
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceClaim
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :owner_company_id, :numeric_string => true, as: 'ownerCompanyId'
|
||||||
|
property :section_type, as: 'sectionType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceIdentifier
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :imei, as: 'imei'
|
||||||
|
property :manufacturer, as: 'manufacturer'
|
||||||
|
property :meid, as: 'meid'
|
||||||
|
property :serial_number, as: 'serialNumber'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DeviceMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :entries, as: 'entries'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DevicesLongRunningOperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :devices_count, as: 'devicesCount'
|
||||||
|
property :processing_status, as: 'processingStatus'
|
||||||
|
property :progress, as: 'progress'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DevicesLongRunningOperationResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :per_device_status, as: 'perDeviceStatus', class: Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice, decorator: Google::Apis::AndroiddeviceprovisioningV1::OperationPerDevice::Representation
|
||||||
|
|
||||||
|
property :success_count, as: 'successCount'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FindDevicesByDeviceIdentifierRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
|
property :limit, :numeric_string => true, as: 'limit'
|
||||||
|
property :page_token, as: 'pageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FindDevicesByDeviceIdentifierResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FindDevicesByOwnerRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :customer_id, as: 'customerId'
|
||||||
|
property :limit, :numeric_string => true, as: 'limit'
|
||||||
|
property :page_token, as: 'pageToken'
|
||||||
|
property :section_type, as: 'sectionType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FindDevicesByOwnerResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListCustomersResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::AndroiddeviceprovisioningV1::Status, decorator: Google::Apis::AndroiddeviceprovisioningV1::Status::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationPerDevice
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :claim, as: 'claim', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerClaim::Representation
|
||||||
|
|
||||||
|
property :result, as: 'result', class: Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch, decorator: Google::Apis::AndroiddeviceprovisioningV1::PerDeviceStatusInBatch::Representation
|
||||||
|
|
||||||
|
property :unclaim, as: 'unclaim', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim::Representation
|
||||||
|
|
||||||
|
property :update_metadata, as: 'updateMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments, decorator: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PartnerClaim
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer_id, :numeric_string => true, as: 'customerId'
|
||||||
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
|
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
|
||||||
|
|
||||||
|
property :section_type, as: 'sectionType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PartnerUnclaim
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_id, :numeric_string => true, as: 'deviceId'
|
||||||
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
|
property :section_type, as: 'sectionType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PerDeviceStatusInBatch
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_id, :numeric_string => true, as: 'deviceId'
|
||||||
|
property :error_identifier, as: 'errorIdentifier'
|
||||||
|
property :error_message, as: 'errorMessage'
|
||||||
|
property :status, as: 'status'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UnclaimDeviceRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_id, :numeric_string => true, as: 'deviceId'
|
||||||
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
|
property :section_type, as: 'sectionType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UnclaimDevicesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :unclaims, as: 'unclaims', class: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim, decorator: Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateDeviceMetadataInBatchRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :updates, as: 'updates', class: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments, decorator: Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateDeviceMetadataRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateMetadataArguments
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :device_id, :numeric_string => true, as: 'deviceId'
|
||||||
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
|
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,419 @@
|
||||||
|
# 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 AndroiddeviceprovisioningV1
|
||||||
|
# Android Device Provisioning Partner API
|
||||||
|
#
|
||||||
|
# Automates reseller integration into Zero Touch Provisioning by assigning
|
||||||
|
# devices to customers and creating device reports.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/androiddeviceprovisioning_v1'
|
||||||
|
#
|
||||||
|
# Androiddeviceprovisioning = Google::Apis::AndroiddeviceprovisioningV1 # Alias the module
|
||||||
|
# service = Androiddeviceprovisioning::AndroidProvisioningPartnerService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/zero-touch/
|
||||||
|
class AndroidProvisioningPartnerService < 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://androiddeviceprovisioning.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
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::AndroiddeviceprovisioningV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::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::AndroiddeviceprovisioningV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::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
|
||||||
|
|
||||||
|
# List all the customers that has delegates some role to this customer.
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# the id of the partner.
|
||||||
|
# @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::AndroiddeviceprovisioningV1::ListCustomersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse]
|
||||||
|
#
|
||||||
|
# @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_partner_customers(partner_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/partners/{+partnerId}/customers', options)
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListCustomersResponse
|
||||||
|
command.params['partnerId'] = partner_id unless partner_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
|
||||||
|
|
||||||
|
# Claim the device identified by device identifier.
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# Id of the partner.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceRequest] claim_device_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::AndroiddeviceprovisioningV1::ClaimDeviceResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse]
|
||||||
|
#
|
||||||
|
# @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 claim_device(partner_id, claim_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:claim', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceRequest::Representation
|
||||||
|
command.request_object = claim_device_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ClaimDeviceResponse
|
||||||
|
command.params['partnerId'] = partner_id unless partner_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
|
||||||
|
|
||||||
|
# Claim devices asynchronously
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# partner id.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest] claim_devices_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::AndroiddeviceprovisioningV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::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 claim_partner_device_async(partner_id, claim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:claimAsync', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::ClaimDevicesRequest::Representation
|
||||||
|
command.request_object = claim_devices_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Operation
|
||||||
|
command.params['partnerId'] = partner_id unless partner_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
|
||||||
|
|
||||||
|
# Find devices by device identifier.
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# id of the partner.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierRequest] find_devices_by_device_identifier_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::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse]
|
||||||
|
#
|
||||||
|
# @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 find_partner_device_by_identifier(partner_id, find_devices_by_device_identifier_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:findByIdentifier', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierRequest::Representation
|
||||||
|
command.request_object = find_devices_by_device_identifier_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByDeviceIdentifierResponse
|
||||||
|
command.params['partnerId'] = partner_id unless partner_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
|
||||||
|
|
||||||
|
# Find devices by ownership.
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# id of the partner.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest] find_devices_by_owner_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::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse]
|
||||||
|
#
|
||||||
|
# @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 find_partner_device_by_owner(partner_id, find_devices_by_owner_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:findByOwner', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerRequest::Representation
|
||||||
|
command.request_object = find_devices_by_owner_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::FindDevicesByOwnerResponse
|
||||||
|
command.params['partnerId'] = partner_id unless partner_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
|
||||||
|
|
||||||
|
# Get a device
|
||||||
|
# @param [String] name
|
||||||
|
# resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_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::AndroiddeviceprovisioningV1::Device] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::Device]
|
||||||
|
#
|
||||||
|
# @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_partner_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Device
|
||||||
|
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 the metadata
|
||||||
|
# @param [Fixnum] metadata_owner_id
|
||||||
|
# The owner of the newly set metadata. Should be partner id itself.
|
||||||
|
# @param [Fixnum] device_id
|
||||||
|
# id of the partner.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataRequest] update_device_metadata_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::AndroiddeviceprovisioningV1::DeviceMetadata] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
|
||||||
|
#
|
||||||
|
# @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 metadata_partner_device(metadata_owner_id, device_id, update_device_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataRequest::Representation
|
||||||
|
command.request_object = update_device_metadata_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata
|
||||||
|
command.params['metadataOwnerId'] = metadata_owner_id unless metadata_owner_id.nil?
|
||||||
|
command.params['deviceId'] = device_id unless device_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
|
||||||
|
|
||||||
|
# Unclaim the device identified by device_id or identifier.
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# Id of the partner.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest] unclaim_device_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::AndroiddeviceprovisioningV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::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 unclaim_device(partner_id, unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:unclaim', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest::Representation
|
||||||
|
command.request_object = unclaim_device_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty
|
||||||
|
command.params['partnerId'] = partner_id unless partner_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
|
||||||
|
|
||||||
|
# Unclaim devices asynchronously
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# partner id.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest] unclaim_devices_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::AndroiddeviceprovisioningV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::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 unclaim_partner_device_async(partner_id, unclaim_devices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:unclaimAsync', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UnclaimDevicesRequest::Representation
|
||||||
|
command.request_object = unclaim_devices_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Operation
|
||||||
|
command.params['partnerId'] = partner_id unless partner_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
|
||||||
|
|
||||||
|
# Set metadata in batch asynchronously.
|
||||||
|
# @param [Fixnum] partner_id
|
||||||
|
# partner id.
|
||||||
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest] update_device_metadata_in_batch_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::AndroiddeviceprovisioningV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::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 update_partner_device_metadata_async(partner_id, update_device_metadata_in_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/partners/{+partnerId}/devices:updateMetadataAsync', options)
|
||||||
|
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::UpdateDeviceMetadataInBatchRequest::Representation
|
||||||
|
command.request_object = update_device_metadata_in_batch_request_object
|
||||||
|
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Operation
|
||||||
|
command.params['partnerId'] = partner_id unless partner_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android/work/play/emm-api
|
# @see https://developers.google.com/android/work/play/emm-api
|
||||||
module AndroidenterpriseV1
|
module AndroidenterpriseV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170706'
|
REVISION = '20170803'
|
||||||
|
|
||||||
# Manage corporate Android devices
|
# Manage corporate Android devices
|
||||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||||
|
|
|
@ -106,6 +106,34 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The Android Device Policy configuration of an enterprise.
|
||||||
|
class AndroidDevicePolicyConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifies what kind of resource this is. Value: the fixed string "
|
||||||
|
# androidenterprise#androidDevicePolicyConfig".
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The state of Android Device Policy. "enabled" indicates that Android Device
|
||||||
|
# Policy is enabled for the enterprise and the EMM is allowed to manage devices
|
||||||
|
# with Android Device Policy, while "disabled" means that it cannot.
|
||||||
|
# Corresponds to the JSON property `state`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :state
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@state = args[:state] if args.key?(:state)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Represents the list of app restrictions available to be pre-configured for the
|
# Represents the list of app restrictions available to be pre-configured for the
|
||||||
# product.
|
# product.
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
|
@ -1668,6 +1696,9 @@ module Google
|
||||||
# access all products that are approved for the enterprise. If the value is "
|
# access all products that are approved for the enterprise. If the value is "
|
||||||
# allApproved" or "includeAll", the productId field is ignored. If no value is
|
# allApproved" or "includeAll", the productId field is ignored. If no value is
|
||||||
# provided, it is interpreted as "whitelist" for backwards compatibility.
|
# provided, it is interpreted as "whitelist" for backwards compatibility.
|
||||||
|
# Further "allApproved" or "includeAll" does not enable automatic visibility of "
|
||||||
|
# alpha" or "beta" tracks for Android app. Use ProductVisibility to enable "
|
||||||
|
# alpha" or "beta" tracks per user.
|
||||||
# Corresponds to the JSON property `productSetBehavior`
|
# Corresponds to the JSON property `productSetBehavior`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :product_set_behavior
|
attr_accessor :product_set_behavior
|
||||||
|
|
|
@ -40,6 +40,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AndroidDevicePolicyConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -406,6 +412,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AndroidDevicePolicyConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :state, as: 'state'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -491,6 +491,41 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns the Android Device Policy config resource.
|
||||||
|
# @param [String] enterprise_id
|
||||||
|
# The ID of the enterprise.
|
||||||
|
# @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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig]
|
||||||
|
#
|
||||||
|
# @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_enterprise_android_device_policy_config(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'enterprises/{enterpriseId}/androidDevicePolicyConfig', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig
|
||||||
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Returns a service account and credentials. The service account can be bound to
|
# Returns a service account and credentials. The service account can be bound to
|
||||||
# the enterprise by calling setAccount. The service account is unique to this
|
# the enterprise by calling setAccount. The service account is unique to this
|
||||||
# enterprise and EMM, and will be deleted if the enterprise is unbound. The
|
# enterprise and EMM, and will be deleted if the enterprise is unbound. The
|
||||||
|
@ -783,6 +818,47 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sets the Android Device Policy config resource. EMM may use this method to
|
||||||
|
# enable or disable Android Device Policy support for the specified enterprise.
|
||||||
|
# To learn more about managing devices and apps with Android Device Policy, see
|
||||||
|
# the Android Management API.
|
||||||
|
# @param [String] enterprise_id
|
||||||
|
# The ID of the enterprise.
|
||||||
|
# @param [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] android_device_policy_config_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.
|
||||||
|
# Overrides userIp if both are provided.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
|
# enforce per-user limits.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def set_enterprise_android_device_policy_config(enterprise_id, android_device_policy_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'enterprises/{enterpriseId}/androidDevicePolicyConfig', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
|
||||||
|
command.request_object = android_device_policy_config_object
|
||||||
|
command.response_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig
|
||||||
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Sets the store layout for the enterprise. By default, storeLayoutType is set
|
# Sets the store layout for the enterprise. By default, storeLayoutType is set
|
||||||
# to "basic" and the basic store layout is enabled. The basic layout only
|
# to "basic" and the basic store layout is enabled. The basic layout only
|
||||||
# contains apps approved by the admin, and that have been added to the available
|
# contains apps approved by the admin, and that have been added to the available
|
||||||
|
|
|
@ -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/androidmanagement_v1/service.rb'
|
||||||
|
require 'google/apis/androidmanagement_v1/classes.rb'
|
||||||
|
require 'google/apis/androidmanagement_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Android Management API
|
||||||
|
#
|
||||||
|
# The Android Management API provides remote enterprise management of Android
|
||||||
|
# devices and apps.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/android/management
|
||||||
|
module AndroidmanagementV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170807'
|
||||||
|
|
||||||
|
# Manage Android devices and apps for your customers
|
||||||
|
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,702 @@
|
||||||
|
# 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 AndroidmanagementV1
|
||||||
|
|
||||||
|
class ApiLevelCondition
|
||||||
|
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 ApplicationPermission
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Command
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ComplianceRule
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Device
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DisplayProp
|
||||||
|
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 EnrollmentToken
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Enterprise
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ExternalData
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class HardwareInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class HardwareStatus
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDevicesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListPoliciesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManagedProperty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManagedPropertyEntry
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MemoryEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MemoryInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NonComplianceDetail
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NonComplianceDetailCondition
|
||||||
|
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 PasswordRequirements
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PermissionGrant
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PersistentPreferredActivity
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Policy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PowerManagementEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SignupUrl
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SoftwareInfo
|
||||||
|
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 StatusReportingSettings
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SystemUpdate
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UserFacingMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class WebToken
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApiLevelCondition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :min_api_level, as: 'minApiLevel'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Application
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :managed_properties, as: 'managedProperties', class: Google::Apis::AndroidmanagementV1::ManagedProperty, decorator: Google::Apis::AndroidmanagementV1::ManagedProperty::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :permissions, as: 'permissions', class: Google::Apis::AndroidmanagementV1::ApplicationPermission, decorator: Google::Apis::AndroidmanagementV1::ApplicationPermission::Representation
|
||||||
|
|
||||||
|
property :title, as: 'title'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationPermission
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :permission_id, as: 'permissionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApplicationPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :default_permission_policy, as: 'defaultPermissionPolicy'
|
||||||
|
property :install_type, as: 'installType'
|
||||||
|
property :lock_task_allowed, as: 'lockTaskAllowed'
|
||||||
|
hash :managed_configuration, as: 'managedConfiguration'
|
||||||
|
property :package_name, as: 'packageName'
|
||||||
|
collection :permission_grants, as: 'permissionGrants', class: Google::Apis::AndroidmanagementV1::PermissionGrant, decorator: Google::Apis::AndroidmanagementV1::PermissionGrant::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Command
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :duration, as: 'duration'
|
||||||
|
property :new_password, as: 'newPassword'
|
||||||
|
collection :reset_password_flags, as: 'resetPasswordFlags'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ComplianceRule
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :api_level_condition, as: 'apiLevelCondition', class: Google::Apis::AndroidmanagementV1::ApiLevelCondition, decorator: Google::Apis::AndroidmanagementV1::ApiLevelCondition::Representation
|
||||||
|
|
||||||
|
property :disable_apps, as: 'disableApps'
|
||||||
|
property :non_compliance_detail_condition, as: 'nonComplianceDetailCondition', class: Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition, decorator: Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Device
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :api_level, as: 'apiLevel'
|
||||||
|
property :applied_policy_name, as: 'appliedPolicyName'
|
||||||
|
property :applied_policy_version, :numeric_string => true, as: 'appliedPolicyVersion'
|
||||||
|
property :applied_state, as: 'appliedState'
|
||||||
|
property :disabled_reason, as: 'disabledReason', class: Google::Apis::AndroidmanagementV1::UserFacingMessage, decorator: Google::Apis::AndroidmanagementV1::UserFacingMessage::Representation
|
||||||
|
|
||||||
|
collection :displays, as: 'displays', class: Google::Apis::AndroidmanagementV1::DisplayProp, decorator: Google::Apis::AndroidmanagementV1::DisplayProp::Representation
|
||||||
|
|
||||||
|
property :enrollment_time, as: 'enrollmentTime'
|
||||||
|
property :enrollment_token_data, as: 'enrollmentTokenData'
|
||||||
|
property :enrollment_token_name, as: 'enrollmentTokenName'
|
||||||
|
property :hardware_info, as: 'hardwareInfo', class: Google::Apis::AndroidmanagementV1::HardwareInfo, decorator: Google::Apis::AndroidmanagementV1::HardwareInfo::Representation
|
||||||
|
|
||||||
|
collection :hardware_status_samples, as: 'hardwareStatusSamples', class: Google::Apis::AndroidmanagementV1::HardwareStatus, decorator: Google::Apis::AndroidmanagementV1::HardwareStatus::Representation
|
||||||
|
|
||||||
|
property :last_offline_state_change_time, as: 'lastOfflineStateChangeTime'
|
||||||
|
property :last_policy_compliance_report_time, as: 'lastPolicyComplianceReportTime'
|
||||||
|
property :last_policy_sync_time, as: 'lastPolicySyncTime'
|
||||||
|
property :last_status_report_time, as: 'lastStatusReportTime'
|
||||||
|
collection :memory_events, as: 'memoryEvents', class: Google::Apis::AndroidmanagementV1::MemoryEvent, decorator: Google::Apis::AndroidmanagementV1::MemoryEvent::Representation
|
||||||
|
|
||||||
|
property :memory_info, as: 'memoryInfo', class: Google::Apis::AndroidmanagementV1::MemoryInfo, decorator: Google::Apis::AndroidmanagementV1::MemoryInfo::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :network_info, as: 'networkInfo', class: Google::Apis::AndroidmanagementV1::NetworkInfo, decorator: Google::Apis::AndroidmanagementV1::NetworkInfo::Representation
|
||||||
|
|
||||||
|
collection :non_compliance_details, as: 'nonComplianceDetails', class: Google::Apis::AndroidmanagementV1::NonComplianceDetail, decorator: Google::Apis::AndroidmanagementV1::NonComplianceDetail::Representation
|
||||||
|
|
||||||
|
property :policy_compliant, as: 'policyCompliant'
|
||||||
|
property :policy_name, as: 'policyName'
|
||||||
|
collection :power_management_events, as: 'powerManagementEvents', class: Google::Apis::AndroidmanagementV1::PowerManagementEvent, decorator: Google::Apis::AndroidmanagementV1::PowerManagementEvent::Representation
|
||||||
|
|
||||||
|
collection :previous_device_names, as: 'previousDeviceNames'
|
||||||
|
property :software_info, as: 'softwareInfo', class: Google::Apis::AndroidmanagementV1::SoftwareInfo, decorator: Google::Apis::AndroidmanagementV1::SoftwareInfo::Representation
|
||||||
|
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :user_name, as: 'userName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DisplayProp
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :density, as: 'density'
|
||||||
|
property :display_id, as: 'displayId'
|
||||||
|
property :height, as: 'height'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :refresh_rate, as: 'refreshRate'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :width, as: 'width'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class EnrollmentToken
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :additional_data, as: 'additionalData'
|
||||||
|
property :duration, as: 'duration'
|
||||||
|
property :expiration_timestamp, as: 'expirationTimestamp'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :policy_name, as: 'policyName'
|
||||||
|
property :qr_code, as: 'qrCode'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Enterprise
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :app_auto_approval_enabled, as: 'appAutoApprovalEnabled'
|
||||||
|
collection :enabled_notification_types, as: 'enabledNotificationTypes'
|
||||||
|
property :enterprise_display_name, as: 'enterpriseDisplayName'
|
||||||
|
property :logo, as: 'logo', class: Google::Apis::AndroidmanagementV1::ExternalData, decorator: Google::Apis::AndroidmanagementV1::ExternalData::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :primary_color, as: 'primaryColor'
|
||||||
|
property :pubsub_topic, as: 'pubsubTopic'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ExternalData
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :sha256_hash, as: 'sha256Hash'
|
||||||
|
property :url, as: 'url'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HardwareInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :battery_shutdown_temperatures, as: 'batteryShutdownTemperatures'
|
||||||
|
collection :battery_throttling_temperatures, as: 'batteryThrottlingTemperatures'
|
||||||
|
property :brand, as: 'brand'
|
||||||
|
collection :cpu_shutdown_temperatures, as: 'cpuShutdownTemperatures'
|
||||||
|
collection :cpu_throttling_temperatures, as: 'cpuThrottlingTemperatures'
|
||||||
|
property :device_baseband_version, as: 'deviceBasebandVersion'
|
||||||
|
collection :gpu_shutdown_temperatures, as: 'gpuShutdownTemperatures'
|
||||||
|
collection :gpu_throttling_temperatures, as: 'gpuThrottlingTemperatures'
|
||||||
|
property :hardware, as: 'hardware'
|
||||||
|
property :manufacturer, as: 'manufacturer'
|
||||||
|
property :model, as: 'model'
|
||||||
|
property :serial_number, as: 'serialNumber'
|
||||||
|
collection :skin_shutdown_temperatures, as: 'skinShutdownTemperatures'
|
||||||
|
collection :skin_throttling_temperatures, as: 'skinThrottlingTemperatures'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HardwareStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :battery_temperatures, as: 'batteryTemperatures'
|
||||||
|
collection :cpu_temperatures, as: 'cpuTemperatures'
|
||||||
|
collection :cpu_usages, as: 'cpuUsages'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
collection :fan_speeds, as: 'fanSpeeds'
|
||||||
|
collection :gpu_temperatures, as: 'gpuTemperatures'
|
||||||
|
collection :skin_temperatures, as: 'skinTemperatures'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDevicesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :devices, as: 'devices', class: Google::Apis::AndroidmanagementV1::Device, decorator: Google::Apis::AndroidmanagementV1::Device::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::AndroidmanagementV1::Operation, decorator: Google::Apis::AndroidmanagementV1::Operation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListPoliciesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :policies, as: 'policies', class: Google::Apis::AndroidmanagementV1::Policy, decorator: Google::Apis::AndroidmanagementV1::Policy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManagedProperty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :default_value, as: 'defaultValue'
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :entries, as: 'entries', class: Google::Apis::AndroidmanagementV1::ManagedPropertyEntry, decorator: Google::Apis::AndroidmanagementV1::ManagedPropertyEntry::Representation
|
||||||
|
|
||||||
|
property :key, as: 'key'
|
||||||
|
collection :nested_properties, as: 'nestedProperties', class: Google::Apis::AndroidmanagementV1::ManagedProperty, decorator: Google::Apis::AndroidmanagementV1::ManagedProperty::Representation
|
||||||
|
|
||||||
|
property :title, as: 'title'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ManagedPropertyEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MemoryEvent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :byte_count, :numeric_string => true, as: 'byteCount'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :event_type, as: 'eventType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MemoryInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :total_internal_storage, :numeric_string => true, as: 'totalInternalStorage'
|
||||||
|
property :total_ram, :numeric_string => true, as: 'totalRam'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :imei, as: 'imei'
|
||||||
|
property :meid, as: 'meid'
|
||||||
|
property :wifi_mac_address, as: 'wifiMacAddress'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NonComplianceDetail
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :current_value, as: 'currentValue'
|
||||||
|
property :field_path, as: 'fieldPath'
|
||||||
|
property :installation_failure_reason, as: 'installationFailureReason'
|
||||||
|
property :non_compliance_reason, as: 'nonComplianceReason'
|
||||||
|
property :package_name, as: 'packageName'
|
||||||
|
property :setting_name, as: 'settingName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NonComplianceDetailCondition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :non_compliance_reason, as: 'nonComplianceReason'
|
||||||
|
property :package_name, as: 'packageName'
|
||||||
|
property :setting_name, as: 'settingName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::AndroidmanagementV1::Status, decorator: Google::Apis::AndroidmanagementV1::Status::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PasswordRequirements
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :maximum_failed_passwords_for_wipe, as: 'maximumFailedPasswordsForWipe'
|
||||||
|
property :password_expiration_timeout, as: 'passwordExpirationTimeout'
|
||||||
|
property :password_history_length, as: 'passwordHistoryLength'
|
||||||
|
property :password_minimum_length, as: 'passwordMinimumLength'
|
||||||
|
property :password_minimum_letters, as: 'passwordMinimumLetters'
|
||||||
|
property :password_minimum_lower_case, as: 'passwordMinimumLowerCase'
|
||||||
|
property :password_minimum_non_letter, as: 'passwordMinimumNonLetter'
|
||||||
|
property :password_minimum_numeric, as: 'passwordMinimumNumeric'
|
||||||
|
property :password_minimum_symbols, as: 'passwordMinimumSymbols'
|
||||||
|
property :password_minimum_upper_case, as: 'passwordMinimumUpperCase'
|
||||||
|
property :password_quality, as: 'passwordQuality'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PermissionGrant
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :permission, as: 'permission'
|
||||||
|
property :policy, as: 'policy'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PersistentPreferredActivity
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :actions, as: 'actions'
|
||||||
|
collection :categories, as: 'categories'
|
||||||
|
property :receiver_activity, as: 'receiverActivity'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Policy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :add_user_disabled, as: 'addUserDisabled'
|
||||||
|
property :adjust_volume_disabled, as: 'adjustVolumeDisabled'
|
||||||
|
collection :applications, as: 'applications', class: Google::Apis::AndroidmanagementV1::ApplicationPolicy, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicy::Representation
|
||||||
|
|
||||||
|
property :block_applications_enabled, as: 'blockApplicationsEnabled'
|
||||||
|
property :camera_disabled, as: 'cameraDisabled'
|
||||||
|
collection :compliance_rules, as: 'complianceRules', class: Google::Apis::AndroidmanagementV1::ComplianceRule, decorator: Google::Apis::AndroidmanagementV1::ComplianceRule::Representation
|
||||||
|
|
||||||
|
property :debugging_features_allowed, as: 'debuggingFeaturesAllowed'
|
||||||
|
property :default_permission_policy, as: 'defaultPermissionPolicy'
|
||||||
|
property :factory_reset_disabled, as: 'factoryResetDisabled'
|
||||||
|
collection :frp_admin_emails, as: 'frpAdminEmails'
|
||||||
|
property :fun_disabled, as: 'funDisabled'
|
||||||
|
property :install_unknown_sources_allowed, as: 'installUnknownSourcesAllowed'
|
||||||
|
property :keyguard_disabled, as: 'keyguardDisabled'
|
||||||
|
property :maximum_time_to_lock, :numeric_string => true, as: 'maximumTimeToLock'
|
||||||
|
property :modify_accounts_disabled, as: 'modifyAccountsDisabled'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :network_escape_hatch_enabled, as: 'networkEscapeHatchEnabled'
|
||||||
|
hash :open_network_configuration, as: 'openNetworkConfiguration'
|
||||||
|
property :password_requirements, as: 'passwordRequirements', class: Google::Apis::AndroidmanagementV1::PasswordRequirements, decorator: Google::Apis::AndroidmanagementV1::PasswordRequirements::Representation
|
||||||
|
|
||||||
|
collection :persistent_preferred_activities, as: 'persistentPreferredActivities', class: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity, decorator: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity::Representation
|
||||||
|
|
||||||
|
property :remove_user_disabled, as: 'removeUserDisabled'
|
||||||
|
property :safe_boot_disabled, as: 'safeBootDisabled'
|
||||||
|
property :screen_capture_disabled, as: 'screenCaptureDisabled'
|
||||||
|
property :status_bar_disabled, as: 'statusBarDisabled'
|
||||||
|
property :status_reporting_settings, as: 'statusReportingSettings', class: Google::Apis::AndroidmanagementV1::StatusReportingSettings, decorator: Google::Apis::AndroidmanagementV1::StatusReportingSettings::Representation
|
||||||
|
|
||||||
|
collection :stay_on_plugged_modes, as: 'stayOnPluggedModes'
|
||||||
|
property :system_update, as: 'systemUpdate', class: Google::Apis::AndroidmanagementV1::SystemUpdate, decorator: Google::Apis::AndroidmanagementV1::SystemUpdate::Representation
|
||||||
|
|
||||||
|
property :unmute_microphone_disabled, as: 'unmuteMicrophoneDisabled'
|
||||||
|
property :version, :numeric_string => true, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PowerManagementEvent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :battery_level, as: 'batteryLevel'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :event_type, as: 'eventType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SignupUrl
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :url, as: 'url'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SoftwareInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :android_build_number, as: 'androidBuildNumber'
|
||||||
|
property :android_build_time, as: 'androidBuildTime'
|
||||||
|
property :android_version, as: 'androidVersion'
|
||||||
|
property :bootloader_version, as: 'bootloaderVersion'
|
||||||
|
property :device_kernel_version, as: 'deviceKernelVersion'
|
||||||
|
property :security_patch_level, as: 'securityPatchLevel'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StatusReportingSettings
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :display_info_enabled, as: 'displayInfoEnabled'
|
||||||
|
property :hardware_status_enabled, as: 'hardwareStatusEnabled'
|
||||||
|
property :memory_info_enabled, as: 'memoryInfoEnabled'
|
||||||
|
property :network_info_enabled, as: 'networkInfoEnabled'
|
||||||
|
property :power_management_events_enabled, as: 'powerManagementEventsEnabled'
|
||||||
|
property :software_info_enabled, as: 'softwareInfoEnabled'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SystemUpdate
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_minutes, as: 'endMinutes'
|
||||||
|
property :start_minutes, as: 'startMinutes'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UserFacingMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :default_message, as: 'defaultMessage'
|
||||||
|
hash :localized_messages, as: 'localizedMessages'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class WebToken
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :parent_frame_url, as: 'parentFrameUrl'
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,796 @@
|
||||||
|
# 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 AndroidmanagementV1
|
||||||
|
# Android Management API
|
||||||
|
#
|
||||||
|
# The Android Management API provides remote enterprise management of Android
|
||||||
|
# devices and apps.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/androidmanagement_v1'
|
||||||
|
#
|
||||||
|
# Androidmanagement = Google::Apis::AndroidmanagementV1 # Alias the module
|
||||||
|
# service = Androidmanagement::AndroidManagementService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/android/management
|
||||||
|
class AndroidManagementService < 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://androidmanagement.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates an enterprise by completing the enterprise signup flow.
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::Enterprise] enterprise_object
|
||||||
|
# @param [String] enterprise_token
|
||||||
|
# The enterprise token appended to the callback URL.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The id of the Google Cloud Platform project which will own the enterprise.
|
||||||
|
# @param [String] signup_url_name
|
||||||
|
# The name of the SignupUrl used to sign up for the enterprise.
|
||||||
|
# @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::AndroidmanagementV1::Enterprise] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Enterprise]
|
||||||
|
#
|
||||||
|
# @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_enterprise(enterprise_object = nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/enterprises', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
||||||
|
command.request_object = enterprise_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
|
||||||
|
command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
|
||||||
|
command.query['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['signupUrlName'] = signup_url_name unless signup_url_name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets an enterprise.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`
|
||||||
|
# @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::AndroidmanagementV1::Enterprise] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Enterprise]
|
||||||
|
#
|
||||||
|
# @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_enterprise(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
|
||||||
|
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
|
||||||
|
|
||||||
|
# Updates an enterprise.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::Enterprise] enterprise_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# The field mask indicating the fields to update. If not set, all modifiable
|
||||||
|
# fields will be modified.
|
||||||
|
# @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::AndroidmanagementV1::Enterprise] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Enterprise]
|
||||||
|
#
|
||||||
|
# @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_enterprise(name, enterprise_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
||||||
|
command.request_object = enterprise_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets info about an application.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the application in the form enterprises/`enterpriseId`/
|
||||||
|
# applications/`package_name`
|
||||||
|
# @param [String] language_code
|
||||||
|
# The preferred language for localized application info, as a BCP47 tag (e.g. "
|
||||||
|
# en-US", "de"). If not specified the default language of the application will
|
||||||
|
# be used.
|
||||||
|
# @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::AndroidmanagementV1::Application] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_application(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Application::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Application
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['languageCode'] = language_code unless language_code.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes a device, which causes the device to be wiped.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the device in the form enterprises/`enterpriseId`/devices/`
|
||||||
|
# deviceId`
|
||||||
|
# @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::AndroidmanagementV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets a device.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the device in the form enterprises/`enterpriseId`/devices/`
|
||||||
|
# deviceId`
|
||||||
|
# @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::AndroidmanagementV1::Device] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Device]
|
||||||
|
#
|
||||||
|
# @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_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Device::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Device
|
||||||
|
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
|
||||||
|
|
||||||
|
# Issues a command to a device. The Operation resource returned contains a
|
||||||
|
# Command in its metadata field. Use the get operation method to get the status
|
||||||
|
# of the command.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the device in the form enterprises/`enterpriseId`/devices/`
|
||||||
|
# deviceId`
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::Command] command_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::AndroidmanagementV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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 issue_enterprise_device_command(name, command_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:issueCommand', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::Command::Representation
|
||||||
|
command.request_object = command_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists devices for a given enterprise.
|
||||||
|
# @param [String] parent
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The requested page size. The actual page size may be fixed to a min or max
|
||||||
|
# value.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results the server should 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 [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListDevicesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::ListDevicesResponse]
|
||||||
|
#
|
||||||
|
# @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_enterprise_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::ListDevicesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::ListDevicesResponse
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates a device.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the device in the form enterprises/`enterpriseId`/devices/`
|
||||||
|
# deviceId`
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::Device] device_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# The field mask indicating the fields to update. If not set, all modifiable
|
||||||
|
# fields will be modified.
|
||||||
|
# @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::AndroidmanagementV1::Device] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Device]
|
||||||
|
#
|
||||||
|
# @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_enterprise_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::Device::Representation
|
||||||
|
command.request_object = device_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Device::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Device
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
||||||
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
||||||
|
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
||||||
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
||||||
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
||||||
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
||||||
|
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
||||||
|
# corresponding to Code.CANCELLED.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation resource to be cancelled.
|
||||||
|
# @param [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::AndroidmanagementV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Empty]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def cancel_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes a long-running operation. This method indicates that the client is no
|
||||||
|
# longer interested in the operation result. It does not cancel the operation.
|
||||||
|
# If the server doesn't support this method, it returns google.rpc.Code.
|
||||||
|
# UNIMPLEMENTED.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation resource to be deleted.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets the latest state of a long-running operation. Clients can use this method
|
||||||
|
# to poll the operation result at intervals as recommended by the API service.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation resource.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AndroidmanagementV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists operations that match the specified filter in the request. If the server
|
||||||
|
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
||||||
|
# allows API services to override the binding to use different resource name
|
||||||
|
# schemes, such as users/*/operations. To override the binding, API services can
|
||||||
|
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
||||||
|
# configuration. For backwards compatibility, the default name includes the
|
||||||
|
# operations collection id, however overriding users must ensure the name
|
||||||
|
# binding is the parent resource, without the operations collection id.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation's parent resource.
|
||||||
|
# @param [String] filter
|
||||||
|
# The standard list filter.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The standard list page size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The standard list page token.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_device_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::ListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::ListOperationsResponse
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates an enrollment token for a given enterprise.
|
||||||
|
# @param [String] parent
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::EnrollmentToken] enrollment_token_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::AndroidmanagementV1::EnrollmentToken] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::EnrollmentToken]
|
||||||
|
#
|
||||||
|
# @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_enterprise_enrollment_token(parent, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+parent}/enrollmentTokens', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::EnrollmentToken::Representation
|
||||||
|
command.request_object = enrollment_token_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::EnrollmentToken::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::EnrollmentToken
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes an enrollment token, which prevents future use of the token.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the enrollment token in the form enterprises/`enterpriseId`/
|
||||||
|
# enrollmentTokens/`enrollmentTokenId`
|
||||||
|
# @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::AndroidmanagementV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_enrollment_token(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes a policy. This operation is only permitted if no devices are currently
|
||||||
|
# referencing the policy.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
|
||||||
|
# policyId`
|
||||||
|
# @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::AndroidmanagementV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets a policy.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
|
||||||
|
# policyId`
|
||||||
|
# @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::AndroidmanagementV1::Policy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Policy]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_enterprise_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Policy::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Policy
|
||||||
|
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 policies for a given enterprise.
|
||||||
|
# @param [String] parent
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The requested page size. The actual page size may be fixed to a min or max
|
||||||
|
# value.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results the server should 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 [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListPoliciesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::ListPoliciesResponse]
|
||||||
|
#
|
||||||
|
# @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_enterprise_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+parent}/policies', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::ListPoliciesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::ListPoliciesResponse
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates or creates a policy.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
|
||||||
|
# policyId`
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::Policy] policy_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# The field mask indicating the fields to update. If not set, all modifiable
|
||||||
|
# fields will be modified.
|
||||||
|
# @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::AndroidmanagementV1::Policy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::Policy]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def patch_enterprise_policy(name, policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::Policy::Representation
|
||||||
|
command.request_object = policy_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Policy::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::Policy
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a web token to access an embeddable managed Google Play web UI for a
|
||||||
|
# given enterprise.
|
||||||
|
# @param [String] parent
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::WebToken] web_token_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::AndroidmanagementV1::WebToken] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::WebToken]
|
||||||
|
#
|
||||||
|
# @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_enterprise_web_token(parent, web_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+parent}/webTokens', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::WebToken::Representation
|
||||||
|
command.request_object = web_token_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::WebToken::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::WebToken
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates an enterprise signup URL.
|
||||||
|
# @param [String] callback_url
|
||||||
|
# The callback URL to which the admin will be redirected after successfully
|
||||||
|
# creating an enterprise. Before redirecting there the system will add a query
|
||||||
|
# parameter to this URL named enterpriseToken which will contain an opaque token
|
||||||
|
# to be used for the create enterprise request. The URL will be parsed then
|
||||||
|
# reformatted in order to add the enterpriseToken parameter, so there may be
|
||||||
|
# some minor formatting changes.
|
||||||
|
# @param [String] project_id
|
||||||
|
# The id of the Google Cloud Platform project which will own the enterprise.
|
||||||
|
# @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::AndroidmanagementV1::SignupUrl] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::SignupUrl]
|
||||||
|
#
|
||||||
|
# @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_signup_url(callback_url: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/signupUrls', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::SignupUrl::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::SignupUrl
|
||||||
|
command.query['callbackUrl'] = callback_url unless callback_url.nil?
|
||||||
|
command.query['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
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV2
|
module AndroidpublisherV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20170504'
|
REVISION = '20170808'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -57,6 +57,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :sha1
|
attr_accessor :sha1
|
||||||
|
|
||||||
|
# A sha256 hash of the APK payload, encoded as a hex string and matching the
|
||||||
|
# output of the sha256sum command.
|
||||||
|
# Corresponds to the JSON property `sha256`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :sha256
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -64,6 +70,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@sha1 = args[:sha1] if args.key?(:sha1)
|
@sha1 = args[:sha1] if args.key?(:sha1)
|
||||||
|
@sha256 = args[:sha256] if args.key?(:sha256)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1271,6 +1278,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The order id associated with the purchase of the inapp product.
|
||||||
|
# Corresponds to the JSON property `orderId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :order_id
|
||||||
|
|
||||||
# The purchase state of the order. Possible values are:
|
# The purchase state of the order. Possible values are:
|
||||||
# - Purchased
|
# - Purchased
|
||||||
# - Cancelled
|
# - Cancelled
|
||||||
|
@ -1293,6 +1305,7 @@ module Google
|
||||||
@consumption_state = args[:consumption_state] if args.key?(:consumption_state)
|
@consumption_state = args[:consumption_state] if args.key?(:consumption_state)
|
||||||
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@order_id = args[:order_id] if args.key?(:order_id)
|
||||||
@purchase_state = args[:purchase_state] if args.key?(:purchase_state)
|
@purchase_state = args[:purchase_state] if args.key?(:purchase_state)
|
||||||
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
|
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
|
||||||
end
|
end
|
||||||
|
@ -1558,9 +1571,16 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The order id of the latest recurring order associated with the purchase of the
|
||||||
|
# subscription.
|
||||||
|
# Corresponds to the JSON property `orderId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :order_id
|
||||||
|
|
||||||
# The payment state of the subscription. Possible values are:
|
# The payment state of the subscription. Possible values are:
|
||||||
# - Payment pending
|
# - Payment pending
|
||||||
# - Payment received
|
# - Payment received
|
||||||
|
# - Free trial
|
||||||
# Corresponds to the JSON property `paymentState`
|
# Corresponds to the JSON property `paymentState`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :payment_state
|
attr_accessor :payment_state
|
||||||
|
@ -1601,6 +1621,7 @@ module Google
|
||||||
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
||||||
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
|
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@order_id = args[:order_id] if args.key?(:order_id)
|
||||||
@payment_state = args[:payment_state] if args.key?(:payment_state)
|
@payment_state = args[:payment_state] if args.key?(:payment_state)
|
||||||
@price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
|
@price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
|
||||||
@price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
|
@price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
|
||||||
|
|
|
@ -395,6 +395,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :sha1, as: 'sha1'
|
property :sha1, as: 'sha1'
|
||||||
|
property :sha256, as: 'sha256'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -775,6 +776,7 @@ module Google
|
||||||
property :consumption_state, as: 'consumptionState'
|
property :consumption_state, as: 'consumptionState'
|
||||||
property :developer_payload, as: 'developerPayload'
|
property :developer_payload, as: 'developerPayload'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :order_id, as: 'orderId'
|
||||||
property :purchase_state, as: 'purchaseState'
|
property :purchase_state, as: 'purchaseState'
|
||||||
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
|
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
|
||||||
end
|
end
|
||||||
|
@ -865,6 +867,7 @@ module Google
|
||||||
property :developer_payload, as: 'developerPayload'
|
property :developer_payload, as: 'developerPayload'
|
||||||
property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
|
property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :order_id, as: 'orderId'
|
||||||
property :payment_state, as: 'paymentState'
|
property :payment_state, as: 'paymentState'
|
||||||
property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
|
property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
|
||||||
property :price_currency_code, as: 'priceCurrencyCode'
|
property :price_currency_code, as: 'priceCurrencyCode'
|
||||||
|
|
|
@ -2389,14 +2389,18 @@ module Google
|
||||||
# The time, in milliseconds since the Epoch, of the newest voided in-app product
|
# The time, in milliseconds since the Epoch, of the newest voided in-app product
|
||||||
# purchase that you want to see in the response. The value of this parameter
|
# purchase that you want to see in the response. The value of this parameter
|
||||||
# cannot be greater than the current time and is ignored if a pagination token
|
# cannot be greater than the current time and is ignored if a pagination token
|
||||||
# is set. Default value is current time.
|
# is set. Default value is current time. Note: This filter is applied on the
|
||||||
|
# time at which the record is seen as voided by our systems and not the actual
|
||||||
|
# voided time returned in the response.
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# @param [Fixnum] start_index
|
# @param [Fixnum] start_index
|
||||||
# @param [Fixnum] start_time
|
# @param [Fixnum] start_time
|
||||||
# The time, in milliseconds since the Epoch, of the oldest voided in-app product
|
# The time, in milliseconds since the Epoch, of the oldest voided in-app product
|
||||||
# purchase that you want to see in the response. The value of this parameter
|
# purchase that you want to see in the response. The value of this parameter
|
||||||
# cannot be older than 30 days and is ignored if a pagination token is set.
|
# cannot be older than 30 days and is ignored if a pagination token is set.
|
||||||
# Default value is current time minus 30 days.
|
# Default value is current time minus 30 days. Note: This filter is applied on
|
||||||
|
# the time at which the record is seen as voided by our systems and not the
|
||||||
|
# actual voided time returned in the response.
|
||||||
# @param [String] token
|
# @param [String] token
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -26,16 +26,16 @@ module Google
|
||||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
module AppengineV1
|
module AppengineV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170626'
|
REVISION = '20170818'
|
||||||
|
|
||||||
# View and manage your applications deployed on Google App Engine
|
# View and manage your applications deployed on Google App Engine
|
||||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||||
|
|
||||||
# View your data across Google Cloud Platform services
|
|
||||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# 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
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -48,13 +48,14 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Recreates the required App Engine features for the specified App Engine
|
# Creates an App Engine application for a Google Cloud Platform project.
|
||||||
# application, for example a Cloud Storage bucket or App Engine service account.
|
# Required fields:
|
||||||
# Use this method if you receive an error message about a missing feature, for
|
# id - The ID of the target Cloud Platform project.
|
||||||
# example, Error retrieving the App Engine service account.
|
# location - The region (https://cloud.google.com/appengine/docs/locations)
|
||||||
# @param [String] apps_id
|
# where you want the App Engine application located.For more information about
|
||||||
# Part of `name`. Name of the application to repair. Example: apps/myapp
|
# App Engine applications, see Managing Projects, Applications, and Billing (
|
||||||
# @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_request_object
|
# https://cloud.google.com/appengine/docs/python/console/).
|
||||||
|
# @param [Google::Apis::AppengineV1::Application] application_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -72,12 +73,41 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options)
|
command = make_simple_command(:post, 'v1/apps', options)
|
||||||
command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation
|
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
||||||
command.request_object = repair_application_request_object
|
command.request_object = application_object
|
||||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
command.response_class = Google::Apis::AppengineV1::Operation
|
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
|
||||||
|
|
||||||
|
# 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.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
@ -125,44 +155,13 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets information about an application.
|
# 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
|
# @param [String] apps_id
|
||||||
# Part of `name`. Name of the Application resource to get. Example: apps/myapp.
|
# Part of `name`. Name of the application to repair. Example: apps/myapp
|
||||||
# @param [String] fields
|
# @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_request_object
|
||||||
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -180,12 +179,85 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
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', options)
|
command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options)
|
||||||
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation
|
||||||
command.request_object = application_object
|
command.request_object = repair_application_request_object
|
||||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||||
command.response_class = Google::Apis::AppengineV1::Operation
|
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -235,10 +307,10 @@ module Google
|
||||||
# binding is the parent resource, without the operations collection id.
|
# binding is the parent resource, without the operations collection id.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
# Part of `name`. The name of the operation's parent resource.
|
# Part of `name`. The name of the operation's parent resource.
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# The standard list page size.
|
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# The standard list filter.
|
# The standard list filter.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The standard list page size.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# The standard list page token.
|
# The standard list page token.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -258,86 +330,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_app_operations(apps_id, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
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 = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
|
||||||
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
|
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
|
||||||
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
|
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
|
||||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['filter'] = filter unless filter.nil?
|
command.query['filter'] = filter unless filter.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['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
|
|
||||||
|
|
||||||
# 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 [String] page_token
|
|
||||||
# The standard list page token.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# The standard list page size.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::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_token: nil, page_size: 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['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -377,60 +377,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
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
|
|
||||||
|
|
||||||
# Gets the current configuration of the specified service.
|
# Gets the current configuration of the specified service.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
@ -468,10 +414,10 @@ module Google
|
||||||
# Lists all the services in the application.
|
# Lists all the services in the application.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
|
||||||
# @param [String] page_token
|
|
||||||
# Continuation token for fetching the next page of results.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum results to return per page.
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -489,13 +435,67 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_app_services(apps_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
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 = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
|
||||||
command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
|
command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
|
||||||
command.response_class = Google::Apis::AppengineV1::ListServicesResponse
|
command.response_class = Google::Apis::AppengineV1::ListServicesResponse
|
||||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['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
|
||||||
|
|
||||||
|
# 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 [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] 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(apps_id, services_id, service_object = nil, migrate_traffic: nil, update_mask: 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['migrateTraffic'] = migrate_traffic unless migrate_traffic.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -575,66 +575,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
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
|
|
||||||
|
|
||||||
# Gets the specified Version resource. By default, only a BASIC_VIEW will be
|
# Gets the specified Version resource. By default, only a BASIC_VIEW will be
|
||||||
# returned. Specify the FULL_VIEW parameter to get the full resource.
|
# returned. Specify the FULL_VIEW parameter to get the full resource.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
|
@ -682,10 +622,10 @@ module Google
|
||||||
# services/default.
|
# services/default.
|
||||||
# @param [String] services_id
|
# @param [String] services_id
|
||||||
# Part of `parent`. See documentation of `appsId`.
|
# Part of `parent`. See documentation of `appsId`.
|
||||||
# @param [String] page_token
|
|
||||||
# Continuation token for fetching the next page of results.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum results to return per page.
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
# @param [String] view
|
# @param [String] view
|
||||||
# Controls the set of fields returned in the List response.
|
# Controls the set of fields returned in the List response.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -705,20 +645,144 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_app_service_versions(apps_id, services_id, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_app_service_versions(apps_id, services_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
|
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
|
||||||
command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
|
command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
|
||||||
command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
|
command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
|
||||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
command.params['servicesId'] = services_id unless services_id.nil?
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['view'] = view unless view.nil?
|
command.query['view'] = view unless view.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
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.
|
||||||
|
# automatic_scaling.min_total_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 Flexible environment.
|
||||||
|
# automatic_scaling.max_total_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 Flexible environment.
|
||||||
|
# automatic_scaling.cool_down_period_sec (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 Flexible environment.
|
||||||
|
# automatic_scaling.cpu_utilization.target_utilization (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 Flexible 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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Stops a running instance.
|
# Stops a running instance.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||||
|
@ -809,10 +873,10 @@ module Google
|
||||||
# Part of `parent`. See documentation of `appsId`.
|
# Part of `parent`. See documentation of `appsId`.
|
||||||
# @param [String] versions_id
|
# @param [String] versions_id
|
||||||
# Part of `parent`. See documentation of `appsId`.
|
# Part of `parent`. See documentation of `appsId`.
|
||||||
# @param [String] page_token
|
|
||||||
# Continuation token for fetching the next page of results.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum results to return per page.
|
# Maximum results to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Continuation token for fetching the next page of results.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -830,63 +894,15 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_app_service_version_instances(apps_id, services_id, versions_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
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 = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
|
||||||
command.response_representation = Google::Apis::AppengineV1::ListInstancesResponse::Representation
|
command.response_representation = Google::Apis::AppengineV1::ListInstancesResponse::Representation
|
||||||
command.response_class = Google::Apis::AppengineV1::ListInstancesResponse
|
command.response_class = Google::Apis::AppengineV1::ListInstancesResponse
|
||||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
command.params['servicesId'] = services_id unless services_id.nil?
|
command.params['servicesId'] = services_id unless services_id.nil?
|
||||||
command.params['versionsId'] = versions_id unless versions_id.nil?
|
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/activity/
|
# @see https://developers.google.com/google-apps/activity/
|
||||||
module AppsactivityV1
|
module AppsactivityV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170619'
|
REVISION = '20170215'
|
||||||
|
|
||||||
# View the activity history of your Google apps
|
# View the activity history of your Google apps
|
||||||
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
|
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/games/services/web/api/states
|
# @see https://developers.google.com/games/services/web/api/states
|
||||||
module AppstateV1
|
module AppstateV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170710'
|
REVISION = '20170420'
|
||||||
|
|
||||||
# View and manage your data for this application
|
# View and manage your data for this application
|
||||||
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigquery/
|
# @see https://cloud.google.com/bigquery/
|
||||||
module BigqueryV2
|
module BigqueryV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20170622'
|
REVISION = '20170806'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -598,6 +598,16 @@ module Google
|
||||||
class ExplainQueryStage
|
class ExplainQueryStage
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Milliseconds the average shard spent on CPU-bound tasks.
|
||||||
|
# Corresponds to the JSON property `computeMsAvg`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :compute_ms_avg
|
||||||
|
|
||||||
|
# Milliseconds the slowest shard spent on CPU-bound tasks.
|
||||||
|
# Corresponds to the JSON property `computeMsMax`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :compute_ms_max
|
||||||
|
|
||||||
# Relative amount of time the average shard spent on CPU-bound tasks.
|
# Relative amount of time the average shard spent on CPU-bound tasks.
|
||||||
# Corresponds to the JSON property `computeRatioAvg`
|
# Corresponds to the JSON property `computeRatioAvg`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
|
@ -618,6 +628,16 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Milliseconds the average shard spent reading input.
|
||||||
|
# Corresponds to the JSON property `readMsAvg`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :read_ms_avg
|
||||||
|
|
||||||
|
# Milliseconds the slowest shard spent reading input.
|
||||||
|
# Corresponds to the JSON property `readMsMax`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :read_ms_max
|
||||||
|
|
||||||
# Relative amount of time the average shard spent reading input.
|
# Relative amount of time the average shard spent reading input.
|
||||||
# Corresponds to the JSON property `readRatioAvg`
|
# Corresponds to the JSON property `readRatioAvg`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
|
@ -638,6 +658,16 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :records_written
|
attr_accessor :records_written
|
||||||
|
|
||||||
|
# Total number of bytes written to shuffle.
|
||||||
|
# Corresponds to the JSON property `shuffleOutputBytes`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :shuffle_output_bytes
|
||||||
|
|
||||||
|
# Total number of bytes written to shuffle and spilled to disk.
|
||||||
|
# Corresponds to the JSON property `shuffleOutputBytesSpilled`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :shuffle_output_bytes_spilled
|
||||||
|
|
||||||
# Current status for the stage.
|
# Current status for the stage.
|
||||||
# Corresponds to the JSON property `status`
|
# Corresponds to the JSON property `status`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -649,6 +679,16 @@ module Google
|
||||||
# @return [Array<Google::Apis::BigqueryV2::ExplainQueryStep>]
|
# @return [Array<Google::Apis::BigqueryV2::ExplainQueryStep>]
|
||||||
attr_accessor :steps
|
attr_accessor :steps
|
||||||
|
|
||||||
|
# Milliseconds the average shard spent waiting to be scheduled.
|
||||||
|
# Corresponds to the JSON property `waitMsAvg`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :wait_ms_avg
|
||||||
|
|
||||||
|
# Milliseconds the slowest shard spent waiting to be scheduled.
|
||||||
|
# Corresponds to the JSON property `waitMsMax`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :wait_ms_max
|
||||||
|
|
||||||
# Relative amount of time the average shard spent waiting to be scheduled.
|
# Relative amount of time the average shard spent waiting to be scheduled.
|
||||||
# Corresponds to the JSON property `waitRatioAvg`
|
# Corresponds to the JSON property `waitRatioAvg`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
|
@ -659,6 +699,16 @@ module Google
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :wait_ratio_max
|
attr_accessor :wait_ratio_max
|
||||||
|
|
||||||
|
# Milliseconds the average shard spent on writing output.
|
||||||
|
# Corresponds to the JSON property `writeMsAvg`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :write_ms_avg
|
||||||
|
|
||||||
|
# Milliseconds the slowest shard spent on writing output.
|
||||||
|
# Corresponds to the JSON property `writeMsMax`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :write_ms_max
|
||||||
|
|
||||||
# Relative amount of time the average shard spent on writing output.
|
# Relative amount of time the average shard spent on writing output.
|
||||||
# Corresponds to the JSON property `writeRatioAvg`
|
# Corresponds to the JSON property `writeRatioAvg`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
|
@ -675,18 +725,28 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@compute_ms_avg = args[:compute_ms_avg] if args.key?(:compute_ms_avg)
|
||||||
|
@compute_ms_max = args[:compute_ms_max] if args.key?(:compute_ms_max)
|
||||||
@compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg)
|
@compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg)
|
||||||
@compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max)
|
@compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@read_ms_avg = args[:read_ms_avg] if args.key?(:read_ms_avg)
|
||||||
|
@read_ms_max = args[:read_ms_max] if args.key?(:read_ms_max)
|
||||||
@read_ratio_avg = args[:read_ratio_avg] if args.key?(:read_ratio_avg)
|
@read_ratio_avg = args[:read_ratio_avg] if args.key?(:read_ratio_avg)
|
||||||
@read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max)
|
@read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max)
|
||||||
@records_read = args[:records_read] if args.key?(:records_read)
|
@records_read = args[:records_read] if args.key?(:records_read)
|
||||||
@records_written = args[:records_written] if args.key?(:records_written)
|
@records_written = args[:records_written] if args.key?(:records_written)
|
||||||
|
@shuffle_output_bytes = args[:shuffle_output_bytes] if args.key?(:shuffle_output_bytes)
|
||||||
|
@shuffle_output_bytes_spilled = args[:shuffle_output_bytes_spilled] if args.key?(:shuffle_output_bytes_spilled)
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
@steps = args[:steps] if args.key?(:steps)
|
@steps = args[:steps] if args.key?(:steps)
|
||||||
|
@wait_ms_avg = args[:wait_ms_avg] if args.key?(:wait_ms_avg)
|
||||||
|
@wait_ms_max = args[:wait_ms_max] if args.key?(:wait_ms_max)
|
||||||
@wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg)
|
@wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg)
|
||||||
@wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max)
|
@wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max)
|
||||||
|
@write_ms_avg = args[:write_ms_avg] if args.key?(:write_ms_avg)
|
||||||
|
@write_ms_max = args[:write_ms_max] if args.key?(:write_ms_max)
|
||||||
@write_ratio_avg = args[:write_ratio_avg] if args.key?(:write_ratio_avg)
|
@write_ratio_avg = args[:write_ratio_avg] if args.key?(:write_ratio_avg)
|
||||||
@write_ratio_max = args[:write_ratio_max] if args.key?(:write_ratio_max)
|
@write_ratio_max = args[:write_ratio_max] if args.key?(:write_ratio_max)
|
||||||
end
|
end
|
||||||
|
@ -795,8 +855,7 @@ module Google
|
||||||
# apply to external data sources. For Google Cloud Bigtable URIs: Exactly one
|
# apply to external data sources. For Google Cloud Bigtable URIs: Exactly one
|
||||||
# URI can be specified and it has be a fully specified and valid HTTPS URL for a
|
# URI can be specified and it has be a fully specified and valid HTTPS URL for a
|
||||||
# Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one
|
# Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one
|
||||||
# URI can be specified, and it must end with '.backup_info'. Also, the '*'
|
# URI can be specified. Also, the '*' wildcard character is not allowed.
|
||||||
# wildcard character is not allowed.
|
|
||||||
# Corresponds to the JSON property `sourceUris`
|
# Corresponds to the JSON property `sourceUris`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :source_uris
|
attr_accessor :source_uris
|
||||||
|
@ -1294,9 +1353,10 @@ module Google
|
||||||
attr_accessor :schema_inline_format
|
attr_accessor :schema_inline_format
|
||||||
|
|
||||||
# [Experimental] Allows the schema of the desitination table to be updated as a
|
# [Experimental] Allows the schema of the desitination table to be updated as a
|
||||||
# side effect of the load job. Schema update options are supported in two cases:
|
# side effect of the load job if a schema is autodetected or supplied in the job
|
||||||
# when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE
|
# configuration. Schema update options are supported in two cases: when
|
||||||
# and the destination table is a partition of a table, specified by partition
|
# writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and
|
||||||
|
# the destination table is a partition of a table, specified by partition
|
||||||
# decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema.
|
# decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema.
|
||||||
# One or more of the following values are specified: ALLOW_FIELD_ADDITION:
|
# One or more of the following values are specified: ALLOW_FIELD_ADDITION:
|
||||||
# allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
|
# allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
|
||||||
|
@ -1320,13 +1380,23 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :source_format
|
attr_accessor :source_format
|
||||||
|
|
||||||
# [Required] The fully-qualified URIs that point to your data in Google Cloud
|
# [Required] The fully-qualified URIs that point to your data in Google Cloud.
|
||||||
# Storage. Each URI can contain one '*' wildcard character and it must come
|
# For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character
|
||||||
# after the 'bucket' name.
|
# and it must come after the 'bucket' name. Size limits related to load jobs
|
||||||
|
# apply to external data sources. For Google Cloud Bigtable URIs: Exactly one
|
||||||
|
# URI can be specified and it has be a fully specified and valid HTTPS URL for a
|
||||||
|
# Google Cloud Bigtable table. For Google Cloud Datastore backups: Exactly one
|
||||||
|
# URI can be specified. Also, the '*' wildcard character is not allowed.
|
||||||
# Corresponds to the JSON property `sourceUris`
|
# Corresponds to the JSON property `sourceUris`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :source_uris
|
attr_accessor :source_uris
|
||||||
|
|
||||||
|
# [Experimental] If specified, configures time-based partitioning for the
|
||||||
|
# destination table.
|
||||||
|
# Corresponds to the JSON property `timePartitioning`
|
||||||
|
# @return [Google::Apis::BigqueryV2::TimePartitioning]
|
||||||
|
attr_accessor :time_partitioning
|
||||||
|
|
||||||
# [Optional] Specifies the action that occurs if the destination table already
|
# [Optional] Specifies the action that occurs if the destination table already
|
||||||
# exists. The following values are supported: WRITE_TRUNCATE: If the table
|
# exists. The following values are supported: WRITE_TRUNCATE: If the table
|
||||||
# already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table
|
# already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table
|
||||||
|
@ -1364,6 +1434,7 @@ module Google
|
||||||
@skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
|
@skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
|
||||||
@source_format = args[:source_format] if args.key?(:source_format)
|
@source_format = args[:source_format] if args.key?(:source_format)
|
||||||
@source_uris = args[:source_uris] if args.key?(:source_uris)
|
@source_uris = args[:source_uris] if args.key?(:source_uris)
|
||||||
|
@time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
|
||||||
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
|
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1478,11 +1549,17 @@ module Google
|
||||||
# @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
|
# @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
|
||||||
attr_accessor :table_definitions
|
attr_accessor :table_definitions
|
||||||
|
|
||||||
|
# [Experimental] If specified, configures time-based partitioning for the
|
||||||
|
# destination table.
|
||||||
|
# Corresponds to the JSON property `timePartitioning`
|
||||||
|
# @return [Google::Apis::BigqueryV2::TimePartitioning]
|
||||||
|
attr_accessor :time_partitioning
|
||||||
|
|
||||||
# Specifies whether to use BigQuery's legacy SQL dialect for this query. The
|
# Specifies whether to use BigQuery's legacy SQL dialect for this query. The
|
||||||
# default value is true. If set to false, the query will use BigQuery's standard
|
# default value is true. If set to false, the query will use BigQuery's standard
|
||||||
# SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
|
# SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
|
||||||
# to false, the values of allowLargeResults and flattenResults are ignored;
|
# to false, the value of flattenResults is ignored; query will be run as if
|
||||||
# query will be run as if allowLargeResults is true and flattenResults is false.
|
# flattenResults is false.
|
||||||
# Corresponds to the JSON property `useLegacySql`
|
# Corresponds to the JSON property `useLegacySql`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :use_legacy_sql
|
attr_accessor :use_legacy_sql
|
||||||
|
@ -1504,12 +1581,13 @@ module Google
|
||||||
|
|
||||||
# [Optional] Specifies the action that occurs if the destination table already
|
# [Optional] Specifies the action that occurs if the destination table already
|
||||||
# exists. The following values are supported: WRITE_TRUNCATE: If the table
|
# exists. The following values are supported: WRITE_TRUNCATE: If the table
|
||||||
# already exists, BigQuery overwrites the table data. WRITE_APPEND: If the table
|
# already exists, BigQuery overwrites the table data and uses the schema from
|
||||||
# already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the
|
# the query result. WRITE_APPEND: If the table already exists, BigQuery appends
|
||||||
# table already exists and contains data, a 'duplicate' error is returned in the
|
# the data to the table. WRITE_EMPTY: If the table already exists and contains
|
||||||
# job result. The default value is WRITE_EMPTY. Each action is atomic and only
|
# data, a 'duplicate' error is returned in the job result. The default value is
|
||||||
# occurs if BigQuery is able to complete the job successfully. Creation,
|
# WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to
|
||||||
# truncation and append actions occur as one atomic update upon job completion.
|
# complete the job successfully. Creation, truncation and append actions occur
|
||||||
|
# as one atomic update upon job completion.
|
||||||
# Corresponds to the JSON property `writeDisposition`
|
# Corresponds to the JSON property `writeDisposition`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :write_disposition
|
attr_accessor :write_disposition
|
||||||
|
@ -1534,6 +1612,7 @@ module Google
|
||||||
@query_parameters = args[:query_parameters] if args.key?(:query_parameters)
|
@query_parameters = args[:query_parameters] if args.key?(:query_parameters)
|
||||||
@schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
|
@schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
|
||||||
@table_definitions = args[:table_definitions] if args.key?(:table_definitions)
|
@table_definitions = args[:table_definitions] if args.key?(:table_definitions)
|
||||||
|
@time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
|
||||||
@use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
|
@use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
|
||||||
@use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
|
@use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
|
||||||
@user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
|
@user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
|
||||||
|
@ -1871,6 +1950,14 @@ module Google
|
||||||
class JobStatistics3
|
class JobStatistics3
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output-only] The number of bad records encountered. Note that if the job has
|
||||||
|
# failed because of more bad records encountered than the maximum allowed in the
|
||||||
|
# load job configuration, then this number can be less than the total number of
|
||||||
|
# bad records present in the input data.
|
||||||
|
# Corresponds to the JSON property `badRecords`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :bad_records
|
||||||
|
|
||||||
# [Output-only] Number of bytes of source data in a load job.
|
# [Output-only] Number of bytes of source data in a load job.
|
||||||
# Corresponds to the JSON property `inputFileBytes`
|
# Corresponds to the JSON property `inputFileBytes`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
|
@ -1899,6 +1986,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@bad_records = args[:bad_records] if args.key?(:bad_records)
|
||||||
@input_file_bytes = args[:input_file_bytes] if args.key?(:input_file_bytes)
|
@input_file_bytes = args[:input_file_bytes] if args.key?(:input_file_bytes)
|
||||||
@input_files = args[:input_files] if args.key?(:input_files)
|
@input_files = args[:input_files] if args.key?(:input_files)
|
||||||
@output_bytes = args[:output_bytes] if args.key?(:output_bytes)
|
@output_bytes = args[:output_bytes] if args.key?(:output_bytes)
|
||||||
|
@ -2265,8 +2353,8 @@ module Google
|
||||||
# Specifies whether to use BigQuery's legacy SQL dialect for this query. The
|
# Specifies whether to use BigQuery's legacy SQL dialect for this query. The
|
||||||
# default value is true. If set to false, the query will use BigQuery's standard
|
# default value is true. If set to false, the query will use BigQuery's standard
|
||||||
# SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
|
# SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
|
||||||
# to false, the values of allowLargeResults and flattenResults are ignored;
|
# to false, the value of flattenResults is ignored; query will be run as if
|
||||||
# query will be run as if allowLargeResults is true and flattenResults is false.
|
# flattenResults is false.
|
||||||
# Corresponds to the JSON property `useLegacySql`
|
# Corresponds to the JSON property `useLegacySql`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :use_legacy_sql
|
attr_accessor :use_legacy_sql
|
||||||
|
|
|
@ -488,19 +488,29 @@ module Google
|
||||||
class ExplainQueryStage
|
class ExplainQueryStage
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :compute_ms_avg, :numeric_string => true, as: 'computeMsAvg'
|
||||||
|
property :compute_ms_max, :numeric_string => true, as: 'computeMsMax'
|
||||||
property :compute_ratio_avg, as: 'computeRatioAvg'
|
property :compute_ratio_avg, as: 'computeRatioAvg'
|
||||||
property :compute_ratio_max, as: 'computeRatioMax'
|
property :compute_ratio_max, as: 'computeRatioMax'
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :read_ms_avg, :numeric_string => true, as: 'readMsAvg'
|
||||||
|
property :read_ms_max, :numeric_string => true, as: 'readMsMax'
|
||||||
property :read_ratio_avg, as: 'readRatioAvg'
|
property :read_ratio_avg, as: 'readRatioAvg'
|
||||||
property :read_ratio_max, as: 'readRatioMax'
|
property :read_ratio_max, as: 'readRatioMax'
|
||||||
property :records_read, :numeric_string => true, as: 'recordsRead'
|
property :records_read, :numeric_string => true, as: 'recordsRead'
|
||||||
property :records_written, :numeric_string => true, as: 'recordsWritten'
|
property :records_written, :numeric_string => true, as: 'recordsWritten'
|
||||||
|
property :shuffle_output_bytes, :numeric_string => true, as: 'shuffleOutputBytes'
|
||||||
|
property :shuffle_output_bytes_spilled, :numeric_string => true, as: 'shuffleOutputBytesSpilled'
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation
|
collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation
|
||||||
|
|
||||||
|
property :wait_ms_avg, :numeric_string => true, as: 'waitMsAvg'
|
||||||
|
property :wait_ms_max, :numeric_string => true, as: 'waitMsMax'
|
||||||
property :wait_ratio_avg, as: 'waitRatioAvg'
|
property :wait_ratio_avg, as: 'waitRatioAvg'
|
||||||
property :wait_ratio_max, as: 'waitRatioMax'
|
property :wait_ratio_max, as: 'waitRatioMax'
|
||||||
|
property :write_ms_avg, :numeric_string => true, as: 'writeMsAvg'
|
||||||
|
property :write_ms_max, :numeric_string => true, as: 'writeMsMax'
|
||||||
property :write_ratio_avg, as: 'writeRatioAvg'
|
property :write_ratio_avg, as: 'writeRatioAvg'
|
||||||
property :write_ratio_max, as: 'writeRatioMax'
|
property :write_ratio_max, as: 'writeRatioMax'
|
||||||
end
|
end
|
||||||
|
@ -645,6 +655,8 @@ module Google
|
||||||
property :skip_leading_rows, as: 'skipLeadingRows'
|
property :skip_leading_rows, as: 'skipLeadingRows'
|
||||||
property :source_format, as: 'sourceFormat'
|
property :source_format, as: 'sourceFormat'
|
||||||
collection :source_uris, as: 'sourceUris'
|
collection :source_uris, as: 'sourceUris'
|
||||||
|
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
||||||
|
|
||||||
property :write_disposition, as: 'writeDisposition'
|
property :write_disposition, as: 'writeDisposition'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -670,6 +682,8 @@ module Google
|
||||||
collection :schema_update_options, as: 'schemaUpdateOptions'
|
collection :schema_update_options, as: 'schemaUpdateOptions'
|
||||||
hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
|
hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
|
||||||
|
|
||||||
|
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
||||||
|
|
||||||
property :use_legacy_sql, as: 'useLegacySql'
|
property :use_legacy_sql, as: 'useLegacySql'
|
||||||
property :use_query_cache, as: 'useQueryCache'
|
property :use_query_cache, as: 'useQueryCache'
|
||||||
collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
|
collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
|
||||||
|
@ -770,6 +784,7 @@ module Google
|
||||||
class JobStatistics3
|
class JobStatistics3
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :bad_records, :numeric_string => true, as: 'badRecords'
|
||||||
property :input_file_bytes, :numeric_string => true, as: 'inputFileBytes'
|
property :input_file_bytes, :numeric_string => true, as: 'inputFileBytes'
|
||||||
property :input_files, :numeric_string => true, as: 'inputFiles'
|
property :input_files, :numeric_string => true, as: 'inputFiles'
|
||||||
property :output_bytes, :numeric_string => true, as: 'outputBytes'
|
property :output_bytes, :numeric_string => true, as: 'outputBytes'
|
||||||
|
|
|
@ -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/bigquerydatatransfer_v1/service.rb'
|
||||||
|
require 'google/apis/bigquerydatatransfer_v1/classes.rb'
|
||||||
|
require 'google/apis/bigquerydatatransfer_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# BigQuery Data Transfer Service API
|
||||||
|
#
|
||||||
|
# Transfers data from partner SaaS applications to Google BigQuery on a
|
||||||
|
# scheduled, managed basis.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/bigquery/
|
||||||
|
module BigquerydatatransferV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20170806'
|
||||||
|
|
||||||
|
# View and manage your data in Google BigQuery
|
||||||
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
||||||
|
# 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
|
|
@ -0,0 +1,886 @@
|
||||||
|
# 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 BigquerydatatransferV1
|
||||||
|
|
||||||
|
# A request to determine whether the user has valid credentials. This method
|
||||||
|
# is used to limit the number of OAuth popups in the user interface. The
|
||||||
|
# user id is inferred from the API call context.
|
||||||
|
# If the data source has the Google+ authorization type, this method
|
||||||
|
# returns false, as it cannot be determined whether the credentials are
|
||||||
|
# already valid merely based on the user id.
|
||||||
|
class CheckValidCredsRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A response indicating whether the credentials exist and are valid.
|
||||||
|
class CheckValidCredsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If set to `true`, the credentials exist and are valid.
|
||||||
|
# Corresponds to the JSON property `hasValidCreds`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :has_valid_creds
|
||||||
|
alias_method :has_valid_creds?, :has_valid_creds
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@has_valid_creds = args[:has_valid_creds] if args.key?(:has_valid_creds)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents data source metadata. Metadata is sufficient to
|
||||||
|
# render UI and request proper OAuth tokens.
|
||||||
|
class DataSource
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Indicates the type of authorization.
|
||||||
|
# Corresponds to the JSON property `authorizationType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :authorization_type
|
||||||
|
|
||||||
|
# Data source client id which should be used to receive refresh token.
|
||||||
|
# When not supplied, no offline credentials are populated for data transfer.
|
||||||
|
# Corresponds to the JSON property `clientId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_id
|
||||||
|
|
||||||
|
# Specifies whether the data source supports automatic data refresh for the
|
||||||
|
# past few days, and how it's supported.
|
||||||
|
# For some data sources, data might not be complete until a few days later,
|
||||||
|
# so it's useful to refresh data automatically.
|
||||||
|
# Corresponds to the JSON property `dataRefreshType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_refresh_type
|
||||||
|
|
||||||
|
# Data source id.
|
||||||
|
# Corresponds to the JSON property `dataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_source_id
|
||||||
|
|
||||||
|
# Default data refresh window on days.
|
||||||
|
# Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
|
||||||
|
# Corresponds to the JSON property `defaultDataRefreshWindowDays`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :default_data_refresh_window_days
|
||||||
|
|
||||||
|
# Default data transfer schedule.
|
||||||
|
# Examples of valid schedules include:
|
||||||
|
# `1st,3rd monday of month 15:30`,
|
||||||
|
# `every wed,fri of jan,jun 13:15`, and
|
||||||
|
# `first sunday of quarter 00:00`.
|
||||||
|
# Corresponds to the JSON property `defaultSchedule`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :default_schedule
|
||||||
|
|
||||||
|
# User friendly data source description string.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# User friendly data source name.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# Url for the help document for this data source.
|
||||||
|
# Corresponds to the JSON property `helpUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :help_url
|
||||||
|
|
||||||
|
# Disables backfilling and manual run scheduling
|
||||||
|
# for the data source.
|
||||||
|
# Corresponds to the JSON property `manualRunsDisabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :manual_runs_disabled
|
||||||
|
alias_method :manual_runs_disabled?, :manual_runs_disabled
|
||||||
|
|
||||||
|
# Data source resource name.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Data source parameters.
|
||||||
|
# Corresponds to the JSON property `parameters`
|
||||||
|
# @return [Array<Google::Apis::BigquerydatatransferV1::DataSourceParameter>]
|
||||||
|
attr_accessor :parameters
|
||||||
|
|
||||||
|
# Api auth scopes for which refresh token needs to be obtained. Only valid
|
||||||
|
# when `client_id` is specified. Ignored otherwise. These are scopes needed
|
||||||
|
# by a data source to prepare data and ingest them into BigQuery,
|
||||||
|
# e.g., https://www.googleapis.com/auth/bigquery
|
||||||
|
# Corresponds to the JSON property `scopes`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :scopes
|
||||||
|
|
||||||
|
# The number of seconds to wait for a status update from the data source
|
||||||
|
# before BigQuery marks the transfer as failed.
|
||||||
|
# Corresponds to the JSON property `statusUpdateDeadlineSeconds`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :status_update_deadline_seconds
|
||||||
|
|
||||||
|
# Specifies whether the data source supports a user defined schedule, or
|
||||||
|
# operates on the default schedule.
|
||||||
|
# When set to `true`, user can override default schedule.
|
||||||
|
# Corresponds to the JSON property `supportsCustomSchedule`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :supports_custom_schedule
|
||||||
|
alias_method :supports_custom_schedule?, :supports_custom_schedule
|
||||||
|
|
||||||
|
# Indicates whether the data source supports multiple transfers
|
||||||
|
# to different BigQuery targets.
|
||||||
|
# Corresponds to the JSON property `supportsMultipleTransfers`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :supports_multiple_transfers
|
||||||
|
alias_method :supports_multiple_transfers?, :supports_multiple_transfers
|
||||||
|
|
||||||
|
# Transfer type. Currently supports only batch transfers,
|
||||||
|
# which are transfers that use the BigQuery batch APIs (load or
|
||||||
|
# query) to ingest the data.
|
||||||
|
# Corresponds to the JSON property `transferType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :transfer_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@authorization_type = args[:authorization_type] if args.key?(:authorization_type)
|
||||||
|
@client_id = args[:client_id] if args.key?(:client_id)
|
||||||
|
@data_refresh_type = args[:data_refresh_type] if args.key?(:data_refresh_type)
|
||||||
|
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
||||||
|
@default_data_refresh_window_days = args[:default_data_refresh_window_days] if args.key?(:default_data_refresh_window_days)
|
||||||
|
@default_schedule = args[:default_schedule] if args.key?(:default_schedule)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@help_url = args[:help_url] if args.key?(:help_url)
|
||||||
|
@manual_runs_disabled = args[:manual_runs_disabled] if args.key?(:manual_runs_disabled)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@parameters = args[:parameters] if args.key?(:parameters)
|
||||||
|
@scopes = args[:scopes] if args.key?(:scopes)
|
||||||
|
@status_update_deadline_seconds = args[:status_update_deadline_seconds] if args.key?(:status_update_deadline_seconds)
|
||||||
|
@supports_custom_schedule = args[:supports_custom_schedule] if args.key?(:supports_custom_schedule)
|
||||||
|
@supports_multiple_transfers = args[:supports_multiple_transfers] if args.key?(:supports_multiple_transfers)
|
||||||
|
@transfer_type = args[:transfer_type] if args.key?(:transfer_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a data source parameter with validation rules, so that
|
||||||
|
# parameters can be rendered in the UI. These parameters are given to us by
|
||||||
|
# supported data sources, and include all needed information for rendering
|
||||||
|
# and validation.
|
||||||
|
# Thus, whoever uses this api can decide to generate either generic ui,
|
||||||
|
# or custom data source specific forms.
|
||||||
|
class DataSourceParameter
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# All possible values for the parameter.
|
||||||
|
# Corresponds to the JSON property `allowedValues`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :allowed_values
|
||||||
|
|
||||||
|
# Parameter description.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Parameter display name in the user interface.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# When parameter is a record, describes child fields.
|
||||||
|
# Corresponds to the JSON property `fields`
|
||||||
|
# @return [Array<Google::Apis::BigquerydatatransferV1::DataSourceParameter>]
|
||||||
|
attr_accessor :fields
|
||||||
|
|
||||||
|
# Cannot be changed after initial creation.
|
||||||
|
# Corresponds to the JSON property `immutable`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :immutable
|
||||||
|
alias_method :immutable?, :immutable
|
||||||
|
|
||||||
|
# For integer and double values specifies maxminum allowed value.
|
||||||
|
# Corresponds to the JSON property `maxValue`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :max_value
|
||||||
|
|
||||||
|
# For integer and double values specifies minimum allowed value.
|
||||||
|
# Corresponds to the JSON property `minValue`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :min_value
|
||||||
|
|
||||||
|
# Parameter identifier.
|
||||||
|
# Corresponds to the JSON property `paramId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :param_id
|
||||||
|
|
||||||
|
# If set to true, schema should be taken from the parent with the same
|
||||||
|
# parameter_id. Only applicable when parameter type is RECORD.
|
||||||
|
# Corresponds to the JSON property `recurse`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :recurse
|
||||||
|
alias_method :recurse?, :recurse
|
||||||
|
|
||||||
|
# Can parameter have multiple values.
|
||||||
|
# Corresponds to the JSON property `repeated`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :repeated
|
||||||
|
alias_method :repeated?, :repeated
|
||||||
|
|
||||||
|
# Is parameter required.
|
||||||
|
# Corresponds to the JSON property `required`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :required
|
||||||
|
alias_method :required?, :required
|
||||||
|
|
||||||
|
# Parameter type.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
# Description of the requirements for this field, in case the user input does
|
||||||
|
# not fulfill the regex pattern or min/max values.
|
||||||
|
# Corresponds to the JSON property `validationDescription`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :validation_description
|
||||||
|
|
||||||
|
# URL to a help document to further explain the naming requirements.
|
||||||
|
# Corresponds to the JSON property `validationHelpUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :validation_help_url
|
||||||
|
|
||||||
|
# Regular expression which can be used for parameter validation.
|
||||||
|
# Corresponds to the JSON property `validationRegex`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :validation_regex
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@allowed_values = args[:allowed_values] if args.key?(:allowed_values)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@fields = args[:fields] if args.key?(:fields)
|
||||||
|
@immutable = args[:immutable] if args.key?(:immutable)
|
||||||
|
@max_value = args[:max_value] if args.key?(:max_value)
|
||||||
|
@min_value = args[:min_value] if args.key?(:min_value)
|
||||||
|
@param_id = args[:param_id] if args.key?(:param_id)
|
||||||
|
@recurse = args[:recurse] if args.key?(:recurse)
|
||||||
|
@repeated = args[:repeated] if args.key?(:repeated)
|
||||||
|
@required = args[:required] if args.key?(:required)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@validation_description = args[:validation_description] if args.key?(:validation_description)
|
||||||
|
@validation_help_url = args[:validation_help_url] if args.key?(:validation_help_url)
|
||||||
|
@validation_regex = args[:validation_regex] if args.key?(:validation_regex)
|
||||||
|
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
|
||||||
|
|
||||||
|
# A request to determine whether data transfer is enabled for the project.
|
||||||
|
class IsEnabledRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A response to indicate whether data transfer is enabled for the project.
|
||||||
|
class IsEnabledResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Indicates whether the project is enabled.
|
||||||
|
# Corresponds to the JSON property `enabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :enabled
|
||||||
|
alias_method :enabled?, :enabled
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@enabled = args[:enabled] if args.key?(:enabled)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns list of supported data sources and their metadata.
|
||||||
|
class ListDataSourcesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of supported data sources and their transfer settings.
|
||||||
|
# Corresponds to the JSON property `dataSources`
|
||||||
|
# @return [Array<Google::Apis::BigquerydatatransferV1::DataSource>]
|
||||||
|
attr_accessor :data_sources
|
||||||
|
|
||||||
|
# The next-pagination token. For multiple-page list results,
|
||||||
|
# this token can be used as the
|
||||||
|
# `ListDataSourcesRequest.page_token`
|
||||||
|
# to request the next page of list results.
|
||||||
|
# @OutputOnly
|
||||||
|
# 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)
|
||||||
|
@data_sources = args[:data_sources] if args.key?(:data_sources)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
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::BigquerydatatransferV1::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
|
||||||
|
|
||||||
|
# The returned list of pipelines in the project.
|
||||||
|
class ListTransferConfigsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The next-pagination token. For multiple-page list results,
|
||||||
|
# this token can be used as the
|
||||||
|
# `ListTransferConfigsRequest.page_token`
|
||||||
|
# to request the next page of list results.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The stored pipeline transfer configurations.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `transferConfigs`
|
||||||
|
# @return [Array<Google::Apis::BigquerydatatransferV1::TransferConfig>]
|
||||||
|
attr_accessor :transfer_configs
|
||||||
|
|
||||||
|
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)
|
||||||
|
@transfer_configs = args[:transfer_configs] if args.key?(:transfer_configs)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The returned list transfer run messages.
|
||||||
|
class ListTransferLogsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The next-pagination token. For multiple-page list results,
|
||||||
|
# this token can be used as the
|
||||||
|
# `GetTransferRunLogRequest.page_token`
|
||||||
|
# to request the next page of list results.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The stored pipeline transfer messages.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `transferMessages`
|
||||||
|
# @return [Array<Google::Apis::BigquerydatatransferV1::TransferMessage>]
|
||||||
|
attr_accessor :transfer_messages
|
||||||
|
|
||||||
|
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)
|
||||||
|
@transfer_messages = args[:transfer_messages] if args.key?(:transfer_messages)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The returned list of pipelines in the project.
|
||||||
|
class ListTransferRunsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The next-pagination token. For multiple-page list results,
|
||||||
|
# this token can be used as the
|
||||||
|
# `ListTransferRunsRequest.page_token`
|
||||||
|
# to request the next page of list results.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The stored pipeline transfer runs.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `transferRuns`
|
||||||
|
# @return [Array<Google::Apis::BigquerydatatransferV1::TransferRun>]
|
||||||
|
attr_accessor :transfer_runs
|
||||||
|
|
||||||
|
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)
|
||||||
|
@transfer_runs = args[:transfer_runs] if args.key?(:transfer_runs)
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Resource name for the location, which may vary between implementations.
|
||||||
|
# For example: `"projects/example-project/locations/us-east1"`
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A request to schedule transfer runs for a time range.
|
||||||
|
class ScheduleTransferRunsRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# End time of the range of transfer runs.
|
||||||
|
# Corresponds to the JSON property `rangeEndTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :range_end_time
|
||||||
|
|
||||||
|
# Start time of the range of transfer runs.
|
||||||
|
# Corresponds to the JSON property `rangeStartTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :range_start_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@range_end_time = args[:range_end_time] if args.key?(:range_end_time)
|
||||||
|
@range_start_time = args[:range_start_time] if args.key?(:range_start_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A response to schedule transfer runs for a time range.
|
||||||
|
class ScheduleTransferRunsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The transfer runs that were created.
|
||||||
|
# Corresponds to the JSON property `createdRuns`
|
||||||
|
# @return [Array<Google::Apis::BigquerydatatransferV1::TransferRun>]
|
||||||
|
attr_accessor :created_runs
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@created_runs = args[:created_runs] if args.key?(:created_runs)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A request to set whether data transfer is enabled or disabled for a project.
|
||||||
|
class SetEnabledRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Whether data transfer should be enabled or disabled for the project.
|
||||||
|
# Corresponds to the JSON property `enabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :enabled
|
||||||
|
alias_method :enabled?, :enabled
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@enabled = args[:enabled] if args.key?(:enabled)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a data transfer configuration. A transfer configuration
|
||||||
|
# contains all metadata needed to perform a data transfer. For example,
|
||||||
|
# `destination_dataset_id` specifies where data should be stored.
|
||||||
|
# When a new transfer configuration is created, the specified
|
||||||
|
# `destination_dataset_id` is created when needed and shared with the
|
||||||
|
# appropriate data source service account.
|
||||||
|
class TransferConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of days to look back to automatically refresh the data.
|
||||||
|
# For example, if `data_refresh_window_days = 10`, then every day
|
||||||
|
# BigQuery reingests data for [today-10, today-1], rather than ingesting data
|
||||||
|
# for just [today-1].
|
||||||
|
# Only valid if the data source supports the feature. Set the value to 0
|
||||||
|
# to use the default value.
|
||||||
|
# Corresponds to the JSON property `dataRefreshWindowDays`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :data_refresh_window_days
|
||||||
|
|
||||||
|
# Data source id. Cannot be changed once data transfer is created.
|
||||||
|
# Corresponds to the JSON property `dataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_source_id
|
||||||
|
|
||||||
|
# Region in which BigQuery dataset is located. Currently possible values are:
|
||||||
|
# "US" and "EU".
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `datasetRegion`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :dataset_region
|
||||||
|
|
||||||
|
# The BigQuery target dataset id.
|
||||||
|
# Corresponds to the JSON property `destinationDatasetId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :destination_dataset_id
|
||||||
|
|
||||||
|
# Is this config disabled. When set to true, no runs are scheduled
|
||||||
|
# for a given transfer.
|
||||||
|
# Corresponds to the JSON property `disabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :disabled
|
||||||
|
alias_method :disabled?, :disabled
|
||||||
|
|
||||||
|
# User specified display name for the data transfer.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# The resource name of the transfer run.
|
||||||
|
# Transfer run names have the form
|
||||||
|
# `projects/`project_id`/transferConfigs/`config_id``.
|
||||||
|
# Where `config_id` is usually a uuid, even though it is not
|
||||||
|
# guaranteed or required. The name is ignored when creating a transfer run.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Next time when data transfer will run. Output only. Applicable
|
||||||
|
# only for batch data transfers.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `nextRunTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_run_time
|
||||||
|
|
||||||
|
# Data transfer specific parameters.
|
||||||
|
# Corresponds to the JSON property `params`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :params
|
||||||
|
|
||||||
|
# Data transfer schedule.
|
||||||
|
# If the data source does not support a custom schedule, this should be
|
||||||
|
# empty. If it is empty, the default value for the data source will be
|
||||||
|
# used.
|
||||||
|
# The specified times are in UTC.
|
||||||
|
# Examples of valid format:
|
||||||
|
# `1st,3rd monday of month 15:30`,
|
||||||
|
# `every wed,fri of jan,jun 13:15`, and
|
||||||
|
# `first sunday of quarter 00:00`.
|
||||||
|
# See more explanation about the format here:
|
||||||
|
# https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-
|
||||||
|
# cron-yaml#the_schedule_format
|
||||||
|
# NOTE: the granularity should be at least 8 hours, or less frequent.
|
||||||
|
# Corresponds to the JSON property `schedule`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :schedule
|
||||||
|
|
||||||
|
# Status of the most recently updated transfer run.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
# Data transfer modification time. Ignored by server on input.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_time
|
||||||
|
|
||||||
|
# GaiaID of the user on whose behalf transfer is done. Applicable only
|
||||||
|
# to data sources that do not support service accounts. When set to 0,
|
||||||
|
# the data source service account credentials are used.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `userId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :user_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@data_refresh_window_days = args[:data_refresh_window_days] if args.key?(:data_refresh_window_days)
|
||||||
|
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
||||||
|
@dataset_region = args[:dataset_region] if args.key?(:dataset_region)
|
||||||
|
@destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id)
|
||||||
|
@disabled = args[:disabled] if args.key?(:disabled)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@next_run_time = args[:next_run_time] if args.key?(:next_run_time)
|
||||||
|
@params = args[:params] if args.key?(:params)
|
||||||
|
@schedule = args[:schedule] if args.key?(:schedule)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
|
@user_id = args[:user_id] if args.key?(:user_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a user facing message for a particular data transfer run.
|
||||||
|
class TransferMessage
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Message text.
|
||||||
|
# Corresponds to the JSON property `messageText`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message_text
|
||||||
|
|
||||||
|
# Time when message was logged.
|
||||||
|
# Corresponds to the JSON property `messageTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message_time
|
||||||
|
|
||||||
|
# Message severity.
|
||||||
|
# Corresponds to the JSON property `severity`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :severity
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@message_text = args[:message_text] if args.key?(:message_text)
|
||||||
|
@message_time = args[:message_time] if args.key?(:message_time)
|
||||||
|
@severity = args[:severity] if args.key?(:severity)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a data transfer run.
|
||||||
|
class TransferRun
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Data source id.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `dataSourceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_source_id
|
||||||
|
|
||||||
|
# Region in which BigQuery dataset is located. Currently possible values are:
|
||||||
|
# "US" and "EU".
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `datasetRegion`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :dataset_region
|
||||||
|
|
||||||
|
# The BigQuery target dataset id.
|
||||||
|
# Corresponds to the JSON property `destinationDatasetId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :destination_dataset_id
|
||||||
|
|
||||||
|
# Time when transfer run ended. Parameter ignored by server for input
|
||||||
|
# requests.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `endTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_time
|
||||||
|
|
||||||
|
# The resource name of the transfer run.
|
||||||
|
# Transfer run names have the form
|
||||||
|
# `projects/`project_id`/locations/`location`/transferConfigs/`config_id`/runs/`
|
||||||
|
# run_id``.
|
||||||
|
# The name is ignored when creating a transfer run.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Data transfer specific parameters.
|
||||||
|
# Corresponds to the JSON property `params`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :params
|
||||||
|
|
||||||
|
# For batch transfer runs, specifies the date and time that
|
||||||
|
# data should be ingested.
|
||||||
|
# Corresponds to the JSON property `runTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :run_time
|
||||||
|
|
||||||
|
# Describes the schedule of this transfer run if it was created as part of
|
||||||
|
# a regular schedule. For batch transfer runs that are directly created,
|
||||||
|
# this is empty.
|
||||||
|
# NOTE: the system might choose to delay the schedule depending on the
|
||||||
|
# current load, so `schedule_time` doesn't always matches this.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `schedule`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :schedule
|
||||||
|
|
||||||
|
# Minimum time after which a transfer run can be started.
|
||||||
|
# Corresponds to the JSON property `scheduleTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :schedule_time
|
||||||
|
|
||||||
|
# Time when transfer run was started. Parameter ignored by server for input
|
||||||
|
# requests.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `startTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time
|
||||||
|
|
||||||
|
# Data transfer run status. Ignored for input requests.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
# Last time the data transfer run status was updated.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_time
|
||||||
|
|
||||||
|
# The user id for this transfer run.
|
||||||
|
# @OutputOnly
|
||||||
|
# Corresponds to the JSON property `userId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :user_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
|
||||||
|
@dataset_region = args[:dataset_region] if args.key?(:dataset_region)
|
||||||
|
@destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id)
|
||||||
|
@end_time = args[:end_time] if args.key?(:end_time)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@params = args[:params] if args.key?(:params)
|
||||||
|
@run_time = args[:run_time] if args.key?(:run_time)
|
||||||
|
@schedule = args[:schedule] if args.key?(:schedule)
|
||||||
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
||||||
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
|
@user_id = args[:user_id] if args.key?(:user_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,343 @@
|
||||||
|
# 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 BigquerydatatransferV1
|
||||||
|
|
||||||
|
class CheckValidCredsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CheckValidCredsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataSource
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataSourceParameter
|
||||||
|
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 IsEnabledRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class IsEnabledResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDataSourcesResponse
|
||||||
|
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 ListTransferConfigsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTransferLogsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTransferRunsResponse
|
||||||
|
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 ScheduleTransferRunsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ScheduleTransferRunsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetEnabledRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TransferConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TransferMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TransferRun
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CheckValidCredsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CheckValidCredsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :has_valid_creds, as: 'hasValidCreds'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataSource
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :authorization_type, as: 'authorizationType'
|
||||||
|
property :client_id, as: 'clientId'
|
||||||
|
property :data_refresh_type, as: 'dataRefreshType'
|
||||||
|
property :data_source_id, as: 'dataSourceId'
|
||||||
|
property :default_data_refresh_window_days, as: 'defaultDataRefreshWindowDays'
|
||||||
|
property :default_schedule, as: 'defaultSchedule'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :help_url, as: 'helpUrl'
|
||||||
|
property :manual_runs_disabled, as: 'manualRunsDisabled'
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :parameters, as: 'parameters', class: Google::Apis::BigquerydatatransferV1::DataSourceParameter, decorator: Google::Apis::BigquerydatatransferV1::DataSourceParameter::Representation
|
||||||
|
|
||||||
|
collection :scopes, as: 'scopes'
|
||||||
|
property :status_update_deadline_seconds, as: 'statusUpdateDeadlineSeconds'
|
||||||
|
property :supports_custom_schedule, as: 'supportsCustomSchedule'
|
||||||
|
property :supports_multiple_transfers, as: 'supportsMultipleTransfers'
|
||||||
|
property :transfer_type, as: 'transferType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataSourceParameter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :allowed_values, as: 'allowedValues'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
collection :fields, as: 'fields', class: Google::Apis::BigquerydatatransferV1::DataSourceParameter, decorator: Google::Apis::BigquerydatatransferV1::DataSourceParameter::Representation
|
||||||
|
|
||||||
|
property :immutable, as: 'immutable'
|
||||||
|
property :max_value, as: 'maxValue'
|
||||||
|
property :min_value, as: 'minValue'
|
||||||
|
property :param_id, as: 'paramId'
|
||||||
|
property :recurse, as: 'recurse'
|
||||||
|
property :repeated, as: 'repeated'
|
||||||
|
property :required, as: 'required'
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :validation_description, as: 'validationDescription'
|
||||||
|
property :validation_help_url, as: 'validationHelpUrl'
|
||||||
|
property :validation_regex, as: 'validationRegex'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class IsEnabledRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class IsEnabledResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :enabled, as: 'enabled'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDataSourcesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :data_sources, as: 'dataSources', class: Google::Apis::BigquerydatatransferV1::DataSource, decorator: Google::Apis::BigquerydatatransferV1::DataSource::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::BigquerydatatransferV1::Location, decorator: Google::Apis::BigquerydatatransferV1::Location::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTransferConfigsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :transfer_configs, as: 'transferConfigs', class: Google::Apis::BigquerydatatransferV1::TransferConfig, decorator: Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTransferLogsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :transfer_messages, as: 'transferMessages', class: Google::Apis::BigquerydatatransferV1::TransferMessage, decorator: Google::Apis::BigquerydatatransferV1::TransferMessage::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTransferRunsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :transfer_runs, as: 'transferRuns', class: Google::Apis::BigquerydatatransferV1::TransferRun, decorator: Google::Apis::BigquerydatatransferV1::TransferRun::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :location_id, as: 'locationId'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ScheduleTransferRunsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :range_end_time, as: 'rangeEndTime'
|
||||||
|
property :range_start_time, as: 'rangeStartTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ScheduleTransferRunsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :created_runs, as: 'createdRuns', class: Google::Apis::BigquerydatatransferV1::TransferRun, decorator: Google::Apis::BigquerydatatransferV1::TransferRun::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SetEnabledRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :enabled, as: 'enabled'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TransferConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data_refresh_window_days, as: 'dataRefreshWindowDays'
|
||||||
|
property :data_source_id, as: 'dataSourceId'
|
||||||
|
property :dataset_region, as: 'datasetRegion'
|
||||||
|
property :destination_dataset_id, as: 'destinationDatasetId'
|
||||||
|
property :disabled, as: 'disabled'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :next_run_time, as: 'nextRunTime'
|
||||||
|
hash :params, as: 'params'
|
||||||
|
property :schedule, as: 'schedule'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
property :user_id, :numeric_string => true, as: 'userId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TransferMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :message_text, as: 'messageText'
|
||||||
|
property :message_time, as: 'messageTime'
|
||||||
|
property :severity, as: 'severity'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TransferRun
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data_source_id, as: 'dataSourceId'
|
||||||
|
property :dataset_region, as: 'datasetRegion'
|
||||||
|
property :destination_dataset_id, as: 'destinationDatasetId'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :params, as: 'params'
|
||||||
|
property :run_time, as: 'runTime'
|
||||||
|
property :schedule, as: 'schedule'
|
||||||
|
property :schedule_time, as: 'scheduleTime'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
property :user_id, :numeric_string => true, as: 'userId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20170613'
|
REVISION = '20170716'
|
||||||
|
|
||||||
# Manage your calendars
|
# Manage your calendars
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
|
@ -599,74 +599,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
|
||||||
class DeepLinkData
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `links`
|
|
||||||
# @return [Array<Google::Apis::CalendarV3::Link>]
|
|
||||||
attr_accessor :links
|
|
||||||
|
|
||||||
#
|
|
||||||
# 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)
|
|
||||||
@links = args[:links] if args.key?(:links)
|
|
||||||
@url = args[:url] if args.key?(:url)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class DisplayInfo
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `appIconUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :app_icon_url
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `appShortTitle`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :app_short_title
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `appTitle`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :app_title
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `linkShortTitle`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :link_short_title
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `linkTitle`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :link_title
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@app_icon_url = args[:app_icon_url] if args.key?(:app_icon_url)
|
|
||||||
@app_short_title = args[:app_short_title] if args.key?(:app_short_title)
|
|
||||||
@app_title = args[:app_title] if args.key?(:app_title)
|
|
||||||
@link_short_title = args[:link_short_title] if args.key?(:link_short_title)
|
|
||||||
@link_title = args[:link_title] if args.key?(:link_title)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
class Error
|
class Error
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -937,8 +869,10 @@ module Google
|
||||||
attr_accessor :summary
|
attr_accessor :summary
|
||||||
|
|
||||||
# Whether the event blocks time on the calendar. Optional. Possible values are:
|
# Whether the event blocks time on the calendar. Optional. Possible values are:
|
||||||
# - "opaque" - The event blocks time on the calendar. This is the default value.
|
# - "opaque" - Default value. The event does block time on the calendar. This is
|
||||||
# - "transparent" - The event does not block time on the calendar.
|
# equivalent to setting Show me as to Busy in the Calendar UI.
|
||||||
|
# - "transparent" - The event does not block time on the calendar. This is
|
||||||
|
# equivalent to setting Show me as to Available in the Calendar UI.
|
||||||
# Corresponds to the JSON property `transparency`
|
# Corresponds to the JSON property `transparency`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :transparency
|
attr_accessor :transparency
|
||||||
|
@ -1407,31 +1341,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
|
||||||
class EventHabitInstance
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Metadata specific to this instance.
|
|
||||||
# Corresponds to the JSON property `data`
|
|
||||||
# @return [Google::Apis::CalendarV3::HabitInstanceData]
|
|
||||||
attr_accessor :data
|
|
||||||
|
|
||||||
# Id of the habit this instance belongs to.
|
|
||||||
# Corresponds to the JSON property `parentId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :parent_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@data = args[:data] if args.key?(:data)
|
|
||||||
@parent_id = args[:parent_id] if args.key?(:parent_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
class EventReminder
|
class EventReminder
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1720,118 +1629,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
|
||||||
class HabitInstanceData
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `status`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :status
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `statusInferred`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :status_inferred
|
|
||||||
alias_method :status_inferred?, :status_inferred
|
|
||||||
|
|
||||||
#
|
|
||||||
# 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)
|
|
||||||
@status = args[:status] if args.key?(:status)
|
|
||||||
@status_inferred = args[:status_inferred] if args.key?(:status_inferred)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class LaunchInfo
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `appId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :app_id
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `installUrl`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :install_url
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `intentAction`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :intent_action
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `uri`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :uri
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@app_id = args[:app_id] if args.key?(:app_id)
|
|
||||||
@install_url = args[:install_url] if args.key?(:install_url)
|
|
||||||
@intent_action = args[:intent_action] if args.key?(:intent_action)
|
|
||||||
@uri = args[:uri] if args.key?(:uri)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class Link
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `applinkingSource`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :applinking_source
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `displayInfo`
|
|
||||||
# @return [Google::Apis::CalendarV3::DisplayInfo]
|
|
||||||
attr_accessor :display_info
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `launchInfo`
|
|
||||||
# @return [Google::Apis::CalendarV3::LaunchInfo]
|
|
||||||
attr_accessor :launch_info
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `platform`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :platform
|
|
||||||
|
|
||||||
#
|
|
||||||
# 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)
|
|
||||||
@applinking_source = args[:applinking_source] if args.key?(:applinking_source)
|
|
||||||
@display_info = args[:display_info] if args.key?(:display_info)
|
|
||||||
@launch_info = args[:launch_info] if args.key?(:launch_info)
|
|
||||||
@platform = args[:platform] if args.key?(:platform)
|
|
||||||
@url = args[:url] if args.key?(:url)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
class Setting
|
class Setting
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -88,18 +88,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class DeepLinkData
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DisplayInfo
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Error
|
class Error
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -166,12 +154,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class EventHabitInstance
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class EventReminder
|
class EventReminder
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -214,24 +196,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class HabitInstanceData
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class LaunchInfo
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Link
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Setting
|
class Setting
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -386,26 +350,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DeepLinkData
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :links, as: 'links', class: Google::Apis::CalendarV3::Link, decorator: Google::Apis::CalendarV3::Link::Representation
|
|
||||||
|
|
||||||
property :url, as: 'url'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DisplayInfo
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :app_icon_url, as: 'appIconUrl'
|
|
||||||
property :app_short_title, as: 'appShortTitle'
|
|
||||||
property :app_title, as: 'appTitle'
|
|
||||||
property :link_short_title, as: 'linkShortTitle'
|
|
||||||
property :link_title, as: 'linkTitle'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Error
|
class Error
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -567,15 +511,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class EventHabitInstance
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :data, as: 'data', class: Google::Apis::CalendarV3::HabitInstanceData, decorator: Google::Apis::CalendarV3::HabitInstanceData::Representation
|
|
||||||
|
|
||||||
property :parent_id, as: 'parentId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class EventReminder
|
class EventReminder
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -660,38 +595,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class HabitInstanceData
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :status, as: 'status'
|
|
||||||
property :status_inferred, as: 'statusInferred'
|
|
||||||
property :type, as: 'type'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class LaunchInfo
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :app_id, as: 'appId'
|
|
||||||
property :install_url, as: 'installUrl'
|
|
||||||
property :intent_action, as: 'intentAction'
|
|
||||||
property :uri, as: 'uri'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Link
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :applinking_source, as: 'applinkingSource'
|
|
||||||
property :display_info, as: 'displayInfo', class: Google::Apis::CalendarV3::DisplayInfo, decorator: Google::Apis::CalendarV3::DisplayInfo::Representation
|
|
||||||
|
|
||||||
property :launch_info, as: 'launchInfo', class: Google::Apis::CalendarV3::LaunchInfo, decorator: Google::Apis::CalendarV3::LaunchInfo::Representation
|
|
||||||
|
|
||||||
property :platform, as: 'platform'
|
|
||||||
property :url, as: 'url'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Setting
|
class Setting
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -1368,12 +1368,14 @@ module Google
|
||||||
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
||||||
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
||||||
# 00Z. Milliseconds may be provided but will be ignored.
|
# 00Z. Milliseconds may be provided but will be ignored. If timeMin is set,
|
||||||
|
# timeMax must be greater than timeMin.
|
||||||
# @param [DateTime] time_min
|
# @param [DateTime] time_min
|
||||||
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
||||||
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
||||||
# 00Z. Milliseconds may be provided but will be ignored.
|
# 00Z. Milliseconds may be provided but will be ignored. If timeMax is set,
|
||||||
|
# timeMin must be smaller than timeMax.
|
||||||
# @param [String] time_zone
|
# @param [String] time_zone
|
||||||
# Time zone used in the response. Optional. The default is the time zone of the
|
# Time zone used in the response. Optional. The default is the time zone of the
|
||||||
# calendar.
|
# calendar.
|
||||||
|
@ -1726,12 +1728,14 @@ module Google
|
||||||
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
||||||
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
||||||
# 00Z. Milliseconds may be provided but will be ignored.
|
# 00Z. Milliseconds may be provided but will be ignored. If timeMin is set,
|
||||||
|
# timeMax must be greater than timeMin.
|
||||||
# @param [DateTime] time_min
|
# @param [DateTime] time_min
|
||||||
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
||||||
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
||||||
# 00Z. Milliseconds may be provided but will be ignored.
|
# 00Z. Milliseconds may be provided but will be ignored. If timeMax is set,
|
||||||
|
# timeMin must be smaller than timeMax.
|
||||||
# @param [String] time_zone
|
# @param [String] time_zone
|
||||||
# Time zone used in the response. Optional. The default is the time zone of the
|
# Time zone used in the response. Optional. The default is the time zone of the
|
||||||
# calendar.
|
# calendar.
|
||||||
|
|
|
@ -25,19 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/classroom/
|
# @see https://developers.google.com/classroom/
|
||||||
module ClassroomV1
|
module ClassroomV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170710'
|
REVISION = '20170803'
|
||||||
|
|
||||||
# Manage your course work and view your grades in Google Classroom
|
|
||||||
AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me'
|
|
||||||
|
|
||||||
# Manage your Google Classroom class rosters
|
|
||||||
AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'
|
|
||||||
|
|
||||||
# View course work and grades for students in the Google Classroom classes you teach or administer
|
|
||||||
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.students.readonly'
|
|
||||||
|
|
||||||
# View guardians for students in your Google Classroom classes
|
|
||||||
AUTH_CLASSROOM_GUARDIANLINKS_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly'
|
|
||||||
|
|
||||||
# Manage your Google Classroom classes
|
# Manage your Google Classroom classes
|
||||||
AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses'
|
AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses'
|
||||||
|
@ -45,32 +33,44 @@ module Google
|
||||||
# View your Google Classroom classes
|
# View your Google Classroom classes
|
||||||
AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly'
|
AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly'
|
||||||
|
|
||||||
# View your Google Classroom class rosters
|
# Manage your course work and view your grades in Google Classroom
|
||||||
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
|
AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me'
|
||||||
|
|
||||||
# View the profile photos of people in your classes
|
|
||||||
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
|
|
||||||
|
|
||||||
# View and manage guardians for students in your Google Classroom classes
|
|
||||||
AUTH_CLASSROOM_GUARDIANLINKS_STUDENTS = 'https://www.googleapis.com/auth/classroom.guardianlinks.students'
|
|
||||||
|
|
||||||
# View your course work and grades in Google Classroom
|
|
||||||
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly'
|
|
||||||
|
|
||||||
# View your Google Classroom guardians
|
|
||||||
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'
|
|
||||||
|
|
||||||
# View course work and grades for students in the Google Classroom classes you teach or administer
|
|
||||||
AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
|
|
||||||
|
|
||||||
# Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
|
|
||||||
AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students'
|
|
||||||
|
|
||||||
# View your course work and grades in Google Classroom
|
# View your course work and grades in Google Classroom
|
||||||
AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly'
|
AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly'
|
||||||
|
|
||||||
|
# Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
|
||||||
|
AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students'
|
||||||
|
|
||||||
|
# View course work and grades for students in the Google Classroom classes you teach or administer
|
||||||
|
AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
|
||||||
|
|
||||||
|
# View your Google Classroom guardians
|
||||||
|
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'
|
||||||
|
|
||||||
|
# View and manage guardians for students in your Google Classroom classes
|
||||||
|
AUTH_CLASSROOM_GUARDIANLINKS_STUDENTS = 'https://www.googleapis.com/auth/classroom.guardianlinks.students'
|
||||||
|
|
||||||
|
# View guardians for students in your Google Classroom classes
|
||||||
|
AUTH_CLASSROOM_GUARDIANLINKS_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly'
|
||||||
|
|
||||||
# View the email addresses of people in your classes
|
# View the email addresses of people in your classes
|
||||||
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
|
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
|
||||||
|
|
||||||
|
# View the profile photos of people in your classes
|
||||||
|
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
|
||||||
|
|
||||||
|
# Manage your Google Classroom class rosters
|
||||||
|
AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'
|
||||||
|
|
||||||
|
# View your Google Classroom class rosters
|
||||||
|
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
|
||||||
|
|
||||||
|
# View your course work and grades in Google Classroom
|
||||||
|
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly'
|
||||||
|
|
||||||
|
# View course work and grades for students in the Google Classroom classes you teach or administer
|
||||||
|
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.students.readonly'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/billing/
|
# @see https://cloud.google.com/billing/
|
||||||
module CloudbillingV1
|
module CloudbillingV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170524'
|
REVISION = '20170813'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -22,41 +22,26 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudbillingV1
|
module CloudbillingV1
|
||||||
|
|
||||||
# Encapsulation of billing information for a Cloud Console project. A project
|
# Represents the aggregation level and interval for pricing of a single SKU.
|
||||||
# has at most one associated billing account at a time (but a billing account
|
class AggregationInfo
|
||||||
# can be assigned to multiple projects).
|
|
||||||
class ProjectBillingInfo
|
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# True if the project is associated with an open billing account, to which
|
# The number of intervals to aggregate over.
|
||||||
# usage on the project is charged. False if the project is associated with a
|
# Example: If aggregation_level is "DAILY" and aggregation_count is 14,
|
||||||
# closed billing account, or no billing account at all, and therefore cannot
|
# aggregation will be over 14 days.
|
||||||
# use paid services. This field is read-only.
|
# Corresponds to the JSON property `aggregationCount`
|
||||||
# Corresponds to the JSON property `billingEnabled`
|
# @return [Fixnum]
|
||||||
# @return [Boolean]
|
attr_accessor :aggregation_count
|
||||||
attr_accessor :billing_enabled
|
|
||||||
alias_method :billing_enabled?, :billing_enabled
|
|
||||||
|
|
||||||
# The resource name for the `ProjectBillingInfo`; has the form
|
#
|
||||||
# `projects/`project_id`/billingInfo`. For example, the resource name for the
|
# Corresponds to the JSON property `aggregationInterval`
|
||||||
# billing information for project `tokyo-rain-123` would be
|
|
||||||
# `projects/tokyo-rain-123/billingInfo`. This field is read-only.
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :aggregation_interval
|
||||||
|
|
||||||
# The ID of the project that this `ProjectBillingInfo` represents, such as
|
#
|
||||||
# `tokyo-rain-123`. This is a convenience field so that you don't need to
|
# Corresponds to the JSON property `aggregationLevel`
|
||||||
# parse the `name` field to obtain a project ID. This field is read-only.
|
|
||||||
# Corresponds to the JSON property `projectId`
|
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :project_id
|
attr_accessor :aggregation_level
|
||||||
|
|
||||||
# The resource name of the billing account associated with the project, if
|
|
||||||
# any. For example, `billingAccounts/012345-567890-ABCDEF`.
|
|
||||||
# Corresponds to the JSON property `billingAccountName`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :billing_account_name
|
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -64,10 +49,116 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@billing_enabled = args[:billing_enabled] if args.key?(:billing_enabled)
|
@aggregation_count = args[:aggregation_count] if args.key?(:aggregation_count)
|
||||||
|
@aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval)
|
||||||
|
@aggregation_level = args[:aggregation_level] if args.key?(:aggregation_level)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A billing account in [Google Cloud
|
||||||
|
# Console](https://console.cloud.google.com/). You can assign a billing account
|
||||||
|
# to one or more projects.
|
||||||
|
class BillingAccount
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The display name given to the billing account, such as `My Billing
|
||||||
|
# Account`. This name is displayed in the Google Cloud Console.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# The resource name of the billing account. The resource name has the form
|
||||||
|
# `billingAccounts/`billing_account_id``. For example,
|
||||||
|
# `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
||||||
|
# billing account `012345-567890-ABCDEF`.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# True if the billing account is open, and will therefore be charged for any
|
||||||
|
# usage on associated projects. False if the billing account is closed, and
|
||||||
|
# therefore projects associated with it will be unable to use paid services.
|
||||||
|
# Corresponds to the JSON property `open`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :open
|
||||||
|
alias_method :open?, :open
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@project_id = args[:project_id] if args.key?(:project_id)
|
@open = args[:open] if args.key?(:open)
|
||||||
@billing_account_name = args[:billing_account_name] if args.key?(:billing_account_name)
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents the category hierarchy of a SKU.
|
||||||
|
class Category
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The type of product the SKU refers to.
|
||||||
|
# Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
|
||||||
|
# Corresponds to the JSON property `resourceFamily`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :resource_family
|
||||||
|
|
||||||
|
# A group classification for related SKUs.
|
||||||
|
# Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
|
||||||
|
# Corresponds to the JSON property `resourceGroup`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :resource_group
|
||||||
|
|
||||||
|
# The display name of the service this SKU belongs to.
|
||||||
|
# Corresponds to the JSON property `serviceDisplayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service_display_name
|
||||||
|
|
||||||
|
# Represents how the SKU is consumed.
|
||||||
|
# Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
|
||||||
|
# Corresponds to the JSON property `usageType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :usage_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@resource_family = args[:resource_family] if args.key?(:resource_family)
|
||||||
|
@resource_group = args[:resource_group] if args.key?(:resource_group)
|
||||||
|
@service_display_name = args[:service_display_name] if args.key?(:service_display_name)
|
||||||
|
@usage_type = args[:usage_type] if args.key?(:usage_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for `ListBillingAccounts`.
|
||||||
|
class ListBillingAccountsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of billing accounts.
|
||||||
|
# Corresponds to the JSON property `billingAccounts`
|
||||||
|
# @return [Array<Google::Apis::CloudbillingV1::BillingAccount>]
|
||||||
|
attr_accessor :billing_accounts
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results. To retrieve the next page,
|
||||||
|
# call `ListBillingAccounts` again with the `page_token` field set to this
|
||||||
|
# value. This field is empty if there are no more results to retrieve.
|
||||||
|
# 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)
|
||||||
|
@billing_accounts = args[:billing_accounts] if args.key?(:billing_accounts)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -99,21 +190,21 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Response message for `ListBillingAccounts`.
|
# Response message for `ListServices`.
|
||||||
class ListBillingAccountsResponse
|
class ListServicesResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# A token to retrieve the next page of results. To retrieve the next page,
|
# A token to retrieve the next page of results. To retrieve the next page,
|
||||||
# call `ListBillingAccounts` again with the `page_token` field set to this
|
# call `ListServices` again with the `page_token` field set to this
|
||||||
# value. This field is empty if there are no more results to retrieve.
|
# value. This field is empty if there are no more results to retrieve.
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# A list of billing accounts.
|
# A list of services.
|
||||||
# Corresponds to the JSON property `billingAccounts`
|
# Corresponds to the JSON property `services`
|
||||||
# @return [Array<Google::Apis::CloudbillingV1::BillingAccount>]
|
# @return [Array<Google::Apis::CloudbillingV1::Service>]
|
||||||
attr_accessor :billing_accounts
|
attr_accessor :services
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
|
@ -122,38 +213,276 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
@billing_accounts = args[:billing_accounts] if args.key?(:billing_accounts)
|
@services = args[:services] if args.key?(:services)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A billing account in [Google Cloud
|
# Response message for `ListSkus`.
|
||||||
# Console](https://console.cloud.google.com/). You can assign a billing account
|
class ListSkusResponse
|
||||||
# to one or more projects.
|
|
||||||
class BillingAccount
|
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The display name given to the billing account, such as `My Billing
|
# A token to retrieve the next page of results. To retrieve the next page,
|
||||||
# Account`. This name is displayed in the Google Cloud Console.
|
# call `ListSkus` again with the `page_token` field set to this
|
||||||
|
# value. This field is empty if there are no more results to retrieve.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The list of public SKUs of the given service.
|
||||||
|
# Corresponds to the JSON property `skus`
|
||||||
|
# @return [Array<Google::Apis::CloudbillingV1::Sku>]
|
||||||
|
attr_accessor :skus
|
||||||
|
|
||||||
|
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)
|
||||||
|
@skus = args[:skus] if args.key?(:skus)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents an amount of money with its currency type.
|
||||||
|
class Money
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The 3-letter currency code defined in ISO 4217.
|
||||||
|
# Corresponds to the JSON property `currencyCode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :currency_code
|
||||||
|
|
||||||
|
# Number of nano (10^-9) units of the amount.
|
||||||
|
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
||||||
|
# If `units` is positive, `nanos` must be positive or zero.
|
||||||
|
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
||||||
|
# If `units` is negative, `nanos` must be negative or zero.
|
||||||
|
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
||||||
|
# Corresponds to the JSON property `nanos`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :nanos
|
||||||
|
|
||||||
|
# The whole units of the amount.
|
||||||
|
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
||||||
|
# Corresponds to the JSON property `units`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :units
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
||||||
|
@nanos = args[:nanos] if args.key?(:nanos)
|
||||||
|
@units = args[:units] if args.key?(:units)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Expresses a mathematical pricing formula. For Example:-
|
||||||
|
# `usage_unit: GBy`
|
||||||
|
# `tiered_rates:`
|
||||||
|
# `[start_usage_amount: 20, unit_price: $10]`
|
||||||
|
# `[start_usage_amount: 100, unit_price: $5]`
|
||||||
|
# The above expresses a pricing formula where the first 20GB is free, the
|
||||||
|
# next 80GB is priced at $10 per GB followed by $5 per GB for additional
|
||||||
|
# usage.
|
||||||
|
class PricingExpression
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The base unit for the SKU which is the unit used in usage exports.
|
||||||
|
# Example: "By"
|
||||||
|
# Corresponds to the JSON property `baseUnit`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :base_unit
|
||||||
|
|
||||||
|
# Conversion factor for converting from price per usage_unit to price per
|
||||||
|
# base_unit, and start_usage_amount to start_usage_amount in base_unit.
|
||||||
|
# unit_price / base_unit_conversion_factor = price per base_unit.
|
||||||
|
# start_usage_amount * base_unit_conversion_factor = start_usage_amount in
|
||||||
|
# base_unit.
|
||||||
|
# Corresponds to the JSON property `baseUnitConversionFactor`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :base_unit_conversion_factor
|
||||||
|
|
||||||
|
# The base unit in human readable form.
|
||||||
|
# Example: "byte".
|
||||||
|
# Corresponds to the JSON property `baseUnitDescription`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :base_unit_description
|
||||||
|
|
||||||
|
# The recommended quantity of units for displaying pricing info. When
|
||||||
|
# displaying pricing info it is recommended to display:
|
||||||
|
# (unit_price * display_quantity) per display_quantity usage_unit.
|
||||||
|
# This field does not affect the pricing formula and is for display purposes
|
||||||
|
# only.
|
||||||
|
# Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
|
||||||
|
# the display_quantity is "1000" then the recommended way of displaying the
|
||||||
|
# pricing info is "0.10 USD per 1000 GB"
|
||||||
|
# Corresponds to the JSON property `displayQuantity`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :display_quantity
|
||||||
|
|
||||||
|
# The list of tiered rates for this pricing. The total cost is computed by
|
||||||
|
# applying each of the tiered rates on usage. This repeated list is sorted
|
||||||
|
# by ascending order of start_usage_amount.
|
||||||
|
# Corresponds to the JSON property `tieredRates`
|
||||||
|
# @return [Array<Google::Apis::CloudbillingV1::TierRate>]
|
||||||
|
attr_accessor :tiered_rates
|
||||||
|
|
||||||
|
# The short hand for unit of usage this pricing is specified in.
|
||||||
|
# Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
|
||||||
|
# Corresponds to the JSON property `usageUnit`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :usage_unit
|
||||||
|
|
||||||
|
# The unit of usage in human readable form.
|
||||||
|
# Example: "gibi byte".
|
||||||
|
# Corresponds to the JSON property `usageUnitDescription`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :usage_unit_description
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@base_unit = args[:base_unit] if args.key?(:base_unit)
|
||||||
|
@base_unit_conversion_factor = args[:base_unit_conversion_factor] if args.key?(:base_unit_conversion_factor)
|
||||||
|
@base_unit_description = args[:base_unit_description] if args.key?(:base_unit_description)
|
||||||
|
@display_quantity = args[:display_quantity] if args.key?(:display_quantity)
|
||||||
|
@tiered_rates = args[:tiered_rates] if args.key?(:tiered_rates)
|
||||||
|
@usage_unit = args[:usage_unit] if args.key?(:usage_unit)
|
||||||
|
@usage_unit_description = args[:usage_unit_description] if args.key?(:usage_unit_description)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents the pricing information for a SKU at a single point of time.
|
||||||
|
class PricingInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents the aggregation level and interval for pricing of a single SKU.
|
||||||
|
# Corresponds to the JSON property `aggregationInfo`
|
||||||
|
# @return [Google::Apis::CloudbillingV1::AggregationInfo]
|
||||||
|
attr_accessor :aggregation_info
|
||||||
|
|
||||||
|
# Conversion rate for currency conversion, from USD to the currency specified
|
||||||
|
# in the request. If the currency is not specified this defaults to 1.0.
|
||||||
|
# Example: USD * currency_conversion_rate = JPY
|
||||||
|
# Corresponds to the JSON property `currencyConversionRate`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :currency_conversion_rate
|
||||||
|
|
||||||
|
# The timestamp from which this pricing was effective.
|
||||||
|
# Corresponds to the JSON property `effectiveTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :effective_time
|
||||||
|
|
||||||
|
# Expresses a mathematical pricing formula. For Example:-
|
||||||
|
# `usage_unit: GBy`
|
||||||
|
# `tiered_rates:`
|
||||||
|
# `[start_usage_amount: 20, unit_price: $10]`
|
||||||
|
# `[start_usage_amount: 100, unit_price: $5]`
|
||||||
|
# The above expresses a pricing formula where the first 20GB is free, the
|
||||||
|
# next 80GB is priced at $10 per GB followed by $5 per GB for additional
|
||||||
|
# usage.
|
||||||
|
# Corresponds to the JSON property `pricingExpression`
|
||||||
|
# @return [Google::Apis::CloudbillingV1::PricingExpression]
|
||||||
|
attr_accessor :pricing_expression
|
||||||
|
|
||||||
|
# An optional human readable summary of the pricing information, has a
|
||||||
|
# maximum length of 256 characters.
|
||||||
|
# Corresponds to the JSON property `summary`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :summary
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@aggregation_info = args[:aggregation_info] if args.key?(:aggregation_info)
|
||||||
|
@currency_conversion_rate = args[:currency_conversion_rate] if args.key?(:currency_conversion_rate)
|
||||||
|
@effective_time = args[:effective_time] if args.key?(:effective_time)
|
||||||
|
@pricing_expression = args[:pricing_expression] if args.key?(:pricing_expression)
|
||||||
|
@summary = args[:summary] if args.key?(:summary)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Encapsulation of billing information for a Cloud Console project. A project
|
||||||
|
# has at most one associated billing account at a time (but a billing account
|
||||||
|
# can be assigned to multiple projects).
|
||||||
|
class ProjectBillingInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The resource name of the billing account associated with the project, if
|
||||||
|
# any. For example, `billingAccounts/012345-567890-ABCDEF`.
|
||||||
|
# Corresponds to the JSON property `billingAccountName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :billing_account_name
|
||||||
|
|
||||||
|
# True if the project is associated with an open billing account, to which
|
||||||
|
# usage on the project is charged. False if the project is associated with a
|
||||||
|
# closed billing account, or no billing account at all, and therefore cannot
|
||||||
|
# use paid services. This field is read-only.
|
||||||
|
# Corresponds to the JSON property `billingEnabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :billing_enabled
|
||||||
|
alias_method :billing_enabled?, :billing_enabled
|
||||||
|
|
||||||
|
# The resource name for the `ProjectBillingInfo`; has the form
|
||||||
|
# `projects/`project_id`/billingInfo`. For example, the resource name for the
|
||||||
|
# billing information for project `tokyo-rain-123` would be
|
||||||
|
# `projects/tokyo-rain-123/billingInfo`. This field is read-only.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The ID of the project that this `ProjectBillingInfo` represents, such as
|
||||||
|
# `tokyo-rain-123`. This is a convenience field so that you don't need to
|
||||||
|
# parse the `name` field to obtain a project ID. This field is read-only.
|
||||||
|
# Corresponds to the JSON property `projectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :project_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@billing_account_name = args[:billing_account_name] if args.key?(:billing_account_name)
|
||||||
|
@billing_enabled = args[:billing_enabled] if args.key?(:billing_enabled)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Encapsulates a single service in Google Cloud Platform.
|
||||||
|
class Service
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A human readable display name for this service.
|
||||||
# Corresponds to the JSON property `displayName`
|
# Corresponds to the JSON property `displayName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
|
||||||
# True if the billing account is open, and will therefore be charged for any
|
# The resource name for the service.
|
||||||
# usage on associated projects. False if the billing account is closed, and
|
# Example: "services/DA34-426B-A397"
|
||||||
# therefore projects associated with it will be unable to use paid services.
|
|
||||||
# Corresponds to the JSON property `open`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :open
|
|
||||||
alias_method :open?, :open
|
|
||||||
|
|
||||||
# The resource name of the billing account. The resource name has the form
|
|
||||||
# `billingAccounts/`billing_account_id``. For example,
|
|
||||||
# `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
|
||||||
# billing account `012345-567890-ABCDEF`.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The identifier for the service.
|
||||||
|
# Example: "DA34-426B-A397"
|
||||||
|
# Corresponds to the JSON property `serviceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service_id
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -161,8 +490,96 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@display_name = args[:display_name] if args.key?(:display_name)
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
@open = args[:open] if args.key?(:open)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@service_id = args[:service_id] if args.key?(:service_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Encapsulates a single SKU in Google Cloud Platform
|
||||||
|
class Sku
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents the category hierarchy of a SKU.
|
||||||
|
# Corresponds to the JSON property `category`
|
||||||
|
# @return [Google::Apis::CloudbillingV1::Category]
|
||||||
|
attr_accessor :category
|
||||||
|
|
||||||
|
# A human readable description of the SKU, has a maximum length of 256
|
||||||
|
# characters.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# The resource name for the SKU.
|
||||||
|
# Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# A timeline of pricing info for this SKU in chronological order.
|
||||||
|
# Corresponds to the JSON property `pricingInfo`
|
||||||
|
# @return [Array<Google::Apis::CloudbillingV1::PricingInfo>]
|
||||||
|
attr_accessor :pricing_info
|
||||||
|
|
||||||
|
# Identifies the service provider.
|
||||||
|
# This is 'Google' for first party services in Google Cloud Platform.
|
||||||
|
# Corresponds to the JSON property `serviceProviderName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service_provider_name
|
||||||
|
|
||||||
|
# List of service regions this SKU is offered at.
|
||||||
|
# Example: "asia-east1"
|
||||||
|
# Service regions can be found at https://cloud.google.com/about/locations/
|
||||||
|
# Corresponds to the JSON property `serviceRegions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :service_regions
|
||||||
|
|
||||||
|
# The identifier for the SKU.
|
||||||
|
# Example: "AA95-CD31-42FE"
|
||||||
|
# Corresponds to the JSON property `skuId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :sku_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@category = args[:category] if args.key?(:category)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@pricing_info = args[:pricing_info] if args.key?(:pricing_info)
|
||||||
|
@service_provider_name = args[:service_provider_name] if args.key?(:service_provider_name)
|
||||||
|
@service_regions = args[:service_regions] if args.key?(:service_regions)
|
||||||
|
@sku_id = args[:sku_id] if args.key?(:sku_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The price rate indicating starting usage and its corresponding price.
|
||||||
|
class TierRate
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Usage is priced at this rate only after this amount.
|
||||||
|
# Example: start_usage_amount of 10 indicates that the usage will be priced
|
||||||
|
# at the unit_price after the first 10 usage_units.
|
||||||
|
# Corresponds to the JSON property `startUsageAmount`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :start_usage_amount
|
||||||
|
|
||||||
|
# Represents an amount of money with its currency type.
|
||||||
|
# Corresponds to the JSON property `unitPrice`
|
||||||
|
# @return [Google::Apis::CloudbillingV1::Money]
|
||||||
|
attr_accessor :unit_price
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@start_usage_amount = args[:start_usage_amount] if args.key?(:start_usage_amount)
|
||||||
|
@unit_price = args[:unit_price] if args.key?(:unit_price)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,19 +22,7 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudbillingV1
|
module CloudbillingV1
|
||||||
|
|
||||||
class ProjectBillingInfo
|
class AggregationInfo
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListProjectBillingInfoResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListBillingAccountsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -46,13 +34,112 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Category
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBillingAccountsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListProjectBillingInfoResponse
|
||||||
|
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 ListSkusResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Money
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PricingExpression
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PricingInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ProjectBillingInfo
|
class ProjectBillingInfo
|
||||||
|
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 Sku
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TierRate
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AggregationInfo
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :billing_enabled, as: 'billingEnabled'
|
property :aggregation_count, as: 'aggregationCount'
|
||||||
|
property :aggregation_interval, as: 'aggregationInterval'
|
||||||
|
property :aggregation_level, as: 'aggregationLevel'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BillingAccount
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :project_id, as: 'projectId'
|
property :open, as: 'open'
|
||||||
property :billing_account_name, as: 'billingAccountName'
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Category
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :resource_family, as: 'resourceFamily'
|
||||||
|
property :resource_group, as: 'resourceGroup'
|
||||||
|
property :service_display_name, as: 'serviceDisplayName'
|
||||||
|
property :usage_type, as: 'usageType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBillingAccountsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :billing_accounts, as: 'billingAccounts', class: Google::Apis::CloudbillingV1::BillingAccount, decorator: Google::Apis::CloudbillingV1::BillingAccount::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -65,21 +152,100 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListBillingAccountsResponse
|
class ListServicesResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :next_page_token, as: 'nextPageToken'
|
||||||
collection :billing_accounts, as: 'billingAccounts', class: Google::Apis::CloudbillingV1::BillingAccount, decorator: Google::Apis::CloudbillingV1::BillingAccount::Representation
|
collection :services, as: 'services', class: Google::Apis::CloudbillingV1::Service, decorator: Google::Apis::CloudbillingV1::Service::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BillingAccount
|
class ListSkusResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :skus, as: 'skus', class: Google::Apis::CloudbillingV1::Sku, decorator: Google::Apis::CloudbillingV1::Sku::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Money
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :currency_code, as: 'currencyCode'
|
||||||
|
property :nanos, as: 'nanos'
|
||||||
|
property :units, :numeric_string => true, as: 'units'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PricingExpression
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :base_unit, as: 'baseUnit'
|
||||||
|
property :base_unit_conversion_factor, as: 'baseUnitConversionFactor'
|
||||||
|
property :base_unit_description, as: 'baseUnitDescription'
|
||||||
|
property :display_quantity, as: 'displayQuantity'
|
||||||
|
collection :tiered_rates, as: 'tieredRates', class: Google::Apis::CloudbillingV1::TierRate, decorator: Google::Apis::CloudbillingV1::TierRate::Representation
|
||||||
|
|
||||||
|
property :usage_unit, as: 'usageUnit'
|
||||||
|
property :usage_unit_description, as: 'usageUnitDescription'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PricingInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :aggregation_info, as: 'aggregationInfo', class: Google::Apis::CloudbillingV1::AggregationInfo, decorator: Google::Apis::CloudbillingV1::AggregationInfo::Representation
|
||||||
|
|
||||||
|
property :currency_conversion_rate, as: 'currencyConversionRate'
|
||||||
|
property :effective_time, as: 'effectiveTime'
|
||||||
|
property :pricing_expression, as: 'pricingExpression', class: Google::Apis::CloudbillingV1::PricingExpression, decorator: Google::Apis::CloudbillingV1::PricingExpression::Representation
|
||||||
|
|
||||||
|
property :summary, as: 'summary'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectBillingInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :billing_account_name, as: 'billingAccountName'
|
||||||
|
property :billing_enabled, as: 'billingEnabled'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Service
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :display_name, as: 'displayName'
|
property :display_name, as: 'displayName'
|
||||||
property :open, as: 'open'
|
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :service_id, as: 'serviceId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Sku
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :category, as: 'category', class: Google::Apis::CloudbillingV1::Category, decorator: Google::Apis::CloudbillingV1::Category::Representation
|
||||||
|
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :pricing_info, as: 'pricingInfo', class: Google::Apis::CloudbillingV1::PricingInfo, decorator: Google::Apis::CloudbillingV1::PricingInfo::Representation
|
||||||
|
|
||||||
|
property :service_provider_name, as: 'serviceProviderName'
|
||||||
|
collection :service_regions, as: 'serviceRegions'
|
||||||
|
property :sku_id, as: 'skuId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TierRate
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :start_usage_amount, as: 'startUsageAmount'
|
||||||
|
property :unit_price, as: 'unitPrice', class: Google::Apis::CloudbillingV1::Money, decorator: Google::Apis::CloudbillingV1::Money::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,6 +48,152 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Gets information about a billing account. The current authenticated user
|
||||||
|
# must be an [owner of the billing
|
||||||
|
# account](https://support.google.com/cloud/answer/4430947).
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the billing account to retrieve. For example,
|
||||||
|
# `billingAccounts/012345-567890-ABCDEF`.
|
||||||
|
# @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::CloudbillingV1::BillingAccount] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
||||||
|
#
|
||||||
|
# @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_billing_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
||||||
|
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 billing accounts that the current authenticated user
|
||||||
|
# [owns](https://support.google.com/cloud/answer/4430947).
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. The maximum page size is 100; this is also the
|
||||||
|
# default.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results to return. This should be a
|
||||||
|
# `next_page_token` value returned from a previous `ListBillingAccounts`
|
||||||
|
# call. If unspecified, the first page of results is 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::CloudbillingV1::ListBillingAccountsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse]
|
||||||
|
#
|
||||||
|
# @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_billing_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/billingAccounts', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# Lists the projects associated with a billing account. The current
|
||||||
|
# authenticated user must be an [owner of the billing
|
||||||
|
# account](https://support.google.com/cloud/answer/4430947).
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the billing account associated with the projects that
|
||||||
|
# you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. The maximum page size is 100; this is also the
|
||||||
|
# default.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results to be returned. This should be a
|
||||||
|
# `next_page_token` value returned from a previous `ListProjectBillingInfo`
|
||||||
|
# call. If unspecified, the first page of results is 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::CloudbillingV1::ListProjectBillingInfoResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse]
|
||||||
|
#
|
||||||
|
# @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_billing_account_projects(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/projects', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse
|
||||||
|
command.params['name'] = name unless name.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 billing information for a project. The current authenticated user
|
||||||
|
# must have [permission to view the
|
||||||
|
# project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
||||||
|
# ).
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the project for which billing information is
|
||||||
|
# retrieved. For example, `projects/tokyo-rain-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::CloudbillingV1::ProjectBillingInfo] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbillingV1::ProjectBillingInfo]
|
||||||
|
#
|
||||||
|
# @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_billing_info(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/billingInfo', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo
|
||||||
|
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
|
||||||
|
|
||||||
# Sets or updates the billing account associated with a project. You specify
|
# Sets or updates the billing account associated with a project. You specify
|
||||||
# the new billing account by setting the `billing_account_name` in the
|
# the new billing account by setting the `billing_account_name` in the
|
||||||
# `ProjectBillingInfo` resource to the resource name of a billing account.
|
# `ProjectBillingInfo` resource to the resource name of a billing account.
|
||||||
|
@ -79,11 +225,11 @@ module Google
|
||||||
# The resource name of the project associated with the billing information
|
# The resource name of the project associated with the billing information
|
||||||
# that you want to update. For example, `projects/tokyo-rain-123`.
|
# that you want to update. For example, `projects/tokyo-rain-123`.
|
||||||
# @param [Google::Apis::CloudbillingV1::ProjectBillingInfo] project_billing_info_object
|
# @param [Google::Apis::CloudbillingV1::ProjectBillingInfo] project_billing_info_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -96,161 +242,108 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_project_billing_info(name, project_billing_info_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
def update_project_billing_info(name, project_billing_info_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:put, 'v1/{+name}/billingInfo', options)
|
command = make_simple_command(:put, 'v1/{+name}/billingInfo', options)
|
||||||
command.request_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
command.request_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
||||||
command.request_object = project_billing_info_object
|
command.request_object = project_billing_info_object
|
||||||
command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
||||||
command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo
|
command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo
|
||||||
command.params['name'] = name unless name.nil?
|
command.params['name'] = name unless name.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets the billing information for a project. The current authenticated user
|
# Lists all public cloud services.
|
||||||
# must have [permission to view the
|
|
||||||
# project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
|
||||||
# ).
|
|
||||||
# @param [String] name
|
|
||||||
# The resource name of the project for which billing information is
|
|
||||||
# retrieved. For example, `projects/tokyo-rain-123`.
|
|
||||||
# @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::CloudbillingV1::ProjectBillingInfo] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbillingV1::ProjectBillingInfo]
|
|
||||||
#
|
|
||||||
# @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_billing_info(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/{+name}/billingInfo', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbillingV1::ProjectBillingInfo::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbillingV1::ProjectBillingInfo
|
|
||||||
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
|
|
||||||
|
|
||||||
# Gets information about a billing account. The current authenticated user
|
|
||||||
# must be an [owner of the billing
|
|
||||||
# account](https://support.google.com/cloud/answer/4430947).
|
|
||||||
# @param [String] name
|
|
||||||
# The resource name of the billing account to retrieve. For example,
|
|
||||||
# `billingAccounts/012345-567890-ABCDEF`.
|
|
||||||
# @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::CloudbillingV1::BillingAccount] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbillingV1::BillingAccount]
|
|
||||||
#
|
|
||||||
# @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_billing_account(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbillingV1::BillingAccount::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbillingV1::BillingAccount
|
|
||||||
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 the billing accounts that the current authenticated user
|
|
||||||
# [owns](https://support.google.com/cloud/answer/4430947).
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Requested page size. The maximum page size is 100; this is also the
|
# Requested page size. Defaults to 5000.
|
||||||
# default.
|
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# A token identifying a page of results to return. This should be a
|
# A token identifying a page of results to return. This should be a
|
||||||
# `next_page_token` value returned from a previous `ListBillingAccounts`
|
# `next_page_token` value returned from a previous `ListServices`
|
||||||
# call. If unspecified, the first page of results is returned.
|
# call. If unspecified, the first page of results is returned.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
# @yield [result, err] Result & error if block supplied
|
# @yield [result, err] Result & error if block supplied
|
||||||
# @yieldparam result [Google::Apis::CloudbillingV1::ListBillingAccountsResponse] parsed result object
|
# @yieldparam result [Google::Apis::CloudbillingV1::ListServicesResponse] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::CloudbillingV1::ListBillingAccountsResponse]
|
# @return [Google::Apis::CloudbillingV1::ListServicesResponse]
|
||||||
#
|
#
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_billing_accounts(page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
def list_services(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/billingAccounts', options)
|
command = make_simple_command(:get, 'v1/services', options)
|
||||||
command.response_representation = Google::Apis::CloudbillingV1::ListBillingAccountsResponse::Representation
|
command.response_representation = Google::Apis::CloudbillingV1::ListServicesResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudbillingV1::ListBillingAccountsResponse
|
command.response_class = Google::Apis::CloudbillingV1::ListServicesResponse
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists the projects associated with a billing account. The current
|
# Lists all publicly available SKUs for a given cloud service.
|
||||||
# authenticated user must be an [owner of the billing
|
# @param [String] parent
|
||||||
# account](https://support.google.com/cloud/answer/4430947).
|
# The name of the service.
|
||||||
# @param [String] name
|
# Example: "services/DA34-426B-A397"
|
||||||
# The resource name of the billing account associated with the projects that
|
# @param [String] currency_code
|
||||||
# you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
|
# The ISO 4217 currency code for the pricing info in the response proto.
|
||||||
|
# Will use the conversion rate as of start_time.
|
||||||
|
# Optional. If not specified USD will be used.
|
||||||
|
# @param [String] end_time
|
||||||
|
# Optional exclusive end time of the time range for which the pricing
|
||||||
|
# versions will be returned. Timestamps in the future are not allowed.
|
||||||
|
# Maximum allowable time range is 1 month (31 days). Time range as a whole
|
||||||
|
# is optional. If not specified, the latest pricing will be returned (up to
|
||||||
|
# 12 hours old at most).
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Requested page size. The maximum page size is 100; this is also the
|
# Requested page size. Defaults to 5000.
|
||||||
# default.
|
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# A token identifying a page of results to be returned. This should be a
|
# A token identifying a page of results to return. This should be a
|
||||||
# `next_page_token` value returned from a previous `ListProjectBillingInfo`
|
# `next_page_token` value returned from a previous `ListSkus`
|
||||||
# call. If unspecified, the first page of results is returned.
|
# call. If unspecified, the first page of results is returned.
|
||||||
|
# @param [String] start_time
|
||||||
|
# Optional inclusive start time of the time range for which the pricing
|
||||||
|
# versions will be returned. Timestamps in the future are not allowed.
|
||||||
|
# Maximum allowable time range is 1 month (31 days). Time range as a whole
|
||||||
|
# is optional. If not specified, the latest pricing will be returned (up to
|
||||||
|
# 12 hours old at most).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
# @yield [result, err] Result & error if block supplied
|
# @yield [result, err] Result & error if block supplied
|
||||||
# @yieldparam result [Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse] parsed result object
|
# @yieldparam result [Google::Apis::CloudbillingV1::ListSkusResponse] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse]
|
# @return [Google::Apis::CloudbillingV1::ListSkusResponse]
|
||||||
#
|
#
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_billing_account_projects(name, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
def list_service_skus(parent, currency_code: nil, end_time: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/{+name}/projects', options)
|
command = make_simple_command(:get, 'v1/{+parent}/skus', options)
|
||||||
command.response_representation = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse::Representation
|
command.response_representation = Google::Apis::CloudbillingV1::ListSkusResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudbillingV1::ListProjectBillingInfoResponse
|
command.response_class = Google::Apis::CloudbillingV1::ListSkusResponse
|
||||||
command.params['name'] = name unless name.nil?
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['currencyCode'] = currency_code unless currency_code.nil?
|
||||||
|
command.query['endTime'] = end_time unless end_time.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['startTime'] = start_time unless start_time.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-builder/docs/
|
# @see https://cloud.google.com/container-builder/docs/
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170712'
|
REVISION = '20170824'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,49 +22,19 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
|
|
||||||
|
class Build
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class BuildOperationMetadata
|
class BuildOperationMetadata
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SourceProvenance
|
class BuildOptions
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CancelOperationRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListBuildTriggersResponse
|
|
||||||
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 BuiltImage
|
|
||||||
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 RepoSource
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -76,19 +46,25 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class FileHashes
|
class BuildTrigger
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Secret
|
class BuiltImage
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Status
|
class CancelBuildRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CancelOperationRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -100,19 +76,19 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildTrigger
|
class FileHashes
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Build
|
class HashProp
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class CancelBuildRequest
|
class ListBuildTriggersResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -130,19 +106,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Source
|
class Operation
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildOptions
|
class RepoSource
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class StorageSource
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -154,6 +124,74 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Secret
|
||||||
|
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 SourceProvenance
|
||||||
|
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 StorageSource
|
||||||
|
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 Build
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :build_trigger_id, as: 'buildTriggerId'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :finish_time, as: 'finishTime'
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :images, as: 'images'
|
||||||
|
property :log_url, as: 'logUrl'
|
||||||
|
property :logs_bucket, as: 'logsBucket'
|
||||||
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
||||||
|
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
||||||
|
|
||||||
|
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::Secret, decorator: Google::Apis::CloudbuildV1::Secret::Representation
|
||||||
|
|
||||||
|
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
||||||
|
|
||||||
|
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
||||||
|
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :status_detail, as: 'statusDetail'
|
||||||
|
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
||||||
|
|
||||||
|
hash :substitutions, as: 'substitutions'
|
||||||
|
collection :tags, as: 'tags'
|
||||||
|
property :timeout, as: 'timeout'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class BuildOperationMetadata
|
class BuildOperationMetadata
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -162,15 +200,58 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SourceProvenance
|
class BuildOptions
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||||
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||||
|
property :substitution_option, as: 'substitutionOption'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
class BuildStep
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :args, as: 'args'
|
||||||
|
property :dir, as: 'dir'
|
||||||
|
property :entrypoint, as: 'entrypoint'
|
||||||
|
collection :env, as: 'env'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :secret_env, as: 'secretEnv'
|
||||||
|
collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation
|
||||||
|
|
||||||
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
collection :wait_for, as: 'waitFor'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BuildTrigger
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :disabled, as: 'disabled'
|
||||||
|
property :filename, as: 'filename'
|
||||||
|
property :id, as: 'id'
|
||||||
|
hash :substitutions, as: 'substitutions'
|
||||||
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BuiltImage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :digest, as: 'digest'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CancelBuildRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -180,64 +261,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListBuildTriggersResponse
|
class Empty
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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
|
|
||||||
hash :response, as: 'response'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
|
||||||
|
|
||||||
hash :metadata, as: 'metadata'
|
|
||||||
property :done, as: 'done'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuiltImage
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :digest, as: 'digest'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class HashProp
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :value, :base64 => true, as: 'value'
|
|
||||||
property :type, as: 'type'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RepoSource
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :commit_sha, as: 'commitSha'
|
|
||||||
property :tag_name, as: 'tagName'
|
|
||||||
property :branch_name, as: 'branchName'
|
|
||||||
property :repo_name, as: 'repoName'
|
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
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'
|
|
||||||
collection :secret_env, as: 'secretEnv'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -249,89 +275,28 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Secret
|
class HashProp
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
hash :secret_env, as: 'secretEnv'
|
property :type, as: 'type'
|
||||||
property :kms_key_name, as: 'kmsKeyName'
|
property :value, :base64 => true, as: 'value'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Status
|
class ListBuildTriggersResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :message, as: 'message'
|
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
collection :details, as: 'details'
|
|
||||||
property :code, as: 'code'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Empty
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuildTrigger
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :disabled, as: 'disabled'
|
|
||||||
property :filename, as: 'filename'
|
|
||||||
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
||||||
|
|
||||||
property :id, as: 'id'
|
|
||||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
|
|
||||||
hash :substitutions, as: 'substitutions'
|
|
||||||
property :description, as: 'description'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Build
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
hash :substitutions, as: 'substitutions'
|
|
||||||
property :start_time, as: 'startTime'
|
|
||||||
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
|
||||||
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
collection :images, as: 'images'
|
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
property :finish_time, as: 'finishTime'
|
|
||||||
property :log_url, as: 'logUrl'
|
|
||||||
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
|
||||||
|
|
||||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
|
||||||
|
|
||||||
property :timeout, as: 'timeout'
|
|
||||||
property :status, as: 'status'
|
|
||||||
property :status_detail, as: 'statusDetail'
|
|
||||||
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::Secret, decorator: Google::Apis::CloudbuildV1::Secret::Representation
|
|
||||||
|
|
||||||
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'
|
|
||||||
collection :tags, as: 'tags'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CancelBuildRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListBuildsResponse
|
class ListBuildsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -344,31 +309,26 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Source
|
class Operation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||||
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :response, as: 'response'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildOptions
|
class RepoSource
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
property :branch_name, as: 'branchName'
|
||||||
property :substitution_option, as: 'substitutionOption'
|
property :commit_sha, as: 'commitSha'
|
||||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
property :project_id, as: 'projectId'
|
||||||
end
|
property :repo_name, as: 'repoName'
|
||||||
end
|
property :tag_name, as: 'tagName'
|
||||||
|
|
||||||
class StorageSource
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :generation, :numeric_string => true, as: 'generation'
|
|
||||||
property :bucket, as: 'bucket'
|
|
||||||
property :object, as: 'object'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -380,6 +340,62 @@ module Google
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Secret
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kms_key_name, as: 'kmsKeyName'
|
||||||
|
hash :secret_env, as: 'secretEnv'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Source
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
|
|
||||||
|
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceProvenance
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
||||||
|
|
||||||
|
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
|
|
||||||
|
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StorageSource
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :bucket, as: 'bucket'
|
||||||
|
property :generation, :numeric_string => true, as: 'generation'
|
||||||
|
property :object, as: 'object'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Volume
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :path, as: 'path'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,324 +47,6 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cancels a requested build in progress.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [String] id
|
|
||||||
# ID of the build.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Build]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
|
||||||
command.request_object = cancel_build_request_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['id'] = id unless id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Lists previously requested builds.
|
|
||||||
# Previously requested builds may still be in-progress, or may have finished
|
|
||||||
# successfully or unsuccessfully.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [String] filter
|
|
||||||
# The raw filter text to constrain the results.
|
|
||||||
# @param [String] page_token
|
|
||||||
# Token to provide to skip to a particular spot in the list.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Number of results to return in the list.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['filter'] = filter unless filter.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns information about a previously requested build.
|
|
||||||
# The Build that is returned includes its status (e.g., success or failure,
|
|
||||||
# or in-progress), and timing information.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [String] id
|
|
||||||
# ID of the build.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Build]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['id'] = id unless id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Starts a build with the specified configuration.
|
|
||||||
# The long-running Operation returned by this method will include the ID of
|
|
||||||
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
|
||||||
# success or failure).
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Operation]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.request_object = build_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
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
|
|
||||||
|
|
||||||
# Updates an BuildTrigger by its project ID and trigger ID.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to update.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.request_object = build_trigger_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Lists existing BuildTrigger.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project for which to list BuildTriggers.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Gets information about a BuildTrigger.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to get.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Starts asynchronous cancellation on a long-running operation. The server
|
# Starts asynchronous cancellation on a long-running operation. The server
|
||||||
# makes a best effort to cancel the operation, but success is not
|
# makes a best effort to cancel the operation, but success is not
|
||||||
# guaranteed. If the server doesn't support this method, it returns
|
# guaranteed. If the server doesn't support this method, it returns
|
||||||
|
@ -450,12 +132,12 @@ module Google
|
||||||
# is the parent resource, without the operations collection id.
|
# is the parent resource, without the operations collection id.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation's parent resource.
|
# The name of the operation's parent resource.
|
||||||
# @param [String] page_token
|
|
||||||
# The standard list page token.
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# The standard list page size.
|
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# The standard list 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -473,14 +155,332 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
||||||
command.params['name'] = name unless name.nil?
|
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['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
|
||||||
|
|
||||||
|
# Cancels a requested build in progress.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] id
|
||||||
|
# ID of the build.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
||||||
|
command.request_object = cancel_build_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Starts a build with the specified configuration.
|
||||||
|
# The long-running Operation returned by this method will include the ID of
|
||||||
|
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
||||||
|
# success or failure).
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.request_object = build_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns information about a previously requested build.
|
||||||
|
# The Build that is returned includes its status (e.g., success or failure,
|
||||||
|
# or in-progress), and timing information.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] id
|
||||||
|
# ID of the build.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists previously requested builds.
|
||||||
|
# Previously requested builds may still be in-progress, or may have finished
|
||||||
|
# successfully or unsuccessfully.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] filter
|
||||||
|
# The raw filter text to constrain the results.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Number of results to return in the list.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token to provide to skip to a particular spot in the list.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_builds(project_id, filter: nil, page_size: 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['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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Gets information about a BuildTrigger.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to get.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists existing BuildTrigger.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project for which to list BuildTriggers.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates an BuildTrigger by its project ID and trigger ID.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to update.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.request_object = build_trigger_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
|
|
@ -26,13 +26,13 @@ module Google
|
||||||
# @see http://cloud.google.com/debugger
|
# @see http://cloud.google.com/debugger
|
||||||
module ClouddebuggerV2
|
module ClouddebuggerV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20170621'
|
REVISION = '20170809'
|
||||||
|
|
||||||
# Manage cloud debugger
|
|
||||||
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# Manage cloud debugger
|
||||||
|
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,13 +22,7 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module ClouddebuggerV2
|
module ClouddebuggerV2
|
||||||
|
|
||||||
class CloudWorkspaceId
|
class AliasContext
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListBreakpointsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -40,7 +34,103 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class UpdateActiveBreakpointRequest
|
class CloudRepoSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceId
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Debuggee
|
||||||
|
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 ExtendedSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FormatMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GerritSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetBreakpointResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GitSourceContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListActiveBreakpointsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBreakpointsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListDebuggeesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ProjectRepoId
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepoId
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -58,43 +148,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class CloudRepoSourceContext
|
class SourceLocation
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RegisterDebuggeeResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RegisterDebuggeeRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetBreakpointResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class StatusMessage
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class GitSourceContext
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Variable
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -106,67 +160,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class RepoId
|
class StatusMessage
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class FormatMessage
|
class UpdateActiveBreakpointRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ExtendedSourceContext
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListDebuggeesResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AliasContext
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Empty
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SourceLocation
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Debuggee
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ProjectRepoId
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListActiveBreakpointsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CloudWorkspaceSourceContext
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -178,18 +178,155 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class GerritSourceContext
|
class Variable
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AliasContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Breakpoint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :action, as: 'action'
|
||||||
|
property :condition, as: 'condition'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
|
collection :expressions, as: 'expressions'
|
||||||
|
property :final_time, as: 'finalTime'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :is_final_state, as: 'isFinalState'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
||||||
|
|
||||||
|
property :log_level, as: 'logLevel'
|
||||||
|
property :log_message_format, as: 'logMessageFormat'
|
||||||
|
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
|
||||||
|
|
||||||
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
|
property :user_email, as: 'userEmail'
|
||||||
|
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::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 :alias_name, as: 'aliasName'
|
||||||
|
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
||||||
|
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class CloudWorkspaceId
|
class CloudWorkspaceId
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
||||||
|
|
||||||
property :name, as: 'name'
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CloudWorkspaceSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :snapshot_id, as: 'snapshotId'
|
||||||
|
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Debuggee
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :agent_version, as: 'agentVersion'
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
|
||||||
|
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :is_disabled, as: 'isDisabled'
|
||||||
|
property :is_inactive, as: 'isInactive'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :project, as: 'project'
|
||||||
|
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
||||||
|
|
||||||
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
|
property :uniquifier, as: 'uniquifier'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ExtendedSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
||||||
|
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FormatMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :format, as: 'format'
|
||||||
|
collection :parameters, as: 'parameters'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GerritSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
||||||
|
|
||||||
|
property :alias_name, as: 'aliasName'
|
||||||
|
property :gerrit_project, as: 'gerritProject'
|
||||||
|
property :host_uri, as: 'hostUri'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GetBreakpointResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GitSourceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
property :url, as: 'url'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListActiveBreakpointsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
|
||||||
|
property :next_wait_token, as: 'nextWaitToken'
|
||||||
|
property :wait_expired, as: 'waitExpired'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -202,38 +339,44 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Breakpoint
|
class ListDebuggeesResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :user_email, as: 'userEmail'
|
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
property :action, as: 'action'
|
|
||||||
property :log_level, as: 'logLevel'
|
|
||||||
property :id, as: 'id'
|
|
||||||
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
|
||||||
|
|
||||||
property :final_time, as: 'finalTime'
|
|
||||||
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
hash :labels, as: 'labels'
|
|
||||||
property :log_message_format, as: 'logMessageFormat'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
collection :expressions, as: 'expressions'
|
|
||||||
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
property :is_final_state, as: 'isFinalState'
|
|
||||||
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
|
|
||||||
|
|
||||||
property :condition, as: 'condition'
|
|
||||||
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class UpdateActiveBreakpointRequest
|
class ProjectRepoId
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
property :project_id, as: 'projectId'
|
||||||
|
property :repo_name, as: 'repoName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RegisterDebuggeeResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepoId
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation
|
||||||
|
|
||||||
|
property :uid, as: 'uid'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -248,49 +391,34 @@ module Google
|
||||||
class SourceContext
|
class SourceContext
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
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 :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
|
||||||
|
|
||||||
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
|
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
|
||||||
|
|
||||||
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
|
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CloudRepoSourceContext
|
class SourceLocation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
property :line, as: 'line'
|
||||||
|
property :path, as: 'path'
|
||||||
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'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RegisterDebuggeeResponse
|
class StackFrame
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
end
|
property :function, as: 'function'
|
||||||
end
|
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
|
|
||||||
class RegisterDebuggeeRequest
|
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class GetBreakpointResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -305,140 +433,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GitSourceContext
|
class UpdateActiveBreakpointRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :revision_id, as: 'revisionId'
|
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
property :url, as: 'url'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Variable
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :type, as: 'type'
|
|
||||||
property :var_table_index, as: 'varTableIndex'
|
|
||||||
property :value, as: 'value'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class StackFrame
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :function, as: 'function'
|
|
||||||
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
|
||||||
|
|
||||||
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class FormatMessage
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :parameters, as: 'parameters'
|
|
||||||
property :format, as: 'format'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ExtendedSourceContext
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
|
||||||
|
|
||||||
hash :labels, as: 'labels'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListDebuggeesResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AliasContext
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :kind, as: 'kind'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Empty
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SourceLocation
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :path, as: 'path'
|
|
||||||
property :line, as: 'line'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Debuggee
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
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 :project, as: 'project'
|
|
||||||
property :is_disabled, as: 'isDisabled'
|
|
||||||
property :agent_version, as: 'agentVersion'
|
|
||||||
property :id, as: 'id'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ProjectRepoId
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :repo_name, as: 'repoName'
|
|
||||||
property :project_id, as: 'projectId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListActiveBreakpointsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :wait_expired, as: 'waitExpired'
|
|
||||||
property :next_wait_token, as: 'nextWaitToken'
|
|
||||||
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CloudWorkspaceSourceContext
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :snapshot_id, as: 'snapshotId'
|
|
||||||
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -449,15 +447,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GerritSourceContext
|
class Variable
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :revision_id, as: 'revisionId'
|
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||||
property :host_uri, as: 'hostUri'
|
|
||||||
property :alias_name, as: 'aliasName'
|
|
||||||
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
|
||||||
|
|
||||||
property :gerrit_project, as: 'gerritProject'
|
property :name, as: 'name'
|
||||||
|
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||||
|
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :value, as: 'value'
|
||||||
|
property :var_table_index, as: 'varTableIndex'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,219 +48,14 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists all the debuggees that the user can set breakpoints to.
|
|
||||||
# @param [String] client_version
|
|
||||||
# The client version making the call.
|
|
||||||
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
|
||||||
# @param [Boolean] include_inactive
|
|
||||||
# When set to `true`, the result includes all debuggees. Otherwise, the
|
|
||||||
# result includes only debuggees that are active.
|
|
||||||
# @param [String] project
|
|
||||||
# Project number of a Google Cloud project whose debuggees to list.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
|
|
||||||
#
|
|
||||||
# @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_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/debugger/debuggees', options)
|
|
||||||
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
|
|
||||||
command.query['clientVersion'] = client_version unless client_version.nil?
|
|
||||||
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
|
||||||
command.query['project'] = project unless project.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 breakpoints for the debuggee.
|
|
||||||
# @param [String] debuggee_id
|
|
||||||
# ID of the debuggee whose breakpoints to list.
|
|
||||||
# @param [String] wait_token
|
|
||||||
# A wait token that, if specified, blocks the call until the breakpoints
|
|
||||||
# list has changed, or a server selected timeout has expired. The value
|
|
||||||
# should be set from the last response. The error code
|
|
||||||
# `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
|
|
||||||
# should be called again with the same `wait_token`.
|
|
||||||
# @param [String] client_version
|
|
||||||
# The client version making the call.
|
|
||||||
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
|
||||||
# @param [String] action_value
|
|
||||||
# Only breakpoints with the specified action will pass the filter.
|
|
||||||
# @param [Boolean] include_inactive
|
|
||||||
# When set to `true`, the response includes active and inactive
|
|
||||||
# breakpoints. Otherwise, it includes only active breakpoints.
|
|
||||||
# @param [Boolean] include_all_users
|
|
||||||
# When set to `true`, the response includes the list of breakpoints set by
|
|
||||||
# any user. Otherwise, it includes only breakpoints set by the caller.
|
|
||||||
# @param [Boolean] strip_results
|
|
||||||
# This field is deprecated. The following fields are always stripped out of
|
|
||||||
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse]
|
|
||||||
#
|
|
||||||
# @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_debugger_debuggee_breakpoints(debuggee_id, wait_token: nil, client_version: nil, action_value: nil, include_inactive: nil, include_all_users: nil, strip_results: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
|
||||||
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
|
||||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
|
||||||
command.query['waitToken'] = wait_token unless wait_token.nil?
|
|
||||||
command.query['clientVersion'] = client_version unless client_version.nil?
|
|
||||||
command.query['action.value'] = action_value unless action_value.nil?
|
|
||||||
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
|
||||||
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
|
||||||
command.query['stripResults'] = strip_results unless strip_results.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 breakpoint information.
|
|
||||||
# @param [String] debuggee_id
|
|
||||||
# ID of the debuggee whose breakpoint to get.
|
|
||||||
# @param [String] breakpoint_id
|
|
||||||
# ID of the breakpoint to get.
|
|
||||||
# @param [String] client_version
|
|
||||||
# The client version making the call.
|
|
||||||
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
|
|
||||||
#
|
|
||||||
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
|
||||||
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
|
|
||||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
|
||||||
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
|
||||||
command.query['clientVersion'] = client_version unless client_version.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 breakpoint from the debuggee.
|
|
||||||
# @param [String] debuggee_id
|
|
||||||
# ID of the debuggee whose breakpoint to delete.
|
|
||||||
# @param [String] breakpoint_id
|
|
||||||
# ID of the breakpoint to delete.
|
|
||||||
# @param [String] client_version
|
|
||||||
# The client version making the call.
|
|
||||||
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ClouddebuggerV2::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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
|
||||||
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::ClouddebuggerV2::Empty
|
|
||||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
|
||||||
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
|
||||||
command.query['clientVersion'] = client_version unless client_version.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Sets the breakpoint to the debuggee.
|
|
||||||
# @param [String] debuggee_id
|
|
||||||
# ID of the debuggee where the breakpoint is to be set.
|
|
||||||
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
|
|
||||||
# @param [String] client_version
|
|
||||||
# The client version making the call.
|
|
||||||
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
|
|
||||||
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
|
||||||
command.request_object = breakpoint_object
|
|
||||||
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
|
|
||||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
|
||||||
command.query['clientVersion'] = client_version unless client_version.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Registers the debuggee with the controller service.
|
# Registers the debuggee with the controller service.
|
||||||
# All agents attached to the same application should call this method with
|
# All agents attached to the same application must call this method with
|
||||||
# the same request content to get back the same stable `debuggee_id`. Agents
|
# exactly the same request content to get back the same stable `debuggee_id`.
|
||||||
# should call this method again whenever `google.rpc.Code.NOT_FOUND` is
|
# Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
|
||||||
# returned from any controller method.
|
# is returned from any controller method.
|
||||||
# This allows the controller service to disable the agent or recover from any
|
# This protocol allows the controller service to disable debuggees, recover
|
||||||
# data loss. If the debuggee is disabled by the server, the response will
|
# from data loss, or change the `debuggee_id` format. Agents must handle
|
||||||
# have `is_disabled` set to `true`.
|
# `debuggee_id` value changing upon re-registration.
|
||||||
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
|
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -291,7 +86,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the list of all active breakpoints for the debuggee.
|
# Returns the list of all active breakpoints for the debuggee.
|
||||||
# The breakpoint specification (location, condition, and expression
|
# The breakpoint specification (`location`, `condition`, and `expressions`
|
||||||
# fields) is semantically immutable, although the field values may
|
# fields) is semantically immutable, although the field values may
|
||||||
# change. For example, an agent may update the location line number
|
# change. For example, an agent may update the location line number
|
||||||
# to reflect the actual line where the breakpoint was set, but this
|
# to reflect the actual line where the breakpoint was set, but this
|
||||||
|
@ -304,15 +99,16 @@ module Google
|
||||||
# @param [String] debuggee_id
|
# @param [String] debuggee_id
|
||||||
# Identifies the debuggee.
|
# Identifies the debuggee.
|
||||||
# @param [Boolean] success_on_timeout
|
# @param [Boolean] success_on_timeout
|
||||||
# If set to `true`, returns `google.rpc.Code.OK` status and sets the
|
# If set to `true` (recommended), returns `google.rpc.Code.OK` status and
|
||||||
# `wait_expired` response field to `true` when the server-selected timeout
|
# sets the `wait_expired` response field to `true` when the server-selected
|
||||||
# has expired (recommended).
|
# timeout has expired.
|
||||||
# If set to `false`, returns `google.rpc.Code.ABORTED` status when the
|
# If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status
|
||||||
# server-selected timeout has expired (deprecated).
|
# when the server-selected timeout has expired.
|
||||||
# @param [String] wait_token
|
# @param [String] wait_token
|
||||||
# A wait token that, if specified, blocks the method call until the list
|
# A token that, if specified, blocks the method call until the list
|
||||||
# of active breakpoints has changed, or a server selected timeout has
|
# of active breakpoints has changed, or a server-selected timeout has
|
||||||
# expired. The value should be set from the last returned response.
|
# expired. The value should be set from the `next_wait_token` field in
|
||||||
|
# the last response. The initial value should be set to `"init"`.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -343,11 +139,10 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the breakpoint state or mutable fields.
|
# Updates the breakpoint state or mutable fields.
|
||||||
# The entire Breakpoint message must be sent back to the controller
|
# The entire Breakpoint message must be sent back to the controller service.
|
||||||
# service.
|
|
||||||
# Updates to active breakpoint fields are only allowed if the new value
|
# Updates to active breakpoint fields are only allowed if the new value
|
||||||
# does not change the breakpoint specification. Updates to the `location`,
|
# does not change the breakpoint specification. Updates to the `location`,
|
||||||
# `condition` and `expression` fields should not alter the breakpoint
|
# `condition` and `expressions` fields should not alter the breakpoint
|
||||||
# semantics. These may only make changes such as canonicalizing a value
|
# semantics. These may only make changes such as canonicalizing a value
|
||||||
# or snapping the location to the correct line of code.
|
# or snapping the location to the correct line of code.
|
||||||
# @param [String] debuggee_id
|
# @param [String] debuggee_id
|
||||||
|
@ -384,6 +179,211 @@ module Google
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Lists all the debuggees that the user has access to.
|
||||||
|
# @param [String] client_version
|
||||||
|
# The client version making the call.
|
||||||
|
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||||
|
# @param [Boolean] include_inactive
|
||||||
|
# When set to `true`, the result includes all debuggees. Otherwise, the
|
||||||
|
# result includes only debuggees that are active.
|
||||||
|
# @param [String] project
|
||||||
|
# Project number of a Google Cloud project whose debuggees to list.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
|
||||||
|
#
|
||||||
|
# @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_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/debugger/debuggees', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
|
||||||
|
command.query['clientVersion'] = client_version unless client_version.nil?
|
||||||
|
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
||||||
|
command.query['project'] = project unless project.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 breakpoint from the debuggee.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee whose breakpoint to delete.
|
||||||
|
# @param [String] breakpoint_id
|
||||||
|
# ID of the breakpoint to delete.
|
||||||
|
# @param [String] client_version
|
||||||
|
# The client version making the call.
|
||||||
|
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::Empty
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
||||||
|
command.query['clientVersion'] = client_version unless client_version.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 breakpoint information.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee whose breakpoint to get.
|
||||||
|
# @param [String] breakpoint_id
|
||||||
|
# ID of the breakpoint to get.
|
||||||
|
# @param [String] client_version
|
||||||
|
# The client version making the call.
|
||||||
|
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
|
||||||
|
#
|
||||||
|
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
||||||
|
command.query['clientVersion'] = client_version unless client_version.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 breakpoints for the debuggee.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee whose breakpoints to list.
|
||||||
|
# @param [String] action_value
|
||||||
|
# Only breakpoints with the specified action will pass the filter.
|
||||||
|
# @param [String] client_version
|
||||||
|
# The client version making the call.
|
||||||
|
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||||
|
# @param [Boolean] include_all_users
|
||||||
|
# When set to `true`, the response includes the list of breakpoints set by
|
||||||
|
# any user. Otherwise, it includes only breakpoints set by the caller.
|
||||||
|
# @param [Boolean] include_inactive
|
||||||
|
# When set to `true`, the response includes active and inactive
|
||||||
|
# breakpoints. Otherwise, it includes only active breakpoints.
|
||||||
|
# @param [Boolean] strip_results
|
||||||
|
# This field is deprecated. The following fields are always stripped out of
|
||||||
|
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
||||||
|
# @param [String] wait_token
|
||||||
|
# A wait token that, if specified, blocks the call until the breakpoints
|
||||||
|
# list has changed, or a server selected timeout has expired. The value
|
||||||
|
# should be set from the last response. The error code
|
||||||
|
# `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
|
||||||
|
# should be called again with the same `wait_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::ClouddebuggerV2::ListBreakpointsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse]
|
||||||
|
#
|
||||||
|
# @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_debugger_debuggee_breakpoints(debuggee_id, action_value: nil, client_version: nil, include_all_users: nil, include_inactive: nil, strip_results: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.query['action.value'] = action_value unless action_value.nil?
|
||||||
|
command.query['clientVersion'] = client_version unless client_version.nil?
|
||||||
|
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
||||||
|
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
||||||
|
command.query['stripResults'] = strip_results unless strip_results.nil?
|
||||||
|
command.query['waitToken'] = wait_token unless wait_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Sets the breakpoint to the debuggee.
|
||||||
|
# @param [String] debuggee_id
|
||||||
|
# ID of the debuggee where the breakpoint is to be set.
|
||||||
|
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
|
||||||
|
# @param [String] client_version
|
||||||
|
# The client version making the call.
|
||||||
|
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
|
||||||
|
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||||
|
command.request_object = breakpoint_object
|
||||||
|
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
|
||||||
|
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||||
|
command.query['clientVersion'] = client_version unless client_version.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/error-reporting/
|
# @see https://cloud.google.com/error-reporting/
|
||||||
module ClouderrorreportingV1beta1
|
module ClouderrorreportingV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20170618'
|
REVISION = '20170811'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,43 +22,25 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module ClouderrorreportingV1beta1
|
module ClouderrorreportingV1beta1
|
||||||
|
|
||||||
class ListGroupStatsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SourceReference
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DeleteEventsResponse
|
class DeleteEventsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class 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 ErrorContext
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class TrackingIssue
|
class ErrorEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorGroup
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -70,19 +52,31 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HttpRequestContext
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ListEventsResponse
|
class ListEventsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class TimedCount
|
class ListGroupStatsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ErrorGroup
|
class ReportErrorEventResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ReportedErrorEvent
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -100,34 +94,22 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
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
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
property :time_range_begin, as: 'timeRangeBegin'
|
|
||||||
collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SourceReference
|
class SourceReference
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :revision_id, as: 'revisionId'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :repository, as: 'repository'
|
end
|
||||||
end
|
|
||||||
|
class TimedCount
|
||||||
|
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
|
end
|
||||||
|
|
||||||
class DeleteEventsResponse
|
class DeleteEventsResponse
|
||||||
|
@ -136,62 +118,53 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ErrorEvent
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
|
|
||||||
|
|
||||||
property :event_time, as: 'eventTime'
|
|
||||||
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
|
|
||||||
|
|
||||||
property :message, as: 'message'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ReportedErrorEvent
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :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
|
class ErrorContext
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :source_references, as: 'sourceReferences', class: Google::Apis::ClouderrorreportingV1beta1::SourceReference, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceReference::Representation
|
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
|
||||||
|
|
||||||
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
|
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
|
||||||
|
|
||||||
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
|
collection :source_references, as: 'sourceReferences', class: Google::Apis::ClouderrorreportingV1beta1::SourceReference, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceReference::Representation
|
||||||
|
|
||||||
property :user, as: 'user'
|
property :user, as: 'user'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TrackingIssue
|
class ErrorEvent
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :url, as: 'url'
|
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
|
||||||
|
|
||||||
|
property :event_time, as: 'eventTime'
|
||||||
|
property :message, as: 'message'
|
||||||
|
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ErrorGroup
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :group_id, as: 'groupId'
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ErrorGroupStats
|
class ErrorGroupStats
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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, :numeric_string => true, as: 'count'
|
|
||||||
property :affected_users_count, :numeric_string => true, 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
|
collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
|
||||||
|
|
||||||
|
property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount'
|
||||||
|
property :count, :numeric_string => true, as: 'count'
|
||||||
|
property :first_seen_time, as: 'firstSeenTime'
|
||||||
|
property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
|
||||||
|
|
||||||
|
property :last_seen_time, as: 'lastSeenTime'
|
||||||
|
property :num_affected_services, as: 'numAffectedServices'
|
||||||
property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::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
|
collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation
|
||||||
|
@ -199,50 +172,35 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HttpRequestContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :referrer, as: 'referrer'
|
||||||
|
property :remote_ip, as: 'remoteIp'
|
||||||
|
property :response_status_code, as: 'responseStatusCode'
|
||||||
|
property :url, as: 'url'
|
||||||
|
property :user_agent, as: 'userAgent'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ListEventsResponse
|
class ListEventsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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
|
collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :time_range_begin, as: 'timeRangeBegin'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TimedCount
|
class ListGroupStatsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :end_time, as: 'endTime'
|
collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
|
||||||
property :start_time, as: 'startTime'
|
|
||||||
property :count, :numeric_string => true, as: 'count'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ErrorGroup
|
property :next_page_token, as: 'nextPageToken'
|
||||||
# @private
|
property :time_range_begin, as: 'timeRangeBegin'
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :name, as: 'name'
|
|
||||||
collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
|
|
||||||
|
|
||||||
property :group_id, as: 'groupId'
|
|
||||||
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -252,15 +210,57 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class HttpRequestContext
|
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 :event_time, as: 'eventTime'
|
||||||
|
property :message, as: 'message'
|
||||||
|
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ServiceContext
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :resource_type, as: 'resourceType'
|
||||||
|
property :service, as: 'service'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceLocation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :file_path, as: 'filePath'
|
||||||
|
property :function_name, as: 'functionName'
|
||||||
|
property :line_number, as: 'lineNumber'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repository, as: 'repository'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TimedCount
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :count, :numeric_string => true, as: 'count'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TrackingIssue
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :url, as: 'url'
|
property :url, as: 'url'
|
||||||
property :response_status_code, as: 'responseStatusCode'
|
|
||||||
property :method_prop, as: 'method'
|
|
||||||
property :remote_ip, as: 'remoteIp'
|
|
||||||
property :referrer, as: 'referrer'
|
|
||||||
property :user_agent, as: 'userAgent'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -55,11 +55,11 @@ module Google
|
||||||
# [Google Cloud Platform project
|
# [Google Cloud Platform project
|
||||||
# ID](https://support.google.com/cloud/answer/6158840).
|
# ID](https://support.google.com/cloud/answer/6158840).
|
||||||
# Example: `projects/my-project-123`.
|
# Example: `projects/my-project-123`.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -72,164 +72,13 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def delete_project_events(project_name, quota_user: nil, fields: nil, options: nil, &block)
|
def delete_project_events(project_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:delete, 'v1beta1/{+projectName}/events', options)
|
command = make_simple_command(:delete, 'v1beta1/{+projectName}/events', options)
|
||||||
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse::Representation
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse::Representation
|
||||||
command.response_class = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse
|
||||||
command.params['projectName'] = project_name unless project_name.nil?
|
command.params['projectName'] = project_name unless project_name.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
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] 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] alignment_time
|
|
||||||
# [Optional] Time where the timed counts shall be aligned if rounded
|
|
||||||
# alignment is chosen. Default is 00:00 UTC.
|
|
||||||
# @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] timed_count_duration
|
|
||||||
# [Optional] The preferred duration for a single returned `TimedCount`.
|
|
||||||
# If not set, no timed counts are returned.
|
|
||||||
# @param [String] page_token
|
|
||||||
# [Optional] A `next_page_token` provided by a previous response. To view
|
|
||||||
# additional results, pass this token along with the identical query
|
|
||||||
# parameters as the first request.
|
|
||||||
# @param [String] time_range_period
|
|
||||||
# Restricts the query to the specified time range.
|
|
||||||
# @param [String] 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::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, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, alignment_time: nil, service_filter_resource_type: nil, timed_count_duration: nil, page_token: nil, time_range_period: nil, quota_user: nil, fields: 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['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['alignmentTime'] = alignment_time unless alignment_time.nil?
|
|
||||||
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
|
|
||||||
command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil?
|
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
|
||||||
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# 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] 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.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] 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -240,31 +89,31 @@ module Google
|
||||||
# [Google Cloud Platform project
|
# [Google Cloud Platform project
|
||||||
# ID](https://support.google.com/cloud/answer/6158840).
|
# ID](https://support.google.com/cloud/answer/6158840).
|
||||||
# Example: `projects/my-project-123`.
|
# Example: `projects/my-project-123`.
|
||||||
# @param [String] service_filter_service
|
# @param [String] group_id
|
||||||
# [Optional] The exact value to match against
|
# [Required] The group for which events shall be returned.
|
||||||
# [`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
|
# @param [Fixnum] page_size
|
||||||
# [Optional] The maximum number of results to return per response.
|
# [Optional] The maximum number of results to return per response.
|
||||||
# @param [String] service_filter_version
|
# @param [String] page_token
|
||||||
# [Optional] The exact value to match against
|
# [Optional] A `next_page_token` provided by a previous response.
|
||||||
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
|
|
||||||
# ServiceContext#FIELDS.version).
|
|
||||||
# @param [String] service_filter_resource_type
|
# @param [String] service_filter_resource_type
|
||||||
# [Optional] The exact value to match against
|
# [Optional] The exact value to match against
|
||||||
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
|
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
|
||||||
# ServiceContext#FIELDS.resource_type).
|
# ServiceContext#FIELDS.resource_type).
|
||||||
|
# @param [String] service_filter_service
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.service).
|
||||||
|
# @param [String] service_filter_version
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.version).
|
||||||
# @param [String] time_range_period
|
# @param [String] time_range_period
|
||||||
# Restricts the query to the specified time range.
|
# Restricts the query to the specified time range.
|
||||||
# @param [String] group_id
|
# @param [String] fields
|
||||||
# [Required] The group for which events shall be returned.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -277,20 +126,20 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_project_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, quota_user: nil, fields: nil, options: nil, &block)
|
def list_project_events(project_name, group_id: nil, page_size: nil, page_token: nil, service_filter_resource_type: nil, service_filter_service: nil, service_filter_version: nil, time_range_period: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
|
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
|
||||||
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
|
||||||
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
|
||||||
command.params['projectName'] = project_name unless project_name.nil?
|
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['groupId'] = group_id unless group_id.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
|
||||||
|
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
|
||||||
|
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
|
||||||
|
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -309,11 +158,11 @@ module Google
|
||||||
# 6158840).
|
# 6158840).
|
||||||
# Example: `projects/my-project-123`.
|
# Example: `projects/my-project-123`.
|
||||||
# @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object
|
# @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
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -326,15 +175,166 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def report_project_event(project_name, reported_error_event_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
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 = make_simple_command(:post, 'v1beta1/{+projectName}/events:report', options)
|
||||||
command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent::Representation
|
command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent::Representation
|
||||||
command.request_object = reported_error_event_object
|
command.request_object = reported_error_event_object
|
||||||
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse::Representation
|
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse::Representation
|
||||||
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse
|
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse
|
||||||
command.params['projectName'] = project_name unless project_name.nil?
|
command.params['projectName'] = project_name unless project_name.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# 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] alignment
|
||||||
|
# [Optional] The alignment of the timed counts to be returned.
|
||||||
|
# Default is `ALIGNMENT_EQUAL_AT_END`.
|
||||||
|
# @param [String] alignment_time
|
||||||
|
# [Optional] Time where the timed counts shall be aligned if rounded
|
||||||
|
# alignment is chosen. Default is 00:00 UTC.
|
||||||
|
# @param [Array<String>, String] group_id
|
||||||
|
# [Optional] List all <code>ErrorGroupStats</code> with these IDs.
|
||||||
|
# @param [String] order
|
||||||
|
# [Optional] The sort order in which the results are returned.
|
||||||
|
# Default is `COUNT_DESC`.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# [Optional] The maximum number of results to return per response.
|
||||||
|
# Default is 20.
|
||||||
|
# @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] 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] service_filter_service
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.service).
|
||||||
|
# @param [String] service_filter_version
|
||||||
|
# [Optional] The exact value to match against
|
||||||
|
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
|
||||||
|
# ServiceContext#FIELDS.version).
|
||||||
|
# @param [String] time_range_period
|
||||||
|
# Restricts the query to the specified time range.
|
||||||
|
# @param [String] timed_count_duration
|
||||||
|
# [Optional] The preferred duration for a single returned `TimedCount`.
|
||||||
|
# If not set, no timed counts are 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::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, alignment: nil, alignment_time: nil, group_id: nil, order: nil, page_size: nil, page_token: nil, service_filter_resource_type: nil, service_filter_service: nil, service_filter_version: nil, time_range_period: nil, timed_count_duration: 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['alignment'] = alignment unless alignment.nil?
|
||||||
|
command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
|
||||||
|
command.query['groupId'] = group_id unless group_id.nil?
|
||||||
|
command.query['order'] = order unless order.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
|
||||||
|
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
|
||||||
|
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
|
||||||
|
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
|
||||||
|
command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,10 @@ module Google
|
||||||
# @see https://cloud.google.com/functions
|
# @see https://cloud.google.com/functions
|
||||||
module CloudfunctionsV1
|
module CloudfunctionsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170711'
|
REVISION = '20170822'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,21 +22,208 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudfunctionsV1
|
module CloudfunctionsV1
|
||||||
|
|
||||||
|
# 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::CloudfunctionsV1::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
|
||||||
|
|
||||||
|
# The response message for Operations.ListOperations.
|
||||||
|
class ListOperationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The standard List next-page token.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# A list of operations that matches the specified filter in the request.
|
||||||
|
# Corresponds to the JSON property `operations`
|
||||||
|
# @return [Array<Google::Apis::CloudfunctionsV1::Operation>]
|
||||||
|
attr_accessor :operations
|
||||||
|
|
||||||
|
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)
|
||||||
|
@operations = args[:operations] if args.key?(:operations)
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Resource name for the location, which may vary between implementations.
|
||||||
|
# For example: `"projects/example-project/locations/us-east1"`
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This resource represents a long-running operation that is the result of a
|
||||||
|
# network API call.
|
||||||
|
class Operation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If the value is `false`, it means the operation is still in progress.
|
||||||
|
# If true, the operation is completed, and either `error` or `response` is
|
||||||
|
# available.
|
||||||
|
# Corresponds to the JSON property `done`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :done
|
||||||
|
alias_method :done?, :done
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
# Corresponds to the JSON property `error`
|
||||||
|
# @return [Google::Apis::CloudfunctionsV1::Status]
|
||||||
|
attr_accessor :error
|
||||||
|
|
||||||
|
# Service-specific metadata associated with the operation. It typically
|
||||||
|
# contains progress information and common metadata such as create time.
|
||||||
|
# Some services might not provide such metadata. Any method that returns a
|
||||||
|
# long-running operation should document the metadata type, if any.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# The server-assigned name, which is only unique within the same service that
|
||||||
|
# originally returns it. If you use the default HTTP mapping, the
|
||||||
|
# `name` should have the format of `operations/some/unique/name`.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The normal response of the operation in case of success. If the original
|
||||||
|
# method returns no data on success, such as `Delete`, the response is
|
||||||
|
# `google.protobuf.Empty`. If the original method is standard
|
||||||
|
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||||
|
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||||
|
# is the original method name. For example, if the original method name
|
||||||
|
# is `TakeSnapshot()`, the inferred response type is
|
||||||
|
# `TakeSnapshotResponse`.
|
||||||
|
# Corresponds to the JSON property `response`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :response
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@done = args[:done] if args.key?(:done)
|
||||||
|
@error = args[:error] if args.key?(:error)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@response = args[:response] if args.key?(:response)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Metadata describing an Operation
|
# Metadata describing an Operation
|
||||||
class OperationMetadataV1Beta2
|
class OperationMetadataV1Beta2
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The original request that started the operation.
|
||||||
|
# Corresponds to the JSON property `request`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :request
|
||||||
|
|
||||||
# Target of the operation - for example
|
# Target of the operation - for example
|
||||||
# projects/project-1/locations/region-1/functions/function-1
|
# projects/project-1/locations/region-1/functions/function-1
|
||||||
# Corresponds to the JSON property `target`
|
# Corresponds to the JSON property `target`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :target
|
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.
|
# Type of operation.
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -48,11 +235,83 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@target = args[:target] if args.key?(:target)
|
|
||||||
@request = args[:request] if args.key?(:request)
|
@request = args[:request] if args.key?(:request)
|
||||||
|
@target = args[:target] if args.key?(:target)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
class Status
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There is a common set of
|
||||||
|
# message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<Hash<String,Object>>]
|
||||||
|
attr_accessor :details
|
||||||
|
|
||||||
|
# A developer-facing error message, which should be in English. Any
|
||||||
|
# user-facing error message should be localized and sent in the
|
||||||
|
# google.rpc.Status.details field, or localized by the client.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@code = args[:code] if args.key?(:code)
|
||||||
|
@details = args[:details] if args.key?(:details)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,20 +22,99 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudfunctionsV1
|
module CloudfunctionsV1
|
||||||
|
|
||||||
class OperationMetadataV1Beta2
|
class ListLocationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class OperationMetadataV1Beta2
|
||||||
|
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 ListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::CloudfunctionsV1::Location, decorator: Google::Apis::CloudfunctionsV1::Location::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::CloudfunctionsV1::Operation, decorator: Google::Apis::CloudfunctionsV1::Operation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :location_id, as: 'locationId'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::CloudfunctionsV1::Status, decorator: Google::Apis::CloudfunctionsV1::Status::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class OperationMetadataV1Beta2
|
class OperationMetadataV1Beta2
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :target, as: 'target'
|
|
||||||
hash :request, as: 'request'
|
hash :request, as: 'request'
|
||||||
|
property :target, as: 'target'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,6 +47,124 @@ module Google
|
||||||
super('https://cloudfunctions.googleapis.com/', '')
|
super('https://cloudfunctions.googleapis.com/', '')
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
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::CloudfunctionsV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudfunctionsV1::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::CloudfunctionsV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudfunctionsV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists operations that match the specified filter in the request. If the
|
||||||
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||||
|
# NOTE: the `name` binding allows API services to override the binding
|
||||||
|
# to use different resource name schemes, such as `users/*/operations`. To
|
||||||
|
# override the binding, API services can add a binding such as
|
||||||
|
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||||
|
# For backwards compatibility, the default name includes the operations
|
||||||
|
# collection id, however overriding users must ensure the name binding
|
||||||
|
# is the parent resource, without the operations collection id.
|
||||||
|
# @param [String] filter
|
||||||
|
# The standard list filter.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation's parent resource.
|
||||||
|
# @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::CloudfunctionsV1::ListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudfunctionsV1::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(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/operations', options)
|
||||||
|
command.response_representation = Google::Apis::CloudfunctionsV1::ListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudfunctionsV1::ListOperationsResponse
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['name'] = name unless name.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
|
||||||
|
|
||||||
|
# Lists information about the supported locations for this service.
|
||||||
|
# @param [String] 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::CloudfunctionsV1::ListLocationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudfunctionsV1::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_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
||||||
|
command.response_representation = Google::Apis::CloudfunctionsV1::ListLocationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudfunctionsV1::ListLocationsResponse
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/kms/
|
# @see https://cloud.google.com/kms/
|
||||||
module CloudkmsV1
|
module CloudkmsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170621'
|
REVISION = '20170821'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,97 +22,13 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudkmsV1
|
module CloudkmsV1
|
||||||
|
|
||||||
class Condition
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CounterOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AuditLogConfig
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DecryptResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class TestIamPermissionsRequest
|
|
||||||
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
|
|
||||||
end
|
|
||||||
|
|
||||||
class KeyRing
|
|
||||||
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 Policy
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class UpdateCryptoKeyPrimaryVersionRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RestoreCryptoKeyVersionRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class DataAccessOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListKeyRingsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AuditConfig
|
class AuditConfig
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class CryptoKeyVersion
|
class AuditLogConfig
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class CloudAuditOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -124,31 +40,19 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Expr
|
class CloudAuditOptions
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class EncryptRequest
|
class Condition
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListCryptoKeyVersionsResponse
|
class CounterOptions
|
||||||
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 DestroyCryptoKeyVersionRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -160,19 +64,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
class CryptoKeyVersion
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogConfig
|
class DataAccessOptions
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SetIamPolicyRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -184,7 +82,43 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Location
|
class DecryptResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DestroyCryptoKeyVersionRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class EncryptRequest
|
||||||
|
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
|
||||||
|
end
|
||||||
|
|
||||||
|
class Expr
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class KeyRing
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListCryptoKeyVersionsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -196,23 +130,79 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Condition
|
class ListKeyRingsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :svc, as: 'svc'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :value, as: 'value'
|
|
||||||
property :sys, as: 'sys'
|
|
||||||
collection :values, as: 'values'
|
|
||||||
property :iam, as: 'iam'
|
|
||||||
property :op, as: 'op'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class CounterOptions
|
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 LogConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Policy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RestoreCryptoKeyVersionRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Rule
|
||||||
|
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 TestIamPermissionsRequest
|
||||||
|
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 UpdateCryptoKeyPrimaryVersionRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AuditConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :field, as: 'field'
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
|
||||||
property :metric, as: 'metric'
|
|
||||||
|
collection :exempted_members, as: 'exemptedMembers'
|
||||||
|
property :service, as: 'service'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -224,117 +214,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DecryptResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :plaintext, :base64 => true, as: 'plaintext'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TestIamPermissionsRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :permissions, as: 'permissions'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class EncryptResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :ciphertext, :base64 => true, as: 'ciphertext'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class KeyRing
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListLocationsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
|
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Policy
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
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'
|
|
||||||
property :iam_owned, as: 'iamOwned'
|
|
||||||
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class UpdateCryptoKeyPrimaryVersionRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RestoreCryptoKeyVersionRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class DataAccessOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListKeyRingsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
|
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
property :total_size, as: 'totalSize'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AuditConfig
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :exempted_members, as: 'exemptedMembers'
|
|
||||||
property :service, as: 'service'
|
|
||||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CryptoKeyVersion
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :state, as: 'state'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :destroy_event_time, as: 'destroyEventTime'
|
|
||||||
property :destroy_time, as: 'destroyTime'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CloudAuditOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :log_name, as: 'logName'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -345,38 +224,76 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Expr
|
class CloudAuditOptions
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :location, as: 'location'
|
property :log_name, as: 'logName'
|
||||||
property :title, as: 'title'
|
|
||||||
property :description, as: 'description'
|
|
||||||
property :expression, as: 'expression'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class EncryptRequest
|
class Condition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :iam, as: 'iam'
|
||||||
|
property :op, as: 'op'
|
||||||
|
property :svc, as: 'svc'
|
||||||
|
property :sys, as: 'sys'
|
||||||
|
property :value, as: 'value'
|
||||||
|
collection :values, as: 'values'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CounterOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :field, as: 'field'
|
||||||
|
property :metric, as: 'metric'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CryptoKey
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :next_rotation_time, as: 'nextRotationTime'
|
||||||
|
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
||||||
|
|
||||||
|
property :purpose, as: 'purpose'
|
||||||
|
property :rotation_period, as: 'rotationPeriod'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CryptoKeyVersion
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :destroy_event_time, as: 'destroyEventTime'
|
||||||
|
property :destroy_time, as: 'destroyTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :state, as: 'state'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DataAccessOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :log_mode, as: 'logMode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DecryptRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
||||||
|
property :ciphertext, :base64 => true, as: 'ciphertext'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DecryptResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :plaintext, :base64 => true, as: 'plaintext'
|
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
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TestIamPermissionsResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :permissions, as: 'permissions'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -386,43 +303,134 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CryptoKey
|
class EncryptRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :name, as: 'name'
|
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
||||||
property :purpose, as: 'purpose'
|
property :plaintext, :base64 => true, as: 'plaintext'
|
||||||
property :next_rotation_time, as: 'nextRotationTime'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :rotation_period, as: 'rotationPeriod'
|
|
||||||
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
class EncryptResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ciphertext, :base64 => true, as: 'ciphertext'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Expr
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
|
property :expression, as: 'expression'
|
||||||
|
property :location, as: 'location'
|
||||||
|
property :title, as: 'title'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
|
class KeyRing
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
collection :in, as: 'in'
|
class ListCryptoKeyVersionsResponse
|
||||||
collection :permissions, as: 'permissions'
|
# @private
|
||||||
property :action, as: 'action'
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :not_in, as: 'notIn'
|
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
|
||||||
|
|
||||||
|
class ListCryptoKeysResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :total_size, as: 'totalSize'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListKeyRingsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :total_size, as: 'totalSize'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :location_id, as: 'locationId'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogConfig
|
class LogConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
|
||||||
|
|
||||||
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
|
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
|
||||||
|
|
||||||
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
|
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
|
||||||
|
|
||||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Policy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
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'
|
||||||
|
property :iam_owned, as: 'iamOwned'
|
||||||
|
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
|
||||||
|
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RestoreCryptoKeyVersionRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Rule
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :action, as: 'action'
|
||||||
|
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
|
||||||
|
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :in, as: 'in'
|
||||||
|
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
|
||||||
|
|
||||||
|
collection :not_in, as: 'notIn'
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -435,31 +443,24 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class DecryptRequest
|
class TestIamPermissionsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
collection :permissions, as: 'permissions'
|
||||||
property :ciphertext, :base64 => true, as: 'ciphertext'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Location
|
class TestIamPermissionsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
hash :labels, as: 'labels'
|
collection :permissions, as: 'permissions'
|
||||||
property :name, as: 'name'
|
|
||||||
property :location_id, as: 'locationId'
|
|
||||||
hash :metadata, as: 'metadata'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListCryptoKeysResponse
|
class UpdateCryptoKeyPrimaryVersionRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
|
||||||
property :total_size, as: 'totalSize'
|
|
||||||
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/monitoring/v2beta2/
|
# @see https://cloud.google.com/monitoring/v2beta2/
|
||||||
module CloudmonitoringV2beta2
|
module CloudmonitoringV2beta2
|
||||||
VERSION = 'V2beta2'
|
VERSION = 'V2beta2'
|
||||||
REVISION = '20170501'
|
REVISION = '20170323'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,13 +26,13 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170705'
|
REVISION = '20170710'
|
||||||
|
|
||||||
# View your data across Google Cloud Platform services
|
|
||||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# 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
|
end
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,43 @@
|
||||||
|
# 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/cloudtrace_v2/service.rb'
|
||||||
|
require 'google/apis/cloudtrace_v2/classes.rb'
|
||||||
|
require 'google/apis/cloudtrace_v2/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Stackdriver Trace API
|
||||||
|
#
|
||||||
|
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
|
||||||
|
# available by default for all App Engine applications. Data from other
|
||||||
|
# applications can be written to Stackdriver Trace for display, reporting, and
|
||||||
|
# analysis.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/trace
|
||||||
|
module CloudtraceV2
|
||||||
|
VERSION = 'V2'
|
||||||
|
REVISION = '20170815'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
||||||
|
# Write Trace data for a project or application
|
||||||
|
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
|
||||||
|
|
||||||
|
# Read Trace data for a project or application
|
||||||
|
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,797 @@
|
||||||
|
# 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 CloudtraceV2
|
||||||
|
|
||||||
|
# Text annotation with a set of attributes.
|
||||||
|
class Annotation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A set of attributes, each in the format `[KEY]:[VALUE]`.
|
||||||
|
# Corresponds to the JSON property `attributes`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Attributes]
|
||||||
|
attr_accessor :attributes
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attributes = args[:attributes] if args.key?(:attributes)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
|
||||||
|
class AttributeValue
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A Boolean value represented by `true` or `false`.
|
||||||
|
# Corresponds to the JSON property `boolValue`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :bool_value
|
||||||
|
alias_method :bool_value?, :bool_value
|
||||||
|
|
||||||
|
# A 64-bit signed integer.
|
||||||
|
# Corresponds to the JSON property `intValue`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :int_value
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `stringValue`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :string_value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
||||||
|
@int_value = args[:int_value] if args.key?(:int_value)
|
||||||
|
@string_value = args[:string_value] if args.key?(:string_value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A set of attributes, each in the format `[KEY]:[VALUE]`.
|
||||||
|
class Attributes
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The set of attributes. Each attribute's key can be up to 128 bytes
|
||||||
|
# long. The value can be a string up to 256 bytes, an integer, or the
|
||||||
|
# Boolean values `true` and `false`. For example:
|
||||||
|
# "/instance_id": "my-instance"
|
||||||
|
# "/http/user_agent": ""
|
||||||
|
# "/http/request_bytes": 300
|
||||||
|
# "abc.com/myattribute": true
|
||||||
|
# Corresponds to the JSON property `attributeMap`
|
||||||
|
# @return [Hash<String,Google::Apis::CloudtraceV2::AttributeValue>]
|
||||||
|
attr_accessor :attribute_map
|
||||||
|
|
||||||
|
# The number of attributes that were discarded. Attributes can be discarded
|
||||||
|
# because their keys are too long or because there are too many attributes.
|
||||||
|
# If this value is 0 then all attributes are valid.
|
||||||
|
# Corresponds to the JSON property `droppedAttributesCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :dropped_attributes_count
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attribute_map = args[:attribute_map] if args.key?(:attribute_map)
|
||||||
|
@dropped_attributes_count = args[:dropped_attributes_count] if args.key?(:dropped_attributes_count)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The request message for the `BatchWriteSpans` method.
|
||||||
|
class BatchWriteSpansRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A collection of spans.
|
||||||
|
# Corresponds to the JSON property `spans`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV2::Span>]
|
||||||
|
attr_accessor :spans
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@spans = args[:spans] if args.key?(:spans)
|
||||||
|
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
|
||||||
|
|
||||||
|
# A pointer from the current span to another span in the same trace or in a
|
||||||
|
# different trace. For example, this can be used in batching operations,
|
||||||
|
# where a single batch handler processes multiple requests from different
|
||||||
|
# traces or when the handler receives a request from a different project.
|
||||||
|
class Link
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A set of attributes, each in the format `[KEY]:[VALUE]`.
|
||||||
|
# Corresponds to the JSON property `attributes`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Attributes]
|
||||||
|
attr_accessor :attributes
|
||||||
|
|
||||||
|
# `SPAN_ID` identifies a span within a trace.
|
||||||
|
# Corresponds to the JSON property `spanId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :span_id
|
||||||
|
|
||||||
|
# `TRACE_ID` identifies a trace within a project.
|
||||||
|
# Corresponds to the JSON property `traceId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :trace_id
|
||||||
|
|
||||||
|
# The relationship of the current span relative to the linked span.
|
||||||
|
# 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)
|
||||||
|
@attributes = args[:attributes] if args.key?(:attributes)
|
||||||
|
@span_id = args[:span_id] if args.key?(:span_id)
|
||||||
|
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A collection of links, which are references from this span to a span
|
||||||
|
# in the same or different trace.
|
||||||
|
class Links
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of dropped links after the maximum size was enforced. If
|
||||||
|
# this value is 0, then no links were dropped.
|
||||||
|
# Corresponds to the JSON property `droppedLinksCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :dropped_links_count
|
||||||
|
|
||||||
|
# A collection of links.
|
||||||
|
# Corresponds to the JSON property `link`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV2::Link>]
|
||||||
|
attr_accessor :link
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dropped_links_count = args[:dropped_links_count] if args.key?(:dropped_links_count)
|
||||||
|
@link = args[:link] if args.key?(:link)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for the `ListSpans` method.
|
||||||
|
class ListSpansResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If defined, indicates that there might be more spans that match the
|
||||||
|
# request. Pass this as the value of `pageToken` in a subsequent request to
|
||||||
|
# retrieve additional spans.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The requested spans, if there are any in the specified trace.
|
||||||
|
# Corresponds to the JSON property `spans`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV2::Span>]
|
||||||
|
attr_accessor :spans
|
||||||
|
|
||||||
|
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)
|
||||||
|
@spans = args[:spans] if args.key?(:spans)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for the `ListTraces` method.
|
||||||
|
class ListTracesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If there might be more results than those appearing in this response, then
|
||||||
|
# `next_page_token` is included. To get the next set of results, call this
|
||||||
|
# method again using the value of `next_page_token` as `page_token`.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# List of trace records returned.
|
||||||
|
# Corresponds to the JSON property `traces`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV2::Trace>]
|
||||||
|
attr_accessor :traces
|
||||||
|
|
||||||
|
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)
|
||||||
|
@traces = args[:traces] if args.key?(:traces)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Binary module.
|
||||||
|
class Module
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `buildId`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :build_id
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `module`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :module
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@build_id = args[:build_id] if args.key?(:build_id)
|
||||||
|
@module = args[:module] if args.key?(:module)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An event describing an RPC message sent or received on the network.
|
||||||
|
class NetworkEvent
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# An identifier for the message, which must be unique in this span.
|
||||||
|
# Corresponds to the JSON property `messageId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :message_id
|
||||||
|
|
||||||
|
# The number of bytes sent or received.
|
||||||
|
# Corresponds to the JSON property `messageSize`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :message_size
|
||||||
|
|
||||||
|
# For sent messages, this is the time at which the first bit was sent.
|
||||||
|
# For received messages, this is the time at which the last bit was
|
||||||
|
# received.
|
||||||
|
# Corresponds to the JSON property `time`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time
|
||||||
|
|
||||||
|
# Type of NetworkEvent. Indicates whether the RPC message was sent or
|
||||||
|
# received.
|
||||||
|
# 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)
|
||||||
|
@message_id = args[:message_id] if args.key?(:message_id)
|
||||||
|
@message_size = args[:message_size] if args.key?(:message_size)
|
||||||
|
@time = args[:time] if args.key?(:time)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A span represents a single operation within a trace. Spans can be
|
||||||
|
# nested to form a trace tree. Often, a trace contains a root span
|
||||||
|
# that describes the end-to-end latency, and one or more subspans for
|
||||||
|
# its sub-operations. A trace can also contain multiple root spans,
|
||||||
|
# or none at all. Spans do not need to be contiguous—there may be
|
||||||
|
# gaps or overlaps between spans in a trace.
|
||||||
|
class Span
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A set of attributes, each in the format `[KEY]:[VALUE]`.
|
||||||
|
# Corresponds to the JSON property `attributes`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Attributes]
|
||||||
|
attr_accessor :attributes
|
||||||
|
|
||||||
|
# An optional number of child spans that were generated while this span
|
||||||
|
# was active. If set, allows implementation to detect missing child spans.
|
||||||
|
# Corresponds to the JSON property `childSpanCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :child_span_count
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# The end time of the span. On the client side, this is the time kept by
|
||||||
|
# the local machine where the span execution ends. On the server side, this
|
||||||
|
# is the time when the server application handler stops running.
|
||||||
|
# Corresponds to the JSON property `endTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :end_time
|
||||||
|
|
||||||
|
# A collection of links, which are references from this span to a span
|
||||||
|
# in the same or different trace.
|
||||||
|
# Corresponds to the JSON property `links`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Links]
|
||||||
|
attr_accessor :links
|
||||||
|
|
||||||
|
# The resource name of the span in the following format:
|
||||||
|
# projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique
|
||||||
|
# identifier for a trace within a project.
|
||||||
|
# [SPAN_ID] is a unique identifier for a span within a trace,
|
||||||
|
# assigned when the span is created.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The [SPAN_ID] of this span's parent span. If this is a root span,
|
||||||
|
# then this field must be empty.
|
||||||
|
# Corresponds to the JSON property `parentSpanId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :parent_span_id
|
||||||
|
|
||||||
|
# A highly recommended but not required flag that identifies when a trace
|
||||||
|
# crosses a process boundary. True when the parent_span belongs to the
|
||||||
|
# same process as the current span.
|
||||||
|
# Corresponds to the JSON property `sameProcessAsParentSpan`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :same_process_as_parent_span
|
||||||
|
alias_method :same_process_as_parent_span?, :same_process_as_parent_span
|
||||||
|
|
||||||
|
# The [SPAN_ID] portion of the span's resource name.
|
||||||
|
# Corresponds to the JSON property `spanId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :span_id
|
||||||
|
|
||||||
|
# A call stack appearing in a trace.
|
||||||
|
# Corresponds to the JSON property `stackTrace`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::StackTrace]
|
||||||
|
attr_accessor :stack_trace
|
||||||
|
|
||||||
|
# The start time of the span. On the client side, this is the time kept by
|
||||||
|
# the local machine where the span execution starts. On the server side, this
|
||||||
|
# is the time when the server's application handler starts running.
|
||||||
|
# Corresponds to the JSON property `startTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_time
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Status]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
# A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
|
||||||
|
# on the span, consisting of either user-supplied key:value pairs, or
|
||||||
|
# details of an RPC message sent/received on the network.
|
||||||
|
# Corresponds to the JSON property `timeEvents`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TimeEvents]
|
||||||
|
attr_accessor :time_events
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attributes = args[:attributes] if args.key?(:attributes)
|
||||||
|
@child_span_count = args[:child_span_count] if args.key?(:child_span_count)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@end_time = args[:end_time] if args.key?(:end_time)
|
||||||
|
@links = args[:links] if args.key?(:links)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
||||||
|
@same_process_as_parent_span = args[:same_process_as_parent_span] if args.key?(:same_process_as_parent_span)
|
||||||
|
@span_id = args[:span_id] if args.key?(:span_id)
|
||||||
|
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
|
||||||
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@time_events = args[:time_events] if args.key?(:time_events)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a single stack frame in a stack trace.
|
||||||
|
class StackFrame
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The column number where the function call appears, if available.
|
||||||
|
# This is important in JavaScript because of its anonymous functions.
|
||||||
|
# Corresponds to the JSON property `columnNumber`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :column_number
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `fileName`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :file_name
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `functionName`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :function_name
|
||||||
|
|
||||||
|
# The line number in `file_name` where the function call appears.
|
||||||
|
# Corresponds to the JSON property `lineNumber`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :line_number
|
||||||
|
|
||||||
|
# Binary module.
|
||||||
|
# Corresponds to the JSON property `loadModule`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Module]
|
||||||
|
attr_accessor :load_module
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `originalFunctionName`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :original_function_name
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
# Corresponds to the JSON property `sourceVersion`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::TruncatableString]
|
||||||
|
attr_accessor :source_version
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@column_number = args[:column_number] if args.key?(:column_number)
|
||||||
|
@file_name = args[:file_name] if args.key?(:file_name)
|
||||||
|
@function_name = args[:function_name] if args.key?(:function_name)
|
||||||
|
@line_number = args[:line_number] if args.key?(:line_number)
|
||||||
|
@load_module = args[:load_module] if args.key?(:load_module)
|
||||||
|
@original_function_name = args[:original_function_name] if args.key?(:original_function_name)
|
||||||
|
@source_version = args[:source_version] if args.key?(:source_version)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A collection of stack frames, which can be truncated.
|
||||||
|
class StackFrames
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of stack frames that were dropped because there
|
||||||
|
# were too many stack frames.
|
||||||
|
# If this value is 0, then no stack frames were dropped.
|
||||||
|
# Corresponds to the JSON property `droppedFramesCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :dropped_frames_count
|
||||||
|
|
||||||
|
# Stack frames in this call stack.
|
||||||
|
# Corresponds to the JSON property `frame`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV2::StackFrame>]
|
||||||
|
attr_accessor :frame
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dropped_frames_count = args[:dropped_frames_count] if args.key?(:dropped_frames_count)
|
||||||
|
@frame = args[:frame] if args.key?(:frame)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A call stack appearing in a trace.
|
||||||
|
class StackTrace
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A collection of stack frames, which can be truncated.
|
||||||
|
# Corresponds to the JSON property `stackFrames`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::StackFrames]
|
||||||
|
attr_accessor :stack_frames
|
||||||
|
|
||||||
|
# The hash ID is used to conserve network bandwidth for duplicate
|
||||||
|
# stack traces within a single trace.
|
||||||
|
# Often multiple spans will have identical stack traces.
|
||||||
|
# The first occurrence of a stack trace should contain both the
|
||||||
|
# `stackFrame` content and a value in `stackTraceHashId`.
|
||||||
|
# Subsequent spans within the same request can refer
|
||||||
|
# to that stack trace by only setting `stackTraceHashId`.
|
||||||
|
# Corresponds to the JSON property `stackTraceHashId`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :stack_trace_hash_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@stack_frames = args[:stack_frames] if args.key?(:stack_frames)
|
||||||
|
@stack_trace_hash_id = args[:stack_trace_hash_id] if args.key?(:stack_trace_hash_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for different
|
||||||
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||||
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error message,
|
||||||
|
# and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
class Status
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There is a common set of
|
||||||
|
# message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<Hash<String,Object>>]
|
||||||
|
attr_accessor :details
|
||||||
|
|
||||||
|
# A developer-facing error message, which should be in English. Any
|
||||||
|
# user-facing error message should be localized and sent in the
|
||||||
|
# google.rpc.Status.details field, or localized by the client.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@code = args[:code] if args.key?(:code)
|
||||||
|
@details = args[:details] if args.key?(:details)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A time-stamped annotation or network event in the Span.
|
||||||
|
class TimeEvent
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Text annotation with a set of attributes.
|
||||||
|
# Corresponds to the JSON property `annotation`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Annotation]
|
||||||
|
attr_accessor :annotation
|
||||||
|
|
||||||
|
# An event describing an RPC message sent or received on the network.
|
||||||
|
# Corresponds to the JSON property `networkEvent`
|
||||||
|
# @return [Google::Apis::CloudtraceV2::NetworkEvent]
|
||||||
|
attr_accessor :network_event
|
||||||
|
|
||||||
|
# The timestamp indicating the time the event occurred.
|
||||||
|
# Corresponds to the JSON property `time`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@annotation = args[:annotation] if args.key?(:annotation)
|
||||||
|
@network_event = args[:network_event] if args.key?(:network_event)
|
||||||
|
@time = args[:time] if args.key?(:time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
|
||||||
|
# on the span, consisting of either user-supplied key:value pairs, or
|
||||||
|
# details of an RPC message sent/received on the network.
|
||||||
|
class TimeEvents
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of dropped annotations in all the included time events.
|
||||||
|
# If the value is 0, then no annotations were dropped.
|
||||||
|
# Corresponds to the JSON property `droppedAnnotationsCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :dropped_annotations_count
|
||||||
|
|
||||||
|
# The number of dropped network events in all the included time events.
|
||||||
|
# If the value is 0, then no network events were dropped.
|
||||||
|
# Corresponds to the JSON property `droppedNetworkEventsCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :dropped_network_events_count
|
||||||
|
|
||||||
|
# A collection of `TimeEvent`s.
|
||||||
|
# Corresponds to the JSON property `timeEvent`
|
||||||
|
# @return [Array<Google::Apis::CloudtraceV2::TimeEvent>]
|
||||||
|
attr_accessor :time_event
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dropped_annotations_count = args[:dropped_annotations_count] if args.key?(:dropped_annotations_count)
|
||||||
|
@dropped_network_events_count = args[:dropped_network_events_count] if args.key?(:dropped_network_events_count)
|
||||||
|
@time_event = args[:time_event] if args.key?(:time_event)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A trace describes how long it takes for an application to perform some
|
||||||
|
# operations. It consists of a set of spans, each representing
|
||||||
|
# an operation and including time information and operation details.
|
||||||
|
class Trace
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The resource name of the trace in the following format:
|
||||||
|
# projects/[PROJECT_ID]/traces/TRACE_ID is a unique identifier for a trace
|
||||||
|
# within a project.
|
||||||
|
# The ID is assigned when the trace is created.
|
||||||
|
# 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)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a string that might be shortened to a specified length.
|
||||||
|
class TruncatableString
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The number of bytes removed from the original string. If this
|
||||||
|
# value is 0, then the string was not shortened.
|
||||||
|
# Corresponds to the JSON property `truncatedByteCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :truncated_byte_count
|
||||||
|
|
||||||
|
# The shortened string. For example, if the original string was 500
|
||||||
|
# bytes long and the limit of the string was 128 bytes, then this
|
||||||
|
# value contains the first 128 bytes of the 500-byte string. Note that
|
||||||
|
# truncation always happens on the character boundary, to ensure that
|
||||||
|
# truncated string is still valid UTF8. In case of multi-byte characters,
|
||||||
|
# size of truncated string can be less than truncation limit.
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@truncated_byte_count = args[:truncated_byte_count] if args.key?(:truncated_byte_count)
|
||||||
|
@value = args[:value] if args.key?(:value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,353 @@
|
||||||
|
# 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 CloudtraceV2
|
||||||
|
|
||||||
|
class Annotation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AttributeValue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Attributes
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchWriteSpansRequest
|
||||||
|
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 Link
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Links
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListSpansResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTracesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Module
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Span
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackFrame
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackFrames
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackTrace
|
||||||
|
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 TimeEvent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TimeEvents
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Trace
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TruncatableString
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Annotation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :attributes, as: 'attributes', class: Google::Apis::CloudtraceV2::Attributes, decorator: Google::Apis::CloudtraceV2::Attributes::Representation
|
||||||
|
|
||||||
|
property :description, as: 'description', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AttributeValue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :bool_value, as: 'boolValue'
|
||||||
|
property :int_value, :numeric_string => true, as: 'intValue'
|
||||||
|
property :string_value, as: 'stringValue', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Attributes
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :attribute_map, as: 'attributeMap', class: Google::Apis::CloudtraceV2::AttributeValue, decorator: Google::Apis::CloudtraceV2::AttributeValue::Representation
|
||||||
|
|
||||||
|
property :dropped_attributes_count, as: 'droppedAttributesCount'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchWriteSpansRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV2::Span, decorator: Google::Apis::CloudtraceV2::Span::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Link
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :attributes, as: 'attributes', class: Google::Apis::CloudtraceV2::Attributes, decorator: Google::Apis::CloudtraceV2::Attributes::Representation
|
||||||
|
|
||||||
|
property :span_id, as: 'spanId'
|
||||||
|
property :trace_id, as: 'traceId'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Links
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dropped_links_count, as: 'droppedLinksCount'
|
||||||
|
collection :link, as: 'link', class: Google::Apis::CloudtraceV2::Link, decorator: Google::Apis::CloudtraceV2::Link::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListSpansResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV2::Span, decorator: Google::Apis::CloudtraceV2::Span::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListTracesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV2::Trace, decorator: Google::Apis::CloudtraceV2::Trace::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Module
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :build_id, as: 'buildId', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
property :module, as: 'module', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEvent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :message_id, :numeric_string => true, as: 'messageId'
|
||||||
|
property :message_size, :numeric_string => true, as: 'messageSize'
|
||||||
|
property :time, as: 'time'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Span
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :attributes, as: 'attributes', class: Google::Apis::CloudtraceV2::Attributes, decorator: Google::Apis::CloudtraceV2::Attributes::Representation
|
||||||
|
|
||||||
|
property :child_span_count, as: 'childSpanCount'
|
||||||
|
property :display_name, as: 'displayName', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :links, as: 'links', class: Google::Apis::CloudtraceV2::Links, decorator: Google::Apis::CloudtraceV2::Links::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :parent_span_id, as: 'parentSpanId'
|
||||||
|
property :same_process_as_parent_span, as: 'sameProcessAsParentSpan'
|
||||||
|
property :span_id, as: 'spanId'
|
||||||
|
property :stack_trace, as: 'stackTrace', class: Google::Apis::CloudtraceV2::StackTrace, decorator: Google::Apis::CloudtraceV2::StackTrace::Representation
|
||||||
|
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :status, as: 'status', class: Google::Apis::CloudtraceV2::Status, decorator: Google::Apis::CloudtraceV2::Status::Representation
|
||||||
|
|
||||||
|
property :time_events, as: 'timeEvents', class: Google::Apis::CloudtraceV2::TimeEvents, decorator: Google::Apis::CloudtraceV2::TimeEvents::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackFrame
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :column_number, :numeric_string => true, as: 'columnNumber'
|
||||||
|
property :file_name, as: 'fileName', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
property :function_name, as: 'functionName', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
property :line_number, :numeric_string => true, as: 'lineNumber'
|
||||||
|
property :load_module, as: 'loadModule', class: Google::Apis::CloudtraceV2::Module, decorator: Google::Apis::CloudtraceV2::Module::Representation
|
||||||
|
|
||||||
|
property :original_function_name, as: 'originalFunctionName', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
property :source_version, as: 'sourceVersion', class: Google::Apis::CloudtraceV2::TruncatableString, decorator: Google::Apis::CloudtraceV2::TruncatableString::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackFrames
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dropped_frames_count, as: 'droppedFramesCount'
|
||||||
|
collection :frame, as: 'frame', class: Google::Apis::CloudtraceV2::StackFrame, decorator: Google::Apis::CloudtraceV2::StackFrame::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StackTrace
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :stack_frames, as: 'stackFrames', class: Google::Apis::CloudtraceV2::StackFrames, decorator: Google::Apis::CloudtraceV2::StackFrames::Representation
|
||||||
|
|
||||||
|
property :stack_trace_hash_id, :numeric_string => true, as: 'stackTraceHashId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TimeEvent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :annotation, as: 'annotation', class: Google::Apis::CloudtraceV2::Annotation, decorator: Google::Apis::CloudtraceV2::Annotation::Representation
|
||||||
|
|
||||||
|
property :network_event, as: 'networkEvent', class: Google::Apis::CloudtraceV2::NetworkEvent, decorator: Google::Apis::CloudtraceV2::NetworkEvent::Representation
|
||||||
|
|
||||||
|
property :time, as: 'time'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TimeEvents
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dropped_annotations_count, as: 'droppedAnnotationsCount'
|
||||||
|
property :dropped_network_events_count, as: 'droppedNetworkEventsCount'
|
||||||
|
collection :time_event, as: 'timeEvent', class: Google::Apis::CloudtraceV2::TimeEvent, decorator: Google::Apis::CloudtraceV2::TimeEvent::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Trace
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TruncatableString
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :truncated_byte_count, as: 'truncatedByteCount'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,238 @@
|
||||||
|
# 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 CloudtraceV2
|
||||||
|
# Stackdriver Trace API
|
||||||
|
#
|
||||||
|
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
|
||||||
|
# available by default for all App Engine applications. Data from other
|
||||||
|
# applications can be written to Stackdriver Trace for display, reporting, and
|
||||||
|
# analysis.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/cloudtrace_v2'
|
||||||
|
#
|
||||||
|
# Cloudtrace = Google::Apis::CloudtraceV2 # Alias the module
|
||||||
|
# service = Cloudtrace::CloudTraceService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/trace
|
||||||
|
class CloudTraceService < 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://cloudtrace.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Sends new spans to Stackdriver Trace or updates existing traces. If the
|
||||||
|
# name of a trace that you send matches that of an existing trace, new spans
|
||||||
|
# are added to the existing trace. Attempt to update existing spans results
|
||||||
|
# undefined behavior. If the name does not match, a new trace is created
|
||||||
|
# with given set of spans.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. Name of the project where the spans belong. The format is
|
||||||
|
# `projects/PROJECT_ID`.
|
||||||
|
# @param [Google::Apis::CloudtraceV2::BatchWriteSpansRequest] batch_write_spans_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::CloudtraceV2::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudtraceV2::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 batch_trace_write_spans(name, batch_write_spans_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2/{+name}/traces:batchWrite', options)
|
||||||
|
command.request_representation = Google::Apis::CloudtraceV2::BatchWriteSpansRequest::Representation
|
||||||
|
command.request_object = batch_write_spans_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudtraceV2::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::CloudtraceV2::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
|
||||||
|
|
||||||
|
# Returns of a list of traces that match the specified filter conditions.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required. The project where the trace data is stored. The format
|
||||||
|
# is `projects/PROJECT_ID`.
|
||||||
|
# @param [String] end_time
|
||||||
|
# Optional. Do not return traces whose start time is later than this time.
|
||||||
|
# @param [String] filter
|
||||||
|
# Opional. Return only traces that match this
|
||||||
|
# [trace filter](/trace/docs/trace-filters). Example:
|
||||||
|
# "label:/http/url root:/_ah/background my_label:17"
|
||||||
|
# @param [String] order_by
|
||||||
|
# Optional. A single field used to sort the returned traces.
|
||||||
|
# Only the following field names can be used:
|
||||||
|
# * `trace_id`: the trace's ID field
|
||||||
|
# * `name`: the root span's resource name
|
||||||
|
# * `duration`: the difference between the root span's start time and end time
|
||||||
|
# * `start`: the start time of the root span
|
||||||
|
# Sorting is in ascending order unless `desc` is appended to the sort field name.
|
||||||
|
# Example: `"name desc"`).
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Optional. The maximum number of results to return from this request.
|
||||||
|
# Non-positive values are ignored. The presence of `next_page_token` in the
|
||||||
|
# response indicates that more results might be available, even if fewer than
|
||||||
|
# the maximum number of results is returned by this request.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Optional. If present, then retrieve the next batch of results from the
|
||||||
|
# preceding call to this method. `page_token` must be the value of
|
||||||
|
# `next_page_token` from the previous response. The values of other method
|
||||||
|
# parameters should be identical to those in the previous call.
|
||||||
|
# @param [String] start_time
|
||||||
|
# Optional. Do not return traces whose end time is earlier than this time.
|
||||||
|
# @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::CloudtraceV2::ListTracesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudtraceV2::ListTracesResponse]
|
||||||
|
#
|
||||||
|
# @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(parent, end_time: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/{+parent}/traces', options)
|
||||||
|
command.response_representation = Google::Apis::CloudtraceV2::ListTracesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudtraceV2::ListTracesResponse
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['endTime'] = end_time unless end_time.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.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
|
||||||
|
|
||||||
|
# Returns a list of spans within a trace.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required: The resource name of the trace containing the spans to list.
|
||||||
|
# The format is `projects/PROJECT_ID/traces/TRACE_ID`.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Optional. If present, then retrieve the next batch of results from the
|
||||||
|
# preceding call to this method. `page_token` must be the value of
|
||||||
|
# `next_page_token` from the previous response. The values of other method
|
||||||
|
# parameters should be identical to those in the previous call.
|
||||||
|
# @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::CloudtraceV2::ListSpansResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudtraceV2::ListSpansResponse]
|
||||||
|
#
|
||||||
|
# @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_trace_spans(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2/{+parent}:listSpans', options)
|
||||||
|
command.response_representation = Google::Apis::CloudtraceV2::ListSpansResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudtraceV2::ListSpansResponse
|
||||||
|
command.params['parent'] = parent unless parent.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
|
||||||
|
|
||||||
|
# Creates a new Span.
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the span in the following format:
|
||||||
|
# projects/[PROJECT_ID]traces/[TRACE_ID]/spans/SPAN_ID is a unique
|
||||||
|
# identifier for a trace within a project.
|
||||||
|
# [SPAN_ID] is a unique identifier for a span within a trace,
|
||||||
|
# assigned when the span is created.
|
||||||
|
# @param [Google::Apis::CloudtraceV2::Span] span_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::CloudtraceV2::Span] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudtraceV2::Span]
|
||||||
|
#
|
||||||
|
# @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_trace_span(name, span_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v2/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::CloudtraceV2::Span::Representation
|
||||||
|
command.request_object = span_object
|
||||||
|
command.response_representation = Google::Apis::CloudtraceV2::Span::Representation
|
||||||
|
command.response_class = Google::Apis::CloudtraceV2::Span
|
||||||
|
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
|
|
@ -0,0 +1,44 @@
|
||||||
|
# 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/clouduseraccounts_vm_alpha/service.rb'
|
||||||
|
require 'google/apis/clouduseraccounts_vm_alpha/classes.rb'
|
||||||
|
require 'google/apis/clouduseraccounts_vm_alpha/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Cloud User Accounts API
|
||||||
|
#
|
||||||
|
# Creates and manages users and groups for accessing Google Compute Engine
|
||||||
|
# virtual machines.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||||
|
module ClouduseraccountsVmAlpha
|
||||||
|
VERSION = 'VmAlpha'
|
||||||
|
REVISION = '20160316'
|
||||||
|
|
||||||
|
# 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'
|
||||||
|
|
||||||
|
# Manage your Google Cloud User Accounts
|
||||||
|
AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
|
||||||
|
|
||||||
|
# View your Google Cloud User Accounts
|
||||||
|
AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,494 @@
|
||||||
|
# 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 ClouduseraccountsVmAlpha
|
||||||
|
|
||||||
|
class AuditConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AuthorizedKeysView
|
||||||
|
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 Condition
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Group
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsAddMemberRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsRemoveMemberRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxAccountViews
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetAuthorizedKeysViewResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetLinuxAccountViewsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGroupView
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxUserView
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogConfigCounterOptions
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Error
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Error
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Policy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PublicKey
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Rule
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestPermissionsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestPermissionsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class User
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UserList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AuditConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :exempted_members, as: 'exemptedMembers'
|
||||||
|
property :service, as: 'service'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AuthorizedKeysView
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :keys, as: 'keys'
|
||||||
|
property :sudoer, as: 'sudoer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Binding
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :members, as: 'members'
|
||||||
|
property :role, as: 'role'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Condition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :iam, as: 'iam'
|
||||||
|
property :op, as: 'op'
|
||||||
|
property :svc, as: 'svc'
|
||||||
|
property :sys, as: 'sys'
|
||||||
|
property :value, as: 'value'
|
||||||
|
collection :values, as: 'values'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Group
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :members, as: 'members'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmAlpha::Group, decorator: Google::Apis::ClouduseraccountsVmAlpha::Group::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsAddMemberRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :users, as: 'users'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GroupsRemoveMemberRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :users, as: 'users'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxAccountViews
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsVmAlpha::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsVmAlpha::LinuxGroupView::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsVmAlpha::LinuxUserView, decorator: Google::Apis::ClouduseraccountsVmAlpha::LinuxUserView::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetAuthorizedKeysViewResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmAlpha::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsVmAlpha::AuthorizedKeysView::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGetLinuxAccountViewsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmAlpha::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsVmAlpha::LinuxAccountViews::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxGroupView
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :gid, as: 'gid'
|
||||||
|
property :group_name, as: 'groupName'
|
||||||
|
collection :members, as: 'members'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LinuxUserView
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :gecos, as: 'gecos'
|
||||||
|
property :gid, as: 'gid'
|
||||||
|
property :home_directory, as: 'homeDirectory'
|
||||||
|
property :shell, as: 'shell'
|
||||||
|
property :uid, as: 'uid'
|
||||||
|
property :username, as: 'username'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :counter, as: 'counter', class: Google::Apis::ClouduseraccountsVmAlpha::LogConfigCounterOptions, decorator: Google::Apis::ClouduseraccountsVmAlpha::LogConfigCounterOptions::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogConfigCounterOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :field, as: 'field'
|
||||||
|
property :metric, as: 'metric'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :client_operation_id, as: 'clientOperationId'
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :error, as: 'error', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error::Representation
|
||||||
|
|
||||||
|
property :http_error_message, as: 'httpErrorMessage'
|
||||||
|
property :http_error_status_code, as: 'httpErrorStatusCode'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :insert_time, as: 'insertTime'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :operation_type, as: 'operationType'
|
||||||
|
property :progress, as: 'progress'
|
||||||
|
property :region, as: 'region'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :status_message, as: 'statusMessage'
|
||||||
|
property :target_id, :numeric_string => true, as: 'targetId'
|
||||||
|
property :target_link, as: 'targetLink'
|
||||||
|
property :user, as: 'user'
|
||||||
|
collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning::Representation
|
||||||
|
|
||||||
|
property :zone, as: 'zone'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Error
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error::Error::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Error
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
property :location, as: 'location'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OperationList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmAlpha::Operation, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Policy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ClouduseraccountsVmAlpha::AuditConfig, decorator: Google::Apis::ClouduseraccountsVmAlpha::AuditConfig::Representation
|
||||||
|
|
||||||
|
collection :bindings, as: 'bindings', class: Google::Apis::ClouduseraccountsVmAlpha::Binding, decorator: Google::Apis::ClouduseraccountsVmAlpha::Binding::Representation
|
||||||
|
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :iam_owned, as: 'iamOwned'
|
||||||
|
collection :rules, as: 'rules', class: Google::Apis::ClouduseraccountsVmAlpha::Rule, decorator: Google::Apis::ClouduseraccountsVmAlpha::Rule::Representation
|
||||||
|
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PublicKey
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :expiration_timestamp, as: 'expirationTimestamp'
|
||||||
|
property :fingerprint, as: 'fingerprint'
|
||||||
|
property :key, as: 'key'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Rule
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :action, as: 'action'
|
||||||
|
collection :conditions, as: 'conditions', class: Google::Apis::ClouduseraccountsVmAlpha::Condition, decorator: Google::Apis::ClouduseraccountsVmAlpha::Condition::Representation
|
||||||
|
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :ins, as: 'ins'
|
||||||
|
collection :log_configs, as: 'logConfigs', class: Google::Apis::ClouduseraccountsVmAlpha::LogConfig, decorator: Google::Apis::ClouduseraccountsVmAlpha::LogConfig::Representation
|
||||||
|
|
||||||
|
collection :not_ins, as: 'notIns'
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestPermissionsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TestPermissionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class User
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :groups, as: 'groups'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :owner, as: 'owner'
|
||||||
|
collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsVmAlpha::PublicKey, decorator: Google::Apis::ClouduseraccountsVmAlpha::PublicKey::Representation
|
||||||
|
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UserList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmAlpha::User, decorator: Google::Apis::ClouduseraccountsVmAlpha::User::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeBeta
|
module ComputeBeta
|
||||||
VERSION = 'Beta'
|
VERSION = 'Beta'
|
||||||
REVISION = '20170612'
|
REVISION = '20170821'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -136,6 +136,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AuthorizationLoggingOptions
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Autoscaler
|
class Autoscaler
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -472,6 +478,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class FixedOrPercent
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ForwardingRule
|
class ForwardingRule
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -664,6 +676,24 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InstanceGroupManagerPendingActionsSummary
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InstanceGroupManagerUpdatePolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InstanceGroupManagerVersion
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class InstanceGroupManagersAbandonInstancesRequest
|
class InstanceGroupManagersAbandonInstancesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -880,6 +910,90 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Interconnect
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentAggregatedList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentPrivateInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentsScopedList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectCircuitInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectLocationList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectLocationRegionInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectOutageNotification
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class License
|
class License
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -904,6 +1018,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class LogConfigDataAccessOptions
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class MachineType
|
class MachineType
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1012,6 +1132,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkRoutingConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class NetworksAddPeeringRequest
|
class NetworksAddPeeringRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1372,6 +1498,36 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SecurityPoliciesList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyReference
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyRule
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyRuleMatcher
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class SerialPortOutput
|
class SerialPortOutput
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1930,6 +2086,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :address, as: 'address'
|
property :address, as: 'address'
|
||||||
|
property :address_type, as: 'addressType'
|
||||||
property :creation_timestamp, as: 'creationTimestamp'
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
@ -1941,6 +2098,7 @@ module Google
|
||||||
property :region, as: 'region'
|
property :region, as: 'region'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
|
property :subnetwork, as: 'subnetwork'
|
||||||
collection :users, as: 'users'
|
collection :users, as: 'users'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -2056,6 +2214,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AuthorizationLoggingOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :permission_type, as: 'permissionType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Autoscaler
|
class Autoscaler
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -2242,6 +2407,7 @@ module Google
|
||||||
property :port_name, as: 'portName'
|
property :port_name, as: 'portName'
|
||||||
property :protocol, as: 'protocol'
|
property :protocol, as: 'protocol'
|
||||||
property :region, as: 'region'
|
property :region, as: 'region'
|
||||||
|
property :security_policy, as: 'securityPolicy'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :session_affinity, as: 'sessionAffinity'
|
property :session_affinity, as: 'sessionAffinity'
|
||||||
property :timeout_sec, as: 'timeoutSec'
|
property :timeout_sec, as: 'timeoutSec'
|
||||||
|
@ -2709,6 +2875,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class FixedOrPercent
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :calculated, as: 'calculated'
|
||||||
|
property :fixed, as: 'fixed'
|
||||||
|
property :percent, as: 'percent'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ForwardingRule
|
class ForwardingRule
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -3120,11 +3295,17 @@ module Google
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation
|
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation
|
||||||
|
|
||||||
|
property :pending_actions, as: 'pendingActions', class: Google::Apis::ComputeBeta::InstanceGroupManagerPendingActionsSummary, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerPendingActionsSummary::Representation
|
||||||
|
|
||||||
property :region, as: 'region'
|
property :region, as: 'region'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :service_account, as: 'serviceAccount'
|
property :service_account, as: 'serviceAccount'
|
||||||
collection :target_pools, as: 'targetPools'
|
collection :target_pools, as: 'targetPools'
|
||||||
property :target_size, as: 'targetSize'
|
property :target_size, as: 'targetSize'
|
||||||
|
property :update_policy, as: 'updatePolicy', class: Google::Apis::ComputeBeta::InstanceGroupManagerUpdatePolicy, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerUpdatePolicy::Representation
|
||||||
|
|
||||||
|
collection :versions, as: 'versions', class: Google::Apis::ComputeBeta::InstanceGroupManagerVersion, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerVersion::Representation
|
||||||
|
|
||||||
property :zone, as: 'zone'
|
property :zone, as: 'zone'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -3140,6 +3321,7 @@ module Google
|
||||||
property :recreating, as: 'recreating'
|
property :recreating, as: 'recreating'
|
||||||
property :refreshing, as: 'refreshing'
|
property :refreshing, as: 'refreshing'
|
||||||
property :restarting, as: 'restarting'
|
property :restarting, as: 'restarting'
|
||||||
|
property :verifying, as: 'verifying'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3175,6 +3357,39 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InstanceGroupManagerPendingActionsSummary
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creating, as: 'creating'
|
||||||
|
property :deleting, as: 'deleting'
|
||||||
|
property :recreating, as: 'recreating'
|
||||||
|
property :restarting, as: 'restarting'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InstanceGroupManagerUpdatePolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :max_surge, as: 'maxSurge', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
|
||||||
|
|
||||||
|
property :max_unavailable, as: 'maxUnavailable', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
|
||||||
|
|
||||||
|
property :min_ready_sec, as: 'minReadySec'
|
||||||
|
property :minimal_action, as: 'minimalAction'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InstanceGroupManagerVersion
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :instance_template, as: 'instanceTemplate'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :target_size, as: 'targetSize', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class InstanceGroupManagersAbandonInstancesRequest
|
class InstanceGroupManagersAbandonInstancesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -3510,6 +3725,194 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Interconnect
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :admin_enabled, as: 'adminEnabled'
|
||||||
|
collection :circuit_infos, as: 'circuitInfos', class: Google::Apis::ComputeBeta::InterconnectCircuitInfo, decorator: Google::Apis::ComputeBeta::InterconnectCircuitInfo::Representation
|
||||||
|
|
||||||
|
property :connection_authorization, as: 'connectionAuthorization'
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :customer_name, as: 'customerName'
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :expected_outages, as: 'expectedOutages', class: Google::Apis::ComputeBeta::InterconnectOutageNotification, decorator: Google::Apis::ComputeBeta::InterconnectOutageNotification::Representation
|
||||||
|
|
||||||
|
property :google_ip_address, as: 'googleIpAddress'
|
||||||
|
property :google_reference_id, as: 'googleReferenceId'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
collection :interconnect_attachments, as: 'interconnectAttachments'
|
||||||
|
property :interconnect_type, as: 'interconnectType'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :link_type, as: 'linkType'
|
||||||
|
property :location, as: 'location'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :noc_contact_email, as: 'nocContactEmail'
|
||||||
|
property :operational_status, as: 'operationalStatus'
|
||||||
|
property :peer_ip_address, as: 'peerIpAddress'
|
||||||
|
property :provisioned_link_count, as: 'provisionedLinkCount'
|
||||||
|
property :requested_link_count, as: 'requestedLinkCount'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :customer_router_ip_address, as: 'customerRouterIpAddress'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :google_reference_id, as: 'googleReferenceId'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :interconnect, as: 'interconnect'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :operational_status, as: 'operationalStatus'
|
||||||
|
property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeBeta::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeBeta::InterconnectAttachmentPrivateInfo::Representation
|
||||||
|
|
||||||
|
property :region, as: 'region'
|
||||||
|
property :router, as: 'router'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentAggregatedList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
hash :items, as: 'items', class: Google::Apis::ComputeBeta::InterconnectAttachmentsScopedList, decorator: Google::Apis::ComputeBeta::InterconnectAttachmentsScopedList::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeBeta::InterconnectAttachment, decorator: Google::Apis::ComputeBeta::InterconnectAttachment::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentPrivateInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :tag8021q, as: 'tag8021q'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentsScopedList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :interconnect_attachments, as: 'interconnectAttachments', class: Google::Apis::ComputeBeta::InterconnectAttachment, decorator: Google::Apis::ComputeBeta::InterconnectAttachment::Representation
|
||||||
|
|
||||||
|
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::InterconnectAttachmentsScopedList::Warning, decorator: Google::Apis::ComputeBeta::InterconnectAttachmentsScopedList::Warning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ComputeBeta::InterconnectAttachmentsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::InterconnectAttachmentsScopedList::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectCircuitInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer_demarc_id, as: 'customerDemarcId'
|
||||||
|
property :google_circuit_id, as: 'googleCircuitId'
|
||||||
|
property :google_demarc_id, as: 'googleDemarcId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeBeta::Interconnect, decorator: Google::Apis::ComputeBeta::Interconnect::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectLocation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :address, as: 'address'
|
||||||
|
property :availability_zone, as: 'availabilityZone'
|
||||||
|
property :city, as: 'city'
|
||||||
|
property :continent, as: 'continent'
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :facility_provider, as: 'facilityProvider'
|
||||||
|
property :facility_provider_facility_id, as: 'facilityProviderFacilityId'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :peeringdb_facility_id, as: 'peeringdbFacilityId'
|
||||||
|
collection :region_infos, as: 'regionInfos', class: Google::Apis::ComputeBeta::InterconnectLocationRegionInfo, decorator: Google::Apis::ComputeBeta::InterconnectLocationRegionInfo::Representation
|
||||||
|
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectLocationList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeBeta::InterconnectLocation, decorator: Google::Apis::ComputeBeta::InterconnectLocation::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectLocationRegionInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :expected_rtt_ms, :numeric_string => true, as: 'expectedRttMs'
|
||||||
|
property :location_presence, as: 'locationPresence'
|
||||||
|
property :region, as: 'region'
|
||||||
|
property :region_key, as: 'regionKey'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InterconnectOutageNotification
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :affected_circuits, as: 'affectedCircuits'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :end_time, :numeric_string => true, as: 'endTime'
|
||||||
|
property :issue_type, as: 'issueType'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :source, as: 'source'
|
||||||
|
property :start_time, :numeric_string => true, as: 'startTime'
|
||||||
|
property :state, as: 'state'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class License
|
class License
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -3527,12 +3930,16 @@ module Google
|
||||||
|
|
||||||
property :counter, as: 'counter', class: Google::Apis::ComputeBeta::LogConfigCounterOptions, decorator: Google::Apis::ComputeBeta::LogConfigCounterOptions::Representation
|
property :counter, as: 'counter', class: Google::Apis::ComputeBeta::LogConfigCounterOptions, decorator: Google::Apis::ComputeBeta::LogConfigCounterOptions::Representation
|
||||||
|
|
||||||
|
property :data_access, as: 'dataAccess', class: Google::Apis::ComputeBeta::LogConfigDataAccessOptions, decorator: Google::Apis::ComputeBeta::LogConfigDataAccessOptions::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogConfigCloudAuditOptions
|
class LogConfigCloudAuditOptions
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :authorization_logging_options, as: 'authorizationLoggingOptions', class: Google::Apis::ComputeBeta::AuthorizationLoggingOptions, decorator: Google::Apis::ComputeBeta::AuthorizationLoggingOptions::Representation
|
||||||
|
|
||||||
property :log_name, as: 'logName'
|
property :log_name, as: 'logName'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -3545,6 +3952,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class LogConfigDataAccessOptions
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :log_mode, as: 'logMode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class MachineType
|
class MachineType
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -3703,6 +4117,8 @@ module Google
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
collection :peerings, as: 'peerings', class: Google::Apis::ComputeBeta::NetworkPeering, decorator: Google::Apis::ComputeBeta::NetworkPeering::Representation
|
collection :peerings, as: 'peerings', class: Google::Apis::ComputeBeta::NetworkPeering, decorator: Google::Apis::ComputeBeta::NetworkPeering::Representation
|
||||||
|
|
||||||
|
property :routing_config, as: 'routingConfig', class: Google::Apis::ComputeBeta::NetworkRoutingConfig, decorator: Google::Apis::ComputeBeta::NetworkRoutingConfig::Representation
|
||||||
|
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
collection :subnetworks, as: 'subnetworks'
|
collection :subnetworks, as: 'subnetworks'
|
||||||
end
|
end
|
||||||
|
@ -3746,6 +4162,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkRoutingConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :routing_mode, as: 'routingMode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class NetworksAddPeeringRequest
|
class NetworksAddPeeringRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -4267,6 +4690,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :ip_range, as: 'ipRange'
|
property :ip_range, as: 'ipRange'
|
||||||
|
property :linked_interconnect_attachment, as: 'linkedInterconnectAttachment'
|
||||||
property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
|
property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
end
|
end
|
||||||
|
@ -4394,6 +4818,59 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SecurityPoliciesList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeBeta::SecurityPolicy, decorator: Google::Apis::ComputeBeta::SecurityPolicy::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::SecurityPolicyRule, decorator: Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
|
||||||
|
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :security_policy, as: 'securityPolicy'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyRule
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :action, as: 'action'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :match, as: 'match', class: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcher, decorator: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcher::Representation
|
||||||
|
|
||||||
|
property :preview, as: 'preview'
|
||||||
|
property :priority, as: 'priority'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyRuleMatcher
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :src_ip_ranges, as: 'srcIpRanges'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class SerialPortOutput
|
class SerialPortOutput
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue