parent
d7098fab9d
commit
28a8318989
2
Gemfile
2
Gemfile
|
@ -26,7 +26,7 @@ end
|
||||||
|
|
||||||
platforms :jruby do
|
platforms :jruby do
|
||||||
group :development do
|
group :development do
|
||||||
gem 'jruby-openssl'
|
gem 'jruby-openssl'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
2556
api_names.yaml
2556
api_names.yaml
File diff suppressed because it is too large
Load Diff
2556
api_names_out.yaml
2556
api_names_out.yaml
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/guides/client-access/
|
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
||||||
module Adexchangebuyer2V2beta1
|
module Adexchangebuyer2V2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20170118'
|
REVISION = '20170123'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -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 = '20170118'
|
REVISION = '20170123'
|
||||||
|
|
||||||
# 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 = '20170118'
|
REVISION = '20170123'
|
||||||
|
|
||||||
# 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/android/work/play/emm-api
|
# @see https://developers.google.com/android/work/play/emm-api
|
||||||
module AndroidenterpriseV1
|
module AndroidenterpriseV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170111'
|
REVISION = '20170117'
|
||||||
|
|
||||||
# Manage corporate Android devices
|
# Manage corporate Android devices
|
||||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||||
|
|
|
@ -2214,52 +2214,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# This method has been deprecated. To programmatically approve applications, you
|
|
||||||
# must use the iframe mechanism via the generateApprovalUrl and approve
|
|
||||||
# methods of the Products resource. For more information, see the Play EMM API
|
|
||||||
# usage requirements.
|
|
||||||
# The updatePermissions method (deprecated) updates the set of Android app
|
|
||||||
# permissions for this app that have been accepted by the enterprise.
|
|
||||||
# @param [String] enterprise_id
|
|
||||||
# The ID of the enterprise.
|
|
||||||
# @param [String] product_id
|
|
||||||
# The ID of the product.
|
|
||||||
# @param [Google::Apis::AndroidenterpriseV1::ProductPermissions] product_permissions_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::ProductPermissions] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:put, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
|
||||||
command.request_object = product_permissions_object
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
|
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
||||||
command.params['productId'] = product_id unless product_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
|
|
||||||
|
|
||||||
# Removes and invalidates the specified credentials for the service account
|
# Removes and invalidates the specified credentials for the service account
|
||||||
# associated with this enterprise. The calling service account must have been
|
# associated with this enterprise. The calling service account must have been
|
||||||
# retrieved by calling Enterprises.GetServiceAccount and must have been set as
|
# retrieved by calling Enterprises.GetServiceAccount and must have been set as
|
||||||
|
|
|
@ -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 = '20170111'
|
REVISION = '20170119'
|
||||||
|
|
||||||
# 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/container-builder/docs/
|
# @see https://cloud.google.com/container-builder/docs/
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170119'
|
REVISION = '20170124'
|
||||||
|
|
||||||
# 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,13 +22,13 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
|
|
||||||
class Status
|
class ListBuildsResponse
|
||||||
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 BuildOperationMetadata
|
class ListOperationsResponse
|
||||||
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,37 +40,7 @@ module Google
|
||||||
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 Operation
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuildTrigger
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class 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 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
|
||||||
|
@ -88,7 +58,25 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Build
|
class BuildOperationMetadata
|
||||||
|
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 CancelOperationRequest
|
||||||
|
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
|
||||||
|
@ -100,25 +88,7 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class CancelBuildRequest
|
class BuiltImage
|
||||||
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 FileHashes
|
|
||||||
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
|
||||||
|
@ -130,37 +100,68 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildOptions
|
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 ListBuildsResponse
|
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 Status
|
class Status
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BuildTrigger
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Build
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CancelBuildRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListBuildsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :code, as: 'code'
|
property :next_page_token, as: 'nextPageToken'
|
||||||
collection :details, as: 'details'
|
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
property :message, as: 'message'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildOperationMetadata
|
class ListOperationsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -175,64 +176,11 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SourceProvenance
|
class BuildOptions
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
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
|
|
||||||
|
|
||||||
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Operation
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
|
||||||
|
|
||||||
property :done, as: 'done'
|
|
||||||
hash :metadata, as: 'metadata'
|
|
||||||
hash :response, as: 'response'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuildTrigger
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :id, as: 'id'
|
|
||||||
property :description, as: 'description'
|
|
||||||
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
||||||
|
|
||||||
property :disabled, as: 'disabled'
|
|
||||||
property :create_time, as: 'createTime'
|
|
||||||
property :filename, as: 'filename'
|
|
||||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuiltImage
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :digest, as: 'digest'
|
|
||||||
property :name, as: 'name'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class HashProp
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :value, :base64 => true, as: 'value'
|
|
||||||
property :type, as: 'type'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class CancelOperationRequest
|
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||||
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -240,8 +188,8 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :bucket, as: 'bucket'
|
property :bucket, as: 'bucket'
|
||||||
property :generation, as: 'generation'
|
|
||||||
property :object, as: 'object'
|
property :object, as: 'object'
|
||||||
|
property :generation, as: 'generation'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -254,31 +202,41 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Build
|
class BuildOperationMetadata
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :id, as: 'id'
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
|
||||||
|
|
||||||
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
end
|
||||||
|
end
|
||||||
|
|
||||||
property :status, as: 'status'
|
class SourceProvenance
|
||||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
||||||
|
|
||||||
property :finish_time, as: 'finishTime'
|
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
property :timeout, as: 'timeout'
|
|
||||||
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
|
||||||
|
|
||||||
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||||
|
|
||||||
property :create_time, as: 'createTime'
|
end
|
||||||
property :log_url, as: 'logUrl'
|
end
|
||||||
property :status_detail, as: 'statusDetail'
|
|
||||||
collection :images, as: 'images'
|
class CancelOperationRequest
|
||||||
property :start_time, as: 'startTime'
|
# @private
|
||||||
property :build_trigger_id, as: 'buildTriggerId'
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :logs_bucket, as: 'logsBucket'
|
end
|
||||||
property :project_id, as: 'projectId'
|
end
|
||||||
|
|
||||||
|
class Operation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -290,18 +248,43 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CancelBuildRequest
|
class BuiltImage
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :digest, as: 'digest'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListOperationsResponse
|
class BuildStep
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :name, as: 'name'
|
||||||
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
|
property :entrypoint, as: 'entrypoint'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :dir, as: 'dir'
|
||||||
|
collection :wait_for, as: 'waitFor'
|
||||||
|
collection :env, as: 'env'
|
||||||
|
collection :args, as: 'args'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RepoSource
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :tag_name, as: 'tagName'
|
||||||
|
property :commit_sha, as: 'commitSha'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :repo_name, as: 'repoName'
|
||||||
|
property :branch_name, as: 'branchName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HashProp
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :value, :base64 => true, as: 'value'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -313,27 +296,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RepoSource
|
class Status
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :repo_name, as: 'repoName'
|
property :message, as: 'message'
|
||||||
property :tag_name, as: 'tagName'
|
collection :details, as: 'details'
|
||||||
property :project_id, as: 'projectId'
|
property :code, as: 'code'
|
||||||
property :branch_name, as: 'branchName'
|
|
||||||
property :commit_sha, as: 'commitSha'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class BuildStep
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :id, as: 'id'
|
|
||||||
collection :env, as: 'env'
|
|
||||||
collection :wait_for, as: 'waitFor'
|
|
||||||
collection :args, as: 'args'
|
|
||||||
property :entrypoint, as: 'entrypoint'
|
|
||||||
property :name, as: 'name'
|
|
||||||
property :dir, as: 'dir'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -343,20 +311,52 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class BuildOptions
|
class BuildTrigger
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
property :create_time, as: 'createTime'
|
||||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
property :disabled, as: 'disabled'
|
||||||
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
|
|
||||||
|
property :filename, as: 'filename'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
|
||||||
|
property :description, as: 'description'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListBuildsResponse
|
class Build
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :next_page_token, as: 'nextPageToken'
|
property :create_time, as: 'createTime'
|
||||||
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
||||||
|
|
||||||
|
collection :images, as: 'images'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
property :log_url, as: 'logUrl'
|
||||||
|
property :finish_time, as: 'finishTime'
|
||||||
|
property :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 :status_detail, as: 'statusDetail'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :timeout, as: 'timeout'
|
||||||
|
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
||||||
|
|
||||||
|
property :logs_bucket, as: 'logsBucket'
|
||||||
|
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
||||||
|
|
||||||
|
property :build_trigger_id, as: 'buildTriggerId'
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CancelBuildRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -46,224 +46,17 @@ module Google
|
||||||
super('https://cloudbuild.googleapis.com/', '')
|
super('https://cloudbuild.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a new BuildTrigger.
|
# Cancels a requested build in progress.
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project for which to configure automatic builds.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.request_object = build_trigger_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Gets information about a BuildTrigger.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to get.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Lists existing BuildTrigger.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project for which to list BuildTriggers.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes an BuildTrigger by its project ID and trigger ID.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to delete.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Empty]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Updates an BuildTrigger by its project ID and trigger ID.
|
|
||||||
# This API is experimental.
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project that owns the trigger.
|
|
||||||
# @param [String] trigger_id
|
|
||||||
# ID of the BuildTrigger to update.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.request_object = build_trigger_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Starts a build with the specified configuration.
|
|
||||||
# The long-running Operation returned by this method will include the ID of
|
|
||||||
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
|
||||||
# success or failure).
|
|
||||||
# @param [String] project_id
|
|
||||||
# ID of the project.
|
|
||||||
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Operation]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.request_object = build_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# 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
|
# @param [String] project_id
|
||||||
# ID of the project.
|
# ID of the project.
|
||||||
# @param [String] id
|
# @param [String] id
|
||||||
# ID of the build.
|
# 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
|
# @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
|
||||||
#
|
#
|
||||||
|
@ -276,14 +69,51 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
||||||
|
command.request_object = cancel_build_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns information about a previously requested build.
|
||||||
|
# The Build that is returned includes its status (e.g., success or failure,
|
||||||
|
# or in-progress), and timing information.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] id
|
||||||
|
# ID of the build.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.params['id'] = id unless id.nil?
|
command.params['id'] = id unless id.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['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
|
||||||
|
|
||||||
|
@ -292,17 +122,17 @@ module Google
|
||||||
# successfully or unsuccessfully.
|
# successfully or unsuccessfully.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# ID of the project.
|
# ID of the project.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token to provide to skip to a particular spot in the list.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Number of results to return in the list.
|
# Number of results to return in the list.
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# The raw filter text to constrain the results.
|
# The raw filter text to constrain the results.
|
||||||
# @param [String] page_token
|
# @param [String] fields
|
||||||
# Token to provide to skip to a particular spot in the list.
|
# 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
|
||||||
#
|
#
|
||||||
|
@ -315,65 +145,31 @@ 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_builds(project_id, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.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['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
|
||||||
|
|
||||||
# Cancels a requested build in progress.
|
# 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
|
# @param [String] project_id
|
||||||
# ID of the project.
|
# ID of the project.
|
||||||
# @param [String] id
|
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
||||||
# ID of the build.
|
# @param [String] fields
|
||||||
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
# 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
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::CloudbuildV1::Build]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
|
||||||
command.request_object = cancel_build_request_object
|
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
|
||||||
command.params['id'] = id unless id.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Gets the latest state of a long-running operation. Clients can use this
|
|
||||||
# method to poll the operation result at intervals as recommended by the API
|
|
||||||
# service.
|
|
||||||
# @param [String] name
|
|
||||||
# The name of the operation resource.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -386,55 +182,185 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
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_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
command.params['name'] = name unless name.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists operations that match the specified filter in the request. If the
|
# Creates a new BuildTrigger.
|
||||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
# This API is experimental.
|
||||||
# NOTE: the `name` binding below allows API services to override the binding
|
# @param [String] project_id
|
||||||
# to use different resource name schemes, such as `users/*/operations`.
|
# ID of the project for which to configure automatic builds.
|
||||||
# @param [String] name
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
||||||
# The name of the operation collection.
|
# @param [String] fields
|
||||||
# @param [Fixnum] page_size
|
# Selector specifying which fields to include in a partial response.
|
||||||
# The standard list page size.
|
|
||||||
# @param [String] filter
|
|
||||||
# The standard list filter.
|
|
||||||
# @param [String] page_token
|
|
||||||
# The standard list page token.
|
|
||||||
# @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::CloudbuildV1::ListOperationsResponse] parsed result object
|
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
#
|
#
|
||||||
# @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_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
command.request_object = build_trigger_object
|
||||||
command.params['name'] = name unless name.nil?
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
command.query['filter'] = filter unless filter.nil?
|
command.params['projectId'] = project_id unless project_id.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)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes an BuildTrigger by its project ID and trigger ID.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to delete.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Empty]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets information about a BuildTrigger.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to get.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists existing BuildTrigger.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project for which to list BuildTriggers.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates an BuildTrigger by its project ID and trigger ID.
|
||||||
|
# This API is experimental.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project that owns the trigger.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the BuildTrigger to update.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.request_object = build_trigger_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -451,11 +377,11 @@ module Google
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation resource to be cancelled.
|
# The name of the operation resource to be cancelled.
|
||||||
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -468,15 +394,89 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
||||||
command.request_object = cancel_operation_request_object
|
command.request_object = cancel_operation_request_object
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||||
command.params['name'] = name unless name.nil?
|
command.params['name'] = name unless name.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists operations that match the specified filter in the request. If the
|
||||||
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||||
|
# NOTE: the `name` binding below allows API services to override the binding
|
||||||
|
# to use different resource name schemes, such as `users/*/operations`.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation collection.
|
||||||
|
# @param [String] filter
|
||||||
|
# The standard list filter.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The standard list page token.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The standard list page size.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets the latest state of a long-running operation. Clients can use this
|
||||||
|
# method to poll the operation result at intervals as recommended by the API
|
||||||
|
# service.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the operation resource.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170118'
|
REVISION = '20170122'
|
||||||
|
|
||||||
# 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,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1beta1
|
module CloudresourcemanagerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20170118'
|
REVISION = '20170122'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/dfareporting_v2_7/service.rb'
|
||||||
|
require 'google/apis/dfareporting_v2_7/classes.rb'
|
||||||
|
require 'google/apis/dfareporting_v2_7/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# DCM/DFA Reporting And Trafficking API
|
||||||
|
#
|
||||||
|
# Manages your DoubleClick Campaign Manager ad campaigns and reports.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/doubleclick-advertisers/
|
||||||
|
module DfareportingV2_7
|
||||||
|
VERSION = 'V2_7'
|
||||||
|
REVISION = '20161027'
|
||||||
|
|
||||||
|
# Manage DoubleClick Digital Marketing conversions
|
||||||
|
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
|
||||||
|
|
||||||
|
# View and manage DoubleClick for Advertisers reports
|
||||||
|
AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting'
|
||||||
|
|
||||||
|
# View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns
|
||||||
|
AUTH_DFATRAFFICKING = 'https://www.googleapis.com/auth/dfatrafficking'
|
||||||
|
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
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/cloud-dns
|
# @see https://developers.google.com/cloud-dns
|
||||||
module DnsV1
|
module DnsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170102'
|
REVISION = '20170118'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/cloud-dns
|
# @see https://developers.google.com/cloud-dns
|
||||||
module DnsV2beta1
|
module DnsV2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20170102'
|
REVISION = '20170118'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/games/services
|
# @see https://developers.google.com/games/services
|
||||||
module GamesConfigurationV1configuration
|
module GamesConfigurationV1configuration
|
||||||
VERSION = 'V1configuration'
|
VERSION = 'V1configuration'
|
||||||
REVISION = '20170111'
|
REVISION = '20170119'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/games/services
|
# @see https://developers.google.com/games/services
|
||||||
module GamesManagementV1management
|
module GamesManagementV1management
|
||||||
VERSION = 'V1management'
|
VERSION = 'V1management'
|
||||||
REVISION = '20170111'
|
REVISION = '20170119'
|
||||||
|
|
||||||
# Share your Google+ profile information and view and manage your game activity
|
# Share your Google+ profile information and view and manage your game activity
|
||||||
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/games/services/
|
# @see https://developers.google.com/games/services/
|
||||||
module GamesV1
|
module GamesV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170111'
|
REVISION = '20170119'
|
||||||
|
|
||||||
# View and manage its own configuration data in your Google Drive
|
# View and manage its own configuration data in your Google Drive
|
||||||
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
|
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,54 +22,6 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module LoggingV2beta1
|
module LoggingV2beta1
|
||||||
|
|
||||||
class ListLogMetricsResponse
|
|
||||||
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 LogEntry
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SourceLocation
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListLogEntriesRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class RequestLog
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ListMonitoredResourceDescriptorsResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SourceReference
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class LogMetric
|
class LogMetric
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -112,13 +64,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListSinksResponse
|
class HttpRequest
|
||||||
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 HttpRequest
|
class ListSinksResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -155,128 +107,60 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListLogMetricsResponse
|
class ListLogMetricsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2beta1::LogMetric, decorator: Google::Apis::LoggingV2beta1::LogMetric::Representation
|
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
class Empty
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogEntry
|
class LogEntry
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :timestamp, as: 'timestamp'
|
|
||||||
property :log_name, as: 'logName'
|
|
||||||
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation
|
|
||||||
|
|
||||||
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
|
||||||
hash :json_payload, as: 'jsonPayload'
|
|
||||||
property :insert_id, as: 'insertId'
|
|
||||||
property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation
|
|
||||||
|
|
||||||
property :text_payload, as: 'textPayload'
|
|
||||||
hash :proto_payload, as: 'protoPayload'
|
|
||||||
property :trace, as: 'trace'
|
|
||||||
hash :labels, as: 'labels'
|
|
||||||
property :severity, as: 'severity'
|
|
||||||
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2beta1::LogEntrySourceLocation::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class SourceLocation
|
class SourceLocation
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :line, as: 'line'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :file, as: 'file'
|
|
||||||
property :function_name, as: 'functionName'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListLogEntriesRequest
|
class ListLogEntriesRequest
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :project_ids, as: 'projectIds'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :filter, as: 'filter'
|
|
||||||
property :page_token, as: 'pageToken'
|
|
||||||
property :page_size, as: 'pageSize'
|
|
||||||
property :order_by, as: 'orderBy'
|
|
||||||
collection :resource_names, as: 'resourceNames'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class RequestLog
|
class RequestLog
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :nickname, as: 'nickname'
|
|
||||||
property :status, as: 'status'
|
|
||||||
property :resource, as: 'resource'
|
|
||||||
property :pending_time, as: 'pendingTime'
|
|
||||||
property :task_name, as: 'taskName'
|
|
||||||
property :url_map_entry, as: 'urlMapEntry'
|
|
||||||
property :instance_index, as: 'instanceIndex'
|
|
||||||
property :host, as: 'host'
|
|
||||||
property :finished, as: 'finished'
|
|
||||||
property :http_version, as: 'httpVersion'
|
|
||||||
property :start_time, as: 'startTime'
|
|
||||||
property :latency, as: 'latency'
|
|
||||||
property :ip, as: 'ip'
|
|
||||||
property :app_id, as: 'appId'
|
|
||||||
property :app_engine_release, as: 'appEngineRelease'
|
|
||||||
property :method_prop, as: 'method'
|
|
||||||
property :cost, as: 'cost'
|
|
||||||
property :instance_id, as: 'instanceId'
|
|
||||||
property :mega_cycles, as: 'megaCycles'
|
|
||||||
property :first, as: 'first'
|
|
||||||
property :version_id, as: 'versionId'
|
|
||||||
property :module_id, as: 'moduleId'
|
|
||||||
property :end_time, as: 'endTime'
|
|
||||||
property :user_agent, as: 'userAgent'
|
|
||||||
property :was_loading_request, as: 'wasLoadingRequest'
|
|
||||||
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation
|
|
||||||
|
|
||||||
property :response_size, as: 'responseSize'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :trace_id, as: 'traceId'
|
|
||||||
collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
|
|
||||||
|
|
||||||
property :task_queue_name, as: 'taskQueueName'
|
|
||||||
property :referrer, as: 'referrer'
|
|
||||||
property :request_id, as: 'requestId'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListMonitoredResourceDescriptorsResponse
|
class ListMonitoredResourceDescriptorsResponse
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation
|
|
||||||
|
|
||||||
end
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SourceReference
|
class SourceReference
|
||||||
# @private
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :repository, as: 'repository'
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
property :revision_id, as: 'revisionId'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogMetric
|
class LogMetric
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :name, as: 'name'
|
|
||||||
property :description, as: 'description'
|
|
||||||
property :version, as: 'version'
|
property :version, as: 'version'
|
||||||
property :filter, as: 'filter'
|
property :filter, as: 'filter'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :description, as: 'description'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -307,26 +191,26 @@ module Google
|
||||||
class LogSink
|
class LogSink
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :writer_identity, as: 'writerIdentity'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
property :output_version_format, as: 'outputVersionFormat'
|
property :output_version_format, as: 'outputVersionFormat'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :destination, as: 'destination'
|
|
||||||
property :filter, as: 'filter'
|
property :filter, as: 'filter'
|
||||||
|
property :destination, as: 'destination'
|
||||||
property :end_time, as: 'endTime'
|
property :end_time, as: 'endTime'
|
||||||
property :start_time, as: 'startTime'
|
|
||||||
property :writer_identity, as: 'writerIdentity'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class WriteLogEntriesRequest
|
class WriteLogEntriesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
|
||||||
|
|
||||||
property :log_name, as: 'logName'
|
property :log_name, as: 'logName'
|
||||||
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
|
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
|
||||||
|
|
||||||
property :partial_success, as: 'partialSuccess'
|
property :partial_success, as: 'partialSuccess'
|
||||||
hash :labels, as: 'labels'
|
|
||||||
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -338,23 +222,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ListSinksResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
|
|
||||||
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class HttpRequest
|
class HttpRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :request_size, as: 'requestSize'
|
|
||||||
property :response_size, as: 'responseSize'
|
|
||||||
property :request_url, as: 'requestUrl'
|
|
||||||
property :remote_ip, as: 'remoteIp'
|
|
||||||
property :server_ip, as: 'serverIp'
|
|
||||||
property :cache_lookup, as: 'cacheLookup'
|
property :cache_lookup, as: 'cacheLookup'
|
||||||
property :cache_hit, as: 'cacheHit'
|
property :cache_hit, as: 'cacheHit'
|
||||||
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
|
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
|
||||||
|
@ -364,36 +234,50 @@ module Google
|
||||||
property :user_agent, as: 'userAgent'
|
property :user_agent, as: 'userAgent'
|
||||||
property :cache_fill_bytes, as: 'cacheFillBytes'
|
property :cache_fill_bytes, as: 'cacheFillBytes'
|
||||||
property :request_method, as: 'requestMethod'
|
property :request_method, as: 'requestMethod'
|
||||||
|
property :response_size, as: 'responseSize'
|
||||||
|
property :request_size, as: 'requestSize'
|
||||||
|
property :request_url, as: 'requestUrl'
|
||||||
|
property :server_ip, as: 'serverIp'
|
||||||
|
property :remote_ip, as: 'remoteIp'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListSinksResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class LabelDescriptor
|
class LabelDescriptor
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :value_type, as: 'valueType'
|
property :value_type, as: 'valueType'
|
||||||
property :key, as: 'key'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class MonitoredResourceDescriptor
|
class MonitoredResourceDescriptor
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :type, as: 'type'
|
|
||||||
collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
|
|
||||||
|
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :display_name, as: 'displayName'
|
property :display_name, as: 'displayName'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
|
property :type, as: 'type'
|
||||||
|
collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogEntrySourceLocation
|
class LogEntrySourceLocation
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line, as: 'line'
|
||||||
property :file, as: 'file'
|
property :file, as: 'file'
|
||||||
property :function, as: 'function'
|
property :function, as: 'function'
|
||||||
property :line, as: 'line'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -416,6 +300,122 @@ module Google
|
||||||
property :time, as: 'time'
|
property :time, as: 'time'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListLogMetricsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2beta1::LogMetric, decorator: Google::Apis::LoggingV2beta1::LogMetric::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class LogEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :trace, as: 'trace'
|
||||||
|
property :severity, as: 'severity'
|
||||||
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2beta1::LogEntrySourceLocation::Representation
|
||||||
|
|
||||||
|
property :timestamp, as: 'timestamp'
|
||||||
|
property :log_name, as: 'logName'
|
||||||
|
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation
|
||||||
|
|
||||||
|
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
|
||||||
|
|
||||||
|
hash :json_payload, as: 'jsonPayload'
|
||||||
|
property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation
|
||||||
|
|
||||||
|
property :insert_id, as: 'insertId'
|
||||||
|
property :text_payload, as: 'textPayload'
|
||||||
|
hash :proto_payload, as: 'protoPayload'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceLocation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :line, as: 'line'
|
||||||
|
property :file, as: 'file'
|
||||||
|
property :function_name, as: 'functionName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLogEntriesRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :order_by, as: 'orderBy'
|
||||||
|
collection :resource_names, as: 'resourceNames'
|
||||||
|
property :filter, as: 'filter'
|
||||||
|
collection :project_ids, as: 'projectIds'
|
||||||
|
property :page_token, as: 'pageToken'
|
||||||
|
property :page_size, as: 'pageSize'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RequestLog
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :version_id, as: 'versionId'
|
||||||
|
property :module_id, as: 'moduleId'
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :user_agent, as: 'userAgent'
|
||||||
|
property :was_loading_request, as: 'wasLoadingRequest'
|
||||||
|
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation
|
||||||
|
|
||||||
|
property :response_size, as: 'responseSize'
|
||||||
|
property :trace_id, as: 'traceId'
|
||||||
|
collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
|
||||||
|
|
||||||
|
property :referrer, as: 'referrer'
|
||||||
|
property :task_queue_name, as: 'taskQueueName'
|
||||||
|
property :request_id, as: 'requestId'
|
||||||
|
property :nickname, as: 'nickname'
|
||||||
|
property :resource, as: 'resource'
|
||||||
|
property :pending_time, as: 'pendingTime'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :task_name, as: 'taskName'
|
||||||
|
property :url_map_entry, as: 'urlMapEntry'
|
||||||
|
property :instance_index, as: 'instanceIndex'
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :finished, as: 'finished'
|
||||||
|
property :http_version, as: 'httpVersion'
|
||||||
|
property :start_time, as: 'startTime'
|
||||||
|
property :latency, as: 'latency'
|
||||||
|
property :ip, as: 'ip'
|
||||||
|
property :app_id, as: 'appId'
|
||||||
|
property :app_engine_release, as: 'appEngineRelease'
|
||||||
|
property :method_prop, as: 'method'
|
||||||
|
property :cost, as: 'cost'
|
||||||
|
property :instance_id, as: 'instanceId'
|
||||||
|
property :mega_cycles, as: 'megaCycles'
|
||||||
|
property :first, as: 'first'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListMonitoredResourceDescriptorsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SourceReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repository, as: 'repository'
|
||||||
|
property :revision_id, as: 'revisionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,100 +32,20 @@ module Google
|
||||||
#
|
#
|
||||||
# @see https://cloud.google.com/logging/docs/
|
# @see https://cloud.google.com/logging/docs/
|
||||||
class LoggingService < Google::Apis::Core::BaseService
|
class LoggingService < Google::Apis::Core::BaseService
|
||||||
# @return [String]
|
|
||||||
# API key. Your API key identifies your project and provides you with API access,
|
|
||||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
||||||
attr_accessor :key
|
|
||||||
|
|
||||||
# @return [String]
|
# @return [String]
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
attr_accessor :quota_user
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
# @return [String]
|
||||||
|
# API key. Your API key identifies your project and provides you with API access,
|
||||||
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://logging.googleapis.com/', '')
|
super('https://logging.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
||||||
# entries.
|
|
||||||
# @param [String] log_name
|
|
||||||
# Required. The resource name of the log to delete:
|
|
||||||
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
||||||
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
||||||
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
||||||
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
||||||
# 2Factivity". For more information about log names, see LogEntry.
|
|
||||||
# @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::LoggingV2beta1::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::LoggingV2beta1::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_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
|
||||||
command.params['logName'] = log_name unless log_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 logs in projects or organizations. Only logs that have entries are
|
|
||||||
# listed.
|
|
||||||
# @param [String] parent
|
|
||||||
# Required. The resource name that owns the logs:
|
|
||||||
# "projects/[PROJECT_ID]"
|
|
||||||
# "organizations/[ORGANIZATION_ID]"
|
|
||||||
# @param [Fixnum] page_size
|
|
||||||
# Optional. The maximum number of results to return from this request. Non-
|
|
||||||
# positive values are ignored. The presence of nextPageToken in the response
|
|
||||||
# indicates that more results might be available.
|
|
||||||
# @param [String] page_token
|
|
||||||
# Optional. If present, then retrieve the next batch of results from the
|
|
||||||
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
||||||
# 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::LoggingV2beta1::ListLogsResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
|
||||||
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
|
|
||||||
|
|
||||||
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Optional. If present, then retrieve the next batch of results from the
|
# Optional. If present, then retrieve the next batch of results from the
|
||||||
|
@ -136,11 +56,11 @@ module Google
|
||||||
# Optional. The maximum number of results to return from this request. Non-
|
# Optional. The maximum number of results to return from this request. Non-
|
||||||
# positive values are ignored. The presence of nextPageToken in the response
|
# positive values are ignored. The presence of nextPageToken in the response
|
||||||
# indicates that more results might be available.
|
# indicates that more results might be available.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -153,14 +73,50 @@ 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_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
|
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
|
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
||||||
|
# entries.
|
||||||
|
# @param [String] log_name
|
||||||
|
# Required. The resource name of the log to delete:
|
||||||
|
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
||||||
|
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
||||||
|
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
||||||
|
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
||||||
|
# 2Factivity". For more information about log names, see LogEntry.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to 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::LoggingV2beta1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LoggingV2beta1::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_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
||||||
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
||||||
|
command.params['logName'] = log_name unless log_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
|
||||||
|
|
||||||
|
@ -179,11 +135,11 @@ module Google
|
||||||
# Optional. The maximum number of results to return from this request. Non-
|
# Optional. The maximum number of results to return from this request. Non-
|
||||||
# positive values are ignored. The presence of nextPageToken in the response
|
# positive values are ignored. The presence of nextPageToken in the response
|
||||||
# indicates that more results might be available.
|
# indicates that more results might be available.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -196,62 +152,26 @@ 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_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_organization_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
||||||
command.params['parent'] = parent unless parent.nil?
|
command.params['parent'] = parent unless parent.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['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)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
||||||
# entries.
|
|
||||||
# @param [String] log_name
|
|
||||||
# Required. The resource name of the log to delete:
|
|
||||||
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
||||||
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
||||||
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
||||||
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
||||||
# 2Factivity". For more information about log names, see LogEntry.
|
|
||||||
# @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::LoggingV2beta1::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::LoggingV2beta1::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_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
|
||||||
command.params['logName'] = log_name unless log_name.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 log entries. Use this method to retrieve log entries from Stackdriver
|
# Lists log entries. Use this method to retrieve log entries from Stackdriver
|
||||||
# Logging. For ways to export log entries, see Exporting Logs.
|
# Logging. For ways to export log entries, see Exporting Logs.
|
||||||
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
|
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_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
|
||||||
#
|
#
|
||||||
|
@ -264,25 +184,25 @@ 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_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v2beta1/entries:list', options)
|
command = make_simple_command(:post, 'v2beta1/entries:list', options)
|
||||||
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
|
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
|
||||||
command.request_object = list_log_entries_request_object
|
command.request_object = list_log_entries_request_object
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Writes log entries to Stackdriver Logging. All log entries are written by this
|
# Writes log entries to Stackdriver Logging. All log entries are written by this
|
||||||
# method.
|
# method.
|
||||||
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
|
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_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
|
||||||
#
|
#
|
||||||
|
@ -295,14 +215,50 @@ 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 write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v2beta1/entries:write', options)
|
command = make_simple_command(:post, 'v2beta1/entries:write', options)
|
||||||
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
|
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
|
||||||
command.request_object = write_log_entries_request_object
|
command.request_object = write_log_entries_request_object
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
|
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
||||||
|
# entries.
|
||||||
|
# @param [String] log_name
|
||||||
|
# Required. The resource name of the log to delete:
|
||||||
|
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
||||||
|
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
||||||
|
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
||||||
|
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
||||||
|
# 2Factivity". For more information about log names, see LogEntry.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to 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::LoggingV2beta1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LoggingV2beta1::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_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
||||||
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
||||||
|
command.params['logName'] = log_name unless log_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
|
||||||
|
|
||||||
|
@ -321,11 +277,11 @@ module Google
|
||||||
# Optional. The maximum number of results to return from this request. Non-
|
# Optional. The maximum number of results to return from this request. Non-
|
||||||
# positive values are ignored. The presence of nextPageToken in the response
|
# positive values are ignored. The presence of nextPageToken in the response
|
||||||
# indicates that more results might be available.
|
# indicates that more results might be available.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -338,51 +294,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_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
||||||
command.params['parent'] = parent unless parent.nil?
|
command.params['parent'] = parent unless parent.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['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)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
||||||
# entries.
|
|
||||||
# @param [String] log_name
|
|
||||||
# Required. The resource name of the log to delete:
|
|
||||||
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
||||||
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
||||||
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
||||||
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
||||||
# 2Factivity". For more information about log names, see LogEntry.
|
|
||||||
# @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::LoggingV2beta1::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::LoggingV2beta1::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_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
|
||||||
command.params['logName'] = log_name unless log_name.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
|
||||||
|
|
||||||
|
@ -395,11 +315,11 @@ module Google
|
||||||
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
||||||
# It is an error if the sink does not exist. Example: "projects/my-project-id/
|
# It is an error if the sink does not exist. Example: "projects/my-project-id/
|
||||||
# sinks/my-sink-id". It is an error if the sink does not exist.
|
# sinks/my-sink-id". It is an error if the sink does not exist.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -412,13 +332,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_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
|
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
||||||
command.params['sinkName'] = sink_name unless sink_name.nil?
|
command.params['sinkName'] = sink_name unless sink_name.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -435,11 +355,11 @@ module Google
|
||||||
# Optional. The maximum number of results to return from this request. Non-
|
# Optional. The maximum number of results to return from this request. Non-
|
||||||
# positive values are ignored. The presence of nextPageToken in the response
|
# positive values are ignored. The presence of nextPageToken in the response
|
||||||
# indicates that more results might be available.
|
# indicates that more results might be available.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -452,15 +372,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_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
|
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
|
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
|
||||||
command.params['parent'] = parent unless parent.nil?
|
command.params['parent'] = parent unless parent.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -470,11 +390,11 @@ module Google
|
||||||
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
||||||
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
||||||
# Example: "projects/my-project-id/sinks/my-sink-id".
|
# Example: "projects/my-project-id/sinks/my-sink-id".
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -487,13 +407,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 get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
|
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
||||||
command.params['sinkName'] = sink_name unless sink_name.nil?
|
command.params['sinkName'] = sink_name unless sink_name.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -519,11 +439,11 @@ module Google
|
||||||
# If the old value was false and the new value is true, then writer_identity is
|
# If the old value was false and the new value is true, then writer_identity is
|
||||||
# changed to a unique service account.
|
# changed to a unique service account.
|
||||||
# It is an error if the old value was true and the new value is false.
|
# It is an error if the old value was true and the new value is false.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -536,7 +456,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
|
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
|
||||||
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
||||||
command.request_object = log_sink_object
|
command.request_object = log_sink_object
|
||||||
|
@ -544,8 +464,8 @@ module Google
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
||||||
command.params['sinkName'] = sink_name unless sink_name.nil?
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
||||||
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -570,11 +490,11 @@ module Google
|
||||||
# resource such as an organization, then the value of writer_identity will be a
|
# resource such as an organization, then the value of writer_identity will be a
|
||||||
# unique service account used only for exports from the new sink. For more
|
# unique service account used only for exports from the new sink. For more
|
||||||
# information, see writer_identity in LogSink.
|
# information, see writer_identity in LogSink.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -587,7 +507,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
|
command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
|
||||||
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
|
||||||
command.request_object = log_sink_object
|
command.request_object = log_sink_object
|
||||||
|
@ -595,8 +515,8 @@ module Google
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
command.response_class = Google::Apis::LoggingV2beta1::LogSink
|
||||||
command.params['parent'] = parent unless parent.nil?
|
command.params['parent'] = parent unless parent.nil?
|
||||||
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -604,11 +524,11 @@ module Google
|
||||||
# @param [String] metric_name
|
# @param [String] metric_name
|
||||||
# The resource name of the metric to delete:
|
# The resource name of the metric to delete:
|
||||||
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -621,13 +541,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_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
|
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
||||||
command.params['metricName'] = metric_name unless metric_name.nil?
|
command.params['metricName'] = metric_name unless metric_name.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -644,11 +564,11 @@ module Google
|
||||||
# Optional. The maximum number of results to return from this request. Non-
|
# Optional. The maximum number of results to return from this request. Non-
|
||||||
# positive values are ignored. The presence of nextPageToken in the response
|
# positive values are ignored. The presence of nextPageToken in the response
|
||||||
# indicates that more results might be available.
|
# indicates that more results might be available.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -661,15 +581,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_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
|
command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
|
||||||
command.params['parent'] = parent unless parent.nil?
|
command.params['parent'] = parent unless parent.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -677,11 +597,11 @@ module Google
|
||||||
# @param [String] metric_name
|
# @param [String] metric_name
|
||||||
# The resource name of the desired metric:
|
# The resource name of the desired metric:
|
||||||
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -694,13 +614,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 get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
|
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
||||||
command.params['metricName'] = metric_name unless metric_name.nil?
|
command.params['metricName'] = metric_name unless metric_name.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -712,11 +632,11 @@ module Google
|
||||||
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
||||||
# new metric is created.
|
# new metric is created.
|
||||||
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_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
|
||||||
#
|
#
|
||||||
|
@ -729,15 +649,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 update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
|
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
|
||||||
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
||||||
command.request_object = log_metric_object
|
command.request_object = log_metric_object
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
||||||
command.params['metricName'] = metric_name unless metric_name.nil?
|
command.params['metricName'] = metric_name unless metric_name.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -747,11 +667,11 @@ module Google
|
||||||
# "projects/[PROJECT_ID]"
|
# "projects/[PROJECT_ID]"
|
||||||
# The new metric must be provided in the request.
|
# The new metric must be provided in the request.
|
||||||
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
|
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_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
|
||||||
#
|
#
|
||||||
|
@ -764,23 +684,103 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
|
command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
|
||||||
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
||||||
command.request_object = log_metric_object
|
command.request_object = log_metric_object
|
||||||
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
|
||||||
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
|
||||||
command.params['parent'] = parent unless parent.nil?
|
command.params['parent'] = parent unless parent.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes all the log entries in a log. The log reappears if it receives new
|
||||||
|
# entries.
|
||||||
|
# @param [String] log_name
|
||||||
|
# Required. The resource name of the log to delete:
|
||||||
|
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
||||||
|
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
||||||
|
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
||||||
|
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
||||||
|
# 2Factivity". For more information about log names, see LogEntry.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to 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::LoggingV2beta1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LoggingV2beta1::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_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
|
||||||
|
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::LoggingV2beta1::Empty
|
||||||
|
command.params['logName'] = log_name unless log_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 logs in projects or organizations. Only logs that have entries are
|
||||||
|
# listed.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required. The resource name that owns the logs:
|
||||||
|
# "projects/[PROJECT_ID]"
|
||||||
|
# "organizations/[ORGANIZATION_ID]"
|
||||||
|
# @param [String] page_token
|
||||||
|
# Optional. If present, then retrieve the next batch of results from the
|
||||||
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
||||||
|
# from the previous response. The values of other method parameters should be
|
||||||
|
# identical to those in the previous call.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Optional. The maximum number of results to return from this request. Non-
|
||||||
|
# positive values are ignored. The presence of nextPageToken in the response
|
||||||
|
# indicates that more results might be available.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to 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::LoggingV2beta1::ListLogsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
|
||||||
|
command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
command.query['key'] = key unless key.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/monitoring/api/
|
# @see https://cloud.google.com/monitoring/api/
|
||||||
module MonitoringV3
|
module MonitoringV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20170120'
|
REVISION = '20170123'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/+/domains/
|
# @see https://developers.google.com/+/domains/
|
||||||
module PlusDomainsV1
|
module PlusDomainsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170118'
|
REVISION = '20170123'
|
||||||
|
|
||||||
# View your circles and the people and pages in them
|
# View your circles and the people and pages in them
|
||||||
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/+/api/
|
# @see https://developers.google.com/+/api/
|
||||||
module PlusV1
|
module PlusV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170118'
|
REVISION = '20170123'
|
||||||
|
|
||||||
# Know the list of people in your circles, your age range, and language
|
# Know the list of people in your circles, your age range, and language
|
||||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||||
|
|
|
@ -27,15 +27,15 @@ module Google
|
||||||
VERSION = 'V4'
|
VERSION = 'V4'
|
||||||
REVISION = '20170117'
|
REVISION = '20170117'
|
||||||
|
|
||||||
# View and manage the files in your Google Drive
|
|
||||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
|
||||||
|
|
||||||
# View the files in your Google Drive
|
# View the files in your Google Drive
|
||||||
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
||||||
|
|
||||||
# View your Google Spreadsheets
|
# View your Google Spreadsheets
|
||||||
AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
|
AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
|
||||||
|
|
||||||
|
# View and manage the files in your Google Drive
|
||||||
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||||
|
|
||||||
# View and manage your spreadsheets in Google Drive
|
# View and manage your spreadsheets in Google Drive
|
||||||
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
|
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
|
||||||
end
|
end
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -46,6 +46,36 @@ module Google
|
||||||
super('https://sheets.googleapis.com/', '')
|
super('https://sheets.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Creates a spreadsheet, returning the newly created spreadsheet.
|
||||||
|
# @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_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::SheetsV4::Spreadsheet] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SheetsV4::Spreadsheet]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v4/spreadsheets', options)
|
||||||
|
command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
||||||
|
command.request_object = spreadsheet_object
|
||||||
|
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
||||||
|
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Returns the spreadsheet at the given ID.
|
# Returns the spreadsheet at the given ID.
|
||||||
# The caller must specify the spreadsheet ID.
|
# The caller must specify the spreadsheet ID.
|
||||||
# By default, data within grids will not be returned.
|
# By default, data within grids will not be returned.
|
||||||
|
@ -69,11 +99,11 @@ module Google
|
||||||
# @param [Boolean] include_grid_data
|
# @param [Boolean] include_grid_data
|
||||||
# True if grid data should be returned.
|
# True if grid data should be returned.
|
||||||
# This parameter is ignored if a field mask was set in the request.
|
# This parameter is ignored if a field mask was set in the request.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -86,45 +116,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 get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
|
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
|
||||||
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
||||||
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||||
command.query['ranges'] = ranges unless ranges.nil?
|
command.query['ranges'] = ranges unless ranges.nil?
|
||||||
command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
|
command.query['includeGridData'] = include_grid_data unless include_grid_data.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)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates a spreadsheet, returning the newly created spreadsheet.
|
|
||||||
# @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_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::SheetsV4::Spreadsheet] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::SheetsV4::Spreadsheet]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v4/spreadsheets', options)
|
|
||||||
command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
|
||||||
command.request_object = spreadsheet_object
|
|
||||||
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
|
||||||
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -147,11 +147,11 @@ module Google
|
||||||
# @param [String] spreadsheet_id
|
# @param [String] spreadsheet_id
|
||||||
# The spreadsheet to apply the updates to.
|
# The spreadsheet to apply the updates to.
|
||||||
# @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
|
# @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_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
|
||||||
#
|
#
|
||||||
|
@ -164,104 +164,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 batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
|
||||||
command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
|
command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
|
||||||
command.request_object = batch_update_spreadsheet_request_object
|
command.request_object = batch_update_spreadsheet_request_object
|
||||||
command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
|
command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
|
||||||
command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
|
command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.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)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Copies a single sheet from a spreadsheet to another spreadsheet.
|
|
||||||
# Returns the properties of the newly created sheet.
|
|
||||||
# @param [String] spreadsheet_id
|
|
||||||
# The ID of the spreadsheet containing the sheet to copy.
|
|
||||||
# @param [Fixnum] sheet_id
|
|
||||||
# The ID of the sheet to copy.
|
|
||||||
# @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_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::SheetsV4::SheetProperties] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::SheetsV4::SheetProperties]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
|
|
||||||
command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
|
|
||||||
command.request_object = copy_sheet_to_another_spreadsheet_request_object
|
|
||||||
command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
|
|
||||||
command.response_class = Google::Apis::SheetsV4::SheetProperties
|
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
||||||
command.params['sheetId'] = sheet_id unless sheet_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?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns one or more ranges of values from a spreadsheet.
|
|
||||||
# The caller must specify the spreadsheet ID and one or more ranges.
|
|
||||||
# @param [String] spreadsheet_id
|
|
||||||
# The ID of the spreadsheet to retrieve data from.
|
|
||||||
# @param [String] value_render_option
|
|
||||||
# How values should be represented in the output.
|
|
||||||
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
|
||||||
# @param [String] date_time_render_option
|
|
||||||
# How dates, times, and durations should be represented in the output.
|
|
||||||
# This is ignored if value_render_option is
|
|
||||||
# FORMATTED_VALUE.
|
|
||||||
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
|
||||||
# @param [Array<String>, String] ranges
|
|
||||||
# The A1 notation of the values to retrieve.
|
|
||||||
# @param [String] major_dimension
|
|
||||||
# The major dimension that results should use.
|
|
||||||
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
|
||||||
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
|
||||||
# `[[1,2],[3,4]]`,
|
|
||||||
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
|
||||||
# `[[1,3],[2,4]]`.
|
|
||||||
# @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::SheetsV4::BatchGetValuesResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def batch_get_spreadsheet_values(spreadsheet_id, value_render_option: nil, date_time_render_option: nil, ranges: nil, major_dimension: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
|
||||||
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
|
||||||
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
||||||
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
|
||||||
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
|
||||||
command.query['ranges'] = ranges unless ranges.nil?
|
|
||||||
command.query['majorDimension'] = major_dimension unless major_dimension.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
|
||||||
|
|
||||||
|
@ -274,11 +185,11 @@ module Google
|
||||||
# @param [String] range
|
# @param [String] range
|
||||||
# The A1 notation of the values to clear.
|
# The A1 notation of the values to clear.
|
||||||
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
|
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_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
|
||||||
#
|
#
|
||||||
|
@ -291,7 +202,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
|
||||||
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
|
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
|
||||||
command.request_object = clear_values_request_object
|
command.request_object = clear_values_request_object
|
||||||
|
@ -299,114 +210,96 @@ module Google
|
||||||
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
|
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||||
command.params['range'] = range unless range.nil?
|
command.params['range'] = range unless range.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Appends values to a spreadsheet. The input range is used to search for
|
# Returns one or more ranges of values from a spreadsheet.
|
||||||
# existing data and find a "table" within that range. Values will be
|
# The caller must specify the spreadsheet ID and one or more ranges.
|
||||||
# appended to the next row of the table, starting with the first column of
|
|
||||||
# the table. See the
|
|
||||||
# [guide](/sheets/guides/values#appending_values)
|
|
||||||
# and
|
|
||||||
# [sample code](/sheets/samples/writing#append_values)
|
|
||||||
# for specific details of how tables are detected and data is appended.
|
|
||||||
# The caller must specify the spreadsheet ID, range, and
|
|
||||||
# a valueInputOption. The `valueInputOption` only
|
|
||||||
# controls how the input data will be added to the sheet (column-wise or
|
|
||||||
# row-wise), it does not influence what cell the data starts being written
|
|
||||||
# to.
|
|
||||||
# @param [String] spreadsheet_id
|
# @param [String] spreadsheet_id
|
||||||
# The ID of the spreadsheet to update.
|
# The ID of the spreadsheet to retrieve data from.
|
||||||
# @param [String] range
|
# @param [Array<String>, String] ranges
|
||||||
# The A1 notation of a range to search for a logical table of data.
|
# The A1 notation of the values to retrieve.
|
||||||
# Values will be appended after the last row of the table.
|
# @param [String] value_render_option
|
||||||
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
# How values should be represented in the output.
|
||||||
# @param [String] value_input_option
|
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
||||||
# How the input data should be interpreted.
|
# @param [String] date_time_render_option
|
||||||
# @param [String] response_date_time_render_option
|
# How dates, times, and durations should be represented in the output.
|
||||||
# Determines how dates, times, and durations in the response should be
|
# This is ignored if value_render_option is
|
||||||
# rendered. This is ignored if response_value_render_option is
|
|
||||||
# FORMATTED_VALUE.
|
# FORMATTED_VALUE.
|
||||||
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
||||||
# @param [Boolean] include_values_in_response
|
# @param [String] major_dimension
|
||||||
# Determines if the update response should include the values
|
# The major dimension that results should use.
|
||||||
# of the cells that were appended. By default, responses
|
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
||||||
# do not include the updated values.
|
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
||||||
# @param [String] response_value_render_option
|
# `[[1,2],[3,4]]`,
|
||||||
# Determines how values in the response should be rendered.
|
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
||||||
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
# `[[1,3],[2,4]]`.
|
||||||
# @param [String] insert_data_option
|
|
||||||
# How the input data should be inserted.
|
|
||||||
# @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::SheetsV4::AppendValuesResponse] parsed result object
|
# @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::SheetsV4::AppendValuesResponse]
|
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
|
||||||
#
|
#
|
||||||
# @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 append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, insert_data_option: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
|
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
||||||
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
||||||
command.request_object = value_range_object
|
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
||||||
command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
|
|
||||||
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
|
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||||
command.params['range'] = range unless range.nil?
|
command.query['ranges'] = ranges unless ranges.nil?
|
||||||
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
||||||
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
||||||
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
||||||
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
|
||||||
command.query['insertDataOption'] = insert_data_option unless insert_data_option.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Clears one or more ranges of values from a spreadsheet.
|
# Sets values in one or more ranges of a spreadsheet.
|
||||||
# The caller must specify the spreadsheet ID and one or more ranges.
|
# The caller must specify the spreadsheet ID,
|
||||||
# Only values are cleared -- all other properties of the cell (such as
|
# a valueInputOption, and one or more
|
||||||
# formatting, data validation, etc..) are kept.
|
# ValueRanges.
|
||||||
# @param [String] spreadsheet_id
|
# @param [String] spreadsheet_id
|
||||||
# The ID of the spreadsheet to update.
|
# The ID of the spreadsheet to update.
|
||||||
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
|
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_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
|
||||||
#
|
#
|
||||||
# @yield [result, err] Result & error if block supplied
|
# @yield [result, err] Result & error if block supplied
|
||||||
# @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
|
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
|
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
|
||||||
#
|
#
|
||||||
# @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_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
|
||||||
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
|
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
|
||||||
command.request_object = batch_clear_values_request_object
|
command.request_object = batch_update_values_request_object
|
||||||
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
|
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
|
||||||
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
|
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -431,11 +324,11 @@ module Google
|
||||||
# `[[1,2],[3,4]]`,
|
# `[[1,2],[3,4]]`,
|
||||||
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
||||||
# `[[1,3],[2,4]]`.
|
# `[[1,3],[2,4]]`.
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -448,7 +341,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
||||||
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
||||||
command.response_class = Google::Apis::SheetsV4::ValueRange
|
command.response_class = Google::Apis::SheetsV4::ValueRange
|
||||||
|
@ -457,8 +350,78 @@ module Google
|
||||||
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
||||||
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
||||||
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
command.query['majorDimension'] = major_dimension unless major_dimension.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Appends values to a spreadsheet. The input range is used to search for
|
||||||
|
# existing data and find a "table" within that range. Values will be
|
||||||
|
# appended to the next row of the table, starting with the first column of
|
||||||
|
# the table. See the
|
||||||
|
# [guide](/sheets/guides/values#appending_values)
|
||||||
|
# and
|
||||||
|
# [sample code](/sheets/samples/writing#append_values)
|
||||||
|
# for specific details of how tables are detected and data is appended.
|
||||||
|
# The caller must specify the spreadsheet ID, range, and
|
||||||
|
# a valueInputOption. The `valueInputOption` only
|
||||||
|
# controls how the input data will be added to the sheet (column-wise or
|
||||||
|
# row-wise), it does not influence what cell the data starts being written
|
||||||
|
# to.
|
||||||
|
# @param [String] spreadsheet_id
|
||||||
|
# The ID of the spreadsheet to update.
|
||||||
|
# @param [String] range
|
||||||
|
# The A1 notation of a range to search for a logical table of data.
|
||||||
|
# Values will be appended after the last row of the table.
|
||||||
|
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
||||||
|
# @param [String] response_value_render_option
|
||||||
|
# Determines how values in the response should be rendered.
|
||||||
|
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
||||||
|
# @param [String] value_input_option
|
||||||
|
# How the input data should be interpreted.
|
||||||
|
# @param [String] response_date_time_render_option
|
||||||
|
# Determines how dates, times, and durations in the response should be
|
||||||
|
# rendered. This is ignored if response_value_render_option is
|
||||||
|
# FORMATTED_VALUE.
|
||||||
|
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
||||||
|
# @param [Boolean] include_values_in_response
|
||||||
|
# Determines if the update response should include the values
|
||||||
|
# of the cells that were appended. By default, responses
|
||||||
|
# do not include the updated values.
|
||||||
|
# @param [String] insert_data_option
|
||||||
|
# How the input data should be inserted.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to 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::SheetsV4::AppendValuesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SheetsV4::AppendValuesResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
|
||||||
|
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
||||||
|
command.request_object = value_range_object
|
||||||
|
command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
|
||||||
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||||
|
command.params['range'] = range unless range.nil?
|
||||||
|
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
||||||
|
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
||||||
|
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
||||||
|
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
||||||
|
command.query['insertDataOption'] = insert_data_option unless insert_data_option.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
|
||||||
|
|
||||||
|
@ -470,6 +433,9 @@ module Google
|
||||||
# @param [String] range
|
# @param [String] range
|
||||||
# The A1 notation of the values to update.
|
# The A1 notation of the values to update.
|
||||||
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
||||||
|
# @param [String] response_value_render_option
|
||||||
|
# Determines how values in the response should be rendered.
|
||||||
|
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
||||||
# @param [String] value_input_option
|
# @param [String] value_input_option
|
||||||
# How the input data should be interpreted.
|
# How the input data should be interpreted.
|
||||||
# @param [String] response_date_time_render_option
|
# @param [String] response_date_time_render_option
|
||||||
|
@ -484,14 +450,11 @@ module Google
|
||||||
# If the range to write was larger than than the range actually written,
|
# If the range to write was larger than than the range actually written,
|
||||||
# the response will include all values in the requested range (excluding
|
# the response will include all values in the requested range (excluding
|
||||||
# trailing empty rows and columns).
|
# trailing empty rows and columns).
|
||||||
# @param [String] response_value_render_option
|
|
||||||
# Determines how values in the response should be rendered.
|
|
||||||
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
|
||||||
# @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
|
||||||
#
|
#
|
||||||
|
@ -504,7 +467,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
||||||
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
||||||
command.request_object = value_range_object
|
command.request_object = value_range_object
|
||||||
|
@ -512,48 +475,85 @@ module Google
|
||||||
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
|
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||||
command.params['range'] = range unless range.nil?
|
command.params['range'] = range unless range.nil?
|
||||||
|
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
||||||
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
||||||
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
||||||
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
||||||
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sets values in one or more ranges of a spreadsheet.
|
# Clears one or more ranges of values from a spreadsheet.
|
||||||
# The caller must specify the spreadsheet ID,
|
# The caller must specify the spreadsheet ID and one or more ranges.
|
||||||
# a valueInputOption, and one or more
|
# Only values are cleared -- all other properties of the cell (such as
|
||||||
# ValueRanges.
|
# formatting, data validation, etc..) are kept.
|
||||||
# @param [String] spreadsheet_id
|
# @param [String] spreadsheet_id
|
||||||
# The ID of the spreadsheet to update.
|
# The ID of the spreadsheet to update.
|
||||||
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
|
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_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
|
||||||
#
|
#
|
||||||
# @yield [result, err] Result & error if block supplied
|
# @yield [result, err] Result & error if block supplied
|
||||||
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
|
# @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
#
|
#
|
||||||
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
|
# @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
|
||||||
#
|
#
|
||||||
# @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_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
|
||||||
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
|
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
|
||||||
command.request_object = batch_update_values_request_object
|
command.request_object = batch_clear_values_request_object
|
||||||
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
|
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
|
||||||
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
|
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
|
||||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.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?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Copies a single sheet from a spreadsheet to another spreadsheet.
|
||||||
|
# Returns the properties of the newly created sheet.
|
||||||
|
# @param [String] spreadsheet_id
|
||||||
|
# The ID of the spreadsheet containing the sheet to copy.
|
||||||
|
# @param [Fixnum] sheet_id
|
||||||
|
# The ID of the sheet to copy.
|
||||||
|
# @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SheetsV4::SheetProperties]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
|
||||||
|
command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
|
||||||
|
command.request_object = copy_sheet_to_another_spreadsheet_request_object
|
||||||
|
command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
|
||||||
|
command.response_class = Google::Apis::SheetsV4::SheetProperties
|
||||||
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||||
|
command.params['sheetId'] = sheet_id unless sheet_id.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
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/slides/
|
# @see https://developers.google.com/slides/
|
||||||
module SlidesV1
|
module SlidesV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170111'
|
REVISION = '20170118'
|
||||||
|
|
||||||
# View and manage the files in your Google Drive
|
# View and manage the files in your Google Drive
|
||||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/webmaster-tools/
|
# @see https://developers.google.com/webmaster-tools/
|
||||||
module WebmastersV3
|
module WebmastersV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20160317'
|
REVISION = '20170117'
|
||||||
|
|
||||||
# View and manage Search Console data for your verified sites
|
# View and manage Search Console data for your verified sites
|
||||||
AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'
|
AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see http://developers.google.com/youtube/analytics/
|
# @see http://developers.google.com/youtube/analytics/
|
||||||
module YoutubeAnalyticsV1
|
module YoutubeAnalyticsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170118'
|
REVISION = '20170123'
|
||||||
|
|
||||||
# Manage your YouTube account
|
# Manage your YouTube account
|
||||||
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
# @see https://developers.google.com/youtube/reporting/v1/reports/
|
||||||
module YoutubereportingV1
|
module YoutubereportingV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170118'
|
REVISION = '20170122'
|
||||||
|
|
||||||
# View YouTube Analytics reports for your YouTube content
|
# View YouTube Analytics reports for your YouTube content
|
||||||
AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
|
AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Client library version
|
# Client library version
|
||||||
VERSION = '0.9.23'
|
VERSION = '0.9.24'
|
||||||
|
|
||||||
# Current operating system
|
# Current operating system
|
||||||
# @private
|
# @private
|
||||||
|
|
|
@ -46,6 +46,7 @@ API_IDS=(adexchangebuyer:v1.4 \
|
||||||
datastore:v1 \
|
datastore:v1 \
|
||||||
deploymentmanager:v2 \
|
deploymentmanager:v2 \
|
||||||
dfareporting:v2.6 \
|
dfareporting:v2.6 \
|
||||||
|
dfareporting:v2.7 \
|
||||||
discovery:v1 \
|
discovery:v1 \
|
||||||
dns:v1 \
|
dns:v1 \
|
||||||
dns:v2beta1 \
|
dns:v2beta1 \
|
||||||
|
|
Loading…
Reference in New Issue